JP5953614B2 - Disc discrimination method, disc discrimination device, and disc sorting device - Google Patents

Disc discrimination method, disc discrimination device, and disc sorting device Download PDF

Info

Publication number
JP5953614B2
JP5953614B2 JP2012255685A JP2012255685A JP5953614B2 JP 5953614 B2 JP5953614 B2 JP 5953614B2 JP 2012255685 A JP2012255685 A JP 2012255685A JP 2012255685 A JP2012255685 A JP 2012255685A JP 5953614 B2 JP5953614 B2 JP 5953614B2
Authority
JP
Japan
Prior art keywords
image
medal
discriminated
disc
images
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
JP2012255685A
Other languages
Japanese (ja)
Other versions
JP2014102765A (en
JP2014102765A5 (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.)
Asahi Seiko Co Ltd
Original Assignee
Asahi Seiko Co Ltd
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 Asahi Seiko Co Ltd filed Critical Asahi Seiko Co Ltd
Priority to JP2012255685A priority Critical patent/JP5953614B2/en
Publication of JP2014102765A publication Critical patent/JP2014102765A/en
Publication of JP2014102765A5 publication Critical patent/JP2014102765A5/ja
Application granted granted Critical
Publication of JP5953614B2 publication Critical patent/JP5953614B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、ディスク判別方法およびディスク判別装置に関し、詳しくは、ディスクの表面または裏面の模様を撮像して撮像画像を取得し、当該撮像画像を基準画像と比較することによりディスクの真偽を判別するディスク判別方法およびディスク判別装置に関する。   The present invention relates to a disc discrimination method and disc discriminating apparatus, and more specifically, discriminates the authenticity of a disc by capturing a captured image by capturing a pattern on the front or back surface of the disc and comparing the captured image with a reference image. The present invention relates to a disc discrimination method and a disc discrimination device.

また、本発明は、ディスク選別装置に関し、詳しくは、ディスクの表面または裏面の模様を撮像して撮像画像を取得し、当該撮像画像を基準画像と比較することによりディスクの真偽を判別し、当該判別結果に基づいてディスクを選別するディスク選別装置に関する。   In addition, the present invention relates to a disk sorting device, and more specifically, to acquire a captured image by capturing a pattern on the front or back surface of the disk, to determine the authenticity of the disk by comparing the captured image with a reference image, The present invention relates to a disk sorting apparatus that sorts disks based on the determination result.

なお、本明細書におけるディスクは、遊技機に用いられるメダルやトークン、通貨である硬貨をも含む概念である。   Note that the disc in this specification is a concept that includes medals and tokens used in gaming machines, and coins as currency.

メダルや硬貨の表面または裏面の模様を撮像し、撮像画像を用いて金種や真偽を判別する技術は、従来から種々提案されており、例えば、特許文献1〜3に開示されたものがある。   Various techniques for picking up a pattern on the front or back surface of a medal or coin and discriminating the denomination or authenticity using the picked-up image have been conventionally proposed. For example, those disclosed in Patent Documents 1 to 3 have been proposed. is there.

特許文献1の画像識別方法および画像識別装置では、識別対象物の凹凸模様を高分解能に読み取り、得られた画像データに基づいて対象物の中心位置を算出し、算出された中心位置を基準にして画像データを対象物の模様が判別できる範囲で圧縮する。基準画像データを各種回転角度で回転させたデータをそれぞれ用意し、各種回転角度で回転させた基準画像データと圧縮画像データとを照合する。照合により得られた不一致点の累積個数が最小となる回転角度の基準画像データを特定し、特定された基準画像データに対する圧縮画像データの一致点および不一致点と所定の許容範囲とを比較して、圧縮画像データと基準画像データとの一致/不一致を識別している。   In the image identification method and the image identification device disclosed in Patent Document 1, the uneven pattern of the identification object is read with high resolution, the center position of the object is calculated based on the obtained image data, and the calculated center position is used as a reference. The image data is compressed within a range where the pattern of the object can be identified. Data obtained by rotating the reference image data at various rotation angles is prepared, and the reference image data rotated at the various rotation angles and the compressed image data are collated. Identify the reference image data of the rotation angle that minimizes the cumulative number of inconsistent points obtained by collation, and compare the coincidence points and inconsistency points of the compressed image data with the specified reference image data and a predetermined allowable range A match / mismatch between the compressed image data and the reference image data is identified.

特許文献2の硬貨識別装置では、硬貨のパターンを読み取って得た画像データにより硬貨の外径および中心位置を抽出し、抽出された外径と予め記録された既存の硬貨の外径とを比較することにより、硬貨の金種を判別する。抽出された中心位置を基に硬貨の中心位置と画像データの中心位置が等しくなるように画像データの位置を修正し、中心位置が修正された画像データと1次マッチング用辞書データとを用いて回転マッチングを行う。回転マッチングでマッチング率が一定の閾値を超えた場合、その角度を硬貨の回転角度とし、当該回転角度を基に画像データの回転角度を補正する。回転角度が補正された画像データと2次マッチング用辞書とを用いてパターンマッチングを行い、硬貨の真偽を判別している。   In the coin identification device of Patent Document 2, the outer diameter and center position of a coin are extracted from image data obtained by reading a coin pattern, and the extracted outer diameter is compared with the pre-recorded outer diameter of an existing coin. By doing so, the denomination of the coin is determined. Based on the extracted center position, the position of the image data is corrected so that the center position of the coin is equal to the center position of the image data, and the image data whose center position is corrected and the primary matching dictionary data are used. Perform rotation matching. When the matching rate exceeds a certain threshold in the rotation matching, the angle is set as the rotation angle of the coin, and the rotation angle of the image data is corrected based on the rotation angle. Pattern matching is performed using the image data with the corrected rotation angle and the secondary matching dictionary to determine whether the coin is true or false.

特許文献3に開示された画像判別方法では、所定の回転角度毎に取得した回転角度別画像データと当該回転角度別データに対して回転角度情報を挿入し、角度別の画像データを重ね合わせ収納した参照辞書と、取り込んだ画像データの画素と参照辞書の画素とを照合し、回転角度別画像データの画素の一致度によって取り込んだ画像の判別を行っている。また、所定の位置ズレ毎に取得した位置ズレ別画像データと当該位置ズレ別画像データに対して位置ズレ情報を挿入し、位置ズレ別の画像データを重ね合わせ収納した参照辞書と、取り込んだ画像データの画素と参照辞書の画素とを照合し、位置ズレ別画像データの画素の一致度によって取り込んだ画像の判別を行っている。   In the image discrimination method disclosed in Patent Document 3, rotation angle information is inserted into image data for each rotation angle acquired for each predetermined rotation angle and the data for each rotation angle, and the image data for each angle is stored in an overlapping manner. The reference dictionary is compared with the pixels of the captured image data and the pixels of the reference dictionary, and the captured image is discriminated based on the degree of coincidence of the pixels of the image data for each rotation angle. In addition, the image data for each positional deviation acquired for each predetermined positional deviation and the reference dictionary in which positional deviation information is inserted into the image data for each positional deviation, and the image data for each positional deviation are stored and stored, and the captured image The data pixels and the reference dictionary pixels are collated, and the captured image is discriminated based on the degree of coincidence of the pixels of the image data by positional deviation.

特開平9−27056号公報(図1〜3、段落番号0015〜0021)JP-A-9-27056 (FIGS. 1 to 3, paragraph numbers 0015 to 0021) 特開平10−63911(図1、段落番号0013〜0018)JP-A-10-63911 (FIG. 1, paragraph numbers 0013 to 0018) 特開2006−39732号公報(図9〜12、段落番号0030、0038〜0043)JP 2006-39732 A (FIGS. 9-12, paragraph numbers 0030, 0038-0043)

ところで、ディスクの表面または裏面の模様は、ディスクの中心を基準にして位置決めされた状態で形成される。ところが、遊技用メダルや外国硬貨のようなディスクの場合、ディスクの中心に対する模様の位置ズレが大きく、上記特許文献1の画像識別方法および画像識別装置のように基準画像データを各種回転角度で回転させたデータを用いて照合しても、判別精度が不十分であるという問題がある。すなわち、模様の位置ズレ量が大きい場合、ディスクの中心を基準に基準画像を回転しても、模様は位置ズレを含んだ状態(換言すれば、偏心状態)で回転されるため、不正確な回転画像となってしまい、判別精度が低下する。   By the way, the pattern on the front surface or the back surface of the disc is formed in a state of being positioned with reference to the center of the disc. However, in the case of a disc such as a game medal or a foreign coin, the positional deviation of the pattern with respect to the center of the disc is large, and the reference image data is rotated at various rotation angles as in the image identification method and image identification device of Patent Document 1 above. Even if collation is performed using the processed data, there is a problem that the discrimination accuracy is insufficient. That is, if the amount of positional deviation of the pattern is large, even if the reference image is rotated with reference to the center of the disc, the pattern is rotated in a state including the positional deviation (in other words, an eccentric state). It becomes a rotated image, and the discrimination accuracy decreases.

特許文献2の硬貨識別装置では、硬貨の中心位置を求め、硬貨の中心位置と画像データの中心位置が等しくなるように画像データの位置を修正した後、回転マッチングを行って硬貨の回転角度求め、求められた回転角度で画像データの回転を補正している。この場合、単に硬貨の中心位置と画像データの中心位置とが一致するだけであり、模様の位置ズレに対しては何ら考慮されていない。したがって、特許文献1の場合と同様に、判別精度が不十分であるという問題がある。   In the coin identification device of Patent Document 2, the center position of the coin is obtained, the position of the image data is corrected so that the center position of the coin and the center position of the image data are equal, and then the rotation angle is obtained by performing rotation matching. The rotation of the image data is corrected at the obtained rotation angle. In this case, the center position of the coin simply coincides with the center position of the image data, and no consideration is given to the positional deviation of the pattern. Therefore, as in the case of Patent Document 1, there is a problem that the discrimination accuracy is insufficient.

特許文献3の画像判別方法では、回転する硬貨の認識において、回転角度別画像データを重ね合わせたデータを参照辞書として用い、取り込んだ画像データと参照辞書とを照合している。この場合、模様の位置ズレに対しては何ら考慮されていないため、特許文献1および特許文献2の場合と同様に、判別精度が不十分であるという問題がある。   In the image discrimination method of Patent Document 3, in recognizing a rotating coin, data obtained by superimposing image data for each rotation angle is used as a reference dictionary, and the captured image data and the reference dictionary are collated. In this case, since no consideration is given to the positional deviation of the pattern, there is a problem that the discrimination accuracy is insufficient as in the case of Patent Document 1 and Patent Document 2.

また、透かしや印刷の位置ズレの大きい紙幣の認識において、位置ズレ別画像データを重ね合わせたデータを参照辞書として用い、取り込んだ画像データと参照辞書とを照合している。しかし、回転するディスクにおいて模様が位置ズレした場合については考慮されておらず、やはり判別精度が不十分であるという問題がある。   In recognition of a banknote with a large watermark or printing misalignment, data obtained by superimposing misaligned image data is used as a reference dictionary, and the captured image data and the reference dictionary are collated. However, the case where the pattern is misaligned on the rotating disk is not taken into account, and there is still a problem that the discrimination accuracy is insufficient.

本発明は、上述した従来技術の問題を考慮してなされたものであり、その目的とするところは、ディスクの中心に対し模様の位置ズレがある場合にも高い精度で判別できるディスク判別方法およびディスク判別装置を提供することにある。
本発明のさらに他の目的は、ディスクの中心に対し模様の位置ズレがある場合にも高い精度で判別でき、選別精度の高いディスク選別装置を提供することにある。
ここに明記しない本発明の他の目的は、以下の説明および添付図面から明らかである。
The present invention has been made in consideration of the above-described problems of the prior art, and an object of the present invention is to provide a disc discrimination method capable of discriminating with high accuracy even when there is a pattern misalignment with respect to the center of the disc. It is to provide a disc discrimination device.
It is still another object of the present invention to provide a disc sorting apparatus that can discriminate with high accuracy even when there is a misalignment of the pattern with respect to the center of the disc and has high sorting accuracy.
Other objects of the present invention which are not specified here will be apparent from the following description and the accompanying drawings.

この目的を達成するため、本発明にかかるディスク判別方法、ディスク判別装置およびディスク選別装置は以下のように構成される。   In order to achieve this object, the disc discriminating method, disc discriminating device, and disc sorting device according to the present invention are configured as follows.

発明のディスク判別方法は、基準ディスクに対応する基準画像を準備し、判別対象ディスクの一面を撮像手段で撮像して撮像画像を取得し、取得した前記撮像画像に基づく被判別画像と前記基準画像とを対比することにより判別手段が前記判別対象ディスクの真偽を判別するディスク判別方法において、(A)前記判別対象ディスクの撮像画像に基づく第1の被判別画像を生成し、当該第1の被判別画像と前記基準画像とを対比する工程と、(B)前記第1の被判別画像をそれぞれ異なる複数の回転角度で回転した画像に相当する複数の第2の被判別画像を生成し、当該第2の被判別画像と前記基準画像とを対比する工程と、(C)前記第1および第2の被判別画像から選ばれた一以上を座標変換により平行移動してなる複数の第3の被判別画像と前記基準画像とを対比する工程と、を含み、前記(A)、(B)および(C)の工程における対比結果から前記判別対象ディスクの真偽が判別され、前記(A)および(B)の工程における前記第1および第2の被判別画像と前記基準画像との対比結果から3つの回転角度を特定し、前記(C)の工程では当該特定された3つの回転角度に対応する前記第3の被判別画像についてのみ対比が行われることを特徴とするディスク判別方法である。
In the disc discrimination method of the present invention, a reference image corresponding to a reference disc is prepared, an image of one side of the disc to be discriminated is picked up by an imaging means to obtain a picked-up image, a discriminated image based on the acquired picked-up image and the reference In the disc discriminating method in which the discriminating unit discriminates the authenticity of the discriminating target disc by comparing with an image, (A) generating a first discriminating image based on the captured image of the discriminating target disc, and A step of comparing the discriminated image with the reference image, and (B) generating a plurality of second discriminated images corresponding to images obtained by rotating the first discriminated image at a plurality of different rotation angles. A step of comparing the second image to be discriminated with the reference image, and (C) a plurality of second images obtained by translating one or more selected from the first and second images to be discriminated by coordinate transformation. 3 courtesy Wherein the step of comparing the image with the reference image, wherein the (A), (B) and the authenticity of the determination target disk from the comparison result in the step of (C) is determined, the (A) and ( Three rotation angles are identified from the comparison result between the first and second discriminated images and the reference image in the step B), and the three rotation angles corresponding to the identified three rotation angles in the step (C). The disc discrimination method is characterized in that the comparison is performed only for the third discriminated image .

本発明のディスク判別方法では、判別対象ディスクの撮像画像に基づいて第1の被判別画像を生成し、第1の被判別画像と基準ディスクに対応する基準画像とを対比すると共に、第1の被判別画像をそれぞれ異なる複数の回転角度で回転した画像に相当する複数の第2の被判別画像を生成し、第2の被判別画像と基準画像とを対比する。複数の第2の被判別画像は、第1の被判別画像に対してそれぞれ回転角度が異なるため、撮像画像において判別対象ディスクの模様が回転していても、その回転角度と同一または近似する回転角度を有し、且つ、回転方向が逆の被判別画像と基準画像とを対比することにより、模様の回転が補正される。換言すれば、模様の回転ズレが除去または減少される。さらに、第1および第2の被判別画像から選ばれた一以上を座標変換により平行移動して複数の第3の被判別画像を生成し、第3の被判別画像と被判別画像とを対比する。これにより、平行移動における方向および移動量が適正であれば、撮像画像における判別対象ディスクの模様が位置ズレしていても、その位置ズレが補正される。換言すれば、位置ズレが除去または減少される。したがって、第1、第2および第3の被判別画像と基準画像とを対比することにより、撮像画像における模様の回転および位置ズレの双方の影響が除去または減少され、判別精度を高めることができる。
さらに、第1および第2の被判別画像と基準画像との対比結果から3つの回転角度を特定し、当該特定された3つの回転角度に対応する第3の被判別画像についてのみ基準画像との対比が行われる。この場合、基準画像と対比する第3の被判別画像の数が減少するので、判別に要する時間を短縮できる利点がある。
In the disc discriminating method of the present invention, a first discriminated image is generated based on a captured image of a disc to be discriminated, the first discriminated image and a reference image corresponding to the reference disc are compared, and the first discriminating image is compared. A plurality of second discriminated images corresponding to images obtained by rotating the discriminated images at a plurality of different rotation angles are generated, and the second discriminated image and the reference image are compared. Since the plurality of second discriminated images have different rotation angles with respect to the first discriminating image, even if the pattern of the disc to be discriminated is rotated in the captured image, the rotation is the same as or approximate to the rotation angle. The rotation of the pattern is corrected by comparing the discriminated image having an angle and the rotation direction opposite to the reference image. In other words, the rotational deviation of the pattern is removed or reduced. Further, one or more selected from the first and second discriminated images are translated by coordinate transformation to generate a plurality of third discriminated images, and the third discriminated image and the discriminated image are compared. To do. Thereby, if the direction and the amount of movement in the parallel movement are appropriate, even if the pattern of the disc to be discriminated in the captured image is misaligned, the misalignment is corrected. In other words, the positional deviation is removed or reduced. Therefore, by comparing the first, second, and third discriminated images with the reference image, the influence of both the rotation of the pattern and the positional deviation in the captured image is removed or reduced, and the discrimination accuracy can be improved. .
Furthermore, three rotation angles are specified from the comparison result between the first and second discriminated images and the reference image, and only the third discriminating image corresponding to the specified three rotation angles is compared with the reference image. A comparison is made. In this case, since the number of third images to be compared with the reference image is reduced, there is an advantage that the time required for the determination can be shortened.

なお、本発明において、「平行移動」とは、座標平面上において任意の座標点に画像が移動することを意味し、例えば、画像がX−Y平面上に形成される場合においてX方向および/またはY方向に移動することである。また、「対比結果」とは、基準画像との差の度合いを意味し、例えば、基準画像に対する相違度または類似度である。   In the present invention, “parallel movement” means that the image moves to an arbitrary coordinate point on the coordinate plane. For example, when the image is formed on the XY plane, the X direction and / or Or moving in the Y direction. The “contrast result” means the degree of difference from the reference image, and is, for example, the degree of difference or similarity to the reference image.

発明のディスク判別方法の好ましい例では、前記(C)の工程では前記第1または第2の被判別画像の平行移動が平行移動の方向を変えながら繰り返し実行される。この場合、平行移動の方向を変えることで位置ズレの補正が最適となり得るため、判別精度を一層高めることができる利点がある。
In a preferred example of the disc discrimination method of the present invention, in the step (C), the translation of the first or second discriminated image is repeatedly executed while changing the direction of the translation. In this case, since the correction of the positional deviation can be optimized by changing the direction of the parallel movement, there is an advantage that the discrimination accuracy can be further improved.

発明のディスク判別方法の他の好ましい例では、前記(A)、(B)および(C)の工程における対比結果のうち最良の対比結果に基づき前記判別対象ディスク(M)の真偽を判別する。この場合、撮像画像における模様の回転および位置ズレの双方の影響が最も少ない被判別画像との対比結果により真偽の判別がなされるため、判別の基準値(換言すれば、閾値)を厳しく設定することができ、より正確な判別が可能となる利点がある。
In another preferable example of the disc discrimination method of the present invention, the authenticity of the disc to be discriminated (M) is discriminated based on the best comparison result among the comparison results in the steps (A), (B) and (C). To do. In this case, since the true / false determination is made based on the comparison result with the image to be discriminated that has the least influence of both the rotation of the pattern and the positional deviation in the captured image, the discrimination reference value (in other words, the threshold value) is set strictly. There is an advantage that more accurate discrimination is possible.

発明のディスク判別装置は、基準ディスクに対応する基準画像を基準画像保持手段に保持し、判別対象ディスクの一面を撮像手段で撮像して撮像画像を取得し、取得した前記判別対象ディスクの撮像画像に基づく被判別画像と前記基準画像とを対比することにより判別手段が前記判別対象ディスクの真偽を判別するディスク判別装置において、前記判別対象ディスクの撮像画像に基づく第1の被判別画像および前記第1の被判別画像をそれぞれ異なる複数の回転角度で回転した画像に相当する複数の第2の被判別画像を生成する手段と、前記第1および第2の被判別画像から選ばれた一以上を座標変換により平行移動して複数の第3の被判別画像を生成する画像移動手段を有し、前記判別手段が、前記第1、第2および第3の被判別画像のそれぞれと前記基準画像とを対比し、当該対比結果から前記判別対象ディスクの真偽を判別し、前記判別手段が、前記第1および第2の被判別画像と前記基準画像との対比結果から3つの回転角度を特定し、前記第3の被判別画像と前記基準画像とを対比する場合には当該特定された3つ回転角度に対応する前記第3の被判別画像に対してのみ対比を行うことを特徴とするディスク判別装置である。
The disc discriminating apparatus of the present invention holds a reference image corresponding to a reference disc in a reference image holding unit, captures an image of one side of the disc to be discriminated by an imaging unit, acquires a captured image, and images the acquired disc to be discriminated. In the disc discrimination device in which the discriminating unit discriminates the authenticity of the discriminating target disc by comparing the discriminating image based on the image with the reference image, the first discriminating image based on the captured image of the discriminating target disc, and Means for generating a plurality of second discrimination images corresponding to images obtained by rotating the first discrimination image at a plurality of different rotation angles, and one selected from the first and second discrimination images An image moving means for generating a plurality of third discriminated images by translating the above by coordinate transformation, wherein the discriminating means includes the first, second and third discriminated images. By comparison with the reference image and respectively, to determine the authenticity of the determination target disk from the comparison result, said determination means, comparison result between the first and second to-be-determined image and the reference image When the three rotation angles are specified and the third discriminated image and the reference image are compared, only the third discriminating image corresponding to the specified three rotation angles is compared. It is a disk discriminating apparatus characterized by performing

本発明のディスク判別装置では、判別対象ディスクの撮像画像に基づいて第1の被判別画像を生成すると共に、第1の被判別画像をそれぞれ異なる複数の回転角度で回転された画像に相当する複数の第2の被判別画像を生成する手段を有している。また、第1および第2の被判別画像から選ばれた一以上を座標変換により平行移動して複数の第3の被判別画像を生成する画像移動手段を有している。そして、判別手段は第1、第2および第3の被判別画像のそれぞれと基準画像とを対比し、当該対比結果から判別対象ディスクの真偽を判別する。複数の第2の被判別画像は、第1の被判別画像に対してそれぞれ回転角度が異なるため、撮像画像において判別対象ディスクの模様が回転していても、その回転角度と同一または近似する回転角度を有し、且つ、回転方向が逆の被判別画像と基準画像とを対比することにより、模様の回転が補正される。換言すれば、模様の回転ズレが除去または減少される。さらに、第3の被判別画像と基準画像とを対比することにより、平行移動における方向および移動量が適正であれば、撮像画像における判別対象ディスクの模様が位置ズレしていても、その位置ズレが補正される。換言すれば、位置ズレが除去または減少される。したがって、第1、第2および第3の被判別画像と基準画像とを対比することにより、撮像画像における模様の回転および位置ズレの双方の影響が除去または減少され、判別精度を高めることができる。
さらに、第1および第2の被判別画像と基準画像との対比結果から3つの回転角度を特定し、第3の被判別画像と前記基準画像とを対比する場合には当該特定された3つ回転角度に対応する前記第3の被判別画像に対してのみ対比を行う。この場合、基準画像と対比する第3の被判別画像の数が減少するので、判別に要する時間を短縮できる利点がある。
In the disc discriminating apparatus of the present invention, a first discriminated image is generated based on a captured image of a disc to be discriminated, and a plurality of images corresponding to images obtained by rotating the first discriminated image at a plurality of different rotation angles. Means for generating the second discriminated image. In addition, image moving means for generating a plurality of third discriminated images by translating one or more selected from the first and second discriminated images by coordinate transformation is provided. The discriminating unit compares each of the first, second, and third discriminated images with the reference image, and discriminates the authenticity of the disc to be discriminated from the comparison result. Since the plurality of second discriminated images have different rotation angles with respect to the first discriminating image, even if the pattern of the disc to be discriminated is rotated in the captured image, the rotation is the same as or approximate to the rotation angle. The rotation of the pattern is corrected by comparing the discriminated image having an angle and the rotation direction opposite to the reference image. In other words, the rotational deviation of the pattern is removed or reduced. Further, by comparing the third image to be discriminated with the reference image, if the direction and the amount of movement in the parallel movement are appropriate, even if the pattern of the disc to be discriminated in the captured image is misaligned, the position misalignment is achieved. Is corrected. In other words, the positional deviation is removed or reduced. Therefore, by comparing the first, second, and third discriminated images with the reference image, the influence of both the rotation of the pattern and the positional deviation in the captured image is removed or reduced, and the discrimination accuracy can be improved. .
Further, when the three rotation angles are specified from the comparison result between the first and second discriminated images and the reference image, and the third discriminated image and the reference image are compared, the three specified Comparison is performed only on the third image to be discriminated corresponding to the rotation angle. In this case, since the number of third images to be compared with the reference image is reduced, there is an advantage that the time required for the determination can be shortened.

発明のディスク判別装置の好ましい例では、前記画像移動手段による前記第1または第2の被判別画像の平行移動が平行移動の方向を変えながら繰り返し実行される。この場合、平行移動の方向を変えることで位置ズレの補正が最適となり得るため、判別精度を一層高めることができる利点がある。
In a preferred example of the disc discriminating apparatus of the present invention, the translation of the first or second discriminated image by the image moving means is repeatedly executed while changing the direction of the parallel movement. In this case, since the correction of the positional deviation can be optimized by changing the direction of the parallel movement, there is an advantage that the discrimination accuracy can be further improved.

発明のディスク判別装置の他の好ましい例では、前記判別手段が、前記第1、第2および第3の被判別画像と前記基準画像との対比結果のうち最良の対比結果に基づき前記判別対象ディスクの真偽を判別する。この場合、撮像画像における模様の回転および位置ズレの双方の影響が最も少ない被判別画像との対比結果により真偽の判別がなされるため、判別の基準値(換言すれば、閾値)を厳しく設定することができ、より正確な判別が可能となる利点がある。
In another preferred example of the disk discriminating apparatus of the present invention, the discriminating unit is configured to discriminate the discriminating object based on a best comparison result among the comparison results between the first, second and third discriminated images and the reference image. Determine the authenticity of the disk. In this case, since the true / false determination is made based on the comparison result with the image to be discriminated that has the least influence of both the rotation of the pattern and the positional deviation in the captured image, the discrimination reference value (in other words, the threshold value) is set strictly. There is an advantage that more accurate discrimination is possible.

本発明のディスク判別方法では、ディスクの中心に対し模様の位置ズレがある場合にも高い精度で判別できる、という効果が得られる。
本発明のディスク判別装置では、ディスクの中心に対し模様の位置ズレがある場合にも高い精度で判別できる、という効果が得られる。
In the disc discrimination method of the present invention, it is possible to discriminate with high accuracy even when there is a misalignment of the pattern with respect to the center of the disc.
In the disc discriminating apparatus of the present invention, it is possible to discriminate with high accuracy even when there is a misalignment of the pattern with respect to the center of the disc.

本発明の実施例1のメダル選別装置を示す概略正面図である。It is a schematic front view which shows the medal selection apparatus of Example 1 of this invention. 図1のメダル選別装置のII−II線に沿った概略断面図である。It is a schematic sectional drawing in alignment with the II-II line of the medal selection apparatus of FIG. 図1のメダル選別装置を構成する撮像タイミングセンサが直径の異なるメダルを検知する際の状態を示す模式図である。It is a schematic diagram which shows the state at the time of the imaging timing sensor which comprises the medal selection apparatus of FIG. 1 detecting a medal from which a diameter differs. 図1のメダル選別装置の概略構成図である。It is a schematic block diagram of the medal selection apparatus of FIG. 図1のメダル選別装置の画像処理部を示すブロック図である。It is a block diagram which shows the image process part of the medal selection apparatus of FIG. 図1のメダル選別装置の動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement of the medal selection apparatus of FIG. 図6の基準画像登録ステップの詳細を示すフローチャートである。It is a flowchart which shows the detail of the reference | standard image registration step of FIG. 図7の前処理ステップの詳細を示すフローチャートである。It is a flowchart which shows the detail of the pre-processing step of FIG. 図6の画像対比判定ステップの詳細を示すフローチャートである。It is a flowchart which shows the detail of the image contrast determination step of FIG. 図6の画像対比判定ステップの詳細を示すフローチャートで、図9の続きである。FIG. 10 is a flowchart showing details of the image comparison determination step in FIG. 6 and is a continuation of FIG. 9. 図9の撮像画像前処理ステップの詳細を示すフローチャートである。10 is a flowchart showing details of a captured image preprocessing step in FIG. 9. 図10の平行移動ステップの詳細を示すフローチャートである。It is a flowchart which shows the detail of the parallel movement step of FIG. 図12の平行移動ステップにおける画像の移動を示す模式図である。It is a schematic diagram which shows the movement of the image in the parallel movement step of FIG. 本発明の実施例2のメダル選別装置の動作を説明するためのフローチャートで、画像対比判定ステップの詳細を示す。It is a flowchart for demonstrating operation | movement of the medal selection apparatus of Example 2 of this invention, and shows the detail of an image contrast determination step. 本発明の実施例2のメダル選別装置の動作を説明するためのフローチャートで、図14の続きである。It is a flowchart for demonstrating operation | movement of the medal selection apparatus of Example 2 of this invention, and is a continuation of FIG. 本発明の実施例3のメダル選別装置の動作を説明するためのフローチャートで、画像対比判定ステップの詳細を示す。It is a flowchart for demonstrating operation | movement of the medal selection apparatus of Example 3 of this invention, and shows the detail of an image contrast determination step. 本発明の実施例3のメダル選別装置の動作を説明するためのフローチャートで、図14の続きである。It is a flowchart for demonstrating operation | movement of the medal selection apparatus of Example 3 of this invention, and is a continuation of FIG.

以下、本発明の実施の形態を添付図面に基づいて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.

(構成)
本発明のディスク選別装置の一例として、図1〜4に示すメダル選別装置100について説明する。このメダル選別装置100は、ゲーム機等に内蔵されて使用されるもので、投入されたメダルの真偽を判別して偽メダルFMをメダル返却口101へ振り分けると共に、真正メダルTMをメダル受入口102へ案内する機能を有する。メダル選別装置100は、本体103、メダル投入口104、メダル通路105、振分ゲート106、二次元撮像装置120、撮像タイミングセンサ111、メダルカウントセンサ113、制御装置140、ROM142、RAM143、ユーザインターフェース151、状態表示器152、登録スイッチ153およびセキュリティボリューム154を含んでいる。
(Constitution)
As an example of the disk sorting device of the present invention, a medal sorting device 100 shown in FIGS. The medal sorting device 100 is used by being incorporated in a game machine or the like. The medal sorting device 100 determines the authenticity of the inserted medals and distributes the fake medal FM to the medal return port 101. The function of guiding to 102 is provided. The medal sorting device 100 includes a main body 103, a medal slot 104, a medal passage 105, a sorting gate 106, a two-dimensional imaging device 120, an imaging timing sensor 111, a medal count sensor 113, a control device 140, a ROM 142, a RAM 143, and a user interface 151. A status indicator 152, a registration switch 153, and a security volume 154.

本体103は、メダル投入口104およびメダル通路105が形成され、振分ゲート106、二次元撮像装置120、撮像タイミングセンサ111およびメダルカウントセンサ113が取り付けられる機能を有する。本体103は、矩形箱形であって、樹脂により製造されている。本体103において、メダル通路105の一側壁に矩形の撮像窓110が設けられている。   The main body 103 is formed with a medal slot 104 and a medal passage 105, and has a function to which a sorting gate 106, a two-dimensional imaging device 120, an imaging timing sensor 111, and a medal count sensor 113 are attached. The main body 103 has a rectangular box shape and is made of resin. In the main body 103, a rectangular imaging window 110 is provided on one side wall of the medal passage 105.

メダル投入口104は、ゲーム機等の投入口(図示せず)に投入された硬貨を受け入れる機能を有する。メダル投入口104は、本体103の上面の左端部に片寄せて形成され、スリット状の断面形状を有している。   The medal slot 104 has a function of accepting coins inserted into a slot (not shown) such as a game machine. The medal slot 104 is formed to be shifted to the left end portion of the upper surface of the main body 103 and has a slit-like cross-sectional shape.

メダル通路105は、メダル投入口104に投入され、落下又は転動するメダルMを案内する機能を有する。メダル通路105は、本体103内に形成され、メダル投入口104とほぼ同一のスリット状の断面形状を有している。メダル通路105は、図1に示すように、メダル投入口104から垂下する垂立メダル通路105Vおよびその下流において左斜め下方へ下向きに傾斜する傾斜メダル通路105Sを含んでいる。よって、メダル投入口104に投入されたメダルMは、垂立メダル通路105Vを垂直に落下した後、ガイドレール108によって案内される。ガイドレール108は、図1に示すように、案内線GLに沿って形成された案内面108aを有し、メダルMの転動方向に向かって前下がりに傾斜している。そのため、メダルMはガイドレール108により右側へ案内され、ガイドレール108の案内面108a上を転動して傾斜メダル通路105Sを移動する。換言すれば、傾斜メダル通路105Sにおいて、メダルMの周面は案内線GLを介してガイドレール108に接触し、ガイドレール108により支持されつつ案内線GLに沿って右側に案内される。なお、ガイドレール108として平板以外の形状のものも使用可能であり、例えば、ガイドレール108を棒状体で構成してもよい。その場合、メダルMは、傾斜メダル通路105S内において本体103に形成される案内面103aにもたれ掛かりつつ、周面をガイドレール108に支持されて案内線GL上を転動する。   The medal passage 105 has a function of guiding the medal M that is inserted into the medal insertion port 104 and falls or rolls. The medal passage 105 is formed in the main body 103 and has a slit-like cross-sectional shape that is substantially the same as that of the medal insertion slot 104. As shown in FIG. 1, the medal passage 105 includes a vertical medal passage 105 </ b> V that hangs down from the medal insertion slot 104 and an inclined medal passage 105 </ b> S that is inclined downward and obliquely downward to the left. Therefore, the medal M inserted into the medal insertion slot 104 is guided by the guide rail 108 after dropping vertically in the vertical medal passage 105V. As shown in FIG. 1, the guide rail 108 has a guide surface 108 a formed along the guide line GL and is inclined forward and downward in the rolling direction of the medal M. Therefore, the medal M is guided to the right side by the guide rail 108 and rolls on the guide surface 108a of the guide rail 108 to move in the inclined medal path 105S. In other words, in the inclined medal path 105S, the peripheral surface of the medal M contacts the guide rail 108 via the guide line GL, and is guided to the right along the guide line GL while being supported by the guide rail 108. The guide rail 108 may have a shape other than a flat plate. For example, the guide rail 108 may be formed of a rod-shaped body. In this case, the medal M rolls on the guide line GL with its peripheral surface supported by the guide rail 108 while leaning against the guide surface 103a formed on the main body 103 in the inclined medal passage 105S.

振分ゲート106は、傾斜メダル通路105Sに進退自在に配置された振分板109を有している。振分板109が傾斜メダル通路105Sに進入した場合、転動するメダルMをガイドレール108上から逸らせて落下させ、メダル返却口101へ返却する。振分板109が傾斜メダル通路105Sから退出した場合、メダルMはガイドレール108上を転動して振分ゲート106を通過する。振分板109は、制御装置140からのゲート制御信号GCSによって傾斜メダル通路105Sへ進入する。なお、通常、振分板109は傾斜メダル通路105Sに進入した状態(すなわち、振分ゲート106が閉じた状態)で保持されている。   The sorting gate 106 has a sorting plate 109 that is disposed in the inclined medal passage 105S so as to be able to advance and retreat. When the sorting plate 109 enters the inclined medal passage 105S, the rolling medal M is deviated from the guide rail 108 and dropped and returned to the medal return port 101. When the sorting plate 109 leaves the inclined medal passage 105S, the medal M rolls on the guide rail 108 and passes through the sorting gate 106. The distribution plate 109 enters the inclined medal passage 105S by a gate control signal GCS from the control device 140. Normally, the sorting plate 109 is held in a state where it enters the inclined medal passage 105S (that is, the sorting gate 106 is closed).

二次元撮像装置120は、メダル通路105を移動するメダルMの一面の画像を二次元で撮像する機能を有する。二次元撮像装置120は、投光装置121、ハーフミラー122、集光レンズ123および撮像素子124を含んでいる。   The two-dimensional imaging device 120 has a function of capturing an image of one surface of the medal M moving along the medal passage 105 in two dimensions. The two-dimensional imaging device 120 includes a light projecting device 121, a half mirror 122, a condenser lens 123, and an imaging element 124.

投光装置121はハーフミラー122を介してメダル通路105を移動するメダルMの一面に光を投光する機能を有する。投光装置121は、例えば、面投光装置130である。面投光装置130を用いることにより、メダルMの回転位相が異なっても影の影響のない撮像が可能となるからである。面投光装置130は、発光ダイオード(以下、LEDという)131、導光体132、反射シート133および拡散シート134を含んでいる。   The light projecting device 121 has a function of projecting light onto one surface of the medal M moving through the medal passage 105 via the half mirror 122. The light projecting device 121 is, for example, a surface light projecting device 130. This is because the use of the surface light projecting device 130 enables imaging without the influence of shadows even if the rotation phase of the medal M is different. The surface light projecting device 130 includes a light emitting diode (hereinafter referred to as LED) 131, a light guide 132, a reflection sheet 133, and a diffusion sheet 134.

LED131は、メダルMへ投光するための光源である。LED131には三色LEDが使用され、LED131が白色可視光を照射する。しかし、LED131として、白色LEDを用いることもできる。LED131は、図2に示すように、導光体132の側端面に面して配置されているので、メダル通路105と平行な面内に配置することができ、設置スペースは小さい。なお、図2に示すLED131の位置は便宜的に図示したものである。   The LED 131 is a light source for projecting onto the medal M. A three-color LED is used as the LED 131, and the LED 131 emits white visible light. However, a white LED can be used as the LED 131. As shown in FIG. 2, the LED 131 is disposed so as to face the side end surface of the light guide 132. Therefore, the LED 131 can be disposed in a plane parallel to the medal path 105, and the installation space is small. Note that the position of the LED 131 shown in FIG. 2 is shown for convenience.

導光体132は、本実施例において、低コストの観点から樹脂にて製造された矩形薄板状をしており、メダル通路105に対しその面が平行に配置されている。樹脂は、透明又は拡散材の混入により乳白色を呈する。拡散材を混入した場合、拡散シート134は不要となる。導光体132は、ガラス基板によって構成することもできる。本実施例では、撮像窓110に導光体132が相対している。   In this embodiment, the light guide 132 has a rectangular thin plate shape made of resin from the viewpoint of low cost, and the surface thereof is arranged in parallel with the medal passage 105. The resin exhibits a milky white color due to being transparent or mixed with a diffusing material. When the diffusion material is mixed, the diffusion sheet 134 becomes unnecessary. The light guide 132 can also be constituted by a glass substrate. In this embodiment, the light guide 132 is opposed to the imaging window 110.

反射シート133は、導光体132からメダル通路105の反対側へ光が拡散するのを防止し、メダル通路105側に反射する機能を有する。反射シート133は、導光体132のメダル通路105の反対側に位置する面に密着されている。なお、反射シート133に代えて、導光体132に銀幕を蒸着しても良い。   The reflection sheet 133 has a function of preventing light from diffusing from the light guide 132 to the opposite side of the medal path 105 and reflecting it to the medal path 105 side. The reflection sheet 133 is in close contact with the surface of the light guide 132 located on the opposite side of the medal path 105. Note that a silver screen may be deposited on the light guide 132 instead of the reflection sheet 133.

拡散シート134は、導光体132のメダル通路105側の面から投光される光を面均一に拡散させる機能を有する。したがって、導光体132によって導かれ、または、反射シート133によって反射されたLED131からの投射光は、拡散シート134によって面全体に亘って均一な光量にされ、メダル通路105に向けて投光される。これにより、メダルMに均一な投光がなされる。拡散シート134から投射される投射光は、メダル通路105、換言すれば、メダル通路105を移動するメダルMに対し直角に投射される。これは、メダルMの表面の凹凸による光学的な影を作らないためである。導光体132、反射シート133および拡散シート134は薄いので、投光装置121を小型にすることができる。   The diffusion sheet 134 has a function of uniformly diffusing light projected from the surface of the light guide 132 on the medal path 105 side. Therefore, the projection light from the LED 131 guided by the light guide 132 or reflected by the reflection sheet 133 is made a uniform light amount over the entire surface by the diffusion sheet 134 and is projected toward the medal path 105. The As a result, uniform light is projected onto the medal M. The projection light projected from the diffusion sheet 134 is projected at a right angle to the medal path 105, in other words, the medal M moving through the medal path 105. This is because an optical shadow due to the unevenness of the surface of the medal M is not created. Since the light guide 132, the reflection sheet 133, and the diffusion sheet 134 are thin, the light projecting device 121 can be downsized.

ハーフミラー122は、光の一部を反射すると共に、一部を透過する機能を有する。具体的には、投光装置121からの投光は透過し、メダルMからの反射光は反射する機能を有する。換言すれば、ハーフミラー122は、投光装置121からの投光をメダル通路105におけるメダルMに対し直角に投光し、かつ、メダルMからの反射光をメダル通路105と平行な方向に反射させる。本実施例において、ハーフミラー122は薄い透明樹脂にクロムを蒸着メッキしたものである。これは、低コスト化のためである。しかし、ガラス板にクロムをメッキしてもよい。ハーフミラー122は、撮像窓110の側方において、メダル通路105の面に対し45度の角度でメダル通路105から離れるほど左下方に位置するよう傾斜配置されている。具体的には、ハーフミラー122は、傾斜メダル通路105Sの左下領域においてメダル通路105に対し45度の角度で傾斜している。ハーフミラー122の長手軸線LLは、対面するメダル通路105におけるメダルMの進行線DL(傾斜メダル通路105Sに相対しているので僅かに傾斜した水平線になる)に対して所定角度傾斜する方向に配置されている。   The half mirror 122 has a function of reflecting part of light and transmitting part of light. Specifically, the light projection from the light projection device 121 is transmitted, and the reflected light from the medal M is reflected. In other words, the half mirror 122 projects the light from the light projecting device 121 at a right angle to the medal M in the medal path 105 and reflects the reflected light from the medal M in a direction parallel to the medal path 105. Let In this embodiment, the half mirror 122 is formed by depositing chromium on a thin transparent resin. This is for cost reduction. However, chromium may be plated on the glass plate. The half mirror 122 is disposed on the side of the imaging window 110 so as to be positioned at the lower left as the distance from the medal path 105 increases by 45 degrees with respect to the surface of the medal path 105. Specifically, the half mirror 122 is inclined at an angle of 45 degrees with respect to the medal path 105 in the lower left region of the inclined medal path 105S. The longitudinal axis LL of the half mirror 122 is arranged in a direction inclined at a predetermined angle with respect to the travel line DL of the medal M in the facing medal path 105 (which is a slightly inclined horizontal line because it is opposed to the inclined medal path 105S). Has been.

集光レンズ123は、ハーフミラー122によって反射された光を所定の小さな範囲に集光する機能を有する。集光レンズ123は、上記機能から、所定の屈折率を有する凸レンズであり、本体103内においてハーフミラー122の左側方(図1では、左斜め下方)に配置され、ハーフミラー122と同等又は小さい直径を有している。投光装置121等の形状を工夫し、集光レンズ123を小型化することが好ましい。これは、低価格化及び小型化のためである。   The condensing lens 123 has a function of condensing the light reflected by the half mirror 122 into a predetermined small range. The condensing lens 123 is a convex lens having a predetermined refractive index due to the above function, and is disposed on the left side of the half mirror 122 (lower left diagonal in FIG. 1) in the main body 103 and is equal to or smaller than the half mirror 122. It has a diameter. It is preferable to devise the shape of the light projecting device 121 and reduce the size of the condenser lens 123. This is for cost reduction and miniaturization.

撮像素子124は、集光レンズ123によって集光された像を撮像する機能を有する。撮像素子124は、集光レンズ123の左側方(図1では、左斜め下方)に配置されている。撮像素子124は、小型化のため、CCDイメージセンサやCMOSイメージセンサが採用される。   The image sensor 124 has a function of capturing an image condensed by the condenser lens 123. The image sensor 124 is disposed on the left side of the condenser lens 123 (in the diagonally lower left in FIG. 1). For the image pickup element 124, a CCD image sensor or a CMOS image sensor is employed for miniaturization.

撮像タイミングセンサ111は、メダル通路105を転動するメダルMが撮像窓110に相対するタイミングを検知する機能を有する。撮像タイミングセンサ111は、撮像窓110下流の傾斜メダル通路105Sに配置され、メダルMの中心がハーフミラー122の長手軸線LL上方(換言すれば、後述の基準線BL上)に達したときに撮像タイミングセンサ111がメダルMを検知できるよう配置されている。そのため、撮像タイミングセンサ111は、メダルMを最適に撮像できるタイミングを示すタイミング信号TSをメダルMの検知信号として出力する。   The imaging timing sensor 111 has a function of detecting the timing at which the medal M rolling on the medal path 105 faces the imaging window 110. The imaging timing sensor 111 is disposed in the inclined medal passage 105S downstream of the imaging window 110, and takes an image when the center of the medal M reaches above the longitudinal axis LL of the half mirror 122 (in other words, on a reference line BL described later). The timing sensor 111 is arranged so as to detect the medal M. Therefore, the imaging timing sensor 111 outputs a timing signal TS indicating the timing at which the medal M can be optimally imaged as a detection signal for the medal M.

撮像タイミングセンサ111としては、メダルMの位置をより正確に検知できる光電式のセンサを用いるのが好ましい。本実施例では、撮像タイミングセンサ111は、発光部112a、受光部112bおよびプリズム112cを含む光電センサ112である。発光部112aから出射した光がプリズム112cを介して受光部112bに入射するよう発光部112a、受光部112bおよびプリズム112cが配置され、メダルMが発光部112aから出射した光を遮ることによりメダルMの通過が検知されるよう構成されている。換言すれば、発光部112aから出射される光の軸(すなわち、光軸LA)によりメダルMを検知する検知軸線DALが形成され、検知軸線DALをメダルMの周面が横切ることによりメダルMが検知される。   As the imaging timing sensor 111, it is preferable to use a photoelectric sensor that can detect the position of the medal M more accurately. In this embodiment, the imaging timing sensor 111 is a photoelectric sensor 112 including a light emitting unit 112a, a light receiving unit 112b, and a prism 112c. The light emitting unit 112a, the light receiving unit 112b, and the prism 112c are arranged so that the light emitted from the light emitting unit 112a is incident on the light receiving unit 112b via the prism 112c, and the medal M blocks the light emitted from the light emitting unit 112a. Is configured to be detected. In other words, the detection axis DAL for detecting the medal M is formed by the axis of the light emitted from the light emitting unit 112a (that is, the optical axis LA), and the medal M crosses the detection axis DAL by the peripheral surface of the medal M. Detected.

検知軸線DALは、撮像窓110に直角な方向(図1の紙面表側から裏側に向かう方向)から見て、メダルMの進行線DLにほぼ直角な方向に配置されるのが好ましい。換言すれば、検知軸線DALは傾斜メダル通路105Sにおいてガイドレール108の案内線GLにほぼ直角な方向に配置されるのが好ましい。これにより、検知軸線DALが傾斜メダル通路105Sを最短距離で横切ることとなり、撮像タイミングセンサ111を最も効率良く設置できるからである。すなわち、案内線GLに対し直角な方向から見て、撮像タイミングセンサ111の設置に必要な領域が最小となるので、メダル選別装置100を小型化できる利点がある。しかし、検知軸線DALの案内線GLに対する角度は、90度に限定されるものではなく、メダル通路105の形状や撮像タイミングセンサ111の配置に応じて適宜に設定できる。   The detection axis DAL is preferably arranged in a direction substantially perpendicular to the progress line DL of the medal M when viewed from a direction perpendicular to the imaging window 110 (a direction from the front side to the back side in FIG. 1). In other words, the detection axis DAL is preferably arranged in a direction substantially perpendicular to the guide line GL of the guide rail 108 in the inclined medal path 105S. This is because the detection axis DAL crosses the inclined medal path 105S at the shortest distance, and the imaging timing sensor 111 can be installed most efficiently. That is, since the area required for installation of the imaging timing sensor 111 is minimized when viewed from a direction perpendicular to the guide line GL, there is an advantage that the medal sorting device 100 can be downsized. However, the angle of the detection axis DAL with respect to the guide line GL is not limited to 90 degrees, and can be appropriately set according to the shape of the medal path 105 and the arrangement of the imaging timing sensor 111.

なお、撮像タイミングセンサ111の受光部12bは、傾斜メダル通路105Sを挟んで発光部12aと対向する位置に配置することもできる。その場合、プリズム12cは不要となる。
Note that the light receiving unit 1 1 2b of the imaging timing sensor 111 can also be disposed at a position facing the light emitting unit 1 1 2a with the inclined medal passage 105S interposed therebetween. In that case, the prism 1 1 2c is unnecessary.

撮像窓110は、傾斜メダル通路105Sの一側壁に設けられた平面視矩形の開口からなり、傾斜メダル通路105Sを転動するメダルMの撮像領域を画定する機能を有する。図3に示すように、撮像窓110の高さH(換言すれば、長辺LSの長さ)は、最大径の選別対象メダルM1の直径よりも幅広に形成されている。縦方向においてメダルMの直径に関する情報を取得するためである。撮像窓110の幅W(換言すれば、短辺SSの長さ)は、最小径の選別対象メダルM3の直径よりも僅かに小さく形成してある。転動するメダルMが傾斜メダル通路105Sから外れることを防止すると共に、ハーフミラー122の横方向の大きさを規制し、メダル通路105に対し45度の角度で傾斜配置されるハーフミラー122の離れ量を規制し、装置を小型化するためである。しかし、他の飛び出し防止手段を設けることにより、撮像窓110の幅WをメダルMの直径よりも大きくすることができる。   The imaging window 110 includes a rectangular opening in a plan view provided on one side wall of the inclined medal path 105S, and has a function of demarcating an imaging area of the medal M rolling on the inclined medal path 105S. As shown in FIG. 3, the height H of the imaging window 110 (in other words, the length of the long side LS) is formed wider than the diameter of the maximum diameter selection target medal M1. This is for acquiring information on the diameter of the medal M in the vertical direction. The width W of the imaging window 110 (in other words, the length of the short side SS) is formed to be slightly smaller than the diameter of the minimum diameter selection target medal M3. The rolling medal M is prevented from coming off the inclined medal path 105S, and the lateral size of the half mirror 122 is restricted, and the half mirror 122 that is inclined with respect to the medal path 105 at an angle of 45 degrees is separated. This is to regulate the amount and reduce the size of the device. However, by providing other pop-out prevention means, the width W of the imaging window 110 can be made larger than the diameter of the medal M.

撮像窓110に直角な方向から見て、ガイドレール108の案内線GLと撮像タイミングセンサ111の検知軸線DALとのなす角ANGの二等分線を基準線BLとした場合、撮像窓110の長辺が基準線BLと平行になるよう撮像窓110が配置される。換言すれば、撮像窓110は基準線BLに沿って延在している。なお、ハーフミラー122の長手軸線LLは、基準線BLに平行であり、撮像窓110に直角な方向に基準線BLから所定距離を隔てて配置される。換言すれば、撮像窓110に直角な方向から見て長手軸線LLと基準線BLとが重なるよう配置される。   When the bisector of the angle ANG formed by the guide line GL of the guide rail 108 and the detection axis DAL of the imaging timing sensor 111 when viewed from the direction perpendicular to the imaging window 110 is the reference line BL, the length of the imaging window 110 The imaging window 110 is arranged so that the side is parallel to the reference line BL. In other words, the imaging window 110 extends along the reference line BL. The longitudinal axis LL of the half mirror 122 is parallel to the reference line BL, and is arranged at a predetermined distance from the reference line BL in a direction perpendicular to the imaging window 110. In other words, the longitudinal axis LL and the reference line BL are arranged so as to overlap each other when viewed from a direction perpendicular to the imaging window 110.

メダルカウントセンサ113は、振分ゲート106を通過したメダルMを検知する機能を有する。メダルカウントセンサ113は、振分ゲート106の下流の傾斜メダル通路105Sの端部に配置され、1つまたは複数設けられる。本実施例では、1つのメダルカウントセンサ113が設けられている。メダルカウントセンサ113は、真正メダルTMと判断されたメダルMを検知するメダル検知信号DSを出力する。よって、メダル検知信号DSを計数することにより、受け入れた真正メダルTMの個数を判別することができる。メダルカウントセンサ113としては、光電式や磁気式のセンサが用いられる。本実施例では、メダルカウントセンサ113は、発光部114aおよび受光部114bを有する光電センサ114である。発光部114aから出射した光が受光部114bに入射するよう発光部114aおよび受光部114bが配置され、メダルMが発光部114aから出射した光を遮ることによりメダルMの通過が検知されるよう構成されている。   The medal count sensor 113 has a function of detecting the medal M that has passed through the sorting gate 106. One or a plurality of medal count sensors 113 are provided at the end of the inclined medal passage 105S downstream of the sorting gate 106. In this embodiment, one medal count sensor 113 is provided. The medal count sensor 113 outputs a medal detection signal DS for detecting the medal M determined to be a genuine medal TM. Therefore, the number of accepted genuine medals TM can be determined by counting the medal detection signal DS. As the medal count sensor 113, a photoelectric or magnetic sensor is used. In this embodiment, the medal count sensor 113 is a photoelectric sensor 114 having a light emitting unit 114a and a light receiving unit 114b. The light emitting unit 114a and the light receiving unit 114b are arranged so that the light emitted from the light emitting unit 114a enters the light receiving unit 114b, and the medal M detects the passage of the medal M by blocking the light emitted from the light emitting unit 114a. Has been.

制御装置140は、撮像タイミングセンサ111から出力されるタイミング信号TSに基づき撮像素子124およびLED131の作動を制御すると共に、撮像素子124から出力される撮像画像信号ISを受けてメダルMの真偽を判別し、その判別結果に基づき振分ゲート106の開閉を制御してメダル通路105を転動するメダルMを選別する機能を有する。また、制御装置140は、メダルカウントセンサ113から出力されるメダル検出信号DSに基づき、真正メダルTMと判別された個数を計数する機能も有する。制御装置140は、例えば、所定のプログラムに基づき動作するマイクロコンピュータ141によって構成される。制御装置140は、種々の画像処理を実行する画像処理部160を含んでいる。画像処理部160の詳細については後述する。   The control device 140 controls the operation of the imaging device 124 and the LED 131 based on the timing signal TS output from the imaging timing sensor 111 and receives the captured image signal IS output from the imaging device 124 to determine the authenticity of the medal M. It has a function of discriminating and selecting the medal M rolling on the medal passage 105 by controlling the opening and closing of the sorting gate 106 based on the discrimination result. The control device 140 also has a function of counting the number determined as the genuine medal TM based on the medal detection signal DS output from the medal count sensor 113. The control device 140 is constituted by, for example, a microcomputer 141 that operates based on a predetermined program. The control device 140 includes an image processing unit 160 that executes various image processes. Details of the image processing unit 160 will be described later.

ROM142は、制御装置140を動作させるプログラムおよびデータを格納する機能を有する。ROM142は、図5に示すように、後述の基準画像を保持する基準画像保持部171を含んでいる。   The ROM 142 has a function of storing a program and data for operating the control device 140. As shown in FIG. 5, the ROM 142 includes a reference image holding unit 171 that holds a later-described reference image.

RAM143は、制御装置140の動作中に必要なデータを一時的に格納する機能を有する。RAM143は、図5に示すように、二次元撮像装置120により撮像されたメダルMの撮像画像を保持する撮像画像保持部172と、画像処理部160で生成された画像を保持する処理画像保持部173とを含んでいる。   The RAM 143 has a function of temporarily storing data necessary during the operation of the control device 140. As illustrated in FIG. 5, the RAM 143 includes a captured image storage unit 172 that stores a captured image of the medal M captured by the two-dimensional imaging device 120, and a processed image storage unit that stores an image generated by the image processing unit 160. 173.

ユーザインターフェース151は、メダル選別装置100が組み込まれるゲーム機などの本体機器(図示せず)に電気的に接続する機能を有する。ユーザインターフェース151を介して本体機器をメダル選別装置100に接続することにより、本体機器に対して所望の信号を入出力可能である。   The user interface 151 has a function of electrically connecting to a main body device (not shown) such as a game machine in which the medal sorting device 100 is incorporated. By connecting the main device to the medal sorting device 100 via the user interface 151, a desired signal can be input / output to / from the main device.

状態表示器152は、メダル選別装置100の動作状態を表示する機能を有する。状態表示器152は、例えば、発光色の異なる複数のLED(図示せず)により構成され、それらLEDの発光が制御装置140により制御されることにより、メダル選別装置100の様々な状態(例えば、正常動作やエラー発生等)が報知される。なお、状態表示器152としては、液晶パネルなどのディスプレイ装置も使用可能である。   The status indicator 152 has a function of displaying the operation status of the medal sorting device 100. The status indicator 152 is composed of, for example, a plurality of LEDs (not shown) having different emission colors, and the light emission of these LEDs is controlled by the control device 140, whereby various states (for example, the medal sorting device 100) (for example, Normal operation, error occurrence, etc.) are notified. As the status indicator 152, a display device such as a liquid crystal panel can be used.

登録スイッチ153は、後述する基準画像の登録において使用され、登録の開始および終了を制御装置140に指示する機能を有する。   The registration switch 153 is used in registration of a reference image, which will be described later, and has a function of instructing the control device 140 to start and end registration.

セキュリティボリューム154は、メダル選別装置100において偽メダルFMと判別する基準値を設定する機能を有する。制御装置140は、セキュリティボリューム154により設定された基準値に基づいてメダルMの真偽を判別する。   The security volume 154 has a function of setting a reference value for discriminating from the fake medal FM in the medal sorting device 100. The control device 140 determines the authenticity of the medal M based on the reference value set by the security volume 154.

次に、図4を参照しながら、画像処理部160について説明する。画像処理部160は、中心抽出部161、エッジ強調部162、2値化部163、膨張・収縮部164、サイズ変換部165、画像回転部166、画像移動部167および判別部168を含んでいる。   Next, the image processing unit 160 will be described with reference to FIG. The image processing unit 160 includes a center extraction unit 161, an edge enhancement unit 162, a binarization unit 163, an expansion / contraction unit 164, a size conversion unit 165, an image rotation unit 166, an image movement unit 167, and a determination unit 168. .

中心抽出部161は、RAM143の撮像画像保持部172に保持された撮像画像に基づき、撮像画像におけるメダルMの中心位置を抽出する機能を有する。換言すれば、撮像画像においてメダルMの中心を示す座標値を算出する。後述するように、メダルMの中心は基準線BL上に位置するため、撮像画像において基準線BLに対応する直線上におけるメダルMの周縁部の一方と他方とを検出し、両周縁部間の中点をメダルMの中心位置とする。なお、中心位置の抽出には公知の方法を用いてもよい。例えば、撮像画像において縦軸(Y軸)方向に延びる各ラインに対しメダルMの周縁部の一方と他方とを検出し、検出された両周縁部の間隔が最大となるラインにおける両周縁部間の中点をメダルMの中心位置とする。しかし、基準線BL上において中心位置を抽出する方法は、上記公知の方法に比べ遥かに単純かつ容易であり、中心位置の抽出に要する時間を短縮できる。また、メダルMの直径を検出する直径センサを設け、検出された直径に基づきメダルMの中心位置を算出することもできる。この場合、基準線BLに対応する直線上において、案内線GLから直径の1/2の値(すなわち、半径)だけ離れた点をメダルMの中心とすればよいので、メダルMの周縁部を検出する必要がなく、中心位置の抽出に要する時間をさらに短縮できる。   The center extraction unit 161 has a function of extracting the center position of the medal M in the captured image based on the captured image held in the captured image holding unit 172 of the RAM 143. In other words, the coordinate value indicating the center of the medal M in the captured image is calculated. As will be described later, since the center of the medal M is located on the reference line BL, one of the peripheral edges of the medal M on the straight line corresponding to the reference line BL is detected in the captured image, and the distance between the peripheral edges is detected. The midpoint is the center position of the medal M. A known method may be used for extracting the center position. For example, one edge and the other edge of the medal M are detected for each line extending in the vertical axis (Y-axis) direction in the captured image, and the distance between both edges in the line where the distance between the detected edges is the maximum. Is the center position of the medal M. However, the method of extracting the center position on the reference line BL is much simpler and easier than the known method, and the time required for extracting the center position can be shortened. In addition, a diameter sensor that detects the diameter of the medal M may be provided, and the center position of the medal M may be calculated based on the detected diameter. In this case, on the straight line corresponding to the reference line BL, a point that is separated from the guide line GL by a value that is ½ of the diameter (that is, radius) may be the center of the medal M. There is no need for detection, and the time required to extract the center position can be further shortened.

エッジ強調部162は、撮像画像保持部172に保持された撮像画像においてエッジを強調する機能を有する。エッジ強調とは、画像の輪郭部の濃度勾配を急峻にし、画像をシャープにする処理である。エッジ強調は、もとの画像からその2次微分を引くこと(ラプラシアンフィルタ)やアンシャープマスクにより行なうことができる。   The edge enhancement unit 162 has a function of enhancing edges in the captured image held in the captured image holding unit 172. Edge emphasis is a process for sharpening an image by making the density gradient of the contour portion of the image steep. Edge enhancement can be performed by subtracting the second derivative from the original image (Laplacian filter) or by using an unsharp mask.

2値化部163は、エッジ強調部162でエッジ強調された画像を2値化する機能を有する。2値化とは、濃淡画像を2値画像に変換する処理である。2値化では、画素値(すなわち、輝度)が所定の閾値以上の場合にその画素値を「1」とし、それ以外の場合に画素値を「0」とする。   The binarization unit 163 has a function of binarizing the image whose edge is enhanced by the edge enhancement unit 162. Binarization is processing for converting a grayscale image into a binary image. In binarization, when a pixel value (that is, luminance) is equal to or higher than a predetermined threshold, the pixel value is set to “1”, and otherwise, the pixel value is set to “0”.

膨張・収縮部164は、2値化部163で2値化された画像に対し、注目画素の周辺に1画素でも白の画素があれば白に置き換える膨張処理と、注目画素の周辺に1画素でも黒の画素があれば黒に置き換える収縮処理とを繰り返し実行する機能を有する。膨張処理および収縮処理を繰り返し実行することにより、2値化された画像においてノイズが除去されると共にパターン欠陥(特に、線状パターンの欠陥)が修復される。   The dilation / contraction unit 164 expands the image binarized by the binarization unit 163 and replaces it with white if there is even one pixel around the pixel of interest, and one pixel around the pixel of interest. However, if there is a black pixel, it has a function of repeatedly executing contraction processing to replace it with black. By repeatedly executing the expansion process and the contraction process, noise is removed from the binarized image and a pattern defect (particularly, a linear pattern defect) is repaired.

サイズ変換部165は、膨張・収縮部164で膨張・収縮処理された画像の画像サイズを縮小する機能を有する。サイズ変換は、公知のアフィン変換を用い、座標原点(X=0、Y=0)を基準に所定の縮小率で実行される。   The size conversion unit 165 has a function of reducing the image size of the image expanded and contracted by the expansion / contraction unit 164. The size conversion is performed using a known affine transformation at a predetermined reduction rate with reference to the coordinate origin (X = 0, Y = 0).

画像回転部166は、撮像画像保持部172に保持された撮像画像または膨張・収縮部164で膨張・収縮処理された画像を回転する機能を有する。回転は、公知のアフィン変換を用い、中心抽出部161で抽出されたメダル中心位置を基準に所定の回転角度で実行される。   The image rotation unit 166 has a function of rotating the captured image held in the captured image holding unit 172 or the image expanded / contracted by the expansion / contraction unit 164. The rotation is performed at a predetermined rotation angle using a known affine transformation and using the medal center position extracted by the center extraction unit 161 as a reference.

画像移動部167は、サイズ変換部165でサイズ変換された画像を平行移動する機能を有する。平行移動は、公知のアフィン変換を用い、所定の方向および移動距離で実行される。換言すれば、画素で示されたX軸方向およびY軸方向の移動距離(例えば、X軸方向に1ピクセル、Y軸方向に0ピクセル)に基づき、画像全体が平行移動される。   The image moving unit 167 has a function of translating the image whose size has been converted by the size converting unit 165. The parallel movement is performed in a predetermined direction and a moving distance using a known affine transformation. In other words, the entire image is translated based on the movement distance (for example, 1 pixel in the X axis direction and 0 pixel in the Y axis direction) indicated by the pixels.

なお、画像処理部160は、中心抽出部161、エッジ強調部162、2値化部163、膨張・収縮部164、サイズ変換部165、画像回転部166、画像移動部167および判別部168のそれぞれの機能を有するものであれば、ハードウェアおよびソフトウェアのいずれで構成してもよい。一部をハードウェアとし残りをソフトウェアとすることも可能である。本実施例では、処理速度を高める上で有利なハードウェアにより画像処理部160の全体を構成している。   The image processing unit 160 includes a center extraction unit 161, an edge enhancement unit 162, a binarization unit 163, an expansion / contraction unit 164, a size conversion unit 165, an image rotation unit 166, an image moving unit 167, and a determination unit 168. As long as it has the above functions, it may be configured by either hardware or software. It is possible to make a part of the hardware and the rest software. In the present embodiment, the entire image processing unit 160 is configured by hardware advantageous for increasing the processing speed.

上記の構成を有するメダル選別装置100では、傾斜メダル通路105SにおいてメダルMがガイドレール108に支持されつつ案内線GLに沿って斜め下方に移動し、メダルMの進行方向側の周面が撮像タイミングセンサ111の検知軸線DAL(すなわち、光電センサ112の光軸LA)上に位置したときにメダルMが撮像窓110の所定位置(すなわち、撮像位置)に達したものとして検知される。そのため、メダルMが撮像位置に達した場合、メダルMの直径に関係なくメダルMの周面が検知軸線DAL上に位置することとなる。他方、メダルMの周面はガイドレール108により案内線GLに沿って案内されるため、メダルMが撮像位置に達した場合、メダルMの周面は案内線GL上に位置する。すなわち、図3に示すように、撮像窓110に直角な方向から見て、最大径メダルM1、中間径メダルM2および最小径メダルM3のそれぞれの外周が検知軸線DALおよび案内線GLに接した状態となる。これは、撮像窓110に直角な方向から見て、メダルM1、M2、M3の中心C1、C2、C3が案内線GLと検知軸線DALとのなす角の二等分線上に位置することを意味する。したがって、この二等分線を基準線BLとし、その基準線BLに沿って撮像窓110を延在させることにより、異なる直径を有するメダルMであってもその一面に形成された模様の全体を容易かつ確実に撮像することができる。よって、容易かつ確実な判別および選別が可能となる。換言すれば、模様の全体を撮像できるメダルMの直径範囲が広くなるので、判別および選別可能な直径範囲が広くなる。しかも、撮像窓110に直角な方向から見て基準線BLに直角な方向については、異なる直径のメダルMであっても中心位置の移動を考慮せずに撮像窓110の幅Wを設定できるため、撮像窓110の幅Wを比較的小さくできる。換言すれば、メダルMの中心位置のシフトやズレに伴って撮像領域を大きくする必要がない。したがって、メダル選別装置100を小型化できる。また、複数の撮像タイミングセンサ111を必要としないので、低コストであり、かつ、煩雑な調整も不要であり、容易に実現できる。また、画像判別の基準となるメダルMの中心位置を求める際に、基準線BL上に中心位置が存在するため、中心位置の抽出は単純かつ容易であり、判別に必要な処理時間が短縮される。換言すれば、選別に要する時間が短縮され、より高速な選別が可能となる。   In the medal sorting device 100 having the above-described configuration, the medal M moves obliquely downward along the guide line GL while being supported by the guide rail 108 in the inclined medal path 105S, and the circumferential surface on the traveling direction side of the medal M is the imaging timing. When the sensor 111 is positioned on the detection axis DAL of the sensor 111 (that is, the optical axis LA of the photoelectric sensor 112), the medal M is detected as having reached a predetermined position (that is, the imaging position) of the imaging window 110. Therefore, when the medal M reaches the imaging position, the peripheral surface of the medal M is positioned on the detection axis DAL regardless of the diameter of the medal M. On the other hand, since the peripheral surface of the medal M is guided along the guide line GL by the guide rail 108, when the medal M reaches the imaging position, the peripheral surface of the medal M is positioned on the guide line GL. That is, as shown in FIG. 3, the outer circumferences of the maximum diameter medal M1, the intermediate diameter medal M2, and the minimum diameter medal M3 are in contact with the detection axis DAL and the guide line GL when viewed from the direction perpendicular to the imaging window 110. It becomes. This means that the centers C1, C2, and C3 of the medals M1, M2, and M3 are located on the bisector of the angle formed by the guide line GL and the detection axis DAL when viewed from the direction perpendicular to the imaging window 110. To do. Therefore, by setting the bisector as the reference line BL and extending the imaging window 110 along the reference line BL, the entire pattern formed on one surface of the medal M having a different diameter can be obtained. An image can be easily and reliably captured. Therefore, easy and reliable discrimination and selection are possible. In other words, since the diameter range of the medal M that can image the entire pattern is widened, the diameter range that can be discriminated and selected is widened. In addition, in the direction perpendicular to the reference line BL when viewed from the direction perpendicular to the imaging window 110, the width W of the imaging window 110 can be set without considering the movement of the center position even for medals M having different diameters. The width W of the imaging window 110 can be made relatively small. In other words, it is not necessary to increase the imaging area in accordance with the shift or shift of the center position of the medal M. Therefore, the medal sorting device 100 can be reduced in size. In addition, since a plurality of imaging timing sensors 111 are not required, the cost is low and no complicated adjustment is required, which can be easily realized. Further, when the center position of the medal M serving as a reference for image discrimination is obtained, the center position exists on the reference line BL, so that the center position can be extracted simply and easily, and the processing time required for discrimination is shortened. The In other words, the time required for sorting is shortened, and faster sorting becomes possible.

撮像窓110の形状は長辺LSおよび短辺SSを有する矩形であり、矩形の長辺LSが基準線BLにほぼ平行になるよう撮像窓110が配置される。一般に撮像素子124は矩形の有効撮像面を有するため、撮像窓110を矩形状とすることにより、撮像素子124における撮像面の利用効率を向上させることができる。   The shape of the imaging window 110 is a rectangle having a long side LS and a short side SS, and the imaging window 110 is arranged so that the long side LS of the rectangle is substantially parallel to the reference line BL. In general, since the imaging device 124 has a rectangular effective imaging surface, the use efficiency of the imaging surface in the imaging device 124 can be improved by making the imaging window 110 rectangular.

撮像窓110に対し直角な方向から見て、基準線BLに対し対称となるよう撮像窓110が配置される。換言すれば、撮像窓110の短辺方向の中心軸線が基準線BLと重なるよう撮像窓110が配置される。これにより、撮像タイミングセンサ111によるメダルMの検知から撮像素子124によるメダルMの撮像までの時間差が無視できる程度であれば、撮像窓110において矩形の短辺方向の中心にメダルMの中心が配置されるので、模様の全体をより効率よく撮像できる。   The imaging window 110 is arranged so as to be symmetric with respect to the reference line BL when viewed from a direction perpendicular to the imaging window 110. In other words, the imaging window 110 is arranged so that the central axis in the short side direction of the imaging window 110 overlaps the reference line BL. Accordingly, if the time difference from the detection of the medal M by the imaging timing sensor 111 to the imaging of the medal M by the image sensor 124 is negligible, the center of the medal M is arranged at the center of the rectangular short side in the imaging window 110. Therefore, the entire pattern can be imaged more efficiently.

撮像タイミングセンサ111として光電センサ112を用い、光電センサ112の光軸LAが検知軸線DALを形成する。したがって、指向性および直線性の高い光によりメダルMを検知するため、検知精度を高めることができる。   A photoelectric sensor 112 is used as the imaging timing sensor 111, and the optical axis LA of the photoelectric sensor 112 forms a detection axis DAL. Therefore, since the medal M is detected by light having high directivity and linearity, detection accuracy can be improved.

(動作)
次に、図6〜図12を参照しながら、メダル選別装置100の動作について説明する。以下、制御装置140の処理を中心に説明する。
(Operation)
Next, the operation of the medal sorting device 100 will be described with reference to FIGS. Hereinafter, the processing of the control device 140 will be mainly described.

まず、図6に示すように、ステップS1において、初期化がなされる。初期化では、撮像素子124のフレームレート、撮像タイミングセンサ111およびメダルカウントセンサ113の感度などが設定される。   First, as shown in FIG. 6, initialization is performed in step S1. In initialization, the frame rate of the image sensor 124, the sensitivity of the imaging timing sensor 111 and the medal count sensor 113, and the like are set.

次のステップS2において、基準画像を登録するか否かが判定される。すなわち、登録スイッチ153がオンされたか否かが判定される。登録スイッチ153がオンの場合、ステップS3に進み、後述の基準画像の登録が実行される。登録スイッチ153がオフの場合、ステップS4に進む。   In the next step S2, it is determined whether or not to register a reference image. That is, it is determined whether or not the registration switch 153 is turned on. When the registration switch 153 is on, the process proceeds to step S3, and registration of a reference image described later is executed. If the registration switch 153 is off, the process proceeds to step S4.

ステップS4において、撮像タイミングセンサ111がオンしたか否かが判定される。換言すれば、メダル通路105を転動するメダルMが撮像位置に到達したか否かが判定される。メダル投入口104にメダルMが投入された場合、投入されたメダルMは垂立メダル通路105Vを落下した後、傾斜メダル通路105Sを転動し、撮像タイミングセンサ111がオンする。すなわち、メダル投入口104へのメダルMの投入に対応して、撮像タイミングセンサ111がオンする。撮像タイミングセンサ111がオンの場合、ステップS5に進む。メダル投入口104にメダルMが投入されない場合、撮像タイミングセンサ111がオフの状態に保たれ、ステップS4が繰り返し実行される。換言すれば、メダル投入口104にメダルMが投入される迄は、待機状態となる。   In step S4, it is determined whether or not the imaging timing sensor 111 is turned on. In other words, it is determined whether or not the medal M rolling on the medal passage 105 has reached the imaging position. When the medal M is inserted into the medal insertion slot 104, the inserted medal M falls in the vertical medal path 105V and then rolls in the inclined medal path 105S, and the imaging timing sensor 111 is turned on. That is, the imaging timing sensor 111 is turned on in response to the insertion of the medal M into the medal insertion slot 104. If the imaging timing sensor 111 is on, the process proceeds to step S5. When the medal M is not inserted into the medal insertion slot 104, the imaging timing sensor 111 is kept off, and Step S4 is repeatedly executed. In other words, the standby state is maintained until the medal M is inserted into the medal insertion slot 104.

次のステップS5では、制御装置140がLED131に点灯制御信号LCSを出力し、LED131が点灯制御信号LCSに基づいて短時間点灯(すなわち、フラッシュ)される。これにより、投光装置121から撮像窓110に向かう拡散光が発せられ、撮像窓110と相対するメダルMが投光される。   In the next step S5, the control device 140 outputs a lighting control signal LCS to the LED 131, and the LED 131 is turned on for a short time (that is, flashed) based on the lighting control signal LCS. Thereby, diffused light is emitted from the light projecting device 121 toward the imaging window 110, and the medal M facing the imaging window 110 is projected.

次のステップS6では、制御装置140が撮像素子124に撮像制御信号ICSを出力し、撮像素子124が撮像制御信号ICSに基づいてメダルMを撮像する。換言すれば、二次元撮像装置120によりメダルMの撮像画像が取得される。撮像素子124は、取得された撮像画像を含む撮像画像信号ISを制御装置140に出力する。制御装置140は、供給された撮像画像信号ISに含まれる撮像画像を図5に示すバスラインBSを介してRAM143に転送する。RAM143は、送られた撮像画像を撮像画像保持部172に格納し保持する。   In the next step S6, the control device 140 outputs an imaging control signal ICS to the imaging device 124, and the imaging device 124 images the medal M based on the imaging control signal ICS. In other words, the captured image of the medal M is acquired by the two-dimensional imaging device 120. The image sensor 124 outputs a captured image signal IS including the acquired captured image to the control device 140. The control device 140 transfers the captured image included in the supplied captured image signal IS to the RAM 143 via the bus line BS shown in FIG. The RAM 143 stores and holds the sent captured image in the captured image holding unit 172.

なお、ステップS6で取得される撮像画像は、選別対象のメダルMにおける表面および裏面のいずれかの画像である。そのため、メダルMの表面および裏面の模様が異なる場合、後述の基準メダルSMの表面および裏面のそれぞれの基準画像と対比する必要がある。本実施例では、メダルMの表面および裏面の模様が異なるものとして説明する。   Note that the captured image acquired in step S6 is one of the front and back surfaces of the medal M to be selected. Therefore, when the patterns of the front and back surfaces of the medal M are different, it is necessary to compare with the respective reference images on the front and back surfaces of the reference medal SM described later. In the present embodiment, description will be made assuming that the patterns of the front and back surfaces of the medal M are different.

次のステップS7では、画像対比判定が実行される。画像対比判定では、撮像画像保持部172に保持された撮像画像に対し、制御装置140の画像処理部160において所定の処理がなされることにより被判別画像が生成され、画像処理部160の判定部168がROM142の基準画像保持部171に保持された基準画像と生成された被判別画像とを対比し、その対比結果によりメダルの真偽が判別される。換言すれば、基準画像との対比結果が所定の基準を満たした場合に一致(真正メダルTM)と判定され、それ以外の場合に不一致(偽メダルFM)と判定される。このステップS7の画像対比判定の詳細については後述する。 In the next step S7, image comparison determination is executed. In the image comparison determination, the image processing unit 160 of the control device 140 performs predetermined processing on the captured image held in the captured image holding unit 172 to generate a determination target image, and the determination unit of the image processing unit 160 168 compares the reference image held in the reference image holding unit 171 of the ROM 142 with the generated image to be discriminated, and the authenticity of the medal is discriminated based on the comparison result. In other words, when the comparison result with the reference image satisfies a predetermined reference, it is determined that they match (authentic medal TM), and in other cases, it is determined that they do not match (false medal FM). Details of the image comparison determination in step S7 will be described later.

次のステップS8では、ステップS7の画像対比判定において一致と判定されたか否かが判定される。換言すれば、真正メダルと判別されたか否かが判定される。一致と判定された場合(すなわち、真正メダルと判別された場合)、ステップS9に進み、不一致(すなわち、偽メダルと判別された場合)と判定された場合、ステップS2に戻る。   In the next step S8, it is determined whether or not it is determined to match in the image comparison determination in step S7. In other words, it is determined whether or not a genuine medal is determined. If it is determined that they match (that is, if they are determined to be genuine medals), the process proceeds to step S9. If it is determined that they do not match (that is, if they are determined to be false medals), the process returns to step S2.

ステップS9では、制御装置140がゲート制御信号GCSを振分ゲート106に出力し、振分板109がメダル通路105から退出して振分ゲート106が開かれる。これにより、傾斜メダル通路105Sを転動する真正メダルTMは振分ゲート106を通過し、メダル受入口102を介して本体機器(図示せず)に導入される。換言すれば、メダル投入口104に投入されたメダルMが真正メダルTMと判別され、振分ゲート106により真正メダルTMとして選別される。   In step S9, the control device 140 outputs a gate control signal GCS to the sorting gate 106, the sorting plate 109 leaves the medal path 105, and the sorting gate 106 is opened. As a result, the genuine medal TM rolling on the inclined medal passage 105S passes through the sorting gate 106 and is introduced into the main device (not shown) via the medal receiving port 102. In other words, the medal M inserted into the medal insertion slot 104 is determined as the genuine medal TM and is selected as the genuine medal TM by the distribution gate 106.

次のステップS10では、メダルカウントセンサ113がオンしたか否かが判定される。メダルカウントセンサ113がオフの場合、ステップS11が繰り返し実行される。換言すれば、メダルカウントセンサ113が待機状態となる。ステップS9において真正メダルTMとして選別された場合、振分ゲート106を通過した真正メダルTMによりメダルカウントセンサ113がオンされ、ステップS12に進む。   In the next step S10, it is determined whether or not the medal count sensor 113 is turned on. When the medal count sensor 113 is off, step S11 is repeatedly executed. In other words, the medal count sensor 113 is in a standby state. When the genuine medal TM is selected in step S9, the medal count sensor 113 is turned on by the genuine medal TM that has passed the sorting gate 106, and the process proceeds to step S12.

ステップS11では、制御装置140がゲート制御信号GCSを振分ゲート106に出力し、振分板109がメダル通路105内に進入して振分ゲート106が閉ざされた後、ステップS2に戻る。   In step S11, the control device 140 outputs a gate control signal GCS to the sorting gate 106, the sorting plate 109 enters the medal path 105 and the sorting gate 106 is closed, and the process returns to step S2.

ステップS8において不一致(すなわち、偽メダルと判別された場合)と判定された場合、振分ゲート106の閉じた状態が保持されているので、メダル通路105を転動するメダルMは振分ゲート106を通過することができず、メダル返却口101に振り分けられる。換言すれば、メダルMは偽メダルFMとして選別され、メダル返却口101から放出される。   If it is determined in step S8 that they do not match (that is, if they are determined to be fake medals), the closed state of the distribution gate 106 is maintained, so that the medals M rolling on the medal path 105 are allocated to the distribution gate 106. Cannot be passed, and is distributed to the medal return port 101. In other words, the medal M is selected as a fake medal FM and released from the medal return port 101.

(基準画像登録)
次に、図8を参照しながら、図6のステップS3で実行される基準画像の登録について説明する。基準画像の登録は、真偽判別の基準となるメダル(以下、基準メダルSMという)の表面および裏面の画像を二次元撮像装置120により取得して行われる。基準メダルSMとしては、判別精度を高める上で未使用のメダルMを使用することが好ましいが、使用済みのメダルMでもよい。図8の基準画像登録では、最初のステップS21において、登録設定がなされる。登録設定では、例えば、登録する画像がメダルMの表面および裏面のいずれであるかの選択がなされる。
(Register reference image)
Next, reference image registration executed in step S3 of FIG. 6 will be described with reference to FIG. The registration of the reference image is performed by acquiring images of the front and back surfaces of a medal (hereinafter referred to as a reference medal SM) serving as a reference for authenticity determination by the two-dimensional imaging device 120. As the reference medal SM, it is preferable to use an unused medal M in order to improve the discrimination accuracy, but a used medal M may be used. In the reference image registration of FIG. 8, registration setting is made in the first step S21. In the registration setting, for example, it is selected whether the image to be registered is the front side or the back side of the medal M.

次のステップS22では、登録が終了したか否かが判定される。登録終了は、登録スイッチ153がオフされたか否かで判定される。登録スイッチ153がオフされた場合、図6のステップS2に戻り、登録スイッチ153がオフされていない場合、ステップS23に進む。   In the next step S22, it is determined whether or not the registration is completed. The end of registration is determined by whether or not the registration switch 153 is turned off. When the registration switch 153 is turned off, the process returns to step S2 of FIG. 6, and when the registration switch 153 is not turned off, the process proceeds to step S23.

ステップS23では、図6のステップS4と同様に、撮像タイミングセンサ111がオンしたか否かが判定される。メダル投入口104に基準メダルSMが投入され、撮像タイミングセンサ111がオンとなった場合、ステップS24に進む。撮像タイミングセンサ111がオフの場合、ステップS23が繰り返し実行される。換言すれば、メダル投入口104に基準メダルSMが投入される迄は、待機状態となる。   In step S23, as in step S4 of FIG. 6, it is determined whether or not the imaging timing sensor 111 is turned on. When the reference medal SM is inserted into the medal insertion slot 104 and the imaging timing sensor 111 is turned on, the process proceeds to step S24. When the imaging timing sensor 111 is off, step S23 is repeatedly executed. In other words, the standby state is maintained until the reference medal SM is inserted into the medal insertion slot 104.

次のステップS24では、図6のステップS5と同様に、制御装置140がLED131に点灯制御信号LCSを出力し、LED131が点灯制御信号LCSに基づいて短時間点灯(すなわち、フラッシュ)される。これにより、投光装置121から撮像窓110に向かう拡散光が発せられ、撮像窓110と相対する基準メダルSMが投光される。   In the next step S24, as in step S5 of FIG. 6, the control device 140 outputs the lighting control signal LCS to the LED 131, and the LED 131 is lit (that is, flashed) for a short time based on the lighting control signal LCS. Thereby, diffused light is emitted from the light projecting device 121 toward the imaging window 110, and the reference medal SM facing the imaging window 110 is projected.

次のステップS25では、図6のステップS6と同様に、制御装置140が撮像素子124に撮像制御信号ICSを出力し、撮像素子124が撮像制御信号ICSに基づいて基準メダルSMを撮像する。換言すれば、二次元撮像装置120により基準メダルSMの撮像画像が取得される。撮像素子124は、取得された撮像画像を含む撮像画像信号ISを制御装置140に出力する。制御装置140は、供給された撮像画像信号ISに含まれる撮像画像をRAM143の撮像画像保持部172に格納し保持する。   In the next step S25, as in step S6 of FIG. 6, the control device 140 outputs the imaging control signal ICS to the imaging device 124, and the imaging device 124 images the reference medal SM based on the imaging control signal ICS. In other words, the captured image of the reference medal SM is acquired by the two-dimensional imaging device 120. The image sensor 124 outputs a captured image signal IS including the acquired captured image to the control device 140. The control device 140 stores and holds the captured image included in the supplied captured image signal IS in the captured image holding unit 172 of the RAM 143.

次のステップS26では、制御装置140の画像処理部160が撮像画像保持部172に保持された撮像画像に対し前処理を実行する。前処理は、図8に示すように、中心抽出、エッジ強調、2値化、膨張・収縮、サイズ変換の順で実行される。まず、ステップS41において、中心抽出部161が撮像画像保持部172に保持された撮像画像における基準メダルSMの中心位置を抽出する。抽出された中心位置の座標値はRAM143に格納される。   In the next step S <b> 26, the image processing unit 160 of the control device 140 performs preprocessing on the captured image held in the captured image holding unit 172. As shown in FIG. 8, the preprocessing is performed in the order of center extraction, edge enhancement, binarization, expansion / contraction, and size conversion. First, in step S <b> 41, the center extraction unit 161 extracts the center position of the reference medal SM in the captured image held in the captured image holding unit 172. The extracted coordinate value of the center position is stored in the RAM 143.

次のステップS42では、エッジ強調部162が撮像画像保持部172に保持された撮像画像についてエッジ強調の処理を実行する。エッジ強調された画像は、RAM143の処理画像保持部173に保持される。   In the next step S <b> 42, the edge enhancement unit 162 executes edge enhancement processing on the captured image held in the captured image holding unit 172. The edge-enhanced image is held in the processed image holding unit 173 of the RAM 143.

続くステップS43では、2値化部163が処理画像保持部173に保持されたエッジ強調後の画像を2値化する。2値化された画像は、処理画像保持部173に保持される。   In subsequent step S43, the binarizing unit 163 binarizes the edge-enhanced image held in the processed image holding unit 173. The binarized image is held in the processed image holding unit 173.

その後、ステップS44において、膨張・収縮部164が処理画像保持部173に保持された2値化後の画像に対し膨張・収縮処理を実行する。膨張・収縮処理により、2値化された画像のノイズ除去やパターン欠陥の修復等がなされる。膨張・収縮された画像は、処理画像保持部173に保持される。   Thereafter, in step S <b> 44, the expansion / contraction unit 164 executes expansion / contraction processing on the binarized image held in the processed image holding unit 173. By the expansion / contraction process, noise of the binarized image is removed, pattern defects are repaired, and the like. The expanded / contracted image is held in the processed image holding unit 173.

さらに、ステップS45では、サイズ変換部165が処理画像保持部173に保持された膨張・収縮後の画像をサイズ変換する処理を実行する。サイズ変換処理により、膨張・収縮処理された画像が縮小されて画素数が減少する。サイズ変換された画像は、処理画像保持部173に保持される。こうして図7のステップS26の前処理が完了する。   Further, in step S45, the size converting unit 165 executes a process of converting the size of the expanded / contracted image held in the processed image holding unit 173. By the size conversion process, the expanded / contracted image is reduced to reduce the number of pixels. The size-converted image is held in the processed image holding unit 173. Thus, the preprocessing of step S26 in FIG. 7 is completed.

図7のステップS27では、データがROM142に格納される。すなわち、前処理を施された撮像画像は、バスラインBSを介してRAM143からROM142に転送され、基準画像保持部171に基準画像として格納され保持される。ステップS27の終了後、ステップS21に戻り、上記のステップS21〜S27が繰り返し実行される。これにより、基準メダルSMの表面および裏面のそれぞれについて、複数の基準画像が登録可能である。   In step S27 of FIG. 7, the data is stored in the ROM 142. That is, the pre-processed captured image is transferred from the RAM 143 to the ROM 142 via the bus line BS, and is stored and held in the reference image holding unit 171 as a reference image. After step S27 ends, the process returns to step S21, and the above steps S21 to S27 are repeatedly executed. Accordingly, a plurality of reference images can be registered for each of the front and back surfaces of the reference medal SM.

なお、基準画像の登録において、基準メダルSMの表面および裏面のいずれかを特定する面番号kが設定される。すなわち、基準メダルSMの表面に対応する基準画像には、面番号kとして「0」が設定される。同様に、基準メダルSMの裏面に対応する基準画像には、面番号kとして「1」が設定される。そして、基準画像保持部171には、面番号kが複数の基準画像と共に格納され保持される。これにより、面番号kに基づき、基準メダルSMにおける表面の基準画像と裏面の基準画像とを区別することができる。   In registering the reference image, a surface number k that specifies either the front surface or the back surface of the reference medal SM is set. That is, “0” is set as the face number k in the reference image corresponding to the surface of the reference medal SM. Similarly, “1” is set as the face number k in the reference image corresponding to the back face of the reference medal SM. The reference image holding unit 171 stores and holds the surface number k together with a plurality of reference images. Thereby, based on the surface number k, it is possible to distinguish the front-side reference image and the back-side reference image in the reference medal SM.

(画像対比判定)
次に、図9を参照しながら、図6のステップS7における画像対比判定について説明する。まず、図9のステップS51において、図6のステップS6において取得された選別対象メダル(換言すれば、判別対象メダル)Mの撮像画像の前処理が実行される。ステップS54で実行される前処理では、図11に示すように、図8と同一のステップS41〜S44が実行されることにより、中心抽出、エッジ強調、2値化、膨張・収縮の各処理がなされる。換言すれば、図8のステップS45のサイズ変換が行われていない画像が前処理画像としてRAM143の処理画像保持部173に格納され保持される。
(Image contrast judgment)
Next, the image comparison determination in step S7 in FIG. 6 will be described with reference to FIG. First, in step S51 of FIG. 9, preprocessing of the captured image of the selection target medal (in other words, the determination target medal) M acquired in step S6 of FIG. 6 is executed. In the pre-processing executed in step S54, as shown in FIG. 11, steps S41 to S44 that are the same as those in FIG. 8 are executed, whereby center extraction, edge enhancement, binarization, expansion / contraction processing are performed. Made. In other words, the image that has not been subjected to the size conversion in step S45 in FIG. 8 is stored and held in the processed image holding unit 173 of the RAM 143 as a preprocessed image.

次のステップS52では、処理画像保持部173に保持された前処理画像がRAM143の撮像画像保持部172に格納され保持される。換言すれば、撮像画像保持部172に保持された撮像画像が前処理画像で置換される。   In the next step S52, the preprocessed image held in the processed image holding unit 173 is stored and held in the captured image holding unit 172 of the RAM 143. In other words, the captured image held in the captured image holding unit 172 is replaced with the preprocessed image.

次のステップS53では、制御装置140が上述の面番号kに「0」を設定する。これにより、初めに「k=0」に対応する基準画像(換言すれば、基準メダルSMの表面の基準画像)との対比がなされる。   In the next step S53, the control device 140 sets “0” for the surface number k described above. As a result, a comparison is first made with the reference image corresponding to “k = 0” (in other words, the reference image on the surface of the reference medal SM).

次のステップS54では、ROM142の基準画像保持部171に保持された複数の基準画像のうち、面番号kの基準画像が選択される。   In the next step S54, the reference image having the surface number k is selected from the plurality of reference images held in the reference image holding unit 171 of the ROM 142.

次のステップS55では、制御装置140が回転角度θに「0」を設定する。換言すれば、回転角度θが初期化(すなわち、リセット)される。   In the next step S55, the control device 140 sets “0” to the rotation angle θ. In other words, the rotation angle θ is initialized (that is, reset).

次のステップS56では、撮像画像保持部172に保持された前処理画像に対し、図8のステップS45と同一のサイズ変換処理が実行される。サイズ変換された画像は、被判別画像として処理画像保持部173に格納され保持される。   In the next step S56, the same size conversion process as that in step S45 of FIG. 8 is performed on the preprocessed image held in the captured image holding unit 172. The size-converted image is stored and held in the processed image holding unit 173 as a discriminated image.

次のステップS57では、基準画像保持部171に保持された基準画像と処理画像保持部173に保持された被判別画像とを対比する画像比較が実行される。画像比較では、選択された基準画像および被判別画像を画素単位で比較し、画素値の相違する画素数をカウントすることにより相違度DFが算出される。   In the next step S <b> 57, image comparison for comparing the reference image held in the reference image holding unit 171 with the discrimination target image held in the processed image holding unit 173 is executed. In the image comparison, the selected reference image and the image to be discriminated are compared in pixel units, and the difference degree DF is calculated by counting the number of pixels having different pixel values.

なお、相違度DFに換えて類似度を算出してもよい。その場合、画素値の一致する画素数をカウントすることにより類似度が算出される。   The similarity may be calculated instead of the difference DF. In that case, the similarity is calculated by counting the number of pixels with matching pixel values.

次のステップS58では、ステップS57で算出された相違度DFが所定閾値以下か否かが判定される。閾値以下の場合、ステップS59において一致したと判定され、図6のステップ7に戻る。相違度DFが閾値を超えている場合、ステップS60に進む。
In the next step S58, it is determined whether or not the difference DF calculated in step S57 is equal to or less than a predetermined threshold value. If below the threshold, it is determined that a match at step S59, the flow returns to step S 7 of FIG. If the dissimilarity DF exceeds the threshold value, the process proceeds to step S60.

ステップS60では、回転角度θが「0」であるか否かが判定される。「θ=0」の場合、ステップS62に進み、「θ≠0」の場合、ステップS61に進む。   In step S60, it is determined whether or not the rotation angle θ is “0”. If “θ = 0”, the process proceeds to step S62, and if “θ ≠ 0”, the process proceeds to step S61.

ステップS62および次のステップS63では、相違度DFの最小値を示す最小相違度DFmと、相違度DFが最小となる最小相違度回転角度θmとが設定される。すなわち、ステップS62において最小相違度DFmとして現在の相違度DFが設定され、ステップS63において最小相違度回転角度θmとして現在の回転角度θが設定される。設定された最小相違度DFmおよび最小相違度回転角度θmは、RAM143に格納される。   In step S62 and the next step S63, a minimum dissimilarity DFm indicating the minimum value of the dissimilarity DF and a minimum dissimilarity rotation angle θm that minimizes the dissimilarity DF are set. That is, the current dissimilarity DF is set as the minimum dissimilarity DFm in step S62, and the current rotation angle θ is set as the minimum dissimilarity rotation angle θm in step S63. The set minimum difference DFm and minimum difference rotation angle θm are stored in the RAM 143.

ステップS60において「θ=0」の場合、ステップS57において算出された相違度DFが最小相違度DFmとして設定され、最小相違度回転角度θmとして「0」が設定される。   When “θ = 0” in step S60, the dissimilarity DF calculated in step S57 is set as the minimum dissimilarity DFm, and “0” is set as the minimum dissimilarity rotation angle θm.

ステップS60において「n≠0」の場合、ステップS61において、ステップS57で算出された相違度DFが最小相違度DFm未満であるか否かが判定される。「DF<DFm」の場合、すなわち、ステップS55で算出された相違度DFが既に設定されている最小相違度DFmより小さい場合、ステップS62に進み、最小相違度DFmが更新される。「DF≧DFm」の場合、ステップS64に進み、現在の最小相違度DFmがそのまま維持される。   If “n ≠ 0” in step S60, it is determined in step S61 whether or not the difference DF calculated in step S57 is less than the minimum difference DFm. In the case of “DF <DFm”, that is, when the difference DF calculated in step S55 is smaller than the already set minimum difference DFm, the process proceeds to step S62, and the minimum difference DFm is updated. When “DF ≧ DFm”, the process proceeds to step S64, and the current minimum difference DFm is maintained as it is.

次のステップS64では、現在の回転角度θに回転角度増分θdを加算して得られた値が新たな回転角度θとして設定される。換言すれば、回転角度θが更新される。本実施例では、画像を1回転したときに「θ=0」の被判別画像を含めて全64枚の被判別画像が得られるように、θdが設定される。この場合のθdは「5.625°」である。   In the next step S64, a value obtained by adding the rotation angle increment θd to the current rotation angle θ is set as a new rotation angle θ. In other words, the rotation angle θ is updated. In this embodiment, θd is set so that a total of 64 discriminated images including the discriminated image of “θ = 0” can be obtained when the image is rotated once. In this case, θd is “5.625 °”.

次のステップS65では、ステップS64で更新された回転角度θが「360°」以上であるか否かが判定される。「θ<360°」の場合、ステップS66に進み、撮像画像保持部172に保持された前処理画像がステップS64で設定された回転角度で画像回転部166によって回転された後、ステップS56に戻る。これにより、ステップS58において相違度DFが閾値以下と判定されるか、または、回転角度θが「360°」以上となるまで、ステップS56〜S64が繰り返し実行される。換言すれば、「θ=0」の場合を含めて回転角度の異なる複数の被判別画像と基準画像との対比がなされる。なお、「θ≠0」の各被判別画像は、「θ=0」の被判別画像をそれぞれ異なる回転角度θで回転した画像に相当する。   In the next step S65, it is determined whether or not the rotation angle θ updated in step S64 is “360 °” or more. If “θ <360 °”, the process proceeds to step S66, the preprocessed image held in the captured image holding unit 172 is rotated by the image rotation unit 166 at the rotation angle set in step S64, and then the process returns to step S56. . Thereby, steps S56 to S64 are repeatedly executed until it is determined in step S58 that the dissimilarity DF is equal to or less than the threshold value or the rotation angle θ is equal to or greater than “360 °”. In other words, the reference image is compared with a plurality of discriminated images having different rotation angles including the case of “θ = 0”. Each discriminated image with “θ ≠ 0” corresponds to an image obtained by rotating the discriminating image with “θ = 0” at different rotation angles θ.

ステップS65において「θ≧360°」の場合、図10のステップS67に進み、回転角度カウント数mとして「0」が設定される。回転角度カウント数mは、RAM143に保持される。   If “θ ≧ 360 °” in step S65, the process proceeds to step S67 in FIG. 10, and “0” is set as the rotation angle count m. The rotation angle count number m is held in the RAM 143.

次のステップS68では、回転角度カウント数mが「0」と一致するか否かが判定される。「m=0」の場合、ステップS69において、回転角度θとして最小相違度回転角度θmが設定された後、ステップS73に進む。「m≠0」の場合、ステップS70に進む。   In the next step S68, it is determined whether or not the rotation angle count number m is equal to “0”. If “m = 0”, the minimum dissimilarity rotation angle θm is set as the rotation angle θ in step S69, and then the process proceeds to step S73. If “m ≠ 0”, the process proceeds to step S70.

ステップS70では、回転角度カウント数mが「1」と一致するか否かが判定される。「m=1」の場合、ステップS71において、回転角度θとして最小相違度回転角度θmから回転角度増分θdを減算した「θm−θd」が設定された後、ステップS73に進む。「m≠1」の場合、ステップS72において、回転角度θとして最小相違度回転角度θmに回転角度増分θdを加算した「θm+θd」が設定された後、ステップS73に進む。   In step S70, it is determined whether or not the rotation angle count number m is equal to “1”. In the case of “m = 1”, “θm−θd” obtained by subtracting the rotation angle increment θd from the minimum difference rotation angle θm is set as the rotation angle θ in step S71, and then the process proceeds to step S73. If “m ≠ 1”, in step S72, “θm + θd” obtained by adding the rotation angle increment θd to the minimum difference rotation angle θm is set as the rotation angle θ, and then the process proceeds to step S73.

ステップS73では、撮像画像保持部172に保持された前処理画像がステップS69、S71、S72のいずれかで設定された回転角度で画像回転部166によって回転された後、ステップS74に進み、回転された前処理画像がサイズ変換部165によってサイズ変換される。   In step S73, the preprocessed image held in the captured image holding unit 172 is rotated by the image rotation unit 166 at the rotation angle set in any of steps S69, S71, and S72, and then proceeds to step S74 and rotated. The size of the preprocessed image is converted by the size conversion unit 165.

次のステップS75では、画像移動カウント数nに「0」が設定される。換言すれば、画像移動カウント数nが初期化(すなわち、リセット)される。   In the next step S75, “0” is set to the image movement count number n. In other words, the image movement count number n is initialized (that is, reset).

次のステップS76では、図12の平行移動処理が実行される。図12の平行移動処理では、RAM143の処理画像保持部173に保持された被判別画像が、画像移動カウント数nに対応した所定の方向に平行移動される。平行移動された被判別画像は、RAM143の処理画像保持部173に保持される。すなわち、ステップS91では、画像移動カウント数が「0」か否かが判定され、「n=0」の場合、ステップS98において被判別画像が右上方に1ピクセル移動(図13(A)の位置P1に移動、すなわち、X軸方向およびY軸方向に各「+1」ピクセル移動)された後、図10のステップS76に戻る。「n≠0」の場合、ステップS92に進み、画像移動カウント数nが「1」か否かが判定される。「n=1」の場合、ステップS99において被判別画像が上方に1ピクセル移動(図13(B)の位置P2に移動、すなわち、Y軸方向に「+1」ピクセル移動)された後、図10のステップS76に戻る。「n≠1」の場合、ステップS93に進み、画像移動カウント数nが「2」か否かが判定される。「n=2」の場合、ステップS100において被判別画像が左上方に1ピクセル移動(図13(C)の位置P3に移動、すなわち、X軸方向に「−1」およびY軸方向に「+1」ピクセル移動)された後、図10のステップS76に戻る。「n≠2」の場合、ステップS94に進み、画像移動カウント数nが「3」か否かが判定される。「n=3」の場合、ステップS101において被判別画像が左方に1ピクセル移動(図13(D)の位置P4に移動、すなわち、X軸方向に「−1」ピクセル移動)された後、図10のステップS76に戻る。「n≠3」の場合、ステップS95に進み、画像移動カウント数nが「4」か否かが判定される。「n=4」の場合、ステップS102において被判別画像が右方に1ピクセル移動(図13(E)の位置P5に移動、すなわち、X軸方向に「+1」ピクセル移動)された後、図10のステップS76に戻る。「n≠4」の場合、ステップS96に進み、画像移動カウント数nが「5」か否かが判定される。「n=5」の場合、ステップS103において被判別画像が右下方に1ピクセル移動(図13(F)の位置P6に移動、すなわち、X軸方向に「+1」およびY軸方向に「−1」ピクセル移動)された後、図10のステップS76に戻る。「n≠5」の場合、ステップS97に進み、画像移動カウント数nが「6」か否かが判定される。「n=6」の場合、ステップS104において被判別画像が下方に1ピクセル移動(図13(G)の位置P7に移動、すなわち、Y軸方向に「−1」ピクセル移動)された後、図10のステップS76に戻る。「n≠6」の場合、ステップS105に進み、被判別画像が左下方に1ピクセル移動(図13(H)の位置P8に移動、すなわち、X軸方向およびY軸方向に各「−1」ピクセル移動)された後、図10のステップS76に戻る。なお、図13では、平行移動の方向を明瞭に示すため、便宜的に移動距離を大きく示している。   In the next step S76, the parallel movement process of FIG. 12 is executed. In the parallel movement process of FIG. 12, the discrimination target image held in the processed image holding unit 173 of the RAM 143 is translated in a predetermined direction corresponding to the image movement count number n. The parallel image to be discriminated is held in the processed image holding unit 173 of the RAM 143. That is, in step S91, it is determined whether or not the image movement count is “0”. If “n = 0”, the image to be determined is moved by one pixel in the upper right direction (the position of FIG. 13A). After the movement to P1, that is, each “+1” pixel movement in the X-axis direction and the Y-axis direction), the process returns to step S76 in FIG. If “n ≠ 0”, the process proceeds to step S92 to determine whether or not the image movement count number n is “1”. In the case of “n = 1”, the discriminated image is moved upward by one pixel in step S99 (moved to position P2 in FIG. 13B, that is, moved by “+1” pixel in the Y-axis direction), and then FIG. Return to step S76. If “n ≠ 1”, the process proceeds to step S93 to determine whether or not the image movement count number n is “2”. In the case of “n = 2”, the image to be discriminated is moved by one pixel in the upper left direction in step S100 (moved to position P3 in FIG. 13C), that is, “−1” in the X-axis direction and “+1” in the Y-axis direction. After “pixel movement”, the process returns to step S76 in FIG. If “n ≠ 2”, the process proceeds to step S94 to determine whether or not the image movement count number “3” is “3”. In the case of “n = 3”, after the image to be discriminated is moved one pixel to the left (moved to position P4 in FIG. 13D, that is, “−1” pixel moved in the X-axis direction) in step S101, The process returns to step S76 in FIG. When “n ≠ 3”, the process proceeds to step S95, and it is determined whether or not the image movement count number n is “4”. In the case of “n = 4”, the image to be discriminated is moved by one pixel to the right (moved to the position P5 in FIG. 13E, that is, “+1” pixels are moved in the X-axis direction) in step S102. Returning to step S76 of FIG. In the case of “n ≠ 4”, the process proceeds to step S96, and it is determined whether or not the image movement count number n is “5”. In the case of “n = 5”, the image to be discriminated is moved by one pixel in the lower right direction (moved to a position P6 in FIG. 13F), that is, “+1” in the X-axis direction and “−1” in the Y-axis direction. After “pixel movement”, the process returns to step S76 in FIG. If “n ≠ 5”, the process proceeds to step S97 to determine whether the image movement count number n is “6”. In the case of “n = 6”, the discriminated image is moved downward by one pixel in step S104 (moved to position P7 in FIG. 13G, that is, moved by “−1” pixel in the Y-axis direction). Returning to step S76 of FIG. In the case of “n ≠ 6”, the process proceeds to step S105, in which the image to be discriminated is moved by one pixel to the lower left (moved to position P8 in FIG. 13H, that is, each “−1” in the X-axis direction and Y-axis direction. After the pixel movement), the process returns to step S76 in FIG. In FIG. 13, for the sake of convenience, the movement distance is shown large to clearly show the direction of parallel movement.

図10のステップS76の実行後、ステップS77において現在の画像移動カウント数nに「1」が加算され、新たな画像移動カウント数nが設定される。換言すれば、画像移動カウント数nが更新される。   After execution of step S76 in FIG. 10, “1” is added to the current image movement count number n in step S77, and a new image movement count number n is set. In other words, the image movement count number n is updated.

次のステップS78では、データ画像移動カウント数nが「8」以上であるか否かが判定される。画像移動カウント数nが「8」以上でない場合(すなわち、「n<8」の場合)、ステップS79に進み、図9のステップS57と同様に、基準画像保持部171に保持された基準画像と処理画像保持部173に保持された被判別画像とを対比する画像比較が実行されて相違度DFが算出される。   In the next step S78, it is determined whether or not the data image movement count number n is “8” or more. If the image movement count number n is not “8” or more (that is, “n <8”), the process proceeds to step S79, and the reference image held in the reference image holding unit 171 is similar to step S57 in FIG. An image comparison that compares the image to be determined held in the processed image holding unit 173 is executed to calculate the dissimilarity DF.

次のステップS80では、図9のステップ58と同様に、ステップS79で算出された相違度DFが所定閾値以下か否かが判定される。閾値以下の場合、ステップS81において一致したと判定され、図6のステップS7に戻る。相違度DFが閾値を超えている場合、ステップS76に戻り、ステップS76〜S79が繰り返し実行される。すなわち、平行移動された被判別画像と複数の基準画像との対比が、平行移動の方向を変えながら繰り返し実行される。
In the next step S80, similarly to step S 58 in FIG. 9, the difference degree DF calculated in step S79 whether or not a predetermined threshold value or less is determined. If it is equal to or smaller than the threshold value, it is determined in step S81 that they match, and the process returns to step S7 in FIG. When the dissimilarity DF exceeds the threshold value, the process returns to step S76, and steps S76 to S79 are repeatedly executed. That is, the comparison between the image to be discriminated and the plurality of reference images is repeatedly executed while changing the direction of the parallel movement.

ステップS78において画像移動カウント数nが「8」以上の場合(すなわち、「n≧8」の場合)、ステップS82に進み、新たな回転角度カウント数mとして現在の回転角度カウント数mに「1」を加算した「m+1」を設定する。   When the image movement count number n is “8” or more in step S78 (that is, when “n ≧ 8”), the process proceeds to step S82, where the new rotation angle count number m is set to “1”. "M + 1" is added.

次のステップS83では、回転角度カウント数mが「2」以下であるか否かを判定する。「m≦2」の場合、ステップS68に戻り、ステップS68〜S82が繰り返し実行される。   In the next step S83, it is determined whether or not the rotation angle count m is “2” or less. If “m ≦ 2”, the process returns to step S68, and steps S68 to S82 are repeatedly executed.

これにより、「θ=0」を含めて回転角度の異なる複数の被判別画像と基準画像との対比結果から最小相違度DFmが得られる最小相違度回転角度θmを第1回転角度として特定し、最小相違度回転角度θmに回転角度増分θdを減算した角度「θm−θd」を第2回転角度として特定し、最小相違度回転角度θmに回転角度増分θdを加算した角度「θm+θd」を第3回転角度として特定し、これら特定された第1〜第3回転角度に対応する被判別画像についてのみ平行移動を行って基準画像との対比がなされる。そのため、回転角度の異なる複数の被判別画像の全てについて平行移動を行う場合に比べ、判定に要する時間を短縮できる。   As a result, the minimum difference rotation angle θm from which the minimum difference DFm can be obtained from the comparison result between the plurality of discriminated images having different rotation angles including “θ = 0” and the reference image is specified as the first rotation angle. The angle “θm−θd” obtained by subtracting the rotation angle increment θd from the minimum difference rotation angle θm is specified as the second rotation angle, and the angle “θm + θd” obtained by adding the rotation angle increment θd to the minimum difference rotation angle θm is the third. The rotation angle is specified, and only the discriminated image corresponding to the specified first to third rotation angles is translated and compared with the reference image. Therefore, it is possible to reduce the time required for the determination as compared to the case where the parallel movement is performed for all of the plurality of determination target images having different rotation angles.

ステップS83において「m>2」の場合、ステップS84に進み、現在の面番号kに「1」が加算され、新たな面番号kが設定される。   If “m> 2” in step S83, the process proceeds to step S84, where “1” is added to the current surface number k, and a new surface number k is set.

次のステップS85では、面番号kが「2」以上であるか否かが判定される。面番号kが「2」未満(すなわち、「k<2」)の場合、図9のステップS52に戻る。換言すれば、「k=1」に設定された状態で、ステップS52〜S84の処理が再度実行される。すなわち、基準メダルSMの裏面の基準画像との対比が行われる。面番号kが「2」以上(すなわち、「k≧2」)の場合、ステップS86において不一致と判定され、図6のステップS7に戻る。   In the next step S85, it is determined whether or not the surface number k is “2” or more. When the surface number k is less than “2” (that is, “k <2”), the process returns to step S52 of FIG. In other words, the processing of steps S52 to S84 is executed again with “k = 1” set. That is, a comparison with the reference image on the back surface of the reference medal SM is performed. When the surface number k is “2” or more (that is, “k ≧ 2”), it is determined that there is a mismatch in step S86, and the process returns to step S7 in FIG.

上述した実施例1のメダル選別装置100では、基準メダルSMに対応する基準画像を保持する基準画像保持部171と、選別対象のメダルMの表面または裏面を撮像して撮像画像を取得する二次元撮像装置120と、二次元撮像装置120により取得されたメダルMの撮像画像に基づく被判別画像を基準画像保持部171に保持された基準画像と対比し、メダルMの真偽を判別する判別部168と、判別部168による判別結果に基づきメダルMを真偽別に振り分ける振分ゲート106と、を含んでいる。   In the medal sorting device 100 according to the first embodiment described above, the reference image holding unit 171 that holds the reference image corresponding to the reference medal SM, and the two-dimensional image that captures the picked-up image by capturing the front or back surface of the medal M to be selected. The discrimination unit that discriminates the authenticity of the medal M by comparing the discrimination image based on the captured image of the medal M acquired by the imaging device 120 and the two-dimensional imaging device 120 with the reference image held in the reference image holding unit 171. 168 and a distribution gate 106 that distributes medals M according to authenticity based on the determination result by the determination unit 168.

また、二次元撮像装置により取得された撮像画像に対して所定の画像処理を行う画像処理部160を有し、画像処理部160は座標変換により画像を回転する画像回転部166および座標変換により画像を平行移動する画像移動部167を含んでいる。画像処理部160は、判別対象ディスクの撮像画像に基づいて被判別画像(以下、第1の批判別画像という)を生成すると共に、第1の被判別画像をそれぞれ異なる複数の回転角度で回転した画像に相当する複数の被判別画像(以下、第2の被判別画像という)を生成する。そして、判別部168は第1、第2および第3の被判別画像のそれぞれと基準画像とを対比し、当該対比結果から判別対象ディスクの真偽を判別する。   The image processing unit 160 performs predetermined image processing on a captured image acquired by the two-dimensional imaging apparatus. The image processing unit 160 rotates an image by coordinate conversion and an image by coordinate conversion. Is included. The image processing unit 160 generates a discriminated image (hereinafter, referred to as a first critical image) based on the captured image of the discriminating target disk, and rotates the first discriminated image at a plurality of different rotation angles. A plurality of discriminated images (hereinafter referred to as second discriminated images) corresponding to the images are generated. Then, the determination unit 168 compares each of the first, second, and third images to be determined with the reference image, and determines the authenticity of the determination target disk from the comparison result.

複数の第2の被判別画像は、第1の被判別画像に対してそれぞれ回転角度が異なるため、撮像画像において判別対象ディスクの模様が回転していても、その回転角度と同一または近似する回転角度を有し、且つ、回転方向が逆の被判別画像と基準画像とを対比することにより、模様の回転が補正される。換言すれば、模様の回転ズレが除去または減少される。さらに、第3の被判別画像と基準画像とを対比することにより、平行移動における方向および移動量が適正であれば、撮像画像における判別対象ディスクの模様が位置ズレしていても、その位置ズレが補正される。換言すれば、位置ズレが除去または減少される。したがって、第1、第2および第3の被判別画像と基準画像とを対比することにより、撮像画像における模様の回転および位置ズレの双方の影響が除去または減少され、判別精度を高めることができる。   Since the plurality of second discriminated images have different rotation angles with respect to the first discriminating image, even if the pattern of the disc to be discriminated is rotated in the captured image, the rotation is the same as or approximate to the rotation angle. The rotation of the pattern is corrected by comparing the discriminated image having an angle and the rotation direction opposite to the reference image. In other words, the rotational deviation of the pattern is removed or reduced. Further, by comparing the third image to be discriminated with the reference image, if the direction and the amount of movement in the parallel movement are appropriate, even if the pattern of the disc to be discriminated in the captured image is misaligned, the position misalignment is achieved. Is corrected. In other words, the positional deviation is removed or reduced. Therefore, by comparing the first, second, and third discriminated images with the reference image, the influence of both the rotation of the pattern and the positional deviation in the captured image is removed or reduced, and the discrimination accuracy can be improved. .

また、「θ=0」を含めて回転角度の異なる複数の被判別画像と基準画像との対比結果から最小相違度DFmが得られる最小相違度回転角度θmを第1回転角度として特定し、最小相違度回転角度θmに回転角度増分θdを減算した角度「θm−θd」を第2回転角度として特定し、最小相違度回転角度θmに回転角度増分θdを加算した角度「θm+θd」を第3回転角度として特定し、これら特定された第1〜第3回転角度に対応する被判別画像についてのみ平行移動を行って基準画像との対比がなされる。そのため、複数の被判別画像の全てについて平行移動を行う場合に比べ、判定に要する時間を短縮できる。よって、判別速度が向上し、高速な選別が可能となる。   Further, the minimum difference rotation angle θm that provides the minimum difference DFm from the comparison result of the plurality of discriminated images having different rotation angles including “θ = 0” and the reference image is specified as the first rotation angle, and the minimum The angle “θm−θd” obtained by subtracting the rotation angle increment θd from the difference rotation angle θm is specified as the second rotation angle, and the angle “θm + θd” obtained by adding the rotation angle increment θd to the minimum difference rotation angle θm is the third rotation. The angle is specified, and only the discriminated image corresponding to the specified first to third rotation angles is translated and compared with the reference image. Therefore, the time required for determination can be shortened compared to the case where parallel movement is performed for all of the plurality of images to be determined. Therefore, the discrimination speed is improved and high-speed sorting becomes possible.

図14および図15は、本発明の実施例2のメダル選別装置における画像対比処理を示す。実施例2のメダル選別装置は、画像対比判定において回転および平行移動による複数の被判別画像と基準画像との対比結果のうち最良の対比結果に基づき選別対象メダル(換言すれば、判別対象メダル)Mの真偽を判別する点において実施例1のメダル選別装置100と相違する。それ以外は、実施例1のメダル選別装置100と同一である。そのため、ここでは画像対比判定処理についてのみ説明する。また、実施例1のメダル選別装置100における画像対比判定処理のステップと同一のステップについては、図9および図10と同じ符号を付してその説明を省略する。   14 and 15 show image comparison processing in the medal sorting device according to Embodiment 2 of the present invention. The medal sorting device according to the second embodiment selects a selection medal (in other words, a discrimination target medal) based on the best comparison result among the comparison results of the plurality of discriminated images and the reference image by rotation and translation in the image comparison determination. The difference from the medal sorting device 100 of the first embodiment is that the authenticity of M is determined. Other than that, it is the same as the medal sorting device 100 of the first embodiment. For this reason, only the image comparison determination process will be described here. Further, the same steps as the image comparison determination process in the medal sorting device 100 of the first embodiment are denoted by the same reference numerals as those in FIGS. 9 and 10 and the description thereof is omitted.

図14および図15の画像対比判定処理は、実施例1のメダル選別装置100と同様に、図6のステップS7において実行される。まず、実施例1と同じステップS51〜S57が実行されることにより、「θ=0」の被判別画像と「k=0」の基準画像とが対比され、相違度DFが算出される。本実施例では、ステップS57の実行後、図9のステップS58が実行されることなく、実施例1と同じステップS60〜S66が実行される。これにより、「θ=0」の場合を含めて回転角度の異なる複数の被判別画像と基準画像との対比がなされ、対比結果が最良となる最小相違度DFmおよび最小相違度角度θmがRAM143に保持される。   The image comparison determination process of FIGS. 14 and 15 is executed in step S7 of FIG. 6 in the same manner as the medal sorting device 100 of the first embodiment. First, the same steps S51 to S57 as in the first embodiment are executed, so that the discriminated image of “θ = 0” and the reference image of “k = 0” are compared, and the dissimilarity DF is calculated. In the present embodiment, after execution of step S57, the same steps S60 to S66 as in the first embodiment are executed without executing step S58 of FIG. Thereby, a plurality of discriminated images having different rotation angles including the case of “θ = 0” are compared with the reference image, and the minimum difference DFm and the minimum difference angle θm with the best comparison result are stored in the RAM 143. Retained.

さらに、図15に示すように、実施例1と同じステップS67〜S79が実行されることにより、第1回転角度に対応する被判別画像が平行移動され、当該平行移動された被判別画像と「k=0」の基準画像とが対比され、相違度DFが算出される。本実施例では、ステップS79の実行後、図10のステップS80が実行されず、ステップS201においてステップS79で算出された相違度DFが最小相違度DFm未満であるか否かが判定される。「DF<DFm」の場合、すなわち、ステップS79で算出された相違度DFが既に設定されている最小相違度DFmより小さい場合、ステップS202に進み、最小相違度DFmが更新される。「DF≧DFm」の場合、ステップS76に戻り、現在の最小相違度DFmがそのまま維持される。これにより、図13(A)〜(H)に示す8方向に平行移動された被判別画像と「k=0」の基準画像とが対比され、最良となる対比結果としての最小相違度DFmが設定され、RAM143に保持される。   Further, as shown in FIG. 15, by performing the same steps S67 to S79 as in the first embodiment, the discriminated image corresponding to the first rotation angle is translated, and the translated discriminated image and “ The difference image DF is calculated by comparing with the reference image of “k = 0”. In this embodiment, after execution of step S79, step S80 of FIG. 10 is not executed, and it is determined in step S201 whether or not the difference DF calculated in step S79 is less than the minimum difference DFm. In the case of “DF <DFm”, that is, when the dissimilarity DF calculated in step S79 is smaller than the minimum dissimilarity DFm already set, the process proceeds to step S202, and the minimum dissimilarity DFm is updated. When “DF ≧ DFm”, the process returns to step S76, and the current minimum difference DFm is maintained as it is. As a result, the discriminated image translated in the eight directions shown in FIGS. 13A to 13H is compared with the reference image of “k = 0”, and the minimum difference DFm as the best comparison result is obtained. It is set and held in the RAM 143.

ステップS78において画像移動カウント数nが「8」以上の場合(すなわち、「n≧8」の場合)、実施例1と同様に、ステップS82、S83が実行され、新たな回転角度カウント数mとして現在の回転角度カウント数mに「1」を加算した「m+1」を設定した後、回転角度カウント数mが「2」以下であるか否かを判定する。「m≦2」の場合、実施例1と同様に、ステップS68に戻る。これにより、ステップS68〜S79、S201、S202、S82が繰り返し実行される。   When the image movement count number n is “8” or more in step S78 (that is, when “n ≧ 8”), steps S82 and S83 are executed as in the first embodiment to obtain a new rotation angle count number m. After “m + 1” obtained by adding “1” to the current rotation angle count number m is set, it is determined whether the rotation angle count number m is “2” or less. If “m ≦ 2”, the process returns to step S68 as in the first embodiment. Thereby, steps S68 to S79, S201, S202, and S82 are repeatedly executed.

上述した実施例2のメダル選別装置では、実施例1とほぼ同じ効果が得られる。すなわち、撮像画像において判別対象ディスクの模様が回転していても、その回転角度と同一または近似する回転角度を有し、且つ、回転方向が逆の被判別画像と基準画像とを対比することにより、模様の回転が補正される。換言すれば、模様の回転ズレが除去または減少される。平行移動における方向および移動量が適正であれば、撮像画像における判別対象ディスクの模様が位置ズレしていても、その位置ズレが補正される。換言すれば、位置ズレが除去または減少される。したがって、撮像画像における模様の回転および位置ズレの双方の影響が除去または減少され、判別精度を高めることができる。また、特定された回転角度に対応する被判別画像についてのみ平行移動を行って基準画像との対比がなされるので、判定に要する時間を短縮できる。よって、判別速度が向上し、高速な選別が可能となる。   In the above-described medal sorting device of the second embodiment, substantially the same effect as that of the first embodiment can be obtained. That is, even if the pattern of the disc to be discriminated is rotated in the captured image, the discriminating image having the same or approximate rotation angle as that of the rotation angle and having the reverse rotation direction is compared with the reference image. The pattern rotation is corrected. In other words, the rotational deviation of the pattern is removed or reduced. If the direction and amount of translation are appropriate, even if the pattern of the disc to be discriminated in the captured image is misaligned, the misalignment is corrected. In other words, the positional deviation is removed or reduced. Therefore, the influence of both the rotation of the pattern and the positional deviation in the captured image is removed or reduced, and the discrimination accuracy can be improved. Further, since only the image to be discriminated corresponding to the specified rotation angle is translated and compared with the reference image, the time required for the determination can be shortened. Therefore, the discrimination speed is improved and high-speed sorting becomes possible.

さらに、対比結果が最良となる最小相違度DFmに基づいて真偽が判別される。換言すれば、被判別画像における模様の回転および位置ズレの双方の影響が最も少ない対比結果に基づき真偽の判別がなされる。そのため、実施例1の場合に比べて判別の基準値(換言すれば、閾値)を厳しく設定することができ、より正確な判別が可能であり、ひいては、より正確な選別が可能となる。   Further, authenticity is determined based on the minimum difference DFm that provides the best comparison result. In other words, true / false determination is made based on the comparison result in which the influences of both the rotation of the pattern and the positional deviation in the image to be determined are the least. Therefore, the reference value (in other words, the threshold value) for determination can be set stricter than in the case of the first embodiment, so that more accurate determination is possible, and thus more accurate selection is possible.

図16および図17は、本発明の実施例3のメダル選別装置における画像対比処理を示す。実施例3のメダル選別装置は、画像対比判定において「θ=0」を含めて回転角度の異なる複数の被判別画像の全てについて平行移動を行いながら基準画像と対比し、得られた対比結果のうちの最良の対比結果に基づき選別対象メダル(換言すれば、判別対象メダル)Mの真偽を判別する点において実施例1のメダル選別装置100と相違する。それ以外は、実施例1のメダル選別装置100と同一である。そのため、ここでは画像対比判定処理についてのみ説明する。   16 and 17 show image comparison processing in the medal sorting device according to Embodiment 3 of the present invention. The medal sorting device according to the third embodiment compares a plurality of discriminated images having different rotation angles including “θ = 0” in the image comparison determination with the reference image while performing parallel movement, and the obtained comparison result. This is different from the medal sorting device 100 of the first embodiment in that the authenticity of the sorting target medal (in other words, the discrimination target medal) M is determined based on the best comparison result. Other than that, it is the same as the medal sorting device 100 of the first embodiment. For this reason, only the image comparison determination process will be described here.

まず、図16のステップS301において、図9のステップS51と同様に、図6のステップS6において取得された選別対象メダル(換言すれば、判別対象メダル)Mの撮像画像の前処理が実行され、中心抽出、エッジ強調、2値化、膨張・収縮の各処理がなされた後の画像が前処理画像としてRAM143の処理画像保持部173に格納され保持される。   First, in step S301 in FIG. 16, as in step S51 in FIG. 9, preprocessing of the captured image of the selection target medal (in other words, the determination target medal) M acquired in step S6 in FIG. 6 is executed. An image that has been subjected to center extraction, edge enhancement, binarization, and expansion / contraction processing is stored and held in the processed image holding unit 173 of the RAM 143 as a preprocessed image.

次のステップS302では、図9のステップS52と同様に、処理画像保持部173に保持された前処理画像がRAM143の撮像画像保持部172に格納され保持される。   In the next step S302, the preprocessed image held in the processed image holding unit 173 is stored and held in the captured image holding unit 172 of the RAM 143, as in step S52 of FIG.

次のステップS303において面番号kに「0」が設定され、続くステップS304において面番号kの基準画像が選択され、ステップS305に進む。   In the next step S303, “0” is set to the surface number k, and in the subsequent step S304, the reference image of the surface number k is selected, and the process proceeds to step S305.

ステップS305およびステップS306では、回転角度θおよび画像移動カウント数nにそれぞれ「0」が設定される。換言すれば、回転角度θおよび画像移動カウント数nが初期化(すなわち、リセット)される。   In step S305 and step S306, “0” is set for the rotation angle θ and the image movement count number n, respectively. In other words, the rotation angle θ and the image movement count number n are initialized (that is, reset).

次のステップS307では、図9のステップS56と同様に、撮像画像保持部172に保持された前処理画像に対してサイズ変換処理が実行される。サイズ変換された画像は、被判別画像として処理画像保持部173に格納され保持される。   In the next step S307, the size conversion process is performed on the preprocessed image held in the captured image holding unit 172, as in step S56 of FIG. The size-converted image is stored and held in the processed image holding unit 173 as a discriminated image.

次のステップS308では、図9のステップS57と同様に、基準画像保持部171に保持された基準画像と処理画像保持部173に保持された被判別画像とを対比する画像比較が実行され、相違度DFが算出される。   In the next step S308, as in step S57 of FIG. 9, an image comparison that compares the reference image held in the reference image holding unit 171 and the image to be determined held in the processed image holding unit 173 is executed. The degree DF is calculated.

次のステップS309では、画像移動カウント数nが「0」か否かが判定される。換言すれば、ステップS309において、平行移動が実行されているか否かが判定される。平行移動が実行されていない「n=0」の場合、ステップS310に進み、平行移動が実行されている「n≠0」の場合、ステップS311に進む。   In the next step S309, it is determined whether or not the image movement count number n is “0”. In other words, in step S309, it is determined whether or not parallel movement is being performed. If “n = 0” in which the parallel movement is not executed, the process proceeds to step S310. If “n ≠ 0” in which the parallel movement is executed, the process proceeds to step S311.

ステップS310では、θが「0」であるか否かが判定される。「θ=0」の場合、ステップS312に進み、「θ≠0」の場合、ステップS311に進む。   In step S310, it is determined whether or not θ is “0”. If “θ = 0”, the process proceeds to step S312. If “θ ≠ 0”, the process proceeds to step S311.

ステップS312では、相違度DFの最小値を示す最小相違度DFmが設定される。ステップS309において「n=0」と判定され、ステップS310において「θ=0」と判定された場合、ステップS308において算出された相違度DFが最小相違度DFmとして設定される。設定された最小相違度DFmは、RAM143に格納される。   In step S312, the minimum difference DFm indicating the minimum value of the difference DF is set. If “n = 0” is determined in step S309 and “θ = 0” is determined in step S310, the difference DF calculated in step S308 is set as the minimum difference DFm. The set minimum difference DFm is stored in the RAM 143.

ステップS309において「n≠0」の場合またはステップS310において「θ≠0」の場合、ステップS311において、ステップS308で算出された相違度DFが最小相違度DFm未満であるか否かが判定される。「DF<DFm」の場合、すなわち、ステップS308で算出された相違度DFが既に設定されている最小相違度DFmより小さい場合、ステップS312に進み、最小相違度DFmが更新される。「DF≧DFm」の場合、ステップS313に進み、現在の最小相違度DFmがそのまま維持される。   If “n ≠ 0” in step S309 or “θ ≠ 0” in step S310, it is determined in step S311 whether or not the difference DF calculated in step S308 is less than the minimum difference DFm. . In the case of “DF <DFm”, that is, when the difference DF calculated in step S308 is smaller than the already set minimum difference DFm, the process proceeds to step S312 and the minimum difference DFm is updated. If “DF ≧ DFm”, the process proceeds to step S313, and the current minimum difference DFm is maintained as it is.

ステップS313では、図10のステップS76と同様に、処理画像保持部173に保持された被判別画像に対して図12の平行移動処理が実行される。平行移動された被判別画像は、処理画像保持部173に格納され保持される。   In step S313, as in step S76 in FIG. 10, the parallel movement process in FIG. 12 is executed on the discrimination target image held in the processed image holding unit 173. The parallel image to be discriminated is stored and held in the processed image holding unit 173.

次のステップS314では、現在の画像移動カウント数nに「1」が加算され、新たな画像移動カウント数nが設定される。換言すれば、画像移動カウント数nが更新される。   In the next step S314, “1” is added to the current image movement count number n, and a new image movement count number n is set. In other words, the image movement count number n is updated.

次のステップS315では、画像移動カウント数nが「8」以上であるか否かが判定される。画像移動カウント数nが「8」以上でない場合(すなわち、「n<8」の場合)、ステップS308に戻り、上記ステップS308〜S314が繰り返し実行される。すなわち、ステップS313において平行移動された被判別画像は、RAM143の処理画像保持部173に格納されて保持され、ステップS308において基準画像に対して相違度DFが算出される。換言すれば、平行移動された被判別画像と基準画像との対比による相違度の算出が、平行移動の方向を変えながら繰り返し実行される。そして、算出された各相違度のうちの最小値が最小相違度として設定される。画像移動カウント数nが「8」以上の場合(すなわち、「n≧8」の場合)、図17のステップS316に進む。   In the next step S315, it is determined whether or not the image movement count number n is “8” or more. When the image movement count number n is not “8” or more (that is, when “n <8”), the process returns to step S308, and the above steps S308 to S314 are repeatedly executed. That is, the discriminated image translated in step S313 is stored and held in the processed image holding unit 173 of the RAM 143, and the difference DF is calculated with respect to the reference image in step S308. In other words, the calculation of the degree of difference based on the comparison between the discriminated image to be translated and the reference image is repeatedly executed while changing the direction of translation. Then, the minimum value of the calculated differences is set as the minimum difference. When the image movement count number n is “8” or more (that is, when “n ≧ 8”), the process proceeds to step S316 in FIG.

ステップ316では、現在の回転角度θに回転角度増分θdを加算して得られた値が新たな回転角度θとして設定される。換言すれば、回転角度θが更新される。 In step S 316, a value obtained by adding the rotation angle increment θd to the current rotation angle theta is set as a new rotation angle theta. In other words, the rotation angle θ is updated.

次のステップS317では、ステップS316で更新された回転角度θが「360°」以上であるか否かが判定される。「θ<360°」の場合、ステップS318に進み、撮像画像保持部172に保持された前処理画像が更新された回転角度θで回転される。その後、図16のステップS306に戻り、ステップS306〜S316が繰り返し実行される。これにより、回転角度θの異なる複数の被判別画像のそれぞれについて、平行移動の方向を変えながら平行移動されつつ基準画像と対比され、対比結果として相違度DFが算出される。そして、算出された相違度DFの最小値が最小相違度DFmとして設定される。   In the next step S317, it is determined whether or not the rotation angle θ updated in step S316 is “360 °” or more. When “θ <360 °”, the process proceeds to step S318, and the preprocessed image held in the captured image holding unit 172 is rotated at the updated rotation angle θ. Thereafter, the process returns to step S306 in FIG. 16, and steps S306 to S316 are repeatedly executed. Thus, each of the plurality of discriminated images having different rotation angles θ is compared with the reference image while being translated while changing the direction of translation, and the difference DF is calculated as a comparison result. Then, the calculated minimum value of the difference DF is set as the minimum difference DFm.

ステップS317において「θ≧360°」の場合、ステップS317に進み、最小相違度DFmが所定の閾値以下であるか否かが判定される。最小相違度DFmが閾値以下の場合、ステップS320において、一致の判定がなされた後、図6のステップS7に戻る。それ以外の場合(換言すれば、最小相違度DFmが閾値を超える場合)、ステップS321に進み、現在の面番号kに「1」が加算され、新たな面番号kが設定される。   If “θ ≧ 360 °” in step S317, the process proceeds to step S317 to determine whether or not the minimum difference DFm is equal to or less than a predetermined threshold value. If the minimum difference degree DFm is equal to or smaller than the threshold value, a match is determined in step S320, and the process returns to step S7 in FIG. In other cases (in other words, when the minimum difference DFm exceeds the threshold value), the process proceeds to step S321, "1" is added to the current surface number k, and a new surface number k is set.

次のステップS322では、面番号kが「2」以上であるか否かが判定される。面番号kが「2」未満(すなわち、「k<2」)の場合、図16のステップS304に戻る。換言すれば、「k=1」に設定された状態で、ステップS304〜S321の処理が再度実行される。すなわち、基準メダルSMの裏面の基準画像との対比が行われる。面番号kが「2」以上(すなわち、「k≧2」)の場合、ステップS323において不一致と判定され、図6のステップS8に戻る。   In the next step S322, it is determined whether or not the surface number k is “2” or more. If the surface number k is less than “2” (ie, “k <2”), the process returns to step S304 in FIG. In other words, the processes in steps S304 to S321 are executed again with “k = 1” set. That is, a comparison with the reference image on the back surface of the reference medal SM is performed. When the surface number k is “2” or more (that is, “k ≧ 2”), it is determined that there is a mismatch in step S323, and the process returns to step S8 in FIG.

上述した実施例3のメダル選別装置では、実施例1の場合と同様に、撮像画像において判別対象ディスクの模様が回転していても、その回転角度と同一または近似する回転角度を有し、且つ、回転方向が逆の被判別画像と基準画像とを対比することにより、模様の回転が補正される。換言すれば、模様の回転ズレが除去または減少される。平行移動における方向および移動量が適正であれば、撮像画像における判別対象ディスクの模様が位置ズレしていても、その位置ズレが補正される。換言すれば、位置ズレが除去または減少される。したがって、撮像画像における模様の回転および位置ズレの双方の影響が除去または減少され、判別精度を高めることができる。   In the medal sorting device of the third embodiment described above, similarly to the first embodiment, even if the pattern of the disc to be discriminated is rotated in the captured image, the rotation angle is the same as or approximate to the rotation angle, and The rotation of the pattern is corrected by comparing the discriminated image whose rotation direction is opposite with the reference image. In other words, the rotational deviation of the pattern is removed or reduced. If the direction and amount of translation are appropriate, even if the pattern of the disc to be discriminated in the captured image is misaligned, the misalignment is corrected. In other words, the positional deviation is removed or reduced. Therefore, the influence of both the rotation of the pattern and the positional deviation in the captured image is removed or reduced, and the discrimination accuracy can be improved.

また、実施例2の場合と同様に、対比結果が最良となる最小相違度DFmに基づいて真偽が判別される。換言すれば、被判別画像における模様の回転および位置ズレの双方の影響が最も少ない対比結果に基づき真偽の判別がなされる。しかも、全ての回転角度に対応する被判別画像について平行移動を行って基準画像との対比がなされる。そのため、実施例2に比べて判別の基準値(換言すれば、閾値)を一層厳しく設定することができる。これにより、判別および選別の正確性が一層向上する。   As in the case of the second embodiment, authenticity is determined based on the minimum difference DFm that provides the best comparison result. In other words, true / false determination is made based on the comparison result in which the influences of both the rotation of the pattern and the positional deviation in the image to be determined are the least. In addition, the image to be discriminated corresponding to all the rotation angles is translated and compared with the reference image. Therefore, it is possible to set the determination reference value (in other words, the threshold value) more strictly than in the second embodiment. Thereby, the accuracy of discrimination and sorting is further improved.

(変形例)
なお、本発明は、上記実施例に限定されるものではなく、種々の変更が可能である。例えば、相違度DFに換えて類似度を求め、類似度を対比結果として定量化することもできる。この場合、類似度が所定の閾値以上の場合に真正メダルとして判別し、類似度が当該閾値未満の場合に偽メダルと判別すればよい。また、選別対象メダルMの表面および裏面の模様が同一の場合には、面番号nに関連する処理を省略することで適用が可能となる。さらに、面番号kを適宜に設定することにより、それぞれ異なる模様を有する複数金種のメダルMに対しても適用が可能である。
(Modification)
In addition, this invention is not limited to the said Example, A various change is possible. For example, the similarity can be obtained instead of the dissimilarity DF, and the similarity can be quantified as a comparison result. In this case, a genuine medal may be determined when the similarity is equal to or greater than a predetermined threshold, and a false medal may be determined when the similarity is less than the threshold. In addition, when the patterns of the front and back surfaces of the selection target medal M are the same, it is possible to apply by omitting the processing related to the surface number n. Furthermore, by appropriately setting the face number k, the present invention can be applied to a plurality of denomination medals M each having a different pattern.

上記実施例では、画像対比判定において、選別対象メダルMの撮像画像に対してサイズ変換せずに前処理画像として撮像画像保持部172に保持し、保持された前処理画像の回転前および回転後にサイズ変換を実行しているが、撮像画像を回転するようにしてもよい。その場合、撮像画像の回転前および回転後の撮像画像に対して図8の前処理を実行することになるので、上記実施例に比べて画像対比判定に要する時間が増加する。   In the above embodiment, in the image comparison determination, the captured image of the selection target medal M is not converted in size but is stored in the captured image holding unit 172 as a preprocessed image, and the stored preprocessed image is rotated before and after the rotation. Although the size conversion is performed, the captured image may be rotated. In that case, since the preprocessing of FIG. 8 is performed on the captured image before and after the rotation of the captured image, the time required for the image comparison determination increases as compared with the above-described embodiment.

上記実施例では、凹凸模様を有するメダルを例に説明したが、印刷等により形成された模様を有するディスクに対しても適用できる。また、上記実施例では、遊技用メダルを例に説明したが、硬貨やトークン等の他の種類のディスクに対しても適用可能である。その場合にも、同様の効果が得られ、特に不正行為の防止に効果的である。   In the above embodiment, a medal having a concavo-convex pattern has been described as an example, but the present invention can also be applied to a disk having a pattern formed by printing or the like. In the above embodiment, the game medal is described as an example, but the present invention can be applied to other types of disks such as coins and tokens. Even in that case, the same effect can be obtained, and it is particularly effective in preventing fraud.

本発明は、ゲーム機、自動販売機、精算機等のディスク処理装置に好適に利用でき、特に、直径の異なる複数種類のディスクを処理する装置に好適である。   The present invention can be suitably used for a disk processing apparatus such as a game machine, a vending machine, and a payment machine, and is particularly suitable for an apparatus that processes a plurality of types of disks having different diameters.

100 メダル選別装置
101 メダル返却口
102 メダル受入口
103 本体
103a 案内面
104 メダル投入口
105 メダル通路
105S 傾斜メダル通路
105V 垂立メダル通路
106 振分ゲート
108 ガイドレール(ガイド体)
108a 案内面
109 振分板
110 撮像窓
111 撮像タイミングセンサ
112 光電センサ
112a 発光部
112b 受光部
112c プリズム
113 メダルカウントセンサ
114 光電センサ
114a 発光部
114b 受光部
120 二次元撮像装置
121 投光装置
122 ハーフミラー
123 集光レンズ
124 撮像素子
130 面投光装置
131 LED
132 導光体
133 反射シート
134 拡散シート
140 制御装置
141 マイクロコンピュータ
142 ROM
143 RAM
151 ユーザインターフェース
152 状態表示器
153 登録スイッチ
154 セキュリティボリューム
160 画像処理部
161 中心抽出部
162 エッジ強調部
163 2値化部
164 膨張・収縮部
165 サイズ変換部
166 画像回転部
167 画像移動部
168 判別部
171 基準画像保持部
172 撮像画像保持部
173 処理画像保持部
BS バスライン
M メダル
M1、M2、M3 メダル
FM 偽メダル
SM 基準メダル
TM 真正メダル
BL 基準線
DAL 検知軸線
GL 案内線
LA 光軸
LL 長手軸線
LS 長辺
SS 短辺
DF 相違度
DFm 最小相違度
DL 進行線
DS メダル検知信号
DS メダル検出信号
GCS ゲート制御信号
ICS 撮像制御信号
IS 撮像画像信号
LCS 点灯制御信号
TS タイミング信号
100 medal sorting device 101 medal return port 102 medal receiving port 103 main body 103a guide surface 104 medal insertion port 105 medal passage 105S inclined medal passage 105V vertical medal passage 106 sorting gate 108 guide rail (guide body)
108a Guide surface 109 Distribution plate 110 Imaging window 111 Imaging timing sensor 112 Photoelectric sensor 112a Light emitting unit 112b Light receiving unit 112c Prism 113 Medal count sensor 114 Photoelectric sensor 114a Light emitting unit 114b Light receiving unit 120 Two-dimensional imaging device 121 Light projecting device 122 Half mirror 123 Condensing lens 124 Image sensor 130 Area projector 131 LED
132 Light Guide 133 Reflective Sheet 134 Diffusion Sheet 140 Controller 141 Microcomputer 142 ROM
143 RAM
151 User Interface 152 Status Indicator 153 Registration Switch 154 Security Volume 160 Image Processing Unit 161 Center Extraction Unit 162 Edge Enhancement Unit 163 Binarization Unit 164 Expansion / Shrinkage Unit 165 Size Conversion Unit 166 Image Rotation Unit 167 Image Movement Unit 168 Discrimination Unit 171 Reference image holding unit 172 Captured image holding unit 173 Processed image holding unit BS Bus line M Medal M1, M2, M3 Medal FM Fake medal SM Reference medal TM True medal BL Reference line DAL Detection axis GL Guide line LA Optical axis LL Longitudinal axis LS Long side SS Short side DF Dissimilarity DFm Minimum dissimilarity DL Progress line DS Medal detection signal DS Medal detection signal GCS Gate control signal ICS Imaging control signal IS Captured image signal LCS Lighting control signal TS Timing signal

Claims (2)

基準ディスクに対応する基準画像を準備し、判別対象ディスクの一面を撮像手段で撮像して撮像画像を取得し、取得した前記撮像画像に基づく被判別画像と前記基準画像とを対比することにより判別手段が前記判別対象ディスクの真偽を判別するディスク判別方法において、
(A)前記判別対象ディスクの撮像画像に基づく第1の被判別画像を生成し、当該第1の被判別画像と前記基準画像とを対比する工程と、
(B)前記第1の被判別画像をそれぞれ異なる複数の回転角度で回転した画像に相当する複数の第2の被判別画像を生成し、当該第2の被判別画像と前記基準画像とを対比する工程と、
(C)前記第1および第2の被判別画像から選ばれた一以上を座標変換により平行移動してなる複数の第3の被判別画像と前記基準画像とを対比する工程と、
を含み、
前記(A)、(B)および(C)の工程における対比結果から前記判別対象ディスクの真偽が判別され
前記(A)および(B)の工程における前記第1および第2の被判別画像と前記基準画像との対比結果から3つの回転角度を特定し、前記(C)の工程では当該特定された3つの回転角度に対応する前記第3の被判別画像についてのみ対比が行われることを特徴とするディスク判別方法。
Discrimination is performed by preparing a reference image corresponding to the reference disc, capturing an image of one side of the disc to be discriminated by an imaging unit, and comparing the discriminated image based on the acquired captured image with the reference image. In the disc discrimination method, wherein the means discriminates the authenticity of the disc to be discriminated,
(A) generating a first discriminated image based on a captured image of the discriminating target disk, and comparing the first discriminated image with the reference image;
(B) generating a plurality of second discrimination images corresponding to images obtained by rotating the first discrimination image at a plurality of different rotation angles, and comparing the second discrimination image with the reference image. And a process of
(C) a step of comparing a plurality of third discriminated images obtained by translating one or more selected from the first and second discriminated images by coordinate transformation and the reference image;
Including
The true / false of the disc to be discriminated is determined from the comparison results in the steps (A), (B) and (C) ,
Three rotation angles are specified from the comparison results between the first and second discriminated images and the reference image in the steps (A) and (B), and the specified 3 is determined in the step (C). A disc discrimination method characterized in that comparison is performed only for the third discriminated image corresponding to one rotation angle .
基準ディスクに対応する基準画像を基準画像保持手段に保持し、判別対象ディスクの一面を撮像手段で撮像して撮像画像を取得し、取得した前記判別対象ディスクの撮像画像に基づく被判別画像と前記基準画像とを対比することにより判別手段が前記判別対象ディスクの真偽を判別するディスク判別装置において、
前記判別対象ディスクの撮像画像に基づく第1の被判別画像および前記第1の被判別画像をそれぞれ異なる複数の回転角度で回転した画像に相当する複数の第2の被判別画像を生成する手段と、前記第1および第2の被判別画像から選ばれた一以上を座標変換により平行移動して複数の第3の被判別画像を生成する画像移動手段を有し、
前記判別手段が、前記第1、第2および第3の被判別画像のそれぞれと前記基準画像とを対比し、当該対比結果から前記判別対象ディスクの真偽を判別し
前記判別手段が、前記第1および第2の被判別画像と前記基準画像との対比結果から3つの回転角度を特定し、前記第3の被判別画像と前記基準画像とを対比する場合には当該特定された3つ回転角度に対応する前記第3の被判別画像に対してのみ対比を行うことを特徴とするディスク判別装置。
A reference image corresponding to a reference disk is held in a reference image holding unit, an image of one side of a disc to be discriminated is picked up by an imaging unit, a picked-up image is acquired, and a discriminated image based on the acquired captured image of the disc to be discriminated and the In the disc discriminating apparatus in which the discriminating unit discriminates the authenticity of the disc to be discriminated by comparing with a reference image.
Means for generating a plurality of second discriminated images corresponding to images obtained by rotating the first discriminating image based on the captured image of the discriminating target disk and the first discriminating image at a plurality of different rotation angles, respectively. , Image moving means for generating a plurality of third discriminated images by translating one or more selected from the first and second discriminated images by coordinate transformation;
The discriminating means compares each of the first, second and third discriminated images with the reference image, discriminates the authenticity of the disc to be discriminated from the comparison result ;
When the discrimination means specifies three rotation angles from the comparison result between the first and second discrimination images and the reference image, and compares the third discrimination image and the reference image. A disc discriminating apparatus characterized in that a comparison is performed only for the third discriminated image corresponding to the specified three rotation angles .
JP2012255685A 2012-11-21 2012-11-21 Disc discrimination method, disc discrimination device, and disc sorting device Active JP5953614B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012255685A JP5953614B2 (en) 2012-11-21 2012-11-21 Disc discrimination method, disc discrimination device, and disc sorting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012255685A JP5953614B2 (en) 2012-11-21 2012-11-21 Disc discrimination method, disc discrimination device, and disc sorting device

Publications (3)

Publication Number Publication Date
JP2014102765A JP2014102765A (en) 2014-06-05
JP2014102765A5 JP2014102765A5 (en) 2015-06-25
JP5953614B2 true JP5953614B2 (en) 2016-07-20

Family

ID=51025201

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012255685A Active JP5953614B2 (en) 2012-11-21 2012-11-21 Disc discrimination method, disc discrimination device, and disc sorting device

Country Status (1)

Country Link
JP (1) JP5953614B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6481126B2 (en) * 2016-02-12 2019-03-13 旭精工株式会社 Disc color discrimination device and color discrimination method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3404214B2 (en) * 1996-03-22 2003-05-06 グローリー工業株式会社 Positioning method for circular objects
JPH1091836A (en) * 1996-09-12 1998-04-10 Oki Electric Ind Co Ltd Device for identifying coin
JP2003233851A (en) * 2002-02-13 2003-08-22 Glory Ltd Method for judging authenticity/soundness of coin from picture and its device
JP2005031901A (en) * 2003-07-10 2005-02-03 Nippon Conlux Co Ltd Coin identifying device and method
JP5174917B2 (en) * 2008-09-24 2013-04-03 グローリー株式会社 Coin damage determination apparatus and damage determination method
WO2010055575A1 (en) * 2008-11-14 2010-05-20 グローリー株式会社 Coin discrimination method and coin discrimination device
JP5709410B2 (en) * 2009-06-16 2015-04-30 キヤノン株式会社 Pattern processing apparatus and method, and program

Also Published As

Publication number Publication date
JP2014102765A (en) 2014-06-05

Similar Documents

Publication Publication Date Title
JP6002921B2 (en) Disc discrimination method, disc discrimination device, and disc sorting device
JP5838469B2 (en) Disc discrimination method, disc discrimination device, and disc sorting device
US10748387B2 (en) Device for reading a magnetic stripe and/or chip card having a camera for the detection of inserted skimming modules
EP1049054B1 (en) Coin discriminating apparatus
WO2012083711A1 (en) Banknote detection method and device
JP5568798B2 (en) Coin sorting device and two-dimensional imaging device for coin discrimination
JP5953553B2 (en) Disc discrimination method, disc discrimination device, and disc sorting device
KR20030051250A (en) Method and Apparatus of True or False Documents Distinction
JP5953614B2 (en) Disc discrimination method, disc discrimination device, and disc sorting device
JP6723561B2 (en) Disk discriminating apparatus and disc discriminating method
JPH1114557A (en) Coin recognition system
KR101812206B1 (en) Counterfeit discrimnation and tracking system and method performing thereof
JP5906484B2 (en) Disc image acquisition device and disc sorting device
EP2804154B1 (en) Disk image acquiring device and disk sorting device
US9947161B2 (en) Disk image acquiring device and disk sorting device
JP6481126B2 (en) Disc color discrimination device and color discrimination method
CN104167042B (en) Dish image acquiring device and riddle screening device
JP2013109458A5 (en)
JP4382579B2 (en) Paper sheet identification apparatus and method
CN108073921B (en) Method and device for identifying banknote information
JP6406514B2 (en) Disk identification device and disk identification method
JP2003196699A (en) Coin discriminating method, and coin discriminating device
JP7434939B2 (en) Coin identification device, automatic transaction device, and coin identification method
JP3394984B2 (en) Coin recognition device
JP2002056427A (en) Coin identifying device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150507

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150507

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160324

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160328

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160506

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160526

R150 Certificate of patent or registration of utility model

Ref document number: 5953614

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250