JP2014211745A - Movement detection device and program - Google Patents

Movement detection device and program Download PDF

Info

Publication number
JP2014211745A
JP2014211745A JP2013087478A JP2013087478A JP2014211745A JP 2014211745 A JP2014211745 A JP 2014211745A JP 2013087478 A JP2013087478 A JP 2013087478A JP 2013087478 A JP2013087478 A JP 2013087478A JP 2014211745 A JP2014211745 A JP 2014211745A
Authority
JP
Japan
Prior art keywords
movement
subject
unit
amount
change amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2013087478A
Other languages
Japanese (ja)
Other versions
JP6236847B2 (en
Inventor
足立 達哉
Tatsuya Adachi
達哉 足立
充典 杉浦
Michinori Sugiura
充典 杉浦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2013087478A priority Critical patent/JP6236847B2/en
Publication of JP2014211745A publication Critical patent/JP2014211745A/en
Application granted granted Critical
Publication of JP6236847B2 publication Critical patent/JP6236847B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve the problem in which when movement of a subject is detected based on the size of the subject in an image captured by an imaging unit, the movement of the subject may not be detected accurately.SOLUTION: A movement detection device comprises: a subject specifying unit that specifies a subject included in each of a plurality of images consecutively captured by an imaging unit; and a movement detection unit that detects movement of the subject along a first direction perpendicular to an imaging surface of the imaging unit on the basis of the area and luminance of the subject in the plurality of images. The movement detection unit may detect movement of the subject along the first direction on the basis of an amount of change in the area and an amount of change in the luminance.

Description

本発明は、移動検出装置およびプログラムに関する。   The present invention relates to a movement detection device and a program.

特許文献1には、撮像部により撮像された画像情報により移動物体の個別形状を抽出して人体を特定することが開示されている。
特許文献1 特開2006−145456号公報
Patent Document 1 discloses that a human body is specified by extracting an individual shape of a moving object from image information captured by an imaging unit.
Japanese Patent Application Laid-Open No. 2006-145456

ところで、撮像部により撮像された画像内の被写体の大きさに基づいて被写体の動きを検出する場合、精度良く被写体の動きを検出できない場合がある。   By the way, when detecting the motion of the subject based on the size of the subject in the image captured by the imaging unit, the motion of the subject may not be detected with high accuracy.

本実施形態に係る移動検出装置は、撮像部が連続的に撮像した複数の画像のそれぞれに含まれる被写体を特定する被写体特定部と、複数の画像における被写体の面積および輝度に基づいて、撮像部の撮像面に垂直な第1方向に沿った被写体の移動を検出する移動検出部とを備える。   The movement detection device according to the present embodiment includes a subject identification unit that identifies subjects included in each of a plurality of images continuously captured by the imaging unit, and an imaging unit based on the area and luminance of the subject in the plurality of images. A movement detection unit that detects movement of the subject along a first direction perpendicular to the imaging surface.

上記移動検出装置は、複数の画像における被写体の面積の変化量を導出する面積変化量導出部と、複数の画像における被写体の輝度の変化量を導出する輝度変化量導出部とをさらに備え、移動検出部は、面積の変化量および輝度の変化量に基づいて、第1方向に沿った被写体の移動を検出してもよい。   The movement detection device further includes an area change amount deriving unit for deriving a change amount of the area of the subject in the plurality of images, and a luminance change amount deriving unit for deriving a change amount of the luminance of the subject in the plurality of images. The detection unit may detect the movement of the subject along the first direction based on the area change amount and the luminance change amount.

上記移動検出装置は、複数の画像において、被写体特定部が特定した被写体の撮像面に平行な第2方向に沿った移動の変化量を導出する第1移動変化量導出部をさらに備え、移動検出部は、第2方向に沿った移動の変化量が第1基準量以上の場合、第2方向に沿った移動の変化量に基づいて、第2方向に沿った被写体の移動を検出し、第2方向に沿った移動の変化量が第1基準量より小さく、かつ第1基準量より小さい第2基準量以上の場合、面積の変化量および輝度の変化量に基づいて、第1方向に沿った被写体の移動を検出してもよい。   The movement detection device further includes a first movement change amount deriving unit for deriving a change amount of movement along a second direction parallel to the imaging surface of the subject specified by the subject specifying unit in the plurality of images. The unit detects the movement of the subject along the second direction based on the change amount of the movement along the second direction when the change amount of the movement along the second direction is equal to or greater than the first reference amount. When the change amount of movement along the two directions is smaller than the first reference amount and greater than or equal to the second reference amount smaller than the first reference amount, the change along the first direction is based on the change amount of the area and the change amount of the luminance. The movement of the subject may be detected.

上記移動検出装置は、複数の画像において、被写体特定部が特定した被写体の第2方向とは異なる撮像面に平行な第3方向に沿った移動の変化量を導出する第2移動変化量導出部をさらに備え、移動検出部は、第3方向に沿った移動の変化量が第3基準量以上の場合、第3方向に沿った移動の変化量に基づいて、第3方向に沿った被写体の移動を検出し、第2方向に沿った移動の変化量が、第1基準量より小さく、かつ第2基準量以上で、第3方向に沿った移動の変化量が、第3基準量より小さく、かつ第3基準量より小さい第4基準量以上の場合、面積の変化量および輝度の変化量に基づいて、第1方向に沿った被写体の移動を検出してもよい。   The movement detection device includes a second movement change amount deriving unit that derives a change amount of movement along a third direction parallel to an imaging surface different from the second direction of the subject specified by the subject specifying unit in a plurality of images. The movement detection unit further includes a movement detection unit configured to move the object along the third direction based on the movement change along the third direction when the movement change along the third direction is equal to or greater than the third reference amount. The amount of change in movement along the second direction is smaller than the first reference amount and greater than or equal to the second reference amount, and the amount of change in movement along the third direction is smaller than the third reference amount. If the amount is equal to or larger than the fourth reference amount smaller than the third reference amount, the movement of the subject along the first direction may be detected based on the area change amount and the luminance change amount.

上記移動検出装置において、撮像部は、被写体の移動を検出する検出対象領域に向けて照射された特定の波長の光の反射光の受光量に応じた複数の画像を連続的に撮像してもよい。   In the movement detection device, the imaging unit may continuously capture a plurality of images according to the amount of reflected light of the light having a specific wavelength irradiated toward the detection target region for detecting the movement of the subject. Good.

移動検出部は、被写体の面積が小さくなる方向に変化し、かつ被写体の輝度が明るくなる方向に変化する場合、被写体が第1方向に沿って撮像部に近づく方向に移動したことを検出する、請求項5に記載の移動検出装置。   The movement detection unit detects that the subject has moved in the direction approaching the imaging unit along the first direction when the subject area changes in a direction in which the area of the subject decreases and the luminance of the subject changes in a direction in which the luminance increases. The movement detection apparatus according to claim 5.

移動検出部は、被写体の面積が大きくなる方向に変化し、かつ被写体の輝度が暗くなる方向に変化する場合、被写体が第1方向に沿って撮像部から遠ざかる方向に移動したことを検出する、請求項5または請求項6に記載の移動検出装置。   The movement detection unit detects that the subject has moved in the direction away from the imaging unit along the first direction when the subject area changes in a direction in which the area of the subject increases and the luminance of the subject changes in a direction in which the luminance decreases. The movement detection apparatus according to claim 5 or 6.

本実施形態に係るプログラムは、移動検出装置としてコンピュータを機能させるためのプログラムである。   The program according to the present embodiment is a program for causing a computer to function as a movement detection device.

なお、上記の発明の概要は、本発明の必要な特徴の全てを列挙したものではない。また、これらの特徴群のサブコンビネーションもまた、発明となりうる。   It should be noted that the above summary of the invention does not enumerate all the necessary features of the present invention. In addition, a sub-combination of these feature groups can also be an invention.

本実施形態に係る移動検出装置を備える遊技機の概略正面図の一例を示す図である。It is a figure which shows an example of the schematic front view of a game machine provided with the movement detection apparatus which concerns on this embodiment. 本実施形態に係る移動検出装置の外観斜視図の一例を示す図である。It is a figure which shows an example of the external appearance perspective view of the movement detection apparatus which concerns on this embodiment. 検出対象の手の動きの一例を示す図である。It is a figure which shows an example of a motion of the hand of a detection target. 手首を基点としてZ軸−方向に手を動かした場合の画像の一例を示す図である。It is a figure which shows an example of the image at the time of moving a hand to a Z-axis negative direction on the wrist. 本実施形態に係る遊技機の機能ブロックの一例を示す図である。It is a figure which shows an example of the functional block of the game machine which concerns on this embodiment. 本実施形態に係る移動検出装置の機能ブロックの一例を示す図である。It is a figure which shows an example of the functional block of the movement detection apparatus which concerns on this embodiment. ラベリング処理について説明するための図である。It is a figure for demonstrating a labeling process. ラベリング処理について説明するための図である。It is a figure for demonstrating a labeling process. 画像解析部の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of an image analysis part. 移動検出部の被写体の移動を検出する移動検出処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the movement detection process which detects the movement of the to-be-photographed object of a movement detection part. 移動検出部の被写体の移動を検出する移動検出処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the movement detection process which detects the movement of the to-be-photographed object of a movement detection part. 移動検出部の被写体の移動を検出する移動検出処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the movement detection process which detects the movement of the to-be-photographed object of a movement detection part. 遊技球が入賞した場合の遊技機の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of a game machine when a game ball wins. 入賞した場合に表示させる演出画面の一例を示す図である。It is a figure which shows an example of the production | presentation screen displayed when winning a prize. 入賞した場合に表示させる演出画面の一例を示す図である。It is a figure which shows an example of the production | presentation screen displayed when winning a prize. 入賞した場合に表示させる演出画面の一例を示す図である。It is a figure which shows an example of the production | presentation screen displayed when winning a prize.

以下、発明の実施の形態を通じて本発明を説明するが、以下の実施形態は特許請求の範囲にかかる発明を限定するものではない。また、実施形態の中で説明されている特徴の組み合わせの全てが発明の解決手段に必須であるとは限らない。   Hereinafter, the present invention will be described through embodiments of the invention, but the following embodiments do not limit the invention according to the claims. In addition, not all the combinations of features described in the embodiments are essential for the solving means of the invention.

図1は、本実施形態に係る移動検出装置100を備える遊技機10の概略正面図の一例を示す。遊技機10は、筐体12、表示装置14、ハンドルスイッチ16および移動検出装置100を備える。本実施形態では、遊技機10が移動検出装置100を備える例について説明する。しかし、移動検出装置100は、遊技機10以外の装置に設けられても構わない。   FIG. 1 shows an example of a schematic front view of a gaming machine 10 including a movement detection device 100 according to the present embodiment. The gaming machine 10 includes a housing 12, a display device 14, a handle switch 16, and a movement detection device 100. In the present embodiment, an example in which the gaming machine 10 includes the movement detection device 100 will be described. However, the movement detection device 100 may be provided in a device other than the gaming machine 10.

表示装置14は、筐体12の遊技領域に配置される。表示装置14は、演出のための各種の画像を表示する。表示装置14は、液晶ディスプレイなどの表示画面を備え、遊技者によるゲームの進行に伴い、例えば図柄抽選結果を遊技者に報知するための装飾図柄を表示したり、キャラクタの登場またはアイテムの出現による演出画像を表示したりする。ハンドルスイッチ16は、玉発射装置を介して遊技球を発射する場合に遊技者により操作される。移動検出装置100は、検出対象領域において遊技者の手などの被写体の移動を検出する。遊技機10は、移動検出装置100による被写体の移動検出結果に応じて、表示装置14の画像を表示させるなどの演出を実行する。   The display device 14 is disposed in the game area of the housing 12. The display device 14 displays various images for effects. The display device 14 includes a display screen such as a liquid crystal display, and displays, for example, a decorative symbol for notifying the player of the symbol lottery result as the game progresses by the player, or the appearance of a character or the appearance of an item. Display effect images. The handle switch 16 is operated by the player when a game ball is fired through the ball launcher. The movement detection device 100 detects the movement of a subject such as a player's hand in the detection target area. The gaming machine 10 performs effects such as displaying an image on the display device 14 in accordance with the movement detection result of the subject by the movement detection device 100.

図2は、移動検出装置100の外観斜視図の一例を示す。移動検出装置100は、撮像部102と、赤外線発光部104とを備える。赤外線発光部104は、被写体の検出対象領域に赤外線を照射する。撮像部は、被写体の移動を検出する検出対象領域に向けて照射された特定の波長の光の反射光の受光量に応じた複数の画像を連続的に撮像する。撮像部102は、可視光カットフィルタ、撮像素子、および画像生成部を有する。可視光カットフィルタは、被写体で反射した反射光のうち可視光をフィルタリングして、赤外光を透過する。撮像素子は、可視光カットフィルタを通過した赤外光を光電変換して画像信号を出力する。画像生成部は、撮像素子から出力される画像信号に画像処理を行うことで画像を生成する。   FIG. 2 shows an example of an external perspective view of the movement detection device 100. The movement detection apparatus 100 includes an imaging unit 102 and an infrared light emitting unit 104. The infrared light emitting unit 104 irradiates infrared rays to the detection target area of the subject. The imaging unit continuously captures a plurality of images according to the amount of reflected light of the light having a specific wavelength irradiated toward the detection target region for detecting the movement of the subject. The imaging unit 102 includes a visible light cut filter, an imaging element, and an image generation unit. The visible light cut filter filters visible light out of the reflected light reflected by the subject and transmits infrared light. The image sensor photoelectrically converts the infrared light that has passed through the visible light cut filter and outputs an image signal. The image generation unit generates an image by performing image processing on the image signal output from the image sensor.

移動検出装置100は、例えば、遊技者の手を被写体として、遊技者の手のX軸方向、Y軸方向、およびZ軸方向に沿った移動を検出する。なお、撮像部102の撮像面、つまり撮像素子の受光面に垂直な第1方向をZ軸方向、撮像面に平行な第2方向をX軸方向、および撮像面に平行でかつ第2方向に垂直な第3方向をY軸方向とする。   For example, the movement detection device 100 detects movement along the X-axis direction, the Y-axis direction, and the Z-axis direction of the player's hand using the player's hand as a subject. The first direction perpendicular to the imaging surface of the imaging unit 102, that is, the light receiving surface of the imaging element, is the Z-axis direction, the second direction parallel to the imaging surface is the X-axis direction, and is parallel to the imaging surface and in the second direction. A vertical third direction is defined as a Y-axis direction.

ここで、被写体がZ軸方向に沿って撮像部102から遠ざかっている、つまり被写体がZ軸−方向に移動している場合、被写体の面積が徐々に小さくなることが考えられる。また、被写体がZ軸方向に沿って撮像部102に近づいている、つまり被写体がZ軸+方向に移動している場合、被写体の面積が徐々に大きくなることが考えられる。そこで、移動検出装置100は、撮像部102により撮像された画像に含まれる被写体の面積の変化に基づいてZ軸方向に沿った被写体の移動を検出することが考えられる。   Here, when the subject is moving away from the imaging unit 102 along the Z-axis direction, that is, when the subject is moving in the Z-axis direction, the area of the subject may be gradually reduced. In addition, when the subject is approaching the imaging unit 102 along the Z-axis direction, that is, when the subject is moving in the Z-axis + direction, the area of the subject may gradually increase. Therefore, it is conceivable that the movement detection device 100 detects the movement of the subject along the Z-axis direction based on the change in the area of the subject included in the image captured by the imaging unit 102.

また、移動検出装置100が、撮像部102により撮像された画像に含まれる被写体の重心座標の変化に基づいて、撮像面に平行なX軸方向またはY軸方向に沿った被写体の移動を検出することが考えられる。   Further, the movement detection device 100 detects the movement of the subject along the X-axis direction or the Y-axis direction parallel to the imaging surface based on the change in the center-of-gravity coordinates of the subject included in the image captured by the imaging unit 102. It is possible.

しかしながら、図3に示すように、遊技者が、例えば手首を基点として手を符号300の状態から符号302の状態になるようにZ軸方向に移動した場合、画像内の被写体の面積の変化、または重心座標の変化のみに基づいて被写体の移動を検出する場合、正確に被写体の移動を検出できない場合がある。   However, as shown in FIG. 3, when the player moves his / her hand in the Z-axis direction from the state of reference numeral 300 to the state of reference numeral 302 with the wrist as a base point, for example, the change in the area of the subject in the image, Alternatively, when the movement of the subject is detected based only on the change in the barycentric coordinates, the movement of the subject may not be detected accurately.

図4は、手首を基点としてZ軸−方向に手を動かした場合に撮像部102から出力される画像の一例を示す。例えば手首を基点としてZ軸方向に移動した場合、手首から指先までの部分が被写体として常時、画像内に含まれるので、被写体の面積の変化は少ない。また、手首を基点としてZ軸方向に移動した場合、画像内に含まれる手の向きが変わり、被写体の面積は小さくならずに、撮像部102から遠ざかるほど、被写体の面積が大きくなる。さらに、手首を基点としてZ軸方向に移動した場合、被写体の重心座標はX軸方向およびY軸方向にも移動してしまう。したがって、被写体の動きによっては、被写体のX軸方向、Y軸方向およびZ軸方向に沿った移動の検出を被写体の重心座標または面積のみに基づいて行った場合、正確に被写体の移動の検出できない場合がある。   FIG. 4 illustrates an example of an image output from the imaging unit 102 when the hand is moved in the Z-axis direction with the wrist as a base point. For example, when moving in the Z-axis direction with the wrist as the base point, the area from the wrist to the fingertip is always included in the image as the subject, so the change in the area of the subject is small. Further, when moving in the Z-axis direction with the wrist as a base point, the orientation of the hand included in the image changes, and the area of the subject increases as the distance from the imaging unit 102 increases without decreasing the area of the subject. In addition, when the wrist is moved in the Z-axis direction as a base point, the center-of-gravity coordinates of the subject are also moved in the X-axis direction and the Y-axis direction. Therefore, depending on the movement of the subject, when the movement of the subject along the X-axis direction, the Y-axis direction, and the Z-axis direction is detected based only on the barycentric coordinates or area of the subject, the movement of the subject cannot be accurately detected. There is a case.

そこで、本実施形態に係る移動検出装置100は、被写体の重心座標の変化、面積の変化に加えて、被写体の輝度の変化に基づいて、被写体の移動を検出する。   Therefore, the movement detection apparatus 100 according to the present embodiment detects the movement of the subject based on the change in the luminance of the subject in addition to the change in the center of gravity coordinates and the change in the area of the subject.

ここで、被写体と撮像部102との距離が長いほど被写体で反射した赤外光は拡散してしまう。したがって、撮像部102に入射される赤外光の量は、被写体と撮像部102との距離が長いほど少なくなる。つまり、画像に含まれる被写体の輝度は、被写体と撮像部102との距離が長いほど暗くなる。よって、被写体の輝度が暗くなる方向に変化する場合、被写体がZ軸−方向に移動している可能性がある。また、被写体の輝度が明るくなる方向に変化する場合、被写体がZ軸+方向に変化している可能性がある。   Here, as the distance between the subject and the imaging unit 102 is longer, the infrared light reflected by the subject is diffused. Accordingly, the amount of infrared light incident on the imaging unit 102 decreases as the distance between the subject and the imaging unit 102 increases. That is, the luminance of the subject included in the image becomes darker as the distance between the subject and the imaging unit 102 is longer. Therefore, when the brightness of the subject changes in the direction of darkening, the subject may have moved in the Z-axis-direction. Further, when the luminance of the subject changes in the direction of increasing, there is a possibility that the subject has changed in the Z axis + direction.

一方、被写体がX軸方向またはY軸方向に移動する場合でも、被写体の輝度は変化する可能性がある。したがって、被写体の輝度の変化のみで被写体の移動を検出するだけでは、正確に被写体の移動を検出できない場合がある。また、上記の通り、手首を基点としてZ軸方向に移動した場合でも、被写体の重心座標はX軸方向およびY軸方向に移動してしまう場合がある。しかし、手首を基点とした手のZ軸方向の移動による重心座標の変化量は、手のX軸方向またはY軸方向への移動による重心座標の変化量より少ない可能性が高い。   On the other hand, even when the subject moves in the X-axis direction or the Y-axis direction, the luminance of the subject may change. Therefore, there is a case where the movement of the subject cannot be detected accurately only by detecting the movement of the subject only by the change in the luminance of the subject. In addition, as described above, even when the wrist is moved in the Z-axis direction as a base point, the gravity center coordinates of the subject may move in the X-axis direction and the Y-axis direction. However, the change amount of the center-of-gravity coordinates due to the movement of the hand in the Z-axis direction with the wrist as the base point is likely to be smaller than the change amount of the center-of-gravity coordinates due to the movement in the X-axis direction or the Y-axis direction of the hand.

そこで、移動検出装置100は、被写体の重心座標の変化量が予め定められた閾値A以上の場合には、重心座標の変化に基づいて被写体のX軸方向またはY軸方向の移動を検出する。一方、移動検出装置100は、被写体の重心座標の変化量が閾値Aより小さく、被写体の重心座標の変化量が、閾値Aより小さい閾値B以上の場合には、被写体の面積および輝度の変化に基づいて被写体のZ軸方向の移動を検出する。   Therefore, the movement detection apparatus 100 detects the movement of the subject in the X-axis direction or the Y-axis direction based on the change in the center-of-gravity coordinates when the amount of change in the center-of-gravity coordinates of the subject is equal to or greater than a predetermined threshold A. On the other hand, when the change amount of the centroid coordinate of the subject is smaller than the threshold A and the change amount of the centroid coordinate of the subject is greater than or equal to the threshold B smaller than the threshold A, the movement detection device 100 changes the area and brightness of the subject. Based on this, the movement of the subject in the Z-axis direction is detected.

以上のように、本実施形態に係る移動検出装置100は、被写体の重心座標の変化、被写体の面積の変化、および被写体の輝度の変化のいずれかのパラメータを用いて移動検出を行うかを閾値に従って選択することで、より精度良く被写体の移動を検出する。   As described above, the movement detection apparatus 100 according to the present embodiment determines whether the movement detection is performed using any of the parameters of the change in the center-of-gravity coordinates of the subject, the change in the area of the subject, and the change in the luminance of the subject. The movement of the subject is detected with higher accuracy.

図5は、本実施形態に係る遊技機10の機能ブロックの一例である。本実施形態において、遊技機10は、パチンコ台である。しかし、遊技機10は、パチスロ台などの他の遊技機でも構わない。   FIG. 5 is an example of functional blocks of the gaming machine 10 according to the present embodiment. In the present embodiment, the gaming machine 10 is a pachinko machine. However, the gaming machine 10 may be another gaming machine such as a pachislot base.

遊技機10は、表示装置14、ハンドルスイッチ16、入賞センサ18、玉発射装置20、音響装置22、制御部30、演出制御部40、および移動検出装置100を備える。   The gaming machine 10 includes a display device 14, a handle switch 16, a winning sensor 18, a ball launching device 20, an acoustic device 22, a control unit 30, an effect control unit 40, and a movement detection device 100.

表示装置14は、遊技者によるゲームの進行に伴い実行される演出に対応する画像を表示する。ハンドルスイッチ16は、遊技者による操作に従って玉発射装置20を介して遊技球を発射させる。入賞センサ18は、遊技盤上の予め定められた入賞口に遊技球が入賞したことを検出して、入賞信号を出力する。玉発射装置20は、ハンドルスイッチ16の操作量に応じて遊技球を発射する。音響装置22は、遊技者によるゲームの進行に伴い実行される演出に対応する音声を出力する。   The display device 14 displays an image corresponding to an effect executed as the game progresses by the player. The handle switch 16 fires a game ball via the ball launching device 20 in accordance with an operation by the player. The winning sensor 18 detects that a game ball has won a predetermined winning opening on the game board, and outputs a winning signal. The ball launcher 20 launches a game ball according to the amount of operation of the handle switch 16. The acoustic device 22 outputs a sound corresponding to an effect executed as the game progresses by the player.

制御部30は、遊技機10の全体を制御する。制御部30は、入力信号制御部32、遊技機制御部34、大当たり抽選部36、およびデータ送信部38を備える。入力信号制御部32は、入賞センサ18からの入賞信号の入力を検知して、遊技機制御部34へ抽選信号を通知する。遊技機制御部34は、入力信号制御部32からの抽選信号を検知すると、大当たり抽選部36へ通知し、大当たり抽選部36から抽選結果を受け取る。さらに、遊技機制御部34は、抽選結果に応じた演出命令をデータ送信部38を介して演出制御部40に出力する。大当たり抽選部36は、遊技機制御部34からの抽選信号に応じて、大当たり抽選を行い、抽選結果を遊技機制御部34に通知する。データ送信部38は、遊技機制御部34からの演出命令を演出制御部40に送信する。   The control unit 30 controls the entire gaming machine 10. The control unit 30 includes an input signal control unit 32, a gaming machine control unit 34, a big hit lottery unit 36, and a data transmission unit 38. The input signal control unit 32 detects the input of a winning signal from the winning sensor 18 and notifies the gaming machine control unit 34 of a lottery signal. When the gaming machine control unit 34 detects the lottery signal from the input signal control unit 32, it notifies the big hit lottery unit 36 and receives the lottery result from the big hit lottery unit 36. Further, the gaming machine control unit 34 outputs an effect command corresponding to the lottery result to the effect control unit 40 via the data transmission unit 38. The jackpot lottery unit 36 performs a jackpot lottery in response to a lottery signal from the gaming machine control unit 34 and notifies the gaming machine control unit 34 of the lottery result. The data transmission unit 38 transmits the production command from the gaming machine control unit 34 to the production control unit 40.

演出制御部40は、データ送受信部42、指示部44、および演出実行部50を有する。演出実行部50は、表示装置制御部52および音響装置制御部54を含む。データ送受信部42は、制御部30からの演出命令および移動検出装置100からの移動検出結果を受信し、移動検出結果に応じて演出実行命令を指示部44および演出実行部50に出力する。   The effect control unit 40 includes a data transmission / reception unit 42, an instruction unit 44, and an effect execution unit 50. The effect execution unit 50 includes a display device control unit 52 and an audio device control unit 54. The data transmitting / receiving unit 42 receives the effect command from the control unit 30 and the movement detection result from the movement detection device 100 and outputs an effect execution command to the instruction unit 44 and the effect execution unit 50 according to the movement detection result.

指示部44は、予め定められた遊技条件を満たす場合、遊技者に遊技条件に対応する移動方向に手を動かすことを指示する。指示部44は、予め定められた第1遊技条件を満たす場合、遊技者に第1方向(Z軸方向)に、例えば、手を遊技機に対して上下方向または下上方向に動かすことを指示する第1指示部として機能する。指示部44は、予め定められた第2遊技条件を満たす場合、遊技者に第2方向(X軸方向)に、例えば、手を遊技機に対して左右方向または右左方向に動かすことを指示する第2指示部として機能する。指示部44は、予め定められた第3遊技条件を満たす場合に、遊技者に第3方向(Y軸方向)に、例えば、手を遊技機に対して手前から奥方向または奥から手前方向に支持する第3指示部として機能する。ここで、遊技条件とは、例えば大当たり抽選の結果に基づいて定められる条件である。指示部44は、演出実行命令に応じて、遊技者に例えば手を動かしたことに対応して実行される演出の場合には、遊技者に手を動かすことを指示する。指示部44は、遊技者に手を動かすことを促す催促画面を表示装置14に表示させてもよい。   The instruction unit 44 instructs the player to move his / her hand in the movement direction corresponding to the game condition when a predetermined game condition is satisfied. The instruction unit 44 instructs the player to move the hand in the first direction (Z-axis direction), for example, in the up-down direction or the down-up direction with respect to the gaming machine, when the predetermined first game condition is satisfied. Functions as a first instruction unit. When the predetermined second game condition is satisfied, the instruction unit 44 instructs the player to move the hand in the second direction (X-axis direction), for example, in the left-right direction or the right-left direction with respect to the gaming machine. It functions as a second instruction unit. When the third game condition is determined in advance, the instructing unit 44 causes the player to move in the third direction (Y-axis direction), for example, from the front to the back or from the back to the front with respect to the gaming machine. It functions as a third instruction unit to support. Here, the game condition is a condition determined based on the result of the big hit lottery, for example. In response to the effect execution command, the instruction unit 44 instructs the player to move the hand in the case of an effect executed in response to, for example, moving the hand. The instruction unit 44 may cause the display device 14 to display a prompting screen that prompts the player to move his / her hand.

演出実行部50は、演出実行命令に応じた演出を実行する。演出実行部50は、遊技者が特定の移動方向に手を動かしたことに対応して実行される演出の場合には、移動検出装置100からの移動検出結果に基づいて演出を実行する。表示装置制御部52は、演出実行命令に応じた演出画面を表示装置14に表示させる。音響装置制御部54は、演出実行命令に応じた演出音声を音響装置22に出力させる。演出実行部50は、指示部44が遊技者に特定の移動方向に手を動かすことを指示したことに対応して、移動検出結果が特定の移動方向に沿った手の移動を検出したことを示す場合、特定の移動方向に対応する演出を実行してもよい。   The effect execution unit 50 executes an effect according to the effect execution command. In the case of an effect executed in response to the player moving his / her hand in a specific movement direction, the effect execution unit 50 executes the effect based on the movement detection result from the movement detection device 100. The display device control unit 52 causes the display device 14 to display an effect screen corresponding to the effect execution command. The sound device control unit 54 causes the sound device 22 to output effect sound corresponding to the effect execution command. In response to the instruction unit 44 instructing the player to move the hand in a specific movement direction, the performance execution unit 50 indicates that the movement detection result has detected the movement of the hand along the specific movement direction. When shown, an effect corresponding to a specific movement direction may be executed.

図6は、移動検出装置100の機能ブロックの一例を示す。移動検出装置100は、撮像部102、赤外線発光部104、画像解析部110、および送受信部106を備える。   FIG. 6 shows an example of functional blocks of the movement detection apparatus 100. The movement detection apparatus 100 includes an imaging unit 102, an infrared light emitting unit 104, an image analysis unit 110, and a transmission / reception unit 106.

赤外線発光部104は、予め定められた検出対象領域に向けてパルス状の赤外線を照射する。撮像部102は、検出対象領域に存在する被写体から反射された赤外線の受光量に応じた画像を出力する。画像解析部110は、撮像部102から出力される画像を解析し、被写体の移動を検出するための画像パラメータを導出し、画像パラメータに基づいて被写体の移動を検出する。送受信部106は、演出制御部40からの移動検出命令を受信し、移動検出命令に対する応答として移動検出結果を演出制御部40に送信する。   The infrared light emitting unit 104 emits pulsed infrared rays toward a predetermined detection target region. The imaging unit 102 outputs an image according to the amount of received infrared light reflected from the subject existing in the detection target region. The image analysis unit 110 analyzes the image output from the imaging unit 102, derives image parameters for detecting the movement of the subject, and detects the movement of the subject based on the image parameter. The transmission / reception unit 106 receives a movement detection command from the effect control unit 40 and transmits a movement detection result to the effect control unit 40 as a response to the movement detection command.

画像解析部110は、画像取得部112、2値化変換部114、ラベリング処理部116、被写体特定部118、輝度導出部120、輝度変化量導出部122、面積導出部124、面積変化量導出部125、第1位置情報導出部126、第1移動変化量導出部128、第2位置情報導出部130、第2移動変化量導出部132、移動検出部134、および検出結果保持部136を備える。   The image analysis unit 110 includes an image acquisition unit 112, a binarization conversion unit 114, a labeling processing unit 116, a subject specifying unit 118, a luminance deriving unit 120, a luminance change amount deriving unit 122, an area deriving unit 124, and an area change amount deriving unit. 125, a first position information deriving unit 126, a first movement change amount deriving unit 128, a second position information deriving unit 130, a second movement change amount deriving unit 132, a movement detecting unit 134, and a detection result holding unit 136.

画像取得部112は、撮像部102が連続的に撮像した複数の画像を取得し、2値化変換部114、および輝度導出部120に提供する。撮像部102から出力される画像は、例えば、画像を構成する各画素が256通りの階調を有するモノクロ画像を示す8ビットグレースケール画像でよい。2値化変換部114は、提供された複数の画像のそれぞれを2値化処理して、2値化画像を出力する。2値化変換部114は、8ビットグレースケール画像を構成する各画素のうち、輝度が予め定められた閾輝度以上の画素を白画素、閾輝度より小さい画素を黒画素とする2値化画像を出力する。   The image acquisition unit 112 acquires a plurality of images continuously captured by the imaging unit 102 and provides them to the binarization conversion unit 114 and the luminance derivation unit 120. The image output from the imaging unit 102 may be, for example, an 8-bit grayscale image showing a monochrome image in which each pixel constituting the image has 256 gradations. The binarization conversion unit 114 performs binarization processing on each of the provided images and outputs a binarized image. The binarization conversion unit 114 is a binarized image in which, among the pixels constituting the 8-bit grayscale image, a pixel whose luminance is equal to or higher than a predetermined threshold luminance is a white pixel, and a pixel whose luminance is lower than the threshold luminance is a black pixel. Is output.

ラベリング処理部116は、2値化画像を構成する各画素のうち連結している白画素に同じラベルを付することにより、被写体候補となる白画素をグループ分けする。ラベリング処理部116は、左右上下および斜め方向を含む8方向において隣接している白画素に同じラベルを付加してもよい。例えば、ラベリング処理部116は、図7Aに示すような2値化画像に対して、ラベリング処理を施し、図7Bに示すように、各白画素にラベル付けを行う。これにより、ラベリング処理部116は、被写体候補となる白画素をグループ分けする。   The labeling processing unit 116 groups white pixels that are subject candidates by attaching the same label to the connected white pixels among the pixels constituting the binarized image. The labeling processing unit 116 may add the same label to white pixels that are adjacent in eight directions including left, right, up, down, and diagonal directions. For example, the labeling processing unit 116 performs a labeling process on the binarized image as illustrated in FIG. 7A and labels each white pixel as illustrated in FIG. 7B. Accordingly, the labeling processing unit 116 groups white pixels that are subject candidates.

被写体特定部118は、ラベリング処理された2値化画像に基づいて、被写体を特定する。被写体特定部118は、同一のラベルが付された画素数が最も多い白画素群を被写体として特定する。被写体特定部118は、例えば、図7Bに示すようなラベリング処理された2値化画像について、「3」のラベルが付された白画素群を被写体として特定する。   The subject specifying unit 118 specifies a subject based on the binarized image that has been subjected to the labeling process. The subject specifying unit 118 specifies a white pixel group having the largest number of pixels with the same label as a subject. The subject specifying unit 118 specifies, for example, a white pixel group labeled “3” as a subject in the binarized image subjected to the labeling process as shown in FIG. 7B.

輝度導出部120は、複数の画素のそれぞれについて、被写体の平均輝度を導出する。輝度導出部120は、8ビットグレースケール画像を構成する各画素のうち、被写体特定部118により特定された被写体を構成する白画素群の位置に対応する各画素を抽出する。輝度導出部120は、抽出された各画素の輝度(階調値)の平均輝度を被写体の輝度として導出してもよい。   The luminance deriving unit 120 derives the average luminance of the subject for each of the plurality of pixels. The luminance deriving unit 120 extracts each pixel corresponding to the position of the white pixel group constituting the subject identified by the subject identifying unit 118 from among the pixels constituting the 8-bit grayscale image. The luminance deriving unit 120 may derive the average luminance of the extracted pixels (tone values) as the luminance of the subject.

輝度変化量導出部122は、前後の画像のそれぞれの被写体の輝度の差分を導出することで、輝度変化量を導出する。輝度変化量導出部122は、最新の画像に含まれる被写体の輝度E1と、最新の画像より一枚前の画像に含まれる被写体の輝度E2との差分を、輝度の変化量H1(E1−E2)として導出する。また、輝度変化量導出部122は、最新の画像より1枚前の画像に含まれる被写体の輝度E2と、最新の画像より2枚前の画像に含まれる被写体の輝度E3との差分を輝度の変化量H2(E2−E3)として導出する。   The luminance change amount deriving unit 122 derives the luminance change amount by deriving the luminance difference between the subjects of the preceding and following images. The luminance change amount deriving unit 122 calculates the difference between the luminance E1 of the subject included in the latest image and the luminance E2 of the subject included in the image immediately before the latest image as the luminance change amount H1 (E1-E2). ). In addition, the luminance change amount deriving unit 122 calculates the difference between the luminance E2 of the subject included in the image one image before the latest image and the luminance E3 of the subject included in the image two images before the latest image. Derived as a change amount H2 (E2-E3).

面積導出部124は、複数の画像のそれぞれの被写体の面積を導出する。面積導出部124は、被写体特定部118により特定された被写体を構成する白画素群の数を導出することで、複数の画素のそれぞれの被写体の面積を導出してもよい。   The area deriving unit 124 derives the area of each subject in the plurality of images. The area deriving unit 124 may derive the area of each subject of a plurality of pixels by deriving the number of white pixel groups constituting the subject specified by the subject specifying unit 118.

面積変化量導出部125は、前後の画像のそれぞれの被写体の面積の差分を導出することで、面積変化量を導出する。面積変化量導出部125は、最新の画像に含まれる被写体の面積S1と、最新の画像より1枚前の画像に含まれる被写体の面積S2との差分を、面積の変化量J1(S1−S2)として導出する。また、面積変化量導出部125は、最新の画像より1枚前の画像に含まれる被写体の面積S2と、最新の画像より2枚前の画像に含まれる被写体の面積S3との差分を、面積の変化量J2(S2−S3)として導出する。   The area change amount deriving unit 125 derives the area change amount by deriving the difference in the area of each subject in the preceding and following images. The area change amount deriving unit 125 calculates the difference between the area S1 of the subject included in the latest image and the area S2 of the subject included in the image immediately before the latest image as the area change amount J1 (S1−S2). ). Further, the area change amount deriving unit 125 calculates the difference between the area S2 of the subject included in the image one image before the latest image and the area S3 of the subject included in the image two images before the latest image as the area. The change amount J2 (S2-S3) is derived.

第1位置情報導出部126は、複数の画像のそれぞれの被写体の重心のX座標を第1位置情報として導出する。第1移動変化量導出部128は、前後の画像のそれぞれの被写体の重心のX座標の変化量を被写体のX軸方向に沿った移動の変化量として導出する。第1移動変化量導出部128は、最新の画像に含まれる被写体の重心のX座標x1と、最新の画像より1枚前の画像に含まれる被写体の重心のX座標x2との差分を、X軸方向に沿った移動の変化量X1(x1−x2)として導出する。また、第1移動変化量導出部128は、最新の画像より1枚前の画像に含まれる被写体の重心のX座標x2と、最新の画像より2枚前の画像に含まれる被写体の重心のX座標x2との差分を、X軸方向に沿った移動の変化量X2(x2−x3)として導出する。   The first position information deriving unit 126 derives the X coordinate of the center of gravity of each subject of the plurality of images as first position information. The first movement change amount deriving unit 128 derives the change amount of the X coordinate of the center of gravity of each subject in the preceding and following images as the change amount of movement of the subject along the X-axis direction. The first movement change amount deriving unit 128 calculates the difference between the X coordinate x1 of the center of gravity of the subject included in the latest image and the X coordinate x2 of the center of gravity of the subject included in the image immediately before the latest image, as X It is derived as a change amount X1 (x1-x2) of movement along the axial direction. The first movement change amount deriving unit 128 also includes the X coordinate x2 of the center of gravity of the subject included in the image one image before the latest image and the X of the center of gravity of the subject included in the image two images before the latest image. The difference from the coordinate x2 is derived as a movement change amount X2 (x2-x3) along the X-axis direction.

第2位置情報導出部130は、複数の画像のそれぞれの被写体の重心のY座標を第2位置情報として導出する。第2移動変化量導出部132は、前後の画像のそれぞれの被写体の重心のY座標の変化量を被写体のY軸方向に沿った移動の変化量として導出する。第2移動変化量導出部132は、最新の画像に含まれる被写体の重心のY座標y1と、最新の画像より1枚前の画像に含まれる被写体の重心のY座標y2との差分を、Y軸方向に沿った移動の変化量Y1(=y1−y2)として、導出する。また、第2移動変化量導出部132は、最新の画像より1枚前の画像に含まれる被写体の重心のY座標y2と、最新の画像より2枚前の画像に含まれる被写体の重心のY座標y2との差分を、Y軸方向に沿った移動の変化量Y2(=y2−y3)として導出する。   The second position information deriving unit 130 derives the Y coordinate of the center of gravity of each subject of the plurality of images as second position information. The second movement change amount deriving unit 132 derives the change amount of the Y coordinate of the center of gravity of each subject in the preceding and following images as the change amount of movement of the subject along the Y-axis direction. The second movement change amount deriving unit 132 calculates the difference between the Y coordinate y1 of the center of gravity of the subject included in the latest image and the Y coordinate y2 of the center of gravity of the subject included in the image immediately before the latest image, as Y Derived as a change amount Y1 (= y1-y2) of movement along the axial direction. The second movement change amount deriving unit 132 also includes the Y coordinate y2 of the center of gravity of the subject included in the image immediately before the latest image and the Y of the center of gravity of the subject included in the image two images before the latest image. The difference from the coordinate y2 is derived as the movement change amount Y2 (= y2-y3) along the Y-axis direction.

移動検出部134は、被写体の輝度変化量、面積変化量、X軸方向およびY軸方向に沿った被写体の移動変化量に基づいて、被写体の移動を検出し、移動検出結果を検出結果保持部136に登録する。   The movement detection unit 134 detects the movement of the subject based on the luminance change amount, the area change amount of the subject, the movement change amount of the subject along the X-axis direction and the Y-axis direction, and the movement detection result is a detection result holding unit. 136 is registered.

移動検出部134は、X軸方向に沿った被写体の移動変化量の大きさ(絶対値)が第1基準量以上の場合、X軸方向に沿った被写体の移動変化量に基づいて、X方向に沿った被写体の移動を検出してもよい。移動検出部134は、X軸方向に沿った被写体の移動変化量が予め定められた閾値A以上の場合、または閾値−A以下の場合に、X方向に沿った被写体の移動を検出してもよい。   When the magnitude (absolute value) of the movement change amount of the subject along the X-axis direction is greater than or equal to the first reference amount, the movement detection unit 134 determines the X direction based on the movement change amount of the subject along the X-axis direction. The movement of the subject along the line may be detected. The movement detection unit 134 may detect movement of the subject along the X direction when the amount of change in movement of the subject along the X-axis direction is equal to or greater than a predetermined threshold A or equal to or less than the threshold −A. Good.

移動検出部134は、X軸方向に沿った被写体の移動変化量の大きさ(絶対値)が第1基準量より小さく、かつ第1基準量より小さい第2基準量以上の場合、被写体の面積変化量および輝度変化量に基づいて、Z軸方向に沿った被写体の移動を検出してもよい。移動検出部134は、X軸方向に沿った被写体の移動変化量が閾値Aより小さく予め定められた閾値B以上の場合に、被写体の面積変化量および輝度変化量に基づいて、Z軸方向に沿った被写体の移動を検出してもよい。移動検出部134は、X軸方向に沿った被写体の移動変化量が閾値−Aより大きく予め定められた閾値−B以下の場合に、被写体の面積変化量および輝度変化量に基づいて、Z軸方向に沿った被写体の移動を検出してもよい。   When the magnitude (absolute value) of the movement change amount of the subject along the X-axis direction is smaller than the first reference amount and equal to or larger than the second reference amount that is smaller than the first reference amount, the movement detection unit 134 The movement of the subject along the Z-axis direction may be detected based on the change amount and the luminance change amount. When the movement change amount of the subject along the X-axis direction is smaller than the threshold A and greater than or equal to the predetermined threshold B, the movement detection unit 134 moves in the Z-axis direction based on the subject area change amount and the luminance change amount. The movement of the subject along may be detected. When the movement change amount of the subject along the X-axis direction is larger than the threshold value -A and less than or equal to a predetermined threshold value -B, the movement detection unit 134 performs the Z-axis operation based on the subject area change amount and the luminance change amount. The movement of the subject along the direction may be detected.

移動検出部134は、Y軸方向に沿った被写体の移動変化量の大きさ(絶対値)が第3基準量以上の場合、Y軸方向に沿った被写体の移動変化量に基づいて、Y軸方向に沿った被写体の移動を検出してもよい。移動検出部134は、Y軸方向に沿った被写体の移動変化量が閾値A以上の場合、または閾値−A以下の場合に、Y方向に沿った被写体の移動を検出してもよい。   When the magnitude (absolute value) of the movement change amount of the subject along the Y-axis direction is greater than or equal to the third reference amount, the movement detection unit 134 determines the Y-axis based on the movement change amount of the subject along the Y-axis direction. The movement of the subject along the direction may be detected. The movement detection unit 134 may detect the movement of the subject along the Y direction when the amount of movement change of the subject along the Y-axis direction is equal to or greater than the threshold A or equal to or less than the threshold −A.

移動検出部134は、Y軸方向に沿った被写体の移動変化量の大きさが、第3基準量より小さく、かつ第3基準量より小さい第4基準量以上の場合、被写体の面積変化量および輝度変化量に基づいて、Z軸方向に沿った被写体の移動を検出してもよい。移動検出部134は、X軸方向に沿った被写体の移動変化量の大きさが、第1基準量より小さく、かつ第2基準量以上で、Y軸方向に沿った被写体の移動変化量の大きさが、第3基準量より小さく、かつ第3基準量より小さい第4基準量以上の場合、被写体の面積変化量および輝度変化量に基づいて、Z軸方向に沿った被写体の移動を検出してもよい。   When the magnitude of the movement change amount of the subject along the Y-axis direction is smaller than the third reference amount and greater than or equal to the fourth reference amount smaller than the third reference amount, the movement detection unit 134 The movement of the subject along the Z-axis direction may be detected based on the luminance change amount. The movement detection unit 134 has a magnitude of the movement change amount of the subject along the X-axis direction that is smaller than the first reference amount and greater than or equal to the second reference amount, and a magnitude of the movement change amount of the subject along the Y-axis direction. Is smaller than the third reference amount and equal to or larger than the fourth reference amount smaller than the third reference amount, the movement of the subject along the Z-axis direction is detected based on the subject area change amount and the luminance change amount. May be.

移動検出部134は、Y軸方向に沿った被写体の移動変化量が閾値Aより小さく閾値B以上の場合に、被写体の面積変化量および輝度変化量に基づいて、Z軸方向に沿った被写体の移動を検出してもよい。移動検出部134は、Y軸方向に沿った被写体の移動変化量が閾値−Aより大きく閾値−B以下の場合に、被写体の面積変化量および輝度変化量に基づいて、Z軸方向に沿った被写体の移動を検出してもよい。   When the movement change amount of the subject along the Y-axis direction is smaller than the threshold A and greater than or equal to the threshold B, the movement detection unit 134 determines whether the subject along the Z-axis direction is based on the area change amount and the luminance change amount of the subject. Movement may be detected. The movement detection unit 134 moves along the Z-axis direction based on the area change amount and the luminance change amount of the subject when the movement change amount of the subject along the Y-axis direction is larger than the threshold −A and equal to or smaller than the threshold −B. The movement of the subject may be detected.

移動検出部134は、X軸方向に沿った被写体の移動変化量が閾値Aより小さく閾値B以上で、Y軸方向に沿った被写体の移動変化量が閾値Aより小さく閾値B以上の場合に、被写体の面積変化量および輝度変化量に基づいて、Z軸方向に沿った被写体の移動を検出してもよい。移動検出部134は、X軸方向に沿った被写体の移動変化量が閾値−Aより大きく閾値−B以下で、Y軸方向に沿った被写体の移動変化量が閾値−Aより大きく閾値−B以下の場合に、被写体の面積変化量および輝度変化量に基づいて、Z軸方向に沿った被写体の移動を検出してもよい。   When the movement change amount of the subject along the X-axis direction is smaller than the threshold A and greater than or equal to the threshold B, and the movement change amount of the subject along the Y-axis direction is smaller than the threshold A and greater than or equal to the threshold B, the movement detection unit 134 The movement of the subject along the Z-axis direction may be detected based on the subject area change amount and the luminance change amount. The movement detection unit 134 has a movement change amount of the subject along the X-axis direction that is greater than the threshold value -A and less than or equal to the threshold value -B, and a movement change amount of the subject along the Y-axis direction is greater than the threshold value -A and less than or equal to the threshold value -B. In this case, the movement of the subject along the Z-axis direction may be detected based on the area change amount and the luminance change amount of the subject.

送受信部106は、演出制御部40からの要求に応じて、検出結果保持部136に登録された移動検出結果を演出制御部40に出力する。演出制御部40は、実行可能な演出に対応する移動方向に沿って被写体、例えば遊技者の手が移動したかどうかを判定するために、当該移動方向に沿った被写体の移動検出結果を移動検出装置100に要求する。送受信部106は、その要求を受けて、検出結果保持部136に登録された移動検出結果を参照して、指定された移動方向(X軸方向、Y軸方向、またはZ軸方向)に沿った被写体の移動の有無を示した移動検出結果を演出制御部40に送信する。   The transmission / reception unit 106 outputs the movement detection result registered in the detection result holding unit 136 to the effect control unit 40 in response to a request from the effect control unit 40. The effect control unit 40 detects the movement detection result of the subject along the moving direction in order to determine whether the subject, for example, the player's hand has moved along the moving direction corresponding to the executable effect. Request to device 100. In response to the request, the transmission / reception unit 106 refers to the movement detection result registered in the detection result holding unit 136 and follows the designated movement direction (X-axis direction, Y-axis direction, or Z-axis direction). A movement detection result indicating whether or not the subject has moved is transmitted to the effect control unit 40.

なお、遊技機10の演出制御部40または制御部30が移動検出装置100が備える一部の機能を備えてもよい。例えば、演出制御部40が、移動検出部134および検出結果保持部136を備えてもよい。さらに、演出制御部40が、輝度変化量導出部122、面積変化量導出部125、第1移動変化量導出部128および第2移動変化量導出部132を備えてもよい。   In addition, the production control unit 40 or the control unit 30 of the gaming machine 10 may have some functions included in the movement detection device 100. For example, the effect control unit 40 may include a movement detection unit 134 and a detection result holding unit 136. Further, the effect control unit 40 may include a luminance change amount deriving unit 122, an area change amount deriving unit 125, a first movement change amount deriving unit 128, and a second movement change amount deriving unit 132.

図8は、画像解析部110の処理手順の一例を示すフローチャートである。画像解析部110は、定期的にこの処理手順を繰り返す。まず、画像取得部112は、撮像部102から出力される8ビットグレースケール画像を取得する(S100)。次いで、2値化変換部114は、8ビットグレースケール画像を2値化画像に変換する(S102)。次いで、ラベリング処理部116は、2値化画像に対してラベリング処理を実行する(S104)。輝度変化量導出部122、面積変化量導出部125、第1移動変化量導出部128、および第2移動変化量導出部132は、輝度変化量、面積変化量、X軸方向およびY軸方向の移動の変化量を導出する。移動検出部134は、輝度変化量、面積変化量、X軸方向およびY軸方向の移動の変化量に基づいて、被写体の移動を検出する(S106)。移動検出部134は、被写体の移動検出結果を検出結果保持部136に登録する(S108)。   FIG. 8 is a flowchart illustrating an example of a processing procedure of the image analysis unit 110. The image analysis unit 110 periodically repeats this processing procedure. First, the image acquisition unit 112 acquires an 8-bit grayscale image output from the imaging unit 102 (S100). Next, the binarization conversion unit 114 converts the 8-bit grayscale image into a binarized image (S102). Next, the labeling processing unit 116 performs a labeling process on the binarized image (S104). The luminance change amount deriving unit 122, the area change amount deriving unit 125, the first movement change amount deriving unit 128, and the second movement change amount deriving unit 132 are the luminance change amount, the area change amount, the X axis direction, and the Y axis direction. The amount of movement change is derived. The movement detection unit 134 detects the movement of the subject based on the luminance change amount, the area change amount, and the change amount of the movement in the X-axis direction and the Y-axis direction (S106). The movement detection unit 134 registers the movement detection result of the subject in the detection result holding unit 136 (S108).

以上の処理手順により、画像解析部110は、画像を取得するごとに被写体の移動検出結果を更新する。   With the above processing procedure, the image analysis unit 110 updates the movement detection result of the subject every time an image is acquired.

図9A、図9B、および図9Cは、移動検出部134の被写体の移動を検出する移動検出処理の手順の一例を示すフローチャートである。移動検出部134は、画像取得部112が画像を取得するごとに移動検出処理を実行する。   9A, 9B, and 9C are flowcharts illustrating an example of a procedure of movement detection processing for detecting movement of the subject of the movement detection unit 134. FIG. The movement detection unit 134 performs a movement detection process every time the image acquisition unit 112 acquires an image.

図9Aにおいて、移動検出部134は、被写体の面積を取得し(S200)、被写体の面積が閾値St以上か否かを判定する(S202)。被写体の面積が閾値St以下の場合、移動検出部134は、保持画像枚数を0にして(S204)、被写体の移動を検出しなかったと判断して(S268(図9C))、移動検出処理を終了する。一方、被写体の面積が閾値St以上の場合、移動検出部134は、保持画像枚数をインクリメントする(S206)。移動検出部134は、重心座標を画像に関連づけて記憶する(S208)。   In FIG. 9A, the movement detection unit 134 acquires the area of the subject (S200), and determines whether the area of the subject is equal to or greater than the threshold value St (S202). When the area of the subject is equal to or smaller than the threshold value St, the movement detection unit 134 sets the number of retained images to 0 (S204), determines that no movement of the subject has been detected (S268 (FIG. 9C)), and performs movement detection processing. finish. On the other hand, when the area of the subject is equal to or larger than the threshold value St, the movement detection unit 134 increments the number of retained images (S206). The movement detection unit 134 stores the barycentric coordinates in association with the image (S208).

次いで、移動検出部134は、保持画像が3枚以上か否かを判定する(S210)。保持画像が3枚より少ない場合には、移動検出処理を終了する。保持画像が3枚以上の場合、移動検出部134は、3枚の保持画像についてのX−Y軸方向の重心座標における被写体の移動の変化量X1(=x1−x2),X2(=x2−x3),Y1(=y1―y2),およびY2(y2−y3)を取得する(S212)。ここで、x1およびy1は、最新の画像I1の被写体の重心座標を示す。x2およびy2は、最新の画像より1枚前の画像I2の被写体の重心座標を示す。x3およびy3は、最新の画像より2枚前の画像I3の被写体の重心座標を示す。   Next, the movement detection unit 134 determines whether there are three or more held images (S210). If the number of retained images is less than 3, the movement detection process is terminated. When the number of held images is three or more, the movement detection unit 134 changes the amount of change X1 (= x1-x2), X2 (= x2-) of the movement of the subject in the center-of-gravity coordinates in the XY axis direction for the three held images. x3), Y1 (= y1-y2), and Y2 (y2-y3) are acquired (S212). Here, x1 and y1 indicate the center-of-gravity coordinates of the subject of the latest image I1. x2 and y2 indicate the barycentric coordinates of the subject of the image I2 immediately before the latest image. x3 and y3 indicate the barycentric coordinates of the subject of the image I3 two images before the latest image.

移動検出部134は、変化量X1が閾値A以上か否かを判定する(S214)。つまり、移動検出部134は、画像I2から画像I1の間に被写体がX軸+方向に移動したか否かを判定する。変化量X1が閾値A以上の場合には、さらに移動検出部134は、変化量X2が閾値A以上か否かを判定する(S216)。変化量X2が閾値A以上の場合には、画像I3から画像I1の間に被写体がX軸+方向に移動している可能性が高いので、移動検出部134は、被写体がX軸+方向に移動したことを検出し(S218)、移動検出処理を終了する。一方、変化量X2が閾値Aより小さい場合には、画像I3から画像I1にかけて被写体がX軸+方向に移動している可能性が低いので、移動検出部134は、被写体のX軸+方向への移動はないと判断して、次の処理(図9Bに示す処理)に移行する。   The movement detection unit 134 determines whether or not the change amount X1 is greater than or equal to the threshold A (S214). That is, the movement detection unit 134 determines whether or not the subject has moved in the X axis + direction between the image I2 and the image I1. If the amount of change X1 is greater than or equal to the threshold A, the movement detector 134 further determines whether or not the amount of change X2 is greater than or equal to the threshold A (S216). When the change amount X2 is equal to or greater than the threshold value A, there is a high possibility that the subject has moved in the X axis + direction between the image I3 and the image I1, and therefore the movement detection unit 134 causes the subject to move in the X axis + direction. The movement is detected (S218), and the movement detection process is terminated. On the other hand, when the change amount X2 is smaller than the threshold value A, since there is a low possibility that the subject has moved in the X axis + direction from the image I3 to the image I1, the movement detection unit 134 moves in the X axis + direction of the subject. It is determined that there is no movement, and the process proceeds to the next process (the process shown in FIG. 9B).

変化量X1が閾値Aより小さい場合には、移動検出部134は、変化量X1が閾値−A以下か否かを判定する(S220)。つまり、移動検出部134は、画像I2から画像I1の間に被写体がX軸−方向に移動したか否かを判定する。変化量X1が閾値−A以下の場合には、移動検出部134は、変化量X2が閾値−A以下か否かを判定する(S222)。変化量X2が閾値−A以下の場合には、画像I3から画像I1の間に被写体がX軸−方向に移動している可能性が高いので、移動検出部134は、被写体がX軸−方向に移動したことを検出し(S224)、移動検出処理を終了する。   When the change amount X1 is smaller than the threshold value A, the movement detection unit 134 determines whether or not the change amount X1 is equal to or less than the threshold value -A (S220). That is, the movement detection unit 134 determines whether or not the subject has moved in the X-axis direction between the image I2 and the image I1. When the change amount X1 is equal to or less than the threshold −A, the movement detection unit 134 determines whether or not the change amount X2 is equal to or less than the threshold −A (S222). When the change amount X2 is equal to or smaller than the threshold −A, there is a high possibility that the subject has moved in the X-axis direction between the image I3 and the image I1, and therefore the movement detection unit 134 causes the subject to move in the X-axis direction. Is detected (S224), and the movement detection process is terminated.

変化量X1またはX2が閾値−Aより大きい場合には、移動検出部134は、被写体のX軸−方向への移動はないと判断して、次の処理(図9Bに示す処理)に移行する。   When the amount of change X1 or X2 is larger than the threshold −A, the movement detection unit 134 determines that the subject does not move in the X-axis direction, and proceeds to the next process (the process illustrated in FIG. 9B). .

図9Bにおいて、移動検出部134は、変化量Y1が閾値A以上か否かを判定する(S226)。つまり、移動検出部134は、画像I2から画像I1の間に被写体がY軸+方向に移動したか否かを判定する。変化量Y1が閾値A以上の場合には、さらに移動検出部134は、変化量Y2が閾値A以上か否かを判定する(S228)。変化量Y2が閾値A以上の場合には、画像I3から画像I1の間に被写体がY軸+方向に移動している可能性が高いので、移動検出部134は、被写体がY軸+方向に移動したことを検出し(S230)、移動検出処理を終了する。一方、変化量Y2が閾値Aより小さい場合には、画像I3から画像I1にかけて被写体がY軸+方向に移動している可能性が低いので、移動検出部134は、被写体のY軸+方向への移動はないと判断して、次の処理(S238)に移行する。   In FIG. 9B, the movement detection unit 134 determines whether or not the amount of change Y1 is greater than or equal to the threshold A (S226). That is, the movement detection unit 134 determines whether or not the subject has moved in the Y axis + direction between the image I2 and the image I1. If the change amount Y1 is greater than or equal to the threshold A, the movement detection unit 134 further determines whether or not the change amount Y2 is greater than or equal to the threshold A (S228). When the amount of change Y2 is greater than or equal to the threshold value A, there is a high possibility that the subject has moved in the Y axis + direction between the image I3 and the image I1, and therefore the movement detection unit 134 causes the subject to move in the Y axis + direction. The movement is detected (S230), and the movement detection process is terminated. On the other hand, when the change amount Y2 is smaller than the threshold value A, since there is a low possibility that the subject has moved in the Y axis + direction from the image I3 to the image I1, the movement detection unit 134 moves in the Y axis + direction of the subject. Therefore, the process proceeds to the next process (S238).

変化量Y1が閾値Aより小さい場合には、移動検出部134は、変化量Y1が閾値−A以下か否かを判定する(S232)。つまり、移動検出部134は、画像I2から画像I1の間に被写体がY軸−方向に移動したか否かを判定する。変化量Y1が閾値−A以下の場合には、移動検出部134は、変化量Y2が閾値−A以下か否かを判定する(S234)。変化量Y2が閾値−A以下の場合には、画像I3から画像I1の間に被写体がY軸−方向に移動している可能性が高いので、移動検出部134は、被写体がY軸−方向に移動したことを検出し(S236)、移動検出処理を終了する。   When the change amount Y1 is smaller than the threshold value A, the movement detection unit 134 determines whether or not the change amount Y1 is equal to or less than the threshold value -A (S232). That is, the movement detection unit 134 determines whether or not the subject has moved in the Y-axis direction between the image I2 and the image I1. When the change amount Y1 is equal to or smaller than the threshold −A, the movement detection unit 134 determines whether or not the change amount Y2 is equal to or smaller than the threshold −A (S234). When the change amount Y2 is equal to or smaller than the threshold −A, there is a high possibility that the subject has moved in the Y-axis direction between the image I3 and the image I1, and therefore the movement detection unit 134 causes the subject to move in the Y-axis direction. Is detected (S236), and the movement detection process is terminated.

変化量Y1またはY2が閾値−Aより大きい場合には、移動検出部134は、被写体のY軸−方向への移動はないと判断して、次の処理(S238)に移行する。   If the change amount Y1 or Y2 is larger than the threshold −A, the movement detection unit 134 determines that the subject does not move in the Y-axis direction, and proceeds to the next process (S238).

移動検出部134は、被写体のX軸方向およびY軸方向に沿った移動はないと判断した場合、被写体のZ軸方向への移動の可能性を判断すべく、変化量X1が閾値Aより小さい閾値B以上か否かを判定する(S238)。変化量X1が閾値B以上である場合、移動検出部134は、さらに変化量X2が閾値B以上か否かを判定する(S240)。変化量X2が閾値B以上の場合には、被写体のZ軸方向への移動の可能性があるので、被写体のZ軸方向への移動の有無を判定する次の処理(図9Cに示す処理)に移行する。変化量X1またはX2が閾値Bの条件を満たさない場合には、移動検出部134は、被写体の移動を検出しなかったと判断して(S268(図9C))、移動検出処理を終了する。   When the movement detection unit 134 determines that the subject does not move along the X-axis direction and the Y-axis direction, the change amount X1 is smaller than the threshold A to determine the possibility of the subject moving in the Z-axis direction. It is determined whether or not it is equal to or greater than the threshold B (S238). When the change amount X1 is equal to or greater than the threshold value B, the movement detection unit 134 further determines whether or not the change amount X2 is equal to or greater than the threshold value B (S240). If the amount of change X2 is equal to or greater than the threshold value B, there is a possibility that the subject may move in the Z-axis direction, so the next process for determining whether or not the subject has moved in the Z-axis direction (the process shown in FIG. 9C). Migrate to When the change amount X1 or X2 does not satisfy the condition of the threshold value B, the movement detection unit 134 determines that the movement of the subject has not been detected (S268 (FIG. 9C)), and ends the movement detection process.

図9Cにおいて、移動検出部134は、被写体の輝度の変化量H1(=E1−E2)およびH2(=E2−E3)、並びに被写体の面積の変化量J1(=S1−S2)および変化量J2(=S2−S3)を取得する(S250)。ここで、E1およびS1は、画像I1の被写体の輝度および面積を示す。E2およびS2は、画像I2の被写体の輝度および面積を示す。E3およびS3は、画像I3の被写体の輝度および面積を示す。   In FIG. 9C, the movement detection unit 134 changes the subject brightness changes H1 (= E1-E2) and H2 (= E2-E3), the subject area change amount J1 (= S1-S2), and the change amount J2. (= S2-S3) is acquired (S250). Here, E1 and S1 indicate the luminance and area of the subject of the image I1. E2 and S2 indicate the luminance and area of the subject of the image I2. E3 and S3 indicate the luminance and area of the subject of the image I3.

移動検出部134は、輝度の変化量H1が閾値C以上か否かを判定する(S252)。つまり、移動検出部134は、画像I2から画像I1の間に被写体が明るくなったか否かを判定する。輝度の変化量H1が閾値C以上の場合、移動検出部134は、さらに輝度の変化量H2が閾値C以上か否かを判定する(S254)。輝度の変化量H2が閾値C以上の場合には、移動検出部134は、面積の変化量J1およびJ2が0より小さいか否かを判定する(S256)。つまり、移動検出部134は、画像I3から画像I1の間に被写体の面積が徐々に小さくなっているか否かを判定する。   The movement detection unit 134 determines whether or not the luminance change amount H1 is greater than or equal to the threshold value C (S252). That is, the movement detection unit 134 determines whether the subject has become brighter between the image I2 and the image I1. When the luminance change amount H1 is greater than or equal to the threshold C, the movement detection unit 134 further determines whether or not the luminance change amount H2 is greater than or equal to the threshold C (S254). When the luminance change amount H2 is equal to or greater than the threshold C, the movement detection unit 134 determines whether the area change amounts J1 and J2 are smaller than 0 (S256). That is, the movement detection unit 134 determines whether or not the area of the subject gradually decreases between the image I3 and the image I1.

面積の変化量J1およびJ2が0より小さい場合、移動検出部134は、被写体がZ軸+方向に移動したことを検出し(S258)、移動検出処理を終了する。変化量H2が閾値Cより小さい場合、または面積の変化量J1およびJ2の少なくとも一方が0以上の場合、移動検出部134は、被写体の移動を検出しなかったと判断して(S268)、移動検出処理を終了する。   When the area change amounts J1 and J2 are smaller than 0, the movement detection unit 134 detects that the subject has moved in the Z-axis + direction (S258), and ends the movement detection process. When the change amount H2 is smaller than the threshold C, or when at least one of the area change amounts J1 and J2 is 0 or more, the movement detecting unit 134 determines that the movement of the subject has not been detected (S268), and detects the movement. The process ends.

輝度の変化量H1が閾値C以上でない場合、移動検出部134は、輝度の変化量H1が閾値−C以上か否かを判定する(S260)。つまり、移動検出部134は、画像I2から画像I1の間に被写体が暗くなったか否かを判定する。輝度の変化量H1が閾値−C以下の場合、移動検出部134は、さらに輝度の変化量H2が閾値−C以下か否かを判定する(S262)。輝度の変化量H2が閾値−C以下の場合、移動検出部134は、面積の変化量J1およびJ2が0より大きいか否かを判定する(S264)。つまり、移動検出部134は、画像I3から画像I1の間に被写体の面積が徐々に大きくなっているか否かを判定する。   If the luminance change amount H1 is not equal to or greater than the threshold C, the movement detection unit 134 determines whether the luminance change amount H1 is equal to or greater than the threshold −C (S260). That is, the movement detection unit 134 determines whether or not the subject has become dark between the image I2 and the image I1. When the luminance change amount H1 is equal to or less than the threshold −C, the movement detection unit 134 further determines whether the luminance change amount H2 is equal to or less than the threshold −C (S262). When the luminance change amount H2 is equal to or smaller than the threshold −C, the movement detection unit 134 determines whether or not the area change amounts J1 and J2 are larger than 0 (S264). That is, the movement detection unit 134 determines whether or not the area of the subject gradually increases between the image I3 and the image I1.

面積の変化量J1およびJ2が0より大きい場合、移動検出部134は、被写体がZ軸−方向に移動したことを検出し(S266)、移動検出処理を終了する。変化量H1または変化量H2が閾値−Cより大きい場合、または面積の変化量J1およびJ2の少なくとも一方が0以下の場合、移動検出部134は、被写体の移動を検出しなかったと判断して(S268)、移動検出処理を終了する。   When the area changes J1 and J2 are larger than 0, the movement detection unit 134 detects that the subject has moved in the Z-axis-direction (S266), and ends the movement detection process. If the change amount H1 or the change amount H2 is greater than the threshold −C, or if at least one of the area change amounts J1 and J2 is 0 or less, the movement detection unit 134 determines that the movement of the subject has not been detected ( S268), the movement detection process is terminated.

以上のように、移動検出部134は、被写体のX−Y軸に沿った移動の変化量の大きさに応じてZ軸方向の移動の可能性があるか否かを判断する。そして、移動検出部134は、被写体のZ軸方向への移動の可能性があると判断した場合に、被写体の面積および輝度の変化量に基づいて、被写体のZ軸方向への移動を検出する。これにより、移動検出部134は、例えば、手首を基点としてZ軸方向に沿って移動する遊技者の手の動きをより精度よく検出することができる。   As described above, the movement detection unit 134 determines whether or not there is a possibility of movement in the Z-axis direction according to the amount of change in movement of the subject along the XY axis. Then, when the movement detection unit 134 determines that there is a possibility of movement of the subject in the Z-axis direction, the movement detection unit 134 detects movement of the subject in the Z-axis direction based on the area of the subject and the amount of change in luminance. . Thereby, for example, the movement detection unit 134 can detect the movement of the player's hand moving along the Z-axis direction with the wrist as a base point with higher accuracy.

図10は、遊技球が入賞した場合の遊技機10の処理手順の一例を示すフローチャートを示す。   FIG. 10 is a flowchart showing an example of a processing procedure of the gaming machine 10 when a game ball is won.

入力信号制御部32は、入賞センサ18から入賞信号を受信した場合(S300)、大当たり抽選部36は、大当たり抽選を実行する(S302)。遊技機制御部34は、大当たり抽選の結果を受けて、遊技機演出の内容を決定すべく、遊技機演出抽選を実行する(S304)。遊技機制御部34は、遊技機演出抽選の結果、決定された演出内容を示す演出命令をデータ送信部38を介して演出制御部40に送信する。   When the input signal control unit 32 receives a winning signal from the winning sensor 18 (S300), the jackpot lottery unit 36 executes a jackpot lottery (S302). The gaming machine control unit 34 receives the result of the jackpot lottery, and executes the gaming machine presentation lottery to determine the contents of the gaming machine presentation (S304). The gaming machine control unit 34 transmits to the effect control unit 40 via the data transmission unit 38 an effect command indicating the content of the effect determined as a result of the gaming machine effect lottery.

演出制御部40は、演出命令に示される演出を実行するために、被写体の移動を検出する必要があるか否かを判定する(S306)。移動体の移動の検出、例えば遊技者の手の特定の移動方向への移動を検出する必要がある場合、指示部44は、遊技者に手を特定の方向に動かすように促す催促画面を表示装置14に表示させる。指示部44は、例えば、図11Aの画面310、図11Bの画面320、または図11Cの画面330に示すような画面を表示装置14に表示させ、遊技者に特定の移動方向に手を動かすことを催促する。   The effect control unit 40 determines whether it is necessary to detect the movement of the subject in order to execute the effect indicated by the effect command (S306). When it is necessary to detect the movement of the moving body, for example, the movement of the player's hand in a specific movement direction, the instruction unit 44 displays a prompting screen that prompts the player to move the hand in a specific direction. It is displayed on the device 14. For example, the instruction unit 44 causes the display device 14 to display a screen as shown in the screen 310 in FIG. 11A, the screen 320 in FIG. 11B, or the screen 330 in FIG. 11C, and moves the player's hand in a specific movement direction. Remind you.

さらに、演出制御部40は、移動検出装置100に特定の移動方向への被写体の移動検出結果を要求すべく、移動検出装置100に検出対象の移動方向を指示し(S308)、演出タイマを起動する(S310)。   Further, the production control unit 40 instructs the movement detection device 100 about the movement direction of the detection target to request the movement detection device 100 to detect the movement of the subject in the specific movement direction (S308), and starts the production timer. (S310).

次いで、演出制御部40は、移動検出装置100から検出対象の移動方向に対する被写体の移動検出結果を取得する(S312)。演出実行部50は、移動検出結果に基づいて、検出対象の移動方向への被写体の移動を検出したか否かを判定する(S314)。検出対象の移動方向への被写体の移動が検出された場合、演出実行部50は、移動演出として、検出対象の移動方向に応じた移動検出用の演出を実行する(S316)。表示装置制御部52は、例えば、検出対象の移動方向にキャラクタが移動する画像を表示し、音響装置制御部54は、画像に応じた音響を音響装置22に出力させる。表示装置制御部52は、例えば、第1演出の一例である図11Aの画面312、第2演出の一例である図11Bの画面322、または第3演出の一例である図11Cの画面332に示すような移動方向に応じた画面を表示装置14に表示させる。   Next, the effect control unit 40 acquires the movement detection result of the subject with respect to the movement direction of the detection target from the movement detection device 100 (S312). The effect execution unit 50 determines whether the movement of the subject in the movement direction of the detection target is detected based on the movement detection result (S314). When the movement of the subject in the movement direction of the detection target is detected, the effect execution unit 50 executes an effect for movement detection corresponding to the movement direction of the detection target as the movement effect (S316). For example, the display device control unit 52 displays an image in which the character moves in the moving direction of the detection target, and the sound device control unit 54 causes the sound device 22 to output sound according to the image. The display device control unit 52 shows, for example, the screen 312 in FIG. 11A as an example of the first effect, the screen 322 in FIG. 11B as an example of the second effect, or the screen 332 in FIG. 11C as an example of the third effect. A screen corresponding to the moving direction is displayed on the display device 14.

検出対象の移動方向に応じた移動演出の実行後、演出実行部50は、結果演出として、大当たり抽選の結果を通知するための抽選結果用の演出を実行する(S318)。表示装置制御部52は、大当たり抽選の結果を示す抽選結果画面を表示装置14に表示させる。表示装置制御部52は、例えば、図11Aの画面314、図11Bの画面324、または図11Cの画面334に示すような抽選結果画面を表示装置14に表示させる。   After the execution of the movement effect according to the movement direction of the detection target, the effect execution unit 50 executes an effect for the lottery result for notifying the result of the jackpot lottery as the result effect (S318). The display device control unit 52 causes the display device 14 to display a lottery result screen indicating the result of the big hit lottery. For example, the display device control unit 52 causes the display device 14 to display a lottery result screen as shown on the screen 314 in FIG. 11A, the screen 324 in FIG. 11B, or the screen 334 in FIG. 11C.

検出対象の移動方向への被写体の移動が検出されなかった場合、演出制御部40は、演出タイマがタイムアウトしたか否かを判定する(S320)。演出タイマがタイムアウトしていなければ、演出制御部40は、移動検出装置100から再び被写体の移動検出結果を取得する。演出タイマがタイムアウトしている場合には、演出実行部50は、移動演出として移動検出用の演出を実行せずに、結果演出として大当たり抽選の結果を通知するための抽選結果用の演出を実行する(S318)。   When the movement of the subject in the movement direction of the detection target is not detected, the effect control unit 40 determines whether or not the effect timer has timed out (S320). If the production timer has not timed out, the production control unit 40 acquires the movement detection result of the subject from the movement detection device 100 again. When the effect timer has timed out, the effect executing unit 50 executes the effect for the lottery result for notifying the result of the jackpot lottery as the result effect without executing the effect for detecting the movement as the movement effect. (S318).

移動体の移動の検出が必要ない場合、演出制御部40は、結果演出前に移動演出を実行する必要があるか否かを判定する(S322)。移動演出の実行が必要な場合には、演出実行部50は、被写体の移動を検出した場合と同様に、抽選結果を通知する前に、移動演出として、キャラクタが移動する画面の表示などの演出を実行する(S312)。移動演出の実行が必要ない場合、演出実行部50は、結果演出として抽選結果用の演出を実行する(S318)。   When it is not necessary to detect the movement of the moving body, the effect control unit 40 determines whether it is necessary to execute the moving effect before the result effect (S322). When it is necessary to execute the movement effect, the effect execution unit 50 displays the screen on which the character moves as the movement effect before notifying the lottery result, similarly to the case where the movement of the subject is detected. Is executed (S312). When it is not necessary to execute the movement effect, the effect execution unit 50 executes an effect for the lottery result as a result effect (S318).

以上の取り、本実施形態に係る遊技機10によれば、移動検出装置100による被写体のX,Y,Z軸方向への移動の検出結果に応じて、演出を実行することができる。   As described above, according to the gaming machine 10 according to the present embodiment, an effect can be executed according to the detection result of the movement of the subject in the X, Y, and Z axis directions by the movement detection device 100.

なお、本実施形態に係る移動検出装置100が備える各部は、コンピュータ読み取り可能な記録媒体に記憶され、被写体の移動検出に関する各種処理を行うプログラムをインストールし、このプログラムをコンピュータに実行させることで、構成してもよい。つまり、コンピュータに被写体の移動検出に関する各種処理を行うプログラムを実行させることにより、移動検出装置100が備える各部としてコンピュータを機能させることで、移動検出装置100を構成してもよい。   Each unit included in the movement detection apparatus 100 according to the present embodiment is stored in a computer-readable recording medium, and a program for performing various processes related to the movement detection of the subject is installed, and the program is executed by the computer. It may be configured. That is, the movement detection apparatus 100 may be configured by causing a computer to function as each unit included in the movement detection apparatus 100 by causing a computer to execute a program for performing various processes related to movement detection of a subject.

コンピュータはCPU、ROM、RAM、EEPROM(登録商標)等の各種メモリ、通信バス及びインタフェースを有し、予めファームウェアとしてROMに格納された処理プログラムをCPUが読み出して順次実行することで、移動検出装置100として機能する。   The computer has various memories such as a CPU, ROM, RAM, and EEPROM (registered trademark), a communication bus, and an interface. The CPU reads a processing program stored in advance in the ROM as firmware and sequentially executes the movement detection device. It functions as 100.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更または改良を加えることが可能であることが当業者に明らかである。その様な変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above-described embodiment. It is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention.

特許請求の範囲、明細書、および図面中において示した装置、システム、プログラム、および方法における動作、手順、ステップ、および段階等の各処理の実行順序は、特段「より前に」、「先立って」等と明示しておらず、また、前の処理の出力を後の処理で用いるのでない限り、任意の順序で実現しうることに留意すべきである。特許請求の範囲、明細書、および図面中の動作フローに関して、便宜上「まず、」、「次に、」等を用いて説明したとしても、この順で実施することが必須であることを意味するものではない。   The order of execution of each process such as operations, procedures, steps, and stages in the apparatus, system, program, and method shown in the claims, the description, and the drawings is particularly “before” or “prior to”. It should be noted that the output can be realized in any order unless the output of the previous process is used in the subsequent process. Regarding the operation flow in the claims, the description, and the drawings, even if it is described using “first”, “next”, etc. for convenience, it means that it is essential to carry out in this order. It is not a thing.

10 遊技機
12 筐体
14 表示装置
16 ハンドルスイッチ
18 入賞センサ
20 玉発射装置
22 音響装置
30 制御部
32 入力信号制御部
34 遊技機制御部
36 大当たり抽選部
38 データ送信部
40 演出制御部
42 データ送受信部
44 指示部
50 演出実行部
52 表示装置制御部
54 音響装置制御部
100 移動検出装置
102 撮像部
104 赤外線発光部
106 送受信部
110 画像解析部
112 画像取得部
114 2値化変換部
116 ラベリング処理部
118 被写体特定部
120 輝度導出部
122 輝度変化量導出部
124 面積導出部
125 面積変化量導出部
126 第1位置情報導出部
128 第1移動変化量導出部
130 第2位置情報導出部
132 第2移動変化量導出部
134 移動検出部
136 検出結果保持部
DESCRIPTION OF SYMBOLS 10 Game machine 12 Case 14 Display apparatus 16 Handle switch 18 Prize sensor 20 Ball launcher 22 Sound apparatus 30 Control part 32 Input signal control part 34 Game machine control part 36 Big hit lottery part 38 Data transmission part 40 Production control part 42 Data transmission / reception Unit 44 instruction unit 50 effect execution unit 52 display device control unit 54 acoustic device control unit 100 movement detection device 102 imaging unit 104 infrared light emitting unit 106 transmission / reception unit 110 image analysis unit 112 image acquisition unit 114 binarization conversion unit 116 labeling processing unit 118 Subject Identification Unit 120 Luminance Deriving Unit 122 Brightness Change Deriving Unit 124 Area Deriving Unit 125 Area Change Deriving Unit 126 First Position Information Deriving Unit 128 First Movement Change Deriving Unit 130 Second Position Information Deriving Unit 132 Second Movement Change derivation unit 134 Movement detection unit 136 Detection result holding unit

Claims (8)

撮像部が連続的に撮像した複数の画像のそれぞれに含まれる被写体を特定する被写体特定部と、
前記複数の画像における前記被写体の面積および輝度に基づいて、前記撮像部の撮像面に垂直な第1方向に沿った前記被写体の移動を検出する移動検出部と
を備える移動検出装置。
A subject identifying unit that identifies a subject included in each of a plurality of images continuously captured by the imaging unit;
A movement detection apparatus comprising: a movement detection unit configured to detect movement of the subject along a first direction perpendicular to an imaging surface of the imaging unit based on an area and luminance of the subject in the plurality of images.
前記複数の画像における前記被写体の面積の変化量を導出する面積変化量導出部と、
前記複数の画像における前記被写体の輝度の変化量を導出する輝度変化量導出部と
をさらに備え、
前記移動検出部は、前記面積の変化量および前記輝度の変化量に基づいて、前記第1方向に沿った前記被写体の移動を検出する、請求項1に記載の移動検出装置。
An area change amount deriving unit for deriving an amount of change in the area of the subject in the plurality of images;
A luminance change amount deriving unit for deriving the amount of change in luminance of the subject in the plurality of images;
The movement detection apparatus according to claim 1, wherein the movement detection unit detects movement of the subject along the first direction based on the change amount of the area and the change amount of the luminance.
前記複数の画像において、前記被写体特定部が特定した前記被写体の前記撮像面に平行な第2方向に沿った移動の変化量を導出する第1移動変化量導出部をさらに備え、
前記移動検出部は、
前記第2方向に沿った前記移動の変化量が第1基準量以上の場合、前記第2方向に沿った前記移動の変化量に基づいて、前記第2方向に沿った前記被写体の移動を検出し、
前記第2方向に沿った前記移動の変化量が前記第1基準量より小さく、かつ前記第1基準量より小さい第2基準量以上の場合、前記面積の変化量および前記輝度の変化量に基づいて、前記第1方向に沿った前記被写体の移動を検出する、請求項2に記載の移動検出装置。
A first movement change amount deriving unit that derives a change amount of movement of the subject specified by the subject specifying unit along a second direction parallel to the imaging surface in the plurality of images;
The movement detector is
When the change amount of the movement along the second direction is equal to or larger than the first reference amount, the movement of the subject along the second direction is detected based on the change amount of the movement along the second direction. And
When the change amount of the movement along the second direction is smaller than the first reference amount and equal to or larger than a second reference amount smaller than the first reference amount, based on the change amount of the area and the change amount of the luminance. The movement detection device according to claim 2, wherein the movement of the subject along the first direction is detected.
前記複数の画像において、前記被写体特定部が特定した前記被写体の前記第2方向とは異なる前記撮像面に平行な第3方向に沿った移動の変化量を導出する第2移動変化量導出部をさらに備え、
前記移動検出部は、
前記第3方向に沿った前記移動の変化量が第3基準量以上の場合、前記第3方向に沿った前記移動の変化量に基づいて、前記第3方向に沿った前記被写体の移動を検出し、
前記第2方向に沿った前記移動の変化量が、前記第1基準量より小さく、かつ前記第2基準量以上で、前記第3方向に沿った前記移動の変化量が、前記第3基準量より小さく、かつ前記第3基準量より小さい第4基準量以上の場合、前記面積の変化量および前記輝度の変化量に基づいて、前記第1方向に沿った前記被写体の移動を検出する、請求項3に記載の移動検出装置。
A second movement change amount deriving unit for deriving a movement change amount along a third direction parallel to the imaging surface different from the second direction of the subject specified by the subject specifying unit in the plurality of images; In addition,
The movement detector is
When the change amount of the movement along the third direction is equal to or greater than a third reference amount, the movement of the subject along the third direction is detected based on the change amount of the movement along the third direction. And
The amount of change in movement along the second direction is smaller than the first reference amount and greater than or equal to the second reference amount, and the amount of change in movement along the third direction is the third reference amount. The movement of the subject along the first direction is detected based on the amount of change in the area and the amount of change in the brightness when the amount is smaller and the fourth reference amount is smaller than the third reference amount. Item 4. The movement detection device according to Item 3.
前記撮像部は、前記被写体の移動を検出する検出対象領域に向けて照射された特定の波長の光の反射光の受光量に応じた前記複数の画像を連続的に撮像する、請求項1から請求項4のいずれか1つに記載の移動検出装置。   The imaging unit continuously captures the plurality of images according to the amount of reflected light of a specific wavelength of light irradiated toward a detection target region for detecting movement of the subject. The movement detection apparatus according to claim 1. 前記移動検出部は、前記被写体の前記面積が小さくなる方向に変化し、かつ前記被写体の前記輝度が明るくなる方向に変化する場合、前記被写体が前記第1方向に沿って前記撮像部に近づく方向に移動したことを検出する、請求項1から請求項5のいずれか1つに記載の移動検出装置。   When the movement detection unit changes in a direction in which the area of the subject decreases and the luminance of the subject changes in a direction in which the luminance increases, the direction in which the subject approaches the imaging unit along the first direction The movement detection apparatus according to claim 1, wherein the movement detection apparatus detects that the movement is performed. 前記移動検出部は、前記被写体の前記面積が大きくなる方向に変化し、かつ前記被写体の前記輝度が暗くなる方向に変化する場合、前記被写体が前記第1方向に沿って前記撮像部から遠ざかる方向に移動したことを検出する、請求項1から請求項6のいずれか1つに記載の移動検出装置。   The movement detection unit is a direction in which the subject moves away from the imaging unit along the first direction when the area of the subject changes in a direction in which the area increases and the luminance of the subject changes in a direction in which the luminance decreases. The movement detection apparatus according to claim 1, wherein the movement detection apparatus detects that the movement is performed. 請求項1から請求項7のいずれか1つに記載の移動検出装置としてコンピュータを機能させるためのプログラム。   The program for functioning a computer as a movement detection apparatus as described in any one of Claims 1-7.
JP2013087478A 2013-04-18 2013-04-18 Movement detection apparatus and program Active JP6236847B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013087478A JP6236847B2 (en) 2013-04-18 2013-04-18 Movement detection apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013087478A JP6236847B2 (en) 2013-04-18 2013-04-18 Movement detection apparatus and program

Publications (2)

Publication Number Publication Date
JP2014211745A true JP2014211745A (en) 2014-11-13
JP6236847B2 JP6236847B2 (en) 2017-11-29

Family

ID=51931467

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013087478A Active JP6236847B2 (en) 2013-04-18 2013-04-18 Movement detection apparatus and program

Country Status (1)

Country Link
JP (1) JP6236847B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09265346A (en) * 1996-03-29 1997-10-07 Bijiyuaru Sci Kenkyusho:Kk Space mouse, mouse position detection device and visualization device
JP2000222097A (en) * 1996-10-18 2000-08-11 Toshiba Corp Solid state image pickup device
JP2006208626A (en) * 2005-01-27 2006-08-10 Sony Corp Autofocus controller, autofocus control method and imaging apparatus
JP2011018129A (en) * 2009-07-07 2011-01-27 Ritsumeikan Human interface device
JP2011154574A (en) * 2010-01-27 2011-08-11 Namco Bandai Games Inc Program, information storage medium, and game system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09265346A (en) * 1996-03-29 1997-10-07 Bijiyuaru Sci Kenkyusho:Kk Space mouse, mouse position detection device and visualization device
JP2000222097A (en) * 1996-10-18 2000-08-11 Toshiba Corp Solid state image pickup device
JP2006208626A (en) * 2005-01-27 2006-08-10 Sony Corp Autofocus controller, autofocus control method and imaging apparatus
JP2011018129A (en) * 2009-07-07 2011-01-27 Ritsumeikan Human interface device
JP2011154574A (en) * 2010-01-27 2011-08-11 Namco Bandai Games Inc Program, information storage medium, and game system

Also Published As

Publication number Publication date
JP6236847B2 (en) 2017-11-29

Similar Documents

Publication Publication Date Title
KR102322813B1 (en) 3d silhouette sensing system
US10453235B2 (en) Image processing apparatus displaying image of virtual object and method of displaying the same
EP3389020B1 (en) Information processing device, information processing method, and program
US8414393B2 (en) Game device, control method for a game device, and a non-transitory information storage medium
US20120219227A1 (en) Computer-readable storage medium, image recognition apparatus, image recognition system, and image recognition method
US8699749B2 (en) Computer-readable storage medium, image processing apparatus, image processing system, and image processing method
US8625898B2 (en) Computer-readable storage medium, image recognition apparatus, image recognition system, and image recognition method
JP2013061978A (en) Method and devices for real time insertion of virtual objects in image stream using data from real scene represented by the images
EP2158951A3 (en) Information processing apparatus, information processing method, and program
JP5756322B2 (en) Information processing program, information processing method, information processing apparatus, and information processing system
US8571266B2 (en) Computer-readable storage medium, image processing apparatus, image processing system, and image processing method
EP2161656A3 (en) Information processing apparatus, information processing method, and program for displaying images
RU2011141838A (en) INFORMATION PROCESSING DEVICE, INFORMATION PROCESSING METHOD AND PROGRAM
US11681910B2 (en) Training apparatus, recognition apparatus, training method, recognition method, and program
US8718325B2 (en) Computer-readable storage medium, image processing apparatus, image processing system, and image processing method
CN110456905A (en) Positioning and tracing method, device, system and electronic equipment
CN111228821A (en) Method, device and equipment for intelligently detecting wall-penetrating plug-in and storage medium thereof
WO2014111947A1 (en) Gesture control in augmented reality
JP6212918B2 (en) Game machine
JP6236847B2 (en) Movement detection apparatus and program
JPWO2022074833A5 (en) LIFE DETECTION DEVICE, CONTROL METHOD, AND PROGRAM
US20220377306A1 (en) Misaligned vantage point mitigation for computer stereo vision
JP6136516B2 (en) Game machine
US8705869B2 (en) Computer-readable storage medium, image recognition apparatus, image recognition system, and image recognition method
CN115424298A (en) Gesture recognition method and device and vehicle

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160304

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170323

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170425

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170530

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20171003

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171016

R150 Certificate of patent or registration of utility model

Ref document number: 6236847

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150