JP2006293651A - Coin discriminating device, coin discriminating method, and storage medium - Google Patents

Coin discriminating device, coin discriminating method, and storage medium Download PDF

Info

Publication number
JP2006293651A
JP2006293651A JP2005112882A JP2005112882A JP2006293651A JP 2006293651 A JP2006293651 A JP 2006293651A JP 2005112882 A JP2005112882 A JP 2005112882A JP 2005112882 A JP2005112882 A JP 2005112882A JP 2006293651 A JP2006293651 A JP 2006293651A
Authority
JP
Japan
Prior art keywords
coin
image
feature amount
master
histogram
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.)
Pending
Application number
JP2005112882A
Other languages
Japanese (ja)
Inventor
Hidetoshi Takebayashi
英俊 竹林
Kouichi Miyagaki
更一 宮垣
Koji Tanaka
耕二 田中
Masaya Otama
真哉 苧玉
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP2005112882A priority Critical patent/JP2006293651A/en
Publication of JP2006293651A publication Critical patent/JP2006293651A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Testing Of Coins (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To improve the coin discriminating accuracy of a coin discriminating device which discriminates coins on the basis of a gray level histogram obtained from a coin image. <P>SOLUTION: Digital multi-leveled image data of the coin photographed by an imaging unit is incorporated. The coin image is divided into a plurality of section images in a first region 29, a second region 30, and a third region 31. The gray level histogram is prepared on the basis of each section image, and a feature quantity such as a peak position is extracted from each gray level histogram. Then, the authenticity of the coin is determined by collating the feature quantity with the feature quantity of a preregistered master coin. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、コインの真偽等を画像に基づいて判別するためのコイン判別装置及びコイン判別方法に関する。また、当該コイン判別方法を実施するための処理プロセスを記憶させた記憶媒体に関する。   The present invention relates to a coin discriminating apparatus and a coin discriminating method for discriminating whether a coin is true or false based on an image. The present invention also relates to a storage medium that stores a processing process for executing the coin discrimination method.

ゲーム機や自動販売機、券売機などに内蔵され、投入されたコイン(通貨、ゲーム機用コインなど)の真偽や他店コイン(他店で使用されているゲーム機用コイン)などを判別するために、コイン判別装置が用いられている。このようなコイン判別装置には、磁気センサを用いてコインを判別するものがあった。しかし、このようなコイン判別装置では、コイン判別の精度が非常に低かった。   Built-in in game consoles, vending machines, ticket machines, etc., and discriminating the authenticity of inserted coins (currency, coins for game consoles, etc.) and other store coins (coin for game consoles used in other stores) For this purpose, a coin discriminating device is used. Some of these coin discriminating devices discriminate coins using a magnetic sensor. However, in such a coin discrimination device, the accuracy of coin discrimination is very low.

そこで、撮影したコイン画像をデジタル多値画像データに変換し、このデジタル多値画像データから濃度ヒストグラムを生成し、その濃度ヒストグラムのパターンに基づいてコインの判別を行なうコイン判別装置が提案されている。このコイン判別装置では、コイン画像の濃度ヒストグラムのパターンと予め登録されているマスターコインの登録パターンとを比較することにより、コインの真偽を判別していた。   Therefore, a coin discriminating apparatus has been proposed that converts a photographed coin image into digital multilevel image data, generates a density histogram from the digital multilevel image data, and discriminates coins based on the density histogram pattern. . In this coin discriminating apparatus, the authenticity of a coin is discriminated by comparing a density histogram pattern of a coin image with a master coin registration pattern registered in advance.

しかしながら、最近500円硬貨などで社会問題となったように精巧な偽造硬貨が使用されることが多くなっているため、このようなコイン判別装置では、通貨の判別精度が十分でなかった。また、通貨以外のコインであって、換金性を有するゲーム機用コインの場合には、コインに付されている模様はそれぞれ異なっているが、コインの大きさや模様は紛らわしいものが多い。そのため、このようなゲーム機用コインにも対応させるためには、コイン判別精度の高いコイン判別装置が必要とされている。   However, since sophisticated coins such as 500 yen coins have become a social problem in recent years, such coin discriminating devices have not been sufficiently accurate in discriminating currencies. Further, in the case of a coin for a gaming machine that is a currency other than a currency, the pattern attached to the coin is different, but the size and pattern of the coin are often confusing. Therefore, in order to deal with such a game machine coin, a coin discrimination device with high coin discrimination accuracy is required.

本発明は上記のような技術的課題に鑑みてなされたものであり、その目的とするところは、コイン画像から得た濃度ヒストグラムに基づいてコインを判別するコイン判別装置において、そのコイン判別精度を向上させることにある。   The present invention has been made in view of the technical problems as described above, and an object of the present invention is to provide a coin discriminating apparatus for discriminating coins based on a density histogram obtained from a coin image, and to improve the coin discriminating accuracy. It is to improve.

本発明の請求項1にかかるコイン判別装置は、対象コインの真偽を画像に基づいて判別するためのコイン判別装置であって、マスターコインの濃度ヒストグラムから得た特徴量を保存した記憶手段と、対象コインの画像を取得するための撮像手段と、前記画像から濃度ヒストグラムを生成するヒストグラム生成手段と、前記ヒストグラム生成手段によって生成された濃度ヒストグラムから、対象コインの特徴量を抽出する特徴量抽出手段と、前記記憶手段に保存されたマスターコインの特徴量と、前記特徴量抽出手段により抽出された対象コインの特徴量とを比較することによって対象コインの真偽を判定する手段とを備えたものである。   A coin discriminating apparatus according to claim 1 of the present invention is a coin discriminating apparatus for discriminating the authenticity of a target coin based on an image, and a storage means for storing a feature value obtained from a density histogram of a master coin. Imaging means for acquiring an image of the target coin, histogram generation means for generating a density histogram from the image, and feature amount extraction for extracting a feature amount of the target coin from the density histogram generated by the histogram generation means And means for determining the authenticity of the target coin by comparing the feature quantity of the master coin stored in the storage means with the feature quantity of the target coin extracted by the feature quantity extraction means. Is.

本発明の請求項1にかかるコイン判別装置は、濃度ヒストグラムから抽出した特徴量を用いてマスターコインと対象コインとを照合しているので、対象コインの判別精度を向上させることができ、対象コインの真偽をより正確に判別することが可能になる。   In the coin discriminating apparatus according to claim 1 of the present invention, since the master coin and the target coin are collated using the feature amount extracted from the density histogram, the discrimination accuracy of the target coin can be improved, and the target coin can be improved. It is possible to more accurately determine the true / false of.

本発明の請求項2にかかる実施態様は、請求項1のコイン判別装置において、前記撮像手段により取得された対象コインの画像を複数の円環状又は円形の領域に分割する画像分割処理手段を備え、前記ヒストグラム生成手段は、前記画像分割処理手段により分割された各分割画像毎の濃度ヒストグラムを生成し、前記特徴量抽出手段は、各分割画像毎の濃度ヒストグラムから各々の特徴量を抽出し、前記判定手段は、対象コインの各分割画像の濃度ヒストグラムから抽出された各特徴量と、マスターコインの対応する特徴量とを比較することを特徴としている。この実施態様のように、コインの画像を複数の円環状又は円形の領域に分割し、分割された各分割画像毎の濃度ヒストグラムから特徴量を抽出してマスターコインと比較することにより、対象コインの判別精度を向上させることができ、対象コインの真偽をより正確に判別することが可能になる。   According to a second aspect of the present invention, in the coin discriminating apparatus according to the first aspect, an image division processing unit that divides the image of the target coin acquired by the imaging unit into a plurality of annular or circular regions. The histogram generation means generates a density histogram for each divided image divided by the image division processing means, and the feature quantity extraction means extracts each feature quantity from the density histogram for each divided image, The determination unit compares each feature amount extracted from the density histogram of each divided image of the target coin with a corresponding feature amount of the master coin. As in this embodiment, the coin image is divided into a plurality of circular or circular regions, and the feature amount is extracted from the density histogram for each divided image and compared with the master coin, thereby obtaining the target coin. Can be improved, and the true / false of the target coin can be more accurately determined.

本発明の請求項3にかかる実施態様は、請求項2に記載のコイン判別装置において、前記画像分割処理手段が、各分割画像間に隙間をあけて対象コインの画像を複数の円環状又は円形の領域に分割することを特徴としている。この実施態様のように、コイン画像を分割画像間に隙間をあけて分割すれば、コインの判別精度をより向上させることができ、紛らわしいコインの判別もより正確に行なえるようになる。   According to a third aspect of the present invention, in the coin discriminating apparatus according to the second aspect, the image division processing unit displays an image of the target coin with a plurality of annular or circular shapes with a gap between the divided images. It is characterized by being divided into regions. If the coin image is divided with a gap between the divided images as in this embodiment, the coin discrimination accuracy can be further improved, and misleading coin discrimination can be performed more accurately.

本発明の請求項4にかかる実施態様は、請求項1に記載のコイン判別装置における前記マスターコインの特徴量及び前記対象コインの特徴量が、前記各コインの濃度ヒストグラムにおける画素数が極大のときの階調度の値であることを特徴としている。   According to an embodiment of the present invention, the feature amount of the master coin and the feature amount of the target coin in the coin discriminating device according to claim 1 are the maximum number of pixels in the density histogram of each coin. It is characterized by the value of the gradation.

また、本発明の請求項5にかかる実施態様は、請求項1に記載のコイン判別装置における前記マスターコインの特徴量及び前記対象コインの特徴量が、前記各コインの濃度ヒストグラムにおける画素数が極大のときの階調度の値と、画素数が所定レベルであるときの階調度の値との差であることを特徴としている。   In the embodiment according to claim 5 of the present invention, the feature amount of the master coin and the feature amount of the target coin in the coin discriminating device according to claim 1 are the maximum in the number of pixels in the density histogram of each coin. It is characterized in that it is the difference between the gradation value at the time of the above and the gradation value when the number of pixels is at a predetermined level.

本発明の請求項6にかかる実施態様における前記マスターコインの特徴量及び前記対象コインの特徴量は、分割された画像のそれぞれのヒストグラムどうしのピーク位置の偏差であることを特徴としている。   In the embodiment according to claim 6 of the present invention, the feature amount of the master coin and the feature amount of the target coin are deviations of peak positions of the respective histograms of the divided images.

本発明の請求項7にかかる実施態様における前記マスターコインの特徴量及び前記対象コインの特徴量は、分割された画像のそれぞれのヒストグラムにおいて、画素数が所定値となる階調度どうしの偏差であることを特徴としている。   In the embodiment according to claim 7 of the present invention, the feature amount of the master coin and the feature amount of the target coin are deviations between gradations at which the number of pixels becomes a predetermined value in each histogram of the divided images. It is characterized by that.

濃度ヒストグラムの特徴量としては、請求項4〜請求項7のようなものを用いることができ、あるいは、これらを組み合わせて用いることができ、それによって、対象コインの判別精度を向上させることができ、対象コインの真偽をより正確に判別することが可能になる。   As the feature amount of the density histogram, the features as in claims 4 to 7 can be used, or a combination of these can be used, thereby improving the discrimination accuracy of the target coin. Thus, it is possible to more accurately determine the authenticity of the target coin.

本発明の請求項8にかかるコイン判別方法は、マスターコインの濃度ヒストグラムから得た特徴量を予め記憶手段に記憶させておき、撮像手段を用いて対象コインの画像を取得するステップと、前記画像から濃度ヒストグラムを生成するステップと、濃度ヒストグラムから、対象コインの特徴量を抽出するステップと、前記記憶手段に保存されたマスターコインの特徴量と、前記対象コインの特徴量とを比較するステップとにより対象コインの真偽を判定することを特徴としている。   According to an eighth aspect of the present invention, there is provided a coin discriminating method in which a feature amount obtained from a density histogram of a master coin is stored in a storage unit in advance, and an image of a target coin is obtained using an imaging unit; Generating a density histogram from the steps, extracting a feature amount of the target coin from the density histogram, comparing a feature amount of the master coin stored in the storage means with a feature amount of the target coin, It is characterized by determining the authenticity of the target coin.

本発明の請求項8にかかるコイン判別方法は、濃度ヒストグラムから抽出した特徴量を用いてマスターコインと対象コインとを照合しているので、対象コインの判別精度を向上させることができ、対象コインの真偽をより正確に判別することが可能になる。   In the coin discriminating method according to claim 8 of the present invention, since the master coin and the target coin are collated using the feature amount extracted from the density histogram, the discrimination accuracy of the target coin can be improved. It is possible to more accurately determine the true / false of.

本発明の請求項9にかかる記憶媒体は、マスターコインの濃度ヒストグラムから得た特徴量を記憶させるステップと、撮像手段を用いて対象コインの画像を取得するステップと、前記画像から濃度ヒストグラムを生成するステップと、濃度ヒストグラムから、対象コインの特徴量を抽出するステップと、前記記憶手段に保存されたマスターコインの特徴量と、前記対象コインの特徴量とを比較するステップとを記録されたものである。かかる記憶媒体をコンピュータにより実行させることにより、対象コインの真偽をより正確に判別することが可能になる。   A storage medium according to a ninth aspect of the present invention stores a feature amount obtained from a density histogram of a master coin, a step of acquiring an image of a target coin using an imaging unit, and a density histogram is generated from the image Recorded are a step of extracting the feature amount of the target coin from the density histogram, and a step of comparing the feature amount of the master coin stored in the storage unit with the feature amount of the target coin. It is. By executing such a storage medium by a computer, it is possible to more accurately determine the authenticity of the target coin.

以下、本発明の実施例を図面に従って詳細に説明する。ただし、本発明は以下の実施例に限定されるものでないのは、勿論である。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. However, it is needless to say that the present invention is not limited to the following examples.

まず、本発明の実施例1によるコイン判別装置を図1〜図16により説明する。図1はゲーム機や自動販売機、券売機などの内部に設けられたコイン通路1の一部を示す斜視図である。コイン通路1は、幅の狭い転動路1aとその上方に位置する側壁面1bとを有している。転動路1aはコイン通過方向に沿って傾斜しており、投入されたコイン2は、転動路1aの上を転がっていく。また、側壁面1bは、垂直面よりも少し傾いており、変形していないコイン2は転動路1aから脱落することなく転がっていくが、変形したコイン2は転動路1aから脱落して返却口へ排出される。   First, a coin discriminating apparatus according to Embodiment 1 of the present invention will be described with reference to FIGS. FIG. 1 is a perspective view showing a part of a coin passage 1 provided inside a game machine, a vending machine, a ticket machine or the like. The coin passage 1 has a narrow rolling path 1a and a side wall surface 1b located above the rolling path 1a. The rolling path 1a is inclined along the coin passing direction, and the inserted coin 2 rolls on the rolling path 1a. Further, the side wall surface 1b is slightly inclined with respect to the vertical surface, and the undeformed coin 2 rolls without falling off the rolling path 1a, but the deformed coin 2 drops off from the rolling path 1a. It is discharged to the return port.

図2はコイン通路1に対向させて配置されたコイン判別装置の照明装置3及び撮像装置4を示す側面図である。また、図3は照明装置3及び撮像装置4を示す斜視図、図4はその断面図である。照明装置3は、筒体5の外周面に複数個の光源6を設けた構造となっている。筒体5の外周面には、均等な間隔をあけて複数の通孔7が開口されている。光源6は、白色LED(発光素子)等によって構成されており、通孔7内に挿入して固定されている。各光源6は、筒体5の内側に向けて光を出射するように配置されており、主光線の出射方向は、筒体5の開口面と平行な方向に対して斜めに傾いている。しかして、各光源6から出射された光Bは、コイン2の通過面(側壁面1b)で重なり合うようにして均一に照射される。   FIG. 2 is a side view showing the illumination device 3 and the imaging device 4 of the coin discriminating device arranged facing the coin passage 1. 3 is a perspective view showing the illumination device 3 and the imaging device 4, and FIG. 4 is a sectional view thereof. The illuminating device 3 has a structure in which a plurality of light sources 6 are provided on the outer peripheral surface of the cylindrical body 5. A plurality of through holes 7 are opened on the outer peripheral surface of the cylindrical body 5 at equal intervals. The light source 6 is configured by a white LED (light emitting element) or the like, and is inserted into the through hole 7 and fixed. Each light source 6 is disposed so as to emit light toward the inside of the cylinder 5, and the emission direction of the principal ray is inclined obliquely with respect to the direction parallel to the opening surface of the cylinder 5. Thus, the light B emitted from each light source 6 is uniformly irradiated so as to overlap on the passing surface (side wall surface 1b) of the coin 2.

撮像装置4は、筒体5の端面に固定された基板9に設けられている。基板9の中央部には窓11が開口されており、窓11の縁から筒体5側へ向けて延出された鏡筒部12の先端部には結像レンズ10が保持されている。窓11に対向する位置には、CCDカメラ等の撮像素子8が固定されている。   The imaging device 4 is provided on a substrate 9 fixed to the end surface of the cylinder 5. A window 11 is opened at the center of the substrate 9, and the imaging lens 10 is held at the tip of the lens barrel 12 that extends from the edge of the window 11 toward the cylinder 5. An imaging device 8 such as a CCD camera is fixed at a position facing the window 11.

また、基板9には、コイン検知用のLEDやLD(レーザー素子)等の投光素子14が設けられている。投光素子14は、撮像素子8よりもコイン通過方向に位置している。図5に示すように、コイン通路1には、投光素子14に対向させて空洞15が開口され、空洞15内には、投光素子14から出射された検知光Dを受光するための受光素子13が配置されている。   The substrate 9 is provided with a light projecting element 14 such as an LED for coin detection or an LD (laser element). The light projecting element 14 is located in the coin passing direction with respect to the imaging element 8. As shown in FIG. 5, a cavity 15 is opened in the coin passage 1 so as to face the light projecting element 14, and light reception for receiving the detection light D emitted from the light projecting element 14 is received in the cavity 15. Element 13 is arranged.

しかして、このコイン判別装置においては、図5に表わすようにして、通過するコイン2の画像を撮影する。コイン2が通過していない状態においては、光源6は消灯している。一方、投光素子14は点灯していて、投光素子14から出射された検知光Dは、受光素子13で受光されており、受光素子13はオン(受光状態)となっている。   Therefore, in this coin discriminating apparatus, an image of the passing coin 2 is taken as shown in FIG. When the coin 2 has not passed, the light source 6 is turned off. On the other hand, the light projecting element 14 is turned on, and the detection light D emitted from the light projecting element 14 is received by the light receiving element 13, and the light receiving element 13 is turned on (light receiving state).

このとき、転動路1aに沿って転がってきたコイン2が撮像素子8と対向する位置に達すると、コイン2の縁によって投光素子14から出射された検知光Dが遮られ、受光素子13がオフ(非受光状態)となる。受光素子13がオフになると同時に、全ての光源6が瞬間的に閃光Bを発してコイン2を照明し、撮像素子8が通過中のコイン2の静止画像を取得する。こうして撮像素子8により撮影されたコイン2の画像は、画像データ(デジタルデータ)として撮像素子8からコイン判別処理部へ送り出される。   At this time, when the coin 2 rolled along the rolling path 1a reaches a position facing the image sensor 8, the detection light D emitted from the light projecting element 14 is blocked by the edge of the coin 2, and the light receiving element 13 Turns off (non-light receiving state). At the same time as the light receiving element 13 is turned off, all the light sources 6 instantaneously emit a flash B to illuminate the coin 2 and the image sensor 8 acquires a still image of the passing coin 2. Thus, the image of the coin 2 photographed by the image sensor 8 is sent out from the image sensor 8 to the coin discrimination processing unit as image data (digital data).

なお、上記実施例とは異なる方式でコインの画像を取り込むようにしてもよい。異なる方式においては、照明装置3を常時点灯したままにしておくと共に、撮像素子8からコイン判別処理部へ画像データが送られないように遮断(マスキング)しておく。そして、受光素子13がオフになってコイン2が検出されると、その瞬間に撮像装置4で取得された画像の画像データが撮像素子8からコイン判別処理部へ送られ、後述のようにしてコインの真偽を判定される。瞬間の画像データをコイン判別処理部に送り終えると、撮像素子8はからコイン判別処理部へのデータ伝送は再び遮断される。かかる方式によれば、電気信号によって撮像装置4のシャッターを構成することができるので、シャッタースピードを高速化でき、容易にコインの静止画像を得ることができる。   Note that a coin image may be captured by a method different from the above embodiment. In a different method, the lighting device 3 is always turned on, and is blocked (masked) so that image data is not sent from the image sensor 8 to the coin discrimination processing unit. When the light receiving element 13 is turned off and the coin 2 is detected, the image data of the image acquired by the imaging device 4 at that moment is sent from the imaging element 8 to the coin discrimination processing unit, as will be described later. Whether the coin is true or false is determined. When the instantaneous image data is sent to the coin discrimination processing unit, data transmission from the image sensor 8 to the coin discrimination processing unit is again cut off. According to this method, since the shutter of the imaging device 4 can be configured by an electric signal, the shutter speed can be increased and a still image of a coin can be easily obtained.

図6はコイン判別処理部16の構成を示すブロック図である。コイン判別処理部16は、マイクロコンピュータや電子回路、コンピュータ及びソフトウエアなどによって構成されている。コイン判別処理部16は、撮像素子8から受け取ったデジタル多値画像データをコイン画像と背景画像とに分離しコイン形状を抽出するコイン形状抽出部17と、抽出されたコイン形状からその中心を検出するコイン中心検出部18と、コイン形状の中心が画面の中心にくるようにコイン画像を画面の中心へ移動させる画像シフト部19と、コイン画像を円形及び同心円環状の部分画像に分割する画像分割処理部20と、各部分画像毎の濃度ヒストグラムを生成するヒストグラム生成部21と、各ヒストグラムの特徴量を抽出する特徴量抽出部22と、マスターコインの両面又は片面の特徴量を予め記憶させておくマスターコインデータ記憶部23と、対象コインの特徴量とマスターコインデータ記憶部23に保存されているマスターコインの特徴量とを比較して対象コインの真偽を判定する判定処理部24と、判定結果を出力する出力部25とからなる。   FIG. 6 is a block diagram showing a configuration of the coin discrimination processing unit 16. The coin discrimination processing unit 16 is configured by a microcomputer, an electronic circuit, a computer, software, and the like. The coin discrimination processing unit 16 separates the digital multivalued image data received from the image sensor 8 into a coin image and a background image and extracts a coin shape, and detects the center from the extracted coin shape. A coin center detection unit 18 that performs the image shift unit 19 that moves the coin image to the center of the screen so that the center of the coin shape is at the center of the screen, and image division that divides the coin image into circular and concentric annular partial images. A processing unit 20, a histogram generation unit 21 that generates a density histogram for each partial image, a feature amount extraction unit 22 that extracts a feature amount of each histogram, and feature amounts on both sides or one side of the master coin are stored in advance. The master coin data storage unit 23 to be placed, and the feature amount of the target coin and the master coin stored in the master coin data storage unit 23 A determination processing section 24 the authenticity of the subject coin by comparing the feature amount, and an output unit 25 for outputting a determination result.

図7、図8及び図9は上記コイン判別処理部により対象コインの真偽を判別するための手順を表したフローチャートである。図10〜図13はその説明図である。以下、図7〜図13に従ってコイン判別方法を具体的に説明する。ただし、以下の処理はデータとして処理されるものであり、図10〜図13はその処理内容を分かり易くするために原理を図示したものである。前記のようにして撮像装置4によりコイン2の画像が撮影されると、コイン判別処理部16は、そのデジタル多値画像データ(例えば、256階調の画像データ)を読み込む(図7のステップS1)。こうして読み込まれたコイン画像は、画面(画像を切り分けるための画面)の中央にあることが望ましい。しかし、図10(a)に示すように、通過するコイン2を撮影するタイミングのずれにより、コイン画像26は必ずしも画面27の中央に位置せず、通常は画面27の中心から偏っている。   7, 8 and 9 are flowcharts showing a procedure for determining the authenticity of the target coin by the coin determination processing unit. 10 to 13 are explanatory diagrams thereof. Hereinafter, the coin discrimination method will be described in detail with reference to FIGS. However, the following processing is processed as data, and FIGS. 10 to 13 illustrate the principle for easy understanding of the processing contents. When the image of the coin 2 is taken by the imaging device 4 as described above, the coin discrimination processing unit 16 reads the digital multi-value image data (for example, image data of 256 gradations) (step S1 in FIG. 7). ). The coin image read in this way is preferably at the center of the screen (screen for separating the images). However, as shown in FIG. 10A, the coin image 26 is not necessarily located at the center of the screen 27 due to a difference in the timing of photographing the passing coin 2, and is normally biased from the center of the screen 27.

そこで、コイン画像26を画面27の中央へ移動させるため、まずコイン形状の中心の検出を行う(ステップS2)。すなわち、コイン形状抽出部17により、読み込んだ画像データ内のコイン画像26と背景画像28とを分別することによってコイン画像26を抽出する。ついで、コイン中心検出部18により、抽出したコイン画像26の中心を検出する。コイン形状の中心を検出する方法には、種々の方法があるが、例えば、図10(a)に示すように、コイン画像26の幅方向の中央を通る垂線と高さ方向の中央を通る水平線との交点として求めることができる。   Therefore, in order to move the coin image 26 to the center of the screen 27, first, the center of the coin shape is detected (step S2). That is, the coin shape extraction unit 17 extracts the coin image 26 by separating the coin image 26 and the background image 28 in the read image data. Next, the center of the extracted coin image 26 is detected by the coin center detection unit 18. There are various methods for detecting the center of the coin shape. For example, as shown in FIG. 10A, a vertical line passing through the center in the width direction of the coin image 26 and a horizontal line passing through the center in the height direction. It can be obtained as an intersection with.

こうしてコイン画像26の中心が検出されたら、画像シフト部19により、図10(b)に示すように、コイン画像26の中心が画面27の中心と一致するように画面27内でコイン画像26を移動させる(ステップS3)。   When the center of the coin image 26 is detected in this manner, the image shift unit 19 moves the coin image 26 on the screen 27 so that the center of the coin image 26 coincides with the center of the screen 27 as shown in FIG. Move (step S3).

コイン画像26が画面27の中心に移動し終わったら、画像分割処理部20によりコイン画像26を複数の領域に切り分け(ステップS4)、切り分けられた各分割画像をメモリに記憶させる(ステップS5)。コイン画像26の切り分け方としては色々あるが、コイン画像26と中心が一致する円形の領域と円環状の領域とに分割するのが望ましい。図11では、円形をした第1領域29と円環状をした第2及び第3領域30、31とに切り分けている。   When the coin image 26 finishes moving to the center of the screen 27, the image division processing unit 20 cuts the coin image 26 into a plurality of areas (step S4), and stores each divided image in the memory (step S5). There are various methods for dividing the coin image 26, but it is desirable to divide the coin image 26 into a circular region and a circular region whose centers coincide with each other. In FIG. 11, the first region 29 having a circular shape and the second and third regions 30 and 31 having a circular shape are separated.

ついで、メモリから第1領域29の部分画像をメモリから読み出し(ステップS6)、ヒストグラム生成部21により、第1領域29の部分画像にヒストグラム化処理を行って濃度ヒストグラムを生成し、その濃度ヒストグラムをメモリに保存する(ステップS7)。   Next, the partial image of the first area 29 is read from the memory (step S6), and the histogram generation unit 21 performs a histogram process on the partial image of the first area 29 to generate a density histogram. Save in the memory (step S7).

なお、第1〜第3領域29〜31をコイン画像26の中心と一致する円形領域と円環状領域とに分割していると、各部分画像から濃度ヒストグラムを作成したとき、各領域の濃度ヒストグラムがコイン画像26の回転角度(コイン2を撮影した時のコイン2の回転角度)によらず原理上同じになるので、画像を所定の角度に回転させる処理が不要になる。。   When the first to third regions 29 to 31 are divided into a circular region and an annular region that coincide with the center of the coin image 26, when a density histogram is created from each partial image, the density histogram of each region However, since the same in principle regardless of the rotation angle of the coin image 26 (the rotation angle of the coin 2 when the coin 2 is photographed), the process of rotating the image to a predetermined angle is not necessary. .

また、図12はコイン画像26を各部分画像に分割し、ヒストグラム化処理する実際の方法を説明する図である。画面27は、図12(a)に示すように、1辺が例えば2=64に分割されていて4096個の画素に分割されており、各画素にナンバーが付与されている。図12(a)では、画素ナンバー”1”、”2”、”3”、”0”が付与されているが、同一の画素ナンバーを付された領域は、図12(b)のような円形の第1領域29A(”1”)、円環状の第2領域30A(”2”)、円環状の第3領域31A(”3”)、背景領域(”0”)に対応している。従って、コイン画像26における各画素の濃度(階調度)を各画素ナンバーに関連付けてグループ化しておき、各グループ毎の画素階調度に統計処理を施せば、図11のように切り分けられた各領域29、30、31の濃度ヒストグラムが一度に得られる。こうして作成された各領域の濃度ヒストグラムは、メモリに一時的に保存される。 FIG. 12 is a diagram for explaining an actual method of dividing the coin image 26 into partial images and performing histogram processing. As shown in FIG. 12A, the screen 27 is divided into, for example, 2 6 = 64 and is divided into 4096 pixels, and a number is assigned to each pixel. In FIG. 12A, the pixel numbers “1”, “2”, “3”, and “0” are assigned, but the regions with the same pixel number are as shown in FIG. It corresponds to a circular first area 29A ("1"), an annular second area 30A ("2"), an annular third area 31A ("3"), and a background area ("0"). . Therefore, if the density (gradation degree) of each pixel in the coin image 26 is grouped in association with each pixel number, and the statistical processing is performed on the pixel gradation degree for each group, each area divided as shown in FIG. Density histograms 29, 30, and 31 are obtained at a time. The density histogram of each area created in this way is temporarily stored in the memory.

この後、図9のフローチャートに従って特徴量抽出部22により当該濃度ヒストグラムの特徴量を抽出する(ステップS8)。例えば、部分画像の濃度ヒストグラム32が図13(a)に破線で示すような曲線であるとする。図13(a)(b)において、横軸は256階調(0〜255)で表した各画素の濃度(階調度)であり、縦軸は各階調度の画素数を表している。濃度ヒストグラム32は、まずピーク値が一定値(例えば、100(任意単位))となるように縦軸方向に縮小又は拡大され、あるいは縦軸方向に平行移動され、図13(a)に実線で示すように正規化される(図9のステップS21)。   Thereafter, the feature amount extraction unit 22 extracts the feature amount of the density histogram according to the flowchart of FIG. 9 (step S8). For example, it is assumed that the density histogram 32 of the partial image is a curve as shown by a broken line in FIG. In FIGS. 13A and 13B, the horizontal axis represents the density (gradation degree) of each pixel expressed in 256 gradations (0 to 255), and the vertical axis represents the number of pixels in each gradation degree. The density histogram 32 is first reduced or enlarged in the vertical axis direction or translated in the vertical axis direction so that the peak value becomes a constant value (for example, 100 (arbitrary unit)), and a solid line in FIG. Normalization is performed as shown (step S21 in FIG. 9).

ついで、画素数が所定の閾値Nsよりも小さな領域の濃度ヒストグラム32を切り捨てる(ステップS22)。例えば、閾値Nsとしては、濃度ヒストグラムの画素数が、ピーク値の70%のときの値とし、閾値以下の領域を切り捨てて図13(b)のような濃度ヒストグラム32を得る。この閾値Nsの大きさは、あらかじめ適切なレベルに設定されている。   Next, the density histogram 32 in the region where the number of pixels is smaller than the predetermined threshold Ns is discarded (step S22). For example, the threshold value Ns is a value when the number of pixels of the density histogram is 70% of the peak value, and the area below the threshold value is discarded to obtain a density histogram 32 as shown in FIG. The magnitude of the threshold value Ns is set to an appropriate level in advance.

この後、濃度ヒストグラム32のピーク位置における階調度の値(以下、ピーク位置という。)Kpを検出する(ステップS23)と共に、ピーク位置の右側における濃度ヒストグラム32の幅(以下、高階調幅という。)WRと、ピーク位置の左側における濃度ヒストグラム32の幅(以下、低階調幅という。)WLを求め(ステップS24、S25)、ピーク位置Kp、高階調幅WR、低階調幅WLを特徴量としてメモリに記憶させる。   Thereafter, the gradation value at the peak position of the density histogram 32 (hereinafter referred to as peak position) Kp is detected (step S23), and the width of the density histogram 32 on the right side of the peak position (hereinafter referred to as high gradation width). WR and the width (hereinafter referred to as low gradation width) WL of the density histogram 32 on the left side of the peak position are obtained (steps S24 and S25), and the peak position Kp, high gradation width WR, and low gradation width WL are used as features in the memory. Remember.

マスターコインデータ記憶部23には、マスターコインの両面又は片面における第1〜第3領域毎のピーク位置と高階調幅と低階調幅が格納されている。ここで、マスターコインデータ記憶部23にマスターコインの両面の特徴量が保存されている場合には、その一方の面を第1の面といい、他方の面を第2の面という。あるいは、マスターコインの片面の特徴量しか保存されていない場合には、その面を第1の面という。   The master coin data storage unit 23 stores the peak position, the high gradation width, and the low gradation width for each of the first to third regions on both sides or one side of the master coin. Here, when the feature amounts of both sides of the master coin are stored in the master coin data storage unit 23, one side is referred to as a first side and the other side is referred to as a second side. Alternatively, when only the feature amount of one side of the master coin is stored, that side is referred to as a first side.

照合時には、はじめにコイン2の第1領域29における濃度ヒストグラム32のピーク位置Kpと、マスターコインの第1の面の第1領域における濃度ヒストグラムのピーク位置とを照合し(ステップS9)、コイン2のピーク位置Kpとマスターコインのピーク位置が一致するか否か判定する(ステップS10)。ここで、コイン2のピーク位置Kpとマスターコインのピーク位置が一致するとは、完全に一致することを意味するものではなく、コイン2のピーク位置Kpが、マスターコインのピーク位置を中心とする所定の範囲内に納まっていればよい。照明装置3の経時的な照度の変化などを考慮する必要があるからである。   At the time of collation, first, the peak position Kp of the density histogram 32 in the first area 29 of the coin 2 is collated with the peak position of the density histogram in the first area of the first surface of the master coin (step S9). It is determined whether or not the peak position Kp matches the peak position of the master coin (step S10). Here, the coincidence between the peak position Kp of the coin 2 and the peak position of the master coin does not mean that they coincide completely, and the peak position Kp of the coin 2 is a predetermined centered on the peak position of the master coin. As long as it is within the range. This is because it is necessary to consider changes in illuminance over time of the lighting device 3.

第1領域29におけるピーク位置Kpがマスターコインの第1の面のピーク位置と一致しない場合には、マスターコインデータ記憶部23にマスターコインのデータが2面について存在しているか否かを調べ(ステップS14)、2面のデータが存在していなければ(ステップS14でNOの場合)、コイン2はマスターコインと不一致であると判断し、コイン2を返却口に排出する(ステップS17)。   When the peak position Kp in the first area 29 does not coincide with the peak position of the first face of the master coin, it is checked whether or not the data of the master coin exists for two faces in the master coin data storage unit 23 ( Step S14) If there is no data on the two sides (NO in Step S14), it is determined that the coin 2 does not match the master coin, and the coin 2 is discharged to the return slot (Step S17).

また、マスターコインのデータが2面について存在している場合(ステップS14でYESの場合)には、第2の面についても照合する。すなわち、コイン2の第1領域29におけるピーク位置Kpと、マスターコインデータ記憶部23に記憶されているマスターコインの第2の面における第1領域でのピーク位置とを照合し(ステップS15)、コイン2のピーク位置Kpとマスターコインのピーク位置が一致するか否か判定する(ステップS16)。ここでも、コイン2のピーク位置Kpとマスターコインのピーク位置が一致するとは、コイン2のピーク位置Kpが、マスターコインのピーク位置を中心とする所定の範囲内に納まっていればよい。   Further, when master coin data exists for two sides (YES in step S14), the second side is also checked. That is, the peak position Kp in the first area 29 of the coin 2 is collated with the peak position in the first area on the second surface of the master coin stored in the master coin data storage unit 23 (step S15). It is determined whether or not the peak position Kp of the coin 2 matches the peak position of the master coin (step S16). Again, the coin 2 peak position Kp and the master coin peak position coincide with each other as long as the coin 2 peak position Kp falls within a predetermined range centered on the master coin peak position.

第1領域29のピーク位置Kpがマスターコインの第2の面の第1領域でのピーク位置と一致しない場合(ステップS16においてNOの場合)には、コイン2は真正のコインでないと判断し、コイン2を返却口に排出する(ステップS17)。   If the peak position Kp of the first area 29 does not coincide with the peak position in the first area of the second surface of the master coin (NO in step S16), it is determined that the coin 2 is not a genuine coin, The coin 2 is discharged to the return slot (step S17).

これに対し、ステップS10又はS16において、コイン2のピーク位置Kpがマスターコインの第1又は第2の面のピーク位置と一致した場合には、さらにコイン2の第1領域29における低階調幅WL、高階調幅WRと、マスターコインデータ記憶部23に記憶されているマスターコインの第1領域における低階調幅及び高階調幅とを照合する(ステップS11)。ただし、ステップS10でコイン2のピーク位置がマスターコインの第1の面のピーク位置と一致した場合には、ステップS11で照合するマスターコインの低階調幅及び高階調幅も第1の面におけるものである。また、ステップS16でコイン2のピーク位置がマスターコインの第2の面のピーク位置と一致した場合には、ステップS11で照合するマスターコインの低階調幅及び高階調幅も第2の面におけるものである。また、ここでも、コイン2の階調幅WL、WRがマスターコインの各階調幅を中心とするある範囲に含まれていれば、一致しているものとする。   On the other hand, when the peak position Kp of the coin 2 coincides with the peak position of the first or second surface of the master coin in step S10 or S16, the low gradation width WL in the first region 29 of the coin 2 is further increased. The high gradation width WR is compared with the low gradation width and the high gradation width in the first area of the master coin stored in the master coin data storage unit 23 (step S11). However, if the peak position of the coin 2 coincides with the peak position of the first surface of the master coin in step S10, the low gradation width and high gradation width of the master coin to be collated in step S11 are also on the first surface. is there. If the peak position of the coin 2 coincides with the peak position of the second surface of the master coin in step S16, the low gradation width and high gradation width of the master coin to be collated in step S11 are also on the second surface. is there. Also, here, if the gradation widths WL and WR of the coin 2 are included in a certain range centering on each gradation width of the master coin, they are assumed to match.

ステップS11における照合の結果、低階調幅か高階調幅が一致しない場合(ステップS12でNOの場合)には、コイン2はマスターコインと一致せず、真正のコインでないと判断されて返却口から排出される(ステップS17)。   As a result of the collation in step S11, if the low gradation width or the high gradation width does not match (NO in step S12), it is determined that the coin 2 does not match the master coin and is not a genuine coin and is discharged from the return slot. (Step S17).

一方、ステップS11における照合の結果、低階調幅及び高階調幅が一致した場合(ステップS12でYESの場合)には、コイン2の第1領域29の照合を終了し、コイン2の第2領域30の照合を行なう(ステップS13)。即ち、第2領域30の部分画像をメモリから読み出し、第2領域30の部分画像に対して、第1領域29の場合と同様にステップS6〜S17の処理を行なう。よって、第2領域30の濃度ヒストグラム32から得た特徴量がマスターコインの第2領域における特徴量と一致しない場合には、コイン2は返却口に排出される。   On the other hand, as a result of the collation in step S11, when the low gradation width and the high gradation width match (in the case of YES in step S12), the collation of the first area 29 of the coin 2 is finished and the second area 30 of the coin 2 is completed. Are collated (step S13). That is, the partial image in the second area 30 is read from the memory, and the processes in steps S6 to S17 are performed on the partial image in the second area 30 as in the case of the first area 29. Therefore, when the feature amount obtained from the density histogram 32 of the second region 30 does not match the feature amount in the second region of the master coin, the coin 2 is discharged to the return slot.

また、第2領域30の濃度ヒストグラム32から得たピーク位置、低階調幅及び高階調幅がマスターコインの第1又は第2の面の特徴量と一致した場合には、第3領域31の部分画像をメモリから読み出し、第3領域31の部分画像に対して、第1領域29の場合と同様にステップS6〜S17の処理を行なう。よって、第3領域31の濃度ヒストグラム32から得た特徴量がマスターコインの第3領域における特徴量と一致しない場合には、コイン2は返却口に排出される。   Further, when the peak position, the low gradation width, and the high gradation width obtained from the density histogram 32 of the second area 30 coincide with the feature amount of the first or second surface of the master coin, the partial image of the third area 31 Are read from the memory, and the processes in steps S6 to S17 are performed on the partial image in the third area 31 as in the case of the first area 29. Therefore, when the feature amount obtained from the density histogram 32 of the third region 31 does not match the feature amount in the third region of the master coin, the coin 2 is discharged to the return slot.

こうして全ての領域29〜31についてコイン2の特徴量がマスターコインと一致し、コイン2の照合が成功した場合(ステップS13、18)には、当該コイン2は真正のコインであると判定し、出力部25から真正のコインであることを伝える信号を出力する。   In this way, when the feature amount of the coin 2 matches the master coin in all the areas 29 to 31 and the coin 2 is successfully verified (steps S13 and S18), the coin 2 is determined to be a genuine coin, A signal indicating that the coin is a genuine coin is output from the output unit 25.

しかして、本発明のコイン判別装置によれば、濃度ヒストグラムから抽出した対象コインの特徴量を用いてマスターコインと比較しているので、コインの真偽を高い精度で判定することができる。さらに、コイン画像を複数の部分画像に分割し、各部分画像毎にコインの特徴量を抽出し、マスタコインと比較しているので、コイン比較のための情報量が増加し、コインの真偽をより高い精度で判定することが可能になる。   Therefore, according to the coin discriminating apparatus of the present invention, since the comparison is made with the master coin using the feature amount of the target coin extracted from the density histogram, the authenticity of the coin can be determined with high accuracy. Furthermore, since the coin image is divided into a plurality of partial images, the feature amount of the coin is extracted for each partial image, and compared with the master coin, the amount of information for coin comparison increases, and the authenticity of the coin Can be determined with higher accuracy.

上記の説明においては、マスターコインの特徴量は予めマスターコインデータ記憶部23に記憶させられていたが、マスターコインの特徴量は、図14のフローチャートに従って予め登録される。コイン判別装置をマスターコイン登録モードに設定し、コイン投入口にマスターコイン(真正のコイン)を投入すると、照明装置3及び撮像装置4によってマスターコインの画像が撮像される(ステップS31)。この後のステップS32〜S38の処理は、図7及び図8のステップS2〜S8と同じものであり、ステップS38の処理内容は図9に示されたとおりである。よって、投入されたマスターコインのコイン画像は、円形又は円環状をした複数の部分画像に分割された後、各部分画像が濃度ヒストグラムに変換され、各濃度ヒストグラムの特徴量が抽出される。そして、第1の面の各部分画像毎に、抽出された特徴量は、マスターコインデータ記憶部23に記憶させられる(ステップS39、S40)。   In the above description, the feature amount of the master coin is stored in the master coin data storage unit 23 in advance, but the feature amount of the master coin is registered in advance according to the flowchart of FIG. When the coin discriminating apparatus is set to the master coin registration mode and a master coin (authentic coin) is inserted into the coin insertion slot, an image of the master coin is captured by the illumination device 3 and the imaging device 4 (step S31). Subsequent processes in steps S32 to S38 are the same as those in steps S2 to S8 in FIGS. 7 and 8, and the processing content of step S38 is as shown in FIG. Therefore, after the coin image of the inserted master coin is divided into a plurality of circular or annular partial images, each partial image is converted into a density histogram, and the feature amount of each density histogram is extracted. And the extracted feature-value is memorize | stored in the master coin data storage part 23 for every partial image of a 1st surface (step S39, S40).

また、マスターコインの両面に模様がある場合には、マスターコインを裏向けにしてコイン投入口に投入し、裏面(第2の面)の特徴量もマスターコインデータ記憶部23に記憶させる。   If there are patterns on both sides of the master coin, the master coin is placed face down and inserted into the coin slot, and the feature amount on the back side (second side) is also stored in the master coin data storage unit 23.

なお、コインの特徴量としては、ピーク位置Kpと低階調幅WL、高階調幅WRを用いたが、この一部の特徴量を用いてもよい。   As the feature amount of the coin, the peak position Kp, the low gradation width WL, and the high gradation width WR are used, but some of these feature amounts may be used.

また、コイン(マスターコイン)の部分画像の濃度ヒストグラムが図15に示すように複数のピークを有する場合には、閾値Nsの設定の仕方により、図15(a)のように一組の特徴量を抽出することもでき、図15(b)のように複数組の特徴量を抽出することもできる。もちろん、図15(b)のように複数組の特徴量を抽出すれば、コイン照合のための情報が増加するので、コインの判別制度が向上する。   Further, when the density histogram of a partial image of a coin (master coin) has a plurality of peaks as shown in FIG. 15, a set of feature amounts as shown in FIG. 15A depending on how the threshold value Ns is set. Can be extracted, and a plurality of sets of feature quantities can be extracted as shown in FIG. Of course, if a plurality of sets of feature quantities are extracted as shown in FIG. 15B, information for coin verification increases, and the coin discrimination system is improved.

また、コイン画像を複数の部分画像に分割する際、上記実施例においては、図11に示したように隙間無く部分画像に分割した。しかし、図16に示すように、隙間をあけてコイン画像を複数の部分画像に分割するようにすれば、コインの真偽判別の精度がさらに高くなる。すなわち、図16において影を付けた領域αの画像を捨て、部分画像である第1領域29、第2領域30、第3領域31間に隙間を設けると、第1領域29、第2領域30及び第3領域31の画像が不連続になり、各領域29〜31の濃度ヒストグラムどうしのパターンの違いが顕著になる。その結果、各流域の特徴量も違いが大きくなり、コインの判別精度が向上する。   Further, when the coin image is divided into a plurality of partial images, in the above-described embodiment, as shown in FIG. However, as shown in FIG. 16, if the coin image is divided into a plurality of partial images with a gap, the accuracy of coin authenticity determination is further increased. That is, if the image of the shaded region α in FIG. 16 is discarded and a gap is provided between the first region 29, the second region 30, and the third region 31, which are partial images, the first region 29, the second region 30 are provided. And the image of the 3rd field 31 becomes discontinuous, and the difference in the pattern between the density histograms of each field 29-31 becomes remarkable. As a result, the feature amount of each basin is also greatly different, and the coin discrimination accuracy is improved.

図17及び図18は、部分画像の間に隙間を設けない場合と、隙間を設ける場合との濃度ヒストグラムの違いを示す図である。図17(a)(c)は隙間をあけることなく分割された円形状の部分画像(第1領域29)と円環状の部分画像(第2領域30)を表わしている。このように画像を分割した場合には、図17(a)のような円形状の部分画像から得られる濃度ヒストグラムは図17(b)のようになり、図17(c)のような円環状の部分画像から得られる濃度ヒストグラムは図17(d)のようになる。   FIGS. 17 and 18 are diagrams showing the difference in density histogram between the case where no gap is provided between partial images and the case where a gap is provided. FIGS. 17A and 17C show a circular partial image (first region 29) and an annular partial image (second region 30) which are divided without a gap. When the image is divided in this way, the density histogram obtained from the circular partial image as shown in FIG. 17A is as shown in FIG. 17B, and the annular shape as shown in FIG. The density histogram obtained from the partial image is as shown in FIG.

また、図18(a)(c)は隙間をあけて分割された円形状の部分画像(第1領域29)と円環状の部分画像(第2領域30)を表わしている。このように画像を分割した場合には、図18(a)のような円形状の部分画像から得られる濃度ヒストグラムは図18(b)のようになり、図18(c)のような円環状の部分画像から得られる濃度ヒストグラムは図18(d)のようになる。   18A and 18C show a circular partial image (first region 29) and an annular partial image (second region 30) divided with a gap. When the image is divided in this way, the density histogram obtained from the circular partial image as shown in FIG. 18A is as shown in FIG. 18B, and the annular shape as shown in FIG. The density histogram obtained from the partial image is as shown in FIG.

図17(b)(d)の2つの濃度ヒストグラムの違いと、図18(b)(d)の2つの濃度ヒストグラムの違いとを比較すると分かるように、部分画像間に隙間をあけた場合には2つの濃度ヒストグラムの違いがより顕著になる。よって、部分画像の間に隙間をあけることにより、各部分画像のそれぞれの特徴量を抽出して対象コインとマスターコインとを比較する場合、コインの照合精度がより向上することになる。   When the difference between the two density histograms in FIGS. 17B and 17D is compared with the difference between the two density histograms in FIGS. 18B and 18D, when a gap is formed between the partial images. The difference between the two density histograms becomes more remarkable. Therefore, by making a gap between the partial images, when comparing the target coin and the master coin by extracting the respective feature amounts of the partial images, the coin collation accuracy is further improved.

つぎに、本発明の実施例2によるコイン判別装置を説明する。これは、特徴量として高階調幅WR及び低階調幅WLに代えて、ヒストグラムのピーク値よりも小さなある画素数(たとえば、ピーク値の1/2倍)となるときの階調度を用いたものである。実施例2のコイン判別装置における、コイン通路1や照明装置3、撮像装置4などの構造は実施例1と同じである。また、コイン判別処理部16の構成も、特徴量抽出部22における処理と、判定処理部24において照合する特徴量が異なる点とを除けば、実施例1と同様である。従って、以下の実施例2の説明においては、実施例1と同一構成部分については、実施例1と同一の符号を用いることによって詳細は省略し、実施例1と異なる点のみについて説明する。   Next, a coin discrimination device according to Embodiment 2 of the present invention will be described. In this case, instead of the high gradation width WR and the low gradation width WL, the gradation level when the number of pixels is smaller than the peak value of the histogram (for example, ½ times the peak value) is used as the feature amount. is there. In the coin discriminating apparatus according to the second embodiment, the structures of the coin passage 1, the illumination device 3, the imaging device 4, and the like are the same as those in the first embodiment. The configuration of the coin discrimination processing unit 16 is the same as that of the first embodiment except that the processing in the feature quantity extraction unit 22 and the feature quantity to be collated in the judgment processing unit 24 are different. Therefore, in the following description of the second embodiment, the same components as those in the first embodiment will not be described in detail by using the same reference numerals as those in the first embodiment, and only differences from the first embodiment will be described.

図19、図20及び図21は、実施例2における対象コインの真偽を判別するための手順を表したフローチャートである。また、図22はその説明図である。実施例2のコイン判別装置においても、照明装置3によりコイン2を照明して撮像装置4によりコイン2の画像が撮影され、その画像データは撮像素子8からコイン判別処理部16に送信される。コイン2の多値画像データは、コイン判別処理部16に読み込まれる(ステップS1)。読み込まれたコイン2のデジタル多値画像データは、コイン形状抽出部17によってコイン画像26と背景画像28とを分別され、コイン画像26を抽出される。ついで、コイン中心検出部18により、抽出したコイン画像26の中心が検出される(ステップS2)。コイン画像26の中心が検出されたら、画像シフト部19により、コイン画像26の中心が画面27の中心と一致するように画面27内でコイン画像26が移動させられる(ステップS3)。   19, 20 and 21 are flowcharts showing a procedure for determining the authenticity of the target coin in the second embodiment. FIG. 22 is an explanatory diagram thereof. Also in the coin discrimination device according to the second embodiment, the illumination device 3 illuminates the coin 2 and the imaging device 4 takes an image of the coin 2, and the image data is transmitted from the imaging element 8 to the coin discrimination processing unit 16. The multivalued image data of the coin 2 is read into the coin discrimination processing unit 16 (step S1). The coin multi-value image data of the coin 2 that has been read is separated into a coin image 26 and a background image 28 by the coin shape extraction unit 17, and the coin image 26 is extracted. Next, the center of the extracted coin image 26 is detected by the coin center detection unit 18 (step S2). When the center of the coin image 26 is detected, the image shift unit 19 moves the coin image 26 within the screen 27 so that the center of the coin image 26 coincides with the center of the screen 27 (step S3).

コイン画像26が画面27の中心に移動したら、画像分割処理部20によりコイン画像26は円形又は円環状をした複数の領域に分割される(ステップS4〜S6)。ついで、分割された各領域毎の部分画像は、それぞれヒストグラム生成部21によってヒストグラム化処理され、各部分画像の濃度ヒストグラムが生成される(ステップS7)。ここまでの処理は、実施例1の場合と同様である。   When the coin image 26 moves to the center of the screen 27, the image division processing unit 20 divides the coin image 26 into a plurality of circular or annular regions (steps S4 to S6). Next, the divided partial images for each region are subjected to histogram processing by the histogram generation unit 21, and a density histogram of each partial image is generated (step S7). The processing so far is the same as that in the first embodiment.

しかし、次の特徴量抽出部22による特徴量の抽出(ステップS41)の仕方は、実施例2では実施例1の場合と異なっている。図21は実施例2の場合における特徴量抽出の過程を説明するフローチャートであり、図22はその説明図である。実施例2の場合には、ヒストグラムの正規化は行なわず、部分画像から得た濃度ヒストグラム32をそのまま用いる。そして、図22に示すように、濃度ヒストグラム32のピーク値Npを決定し、対応する画素の濃度(階調度)の値Kpを求める(ステップS42)。さらに、図22に示すように、ピーク値Npの1/2の値(半値)Np/2となるときの右側の画素の濃度Krと左側の画素の濃度Klとを求める(ステップS43、S44)。   However, the feature amount extraction (step S41) by the next feature amount extraction unit 22 is different in the second embodiment from that in the first embodiment. FIG. 21 is a flowchart for explaining the feature amount extraction process in the second embodiment, and FIG. 22 is an explanatory diagram thereof. In the case of the second embodiment, the histogram is not normalized and the density histogram 32 obtained from the partial image is used as it is. Then, as shown in FIG. 22, the peak value Np of the density histogram 32 is determined, and the density (gradation degree) value Kp of the corresponding pixel is obtained (step S42). Further, as shown in FIG. 22, the density Kr of the right pixel and the density Kl of the left pixel when the peak value Np is ½ (half value) Np / 2 are obtained (steps S43 and S44). .

マスターコインデータ記憶部23には、マスターコインの両面又は片面における各領域毎の部分画像の特徴量Kp、Kr、Klが予め格納されている。そして、上記のようにしてコイン2の特徴量Kp、Kr、Klを求めた後は、実施例1とほぼ同様である。すなわち、図20のステップS9、S10、S45、S46、S13〜S18の手順に従って対象となるコイン2とマスターコインとの特徴量Kp、Kr、Klを比較照合することによりコイン2の真偽が判定される。実施例1と異なっている点は、ステップS45、S46において、特徴量の違いに応じて対象コインの各部分画像のヒストグラムにおける左右の半値の階調度Kr、Klとマスターコインの特徴量Kr、Klとを比較照合し(ステップS45)、いずれかの特徴量が一致しない場合(ステップS46でNOの場合)には、真正のコインでないと判断してコインを排出し(ステップS17)、全ての特徴量が一致した場合(ステップS46、S13でYESの場合)には、照合が成功したと判断して真正のコインであると判断する(ステップS18)点だけである。   In the master coin data storage unit 23, feature amounts Kp, Kr, and Kl of partial images for each area on both sides or one side of the master coin are stored in advance. And after calculating | requiring the feature-values Kp, Kr, and Kl of the coin 2 as mentioned above, it is substantially the same as that of Example 1. FIG. That is, the authenticity of the coin 2 is determined by comparing and comparing the feature values Kp, Kr, and Kl of the target coin 2 and the master coin according to the procedures of steps S9, S10, S45, S46, and S13 to S18 of FIG. Is done. The difference from the first embodiment is that in steps S45 and S46, the left and right half-value gradations Kr and Kl in the histogram of each partial image of the target coin and the master coins feature values Kr and Kl in accordance with the difference in feature amount. Are compared (step S45), and if any feature quantity does not match (NO in step S46), it is determined that the coin is not a genuine coin and the coin is discharged (step S17). If the amounts match (YES in steps S46 and S13), it is determined that the verification is successful and the coin is determined to be a genuine coin (step S18).

なお、実施例2の場合にも、コイン画像を複数の部分画像に分割する際には、各領域の間に隙間を設けるようにすると、コインの判別精度が向上する。   In the second embodiment as well, when a coin image is divided into a plurality of partial images, if a gap is provided between each region, the coin discrimination accuracy is improved.

つぎに、本発明の実施例3によるコイン判別装置を説明する。これは、部分画像のヒストグラムにおけるピーク位置での階調度どうしの偏差と、ピーク値のα倍(α<1)の位置での階調度どうしの偏差を特徴量として用いたものである。実施例3のコイン判別装置における、コイン通路1や照明装置3、撮像装置4などの構造は実施例1と同じである。従って、以下の実施例3の説明においては、実施例1と同一構成部分については、実施例1と同一の符号を用いることによって詳細は省略し、実施例1と異なる点のみについて説明する。   Next, a coin discrimination device according to Embodiment 3 of the present invention will be described. This uses the deviation between the gradation levels at the peak position in the histogram of the partial image and the deviation between the gradation degrees at the position α times the peak value (α <1) as the feature amount. In the coin discriminating apparatus according to the third embodiment, the structures of the coin passage 1, the illumination device 3, the imaging device 4, and the like are the same as those in the first embodiment. Therefore, in the following description of the third embodiment, the same components as those in the first embodiment will be omitted by using the same reference numerals as those in the first embodiment, and only differences from the first embodiment will be described.

図23〜図26は、実施例3における対象コインの真偽を判別するための手順を表したフローチャートである。また、図27〜図29はその説明図である。実施例3のコイン判別装置においても、照明装置3によりコイン2を照明して撮像装置4によりコイン2の画像が撮影され、その画像データは撮像素子8からコイン判別処理部16に送信される。コイン2の多値画像データは、コイン判別処理部16に読み込まれる(ステップS1)。読み込まれたコイン2のデジタル多値画像データは、コイン形状抽出部17によってコイン画像26と背景画像28とを分別され、コイン画像26を抽出される(ステップS1)。ついで、コイン中心検出部18により、抽出したコイン画像26の中心を検出される(ステップS2)。コイン画像26の中心が検出されたら、画像シフト部19により、コイン画像26の中心が画面27の中心と一致するように画面27内でコイン画像26が移動させられる(ステップS3)。   23 to 26 are flowcharts showing a procedure for determining whether the target coin is true or false in the third embodiment. FIGS. 27 to 29 are explanatory diagrams thereof. Also in the coin discriminating apparatus of the third embodiment, the coin 2 is illuminated by the illumination device 3 and an image of the coin 2 is photographed by the imaging device 4, and the image data is transmitted from the image sensor 8 to the coin discrimination processing unit 16. The multivalued image data of the coin 2 is read into the coin discrimination processing unit 16 (step S1). The digital multi-valued image data of the coin 2 that has been read is separated into a coin image 26 and a background image 28 by the coin shape extraction unit 17, and the coin image 26 is extracted (step S1). Next, the center of the extracted coin image 26 is detected by the coin center detection unit 18 (step S2). When the center of the coin image 26 is detected, the image shift unit 19 moves the coin image 26 within the screen 27 so that the center of the coin image 26 coincides with the center of the screen 27 (step S3).

コイン画像26が画面27の中心に移動したら、画像分割処理部20によりコイン画像26は円形又は円環状をした複数の領域に分割される(ステップS4〜S6)。例えば図27では、コイン画像26を1つの円形の部分画像41と5つの円環状をした部分画像42〜46に分割している。ついで、分割された部分画像41〜46は、ヒストグラム生成部21によってヒストグラム化処理され、各部分画像41〜46の濃度ヒストグラムが生成される(ステップS7)。こうしてヒストグラム化された各部分画像41〜46のヒストグラムは、例えば図28に示すヒストグラム41A〜46Aのようになる。ここまでの処理は、実施例1の場合と同様である。   When the coin image 26 moves to the center of the screen 27, the image division processing unit 20 divides the coin image 26 into a plurality of circular or annular regions (steps S4 to S6). For example, in FIG. 27, the coin image 26 is divided into one circular partial image 41 and five circular partial images 42 to 46. Next, the divided partial images 41 to 46 are processed into a histogram by the histogram generation unit 21, and density histograms of the partial images 41 to 46 are generated (step S7). The histograms of the partial images 41 to 46 thus formed into histograms are, for example, histograms 41A to 46A shown in FIG. The processing so far is the same as that in the first embodiment.

次に、特徴量抽出部22により特徴量が抽出される(ステップS51)。図26は実施例3の場合における特徴量抽出の過程を説明するフローチャートである。実施例3の場合には、まず各ヒストグラム41A〜46Aの正規化を行なう(ステップS52)。そして、正規化されたヒストグラムのうちいずれか一つのヒストグラムを基準ヒストグラムとする。図29は正規化されたヒストグラムのうち2つのヒストグラム41A、42Aだけを表わしており、中央の円環状をした部分画像41から得たヒストグラム41Aを基準ヒストグラムとしている。   Next, feature amounts are extracted by the feature amount extraction unit 22 (step S51). FIG. 26 is a flowchart for explaining the feature extraction process in the third embodiment. In the case of the third embodiment, the histograms 41A to 46A are first normalized (step S52). Then, any one of the normalized histograms is set as a reference histogram. FIG. 29 shows only two histograms 41A and 42A among the normalized histograms, and the histogram 41A obtained from the partial image 41 having a central annular shape is used as a reference histogram.

ついで、ヒストグラム41Aについて、ピーク位置の階調度Kpを検出し(ステップS53)、ピーク値Npのα倍の高さ(画素数)となる右側の位置の階調度Krと左側の位置の階調度Klとを求める(ステップS54、S55)。同様にして、他のヒストグラム42A〜46Aについても、ピーク位置の階調度Kp´、…を検出し(ステップS53)、ピーク値Npのα倍の高さとなる右側の位置の階調度Kr´、…と左側の位置の階調度Kl´、…とを求める(ステップS54、S55)。   Next, with respect to the histogram 41A, the gradation Kp at the peak position is detected (step S53), and the gradation Kr at the right position and the gradation Kl at the left position that are α times the height (number of pixels) of the peak value Np. (Steps S54 and S55). Similarly, with respect to the other histograms 42A to 46A, the gradation degrees Kp ′,... At the peak positions are detected (step S53), and the gradation degrees Kr ′,. And the gradation degree Kl ′,... At the left position are obtained (steps S54 and S55).

こうしてすべてのヒストグラム41A〜46Aについて、ピーク位置の階調度Kp、Kp´、…と高さがα×Np(以下、閾値と呼ぶ。)の位置における右側と左側の階調度Kr、Kr´、…;Kl、Kl´、…とを求め終わったら(ステップS56でYESの場合)、図29に示すように、ヒストグラム41Aを基準として、基準ヒストグラム41Aのピーク位置Kpから他のヒストグラム42Aのピーク位置Kp´までの偏差Gp=Kp´−Kpを求め(ステップS57)、ついで基準ヒストグラム41Aの閾値における右側の階調度Krから他のヒストグラム42Aの閾値における右側の階調度Kr´までの偏差Gr=Kr´−Krを求め(ステップS58)、さらに基準ヒストグラム41Aの閾値における左側の階調度Klから他のヒストグラム42Aの閾値における右側の階調度Kl´までの偏差Gl=Kl´−Klを求める(ステップS59)。   Thus, for all the histograms 41A to 46A, the gradations Kp, Kp ′,... At the peak positions and the gradations Kr, Kr ′,... On the right and left sides at the positions where the height is α × Np (hereinafter referred to as a threshold). When K1, Kl ′,... Have been obtained (in the case of YES in step S56), as shown in FIG. 29, with reference to the histogram 41A, the peak position Kp of the other histogram 42A from the peak position Kp of the reference histogram 41A Deviation Gp = Kp′−Kp up to “′ (step S57), and then deviation Gr = Kr ′ from the right gradation Kr ′ at the threshold of the reference histogram 41A to the right gradation Kr ′ at the threshold of the other histogram 42A. -Kr is obtained (step S58), and another histogram is obtained from the left gradation degree K1 in the threshold value of the reference histogram 41A. A deviation Gl = Kl'-Kl to right gradient Kl' in ram 42A threshold (step S59).

こうして基準ヒストグラム41A以外のすべてのヒストグラム42A〜46Aについて、それぞれのピーク位置の偏差と閾値における右側の階調度と左側の階調度の各偏差を求め終わったら(ステップS60)、特徴量の抽出処理を終了する。   In this way, for all the histograms 42A to 46A other than the reference histogram 41A, when the deviations of the respective peak positions and the deviations of the right gradation and the left gradation in the threshold values have been obtained (step S60), the feature amount extraction processing is performed. finish.

特徴量の抽出が終了したら、基準ヒストグラム41Aのピーク位置Kpをマスターコインデータ記憶部23に記憶されているマスターコインの基準ヒストグラムのピーク位置と比較照合する(ステップS61)。そして、この照合の結果、基準ヒストグラム41Aのピーク位置Kpがマスターコインの基準ヒストグラムのピーク位置と一致しない場合(ステップS62でNOの場合)には、マスターコインデータ記憶部23にマスターコインのデータが2面について存在しているか否かを調べ(ステップS63)、2面のデータが存在していなければ(ステップS63でNOの場合)、コイン2はマスターコインと不一致であると判断し、コイン2を返却口に排出する(ステップS78)。   When the feature amount extraction is completed, the peak position Kp of the reference histogram 41A is compared with the peak position of the master coin reference histogram stored in the master coin data storage unit 23 (step S61). If the peak position Kp of the reference histogram 41A does not coincide with the peak position of the reference histogram of the master coin as a result of this collation (NO in step S62), the master coin data is stored in the master coin data storage unit 23. It is checked whether or not two sides exist (step S63). If the two side data does not exist (NO in step S63), it is determined that the coin 2 does not match the master coin, and the coin 2 Is discharged to the return port (step S78).

また、マスターコインのデータが2面について存在している場合(ステップS63でYESの場合)には、第2の面についても照合する。すなわち、基準ヒストグラム41Aのピーク位置Kpと、マスターコインデータ記憶部23に記憶されているマスターコインの第2の面における基準ヒストグラムのピーク位置とを照合し(ステップS64)、コイン2のピーク位置Kpとマスターコインのピーク位置が一致するか否か判定する(ステップS65)。   Further, when master coin data exists for two sides (YES in step S63), the second side is also checked. That is, the peak position Kp of the reference histogram 41A is collated with the peak position of the reference histogram on the second surface of the master coin stored in the master coin data storage unit 23 (step S64), and the peak position Kp of the coin 2 is determined. And whether or not the peak positions of the master coins coincide with each other (step S65).

基準ヒストグラム41Aのピーク位置Kpがマスターコインの第2の面における基準ヒストグラムのピーク位置と一致しない場合(ステップS65においてNOの場合)には、コイン2は真正のコインでないと判断し、コイン2を返却口に排出する(ステップS78)。   If the peak position Kp of the reference histogram 41A does not match the peak position of the reference histogram on the second surface of the master coin (NO in step S65), it is determined that the coin 2 is not a genuine coin, and the coin 2 is It discharges to the return port (step S78).

これに対し、ステップS62又はS65において、基準ヒストグラム41Aのピーク位置Kpがマスターコインの第1又は第2の面における基準ヒストグラムのピーク位置と一致した場合には、さらに基準ヒストグラム41Aの閾値における右側での階調度Krとマスターコインデータ記憶部23に記憶されているマスターコインの基準ヒストグラムの閾値における右側での階調度とを照合する(ステップS66)。また、基準ヒストグラム41Aの閾値における左側での階調度Klとマスターコインデータ記憶部23に記憶されているマスターコインの基準ヒストグラムの閾値における左側での階調度とを照合する(ステップS68)。ただし、ステップS62で基準ヒストグラム41Aのピーク位置がマスターコインの第1の面のピーク位置と一致した場合には、ステップS66及びS68で照合するマスターコインの閾値における右側及び左側での階調度も第1の面におけるものである。また、ステップS65で基準ヒストグラム41Aのピーク位置がマスターコインの第2の面のピーク位置と一致した場合には、ステップS66及びS68で照合するマスターコインの閾値における右側及び左側での階調度も第2の面におけるものである。   On the other hand, in step S62 or S65, when the peak position Kp of the reference histogram 41A coincides with the peak position of the reference histogram on the first or second surface of the master coin, further on the right side of the threshold value of the reference histogram 41A. Is compared with the gradation degree on the right side of the threshold value of the reference histogram of the master coin stored in the master coin data storage unit 23 (step S66). Further, the gradation degree K1 on the left side of the threshold value of the reference histogram 41A is compared with the gradation degree on the left side of the threshold value of the reference histogram of the master coin stored in the master coin data storage unit 23 (step S68). However, if the peak position of the reference histogram 41A coincides with the peak position of the first face of the master coin in step S62, the gradation levels on the right and left sides of the threshold value of the master coin to be collated in steps S66 and S68 are also the same. In the first aspect. In addition, when the peak position of the reference histogram 41A matches the peak position of the second face of the master coin in step S65, the gradation levels on the right and left sides of the threshold value of the master coin to be collated in steps S66 and S68 are also set. This is in the second aspect.

ステップS66における照合の結果、閾値における右側での階調度Krが一致しない場合(ステップS67でNOの場合)、あるいはステップS68における照合の結果、閾値における左側での階調度Klが一致しない場合(ステップS69でNOの場合)には、コイン2はマスターコインと一致せず、真正のコインでないと判断されて返却口から排出される(ステップS78)。   As a result of the collation in step S66, the gradation degree Kr on the right side of the threshold value does not match (in the case of NO in step S67), or as a result of the collation in step S68, the gradation degree Kl on the left side of the threshold value does not match (step In the case of NO in S69, the coin 2 does not match the master coin and is determined not to be a genuine coin, and is discharged from the return slot (step S78).

一方、ステップS66及びS68における照合の結果、閾値における右側での階調度と左側での階調度とがそれぞれ一致した場合(ステップS67及びS69でYESの場合)には、ヒストグラム41Aを基準とするピーク位置等の偏差とマスターコインにおける基準ヒストグラムを基準とするピーク位置等の偏差とを比較照合する(ステップS70〜S76)。すなわち、ステップS51で求めたヒストグラム42Aと基準ヒストグラム41Aとのピーク位置の偏差Gp(以下、ピーク位置偏差という。)をマスターコインにおけるヒストグラム42Aのピーク位置偏差と比較照合する(ステップS70)。また、ステップS51で求めたヒストグラム42Aと基準ヒストグラム41Aとの閾値における左側の階調度の偏差Gr(以下、左側偏差という。)をマスターコインにおけるヒストグラム42Aの左側偏差と比較照合する(ステップS72)。さらに、ステップS51で求めたヒストグラム42Aと基準ヒストグラム41Aとの閾値における右側の階調度の偏差Gl(以下、右側偏差という。)をマスターコインにおけるヒストグラム42Aの右側偏差と比較照合する(ステップS74)。   On the other hand, as a result of the collation in steps S66 and S68, when the gradient on the right side and the gradient on the left side match in the threshold value (YES in steps S67 and S69), the peak based on the histogram 41A is used. The deviation of the position and the like and the deviation of the peak position and the like based on the reference histogram in the master coin are compared and collated (steps S70 to S76). That is, the peak position deviation Gp (hereinafter referred to as peak position deviation) between the histogram 42A obtained in step S51 and the reference histogram 41A is compared with the peak position deviation of the histogram 42A in the master coin (step S70). Further, the deviation Gr of the left gradation in the threshold values of the histogram 42A and the reference histogram 41A obtained in step S51 (hereinafter referred to as the left deviation) is compared with the left deviation of the histogram 42A in the master coin (step S72). Further, the deviation Gl of the right gradation (hereinafter referred to as the right deviation) in the threshold values of the histogram 42A and the reference histogram 41A obtained in step S51 is compared with the right deviation of the histogram 42A in the master coin (step S74).

同様に、他のヒストグラム43A〜46Aについても、ピーク位置偏差、右側偏差及び左側偏差をそれぞれマスターコインのピーク位置偏差、右側偏差及び左側偏差と比較照合する(ステップS70、S72、S74)。   Similarly, with respect to the other histograms 43A to 46A, the peak position deviation, the right side deviation, and the left side deviation are compared with the peak position deviation, right side deviation, and left side deviation of the master coin, respectively (steps S70, S72, S74).

こうして基準ヒストグラム41Aを基準とするヒストグラム42A〜46Aのピーク位置偏差、右側偏差及び左側偏差をそれぞれステップS70、S72及びS74でマスターコインのものと比較照合した結果、これらの特徴量のいずれかがマスターコインの特徴量と一致しない場合(ステップS71、S73又はS75のいずれかでNOの場合)には、コイン2は返却口に排出される(ステップS78)。   Thus, as a result of comparing and comparing the peak position deviation, right side deviation, and left side deviation of the histograms 42A to 46A with the reference histogram 41A as the reference in step S70, S72, and S74, respectively, one of these feature quantities is the master. If it does not match the feature amount of the coin (NO in any of steps S71, S73, or S75), the coin 2 is discharged into the return slot (step S78).

また、すべてのヒストグラム42A〜46Aについて比較照合を行った結果(ステップS76でYESとなった後)、いずれのヒストグラム42A〜46Aについてもその特徴量がマスターコインの特徴量と一致した場合(ステップS71、S73及びS75のいずれでもYESの場合)には、当該コイン2は真正のコインであると判定し、出力部25から真正のコインであることを伝える信号を出力する。   In addition, as a result of comparison and collation for all the histograms 42A to 46A (after YES in step S76), the feature amount of any histogram 42A to 46A matches the feature amount of the master coin (step S71). , S73 and S75 are YES), the coin 2 is determined to be a genuine coin, and a signal indicating that it is a genuine coin is output from the output unit 25.

なお、ステップS62、S66、S68、S70、S72、S74における比較照合でピーク位置や偏差等の特徴量が一致するとは、完全に一致することを意味するものではなく、コイン2の特徴量が、マスターコインの特徴量を中心とする所定の範囲内に納まっていればよい。照明装置3の経時的な照度の変化などを考慮する必要があるからである。また、マスターコインデータ記憶部23に格納されているマスターコインの特徴量は、複数枚のマスターコインから取得された特徴量から生成したものであってもよい。例えば、複数枚のマスターコインから得た右側偏差や左側偏差の平均値をマスターコインの右側偏差や左側偏差としてもよく、あるいは、複数枚のマスターコインから得た右側偏差や左側偏差のうち最大値、または最小値をマスターコインの右側偏差や左側偏差としてもよい。   It should be noted that the fact that the feature values such as the peak position and the deviation match in the comparison and collation in steps S62, S66, S68, S70, S72, and S74 does not mean that the feature values of the coin 2 match. It suffices if it falls within a predetermined range centering on the feature amount of the master coin. This is because it is necessary to consider changes in illuminance over time of the lighting device 3. The feature amount of the master coin stored in the master coin data storage unit 23 may be generated from the feature amount acquired from a plurality of master coins. For example, the average value of the right side deviation and left side deviation obtained from multiple master coins may be used as the right side deviation and left side deviation of the master coin, or the maximum value of right side deviation and left side deviation obtained from multiple master coins. Alternatively, the minimum value may be the right deviation or left deviation of the master coin.

実施例3のような特徴量を用いれば、コイン判別装置によるコインの真偽判別精度をより高くすることができた。また、この実施例でも、各部分画像間に隙間をあけることにより、判別精度をより向上させることができる。   If the feature amount as in the third embodiment is used, it is possible to further improve the accuracy of coin authenticity by the coin discriminating apparatus. Also in this embodiment, the discrimination accuracy can be further improved by providing a gap between the partial images.

また、実施例1〜3に記載したコイン判別方法を組み合わせれば、よりコイン判別精度を高くすることができる。   Further, by combining the coin discrimination methods described in the first to third embodiments, the coin discrimination accuracy can be further increased.

ゲーム機や自動販売機、券売機などの内部に設けられたコイン通路の一部を示す斜視図である。It is a perspective view which shows a part of coin passage provided in the inside of a game machine, a vending machine, a ticket machine, etc. コイン通路に対向させて配置された、本発明の一実施例によるコイン判別装置の照明装置及び撮像装置を示す側面図である。It is a side view which shows the illuminating device and imaging device of the coin discrimination device by one Example of this invention arrange | positioned facing a coin channel | path. 同上の照明装置及び撮像装置を示す斜視図である。It is a perspective view which shows an illuminating device and imaging device same as the above. 図3の照明装置及び撮像装置の断面図である。It is sectional drawing of the illuminating device and imaging device of FIG. 図3の照明装置及び撮像装置によりコイン通路を通過するコインの画像を撮影する様子を示す概略図である。It is the schematic which shows a mode that the image of the coin which passes a coin passage is image | photographed with the illuminating device and imaging device of FIG. 本発明のコイン判別装置を構成するコイン判別処理部のブロック図である。It is a block diagram of the coin discrimination | determination process part which comprises the coin discrimination | determination apparatus of this invention. コイン判別処理部により対象コインの真偽を判別するための手順を表したフローチャートである。It is a flowchart showing the procedure for discriminating the authenticity of the target coin by the coin discrimination processing unit. 図7のフローチャートの工程に続く工程を表わしたフローチャートである。It is a flowchart showing the process following the process of the flowchart of FIG. 図8中のコイン画像の特徴量を抽出する工程を表わしたフローチャートである。It is a flowchart showing the process of extracting the feature-value of the coin image in FIG. (a)は画面の中心からずれたコイン画像を示す図、(b)は画面の中心へ移動させられたコイン画像を示す図である。(A) is a figure which shows the coin image which shifted | deviated from the center of the screen, (b) is a figure which shows the coin image moved to the center of a screen. コイン画像を円形をした第1領域と円環状をした第2及び第3領域に切り分けた状態を示す図である。It is a figure which shows the state which divided | segmented the coin image into the 1st area | region which carried out circular, and the 2nd and 3rd area | region which carried out the annular | circular shape. (a)(b)は、コイン画像を各部分画像に分割し、ヒストグラム化処理する実際の方法を説明する図である。(A) (b) is a figure explaining the actual method which divides | segments a coin image into each partial image and carries out a histogram-ized process. (a)は濃度ヒストグラムを正規化する処理を説明する図であり、(b)は一定閾値以下の濃度ヒストグラムを切り捨てる処理を説明する図である。(A) is a figure explaining the process which normalizes a density histogram, (b) is a figure explaining the process which truncates the density histogram below a fixed threshold value. マスターコインの特徴量を登録するための処理を示すフローチャートである。It is a flowchart which shows the process for registering the feature-value of a master coin. (a)(b)は、複数のピークを有する濃度ヒストグラムと閾値との関係を説明する図である。(A) (b) is a figure explaining the relationship between the density histogram which has a some peak, and a threshold value. コイン画像を部分画像に分割する際の、異なる分割の仕方を説明する図である。It is a figure explaining the method of different division | segmentation at the time of dividing | segmenting a coin image into a partial image. (a)は円形状の部分画像を示す概略図、(b)は(a)の部分画像から得た濃度ヒストグラムを示す図、(c)は円形状の部分画像と隙間をあけることなく得られた円環状の部分画像を示す概略図、(d)は(c)の部分画像から得た濃度ヒストグラムを示す図である。(A) is a schematic diagram showing a circular partial image, (b) is a diagram showing a density histogram obtained from the partial image of (a), and (c) is obtained without leaving a gap with the circular partial image. FIG. 4D is a schematic diagram showing an annular partial image, and FIG. 4D is a diagram showing a density histogram obtained from the partial image of FIG. (a)は円形状の部分画像を示す概略図、(b)は(a)の部分画像から得た濃度ヒストグラムを示す図、(c)は円形状の部分画像と隙間をあけて得られた円環状の部分画像を示す概略図、(d)は(c)の部分画像から得た濃度ヒストグラムを示す図である。(A) is a schematic diagram showing a circular partial image, (b) is a diagram showing a density histogram obtained from the partial image of (a), and (c) is obtained with a gap from the circular partial image. Schematic diagram showing an annular partial image, (d) is a diagram showing a density histogram obtained from the partial image of (c). 実施例2において、コイン判別処理部により対象コインの真偽を判別するための手順を表したフローチャートである。In Example 2, it is the flowchart showing the procedure for discriminating the authenticity of a target coin by a coin discrimination | determination process part. 図19のフローチャートの工程に続く工程を表わしたフローチャートである。FIG. 20 is a flowchart showing a process that follows the process of the flowchart of FIG. 19. FIG. 実施例2における部分画像の特徴量を抽出するための手順を示すフローチャートである。10 is a flowchart illustrating a procedure for extracting a feature amount of a partial image in the second embodiment. 同上の特徴量を説明する図である。It is a figure explaining the feature-value same as the above. 実施例3において、コイン判別処理部により対象コインの真偽を判別するための手順を表したフローチャートである。In Example 3, it is the flowchart showing the procedure for discriminating the authenticity of a target coin by a coin discrimination | determination process part. 図23のフローチャートの工程に続く工程を表わしたフローチャートである。It is a flowchart showing the process following the process of the flowchart of FIG. 図24のフローチャートの工程に続く工程を表わしたフローチャートである。It is a flowchart showing the process following the process of the flowchart of FIG. 実施例3における部分画像の特徴量を抽出するための手順を示すフローチャートである。10 is a flowchart illustrating a procedure for extracting a feature amount of a partial image in the third embodiment. コイン画像を複数の部分画像に分割する様子を表わした説明図である。It is explanatory drawing showing a mode that a coin image is divided | segmented into a some partial image. 図27のように分割された各部分画像のヒストグラムを表わした図である。It is a figure showing the histogram of each partial image divided | segmented like FIG. 基準となるヒストグラムの特徴量、および基準となるヒストグラムと基準以外のヒストグラムとの間で定まる特徴量を示す説明図である。It is explanatory drawing which shows the feature-value determined between the feature-value of the histogram used as a reference | standard, and the histogram used as a reference | standard, and a histogram other than a reference | standard.

符号の説明Explanation of symbols

1 コイン通路転動路
2 コイン
3 照明装置
4 撮像装置
6 光源
8 撮像素子
10 結像レンズ
13 受光素子
14 投光素子
16 コイン判別処理部
17 コイン形状抽出部
18 コイン中心検出部
19 画像シフト部
20 画像分割処理部
21 ヒストグラム生成部
22 特徴量抽出部
23 マスターコインデータ記憶部
24 判定処理部
25 出力部
26 コイン画像
27 画面
28 背景画像
DESCRIPTION OF SYMBOLS 1 Coin path rolling path 2 Coin 3 Illuminating device 4 Imaging device 6 Light source 8 Imaging element 10 Imaging lens 13 Light receiving element 14 Light projecting element 16 Coin discrimination | determination processing part 17 Coin shape extraction part 18 Coin center detection part 19 Image shift part 20 Image division processing unit 21 Histogram generation unit 22 Feature amount extraction unit 23 Master coin data storage unit 24 Judgment processing unit 25 Output unit 26 Coin image 27 Screen 28 Background image

Claims (9)

対象コインの真偽を画像に基づいて判別するためのコイン判別装置であって、
マスターコインの濃度ヒストグラムから得た特徴量を保存した記憶手段と、
対象コインの画像を取得するための撮像手段と、
前記画像から濃度ヒストグラムを生成するヒストグラム生成手段と、
前記ヒストグラム生成手段によって生成された濃度ヒストグラムから、対象コインの特徴量を抽出する特徴量抽出手段と、
前記記憶手段に保存されたマスターコインの特徴量と、前記特徴量抽出手段により抽出された対象コインの特徴量とを比較することによって対象コインの真偽を判定する手段と、
を備えたコイン判別装置。
A coin discriminating device for discriminating the authenticity of a target coin based on an image,
Storage means for storing feature values obtained from the density histogram of the master coin;
Imaging means for acquiring an image of the target coin;
Histogram generating means for generating a density histogram from the image;
Feature amount extraction means for extracting the feature amount of the target coin from the density histogram generated by the histogram generation means;
Means for determining the authenticity of the target coin by comparing the feature quantity of the master coin stored in the storage means with the feature quantity of the target coin extracted by the feature quantity extraction means;
A coin discrimination device.
前記撮像手段により取得された対象コインの画像を複数の円環状又は円形の領域に分割する画像分割処理手段を備え、
前記ヒストグラム生成手段は、前記画像分割処理手段により分割された各分割画像毎の濃度ヒストグラムを生成し、
前記特徴量抽出手段は、各分割画像毎の濃度ヒストグラムから各々の特徴量を抽出し、
前記判定手段は、対象コインの各分割画像の濃度ヒストグラムから抽出された各特徴量と、マスターコインの対応する特徴量とを比較することを特徴とする、請求項1に記載のコイン判別装置。
Image division processing means for dividing the image of the target coin acquired by the imaging means into a plurality of annular or circular regions;
The histogram generation means generates a density histogram for each divided image divided by the image division processing means,
The feature amount extraction means extracts each feature amount from a density histogram for each divided image,
The coin determination apparatus according to claim 1, wherein the determination unit compares each feature amount extracted from the density histogram of each divided image of the target coin with a corresponding feature amount of the master coin.
前記画像分割処理手段は、各分割画像間に隙間をあけて対象コインの画像を複数の円環状又は円形の領域に分割することを特徴とする、請求項2に記載のコイン判別装置。   3. The coin discriminating apparatus according to claim 2, wherein the image division processing unit divides the image of the target coin into a plurality of annular or circular regions with a gap between the divided images. 前記マスターコインの特徴量及び前記対象コインの特徴量は、前記各コインの濃度ヒストグラムにおける画素数が極大のときの階調度の値であることを特徴とする、請求項1に記載のコイン判別装置。   2. The coin discriminating apparatus according to claim 1, wherein the feature amount of the master coin and the feature amount of the target coin are values of gradation when the number of pixels in the density histogram of each coin is maximum. . 前記マスターコインの特徴量及び前記対象コインの特徴量は、前記各コインの濃度ヒストグラムにおける画素数が極大のときの階調度の値と、画素数が所定レベルであるときの階調度の値との差であることを特徴とする、請求項1に記載のコイン判別装置。   The feature amount of the master coin and the feature amount of the target coin are a gradation value when the number of pixels in the density histogram of each coin is maximum and a gradation value when the number of pixels is a predetermined level. The coin discriminating apparatus according to claim 1, wherein the coin discriminating apparatus is a difference. 前記マスターコインの特徴量及び前記対象コインの特徴量は、分割された画像のそれぞれのヒストグラムどうしのピーク位置の偏差であることを特徴とする、請求項2に記載のコイン判別装置。   3. The coin discriminating apparatus according to claim 2, wherein the feature amount of the master coin and the feature amount of the target coin are deviations of peak positions of respective histograms of the divided images. 前記マスターコインの特徴量及び前記対象コインの特徴量は、分割された画像のそれぞれのヒストグラムにおいて、画素数が所定値となる階調度どうしの偏差であることを特徴とする、請求項2に記載のコイン判別装置。   The feature amount of the master coin and the feature amount of the target coin are deviations between gradations at which the number of pixels becomes a predetermined value in each histogram of the divided images. Coin discrimination device. マスターコインの濃度ヒストグラムから得た特徴量を予め記憶手段に記憶させておき、
撮像手段を用いて対象コインの画像を取得するステップと、
前記画像から濃度ヒストグラムを生成するステップと、
濃度ヒストグラムから、対象コインの特徴量を抽出するステップと、
前記記憶手段に保存されたマスターコインの特徴量と、前記対象コインの特徴量とを比較するステップと、
により対象コインの真偽を判定することを特徴とするコイン判別方法。
The feature value obtained from the density histogram of the master coin is stored in advance in the storage means,
Acquiring an image of the target coin using an imaging means;
Generating a density histogram from the image;
Extracting a feature amount of the target coin from the density histogram;
Comparing the feature amount of the master coin stored in the storage means with the feature amount of the target coin;
A coin discriminating method comprising: determining whether the target coin is true or false.
マスターコインの濃度ヒストグラムから得た特徴量を記憶させるステップと、
撮像手段を用いて対象コインの画像を取得するステップと、
前記画像から濃度ヒストグラムを生成するステップと、
濃度ヒストグラムから、対象コインの特徴量を抽出するステップと、
前記記憶手段に保存されたマスターコインの特徴量と、前記対象コインの特徴量とを比較するステップと、
を記録された記憶媒体。
Storing feature values obtained from the density histogram of the master coin;
Acquiring an image of the target coin using an imaging means;
Generating a density histogram from the image;
Extracting a feature amount of the target coin from the density histogram;
Comparing the feature amount of the master coin stored in the storage means with the feature amount of the target coin;
The recorded storage medium.
JP2005112882A 2005-04-08 2005-04-08 Coin discriminating device, coin discriminating method, and storage medium Pending JP2006293651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005112882A JP2006293651A (en) 2005-04-08 2005-04-08 Coin discriminating device, coin discriminating method, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005112882A JP2006293651A (en) 2005-04-08 2005-04-08 Coin discriminating device, coin discriminating method, and storage medium

Publications (1)

Publication Number Publication Date
JP2006293651A true JP2006293651A (en) 2006-10-26

Family

ID=37414170

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005112882A Pending JP2006293651A (en) 2005-04-08 2005-04-08 Coin discriminating device, coin discriminating method, and storage medium

Country Status (1)

Country Link
JP (1) JP2006293651A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016131685A (en) * 2015-01-19 2016-07-25 株式会社ユニバーサルエンターテインメント Game machine
JP2016131686A (en) * 2015-01-19 2016-07-25 株式会社ユニバーサルエンターテインメント Game machine
JP2016133949A (en) * 2015-01-19 2016-07-25 株式会社メガチップス Determination device, control program and determination method
JP2016131684A (en) * 2015-01-19 2016-07-25 株式会社ユニバーサルエンターテインメント Game machine
JP2016131687A (en) * 2015-01-19 2016-07-25 株式会社ユニバーサルエンターテインメント Game machine
JP2017094193A (en) * 2017-02-03 2017-06-01 株式会社ユニバーサルエンターテインメント Game machine and game medium discrimination device
JP2017119145A (en) * 2017-02-03 2017-07-06 株式会社ユニバーサルエンターテインメント Game machine and game medium discrimination device
JP2018043069A (en) * 2017-12-21 2018-03-22 株式会社ユニバーサルエンターテインメント Game machine and game medium discrimination device
JP2018043070A (en) * 2017-12-21 2018-03-22 株式会社ユニバーサルエンターテインメント Game machine and game medium discrimination device
WO2023037955A1 (en) * 2021-09-08 2023-03-16 グローリー株式会社 Coin identification device, coin processing device, and coin identification method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016131685A (en) * 2015-01-19 2016-07-25 株式会社ユニバーサルエンターテインメント Game machine
JP2016131686A (en) * 2015-01-19 2016-07-25 株式会社ユニバーサルエンターテインメント Game machine
JP2016133949A (en) * 2015-01-19 2016-07-25 株式会社メガチップス Determination device, control program and determination method
JP2016131684A (en) * 2015-01-19 2016-07-25 株式会社ユニバーサルエンターテインメント Game machine
JP2016131687A (en) * 2015-01-19 2016-07-25 株式会社ユニバーサルエンターテインメント Game machine
JP2017094193A (en) * 2017-02-03 2017-06-01 株式会社ユニバーサルエンターテインメント Game machine and game medium discrimination device
JP2017119145A (en) * 2017-02-03 2017-07-06 株式会社ユニバーサルエンターテインメント Game machine and game medium discrimination device
JP2018043069A (en) * 2017-12-21 2018-03-22 株式会社ユニバーサルエンターテインメント Game machine and game medium discrimination device
JP2018043070A (en) * 2017-12-21 2018-03-22 株式会社ユニバーサルエンターテインメント Game machine and game medium discrimination device
WO2023037955A1 (en) * 2021-09-08 2023-03-16 グローリー株式会社 Coin identification device, coin processing device, and coin identification method

Similar Documents

Publication Publication Date Title
JP2006293651A (en) Coin discriminating device, coin discriminating method, and storage medium
JP3525360B2 (en) Coin discriminator
JP5838469B2 (en) Disc discrimination method, disc discrimination device, and disc sorting device
US7010154B2 (en) Money identifying method and device
US7044285B2 (en) Coin discriminating apparatus and coin discriminating method
JP5174917B2 (en) Coin damage determination apparatus and damage determination method
US7185750B2 (en) Coin distinguishing method and device
JP2000149019A (en) Circular object discriminating device
CN111462392A (en) Method and device for identifying paper money based on multispectral image similarity algorithm
CN106934914B (en) Method and device for anti-counterfeiting detection of paper money
CN108074321B (en) Image boundary extraction method and device for paper money
JP2005031901A (en) Coin identifying device and method
JP5953553B2 (en) Disc discrimination method, disc discrimination device, and disc sorting device
US20040124065A1 (en) Coin distinguishing method and device
CN108073921B (en) Method and device for identifying banknote information
JP4431690B2 (en) Disc-shaped object recognition system, apparatus and method
JP2002259977A (en) Reader
JP5953614B2 (en) Disc discrimination method, disc discrimination device, and disc sorting device
JP2003281593A (en) Coin discrimination device, coin registration device, coin determination device and coin determination method
KR20230119999A (en) System for banknote identifying based on YOLO algorithm and method thereof
JP2001331837A (en) Method and device for discriminating coin
JP2002358551A (en) Coin identification method and device
JPH08180235A (en) Coin identifying device
JP2003123114A (en) Coin discrimination device
CN113255641A (en) Image identification method and device, electronic equipment and storage medium