JP5817399B2 - Medal identification device and medal identification method - Google Patents

Medal identification device and medal identification method Download PDF

Info

Publication number
JP5817399B2
JP5817399B2 JP2011216543A JP2011216543A JP5817399B2 JP 5817399 B2 JP5817399 B2 JP 5817399B2 JP 2011216543 A JP2011216543 A JP 2011216543A JP 2011216543 A JP2011216543 A JP 2011216543A JP 5817399 B2 JP5817399 B2 JP 5817399B2
Authority
JP
Japan
Prior art keywords
medal
image
passage
control circuit
identification device
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.)
Active
Application number
JP2011216543A
Other languages
Japanese (ja)
Other versions
JP2013075015A (en
Inventor
良治 清水
良治 清水
雅思 佐藤
雅思 佐藤
宗治 宮腰
宗治 宮腰
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
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 filed Critical Omron Corp
Priority to JP2011216543A priority Critical patent/JP5817399B2/en
Publication of JP2013075015A publication Critical patent/JP2013075015A/en
Application granted granted Critical
Publication of JP5817399B2 publication Critical patent/JP5817399B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、メダルの投入を偽装する不正行為をメダルの投入として誤検出することを防止可能なメダル識別装置及びメダル識別方法に関する。   The present invention relates to a medal identification device and a medal identification method that can prevent an erroneous act of disguising the insertion of a medal from being erroneously detected as a medal insertion.

従来より、回胴遊技機などの遊技機には、有価価値を持つメダルが投入されると、そのメダルに応じて遊技者が遊技できる回数などを決定するために、投入されたメダルを識別するメダル識別装置が搭載されている。このようなメダル識別装置では、例えば、メダル識別装置内のメダルの通路に沿って、メダルが通過したことを検知するセンサが複数設けられる。各センサは、例えば、発光ダイオードなどの光源と、フォトダイオードなどの受光素子とを有し、その光源と受光素子とが、通路を挟んで対向し、光源からの光が受光素子に達するように設置される。そのため、メダルが光源と受光素子の間を通る瞬間だけ、メダルによって光源からの光が遮られ、その結果として受光素子により検知される受光量が低下することで、このセンサはメダルが通過したことを検知できる。さらに、メダル識別装置は、各センサがメダルが通過したことを検知した順番により、メダルの通過方向を検出できる。   Conventionally, when a medal having a valuable value is inserted into a gaming machine such as a spinning machine, the inserted medal is identified in order to determine the number of times a player can play according to the medal. A medal identification device is installed. In such a medal identification device, for example, a plurality of sensors for detecting that a medal has passed are provided along a medal passage in the medal identification device. Each sensor has, for example, a light source such as a light emitting diode and a light receiving element such as a photodiode, and the light source and the light receiving element are opposed to each other across a passage so that light from the light source reaches the light receiving element. Installed. Therefore, only when the medal passes between the light source and the light receiving element, the light from the light source is blocked by the medal, and as a result, the amount of received light detected by the light receiving element decreases, and this sensor has passed the medal. Can be detected. Furthermore, the medal identification device can detect the passing direction of the medal according to the order in which each sensor detects that the medal has passed.

しかし、近年、いわゆるクレマンと呼ばれる器具を用いて、メダルの投入を偽装する不正行為が問題となっている。この治具は、メダル識別装置のメダル投入口から挿入可能な板状の治具であり、先端に複数の発光ダイオードを有する。そして治具の手元側のスイッチを操作することにより、各発光ダイオードが、メダルが複数のセンサ間を通り抜ける時間と同程度の間隔で順番に明滅する。これにより、この治具は、メダル識別装置にメダルが投入されたと誤認識させる。このような不正行為を防止するために、センサの投光素子点灯時に、これと同期制御される受光部が受光しているか否かを判定する第1判定部と、センサの投光素子消灯時に受光部が受光していないか否かを判定する第2判定部とを備え、第1及び第2判定部により複数回の適正な受光/遮光であると判定された時、受光信号を出力する一方、第2判定部により投光素子消灯時に受光部が受光していると判定された時、次のタイミングで投光素子を点灯させないようにした投入メダル選別装置が提案されている(例えば、特許文献1を参照)。   However, in recent years, there has been a problem of fraudulent acts that disguise the insertion of medals using a so-called Clement. This jig is a plate-shaped jig that can be inserted from the medal slot of the medal identification device, and has a plurality of light emitting diodes at the tip. Then, by operating the switch on the hand side of the jig, each light-emitting diode blinks in turn at intervals similar to the time required for the medal to pass between the plurality of sensors. As a result, the jig erroneously recognizes that a medal has been inserted into the medal identification device. In order to prevent such an illegal act, when the light projecting element of the sensor is turned on, a first determination unit that determines whether or not the light receiving unit controlled in synchronization with the light receiving unit is receiving light, and when the light projecting element of the sensor is turned off A second determination unit that determines whether or not the light receiving unit is not receiving light, and outputs a light reception signal when the first and second determination units determine that the light reception / shading is appropriate multiple times. On the other hand, when the second determination unit determines that the light receiving unit is receiving light when the light projecting element is extinguished, an inserted medal sorting device is proposed in which the light projecting element is not turned on at the next timing (for example, (See Patent Document 1).

特開2005−270621号公報JP 2005-270621 A

しかし、特許文献1に開示された技術でも、投光素子の発光タイミングと同期して、不正行為用の治具の発光ダイオードを明滅させると、不正行為によるメダルの投入の偽装を完全に防止することができないおそれがあった。また、不正行為には、正規のメダルに紐を取り付け、その紐の一端を保持したままそのメダルをメダル投入口に投入し、メダル識別装置がメダルを識別した後に、紐を引いてメダルをメダル投入口から取り出す行為も知られている。しかし、特許文献1に開示された技術では、このような不正行為を防止することはできない。   However, even in the technique disclosed in Patent Document 1, if the light emitting diode of the jig for fraud is blinked in synchronization with the light emission timing of the light projecting element, camouflaging of medal insertion due to fraud is completely prevented. There was a risk of not being able to. In addition, for illegal acts, a string is attached to a regular medal, and the medal is inserted into the medal slot while holding one end of the string. The act of taking out from the slot is also known. However, the technique disclosed in Patent Document 1 cannot prevent such illegal acts.

そこで、本発明は、メダルの投入を偽装する不正行為によりメダルが投入されたと誤認識することを防止可能なメダル識別装置及びメダル識別方法を提供することを目的とする。   Accordingly, an object of the present invention is to provide a medal identification device and a medal identification method capable of preventing erroneous recognition that a medal has been inserted due to an illegal act of disguising the insertion of a medal.

本発明の一つの形態として、メダル識別装置が提供される。このメダル識別装置は、メダルが流下する通路を形成する筺体と、通路の一部を撮影範囲とするように配置され、その撮影範囲の画像を生成する撮像部と、画像から通路内に投入された物体が写っている領域を抽出し、その領域の外形形状がメダルの外形形状と一致する場合にメダルが投入されたと判定する制御回路とを有する。   As one aspect of the present invention, a medal identification device is provided. This medal identification device is provided with a housing that forms a passage through which medals flow down, an imaging unit that generates a part of the passage as a photographing range, and generates an image of the photographing range, and the image is inserted into the passage. And a control circuit that determines that a medal has been inserted when the outer shape of the region matches the outer shape of the medal.

このメダル識別装置において、制御回路は、物体の外形形状がメダルの外形形状と一致しない場合、不正行為が行われたと判定することが好ましい。   In this medal identification device, it is preferable that the control circuit determines that an illegal act has been performed when the outer shape of the object does not match the outer shape of the medal.

またこのメダル識別装置において、撮像部は、所定の時間間隔ごとに撮影範囲を撮影した画像を生成し、制御回路は、異なる時間に撮影された第1の画像及び第2の画像のそれぞれから通路内に投入された物体が写っている領域上の特定点を検出し、第1の画像上の特定点と第2の画像上の特定点間の距離を第1の画像が撮影された時刻と第2の画像が撮影された時刻との差で割ることによってその物体の移動方向及び移動速度を推定し、推定された移動方向が通路を流下するメダルの移動方向と一致しないか、あるいは推定された移動速度が、通路を流下するメダルの移動速度の基準範囲に含まれなければ、不正行為が行われたと判定することが好ましい。   Further, in this medal identification device, the imaging unit generates an image in which the imaging range is captured at predetermined time intervals, and the control circuit passes from each of the first image and the second image captured at different times. A specific point on a region in which an object put in is detected, and the distance between the specific point on the first image and the specific point on the second image is the time when the first image is captured The movement direction and movement speed of the object are estimated by dividing by the difference from the time when the second image was taken, and the estimated movement direction does not coincide with the movement direction of the medals flowing down the passage. If the moving speed is not included in the reference range of the moving speed of medals flowing down the passage, it is preferable to determine that an illegal act has been performed.

さらに、本発明の他の形態として、メダルが流下する通路を形成する筺体と、通路の一部を撮影範囲とするように配置され、その撮影範囲の画像を生成する撮像部とを有するメダル識別装置における、メダル識別方法が提供される。このメダル識別方法は、画像から、通路内に投入された物体が写っている領域を抽出するステップと、その領域の外形形状がメダルの外形形状と一致するか否か判定し、一致する場合にメダルが投入されたと判定するステップとを含む。   Furthermore, as another aspect of the present invention, a medal identification having a housing that forms a passage through which medals flow down and an imaging unit that is arranged so that a part of the passage is set as a shooting range and generates an image of the shooting range. A medal identification method in an apparatus is provided. In this medal identification method, a step of extracting an area in which an object put in a passage is extracted from an image, and whether or not the outer shape of the area matches the outer shape of the medal are determined. And determining that a medal has been inserted.

本発明に係るメダル識別装置は、メダルの投入を偽装する不正行為によりメダルが投入されたと誤認識することを防止できるという効果を奏する。   The medal identification device according to the present invention has an effect that it is possible to prevent erroneous recognition that a medal has been inserted due to an illegal act of disguising the insertion of a medal.

本発明の一つの実施形態によるメダル識別装置の概略上面図である。1 is a schematic top view of a medal identification device according to one embodiment of the present invention. メダル識別装置の概略背面図である。It is a schematic rear view of a medal identification device. 図1のAA’で示された断面を矢印の方向から見た、メダル識別装置の概略断面図である。FIG. 2 is a schematic cross-sectional view of the medal identification device when a cross section indicated by AA ′ in FIG. 1 is viewed from the direction of an arrow. 図2のBB’で示された断面を矢印の方向から見た、メダル識別装置の概略断面図である。FIG. 3 is a schematic cross-sectional view of the medal identification device when a cross-section indicated by BB ′ in FIG. 2 is viewed from the direction of an arrow. メダル識別装置の回路ブロック図である。It is a circuit block diagram of a medal identification device. (a)は、メダルの一部が撮像部の撮影範囲に含まれる場合のメダルの2値化画像の一例を示す図であり、(b)は、メダル全体が撮像部の撮影範囲に含まれる場合のメダルの2値化画像の一例を示す図である。(A) is a figure which shows an example of the binarized image of a medal when a part of medal is included in the imaging | photography range of an imaging part, (b) is the whole medal being included in the imaging | photography range of an imaging part. It is a figure which shows an example of the binarized image of a medal in the case. 2値化画像と、メダルの中心点の算出及び円形度の評価に用いられるサンプル点の関係を示す図である。It is a figure which shows the relationship between the binarized image, the sample point used for calculation of the center point of a medal, and evaluation of circularity. メダル識別方法の動作フローチャートである。It is an operation | movement flowchart of a medal identification method. 本発明の一つの実施形態に係るメダル識別装置を備えた回胴遊技機の概略斜視図である。1 is a schematic perspective view of a spinning machine including a medal identification device according to an embodiment of the present invention. 前面パネルを開いた状態における、本発明の一つの実施形態に係るメダル識別装置を備えた回胴遊技機の概略斜視図である。1 is a schematic perspective view of a spinning game machine including a medal identification device according to an embodiment of the present invention in a state where a front panel is opened. FIG. 回胴遊技機の回路ブロック図である。It is a circuit block diagram of a spinning machine.

以下、図を参照しつつ、本発明の一つの実施形態によるメダル識別装置について説明する。このメダル識別装置は、メダル識別装置内の通路を流下するメダルを連続的に撮影する撮像部を有し、その撮像部により生成された画像に写った被写体の外形形状が正規のメダルの外形形状とみなせるか否かでメダルが投入されたか否かを判定する。さらに、このメダル識別装置は、異なる時間に撮影された複数の画像に写っている被写体の位置を比較することで、メダルの移動方向及び移動速度を推定する。これにより、このメダル識別装置は、投入された正規のメダルに取り付けた紐を引いてメダルを取り出す不正行為によるメダルの計数を防止する。
なお、本実施形態では、メダルの外形形状は、略円形であるとする。
Hereinafter, a medal identification device according to an embodiment of the present invention will be described with reference to the drawings. The medal identification device has an imaging unit that continuously captures medals flowing down a passage in the medal identification device, and the outer shape of the subject in the image generated by the imaging unit is a regular medal outer shape. It is determined whether or not a medal has been inserted depending on whether or not it can be considered. Furthermore, this medal identification device estimates the moving direction and moving speed of medals by comparing the positions of subjects in a plurality of images taken at different times. Thereby, this medal identification device prevents medal counting by an illegal act of pulling a string attached to the inserted regular medal and taking out the medal.
In the present embodiment, the outer shape of the medal is assumed to be substantially circular.

図1は、本発明の一つの実施形態によるメダル識別装置1の概略平面図であり、図2は、メダル識別装置1の概略背面図である。図3は、図1のAA’で示された断面を矢印の方向から見た、メダル識別装置1の概略断面図である。図4は、図2のBB’で示された断面を矢印の方向から見た、メダル識別装置1の概略断面図である。また図5は、メダル識別装置1の回路ブロック図である。
メダル識別装置1は、筺体2と、光源3と、撮像部4と、制御基板5とを有する。光源3及び撮像部4は、筺体2内に収容されており、筺体2の外部に設けられた基板(図示せず)上に配置された制御基板5と信号線を介して接続されている。なお、制御基板5も、筐体2の内部に収容されていてもよい。さらに制御基板5は、メダル識別装置1が搭載される遊技機の主制御回路(図示せず)と信号線を介して接続され、その主制御回路へ、メダル投入を検知したことを表す信号または不正行為を検知したことを表す信号を出力する。
FIG. 1 is a schematic plan view of a medal identification device 1 according to one embodiment of the present invention, and FIG. 2 is a schematic rear view of the medal identification device 1. FIG. 3 is a schematic cross-sectional view of the medal identification device 1 when the cross section indicated by AA ′ in FIG. 1 is viewed from the direction of the arrow. FIG. 4 is a schematic cross-sectional view of the medal identification device 1 when the cross-section indicated by BB ′ in FIG. 2 is viewed from the direction of the arrow. FIG. 5 is a circuit block diagram of the medal identification device 1.
The medal identification device 1 includes a housing 2, a light source 3, an imaging unit 4, and a control board 5. The light source 3 and the imaging unit 4 are accommodated in the housing 2 and are connected to a control substrate 5 disposed on a substrate (not shown) provided outside the housing 2 via a signal line. Note that the control board 5 may also be housed inside the housing 2. Further, the control board 5 is connected via a signal line to a main control circuit (not shown) of a gaming machine on which the medal identification device 1 is mounted, and a signal indicating that a medal insertion has been detected. Outputs a signal indicating that fraud has been detected.

筺体2は、例えば、図1に示されたu軸の方向が、回胴遊技機の前面と略平行となり、かつ図2に示されたw軸の方向が、回胴遊技機の縦方向と略平行となるように、回胴遊技機に取り付けられる。そこで、以下では、便宜上、u方向を幅方向と呼び、w方向を高さ方向と呼ぶ。また、図1に示されたv軸の方向を奥行き方向と呼ぶ。   The housing 2 has, for example, the u-axis direction shown in FIG. 1 substantially parallel to the front surface of the spinning machine, and the w-axis direction shown in FIG. 2 is the vertical direction of the spinning machine. It is attached to the rotating game machine so as to be substantially parallel. Therefore, in the following, for convenience, the u direction is referred to as the width direction and the w direction is referred to as the height direction. Further, the v-axis direction shown in FIG. 1 is referred to as a depth direction.

図1に示されるように、筺体2の上面には、メダル投入口2aが形成されている。メダル投入口2aは、筺体2の幅方向に沿って、メダルの直径に所定のオフセット(例えば、1mm〜2mm)を加えた長さを持ち、筺体2の奥行き方向に、メダルの厚さに所定のオフセット(例えば、0.5mm〜1mm)を加えた長さを持つ。   As shown in FIG. 1, a medal slot 2 a is formed on the upper surface of the housing 2. The medal slot 2a has a length obtained by adding a predetermined offset (for example, 1 mm to 2 mm) to the diameter of the medal along the width direction of the housing 2 and has a predetermined thickness in the depth direction of the housing 2. It has a length to which an offset (for example, 0.5 mm to 1 mm) is added.

図3に示されるように、筺体2は、メダルが流下する通路6をその内部に形成するとともに、光源3及び撮像部4を収容する。そのために、筺体2は、例えば、樹脂を成型することにより所望の形状となるように形成された複数の部品を組み合わせることにより構成される。あるいは、筺体2は、鉄、アルミニウム、銅などの金属により形成されてもよく、あるいは、金属により形成された部品と樹脂により形成された部品とが組み合わされていてもよい。   As shown in FIG. 3, the housing 2 forms a passage 6 through which medals flow down, and houses the light source 3 and the imaging unit 4. For this purpose, the housing 2 is configured by combining a plurality of parts formed to have a desired shape by molding a resin, for example. Alternatively, the housing 2 may be formed of a metal such as iron, aluminum, or copper, or a component formed of metal and a component formed of resin may be combined.

筺体2内に形成された通路6は、筺体2の上端側では高さ方向に沿って形成され、途中で筺体2の幅方向に沿って湾曲した後、右下方へ向けて斜めに形成されている。そして通路6の上端はメダル投入口2aと直結し、一方通路6の下端は、筺体2の右端に形成されたメダル排出口2bと直結されている。そのため、メダル投入口2aから投入されたメダルは、矢印で示されるように、通路6に沿って筺体2内を流下した後、筺体2の右側のメダル排出口2bからメダル識別装置1の外に排出される。なお、この矢印で示される、メダルの流下方向を、以下では便宜上、順方向と呼び、逆にメダル排出口2bからメダル投入口2aへ向かう方向を、逆方向と呼ぶ。
通路6は、メダルがスムーズに流下可能なように、筺体2の幅方向及び高さ方向に沿って、メダルの直径に所定のオフセット(例えば、1mm〜2mm)を加えた長さを持ち、筺体2の奥行き方向に沿って、メダルの厚さに所定のオフセット(例えば、0.5mm〜1mm)を加えた長さを持つ。
なお、通路6の側面には、メダルとの接触面積を減らすために、メダルの流下方向の沿って複数の溝が形成されていてもよい。
The passage 6 formed in the housing 2 is formed along the height direction on the upper end side of the housing 2, is curved along the width direction of the housing 2 in the middle, and is formed obliquely toward the lower right. Yes. The upper end of the passage 6 is directly connected to the medal insertion port 2 a, while the lower end of the passage 6 is directly connected to the medal discharge port 2 b formed at the right end of the housing 2. Therefore, the medals inserted from the medal insertion slot 2a flow down in the casing 2 along the passage 6, as indicated by the arrows, and then go out of the medal identification device 1 from the medal discharge outlet 2b on the right side of the casing 2. Discharged. The flow direction of the medals indicated by the arrows is hereinafter referred to as the forward direction for convenience, and the direction from the medal discharge port 2b toward the medal insertion port 2a is referred to as the reverse direction.
The passage 6 has a length obtained by adding a predetermined offset (for example, 1 mm to 2 mm) to the diameter of the medal along the width direction and the height direction of the housing 2 so that the medal can flow smoothly. The length of the medal is obtained by adding a predetermined offset (for example, 0.5 mm to 1 mm) along the depth direction of 2.
In addition, in order to reduce the contact area with the medal, a plurality of grooves may be formed on the side surface of the passage 6 along the flow direction of the medal.

図3及び図4に示されるように、通路6の湾曲部の下方には、後述するように、撮像部4が通路6を通過するメダルMを撮影できるように、通路6よりも筺体2の背面側に空隙が生じている。そこで、この空隙においてメダルMが通路6から逸脱することを防止するために、通路6の湾曲部の下方において、通路6の上端と下端には、それぞれ、通路6よりも筺体2の背面側に、奥行き方向へのメダルの動きを規制するガイド部材7a、7bが配置されている。そしてガイド部材7aの下端とガイド部材7bの上端間の間隔は、メダルの直径よりも小さく、かつ、撮像部4がメダルMの大部分を撮影できるように、例えば、メダルMの直径よりも僅かに小さく、例えば、メダルMの直径から1mm〜2mmを引いた値となっている。   As shown in FIGS. 3 and 4, below the curved portion of the passage 6, as will be described later, the housing 2 is located more than the passage 6 so that the imaging unit 4 can photograph the medal M passing through the passage 6. There is a gap on the back side. Therefore, in order to prevent the medal M from deviating from the passage 6 in this gap, below the curved portion of the passage 6, the upper end and the lower end of the passage 6 are respectively closer to the back side of the housing 2 than the passage 6. Guide members 7a and 7b for restricting the movement of medals in the depth direction are arranged. The distance between the lower end of the guide member 7a and the upper end of the guide member 7b is smaller than the diameter of the medal, and is slightly smaller than the diameter of the medal M, for example, so that the imaging unit 4 can photograph most of the medal M. For example, it is a value obtained by subtracting 1 mm to 2 mm from the diameter of the medal M.

図4に示されるように、光源3は、通路6のガイド部材7aと7bとの間に挟まれた区間に設定された、撮像部4の撮影範囲4aを通過するメダルMを照明するよう、その区間の近傍に、通路6よりも筺体2の正面側に配置される。さらに光源3は、撮影範囲4aを一様に照明可能なように、例えば、通路6の下端に沿って配置された一つまたは複数の発光ダイオード、あるいは蛍光灯といった発光素子と、発光素子からの光を通路6側へ拡散させて出射させる、板状の拡散シートとを有する。拡散シートは、例えば、アクリルあるいはポリカーボネートといった、光源からの光の波長に対して透明な材料により形成される。そして発光素子からの光は、発光素子と対向する拡散シートの下側端面から拡散シート内に入射し、その入射した光は、拡散シートの背面側、すなわち、筺体2の正面側に形成された凹凸によって拡散されて、拡散シートの正面側、すなわち、通路6と対向する面から通路6へ向けて出射する。
光源3は、メダル識別装置1が動作している間、通路6を照明する。あるいは、光源3は、撮像部4が撮影するタイミングだけ発光するように、制御基板5によって制御されていてもよい。
As shown in FIG. 4, the light source 3 illuminates the medal M passing through the shooting range 4 a of the imaging unit 4 set in a section sandwiched between the guide members 7 a and 7 b of the passage 6. In the vicinity of the section, it is arranged on the front side of the housing 2 with respect to the passage 6. Furthermore, the light source 3 is configured so that, for example, one or a plurality of light emitting diodes or fluorescent lamps arranged along the lower end of the passage 6 and a light emitting element such as a fluorescent lamp can be illuminated uniformly. A plate-like diffusion sheet that diffuses light toward the passage 6 and emits the light. The diffusion sheet is formed of a material that is transparent to the wavelength of light from the light source, such as acrylic or polycarbonate. The light from the light emitting element enters the diffusion sheet from the lower end surface of the diffusion sheet facing the light emitting element, and the incident light is formed on the back side of the diffusion sheet, that is, on the front side of the housing 2. The light is diffused by the unevenness, and is emitted toward the passage 6 from the front side of the diffusion sheet, that is, the surface facing the passage 6.
The light source 3 illuminates the passage 6 while the medal identification device 1 is operating. Alternatively, the light source 3 may be controlled by the control board 5 so as to emit light only at the timing when the imaging unit 4 captures an image.

なお、変形例によれば、拡散シートは、すりガラス状の半透明なシートであってもよい。この場合には、発光素子は、拡散シートの背面側に、すなわち、通路6に対向する拡散シートの面と反対側の面と対向するように配置されてもよい。また、光源3は、有機EL素子のように、面発光する発光素子、あるいは2次元アレイ状に配列された複数の発光素子を有してもよい。この場合には、発光素子が直接通路6を照明するように配置されてもよい。そして拡散シートは省略されてもよい。   According to the modification, the diffusion sheet may be a ground glass-like translucent sheet. In this case, the light emitting element may be arranged on the back side of the diffusion sheet, that is, on the opposite side of the surface of the diffusion sheet that faces the passage 6. Further, the light source 3 may include a light emitting element that emits surface light, such as an organic EL element, or a plurality of light emitting elements arranged in a two-dimensional array. In this case, the light emitting element may be arranged so as to directly illuminate the passage 6. The diffusion sheet may be omitted.

撮像部4は、通路6の一部に設定された撮影範囲4aを通過するメダルMを撮影し、そのメダルMの像が写った画像を生成する。そのために、撮像部4は、通路6の湾曲部の下方において、通路6を挟んで光源3と対向するように、筺体2内の通路6の背面側に配置される。そして撮像部4は、例えば、2次元状に配列されたCCDイメージセンサまたはC-MOSイメージセンサといったイメージセンサと、そのイメージセンサ上に撮影範囲4aに含まれる通路6の一部区間及びその区間を通過するメダルMの像を結像する撮像光学系とを有する。また撮像部4は、画像上でメダルMの外形形状を識別できるように、例えば、横320×縦240画素を有する。各画素の輝度値は、例えば、0〜255で表され、輝度値が大きいほど、輝度が高いことを表す。また、制御基板5による、後述するメダル識別処理を簡単化し、かつ、撮影範囲4a内に通路6ができるだけ長く含まれるように、撮影範囲4aの長手方向が通路6と略平行となるように、撮像部4は傾けて配置される。そのため、撮像部4により生成される画像上では、通路6の上端及び下端が、その画像の上端及び下端と略平行となる。   The imaging unit 4 shoots a medal M passing through the shooting range 4a set in a part of the passage 6, and generates an image in which the image of the medal M is reflected. Therefore, the imaging unit 4 is disposed on the back side of the passage 6 in the housing 2 so as to face the light source 3 with the passage 6 interposed therebetween, below the curved portion of the passage 6. The imaging unit 4 includes, for example, an image sensor such as a CCD image sensor or a C-MOS image sensor arranged in a two-dimensional manner, a partial section of the passage 6 included in the photographing range 4a on the image sensor, and the section thereof. An imaging optical system that forms an image of the passing medal M. Further, the imaging unit 4 has, for example, horizontal 320 × vertical 240 pixels so that the outer shape of the medal M can be identified on the image. The luminance value of each pixel is represented by, for example, 0 to 255, and the larger the luminance value, the higher the luminance. In addition, the medal identification process described later by the control board 5 is simplified, and the longitudinal direction of the shooting range 4a is substantially parallel to the passage 6 so that the passage 6 is included in the shooting range 4a as long as possible. The imaging unit 4 is disposed at an angle. Therefore, on the image generated by the imaging unit 4, the upper end and the lower end of the passage 6 are substantially parallel to the upper end and the lower end of the image.

撮像部4は、メダル識別装置1が動作している間、所定の時間間隔で撮影範囲4aを連続的に撮影する。所定の時間間隔は、例えば、メダル識別装置1に投入されたメダルが撮影範囲4aを通過している間に少なくとも1枚の画像が生成されるように、例えば、50msec〜100msec間隔に設定される。本実施形態では、メダルMが順方向に沿って流下している場合、連続的に撮影された複数の画像上で、メダルMの像は左から右へ移動する。撮像部4は、撮影する度に、生成した画像を制御基板5へ出力する。   The imaging unit 4 continuously photographs the imaging range 4a at predetermined time intervals while the medal identification device 1 is operating. The predetermined time interval is set to, for example, an interval of 50 msec to 100 msec so that at least one image is generated while the medal inserted into the medal identification device 1 passes through the shooting range 4a. . In the present embodiment, when the medal M is flowing down in the forward direction, the image of the medal M moves from left to right on a plurality of continuously photographed images. The imaging unit 4 outputs the generated image to the control board 5 every time it captures an image.

図5に示されるように、制御基板5は、制御回路51と、メモリ52とを有する。制御回路51は、例えば、プロセッサとその周辺回路とを有する。そして制御回路51は、撮像部4から受け取った画像を解析することにより、通路6を通過するメダルの外形形状、メダルの移動方向及び移動速度を検出する。またメモリ52は、例えば、不揮発性の読み出し専用の半導体メモリと、揮発性の読み書き可能な半導体メモリとを有する。そしてメモリ52は、制御回路51で実行されるメダル識別処理のプログラム、及び、メダル識別処理で用いられるパラメータ及びメダル識別処理の途中で算出される様々な中間計算値などを記憶する。またメモリ52は、撮像部4から受け取った画像のうち、最新の複数枚の画像、またはそれら画像を2値化することにより得られる複数枚の2値化画像を記憶してもよい。   As shown in FIG. 5, the control board 5 includes a control circuit 51 and a memory 52. The control circuit 51 includes, for example, a processor and its peripheral circuits. The control circuit 51 analyzes the image received from the imaging unit 4 to detect the outer shape of the medal passing through the passage 6, the moving direction and the moving speed of the medal. The memory 52 includes, for example, a nonvolatile read-only semiconductor memory and a volatile read / write semiconductor memory. The memory 52 stores a medal identification process program executed by the control circuit 51, parameters used in the medal identification process, various intermediate calculation values calculated during the medal identification process, and the like. The memory 52 may store the latest plurality of images received from the imaging unit 4 or a plurality of binarized images obtained by binarizing the images.

本実施形態では、光源3と撮像部4とが通路6を挟んで配置されている。そのため、メダルMが撮像部4の撮影範囲4a内に位置すると、メダルMが光源3から発した光を遮る。また、ガイド部材7a、7bも、光源3から発した光を遮る。そのため、画像上では、メダルMの像またはガイド部材7a、7bの像が写っている領域は暗くなり、その周囲は光源3からの光が撮像部4に届くので明るくなる。   In the present embodiment, the light source 3 and the imaging unit 4 are arranged with the passage 6 interposed therebetween. For this reason, when the medal M is positioned within the shooting range 4 a of the imaging unit 4, the medal M blocks light emitted from the light source 3. Further, the guide members 7 a and 7 b also block light emitted from the light source 3. Therefore, on the image, the area where the image of the medal M or the guide members 7a and 7b is captured becomes dark, and the surrounding area becomes bright because the light from the light source 3 reaches the imaging unit 4.

そこで制御回路51は、例えば、画像を受け取る度に、その画像を、予めメモリ52に記憶された所定の閾値Thよりも低い輝度値を持つ画素の集合をメダルMまたはガイド部材7a、7bが写っている被写体領域とし、一方、その閾値Th以上の輝度値を持つ画素の集合をメダルM及びガイド部材7a、7bが写っていない背景領域として2値化する。例えば、制御回路51は、2値化された画像上で、被写体領域に含まれる画素の値を'0'とし、一方、背景領域に含まれる画素の値を'255'とする。
閾値Thは、例えば、通路6を通るメダルを撮影した画像を予め取得し、その画像における被写体領域及び背景領域を特定した上で、被写体領域の輝度値の分布と、背景領域の輝度値の分布を求め、それらの二つの分布を判別分析することで二つの分布が最も分離する値として決定される。あるいは、閾値Thは、輝度値の取り得る最大値の1/4〜1/2の何れかの値、例えば、127に設定されてもよい。
Therefore, for example, every time an image is received, the control circuit 51 captures a set of pixels having a luminance value lower than a predetermined threshold value Th stored in the memory 52 in advance in the medal M or the guide members 7a and 7b. On the other hand, a set of pixels having a luminance value equal to or higher than the threshold value Th is binarized as a background area in which the medal M and the guide members 7a and 7b are not shown. For example, on the binarized image, the control circuit 51 sets the value of the pixel included in the subject area to “0”, while setting the value of the pixel included in the background area to “255”.
The threshold Th is obtained, for example, by acquiring in advance an image of a medal passing through the passage 6 and specifying the subject area and the background area in the image, and then distributing the luminance value of the subject area and the luminance value distribution of the background area. The two distributions are discriminated and analyzed, and the two distributions are determined as the most separated values. Alternatively, the threshold value Th may be set to any value of 1/4 to 1/2 of the maximum value that the luminance value can take, for example, 127.

図6(a)は、メダルの一部が撮像部4の撮影範囲4aに含まれる場合の2値化画像の一例を示す図であり、図6(b)は、メダル全体が撮影範囲4aに含まれる場合の2値化画像の一例を示す図である。
図6(a)及び図6(b)において、2値化画像600上で黒い領域が被写体領域610であり、一方、白い領域が背景領域620である。2値化画像600の上端近傍及び下端近傍には、それぞれ、2値化画像600の上端及び下端に略平行で、垂直方向に所定の幅を持つ、ガイド部材7a、7bの像611、612がそれぞれ写っている。そして図6(a)では、2値化画像600の左端にメダルの像513が写っており、メダルの像613の右側のエッジは2値化画像600上に写っているものの、メダルの像の左側のエッジは、2値化画像600には写っていない。一方、図6(b)では、メダルの像614の左右両方のエッジが確認できる。ただし、メダルの上端近傍及び下端近傍は、ガイド部材7a、7bで隠されるため、図6(a)及び図6(b)の何れにおいても、メダルの像613、614の上端及び下端は、ガイド部材7a、7bの像611、612により見えなくなっている。なお、以下では、便宜上、2値化画像上でガイド部材7a、7bの像に挟まれた、通路6に投入されたメダルなどの物体が写っている被写体領域の一部を、メダル候補領域と呼ぶ。
FIG. 6A is a diagram showing an example of a binarized image when a part of a medal is included in the shooting range 4a of the imaging unit 4, and FIG. 6B shows the entire medal in the shooting range 4a. It is a figure which shows an example of the binarized image in the case of being included.
In FIG. 6A and FIG. 6B, the black region on the binarized image 600 is the subject region 610, while the white region is the background region 620. In the vicinity of the upper end and the lower end of the binarized image 600, there are images 611 and 612 of the guide members 7a and 7b that are substantially parallel to the upper and lower ends of the binarized image 600 and have a predetermined width in the vertical direction, respectively. Each is reflected. In FIG. 6A, a medal image 513 is shown at the left end of the binarized image 600, and the right edge of the medal image 613 is shown on the binarized image 600, but the medal image The left edge is not shown in the binarized image 600. On the other hand, in FIG. 6B, both the left and right edges of the medal image 614 can be confirmed. However, since the vicinity of the upper end and the lower end of the medal is hidden by the guide members 7a and 7b, the upper end and the lower end of the medal images 613 and 614 are the guides in both FIGS. 6 (a) and 6 (b). It is not visible by the images 611 and 612 of the members 7a and 7b. In the following, for convenience, a part of a subject area in which an object such as a medal inserted into the passage 6 is sandwiched between images of the guide members 7a and 7b on the binarized image is referred to as a medal candidate area. Call.

次に、制御回路51は、順次得られる複数の画像を2値化したものの中から、メダル全体が写っている可能性がある2値化画像、すなわち、メダル候補領域全体を含む2値化画像をメダル検出候補画像として抽出する。本実施形態ではメダルは円形形状を有しているので、撮像部4の撮影範囲4a内にメダル全体が含まれている場合には、上側のガイド部材7aの像の下端Y1から下側のガイド部材7bの像の上端Y2の中間付近の高さにおいて、水平方向におけるメダル候補領域の幅が最も広くなり、かつ、メダル候補領域の左端と右端の両方が2値化画像上に写る。
そこで制御回路51は、例えば、垂直方向の座標がY1からY2までの範囲内の各水平ラインにおいて、メダル候補領域の右端及び左端のエッジを検出するために、2値化画像の左端から右端へ順に、次式に従って水平方向のエッジ強度ex,yを求める。
ただし、Px,yは、2値化画像の水平方向の座標x、垂直方向の座標yの画素の値を表す。なお、2値化画像の左端の水平方向の座標値は0であり、右端の座標値はW(ただし、W>0)である。また2値化画像の上端の垂直方向の座標値は0であり、下へ行くほど垂直方向の座標値は大きくなる。
Next, the control circuit 51 is a binarized image in which the entire medal is likely to be captured from among the binarized images obtained sequentially, that is, a binarized image including the entire medal candidate area. Is extracted as a medal detection candidate image. In this embodiment, since the medal has a circular shape, when the entire medal is included in the shooting range 4a of the imaging unit 4, the lower guide from the lower end Y1 of the image of the upper guide member 7a. At the height near the middle of the upper end Y2 of the image of the member 7b, the width of the medal candidate area in the horizontal direction is the widest, and both the left end and the right end of the medal candidate area appear on the binarized image.
Therefore, the control circuit 51, for example, from the left end to the right end of the binarized image in order to detect the right end and the left end edge of the medal candidate region in each horizontal line in the range from Y1 to Y2 in the vertical direction. In order, the edge strength e x, y in the horizontal direction is obtained according to the following equation.
Here, P x, y represents the pixel value of the coordinate x in the horizontal direction and the coordinate y in the vertical direction of the binarized image. Note that the horizontal coordinate value at the left end of the binarized image is 0, and the coordinate value at the right end is W (where W> 0). Also, the vertical coordinate value of the upper end of the binarized image is 0, and the vertical coordinate value increases toward the bottom.

上記のように、2値化画像では、メダル候補領域の輝度値は、背景領域の輝度値よりも小さい値に設定されているので、2値化画像上でex,y > 0となる位置がメダル候補領域の右端のエッジ点であり、一方、ex,y < 0となる位置がメダル候補領域の左端のエッジ点である。そこで、各ラインにおいて、左側から順に、エッジ強度ex,yが負となる位置と、エッジ強度ex,yが正となる位置の両方が検出されると、制御回路51は、その2値化画像にはメダル候補領域全体が写っている。そこで制御回路51は、その2値化画像をメダル検出候補画像とする。なお、メダルの一部だけが写っている場合には、図6(a)に示されるように、メダル候補領域は、2値化画像の左端または右端に接しているので左端または右端のエッジ点が検出されない。 As described above, in the binarized image, the luminance value of the medal candidate region is set to a value smaller than the luminance value of the background region, and therefore a position where e x, y > 0 on the binarized image. Is the edge point at the right end of the medal candidate area, and the position where ex , y <0 is the edge point at the left end of the medal candidate area. Therefore, in each line, when both the position where the edge intensity e x, y is negative and the position where the edge intensity e x, y is positive are detected sequentially from the left side, the control circuit 51 determines the binary value. The converted image shows the entire medal candidate area. Therefore, the control circuit 51 sets the binarized image as a medal detection candidate image. When only a part of the medal is shown, as shown in FIG. 6A, the medal candidate area is in contact with the left end or the right end of the binarized image, so the edge point at the left end or the right end Is not detected.

本実施形態では、メダルは略円形の外形形状を持つ。そのため、メダル検出候補画像では、メダル候補領域は略円形となる。一方、いわゆるクレマンと呼ばれる不正行為用の治具は、その治具の先端が撮像部4に達するところまで挿入されても、他端がメダル投入口から外へ出るほどの長さを持つ板状となっている。そのため、画像上では、治具が写ったメダル候補領域の形状は円形とならない。またその板状の部材がアクリル板のような透明な部材で形成されていたとしても、画像上では、治具に設けられた光源及びその駆動回路基板に相当する部分がメダル候補領域となる。そのため、メダル検出候補画像上でも、メダル候補領域の形状は、円形とは異なる形状となる。   In this embodiment, the medal has a substantially circular outer shape. Therefore, in the medal detection candidate image, the medal candidate region is substantially circular. On the other hand, a fraudulent jig called a so-called Clement is a plate having a length that allows the other end to come out from the medal slot even if the tip of the jig reaches the imaging unit 4. It has become. Therefore, on the image, the shape of the medal candidate area where the jig is shown is not circular. Even if the plate-like member is formed of a transparent member such as an acrylic plate, on the image, a portion corresponding to the light source provided on the jig and its drive circuit board is a medal candidate region. Therefore, even on the medal detection candidate image, the shape of the medal candidate area is different from the circular shape.

そこで、制御回路51は、メダル候補領域の外形形状がメダルの外形形状と一致する場合には、メダルが投入されたと判定し、一方、メダル候補領域の外形形状がメダルの外形形状と一致しなければ、不正行為が行われたと判定する。そこで、制御回路51は、メダル候補領域が円形であると仮定したときのメダル候補領域の中心の座標を求める。そして制御回路51は、その中心座標からメダル候補領域の任意のエッジまでの距離が、メダルの半径に相当するか否かで、メダル候補領域にメダルが写っているか否か判定する。   Therefore, the control circuit 51 determines that a medal has been inserted when the outer shape of the medal candidate area matches the outer shape of the medal, while the outer shape of the medal candidate area must match the outer shape of the medal. For example, it is determined that an illegal act has been performed. Therefore, the control circuit 51 obtains the coordinates of the center of the medal candidate area when it is assumed that the medal candidate area is circular. Then, the control circuit 51 determines whether or not a medal is shown in the medal candidate area based on whether or not the distance from the center coordinate to an arbitrary edge of the medal candidate area corresponds to the radius of the medal.

図7は、メダル候補領域の中心点の算出及び円形度の評価に用いられるエッジ点の関係を示す図である。
一般に、円周上の任意の3点から、円の中心の座標を求めることができることが知られている。そこで、本実施形態では、メダル検出候補画像700上のメダル候補領域701の下端(すなわち、下側のガイド部材7bの像の上端)より1画素だけ上の水平ラインにおける、メダル候補領域701の左端のエッジ点A1と、メダル候補領域701の上端(すなわち、上側のガイド部材7aの像の下端)より1画素だけ下の水平ラインにおける、メダル候補領域701の右端及び左端のエッジ点A2、A3が、メダル候補領域701の中心B0の座標(XB0,YB0)を求めるために用いられる。なお、メダル候補領域701の中心B0の座標 を求めるために、A1〜A3以外に、メダル候補領域のエッジ上の任意の3点が用いられてもよい。また、メダル候補領域の外形形状が真円に近いか否かを調べるために、メダル候補領域701の4個のエッジ点B1〜B4が用いられる。エッジ点B1〜B4は、中心B0の算出に利用されたエッジ点と異なり、かつ、ガイド部材に隠れない(すなわち、垂直方向座標がY1からY2の範囲内に含まれる)メダル候補領域のエッジ点であればよい。ただし、エッジ点B1〜B4のうちの少なくとも一つは、メダル候補領域の左端側のエッジ点であり、他の少なくとも一つは、メダル候補領域の右端側のエッジ点であることが好ましい。これにより、制御回路51は、メダル候補領域の左右両側の外形形状を調べることができるので、先端が半円状に形成された治具が通路6に挿入されても、その治具をメダルと誤認識することを防止できる。
なお、各エッジ点A1〜A3及びB1〜B4は、例えば、それらエッジ点の垂直座標における水平ラインに沿って、メダル検出候補画像の左端または右端から順に、(1)式に従ってエッジ強度を求めてそのエッジ強度が0以外となる位置として求められる。
FIG. 7 is a diagram illustrating a relationship between edge points used for calculation of the center point of the medal candidate area and evaluation of the circularity.
In general, it is known that the coordinates of the center of a circle can be obtained from arbitrary three points on the circumference. Therefore, in the present embodiment, the left end of the medal candidate area 701 in the horizontal line that is one pixel above the lower end of the medal candidate area 701 on the medal detection candidate image 700 (that is, the upper end of the image of the lower guide member 7b). Edge point A1 and edge points A2 and A3 at the right and left ends of the medal candidate area 701 in a horizontal line one pixel below the upper end of the medal candidate area 701 (ie, the lower end of the image of the upper guide member 7a). The coordinates (X B0 , Y B0 ) of the center B0 of the medal candidate area 701 are used. In order to obtain the coordinates of the center B0 of the medal candidate area 701, any three points on the edge of the medal candidate area may be used in addition to A1 to A3. Further, in order to check whether or not the outer shape of the medal candidate area is close to a perfect circle, the four edge points B1 to B4 of the medal candidate area 701 are used. The edge points B1 to B4 are different from the edge points used for calculating the center B0 and are not hidden by the guide member (that is, the vertical coordinates are included in the range from Y1 to Y2). If it is. However, it is preferable that at least one of the edge points B1 to B4 is an edge point on the left end side of the medal candidate area, and at least one other is an edge point on the right end side of the medal candidate area. As a result, the control circuit 51 can examine the outer shapes of the left and right sides of the medal candidate area, so that even if a jig whose tip is formed in a semicircular shape is inserted into the passage 6, the jig is regarded as a medal. Misrecognition can be prevented.
The edge points A1 to A3 and B1 to B4 are obtained, for example, in order from the left end or the right end of the medal detection candidate images along the horizontal lines in the vertical coordinates of the edge points according to the formula (1). The edge strength is obtained as a position other than zero.

制御回路51は、例えば、次式に従ってメダル候補領域の中心B0の座標(XB0,YB0)を求める。
ただし、(XAi,YAi)(i=1,2,3)は、エッジ点Aiの座標を表す。
For example, the control circuit 51 obtains the coordinates (X B0 , Y B0 ) of the center B0 of the medal candidate area according to the following equation.
However, (X Ai , Y Ai ) (i = 1, 2, 3) represents the coordinates of the edge point A i .

その後、制御回路51は、次式に従って、メダル候補領域の中心B0からメダル候補領域601の4個のエッジ点B1〜B4までの距離と、メダルの半径との差の絶対値を真円度誤差ηBn(n=1,2,3,4)として求める。
ただし、(XBn,YBn)は、エッジ点Bnの座標を表す。またRmは、メダル検出候補画像上でのメダルの半径に相当する画素数を表す。真円度誤差ηBn(n=1,2,3,4)が小さいほど、メダル候補領域の形状がメダルの外形形状と一致している。
Thereafter, the control circuit 51 calculates the absolute value of the difference between the distance from the center B0 of the medal candidate area to the four edge points B1 to B4 of the medal candidate area 601 and the radius of the medal according to the following equation. Calculate as η Bn (n = 1,2,3,4).
However, (X Bn , Y Bn ) represents the coordinates of the edge point B n . R m represents the number of pixels corresponding to the radius of the medal on the medal detection candidate image. As the roundness error η Bn (n = 1, 2, 3, 4) is smaller, the shape of the medal candidate area matches the outer shape of the medal.

制御回路51は、エッジ点B1〜B4についての真円度誤差ηBnを、それぞれ、閾値ηAと比較する。そしてエッジ点B1〜B4の全てについて、真円度誤差ηBnが閾値ηA以下であれば、制御回路51は、メダル候補領域にメダルが写っていると判定する。一方、エッジ点B1〜B4の一つ以上について、真円度誤差ηBnが閾値ηAよりも大きければ、制御回路51は、メダル候補領域に写っている物体はメダルでないと判定する。なお、閾値ηAは、例えば、メダルの直径が25mmである場合、0.5mmに相当するメダル検出候補画像上での画素数に設定される。
なお、真円度誤差ηBnを求めるエッジ点の数は、4点に限られず、少なくとも1点あればよい。そして真円度誤差ηBnを求めるエッジ点の数が多いほど、制御回路51は、メダル候補領域がメダルの外形形状に近いか否かを正確に調べることができる。
The control circuit 51 compares the roundness error η Bn for the edge points B1 to B4 with the threshold value η A , respectively. If the roundness error η Bn is equal to or less than the threshold value η A for all of the edge points B1 to B4, the control circuit 51 determines that a medal is shown in the medal candidate area. On the other hand, if the roundness error η Bn is larger than the threshold value η A for one or more of the edge points B1 to B4, the control circuit 51 determines that the object shown in the medal candidate area is not a medal. For example, when the diameter of the medal is 25 mm, the threshold value η A is set to the number of pixels on the medal detection candidate image corresponding to 0.5 mm.
Note that the number of edge points for obtaining the roundness error η Bn is not limited to four, but may be at least one. As the number of edge points for obtaining the roundness error η Bn increases, the control circuit 51 can accurately check whether or not the medal candidate area is close to the outer shape of the medal.

制御回路51は、メダル候補領域に写っている物体がメダルであると判定した場合、メダルの移動方向及び移動速度を推定する。そのために、制御回路51は、メダル検出候補画像に写っているメダル候補領域の位置と、メダル検出候補画像と時間的に前後して生成された他の画像におけるメダル候補領域の位置のずれを求める。   When the control circuit 51 determines that the object shown in the medal candidate area is a medal, the control circuit 51 estimates the moving direction and moving speed of the medal. For this purpose, the control circuit 51 obtains a shift between the position of the medal candidate area shown in the medal detection candidate image and the position of the medal candidate area in another image generated before and after the medal detection candidate image. .

本実施形態では、制御回路51は、メダルが写っていると判定されたメダル検出候補画像におけるメダル候補領域上の特定点と、メダル検出候補画像よりも前、あるいはメダル検出候補画像よりも後に撮影された画像から作成された2値化画像上でのその特定点の位置の差を求める。   In the present embodiment, the control circuit 51 captures a specific point on the medal candidate area in the medal detection candidate image determined to have a medal and the image before the medal detection candidate image or after the medal detection candidate image. The difference in the position of the specific point on the binarized image created from the processed image is obtained.

例えば、再度図6(a)及び図6(b)を参照すると、特定点は、メダル候補領域の最も右側のエッジ点C1に設定される。制御回路51は、例えば、上側のガイド部材7aの像の下端Y1と下側のガイド部材7bの像の上端Y2との間の中心付近の複数の水平ラインにおいて、それぞれ、メダル候補領域の右側のエッジ点を求め、そのうちの最も右側に位置するエッジ点をエッジ点C1とする。なお、各水平ラインにおけるメダル候補領域の右側のエッジ点は、上記のように、例えば、(1)式に従って算出されたエッジ強度が正となる点として検出される。
なお、特定点は、メダル候補領域の最も左側のエッジ点であってもよい。また、メダルの半分以上が写る画像が複数得られている場合には、特定点は、(2)式に従って算出されるメダル候補領域の中心B0であってもよい。
For example, referring again to FIG. 6A and FIG. 6B, the specific point is set to the rightmost edge point C1 of the medal candidate region. For example, in the plurality of horizontal lines near the center between the lower end Y1 of the image of the upper guide member 7a and the upper end Y2 of the image of the lower guide member 7b, the control circuit 51 respectively The edge point is obtained, and the edge point located on the rightmost side is set as the edge point C1. Note that, as described above, the edge point on the right side of the medal candidate area in each horizontal line is detected as a point where the edge strength calculated according to the equation (1) is positive, for example.
The specific point may be the leftmost edge point of the medal candidate area. When a plurality of images showing more than half of medals are obtained, the specific point may be the center B0 of the medal candidate area calculated according to the equation (2).

制御回路51は、例えば、次式に従って、異なる時間に撮影された二つの画像からそれぞれ生成された2値化画像から検出された特定点の移動距離を、その二つの画像の撮影時間間隔で割ることにより、メダルの移動速度Vを推定する。
ここでXc1,t1は、時刻t1に撮影された画像から作成された2値化画像における特定点C1の水平座標を表し、Xc1,t2は、時刻t2(ただし、t2 > t1)に撮影された画像から作成された2値化画像における特定点C1の水平座標を表す。なお、これら二つの画像のうちの何れが、メダル検出候補画像に対応していてもよい。dは、画像上の1画素に相当する距離(mm単位)を表す。そしてΔtは、撮影時間間隔を表す。
(4)式に従って推定された、メダルの移動速度Vの符号は、メダルの移動方向を表している。本実施形態では、移動速度Vが正であれば、メダルは順方向に移動していると推定され、逆に、移動速度Vが負であれば、メダルは逆方向に移動していると推定される。
The control circuit 51 divides, for example, the moving distance of the specific point detected from the binarized images respectively generated from the two images captured at different times by the imaging time interval between the two images according to the following equation: Thus, the moving speed V of the medal is estimated.
Here, X c1, t1 represents the horizontal coordinate of the specific point C1 in the binarized image created from the image taken at time t1, and X c1, t2 is taken at time t2 (where t2> t1) The horizontal coordinate of the specific point C1 in the binarized image created from the processed image is represented. Any one of these two images may correspond to a medal detection candidate image. d represents a distance (in mm) corresponding to one pixel on the image. Δt represents an imaging time interval.
The sign of the medal movement speed V estimated according to the equation (4) represents the medal movement direction. In this embodiment, if the moving speed V is positive, it is estimated that the medal is moving in the forward direction. Conversely, if the moving speed V is negative, it is estimated that the medal is moving in the reverse direction. Is done.

制御回路51は、推定された移動方向がメダルが通路6を流下する順方向と一致するか否か、及び、推定された移動速度が、メダルが実際に通路6を流下する際の移動速度の取り得る範囲である基準範囲に含まれているか否かを判定する。そして制御回路51は、推定された移動方向がメダルが通路6を流下する順方向と一致し、かつ、推定された移動速度が基準範囲に含まれていれば、メダルは正規に投入されたと判定する。一方、制御回路51は、推定された移動方向がメダルが通路6を流下する順方向と一致しないか、または、推定された移動速度が基準範囲から外れていれば、不正行為が行われたと判定する。
そのような判定を行うために、制御回路51は、例えば、メモリ52に予め記憶された、移動方向と移動速度の組と、正常・不正などの判定結果との関係を表す参照テーブルを参照することにより、推定された移動方向及び移動速度から、正常にメダルが投入されたのか、あるいは、メダルに取り付けた紐を引いて投入したメダルを取り出す不正行為が行われたのかを判定する。以下に、そのような参照テーブルの一例を示す。
例えば、表1において、移動速度についての0.5mm/ms以上かつ1.5mm/ms未満の範囲が基準範囲である。推定された移動方向が順方向(すなわち、V>0)であり、移動速度が1mm/msであれば、制御回路51は、上記の参照テーブルを参照することにより、正常にメダルが投入されたと判定する。一方、推定された移動方向が逆方向(すなわち、V<0)であれば、移動速度が1mm/msであれば、制御回路51は、上記の参照テーブルを参照することにより、不正行為が行われたと判定する。また、推定された移動方向が順方向(すなわち、V>0)であり、移動速度が0.2mm/msであれば、制御回路51は、上記の参照テーブルを参照することにより、何らかのエラーが生じたと判定する。なお、参照テーブルには、エラーと判定する移動速度の範囲が含まれていなくてもよい。この場合には、移動速度が基準範囲から外れると、直ちに不正行為が行われたと判定される。
The control circuit 51 determines whether or not the estimated moving direction matches the forward direction in which the medal flows down the passage 6, and the estimated moving speed is the moving speed when the medal actually flows down the passage 6. It is determined whether or not it is included in a reference range that is a possible range. The control circuit 51 determines that the medal is properly inserted if the estimated moving direction matches the forward direction in which the medal flows down the passage 6 and the estimated moving speed is included in the reference range. To do. On the other hand, if the estimated moving direction does not coincide with the forward direction in which the medal flows down the passage 6, or if the estimated moving speed is out of the reference range, the control circuit 51 determines that an illegal act has been performed. To do.
In order to make such a determination, for example, the control circuit 51 refers to a reference table that is stored in advance in the memory 52 and represents a relationship between a set of a moving direction and a moving speed and a determination result such as normal / incorrect. Thus, it is determined from the estimated moving direction and moving speed whether the medal has been inserted normally, or whether an illegal act of taking out the inserted medal by pulling the string attached to the medal has been performed. An example of such a reference table is shown below.
For example, in Table 1, the range of 0.5 mm / ms or more and less than 1.5 mm / ms regarding the moving speed is the reference range. If the estimated moving direction is the forward direction (that is, V> 0) and the moving speed is 1 mm / ms, the control circuit 51 refers to the reference table described above to correctly insert the medal. judge. On the other hand, if the estimated moving direction is the reverse direction (that is, V <0), if the moving speed is 1 mm / ms, the control circuit 51 refers to the above reference table to perform the illegal act. Judge that it was broken. In addition, if the estimated moving direction is the forward direction (ie, V> 0) and the moving speed is 0.2 mm / ms, the control circuit 51 refers to the above-described reference table to generate some error. It is determined that Note that the reference table may not include the range of moving speeds that are determined to be errors. In this case, if the moving speed deviates from the reference range, it is immediately determined that an illegal act has been performed.

制御回路51は、メダルが正常に投入されたか、不正行為が行われたか、あるいはエラーが生じたかの判定結果を、上位の制御装置(図示せず)へ出力する。   The control circuit 51 outputs a determination result of whether a medal has been inserted normally, whether an illegal act has been performed, or whether an error has occurred to a higher-level control device (not shown).

図8は、制御回路51により実行されるメダル識別処理の動作フローチャートである。制御回路51は、撮像部4から画像を受け取る度に、このメダル識別処理を実行する。
制御回路51は、画像を2値化する(ステップS101)。そして制御回路51は、2値化画像からメダル候補領域を抽出する(ステップS102)。そして制御回路51は、2値化画像上にメダル候補領域全体が含まれるか否か判定する(ステップS103)。メダル候補領域全体が含まれていなければ、制御回路51は、メダル識別処理を終了する。ただし、メダル候補領域の一部が2値化画像に含まれていれば、すなわち、メダル候補領域があり、かつ、メダル候補領域が2値化画像の右端または左端に接していれば、制御回路51は、メダルの移動速度及び移動方向を求める際に利用できるよう、その2値化画像及びその2値化画像の元の画像の取得時刻をメモリ52に記憶する。
FIG. 8 is an operation flowchart of the medal identification process executed by the control circuit 51. The control circuit 51 executes this medal identification process every time an image is received from the imaging unit 4.
The control circuit 51 binarizes the image (step S101). Then, the control circuit 51 extracts medal candidate areas from the binarized image (step S102). Then, the control circuit 51 determines whether or not the entire medal candidate area is included in the binarized image (step S103). If the entire medal candidate area is not included, the control circuit 51 ends the medal identification process. However, if a part of the medal candidate area is included in the binarized image, that is, if there is a medal candidate area and the medal candidate area is in contact with the right end or the left end of the binarized image, the control circuit 51 stores the acquisition time of the binarized image and the original image of the binarized image in the memory 52 so that the binarized image and the binarized image can be used when determining the moving speed and moving direction of the medal.

ステップS103にて、2値化画像上にメダル候補領域全体が含まれる場合、制御回路51は、メダル候補領域の外形形状はメダルの外形形状と一致するか否か判定する(ステップS104)。メダル候補領域の外形形状はメダルの外形形状と一致しなければ、制御回路51は、通路6内にメダル以外の物が投入されたと判定する。そして制御回路51は、不正行為を遊技機の主制御回路へ通知する(ステップS109)。   When the entire medal candidate area is included in the binarized image in step S103, the control circuit 51 determines whether or not the outer shape of the medal candidate area matches the outer shape of the medal (step S104). If the outer shape of the medal candidate area does not match the outer shape of the medal, the control circuit 51 determines that an object other than the medal has been inserted into the passage 6. Then, the control circuit 51 notifies the main control circuit of the gaming machine of the illegal act (step S109).

一方、メダル候補領域の外形形状はメダルの外形形状と一致すれば、制御回路51は、通路6に正規のメダルが投入されたと判定する。そして次に、制御回路51は、2枚の画像上でメダル候補領域の特定点を検出する(ステップS105)。なお、2枚の画像のうちの一つは、メダル検出候補画像とすることができ、他方は、例えば、メモリ52に記憶されている、メダル候補領域の一部を含む2値化画像とすることができる。   On the other hand, if the outer shape of the medal candidate area matches the outer shape of the medal, the control circuit 51 determines that a regular medal has been inserted into the passage 6. Next, the control circuit 51 detects a specific point of the medal candidate area on the two images (step S105). One of the two images can be a medal detection candidate image, and the other is, for example, a binarized image that includes a part of a medal candidate area stored in the memory 52. be able to.

制御回路51は、特定点間の距離をその2枚の画像の撮影時間間隔で割ることでメダルの移動方向及び移動速度を推定する(ステップS106)。そして制御回路1は、推定された移動方向は順方向かつ移動速度は基準範囲内か否か判定する(ステップS107)。
推定された移動方向は順方向かつ移動速度は基準範囲内であれば、制御回路51は、正規のメダル投入を遊技機の主制御回路へ通知する(ステップS108)。一方、推定された移動方向は逆方向、あるいは移動速度が基準範囲外であれば、制御回路51は、不正行為を遊技機の主制御回路へ通知する(ステップS109)。
ステップS108またはS109の後、制御回路51は、メダル識別処理を終了する。なお、制御回路51は、ステップS105にて、既に取得されている画像のうちで一つしか特定点を検出できない場合には、その後に撮像部4から画像を受け取った時点で、その最新の画像の2値化、メダル候補領域の検出及びステップS105以降の処理を実行してもよい。
The control circuit 51 estimates the moving direction and moving speed of the medal by dividing the distance between the specific points by the shooting time interval of the two images (step S106). Then, the control circuit 1 determines whether or not the estimated moving direction is the forward direction and the moving speed is within the reference range (step S107).
If the estimated moving direction is the forward direction and the moving speed is within the reference range, the control circuit 51 notifies the main control circuit of the gaming machine that the regular medal has been inserted (step S108). On the other hand, if the estimated moving direction is the reverse direction or the moving speed is out of the reference range, the control circuit 51 notifies the main control circuit of the gaming machine of an illegal act (step S109).
After step S108 or S109, the control circuit 51 ends the medal identification process. When only one specific point is detected among the already acquired images in step S105, the control circuit 51 receives the latest image after receiving the image from the imaging unit 4 thereafter. , Binarization, detection of medal candidate areas, and processing after step S105 may be executed.

以上に説明してきたように、このメダル識別装置は、メダル識別装置内に投入された物体を撮影した画像に基づいて、その物体の外形形状がメダルの外形形状と一致するか否かによって、メダルが投入されたか否かを判定する。そのため、このメダル識別装置は、外形形状がメダルの外形形状と異なる、複数の光源を取り付けた不正行為用の治具を誤ってメダルと識別することを防止できる。またこのメダル識別装置は、複数の画像にそれぞれ写っているメダルの特定点の移動量から、メダルの移動方向及び移動速度を推定する。そのため、このメダル識別装置は、投入されたメダルに取り付けた紐を引いて投入されたメダルをメダル識別装置から取り出す不正行為も検知することができる。   As described above, this medal identification device is based on an image obtained by photographing an object placed in the medal identification device, depending on whether or not the outer shape of the object matches the outer shape of the medal. It is determined whether or not is inserted. For this reason, this medal identification device can prevent a misconduct, which has a plurality of light sources and whose outer shape is different from the outer shape of the medal, from being mistakenly identified as a medal. In addition, the medal identification device estimates the moving direction and moving speed of the medal from the moving amount of the specific point of the medal reflected in each of the plurality of images. Therefore, this medal identification device can also detect an illegal act of pulling out the inserted medal from the medal identification device by pulling the string attached to the inserted medal.

なお、本発明は、上記の実施形態に限定されない。例えば、制御回路は、メダル候補領域の中心及び真円度誤差を求める代わりに、次式に従って、メダル候補領域の外形の円形度Cを、メダル候補領域の外形形状を表す特徴量として算出してもよい。
ここでSは、メダル候補領域の面積(すなわち、メダル候補領域に含まれる画素数)を表し、Lは、メダル候補領域の周囲長(すなわち、メダル候補領域の外縁に位置する画素数)を表す。この変形例では、制御回路は、2値化画像上での上側ガイド部材の下端を、メダル候補領域の上端と推定し、下側ガイド部材の上端をメダル候補領域の下端と推定してもよい。そして制御回路は、円形度Cが所定の閾値(例えば、0.9)以上であれば、メダル候補領域の外形形状がメダルの外形形状と一致すると判定し、逆に円形度Cがその閾値未満であれば、メダル候補領域に写っている物体はメダルでないと判定してもよい。
In addition, this invention is not limited to said embodiment. For example, instead of obtaining the center and roundness error of the medal candidate area, the control circuit calculates the circularity C of the outer shape of the medal candidate area as a feature amount representing the outer shape of the medal candidate area according to the following equation: Also good.
Here, S represents the area of the medal candidate area (that is, the number of pixels included in the medal candidate area), and L represents the perimeter of the medal candidate area (that is, the number of pixels located at the outer edge of the medal candidate area). . In this modification, the control circuit may estimate the lower end of the upper guide member on the binarized image as the upper end of the medal candidate area and estimate the upper end of the lower guide member as the lower end of the medal candidate area. . If the circularity C is equal to or greater than a predetermined threshold (for example, 0.9), the control circuit determines that the outer shape of the medal candidate region matches the outer shape of the medal, and conversely, if the circularity C is less than the threshold. For example, it may be determined that the object shown in the medal candidate area is not a medal.

また、他の変形例によれば、制御回路は、画像に対して2値化処理を行わずに、直接エッジを検出することで、メダル候補領域を求めてもよい。この場合、制御回路は、画像に対して直接(1)式のように水平方向の近傍画素間演算を行ってエッジ強度を算出し、そのエッジ強度の絶対値が所定のエッジ強度閾値以上となる画素をメダル候補領域のエッジとしてもよい。なお、エッジ強度閾値は、例えば、画像の輝度値の最大値と最小値の差の1/5〜1/2に設定される。またこの例でも、被写体領域内の画素の輝度値の方が背景領域内の画素の輝度値よりも低いので、エッジ強度が正であれば、そのエッジ強度に対応する画素は、メダル候補領域の右側のエッジであり、エッジ強度が負であれば、そのエッジ強度に対応する画素は、メダル候補領域の左側のエッジである。   According to another modification, the control circuit may obtain the medal candidate area by directly detecting the edge without performing the binarization process on the image. In this case, the control circuit calculates the edge strength by performing the calculation between the neighboring pixels in the horizontal direction directly on the image as in equation (1), and the absolute value of the edge strength is equal to or greater than a predetermined edge strength threshold. The pixel may be the edge of the medal candidate area. The edge strength threshold is set to, for example, 1/5 to 1/2 of the difference between the maximum value and the minimum value of the luminance value of the image. Also in this example, since the luminance value of the pixel in the subject area is lower than the luminance value of the pixel in the background area, if the edge intensity is positive, the pixel corresponding to the edge intensity is the medal candidate area. If it is the right edge and the edge strength is negative, the pixel corresponding to the edge strength is the left edge of the medal candidate area.

さらに他の変形例によれば、制御回路は、撮像部の撮影範囲内に通路に投入された物体が存在しないときに撮影され、予め制御基板のメモリに記憶された参照画像と、撮像部から受け取った画像とで対応画素間の差分演算を行って、その差分値絶対値が所定の閾値以上となる画素の集合を、メダル候補領域として抽出してもよい。なお、所定の閾値は、例えば、輝度値の取り得る最大値の1/4〜1/2とすることができる。   According to still another modification, the control circuit captures a reference image that is captured when there is no object thrown into the passage within the imaging range of the imaging unit and is stored in advance in the memory of the control board, and the imaging unit. A difference calculation between corresponding pixels may be performed on the received image, and a set of pixels whose difference value absolute value is equal to or greater than a predetermined threshold may be extracted as a medal candidate region. The predetermined threshold value can be set to, for example, 1/4 to 1/2 of the maximum value that the luminance value can take.

さらに他の変形例によれば、2値化画像に占めるメダル候補領域の面積、すなわち、メダル候補領域に含まれる画素数が、メダルの面積に相当する所定の面積閾値よりも大きい場合、制御回路は、不正行為が行われたと判定し、その旨を遊技機の主制御回路へ通知してもよい。   According to still another modification, when the area of the medal candidate region in the binarized image, that is, the number of pixels included in the medal candidate region is larger than a predetermined area threshold corresponding to the medal area, the control circuit May determine that an illegal act has been performed and notify the main control circuit of the gaming machine to that effect.

さらに他の変形例によれば、撮像部の撮影範囲よりもメダル投入口側に、メダルの通過を検知するセンサが設けられていてもよい。このセンサは、例えば、通路を挟んで対向するように配置された光源と受光素子とを有する光学センサとすることができる。この場合には、制御回路は、センサがメダルを検知した後に、撮像部により撮影された画像のみを用いて、メダルが写っているか否か判定してもよい。そしてこの場合には、制御回路は、メダルの移動方向及び移動速度を推定せずに、メダル候補領域の外形形状がメダルの外形形状と一致すれば、正規にメダルが投入されたと判定してもよい。   According to another modification, a sensor that detects the passage of a medal may be provided on the medal insertion slot side of the imaging range of the imaging unit. This sensor can be, for example, an optical sensor having a light source and a light receiving element arranged so as to face each other across a passage. In this case, after the sensor detects the medal, the control circuit may determine whether or not the medal is captured using only the image captured by the imaging unit. In this case, the control circuit does not estimate the moving direction and moving speed of the medal, and if the outer shape of the medal candidate area matches the outer shape of the medal, the control circuit may determine that the medal is properly inserted. Good.

さらに他の変形例によれば、光源と撮像部は、通路に対して同一の側に配置されてもよい。この場合には、光源からの光は、メダルまたは光源が配置された側とは通路の反対側の側壁で反射されて撮像部に達することになる。一般に、メダルは金属製であり、光の反射率が高いので、この変形例では、画像上ではメダルが写っている領域に含まれる画素の輝度値は、メダルが写っていない領域に含まれる画素の輝度値よりも高くなる。なお、メダルが写っている領域に含まれる画素の輝度値とメダルが写っていない領域に含まれる画素の輝度値との差が大きくなるように、通路の側壁には、光源が発する波長の光に対して吸収性を持つ塗料が塗布されることが好ましい。
また、制御回路は、画像を被写体領域と背景領域に2値化する際、2値化閾値よりも輝度が高い画素の値よりも、2値化閾値以下の輝度値を持つ画素の値を高くすることで、上記の実施形態と同様の処理を行って、画像にメダルが写っているか否か、及びメダルの移動方向及び移動速度の推定を行える。
According to still another modification, the light source and the imaging unit may be arranged on the same side with respect to the passage. In this case, the light from the light source is reflected by the side wall on the opposite side of the passage from the side where the medal or the light source is arranged, and reaches the imaging unit. In general, since the medal is made of metal and has a high light reflectivity, in this modification, the luminance value of the pixel included in the area where the medal is shown on the image is the pixel included in the area where the medal is not shown. It becomes higher than the luminance value. Note that light of a wavelength emitted by the light source is placed on the side wall of the passage so that the difference between the luminance value of the pixel included in the area where the medal is shown and the luminance value of the pixel included in the area where the medal is not shown is large. It is preferable that a paint having absorptivity is applied.
In addition, when the control circuit binarizes the image into the subject area and the background area, the control circuit increases the value of a pixel having a luminance value equal to or lower than the binarization threshold value than the pixel value having a higher luminance value than the binarization threshold value. Thus, the same processing as in the above embodiment is performed, and it is possible to estimate whether or not a medal is shown in the image, and the movement direction and movement speed of the medal.

図9は、本発明の実施形態または変形例によるメダル識別装置を備えた回胴遊技機100の概略斜視図である。また図10は、前面パネルを開いた状態における、回胴遊技機100の概略斜視図である。そして図11は、回胴遊技機100の回路ブロック図である。図9及び図10に示すように、回胴遊技機100は、遊技機本体である本体筺体101と、発光ドラム102a〜102cと、スタートレバー103と、ストップボタン104a〜104cと、前面パネル105とを有する。
また回胴遊技機100は、本体筺体101内に、前面パネル105の背面側に取り付けられたメダル識別装置106と、各種の制御回路などが収容された制御ボックス107と、主制御回路110からの制御信号に応じてメダルを一時貯留し、かつメダルを排出するためのメダル貯留・排出機構108を有する。
そして図11に示されるように、制御ボックス107内には、例えば、回胴遊技機100全体を制御する主制御回路110と、遊技の演出に関連する各部を制御する演出用制御回路111と、回胴遊技機100の各部に電力を供給する電源回路112などが収容されている。
FIG. 9 is a schematic perspective view of a spinning game machine 100 including a medal identification device according to an embodiment or a modification of the present invention. FIG. 10 is a schematic perspective view of the spinning machine 100 with the front panel opened. FIG. 11 is a circuit block diagram of the spinning cylinder game machine 100. As shown in FIGS. 9 and 10, the spinning machine 100 includes a main body housing 101 that is a gaming machine body, light emitting drums 102 a to 102 c, a start lever 103, stop buttons 104 a to 104 c, and a front panel 105. Have
Further, the spinning machine 100 includes a medal identification device 106 attached to the back side of the front panel 105, a control box 107 in which various control circuits are accommodated, and a main control circuit 110. A medal storage / discharge mechanism 108 for temporarily storing medals in accordance with the control signal and discharging the medals is provided.
As shown in FIG. 11, in the control box 107, for example, a main control circuit 110 that controls the entire spinning game machine 100, an effect control circuit 111 that controls each part related to the effect of the game, A power supply circuit 112 that supplies power to each part of the spinning machine 100 is accommodated.

前面パネル105の前面の中央上部には開口105aが形成されており、その開口105aを通じて、発光ドラム102a〜102cが視認可能になっている。また開口105aの下側の枠105bの上面には、メダルを投入するための開口105cが形成されており、この開口105cとメダル識別装置106の上面に設けられたメダル投入口とが一致するように、メダル識別装置106が配置されている。なお、メダル識別装置106のメダル排出口は、メダル貯留・排出機構108と接続されており、メダル識別装置106から排出されたメダルは、メダル貯留・排出機構108に回収される。   An opening 105a is formed at the upper center of the front surface of the front panel 105, and the light emitting drums 102a to 102c are visible through the opening 105a. An opening 105c for inserting medals is formed on the upper surface of the frame 105b on the lower side of the opening 105a. The opening 105c and the medal insertion slot provided on the upper surface of the medal identification device 106 coincide with each other. In addition, a medal identification device 106 is arranged. The medal discharge port of the medal identification device 106 is connected to the medal storage / discharge mechanism 108, and medals discharged from the medal identification device 106 are collected by the medal storage / discharge mechanism 108.

前面パネル105の下部には、下パネルとして、複数の発光ダイオードを含む装飾装置が設けられていてもよい。さらに、装飾装置の下方において、前面パネル105には、メダルを排出するためのメダル排出口105dが形成されている。そしてメダル排出口105dの下方には、排出されたメダルが落下することを防止するためのメダル受け皿105eが取り付けられている。また前面パネル105の左上端近傍及び右上端近傍にはスピーカ(図示せず)が取り付けられてもよい。   A decoration device including a plurality of light emitting diodes may be provided as a lower panel below the front panel 105. Further, a medal discharge port 105d for discharging medals is formed in the front panel 105 below the decoration device. A medal tray 105e for preventing the discharged medal from falling is attached below the medal discharge port 105d. A speaker (not shown) may be attached near the upper left end and near the upper right end of the front panel 105.

発光ドラム102a〜102cは、演出用制御回路111からの制御信号に応じて、本体筺体101の前面に対して略平行かつ略水平な回転軸(図示せず)を回転中心として、それぞれ、別個に回転可能となっている。各発光ドラム102a〜102cの表面は、それぞれ、回転方向に沿って複数の略同一幅を持つ領域に区切られ、領域ごとに様々な図柄が描かれている。なお、発光ドラム102a〜102cの代わりに、液晶ディスプレイなどの表示装置が、その表示画面が開口105aを介して視認可能なように設けられてもよい。この場合、表示装置は、演出用制御回路111からの制御信号に応じて、複数のドラムを模擬的に示した画像を表示画面に表示させる。
スタートレバー103は、前面パネル105の枠105bの前面に向かって左側に設けられている。また、枠105bの前面略中央には、ストップボタン104a〜104cが設けられている。ストップボタン104a〜104cは、それぞれ、発光ドラム102a〜102cに対応する。
Each of the light emitting drums 102a to 102c is individually separated around a rotation axis (not shown) that is substantially parallel and substantially horizontal to the front surface of the main body housing 101 in accordance with a control signal from the effect control circuit 111. It can be rotated. The surface of each of the light emitting drums 102a to 102c is divided into a plurality of regions having substantially the same width along the rotation direction, and various designs are drawn for each region. Instead of the light emitting drums 102a to 102c, a display device such as a liquid crystal display may be provided so that the display screen is visible through the opening 105a. In this case, the display device displays an image showing a plurality of drums on the display screen in response to the control signal from the effect control circuit 111.
The start lever 103 is provided on the left side toward the front surface of the frame 105 b of the front panel 105. Further, stop buttons 104a to 104c are provided substantially at the front center of the frame 105b. The stop buttons 104a to 104c correspond to the light emitting drums 102a to 102c, respectively.

メダル識別装置106は、上記の実施形態または変形例によるメダル識別装置である。そしてメダルが開口105cを通じてメダル識別装置106のメダル投入口に投入されると、メダル識別装置106は、投入されたメダルが正規のものか否か判定し、正規のメダルであれば、その旨を主制御回路110へ出力する。そして主制御回路110は、投入されたメダルに応じて、遊技の回数などを決定し、回胴遊技機100が遊技を開始することを許可する。その後に、スタートレバー103が操作されると、スタートレバー103が操作されたことを示す信号が主制御回路110へ伝達される。そして主制御回路110は、演出用制御回路111に、発光ドラム102a〜102cの回転を開始させる。また演出用制御回路111は、発光ドラム102a〜102cの回転中、遊技者の興趣を高めるために、発光ドラム102a〜102cが停止しているときとは異なる効果音をスピーカを通じて出力させたり、装飾装置の発光ダイオードを明滅させたりしてもよい。   The medal identification device 106 is a medal identification device according to the above-described embodiment or modification. When the medal is inserted into the medal slot of the medal identification device 106 through the opening 105c, the medal identification device 106 determines whether or not the inserted medal is a regular medal, and if it is a regular medal, this is indicated. Output to the main control circuit 110. Then, the main control circuit 110 determines the number of games and the like according to the inserted medal, and permits the spinning machine 100 to start the game. Thereafter, when the start lever 103 is operated, a signal indicating that the start lever 103 has been operated is transmitted to the main control circuit 110. Then, the main control circuit 110 causes the production control circuit 111 to start rotating the light emitting drums 102a to 102c. Further, the production control circuit 111 outputs a sound effect different from that when the light-emitting drums 102a to 102c are stopped to enhance the player's interest during rotation of the light-emitting drums 102a to 102c, The light emitting diode of the device may be blinked.

その後、ストップスイッチ104a〜104cの何れかが押下されると、主制御回路110は、その押下されたスイッチから押下されたことを示す信号を受信し、その押下されたスイッチに対応する発光ドラムの回転を演出用制御回路111を介して停止させる。あるいは、主制御回路110は、発光ドラム102a〜102cのうち、回転を開始してから所定期間が経過するまでに、対応するストップスイッチが押下されなかった発光ドラムを、その所定期間経過後に、演出用制御回路111を介して停止させる。
そして全ての発光ドラムが停止した時点で、同一の図柄が全ての発光ドラムにわたって一列に並んでいると、主制御回路110は、その図柄に応じた所定枚数のメダルをメダル排出口を通じて排出する。またこの場合、演出制御回路111は、ドラムの回転時及び同一の図柄が全ての発光ドラムにわたって一列に並ばなかったときとは異なる効果音をスピーカを介して出力し、装飾装置の発光ダイオードをその最大輝度で点灯させてもよい。
Thereafter, when any of the stop switches 104a to 104c is pressed, the main control circuit 110 receives a signal indicating that the switch is pressed from the pressed switch, and the light emitting drum corresponding to the pressed switch. The rotation is stopped via the production control circuit 111. Alternatively, the main control circuit 110 produces an effect on the light emitting drums in which the corresponding stop switch has not been pressed before the predetermined period elapses after the rotation starts, among the light emitting drums 102a to 102c. Is stopped via the control circuit 111.
When all the light emitting drums are stopped and the same symbol is arranged in a line across all the light emitting drums, the main control circuit 110 discharges a predetermined number of medals corresponding to the symbol through the medal discharge port. Further, in this case, the effect control circuit 111 outputs a sound effect different from that when the drum is rotated and when the same pattern is not aligned in a line across all the light emitting drums, and the light emitting diode of the decoration device is output from the speaker. It may be lit at maximum brightness.

一方、メダル識別装置106は、投入されたメダルが、治具などにより偽装されたもの、あるいは、正規なメダルであっても逆方向へ移動するといった不正な動きをしたと判定した場合には、不正行為が行われた旨を主制御回路110へ通知する。そして主制御回路110は、例えば、回胴遊技機100が設置されたホールの管理システムへ、回胴遊技機100の識別番号とともに、不正行為が行われた旨を通知する。   On the other hand, when the medal identification device 106 determines that the inserted medal is impersonated with a jig or the like, or has made an illegal movement such as moving in the reverse direction even if it is a regular medal, The main control circuit 110 is notified that an illegal act has been performed. For example, the main control circuit 110 notifies the management system of the hall in which the revolving gaming machine 100 is installed, together with the identification number of the revolving gaming machine 100, that an illegal act has been performed.

このように、当業者は、本発明の範囲内で、実施される形態に合わせて様々な変更を行うことができる。   As described above, those skilled in the art can make various modifications in accordance with the embodiment to be implemented within the scope of the present invention.

1 メダル識別装置
2 筺体
2a メダル投入口
2b メダル排出口
3 光源
4 撮像部
5 制御基板
51 制御回路
52 メモリ
6 通路
7a、7b ガイド部材
100 回胴遊技機
101 本体筺体
102a〜102c 回転ドラム
103 スタートレバー
104a〜104c ストップボタン
105 前面パネル
106 メダル識別装置
107 制御ボックス
108 メダル貯留・排出機構
110 主制御回路
111 演出用制御回路
112 電源回路
DESCRIPTION OF SYMBOLS 1 Medal identification device 2 Housing 2a Medal insertion port 2b Medal ejection port 3 Light source 4 Imaging unit 5 Control board 51 Control circuit 52 Memory 6 Passage 7a, 7b Guide member 100 Cylinder game machine 101 Main body housing 102a-102c Rotating drum 103 Start lever 104a to 104c Stop button 105 Front panel 106 Medal identification device 107 Control box 108 Medal storage / discharge mechanism 110 Main control circuit 111 Production control circuit 112 Power supply circuit

Claims (3)

メダルが流下する通路を形成する筺体と、
前記通路の一部を撮影範囲とするように配置され、当該撮影範囲の画像を生成する撮像部と、
前記画像から、前記通路内に投入された物体が写っている領域を抽出し、該領域の外形形状を表す特徴量を算出し、前記特徴量が前記メダルの外形形状に相当する基準を満たす場合にメダルが投入されたと判定する制御回路と、
を有し、
前記撮像部は、所定の時間間隔ごとに前記撮影範囲を撮影した画像を生成し、
前記制御回路は、異なる時間に撮影された第1の画像及び第2の画像のそれぞれから前記通路内に投入された物体が写っている領域上の特定点を検出し、前記第1の画像上の前記特定点と前記第2の画像上の前記特定点間の距離を前記第1の画像が撮影された時刻と前記第2の画像が撮影された時刻との差で割ることによって当該物体の移動方向及び移動速度を推定し、該推定された移動方向が前記通路を流下する前記メダルの移動方向と一致しないか、あるいは該推定された移動速度が、前記通路を流下する前記メダルの移動速度の基準範囲に含まれなければ、不正行為が行われたと判定する
メダル識別装置。
A housing that forms a passage where medals flow down,
An imaging unit that is arranged so that a part of the passage is an imaging range, and generates an image of the imaging range;
When an area in which an object placed in the passage is reflected is extracted from the image, a feature amount representing the outer shape of the region is calculated, and the feature amount satisfies a standard corresponding to the outer shape of the medal A control circuit for determining that a medal has been inserted,
I have a,
The imaging unit generates an image of the imaging range at predetermined time intervals;
The control circuit detects a specific point on a region where an object thrown into the passage is captured from each of the first image and the second image taken at different times, and The distance between the specific point of the object and the specific point on the second image is divided by the difference between the time when the first image was captured and the time when the second image was captured. The movement direction and the movement speed are estimated, and the estimated movement direction does not coincide with the movement direction of the medal flowing down the passage, or the estimated movement speed is the movement speed of the medal flowing down the passage. If it is not included in the reference range, the medal identification device determines that an illegal act has been performed .
前記制御回路は、前記特徴量が前記基準を満たさない場合、不正行為が行われたと判定する、請求項1に記載のメダル識別装置。   The medal identification device according to claim 1, wherein the control circuit determines that an illegal act has been performed when the feature amount does not satisfy the criterion. メダルが流下する通路を形成する筺体と、前記通路の一部を撮影範囲とするように配置され、当該撮影範囲の画像を生成する撮像部とを有するメダル識別装置における、メダル識別方法であって、
前記撮像部により、所定の時間間隔ごとに前記撮影範囲を撮影した画像を生成するステップと、
前記画像から、前記通路内に投入された物体が写っている領域を抽出するステップと、
前記領域の外形形状を表す特徴量を算出し、前記特徴量が前記メダルの外形形状に相当する基準を満たすか否か判定し、前記特徴量が前記基準を満たす場合にメダルが投入されたと判定するステップと、
異なる時間に前記撮像部により撮影された第1の画像及び第2の画像のそれぞれから前記通路内に投入された物体が写っている領域上の特定点を検出し、前記第1の画像上の前記特定点と前記第2の画像上の前記特定点間の距離を前記第1の画像が撮影された時刻と前記第2の画像が撮影された時刻との差で割ることによって当該物体の移動方向及び移動速度を推定し、該推定された移動方向が前記通路を流下する前記メダルの移動方向と一致しないか、あるいは該推定された移動速度が、前記通路を流下する前記メダルの移動速度の基準範囲に含まれなければ、不正行為が行われたと判定するステップと、
を含むメダル識別方法。
A medal identification method in a medal identification device having a housing that forms a passage through which medals flow down, and an imaging unit that is arranged so that a part of the passage is set as a shooting range and generates an image of the shooting range. ,
Generating, by the imaging unit, an image of the imaging range captured at predetermined time intervals;
Extracting from the image a region where an object thrown into the passage is shown;
A feature amount representing the outer shape of the area is calculated, it is determined whether or not the feature amount satisfies a standard corresponding to the outer shape of the medal, and it is determined that a medal is inserted when the feature amount satisfies the reference And steps to
A specific point on a region where an object thrown into the passage is reflected is detected from each of the first image and the second image taken by the imaging unit at different times, and the first image is displayed on the first image. Movement of the object by dividing the distance between the specific point and the specific point on the second image by the difference between the time when the first image was taken and the time when the second image was taken The direction and moving speed are estimated, and the estimated moving direction does not match the moving direction of the medal flowing down the passage, or the estimated moving speed is equal to the moving speed of the medal flowing down the passage. If not within the reference range, determining that fraud has occurred;
Medal identification method including
JP2011216543A 2011-09-30 2011-09-30 Medal identification device and medal identification method Active JP5817399B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011216543A JP5817399B2 (en) 2011-09-30 2011-09-30 Medal identification device and medal identification method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011216543A JP5817399B2 (en) 2011-09-30 2011-09-30 Medal identification device and medal identification method

Publications (2)

Publication Number Publication Date
JP2013075015A JP2013075015A (en) 2013-04-25
JP5817399B2 true JP5817399B2 (en) 2015-11-18

Family

ID=48479001

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011216543A Active JP5817399B2 (en) 2011-09-30 2011-09-30 Medal identification device and medal identification method

Country Status (1)

Country Link
JP (1) JP5817399B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04213007A (en) * 1990-10-12 1992-08-04 Fuji Electric Co Ltd Method and apparatus for measuring shape of circular body
JP2007233813A (en) * 2006-03-02 2007-09-13 Juki Corp Fraudulence detector of coin selector
JP2007319388A (en) * 2006-05-31 2007-12-13 Aruze Corp Game machine
JP2008134875A (en) * 2006-11-29 2008-06-12 Juki Corp Coin sortor
JP2008242717A (en) * 2007-03-27 2008-10-09 Juki Corp Coin sorting device
JP4961305B2 (en) * 2007-09-03 2012-06-27 株式会社日立製作所 Vehicle monitoring device for toll road automatic toll booth
JP5145997B2 (en) * 2008-02-13 2013-02-20 オムロン株式会社 Coin processing equipment

Also Published As

Publication number Publication date
JP2013075015A (en) 2013-04-25

Similar Documents

Publication Publication Date Title
JP5817401B2 (en) Game machine
JP6357897B2 (en) Medal identification device and medal identification method
JP3652545B2 (en) Coin discrimination device
JP4113393B2 (en) Coin discrimination method and apparatus
US9672399B2 (en) Diffuse bright field illumination system for a barcode reader
US20150021400A1 (en) Barcode reader having multiple illumination systems and multiple sets of imaging optics
JP6303252B2 (en) Medal identification device and medal identification method
JP2016004333A (en) Model image generation device and model image generation method
WO2018142998A1 (en) Image collection device, coin-shaped medium processing device, and image collection method
US8864034B1 (en) Barcode reader having multiple illumination systems and multiple sets of imaging optics
JP6361305B2 (en) Model image generating apparatus and model image generating method
JP5817399B2 (en) Medal identification device and medal identification method
JP2002324260A (en) Method and device for identifying coin
WO2019202868A1 (en) Coin wear or deformation detection device, coin handling machine, and coin wear or deformation detection method
JP2010104569A (en) Method and device for button front/back determination
JP2016004331A (en) Medal identification device and medal identification method
JP6303251B2 (en) Game machine
JP7224846B2 (en) Optical coin identification device, coin processing machine and coin identification method
JP2005114504A (en) Lighting system
JP6823484B2 (en) Image collection device, coin-like medium processing machine and image collection method
JP5949207B2 (en) Motion sensor and object motion detection method
JP2020067772A (en) Coin identification device, coin processor and coin identification method
JP2007172547A (en) Engraved mark reader
JP6299459B2 (en) Medal identification device and medal identification method
JP2008242717A (en) Coin sorting device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141217

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150120

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150316

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150602

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150727

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: 20150901

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150914

R150 Certificate of patent or registration of utility model

Ref document number: 5817399

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150