JP2019040449A - Disk discrimination device and disk discrimination method - Google Patents
Disk discrimination device and disk discrimination method Download PDFInfo
- Publication number
- JP2019040449A JP2019040449A JP2017162475A JP2017162475A JP2019040449A JP 2019040449 A JP2019040449 A JP 2019040449A JP 2017162475 A JP2017162475 A JP 2017162475A JP 2017162475 A JP2017162475 A JP 2017162475A JP 2019040449 A JP2019040449 A JP 2019040449A
- Authority
- JP
- Japan
- Prior art keywords
- image
- moire
- unit
- reference image
- disk
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012850 discrimination method Methods 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 claims description 182
- 230000008569 process Effects 0.000 claims description 161
- 238000011156 evaluation Methods 0.000 claims description 52
- 238000009826 distribution Methods 0.000 claims description 23
- 238000009795 derivation Methods 0.000 claims description 5
- 238000000926 separation method Methods 0.000 claims description 4
- 230000006866 deterioration Effects 0.000 abstract 1
- 238000012545 processing Methods 0.000 description 99
- 238000003860 storage Methods 0.000 description 97
- 238000003384 imaging method Methods 0.000 description 57
- 230000006870 function Effects 0.000 description 44
- 230000010354 integration Effects 0.000 description 32
- 238000007781 pre-processing Methods 0.000 description 30
- 230000032258 transport Effects 0.000 description 22
- 238000000605 extraction Methods 0.000 description 21
- 238000009792 diffusion process Methods 0.000 description 9
- 238000012937 correction Methods 0.000 description 7
- 239000011521 glass Substances 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 238000006073 displacement reaction Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012546 transfer Methods 0.000 description 4
- 230000002093 peripheral effect Effects 0.000 description 3
- 239000011347 resin Substances 0.000 description 3
- 229920005989 resin Polymers 0.000 description 3
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 2
- VYPSYNLAJGMNEJ-UHFFFAOYSA-N Silicium dioxide Chemical compound O=[Si]=O VYPSYNLAJGMNEJ-UHFFFAOYSA-N 0.000 description 2
- BQCADISMDOOEFD-UHFFFAOYSA-N Silver Chemical compound [Ag] BQCADISMDOOEFD-UHFFFAOYSA-N 0.000 description 2
- MCMNRKCIXSYSNV-UHFFFAOYSA-N Zirconium dioxide Chemical compound O=[Zr]=O MCMNRKCIXSYSNV-UHFFFAOYSA-N 0.000 description 2
- 229910052804 chromium Inorganic materials 0.000 description 2
- 239000011651 chromium Substances 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 229910052709 silver Inorganic materials 0.000 description 2
- 239000004332 silver Substances 0.000 description 2
- 239000000758 substrate Substances 0.000 description 2
- ATJFFYVFTNAWJD-UHFFFAOYSA-N Tin Chemical compound [Sn] ATJFFYVFTNAWJD-UHFFFAOYSA-N 0.000 description 1
- GWEVSGVZZGPLCZ-UHFFFAOYSA-N Titan oxide Chemical compound O=[Ti]=O GWEVSGVZZGPLCZ-UHFFFAOYSA-N 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 239000005388 borosilicate glass Substances 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000003989 dielectric material Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 229910052736 halogen Inorganic materials 0.000 description 1
- 150000002367 halogens Chemical class 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- ORUIBWPALBXDOA-UHFFFAOYSA-L magnesium fluoride Chemical compound [F-].[F-].[Mg+2] ORUIBWPALBXDOA-UHFFFAOYSA-L 0.000 description 1
- 229910001635 magnesium fluoride Inorganic materials 0.000 description 1
- 229910052751 metal Inorganic materials 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- ZKATWMILCYLAPD-UHFFFAOYSA-N niobium pentoxide Inorganic materials O=[Nb](=O)O[Nb](=O)=O ZKATWMILCYLAPD-UHFFFAOYSA-N 0.000 description 1
- URLJKFSTXLNXLG-UHFFFAOYSA-N niobium(5+);oxygen(2-) Chemical compound [O-2].[O-2].[O-2].[O-2].[O-2].[Nb+5].[Nb+5] URLJKFSTXLNXLG-UHFFFAOYSA-N 0.000 description 1
- 239000005304 optical glass Substances 0.000 description 1
- BPUBBGLMJRNUCC-UHFFFAOYSA-N oxygen(2-);tantalum(5+) Chemical compound [O-2].[O-2].[O-2].[O-2].[O-2].[Ta+5].[Ta+5] BPUBBGLMJRNUCC-UHFFFAOYSA-N 0.000 description 1
- 238000007747 plating Methods 0.000 description 1
- 239000010979 ruby Substances 0.000 description 1
- 229910001750 ruby Inorganic materials 0.000 description 1
- 229910052594 sapphire Inorganic materials 0.000 description 1
- 239000010980 sapphire Substances 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 229910052814 silicon oxide Inorganic materials 0.000 description 1
- PBCFLUZVCVVTBY-UHFFFAOYSA-N tantalum pentoxide Inorganic materials O=[Ta](=O)O[Ta](=O)=O PBCFLUZVCVVTBY-UHFFFAOYSA-N 0.000 description 1
- OGIDPMRJRNCKJF-UHFFFAOYSA-N titanium oxide Inorganic materials [Ti]=O OGIDPMRJRNCKJF-UHFFFAOYSA-N 0.000 description 1
Images
Landscapes
- Testing Of Coins (AREA)
Abstract
Description
本発明は、ディスク判別装置およびディスク判別方法に関し、詳しくは、ディスク表面の模様を撮像して判別対象ディスクの真偽を判別するディスク判別装置およびディスク判別方法に関する。なお、本明細書におけるディスクは、遊技機に用いられるメダルやトークン、通貨である硬貨をも含む概念である。 The present invention relates to a disc discriminating apparatus and disc discriminating method, and more particularly, to a disc discriminating apparatus and disc discriminating method for discriminating the authenticity of a disc to be discriminated by imaging a pattern on the disc surface. Note that the disc in this specification is a concept that includes medals and tokens used in gaming machines, and coins as currency.
メダルや硬貨の表面または裏面(本明細書では、総称として「表面」という)を撮像し、撮像画像を用いて当該表面の模様に基づき真偽を判別する技術は、従来から提案されており、例えば、特許文献1および特許文献2に開示されたものがある。
A technology for imaging the front or back surface of a medal or coin (generally referred to as “front surface” in this specification) and determining the authenticity based on the pattern of the surface using a captured image has been proposed in the past. For example, there are those disclosed in
一般に、メダルや硬貨などのディスクは、その表面に模様が形成されており、当該模様を撮像装置で撮像して画像を取得したしたときに、撮像装置の画素配列と模様とが干渉してモアレが発生する場合がある。ディスクを撮像する場合、ディスクの回転角度に応じてモアレの発生状態が変化する。換言すれば、ディスクの回転角度に応じて取得された画像における模様がモアレの影響を受けて変化する。そのため、判別対象ディスクの撮像画像を比較の基準となる画像(以下、基準画像という)と対比して相違度または一致度を導出する際に、モアレの影響によって相違度または一致度が変化し、所望の判別結果を得られないという問題がある。 In general, a disk such as a medal or a coin has a pattern formed on the surface thereof, and when an image is acquired by capturing the pattern with an imaging device, the pixel arrangement of the imaging device interferes with the pattern to cause moire. May occur. When a disk is imaged, the state of moiré changes according to the rotation angle of the disk. In other words, the pattern in the image acquired according to the rotation angle of the disk changes under the influence of moire. Therefore, when the difference or coincidence is derived by comparing the captured image of the disc to be discriminated with an image serving as a reference for comparison (hereinafter referred to as a reference image), the dissimilarity or coincidence changes due to the influence of moire, There is a problem that a desired discrimination result cannot be obtained.
特許文献1に開示された第1の従来技術では、画像センサの画素配列と模様との角度によりモアレが現れ反射率が著しく変化することを考慮し、回転角度に依存する特定部分を除いて基準画像との照合を行っている。
In the first prior art disclosed in
他方、特許文献2に開示された第2の従来技術では、年号部のようにコインの発行年度により文字が変更されて模様自体が一部変化する部分についてマスクをかけることにより、認識精度の低下要因を減少させている。
On the other hand, in the second prior art disclosed in
第1の従来技術では、除外する特定領域を設定する方法については具体的な開示がない。同様に、第2の従来技術では、マスクをかける部分を設定する方法については具体的な開示がない。一般に、メダルや硬貨などのディスクの模様は多種多様であり、ディスクの種類に応じてモアレが発生する領域(以下、モアレ領域という)を設定する必要がある。モアレ領域をモアレの発生状態を目視で確認しながら手動で設定することも可能であるものの、その場合には多大な時間と労力が必要になるという問題がある。また、目視で設定した場合には、設定精度にばらつきが生じるおそれがある。モアレ領域の設定精度にばらつきが生じると、メダルや硬貨などのディスクの真偽の判別精度が著しく低下するという問題がある。 In the first prior art, there is no specific disclosure about a method for setting a specific area to be excluded. Similarly, in the second prior art, there is no specific disclosure about a method for setting a portion to be masked. Generally, there are a wide variety of disc patterns such as medals and coins, and it is necessary to set an area where moire occurs (hereinafter referred to as a moire area) according to the type of the disk. Although it is possible to manually set the moire area while visually confirming the state of occurrence of moire, in that case, there is a problem that much time and labor are required. Moreover, when set visually, there exists a possibility that variation may arise in setting accuracy. When the setting accuracy of the moire area varies, there is a problem that the accuracy of discriminating the authenticity of discs such as medals and coins is significantly reduced.
本発明は、上記した問題点を鑑みてなされたものであり、その目的とするところは、ディスクのモアレ領域を自動的に設定することが可能で、モアレに起因するディスクの判別精度の低下を防止することが可能なディスク判別装置およびディスク判別方法を提供することにある。ここに明記しない本発明の他の目的は、以下の説明および添付図面から明らかである。 The present invention has been made in view of the above-described problems, and an object of the present invention is to automatically set the moiré area of the disc, and to reduce the disc discrimination accuracy caused by the moiré. An object of the present invention is to provide a disc discrimination device and a disc discrimination method that can be prevented. 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 apparatus and disc discriminating method according to the present invention are configured as follows.
(1)本発明のディスク判別装置は、判別対象ディスクに対応する被判別画像と基準画像とをモアレ領域を有効画素から除外して対比することにより前記判別対象ディスクの真偽を判別するディスク判別装置であって、真正ディスクとして判別すべき複数のディスクのそれぞれに対応する複数の入力画像を積算して前記基準画像を生成する基準画像生成部と、前記複数の入力画像のそれぞれと前記基準画像との対比結果に基づいて前記モアレ領域を有する複数のモアレ画像を前記複数の入力画像の中から選択するモアレ画像選択部と、前記複数のモアレ画像を積算した積算モアレ画像と前記基準画像との対比結果に基づき前記モアレ領域を有効画素から除外するマスク画像を生成するマスク画像生成部と、入力された前記被判別画像と前記基準画像とを前記マスク画像を適用して対比することにより前記判別対象ディスクの真偽を判別する判別部と、を備えるディスク判別装置である。 (1) The disc discriminating apparatus according to the present invention discriminates the authenticity of the disc to be discriminated by comparing the discriminated image corresponding to the disc to be discriminated with the reference image by excluding the moire area from the effective pixels. A reference image generation unit that generates a reference image by accumulating a plurality of input images corresponding to each of a plurality of discs to be determined as authentic discs, each of the plurality of input images, and the reference image A moire image selection unit that selects, from the plurality of input images, a plurality of moire images having the moire region based on the comparison result, an integrated moire image obtained by integrating the plurality of moire images, and the reference image A mask image generating unit that generates a mask image for excluding the moire region from effective pixels based on the comparison result, the input image to be discriminated, and the base A disc discrimination apparatus and a discrimination unit for discriminating the authenticity of the determination target disk by comparing the image by applying the mask image.
本発明のディスク判別装置は、基準画像を生成する基準画像生成部と、モアレ画像を入力画像の中から選択するモアレ画像選択部と、モアレ領域を有効画素から除外するマスク画像を生成するマスク画像生成部と、判別対象ディスクの真偽を判別する判別部とを有する。基準画像生成部は、真正ディスクとして判別すべき複数のディスクのそれぞれに対応する複数の入力画像を積算して基準画像を生成する。モアレ画像選択部は、複数の入力画像のそれぞれと基準画像との対比結果に基づいてモアレ領域を有する複数のモアレ画像を複数の入力画像の中から選択する。マスク画像生成部は、複数のモアレ画像を積算した積算モアレ画像と基準画像との対比結果に基づきモアレ領域を有効画素から除外するマスク画像を生成する。判別部は、判別対象ディスクに対応する被判別画像と基準画像とをマスク画像を適用して対比することにより判別対象ディスクの真偽を判別する。第1のディスク判別装置では、複数の入力画像の中から選択された複数のモアレ画像を積算した積算モアレ画像と基準画像との対比結果に基づいてマスク画像を生成する。そのため、ディスクのモアレ領域などを自動的に設定することが可能となる。また、判別対象ディスクに対応する被判別画像と基準画像とのそれぞれにマスク画像を適用してモアレ領域を有効画素から除外することにより、モアレに起因するディスクの判別精度の低下を防止することが可能となる。 The disc discriminating apparatus of the present invention includes a reference image generation unit that generates a reference image, a moire image selection unit that selects a moire image from an input image, and a mask image that generates a mask image that excludes a moire region from effective pixels. A generating unit; and a determining unit configured to determine the authenticity of the determination target disk. The reference image generating unit generates a reference image by integrating a plurality of input images corresponding to each of a plurality of discs to be determined as authentic discs. The moire image selection unit selects a plurality of moire images having a moire area from the plurality of input images based on a comparison result between each of the plurality of input images and the reference image. The mask image generation unit generates a mask image that excludes the moire area from the effective pixels based on a comparison result between the accumulated moire image obtained by integrating a plurality of moire images and the reference image. The discriminating unit discriminates the authenticity of the disc to be discriminated by comparing the discriminated image corresponding to the disc to be discriminated with the reference image by applying a mask image. In the first disc discrimination device, a mask image is generated based on a comparison result between an accumulated moire image obtained by integrating a plurality of moire images selected from a plurality of input images and a reference image. Therefore, it is possible to automatically set the moire area of the disc. Further, by applying a mask image to each of the discriminated image and the reference image corresponding to the disc to be discriminated and excluding the moire area from the effective pixels, it is possible to prevent the disc discrimination accuracy from being lowered due to moire. It becomes possible.
(2)本発明のディスク判別装置の好ましい例では、前記複数の入力画像のそれぞれについて前記基準画像に対するマッチングの評価値を導出する評価値導出部と、前記評価値導出部により導出された複数の前記評価値の度数分布から前記モアレ画像の判定閾値を設定する判定閾値設定部と、をさらに備え、前記モアレ画像選択部が、前記複数の入力画像の評価値のそれぞれについて前記判定閾値を基準に判定することにより前記モアレ画像を選択する。この場合、複数の入力画像の中からモアレ領域を有する複数のモアレ画像を自動的に選択することが可能となる利点がある。 (2) In a preferred example of the disc discriminating apparatus of the present invention, an evaluation value deriving unit for deriving an evaluation value of matching with respect to the reference image for each of the plurality of input images, and a plurality of values derived by the evaluation value deriving unit A determination threshold value setting unit that sets a determination threshold value of the moire image from the frequency distribution of the evaluation values, and the moire image selection unit uses the determination threshold value as a reference for each of the evaluation values of the plurality of input images. The moire image is selected by determining. In this case, there is an advantage that a plurality of moire images having a moire area can be automatically selected from a plurality of input images.
(3)本発明のディスク判別装置の他の好ましい例では、前記判定閾値設定部が、前記度数分布の平均値よりも前記評価値が高い側の前記度数分布に基づいて前記判定閾値を設定する。この場合、モアレの発生状態に応じた判定閾値の設定が可能となる利点がある。 (3) In another preferred example of the disk discriminating apparatus of the present invention, the determination threshold setting unit sets the determination threshold based on the frequency distribution having a higher evaluation value than the average value of the frequency distribution. . In this case, there is an advantage that a determination threshold value can be set according to the state of occurrence of moire.
(4)本発明のディスク判別装置のさらに他の好ましい例では、前記マスク画像生成部が、前記積算モアレ画像と前記基準画像との差分画素値の度数分布における分離度が最大となる値を閾値として、前記積算モアレ画像と前記基準画像との差分画像を二値化した画像を前記マスク画像とする。 (4) In still another preferred example of the disc discriminating apparatus according to the present invention, the mask image generation unit sets a threshold value at which the degree of separation in the frequency distribution of difference pixel values between the integrated moire image and the reference image is maximized. As an example, an image obtained by binarizing a difference image between the integrated moire image and the reference image is used as the mask image.
(5)本発明のディスク判別方法は、判別対象ディスクに対応する被判別画像と基準画像とをモアレ領域を有効画素から除外して対比することにより前記判別対象ディスクの真偽を判別するディスク判別方法であって、真正ディスクとして判別すべき複数のディスクのそれぞれに対応する複数の入力画像を積算して前記基準画像を生成する基準画像生成行程と、前記複数の入力画像のそれぞれと前記基準画像との対比結果に基づいて前記モアレ領域を有する複数のモアレ画像を前記複数の入力画像の中から選択するモアレ画像選択行程と、前記複数のモアレ画像を積算した積算モアレ画像と前記基準画像との対比結果に基づき前記モアレ領域を有効画素から除外するマスク画像を生成するマスク画像生成行程と、入力された前記被判別画像と前記基準画像とを前記マスク画像を適用して対比することにより前記判別対象ディスクの真偽を判別する判別行程と、を備えるディスク判別方法である。 (5) The disc discrimination method of the present invention discriminates the authenticity of the disc to be discriminated by comparing the discriminated image corresponding to the disc to be discriminated with the reference image by excluding the moire area from the effective pixels. A reference image generation step of generating a reference image by integrating a plurality of input images corresponding to each of a plurality of discs to be identified as authentic discs, each of the plurality of input images, and the reference image A moire image selection process for selecting a plurality of moire images having the moire area from the plurality of input images based on a comparison result with the integrated moire image obtained by integrating the plurality of moire images and the reference image. A mask image generation step of generating a mask image for excluding the moire region from effective pixels based on the comparison result; and the input image to be discriminated A determination step of determining the authenticity of the determination target disk by a serial reference image contrast by applying the mask image, a disk discriminating method comprising.
本発明のディスク判別方法では、基準画像を生成する基準画像生成行程と、モアレ画像を入力画像の中から選択するモアレ画像選択行程と、モアレ領域を有効画素から除外するマスク画像を生成するマスク画像生成行程と、判別対象ディスクの真偽を判別する判別行程とを有する。基準画像生成行程では、真正ディスクとして判別すべき複数のディスクのそれぞれに対応する複数の入力画像を積算して基準画像を生成する。モアレ画像選択行程では、複数の入力画像のそれぞれと基準画像との対比結果に基づいてモアレ領域を有する複数のモアレ画像を複数の入力画像の中から選択する。マスク画像生成行程では、複数のモアレ画像を積算した積算モアレ画像と基準画像との対比結果に基づきモアレ領域を有効画素から除外するマスク画像を生成する。判別行程では、判別対象ディスクに対応する被判別画像と基準画像とをマスク画像を適用して対比することにより判別対象ディスクの真偽を判別する。第1のディスク判別方法では、複数の入力画像の中から選択された複数のモアレ画像を積算した積算モアレ画像と基準画像との対比結果に基づいてマスク画像を生成する。そのため、ディスクのモアレ領域などを自動的に設定することが可能となる。また、判別対象ディスクに対応する被判別画像と基準画像とのそれぞれにマスク画像を適用してモアレ領域を有効画素から除外することにより、モアレに起因するディスクの判別精度の低下を防止することが可能となる。 In the disc discrimination method of the present invention, a reference image generation process for generating a reference image, a moire image selection process for selecting a moire image from an input image, and a mask image for generating a mask image for excluding a moire area from effective pixels A generation process and a determination process for determining the authenticity of the determination target disk. In the reference image generation process, a reference image is generated by integrating a plurality of input images corresponding to each of a plurality of discs to be determined as authentic discs. In the moire image selection process, a plurality of moire images having a moire area are selected from the plurality of input images based on a comparison result between each of the plurality of input images and the reference image. In the mask image generation process, a mask image that excludes the moire area from the effective pixels is generated based on the comparison result between the accumulated moire image obtained by integrating a plurality of moire images and the reference image. In the discrimination process, the authenticity of the disc to be discriminated is discriminated by comparing the discriminated image corresponding to the disc to be discriminated with the reference image by applying a mask image. In the first disc discrimination method, a mask image is generated based on a comparison result between an accumulated moire image obtained by integrating a plurality of moire images selected from a plurality of input images and a reference image. Therefore, it is possible to automatically set the moire area of the disc. Further, by applying a mask image to each of the discriminated image and the reference image corresponding to the disc to be discriminated and excluding the moire area from the effective pixels, it is possible to prevent the disc discrimination accuracy from being lowered due to moire. It becomes possible.
(6)本発明のディスク判別方法の好ましい例では、前記複数の入力画像のそれぞれについて前記基準画像に対するマッチングの評価値を導出する評価値導出行程と、前記評価値導出行程において導出された複数の前記評価値の度数分布から前記モアレ画像の判定閾値を設定する判定閾値設定行程と、をさらに備え、前記モアレ画像選択行程において、前記複数の入力画像の評価値のそれぞれについて前記判定閾値を基準に判定することにより前記モアレ画像を選択する。この場合、複数の入力画像の中からモアレ領域を有する複数のモアレ画像を自動的に選択することが可能となる利点がある。 (6) In a preferred example of the disc discrimination method of the present invention, an evaluation value deriving step for deriving an evaluation value for matching with the reference image for each of the plurality of input images, and a plurality of values derived in the evaluation value deriving step A determination threshold value setting step for setting a determination threshold value of the moire image from the frequency distribution of the evaluation values, and in the moire image selection step, the evaluation value of each of the plurality of input images is set based on the determination threshold value. The moire image is selected by determining. In this case, there is an advantage that a plurality of moire images having a moire area can be automatically selected from a plurality of input images.
(7)本発明のディスク判別方法の他の好ましい例では、前記判定閾値設定行程において、前記度数分布の平均値よりも前記評価値が高い側の前記度数分布に基づいて前記判定閾値を設定する。この場合、モアレの発生状態に応じた判定閾値の設定が可能となる利点がある。 (7) In another preferred example of the disc discrimination method of the present invention, in the determination threshold setting step, the determination threshold is set based on the frequency distribution having a higher evaluation value than the average value of the frequency distribution. . In this case, there is an advantage that a determination threshold value can be set according to the state of occurrence of moire.
(8)本発明のディスク判別方法のさらに他の好ましい例では、前記マスク画像生成行程において、前記積算モアレ画像と前記基準画像との差分画素値の度数分布における分離度が最大となる値を閾値として、前記積算モアレ画像と前記基準画像との差分画像を二値化した画像を前記マスク画像とする。 (8) In still another preferred example of the disc discrimination method of the present invention, in the mask image generation step, a value at which the degree of separation in the frequency distribution of the difference pixel value between the integrated moire image and the reference image is a threshold value. As an example, an image obtained by binarizing a difference image between the integrated moire image and the reference image is used as the mask image.
本発明のディスク判別装置およびディスク判別方法では、(a)ディスクのモアレ領域などを自動的に設定することが可能となる、(b)モアレに起因するディスクの判別精度の低下を防止することが可能なる、という効果が得られる。 In the disc discriminating apparatus and disc discriminating method of the present invention, (a) it is possible to automatically set the moiré area of the disc, and (b) preventing the disc discrimination accuracy from being lowered due to the moiré. The effect that it becomes possible is acquired.
以下、本発明の実施の形態を添付図面に基づいて説明する。 Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.
(構成)
図1〜図3は、本発明の一実施例のディスク判別装置1を示す。このディスク判別装置1は、ディスクDの表面または裏面(以下、総称として「表面」という)の撮像画像を取得し、取得された撮像画像に基づいてディスクDの真偽を判別する機能を有する。ディスク判別装置1は、図1に示すように、画像取得部2、撮像タイミングセンサ3、制御部4、画像処理部5、画像記憶部6、入出力インターフェース(I/F)7、状態表示器8および判別基準記憶部9を含んで構成されている。
(Constitution)
1 to 3 show a
まず、図1および図2を参照しながら、画像取得部2について説明する。画像取得部2は、図2に示すように、ディスク搬送路31を搬送されるディスクDの表面の撮像画像を取得し、ディスクDの撮像画像データIDを制御部4に出力する機能を有する。画像取得部2は、投光装置11、二次元撮像装置12およびハーフミラー26を含んでいる。画像取得部2は、ディスク搬送路31においてディスクDの一面を支持するベース板32に開口された撮像窓33に対応して配置されている。
First, the
撮像窓33は、ディスク搬送路31を搬送されるディスクDの撮像領域35を画定する。撮像窓33は、ディスク搬送路31を搬送されるディスクDの搬送方向DLにほぼ平行な一対の長辺と、搬送方向DLにほぼ垂直な一対の短辺を有している。撮像窓33には透光性を有する透光板34が配置され、透光板34のディスク搬送路31側の面はベース板32の表面と、換言すればディスク搬送路31の底面とほぼ面一に構成されている。撮像窓33の一対の長辺の長さは、ディスクDの直径よりも大きく設定されている。撮像窓33の長手方向においてディスクDの直径に関する情報を取得するためである。撮像窓33の各短辺の中点を互いに結ぶ直線とディスク搬送路31を搬送されるディスクDの中心の軌跡とがほぼ一致するように撮像窓33の各短辺が配置されている。ディスクDの表面に関する情報を確実に取得するためである。
The
投光装置11は、ディスク搬送路31を移動するディスクDの表面に投光する機能を有する。投光装置11は、例えば、面投光装置21である。面投光装置21を用いることにより、ディスクDの回転位相が異なっても影の影響のない撮像が可能となるからである。面投光装置21は、発光素子22、導光板23、反射シート24および拡散シート25を含んでいる。なお、本実施例において、発光素子22はLED(Light Emitting Diode、発光ダイオード)である。発光素子(すなわち、LED)22は、ディスクDへ光を投光するための光源である。発光素子22には白色LEDが使用され、発光素子22が白色可視光を投光する。しかし、発光素子22として、三色LEDを用いることもできる。発光素子22は、図2に示すように、導光板23の側端面に面して配置されているので、ディスク搬送路31と平行な面内に配置することができ、設置スペースは小さい。なお、図2に示す発光素子22の位置は便宜的に図示したものである。
The light projecting
導光板23は、本実施例において、低コストの観点から樹脂にて製造された矩形薄板状であり、ディスク搬送路31に対しその面が平行に配置されている。樹脂は、透明または拡散材の混入により乳白色を呈する。拡散材を混入した場合、拡散シート25は不要となる。導光板23は、ガラス基板によって構成することもできる。本実施例では、撮像領域35に導光板23が相対している。反射シート24は、導光板23からディスク搬送路31の反対側へ光が拡散するのを防止し、ディスク搬送路31側に反射する機能を有する。反射シート24は、導光板23のディスク搬送路31の反対側に位置する面に密着されている。なお、反射シート24に代えて、導光板23に銀膜を蒸着しても良い。拡散シート25は、導光板23のディスク搬送路31側の面から投光される光を面均一に拡散させる機能を有する。したがって、導光板23によって導かれ、または、反射シート24によって反射された発光素子22からの投射光は、拡散シート25によって面全体に亘って均一な光量にされ、ディスク搬送路31に向けて投光される。これにより、ディスクDに均一な投光がなされる。拡散シート25から投射される投射光は、ディスク搬送路31、換言すれば、ディスク搬送路31を移動するディスクDに対し直角に投射される。これは、ディスクDの平面の凹凸による光学的な影を作らないためである。導光板23、反射シート24および拡散シート25は薄いので、投光装置11を小型にすることができる。
In this embodiment, the light guide plate 23 is a rectangular thin plate made of resin from the viewpoint of low cost, and the surface thereof is arranged in parallel to the
なお、本実施例の面投光装置21は、発光素子22としてのLED、導光板23、反射シート24および拡散シート25を含んで構成されているが、これに限定されない。例えば、複数個のLEDを二次元状に配列させたLEDアレイや、LED等の点光源とレンズとを組み合わせた平行光などを用いることができる。また、本実施例では、発光素子22としてLEDを用いているが、これに限定されることはなく、冷陰極線管やハロゲンランプなどの光源を用いることもできる。
In addition, although the
ハーフミラー26は、入射光の一部を反射すると共に、入射光の一部を透過する機能を有する。具体的には、投光装置11からの投光は透過し、ディスクDからの反射光は反射する機能を有する。換言すれば、ハーフミラー26は、投光装置11からの投光をディスク搬送路31におけるディスクDに対し直角に投光し、かつ、ディスクDからの反射光をディスク搬送路31と平行な方向に反射させる。ハーフミラー26は、撮像領域35の側方において、ディスク搬送路31の面に対し45度の角度で傾斜配置されている。本実施例において、ハーフミラー26は厚みが薄い投光性樹脂で形成された有機ガラスにクロムを反射膜として蒸着またはメッキしたものである。しかしながら、これに限定されることなく、有機ガラスにかえて、硼珪酸ガラス、石英ガラス、ジルコニア、ルビーおよびサファイアなどの光学ガラスを基板ガラスとして用いても構わない。また、反射膜として、クロムにかえて、錫および銀などの金属膜や、酸化チタン、酸化シリコン、五酸化ニオブ、五酸化タンタルおよびフッ化マグネシウム等の誘電体材料を用いても構わない。さらに、ハーフミラー26は、厚みが薄い有機ガラスにかえて、直角プリズムを2個貼り合わせたプリズム型のハーフミラーを用いても構わない。
The
二次元撮像装置12は、集光レンズ41および撮像素子42を含んでいる。集光レンズ41は、ハーフミラー26によって反射された光を所定の小さな範囲に集光する機能を有する。集光レンズ41は、上記機能から、所定の屈折率を有する凸レンズであり、ハーフミラー26の側方、換言すればハーフミラー26が傾斜している方向に配置され、ハーフミラー26と同等または小さい直径を有している。投光装置11等の形状を工夫し、集光レンズ41を小型化することが好ましい。これは、二次元撮像装置12の低価格化および小型化のためである。撮像素子42は、集光レンズ41によって集光された像を撮像する機能を有する。撮像素子42は、集光レンズ41に対してハーフミラー26の反対側、かつ集光レンズ41を介してディスクDの表面像が結像する位置に配置されている。撮像素子42は、小型化のため、CCDイメージセンサやCMOSイメージセンサが採用される。
The two-
次に、撮像タイミングセンサ3について説明する。撮像タイミングセンサ3は、ディスク搬送路31を搬送されるディスクDが撮像領域35上を通過するタイミングを検知する機能を有する。撮像タイミングセンサ3は、ディスクDのほぼ全面がハーフミラー26の上方に達したときに撮像タイミングセンサ3がディスクDまたはディスクDを搬送する搬送部(図示せず)を検知できるよう配置されている。そのため、撮像タイミングセンサ3は、ディスクDを最適に撮像できるタイミングを示すタイミング信号TSをディスクDの検知信号として出力する。
Next, the
制御部4は、撮像タイミングセンサ3から出力されるタイミング信号TSに基づき撮像素子42および発光素子22の作動を制御すると共に、撮像素子42で取得された撮像画像を画像記憶部6に記憶させ、記憶された撮像画像に基づいて画像処理部5に所定の画像処理を実行させる機能を有する。図3に示すように、制御部4は、画像取得部2から出力されたディスクDの撮像画像データIDを後述する画像記憶部6の撮像画像保持部600に出力する。さらに制御部4は、画像処理部5に対する画像処理制御信号PCSを画像処理部5に出力する。また、制御部4は、画像記憶部6に対する記憶部制御信号MCSを画像記憶部6に出力する。制御部4は、例えば、所定のプログラムに基づき動作するマイクロコンピュータによって構成される。
The control unit 4 controls the operation of the
画像処理部5は、図3に示すように、前処理部500、基準画像生成部510、モアレ画像処理部520、マスク画像処理部540および判別部560を有し、画像記憶部6に記憶された撮像画像に対して種々の処理を行う機能を有する。画像処理部5は制御部4から出力される画像処理制御信号PCSによって制御される。画像処理部5の詳細については後述する。
As shown in FIG. 3, the image processing unit 5 includes a
次に、画像記憶部6について説明する。画像記憶部6は、図3に示すように、撮像画像保持部600、処理画像保持部602、入力画像保持部604、基準画像保持部606、モアレ画像保持部608およびマスク画像保持部610を有する。撮像画像保持部600は、制御部4から出力された撮像画像データIDに基づいて、判別対象のディスクDの撮像画像を保持すると共に、保持された判別対象のディスクDのそれぞれの撮像画像データIDを画像処理部5の前処理部500に出力する機能を有する。処理画像保持部602は、画像処理部5の前処理部500で処理された撮像画像(以下、前処理画像という)を一時的に保持すると共に、保持された前処理画像を前処理画像データPDとして画像処理部5の基準画像生成部510および判別部560に出力する機能を有する。入力画像保持部604は、基準画像生成部510で処理された画像(以下、入力画像という)を一時的に保持すると共に、保持された入力画像を入力画像データBDとして画像処理部5の基準画像生成部510およびモアレ画像処理部520に出力する機能を有する。
Next, the
基準画像保持部606は、画像処理部5の基準画像生成部510で生成された基準画像を保持すると共に、保持された基準画像を基準画像データRDとして画像処理部5のモアレ画像処理部520、マスク画像処理部540および判別部560に出力する機能を有する。モアレ画像保持部608は、画像処理部5のモアレ画像処理部520でモアレ領域を有すると選択された入力画像をモアレ画像として一時的に保持すると共に、保持されたモアレ画像をモアレ画像データMDとしてモアレ画像処理部520に出力する機能を有する。さらに、モアレ画像保持部608は、画像処理部5のモアレ画像処理部520で、複数個のモアレ画像が積算された積算モアレ画像を一時的に保持すると共に、保持された積算モアレ画像を積算モアレ画像データIMDとして画像処理部5のマスク画像処理部540に出力する機能を有する。マスク画像保持部610は、画像処理部5のマスク画像処理部540で生成されたマスク画像を保持すると共に、保持されたマスク画像をマスク画像データBMDとして画像処理部5の判別部560に出力する機能を有する。撮像画像保持部600、処理画像保持部602、入力画像保持部604およびモアレ画像保持部608は、例えば、データの読み出し/書き込み速度の観点からRAM(Random Access Memory)により構成される。基準画像保持部606およびマスク画像保持部610は、例えば、データ保持の持続性の観点からEEPROM(Electrically Erasable Programmable Read−Only Memory)等の不揮発性メモリで構成される。撮像画像保持部600、処理画像保持部602、入力画像保持部604、基準画像保持部606、モアレ画像保持部608およびマスク画像保持部610の動作は、制御部4から出力される記憶部制御信号MCSによって制御される。
The reference
入出力インターフェース(I/F)7は、ディスク判別装置1が組み込まれる本体機器(図示せず)に電気的に接続する機能を有する。入出力インターフェース(I/F)7を介して本体機器をディスク判別装置1に接続することにより、本体機器に対して所望の信号を入出力可能である。
The input / output interface (I / F) 7 has a function of electrically connecting to a main device (not shown) in which the
状態表示器8は、ディスク判別装置1の動作状態を表示する機能を有する。状態表示器8は、例えば、発光色の異なる複数のLED(図示せず)により構成され、それらLEDの発光が制御部4により制御されることにより、ディスク判別装置1の様々な状態(例えば、正常動作やエラー発生等)が報知される。なお、状態表示器8としては、液晶パネルなどのディスプレイ装置も使用可能である。
The
判別基準記憶部9は、ディスク判別装置1において偽ディスクと判別する閾値を記憶する機能を有する。判別基準記憶部9は、判別基準データSLSを制御部4に出力する。制御部4は、送られた判別基準データSLSに基づく閾値に基づいて判別対象のディスクDの真偽を判別する。
The discrimination reference storage unit 9 has a function of storing a threshold value for discriminating a fake disk in the
次に、図3を参照しながら画像処理部5について詳細に説明する。画像処理部5は、判別対象のディスクDをその表面模様に基づいて判別するための基準画像を生成する機能、ディスクDの入力画像のモアレ領域の有無を判別する機能、判別対象のディスクDの前処理画像と基準画像のモアレ領域をマスクするマスク画像を生成する機能、および判別対象のディスクDの表面の模様を基準画像に基づいて判別する機能を有する。画像処理部5は、前処理部500、基準画像生成部510、モアレ画像処理部520、マスク画像処理部540および判別部560を含んでいる。
Next, the image processing unit 5 will be described in detail with reference to FIG. The image processing unit 5 has a function of generating a reference image for discriminating the disc D to be discriminated based on its surface pattern, a function of discriminating the presence or absence of a moire area of the input image of the disc D, and the disc D It has a function of generating a mask image that masks the moire area of the preprocessed image and the reference image, and a function of determining the pattern on the surface of the disc D to be determined based on the reference image. The image processing unit 5 includes a
まず、前処理部500について説明する。前処理部500は、画像記憶部6の撮像画像保持部600に保持されたディスクDの撮像画像に対し、基準画像生成部510における基準画像生成処理、モアレ画像処理部520におけるモアレ画像選択処理および判別部560における判別処理のそれぞれを効率よく実行するための所定の処理を行う機能を有する。撮像画像保持部600に保持されたディスクDの撮像画像は、撮像画像データIDとして前処理部500に入力されて前処理部500で処理される。そして、前処理されたディスクDの撮像画像(前処理画像)は、画像記憶部6の処理画像保持部602に出力されて画像記憶部6の処理画像保持部602により保持される。図3に示すように、前処理部500は、エッジ抽出部502、中心抽出部504および画像切出部506を有している。
First, the
エッジ抽出部502は、撮像画像保持部600に保持された撮像画像においてエッジを抽出する機能を有する。エッジ抽出とは、画像中の画素の輝度あるいは色が大きく変化している箇所をエッジ(特徴)として抽出する処理である。エッジ抽出は、1次微分に基づくフィルタ(SobelフィルタおよびPrewittフィルタ)ならびに2次微分に基づくフィルタ(ラプラシアンフィルタ)を用いることにより行うことができる。
The
中心抽出部504は、撮像画像保持部600に保持された撮像画像に基づき、撮像画像におけるディスクDの中心位置を抽出する機能を有する。換言すれば、撮像画像においてディスクDの中心を示す座標値を算出する。中心位置の抽出には公知の方法が用いられ、例えば、撮像画像において縦軸(Y軸)方向に延びる各ラインに対しディスクDの周縁部の一方と他方とを検出し、検出された両周縁部の間隔が最大となるラインにおける両周縁部間の中点をディスクDの中心位置とする。しかし、中心位置の抽出には他の方法を用いることもできる。
The
画像切出部506は、中心抽出部504で中心位置が抽出された画像を、該中心位置を基準として予め設定されたサイズに切り出す機能を有する。本実施例において、画像切出部506は、中心抽出部504で中心位置が抽出された画像を、ディスクDの中心位置と対角線の交点とが一致するように正方形状に切り出す。なお、画像を切り出す形状は、長方形状に切り出すこともでき、ディスクDの外周縁に合わせて円形状に切り出すこともできる。
The
次に、基準画像生成部510について説明する。基準画像生成部510は、ディスクDの真偽を判別するための基準となる基準画像を生成するための所定の処理を行う機能を有する。基準画像生成部510は、画像記憶部6の処理画像保持部602から送られた処理画像データPDに基づく前処理画像、画像記憶部6の入力画像保持部604から送られた入力画像データBDに基づく入力画像、および、画像記憶部6の基準画像保持部606から送られた基準画像データRDに基づく基準画像のそれぞれに所定の処理を行う。そして、基準画像生成部510で処理された前処理画像は、入力画像データBDとして画像記憶部6の入力画像保持部604に出力され、入力画像として入力画像保持部604により保持される。また、基準画像生成部510で処理された前処理画像は、基準画像データRDとして基準画像保持部606に出力され、基準画像として基準画像保持部606により保持される。さらに、基準画像生成部510で処理された基準画像は、基準画像データRDとして基準画像保持部606に出力され、基準画像として基準画像保持部606により保持される。図3に示すように、基準画像生成部510は、対比判定部512、画像回転部514および画像積算部516を有している。
Next, the reference
対比判定部512は、所望の二の画像の各画素(同一座標値の画素)について画素値を比較し、二の画像の相違する度合い(以下、相違度という)または一致する度合い(以下、一致度という)に基づいて二の画像が一致するか否かを判定する機能を有する。例えば、相違度で判定する場合、画素値の一致しない画素数の合計値が、判別基準記憶部9に保持された所定の閾値を越える場合、それら二の画像が一致しないと判定される。他方、一致度で判定する場合、画素値の一致する画素数の合計値が、判別基準記憶部9に保持された所定の閾値を越える場合、それら二の画像が一致すると判定される。本実施例では、相違度により判定する。さらに、対比判定部512は、二の画像の間の回転角度ずれおよび水平方向(画像に対して平行な方向)のずれ(以下、総称して相対位置ずれという。)を補正する機能を有する。相対位置ずれの補正は、例えば特開2016−134073号公報で開示される回転ずれおよび位置ずれの補正方法により行うことができる。対比判定部512は、画像記憶部6の基準画像保持部606に保持された基準画像と画像記憶部6の処理画像保持部602に保持されたディスク番号iの前処理画像との相対位置ずれの補正を行う。対比判定部512は、基準画像と相対位置ずれ補正済みのディスク番号iの前処理画像とを比較し、相違度DFを算出する。対比判定部512は、算出された相違度DFに基づいて、ディスク番号iの前処理画像が基準画像と一致するか否かを判定する。
The
画像回転部514は、所望の画像をディスクDの中心位置を中心として回転させる機能を有する。画像回転部514は、画像記憶部6の基準画像保持部606に保持された基準画像を、ディスクDの中心位置を中心として、所定の回転角度差θd毎に回転させる。換言すれば、画像回転部514は、回転角度θに対応する基準画像(以下、回転角度θの基準画像という。)に対して、回転角度差θd回転させた回転角度「θ+θd」に対応する基準画像を生成する。このようにして、回転角度差θd毎に回転させた複数枚の基準画像を準備することによって、後述する図5の基準画像生成処理のステップS21の対比判定処理、および、後述する図13の真偽判別処理のステップS145の対比判定処理において、前処理画像を回転させながら基準画像と対比させる必要がなくなり、前処理画像と基準画像との対比判別処理を効率よく実行することができる。
The
画像積算部516は、所望の二の画像に対して画像積算処理を行う機能を有する。画像積算処理とは、画像のエッジの鮮鋭化すると共に、平滑化してノイズを除去する処理である。画像積算処理は、積算する複数の画像重みが一定で、各画素の画素値を単純累積する単純積算により行なうことができる。画像積算部516は、画像記憶部6の基準画像保持部606に保持された回転角度「0度」の基準画像と画像記憶部6の入力画像保持部604に保持された入力画像とに対して画像積算処理を行う。画像積算処理された画像は、基準画像データRDとして基準画像保持部606に出力され、基準画像保持部606に回転角度「0度」の基準画像として保持される。
The
次に、モアレ画像処理部520について説明する。モアレ画像処理部520は、所望の画像に対してモアレ領域があるか否かを判定すると共に、モアレ領域がある画像をモアレ画像として選択する機能を有する。さらに、モアレ画像処理部520は、選択された複数枚のモアレ画像に対して、画像積算処理を行う。モアレ画像処理部520は、画像記憶部6の入力画像保持部604に保持されたディスク番号iの入力画像のそれぞれについて、モアレ領域を有するか否かを判定する。モアレ画像処理部520は、モアレ領域を有すると判定された入力画像を、モアレ画像データMDとして画像記憶部6のモアレ画像保持部608に出力する。モアレ領域を有すると判定された画像は、モアレ画像保持部608によりモアレ番号jのモアレ画像として格納され保持される。さらに、モアレ画像処理部520は、モアレ画像保持部608に保持された全てのモアレ画像に対して画像積算処理を行う。モアレ画像処理部520は、画像積算処理された画像を、積算モアレ画像データIMDとしてモアレ画像保持部608に出力する。画像積算処理された画像は、積算モアレ画像としてモアレ画像保持部608により保持される。図3に示すように、モアレ画像処理部520は、評価値導出部522、判定閾値設定部524、モアレ画像選択部526およびモアレ画像積算部528を有している。
Next, the moire
評価値導出部522は、所望の二の画像の各画素(同一座標値の画素)について画素値を比較し、二の画像の相違度または一致度から評価値を導出する機能を有する。評価値導出部522は、画像記憶部6の基準画像保持部606に保持された基準画像および入力画像保持部604に保持された各ディスク番号iの入力画像の各画素について画素値を比較して相違度または一致度を算出し、この算出された相違度または一致度に基づいて各ディスク番号iの入力画像の評価値EVを導出する。なお、評価値導出部522における相違度または一致度の算出の方法は、対比判定部512における相違度または一致度の算出の方法と同じである。導出された評価値EVは、画像記憶部6の図示しない記憶領域に格納される。
The evaluation
判定閾値設定部524は、各ディスク番号iの入力画像がモアレ領域を有するか否かを判定するための判定閾値を設定する機能を有する。判定閾値設定部524は、評価値導出部522で導出された評価値EVの度数分布表に基づいて、判定閾値を設定する。設定された判定閾値は、画像記憶部6の図示しない記憶領域に格納される。
The determination threshold
モアレ画像選択部526は、所望の画像がモアレ領域を有するか否かを判定すると共に、モアレ領域を有する画像を選択する機能を有する。モアレ画像選択部526は、評価値導出部522で導出された評価値EVと、判定閾値設定部524で設定された判定閾値とに基づいて、各ディスク番号iの入力画像がモアレ領域を有するか否かを判定する。例えば、評価値EVが判定閾値に対して小さい場合、モアレ画像選択部526は、ディスク番号iの入力画像がモアレ領域を有すると判定する。モアレ領域を有すると判定されたディスク番号iの入力画像は、モアレ画像データMDとして画像記憶部6のモアレ画像保持部608に出力され、モアレ番号jのモアレ画像としてモアレ画像保持部608により保持される。
The moire
モアレ画像積算部528は、所望の複数枚の画像に対して画像積算処理を行う機能を有する。モアレ画像積算部528は、画像記憶部6のモアレ画像保持部608に保持された全てのモアレ画像を画像積算処理する。モアレ画像の画像積算処理は、基準画像生成部510の画像積算部516における画像積算処理と同じである。画像積算処理されたモアレ画像は、積算モアレ画像データIMDとしてモアレ画像保持部608に出力され、積算モアレ画像としてモアレ画像保持部608により保持される。
The moiré
次に、マスク画像処理部540について説明する。マスク画像処理部540は、所望の二の画像(同一座標値の画素)を対比するときに、モアレ領域を有効画素から除外するためのマスク画像を生成する機能を有する。マスク画像処理部540は、画像記憶部6の基準画像保持部606に保持された基準画像と、モアレ画像保持部608に保持された積算モアレ画像とに基づいてマスク画像を生成する。マスク画像処理部540で生成された画像は、マスク画像データBMDとして画像記憶部6のマスク画像保持部610に出力され、マスク画像としてマスク画像保持部610により保持される。図3に示すように、マスク画像処理部540は、マスク閾値設定部542およびマスク画像生成部544を有している。
Next, the mask
マスク閾値設定部542は、所望の二の画像の各画素(同一座標値の画素)について画素値の差分情報を算出し、この算出された差分情報に基づいて有効画素と非有効画素とを設定するマスク閾値を設定する機能を有する。差分情報の算出には、例えば、背景差分法を用いることができ、二の画像の各画素(同一座標値の画素)の画素値の差の絶対値(以下、差分画素値という。)が差分情報として算出される。マスク閾値は、算出された各画素の差分画素値に対する度数分布表に基づいて設定される。マスク閾値の設定には、例えば判別分析法やモード法などの一般的な2値化画像処理の閾値設定方法を用いることができる。マスク閾値設定部542は、基準画像保持部606に保持された基準画像と、モアレ画像保持部608に保持された積算モアレ画像との差分情報である各画素の差分画素値を算出する。マスク閾値設定部542は、算出された各画素の差分画素値の度数分布表に基づいてマスク閾値を設定する。設定されたマスク閾値は、画像記憶部6の図示しない記憶領域に格納される。
The mask threshold
マスク画像生成部544は、マスク画像を生成する機能を有する。マスク画像生成部544は、基準画像と積算モアレ画像との差分情報に基づく画像(以下、差分画像という。)に対して、マスク閾値設定部542で設定されたマスク閾値を適用し、差分画像を二値化処理する。換言すれば、マスク画像生成部544は、マスク閾値設定部542で算出された基準画像と積算モアレ画像との各画素(同一座標値の画素)の差分画素値に基づく差分画像に対して、マスク閾値設定部542で設定されたマスク閾値を適用し、差分画像を二値化処理する。二値化処理された差分画像は、マスク画像として画像記憶部6のマスク画像保持部610に保持される。
The mask
次に、判別部560について説明する。判別部560は、画像記憶部6の処理画像保持部602に保持された判別対象のディスクDの前処理画像を被判別画像とし、被判別画像と画像記憶部6の基準画像保持部606に保持された複数の基準画像のそれぞれに画像記憶部6のマスク画像保持部610に保持されたマスク画像を適用した後、被判別画像と各基準画像とを対比し、その対比結果から判別対象のディスクDの真偽を判別する機能を有する。判別結果は、画像処理部5から制御部4に判別信号ISとして出力される。判別部560は、マスク画像適用部562および相違度導出部564を有する。
Next, the
マスク画像適用部562は、所望の画像に画像記憶部6のマスク画像保持部610に保持されたマスク画像を適用する機能を有する。マスク画像適用部562は、画像記憶部6の処理画像保持部602に保持された被判別画像および画像記憶部6の基準画像保持部606に保持された複数の基準画像のそれぞれに、画像記憶部6のマスク画像保持部610に保持されたマスク画像を適用する。これにより、被判別画像および複数の基準画像のそれぞれが有するモアレ領域が、ディスクDの真偽判別のための有効画素から除外される。
The mask
相違度導出部564は、所望の二の画像の各画素(同一座標値の画素)について画素値を比較し、二の画像の相違度または一致度に基づいて二の画像が一致するか否かを判定する機能を有する。例えば、相違度で判定する場合、画素値の一致しない画素数の合計値が画像記憶部6に保持された所定の閾値を越える場合、それら二の画像が一致しないと判定される。他方、一致度で判定する場合、画素値の一致する画素数の合計値が画像記憶部6に保持された所定の閾値を越える場合、それら二の画像が一致すると判定される。本実施例では、相違度により判定する。
The
なお、画像処理部5を構成するエッジ抽出部502、中心抽出部504、対比判定部512、画像回転部514、画像積算部516、評価値導出部522、判定閾値設定部524、モアレ画像選択部526、モアレ画像積算部528、マスク閾値設定部542、マスク画像生成部544、マスク画像適用部562および相違度導出部564は、それぞれの機能を有するものであれば、ハードウェアおよびソフトウェアのいずれで構成してもよい。一部をハードウェアとし残りをソフトウェアとすることも可能である。
The
(動作)
次に、図4〜図15を参照しながら、ディスク判別装置1の動作について説明する。なお、ディスク判別装置1の動作で取得される撮像画像は、ディスクDにおける表面および裏面のいずれかの画像である。そのため、ディスクDの表面および裏面の模様が異なる場合、表面および裏面のそれぞれの基準画像を生成する必要があり、表面および裏面のそれぞれの基準画像と対比する必要がある。本実施例では、ディスクDの表面および裏面の模様が同じものとして説明する。
(Operation)
Next, the operation of the
まず、図4に示すように、ステップS1において、初期化がなされる。初期化では、撮像素子42のフレームレート、撮像タイミングセンサ3の感度などが設定される。
First, as shown in FIG. 4, initialization is performed in step S1. In initialization, the frame rate of the
次のステップS2において、基準画像を登録する登録モードと、ディスクDの真偽を判別する判別モードのいずれかが選択されたかが判定される。ステップS2において、登録モードが選択されたと判定された場合、ステップS3に進む。一方、ステップS2において、判別モードが選択されたと判定された場合、ステップS8に進む。 In the next step S2, it is determined whether one of the registration mode for registering the reference image and the determination mode for determining the authenticity of the disk D has been selected. If it is determined in step S2 that the registration mode has been selected, the process proceeds to step S3. On the other hand, if it is determined in step S2 that the determination mode is selected, the process proceeds to step S8.
ステップS3において、基準画像を生成するか否かの選択がされたかが判定される。基準画像の生成が選択されたと判定された場合、ステップS4に進み、基準画像を生成する基準画像生成処理が実行され、ステップS5に進む。一方、基準画像の生成が選択されなかったと判定された場合、ステップS5に進む。なお、ステップS4における基準画像生成処理の詳細については後述する。 In step S <b> 3, it is determined whether or not it has been selected whether or not to generate a reference image. When it is determined that the generation of the reference image is selected, the process proceeds to step S4, the reference image generation process for generating the reference image is executed, and the process proceeds to step S5. On the other hand, if it is determined that the generation of the reference image has not been selected, the process proceeds to step S5. Details of the reference image generation process in step S4 will be described later.
ステップS5において、マスク画像を生成するか否かが選択されたかが判定される。マスク画像の生成が選択されたと判定された場合、ステップS6において、画像記憶部6の入力画像保持部604に保持された入力画像からモアレ領域を有するモアレ画像を選択するモアレ画像判定処理が実行され、次のステップS7において、基準画像およびディスクDの入力画像それぞれのモアレ領域を、ディスクDの真偽判別のための有効画素から除外するためのマスク画像を生成するマスク画像生成処理が実行される。ステップS7のマスク画像生成処理が完了した後、ステップS2に戻る。一方、マスク画像の生成が選択されなかったと判定された場合、ステップS2に戻る。なお、ステップS6におけるモアレ画像判定処理、および、ステップS7におけるマスク画像生成処理の詳細については後述する。
In step S5, it is determined whether or not to generate a mask image has been selected. When it is determined that the generation of the mask image has been selected, in step S6, a moire image determination process is performed in which a moire image having a moire area is selected from the input image held in the input
ステップS8では、ディスクDの真偽を判別する真偽判別処理が実行される。ステップS8の真偽判別処理が完了した後、ステップS2に戻る。なお、ステップS8における真偽判別処理の詳細については後述する。 In step S8, authenticity determination processing for determining the authenticity of the disk D is executed. After the authenticity determination process in step S8 is completed, the process returns to step S2. Details of the authenticity determination process in step S8 will be described later.
次に図4のステップS4の基準画像生成処理について、図5を参照しながら説明する。ステップS11において、ディスク番号iに「1」が設定される(i=1)。換言すれば、ディスクDのディスク番号iが初期化される。次のステップS12では、回転角度θに「0」が設定される(θ=0)。換言すれば、回転角度θが初期化される。 Next, the reference image generation process in step S4 of FIG. 4 will be described with reference to FIG. In step S11, “1” is set to the disk number i (i = 1). In other words, the disk number i of the disk D is initialized. In the next step S12, “0” is set to the rotation angle θ (θ = 0). In other words, the rotation angle θ is initialized.
次のステップS13では、ディスクDの表面および裏面のいずれか一面の撮像画像を取得する撮像画像取得処理が実行される。画像取得部2は、撮像位置に到達したディスクD、換言すれば撮像窓33と相対したディスクDを撮像して、ディスクDの撮像画像を取得する。画像取得部2は、取得された撮像画像を撮像画像データIDとして制御部4に出力する。制御部4は供給された撮像画像データIDを画像記憶部6に転送する。画像記憶部6は、送られた撮像画像データIDに基づく撮像画像を撮像画像保持部600に格納し保持する。なお、ステップS13における撮像画像取得処理の詳細については後述する。
In the next step S13, a captured image acquisition process for acquiring a captured image of any one of the front surface and the back surface of the disk D is executed. The
次にステップS14に進み、前処理部500が、ディスクDの撮像画像に対して前処理を実行する。制御部4は画像記憶部6に記憶部制御信号MCSを出力し、画像記憶部6は記憶部制御信号MCSに基づいて撮像画像保持部600に保持された撮像画像に基づく撮像画像データIDを前処理部500に出力する。前処理部500は、送られた撮像画像データIDに基づく撮像画像に対して、前処理を行う。前処理部500は、前処理された画像を、処理画像データPDとして画像記憶部6の処理画像保持部602に出力する。なお、ステップS14における前処理の詳細については後述する。
In step S14, the
次にステップS15に進み、ディスク番号iが1を超える(i>1)か否か(i≦1)が判定される。ディスク番号iが1以下である(i≦1)場合、換言すればディスク番号iが「1」である(i=1)場合、さらに換言すれば、図4のステップS4の基準画像生成処理において、画像取得部2が撮像画像を取得したディスクDが1枚目である場合、ステップS16に進む。他方、ディスク番号iが1を超える(i>1)場合、換言すれば、画像取得部2が撮像画像を取得したディスクDが2枚目以降である場合、ステップS21に進む。
In step S15, it is determined whether the disk number i exceeds 1 (i> 1) or not (i ≦ 1). When the disk number i is 1 or less (i ≦ 1), in other words, when the disk number i is “1” (i = 1), in other words, in the reference image generation process in step S4 of FIG. When the disc D from which the
次のステップS16では、画像記憶部6の入力画像保持部604が、ディスク番号「1」のディスクDの入力画像を保持する。前処理部500は、前処理されたディスク番号「1」のディスクDの撮像画像(前処理画像)を、入力画像データBDとして入力画像保持部604に出力する。入力画像保持部604は、送られた入力画像データBDに基づく入力画像をディスク番号iに対応付けて格納し保持する。このステップS16では、入力画像保持部604は、送られた入力画像データBDに基づく入力画像をディスク番号「1」に対応づけて格納し保持する。換言すれば、入力画像保持部604は、送られた入力画像データBDに基づく入力画像を、ディスク番号「1」の入力画像として格納し保持する。
In the next step S16, the input
次のステップS17では、画像記憶部6の基準画像保持部606が、ディスクDの基準画像を保持する。前処理部500は、前処理されたディスク番号「1」のディスクDの撮像画像(前処理画像)を、基準画像データRDとして基準画像保持部606に出力する。基準画像保持部606は、送られた基準画像データRDに基づくディスクDの基準画像を格納し保持する。なお、ステップS16で前処理部500が出力した入力画像データBDおよびステップS17で前処理部500が出力した基準画像データRDのそれぞれは、同じディスク番号「1」のディスクDの前処理画像に基づくデータである。換言すれば、ステップS17の時点において、入力画像保持部604および基準画像保持部606には、同じ画像が保持されている。さらに換言すれば、ステップS17の時点において、入力画像保持部604に保持されているディスク番号「1」の入力画像および基準画像保持部606に保持されている基準画像は、同じ画像である。
In the next step S <b> 17, the reference
次のステップS18では、基準画像生成部510の画像回転部514が、基準画像を所定の回転角度差θd毎に回転させた複数枚の基準画像を作成する。基準画像保持部606は、基準画像データRDを基準画像生成部510に出力する。基準画像生成部510の画像回転部514は、送られた基準画像データRDに基づく基準画像に対し、画像を回転させる回転処理を施す。画像回転部514は、ディスクDの中心位置を回転中心として所定の回転角度差θd毎に基準画像を回転させ、複数枚の基準画像を作成する。基準画像生成部510は、画像回転部514が回転処理した複数枚の基準画像を、基準画像データRDとして基準画像保持部606に出力する。基準画像保持部606は、送られた基準画像データRDに基づく複数枚の基準画像のそれぞれを回転角度θと対応付けて格納し保持する。なお、回転角度差θdは任意に設定することができ、例えば、回転角度差θdが「1度」の場合、「1度」毎に回転させた、すなわち回転角度θが「1度」ずつ異なる360枚の基準画像が作成される。また、回転角度差θdが「3.6度」の場合は、回転角度θが「3.6度」ずつ異なる100枚の基準画像が作成される。さらに、回転角度差θdが「5度」の場合は、回転角度θが「5度」ずつ異なる72枚の基準画像が作成される。ステップS18における画像回転処理の詳細については後述する。
In the next step S18, the
次のステップS19では、ディスク番号iに「i+1」が設定される。換言すれば、現在のディスク番号iに「1」を加算して得られた値が、新たなディスク番号iとして設定される。さらに換言すれば、ディスク番号iが更新される。 In the next step S19, “i + 1” is set to the disk number i. In other words, a value obtained by adding “1” to the current disk number i is set as a new disk number i. In other words, the disk number i is updated.
次のステップS20では、ディスク番号iがあらかじめ設定された値imaxを超える(i>imax)か否かが判定される。換言すれば、ディスク番号iが、基準画像を生成するためにあらかじめ設定されたディスクDの総枚数imaxに達しているか否かが判定される。ディスク番号iが値imax以下である(i≦imax)場合、ステップS12に戻り、基準画像生成処理が続行される。一方、ディスク番号iが値imaxを超える場合(i>imax)、ステップS25に進む。 In the next step S20, it is determined whether or not the disk number i exceeds a preset value imax (i> imax). In other words, it is determined whether or not the disk number i has reached the total number imax of the disks D set in advance for generating the reference image. If the disk number i is less than or equal to the value imax (i ≦ imax), the process returns to step S12 and the reference image generation process is continued. On the other hand, if the disk number i exceeds the value imax (i> imax), the process proceeds to step S25.
ステップS15でディスク番号iが「1」を超える(i>1)場合、ステップS21に進む。次のステップS21では、基準画像生成部510の対比判定部512が、ディスク番号iの前処理画像と基準画像とが一致するか否かを判定する。基準画像保持部606は、基準画像データRDを基準画像生成部510に出力する。処理画像保持部602は、前処理画像データPDを基準画像生成部510に出力する。基準画像生成部510の対比判定部512は、送られた基準画像データRDに基づく基準画像と、送られた前処理画像データPDに基づくディスク番号iの前処理画像と対比させ、該基準画像に対する該前処理画像の相違度を算出し、算出された相違度に基づいて該前処理画像が基準画像と一致するか否かを判定する。換言すれば、対比判定部512は、ディスク番号iのディスクDが、ディスク番号「1」〜「i−1」のディスクDと一致するか否かを判定する。ディスク番号iの前処理画像が基準画像と一致すると判定された場合、ステップS22に進む。一方、ディスクDの前処理画像が基準画像と一致しない、すなわち不一致であると判定された場合、ステップS12に戻り、次のディスクDの処理が実行される。なお、ステップS21における対比判定処理の詳細については後述する。
If the disk number i exceeds “1” in step S15 (i> 1), the process proceeds to step S21. In the next step S21, the
次のステップS22では、入力画像保持部604が、ディスク番号iの入力画像を保持する。基準画像生成部510は、ディスク番号iの前処理画像を、入力画像データBDとして入力画像保持部604に出力する。入力画像保持部604は、送られた入力画像データBDに基づく入力画像をディスク番号iに対応付けて格納し保持する。
In the next step S22, the input
次のステップS23では、基準画像生成部510の画像積算部516が、基準画像にディスク番号iの入力画像を積算する。基準画像保持部606は、基準画像データRDを基準画像生成部510に出力する。入力画像保持部604は、入力画像データBDを基準画像生成部510に出力する。基準画像生成部510の画像積算部516は、供給された基準画像データRDに基づく回転角度「0度」の基準画像に対して、送られた入力画像データBDに基づくディスク番号iの入力画像を積算する。
In the next step S23, the
次のステップS24では、基準画像保持部606が、基準画像を保持する。基準画像生成部510は、画像積算後の基準画像を、基準画像データRDとして基準画像保持部606に出力する。基準画像保持部606は、送られた基準画像データRDに基づく基準画像を、回転角度「0度」の基準画像として格納し保持する。基準画像保持部606が画像積算後の基準画像を格納し保持した後、ステップS19に進む。
In the next step S24, the reference
ステップS19においてディスク番号iがimax以上である場合(i≧imax)、ステップS25に進み、画像回転部514が、回転角度「0度」の基準画像を所定の回転角度差θd毎に回転させた複数枚の基準画像を作成する。基準画像保持部606は、基準画像データRDを基準画像生成部510に出力する。基準画像生成部510の画像回転部514は、送られた基準画像データRDに基づく回転角度「0度」の基準画像に対し、画像を回転させる回転処理を施す。画像回転部514は、ディスクDの中心位置を回転中心として所定の回転角度差θd毎に回転角度「0度」の基準画像を回転させ、複数枚の基準画像を作成する。基準画像生成部510は、画像回転部514が回転処理した複数枚の基準画像を、基準画像データRDとして基準画像保持部606に出力する。基準画像保持部606は、送られた基準画像データRDに基づく複数枚の基準画像それぞれを回転角度θと対応付けて格納し保持する。なお、ステップS25における画像回転処理は、ステップS18における画像回転処理と全く同じである。ステップS25における画像回転処理が完了すると、基準画像生成処理が終了する。このようにして図4のステップS4の基準画像生成処理が完了し、各ディスク番号i、すなわちディスク番号「1」〜「imax」それぞれに対応付けられた複数枚の入力画像が入力画像保持部604に保持され、各回転角度θに対応付けられた複数枚の基準画像が基準画像保持部606に保持される。入力画像保持部604が各ディスク番号iに対応付けられた入力画像を格納し保持し、さらに、基準画像保持部606が各回転角度θに対応付けられた基準画像を格納し保持した後、図4のステップS5に戻る。
When the disk number i is equal to or greater than imax in step S19 (i ≧ imax), the process proceeds to step S25, and the
なお、本実施例において、図4のステップS3の基準画像生成処理では、ステップS23の画像積算処理において、画像記憶部6の基準画像保持部606に保持された回転角度θの基準画像に入力画像を積算しているが、例えばディスク番号「1」の入力画像に対して、ディスク番号「2」〜「imax」の入力画像のそれぞれを順次積算することもできる。また、ステップS21の対比判定処理において、ディスク番号「3」〜「imax」の前処理画像の一致判定を、ディスク番号「1」〜「i−1」の入力画像を積算した基準画像に対して行っているが、ディスク番号「1」の前処理画像を仮の基準画像として保持し、この仮の基準画像に基づいてディスク番号iの前処理画像の一致判定を行うこともできる。
In the present embodiment, in the reference image generation process in step S3 of FIG. 4, in the image integration process in step S23, the input image is input to the reference image of the rotation angle θ held in the reference
図5のステップS13の撮像画像取得処理について、図6を参照しながら説明する。ステップS31では、撮像タイミングセンサ3がオンしたか否かが判定される。換言すれば、ディスク搬送路31を移動するディスクDが撮像位置に到達したか否かが判定される。ディスクDが撮像位置に到達した場合、撮像タイミングセンサ3がオンする。すなわち、ディスク搬送路31におけるディスクDの移動に対応して、撮像タイミングセンサ3がオンする。撮像タイミングセンサ3がオンの場合、ステップS32に進む。ディスクDが撮像位置に到達しない場合、撮像タイミングセンサ3がオフの状態に保たれ、ステップS31が繰り返し実行される。換言すれば、ディスクDが撮像位置に到達するまでは、画像取得部2は待機状態となる。
The captured image acquisition process in step S13 in FIG. 5 will be described with reference to FIG. In step S31, it is determined whether or not the
次のステップS32では、制御部4が発光素子22に点灯制御信号LCSを出力し、発光素子22が点灯制御信号LCSに基づいて短時間点灯(すなわち、フラッシュ発行)される。これにより、投光装置11から撮像窓33に向かう拡散光が発せられ、撮像窓33と相対するディスクDが投光される。
In the next step S32, the control unit 4 outputs a lighting control signal LCS to the
次のステップS33では、制御部4が撮像素子42に撮像制御信号ICSを出力し、撮像素子42が撮像制御信号ICSに基づいて判別対象のディスクDを撮像する。換言すれば、二次元撮像装置12により判別対象のディスクDの撮像画像が取得される。撮像素子42は、取得された撮像画像データIDを制御部4に出力する。制御部4は、供給された撮像画像データIDを画像記憶部6に転送する。画像記憶部6は、送られた撮像画像データIDに基づく撮像画像を撮像画像保持部600に格納し保持する。このようにして図5のステップS13の撮像画像取得処理が完了した後、図5のステップS14に戻る。
In the next step S33, the control unit 4 outputs the imaging control signal ICS to the
図5のステップS14の前処理について、図7を参照しながら説明する。ステップS41では、エッジ抽出部502が撮像画像保持部600に保持された撮像画像についてエッジ抽出の処理を実行する。エッジ抽出された画像は、画像記憶部6の処理画像保持部602に保持される。
The preprocessing in step S14 in FIG. 5 will be described with reference to FIG. In step S <b> 41, the
次のステップS42では、中心抽出部504が処理画像保持部602に保持されたエッジ抽出後の画像においてディスクDの中心位置を抽出する。抽出された中心位置の座標値は画像記憶部6の図示しない記憶領域に格納される。
In the next step S42, the
次のステップS43では、画像切出部506が、処理画像保持部602に保持されたエッジ抽出後の画像を矩形状に切り出す。画像切出部506は、中心抽出部504が抽出したディスクDの中心位置を基準に、画像をエッジ抽出後の画像を矩形状に切り出す。より詳細には、画像切出部506は、矩形状の2本の対角線の交点がディスクDの中心位置と一致するように、エッジ抽出後の画像を矩形状に切り出す。矩形状に切り出された画像は、処理画像保持部602に保持される。このようにして図5のステップS14の前処理が完了し、当該前処理が施された撮像画像が処理画像として処理画像保持部602に保持される。処理画像保持部602が処理画像を格納し保持した後、図5のステップS15に戻る。
In the next step S43, the
図5のステップS18およびステップS25の画像回転処理について、図8を参照しながら説明する。まずステップS51において、回転角度θに「θ+θd」が設定される。換言すれば、現在の回転角度θに回転角度差θdを加算して得られた値が、新たな回転角度θとして設定される。さらに換言すれば、回転角度θが更新される。 The image rotation processing in step S18 and step S25 in FIG. 5 will be described with reference to FIG. First, in step S51, “θ + θd” is set as the rotation angle θ. In other words, a value obtained by adding the rotation angle difference θd to the current rotation angle θ is set as a new rotation angle θ. In other words, the rotation angle θ is updated.
次のステップS52では、回転角度θが360度以上(θ≧360度)であるか否かが判定される。回転角度θが360度以上でない場合(θ<360度)、ステップS53に進む。 In the next step S52, it is determined whether or not the rotation angle θ is 360 degrees or more (θ ≧ 360 degrees). When the rotation angle θ is not 360 degrees or more (θ <360 degrees), the process proceeds to step S53.
次のステップS53では、基準画像生成部510の画像回転部514が、基準画像保持部606に保持された回転角度0度(θ=0)に対応する基準画像を回転角度θ回転させる。回転角度θ回転された基準画像(以下、回転角度θの基準画像という)は、基準画像保持部606に保持される。基準画像保持部606が回転角度θの基準画像を格納し保持した後、ステップS51に戻り、画像回転処理が継続される。
In the next step S53, the
一方、ステップS52において、回転角度θが360度以上である場合(θ≧360度)、回転角度差θdごとに回転させた基準画像の作成が終了したと判定され、図5のステップS18の回転画像作成処理が完了する。このようにして図5のステップS18の回転基準画像生成処理が完了し、回転角度差θdずつ回転させた基準画像それぞれが、回転角度θの基準画像として基準画像保持部606に保持される。基準画像保持部606が各回転角度θの基準画像を格納し保持した後、図5のステップS19に戻る。また、図5のステップS25の回転基準画像生成処理が完了し、回転角度差θdずつ回転させた基準画像それぞれが、回転角度θの基準画像として基準画像保持部606に保持される。基準画像保持部606が各回転角度θの基準画像を格納し保持した後、図5の基準画像生成処理が完了する。
On the other hand, when the rotation angle θ is 360 degrees or more in step S52 (θ ≧ 360 degrees), it is determined that the creation of the reference image rotated for each rotation angle difference θd is completed, and the rotation in step S18 of FIG. The image creation process is completed. In this way, the rotation reference image generation process in step S18 of FIG. 5 is completed, and each of the reference images rotated by the rotation angle difference θd is held in the reference
図5のステップS21の基準画像の対比判定処理について、図9を参照しながら説明する。まず、ステップS61では、基準画像生成部510が、基準画像に対するディスク番号iのディスクDの前処理画像の相対位置ずれ(回転角度ずれおよび水平方向ずれ)を補正する。相対位置ずれの補正は、例えば特開2016−134073号公報で開示される回転角度ずれおよび水平方向ずれの補正方法により行うことができる。画像記憶部6の処理画像保持部602は、前処理画像データPDを画像処理部5の基準画像生成部510に出力する。画像記憶部6の基準画像保持部606は、基準画像データRDを画像処理部5の基準画像生成部510に出力する。基準画像生成部510は、送られた前処理画像データPDに基づくディスク番号iの前処理画像と送られた基準画像データRDに基づく基準画像とを対比して、基準画像に対するディスク番号iの前処理画像の相対位置ずれを補正する。基準画像生成部510の対比判定部512は、ディスク番号iの前処理画像と各回転角度θの基準画像とを対比し、回転角度「0度」の基準画像に対するディスク番号iの前処理画像のずれ角度を導出する。基準画像生成部510の画像回転部514は、ディスク番号iの前処理画像を導出されたずれ角度θ回転する。対比判定部512は、回転角度「0度」の基準画像に対し、回転角度ずれを補正した前処理画像の水平方向ずれを補正する。このようにして相対位置ずれが補正されたディスク番号iの前処理画像は、処理画像保持部602に格納され保持される。
The reference image comparison determination process in step S21 of FIG. 5 will be described with reference to FIG. First, in step S61, the reference
次のステップS62では、対比判定部512が、基準画像に対する相対位置ずれが補正されたディスク番号iの前処理画像の相違度DFを算出する。処理画像保持部602は、前処理画像データPDを基準画像生成部510に出力する。基準画像保持部606は、基準画像データRDを基準画像生成部510に出力する。基準画像生成部510は、送られた前処理画像データPDに基づくディスク番号iの前処理画像と、送られた基準画像データRDに基づく回転角度「0度」の基準画像とを対比して、基準画像に対するディスク番号iの前処理画像の相違度DFを算出する。算出された相違度DFは画像記憶部6の図示しない記憶領域に格納される。
In the next step S62, the
次のステップS63では、相違度DFが所定の閾値以下であるか否かを判定する。相違度DFが閾値以下である場合(DF≦閾値)、ステップS64に進み、ディスク番号iの前処理画像が基準画像と一致している、換言すれば、ディスク番号iの前処理画像が基準画像に積算する画像であると判定され、図5のステップS22に戻る。他方、相違度DFが閾値を超える場合(DF>閾値)、ステップS65に進み、基準画像とディスク番号iの前処理画像とが一致していない、換言すればディスクDの前処理画像が基準画像に積算する画像ではないと判定し、図5のステップS13に戻る。 In the next step S63, it is determined whether or not the dissimilarity DF is equal to or less than a predetermined threshold value. If the dissimilarity DF is less than or equal to the threshold value (DF ≦ threshold value), the process proceeds to step S64, where the preprocessed image with the disk number i matches the reference image. And the process returns to step S22 in FIG. On the other hand, if the degree of difference DF exceeds the threshold (DF> threshold), the process proceeds to step S65, where the reference image and the preprocessed image with the disk number i do not match, in other words, the preprocessed image on the disk D is the reference image. It is determined that the image is not an image to be accumulated in step S13 and the process returns to step S13 in FIG.
次に、図4のステップS6におけるモアレ判定処理について、図10および図11を参照しながら説明する。まず、ステップS81において、ディスク番号iに「1」が設定される。換言すれば、ディスク番号iが初期化される。 Next, the moire determination process in step S6 of FIG. 4 will be described with reference to FIGS. First, in step S81, “1” is set to the disk number i. In other words, the disk number i is initialized.
次のステップS82では、モアレ画像処理部520が、基準画像保持部606に保持された基準画像を読み出す。次のステップS83では、モアレ画像処理部520が、入力画像保持部604に保持されたディスク番号iの入力画像を読み出す。
In the next step S82, the moire
次のステップS82では、モアレ画像処理部520の評価値導出部522が、ディスク番号iの入力画像と基準画像とを対比させて、評価値EVを導出する。評価値EVは、例えば、基準画像に対する入力画像の相違度または一致度を使用することができる。また、評価値EVは、例えば、単純に、基準画像と相違する入力画像の画素の個数(画素数)を用いることもできる。導出された評価値EVは画像記憶部6の図示しない記憶領域に格納される。
In the next step S82, the evaluation
次のステップS85では、ディスク番号iに「i+1」が設定される。換言すれば、現在のディスク番号iに「1」を加算して得られた値が、新たなディスク番号iとして設定される。さらに換言すれば、ディスク番号iが更新される。 In the next step S85, “i + 1” is set to the disk number i. In other words, a value obtained by adding “1” to the current disk number i is set as a new disk number i. In other words, the disk number i is updated.
次のステップS86では、ディスク番号iがあらかじめ設定された値imaxを超える(i>imax)か否かが判定される。ディスク番号iがimax以下である場合(i≦imax)、ステップS83に戻る。一方、ディスク番号iがimaxを超える場合(i>imax)、ステップS87に進む。 In the next step S86, it is determined whether or not the disk number i exceeds a preset value imax (i> imax). When the disk number i is equal to or less than imax (i ≦ imax), the process returns to step S83. On the other hand, if the disk number i exceeds imax (i> imax), the process proceeds to step S87.
次のステップS87では、モアレ画像処理部520の判定閾値設定部524が、入力画像にモアレ領域を有するかどうか、換言すれば、入力画像がモアレ画像かどうかを判定するための判定閾値DIを設定する。判定閾値DIは、評価値EVに基づく度数分布から設定される。より詳細には、判定閾値DIは、評価値EVに基づく度数分布の平均値よりも評価値が高い側の度数分布に基づいて設定される。判定閾値設定部524が判定閾値DIを設定した後、図11のステップS88に進む。設定された判定閾値DIは画像記憶部6の図示しない記憶領域に格納される。
In the next step S87, the determination
次のステップS88では、ディスク番号iに「1」が設定され、モアレ画像の番号j(以下、モアレ番号jという)が「1」が設定される。換言すれば、ディスク番号iおよびモアレ番号jが初期化される。 In the next step S88, “1” is set to the disc number i, and the moire image number j (hereinafter referred to as moire number j) is set to “1”. In other words, the disk number i and the moire number j are initialized.
次のステップS89では、モアレ画像選択部526が、画像記憶部6の図示しない記憶領域に格納された判定閾値DIを読み出す。次のステップS90では、モアレ画像選択部526が、画像記憶部6の図示しない記憶領域に格納されたディスク番号iの評価値EVを読み出す。
In the next step S89, the moire
次のステップS91では、ディスク番号iの評価値EVが判定閾値DI以下か否かが判定される。モアレ画像選択部526は、ディスク番号iの評価値EVと判定閾値DIとを比較して、その大小関係からディスク番号iの入力画像がモアレ領域を有するか否か、換言すればディスク番号iの入力画像がモアレ画像であるか否かを判定する。ディスク番号iの評価値EVが判定閾値DI以下である場合、ステップS92に進み、ディスク番号iの入力画像がモアレ領域を有する、換言すればディスク番号iの入力画像がモアレ画像であると判定され、ステップS93に進む。他方、ディスク番号iの評価値EVが判定閾値DIを超える場合、ステップS98に進み、ディスク番号iの入力画像がモアレ領域を有さない、換言すればディスク番号iの入力画像がモアレ画像ではないと判定され、ステップS96に進む。
In the next step S91, it is determined whether or not the evaluation value EV of the disk number i is equal to or less than the determination threshold value DI. The moiré
ステップS93では、画像記憶部6のモアレ画像保持部608が、モアレ番号jのモアレ画像を格納し、保持する。モアレ画像処理部520は、モアレ画像選択部526がモアレ領域を有すると判定したディスク番号iの入力画像を、モアレ画像データMDとしてモアレ画像保持部608に出力する。モアレ画像保持部608は、送られたモアレ画像データMDに基づくモアレ画像をモアレ番号jのモアレ画像として格納し保持する。
In step S93, the moire
次のステップS94では、モアレ番号jが「j+1」に設定される。換言すれば、現在のモアレ番号jに「1」を加算して得られた値が、新たなモアレ番号jとして設定される。さらに換言すれば、モアレ番号jが更新される。 In the next step S94, the moire number j is set to “j + 1”. In other words, a value obtained by adding “1” to the current moire number j is set as a new moire number j. In other words, the moire number j is updated.
次のステップS95では、最大モアレ番号jmaxが「j」に設定される。換言すれば、最大モアレ番号jmaxが更新される。 In the next step S95, the maximum moire number jmax is set to “j”. In other words, the maximum moire number jmax is updated.
次のステップS96では、ディスク番号iが「i+1」に設定される。換言すれば、現在のディスク番号iに「1」を加算して得られた値が、新たなディスク番号iとして設定される。さらに換言すれば、ディスク番号iが更新される。 In the next step S96, the disk number i is set to “i + 1”. In other words, a value obtained by adding “1” to the current disk number i is set as a new disk number i. In other words, the disk number i is updated.
次のステップS97では、ディスク番号iがあらかじめ設定された値imaxを超える(i>imax)か否かが判定される。換言すれば、図5の基準画像生成処理において、入力画像を入力画像保持部604に格納して保持したディスクDの総枚数imaxを超えるか否かが判定される。ディスク番号iがimax以下である場合(i≦imax)、ステップS90に戻る。一方、ディスク番号iがimaxを超える場合(i>imax)、入力画像保持部604に保持されたディスク番号iの入力画像全てに対するモアレ領域を有するか否かの判定、換言すればモアレ画像であるか否かの判定が完了したとして、モアレ画像判定が終了する。このようにして図4のステップS6のモアレ画像判定処理が完了し、モアレ画像と判定されたディスク番号iの入力画像それぞれが、モアレ番号jのモアレ画像としてそれぞれモアレ画像保持部608に保持される。モアレ画像保持部608がモアレ画像を格納し保持した後、図4のステップS7に戻る。
In the next step S97, it is determined whether or not the disk number i exceeds a preset value imax (i> imax). In other words, in the reference image generation process of FIG. 5, it is determined whether or not the total number imax of the disks D stored and held in the input
図4のステップS7のマスク画像生成処理について、図12および図13を参照しながら説明する。まず、ステップS121において、モアレ番号jに「1」が設定される。換言すれば、モアレ番号jが初期化される。 The mask image generation process in step S7 of FIG. 4 will be described with reference to FIGS. First, in step S121, “1” is set to the moire number j. In other words, the moire number j is initialized.
次のステップS122では、モアレ画像保持部608が、積算モアレ画像を格納し、保持する。画像記憶部6のモアレ画像保持部608は、モアレ番号jのモアレ画像に基づくモアレ画像データMDをモアレ画像処理部520に出力する。モアレ画像処理部520は、送られたモアレ画像データMDに基づくモアレ番号jのモアレ画像を、積算モアレ画像データIMDとしてモアレ画像保持部608に出力する。モアレ画像保持部608は、送られた積算モアレ画像データIMDに基づく積算モアレ画像を格納し、保持する。換言すれば、モアレ番号jのモアレ画像が、積算モアレ画像としてモアレ画像保持部608に保持される。さらに換言すれば、このステップS122では、モアレ番号「1」のモアレ画像が、積算モアレ画像として、モアレ画像保持部608に保持される。
In the next step S122, the moire
次のステップS123では、モアレ番号jに「j+1」が設定される。換言すれば、現在のモアレ番号jに「1」を加算して得られた値が、新たなモアレ番号jとして設定される。さらに換言すれば、モアレ番号jが更新される。 In the next step S123, “j + 1” is set to the moire number j. In other words, a value obtained by adding “1” to the current moire number j is set as a new moire number j. In other words, the moire number j is updated.
次のステップS124では、モアレ画像積算部528が、積算モアレ画像とモアレ番号jのモアレ画像とに対して画像積算処理を行う。画像記憶部6のモアレ画像保持部608は、積算モアレ画像データIMDおよびモアレ番号jのモアレ画像に基づくモアレ画像データMDをモアレ画像処理部520に出力する。モアレ画像積算部528は、送られた積算モアレ画像データIMDに基づく積算モアレ画像と、送られたモアレ画像データMDに基づくモアレ番号jのモアレ画像とに対して画像積算処理を行う。換言すれば、積算モアレ画像に、モアレ番号jのモアレ画像を積算する。モアレ画像処理部520は、画像積算処理された積算モアレ画像を、積算モアレ画像データIMDとしてモアレ画像保持部608に出力する。モアレ画像保持部608は、送られた積算モアレ画像データIMDに基づく積算モアレ画像を格納し、保持する。
In the next step S124, the moire
次のステップS125では、モアレ番号jに「j+1」が設定される。換言すれば、現在のモアレ番号jに「1」を加算して得られた値が、新たなモアレ番号jとして設定される。さらに換言すれば、モアレ番号jが更新される。 In the next step S125, “j + 1” is set to the moire number j. In other words, a value obtained by adding “1” to the current moire number j is set as a new moire number j. In other words, the moire number j is updated.
次のステップS126では、モアレ番号jが、モアレ画像保持部608に保持されているディスクDのモアレ画像の総枚数jmaxを超える(j>jmax)か否かが判定される。モアレ番号jがjmax以下の場合、ステップS125戻り、積算モアレ画像にモアレ番号jのモアレ画像を積算する処理が継続される。一方、モアレ番号jがjmaxを超える場合、図13のステップS130に進む。 In the next step S126, it is determined whether or not the moire number j exceeds the total number jmax of the moire images of the disc D held in the moire image holding unit 608 (j> jmax). When the moire number j is equal to or less than jmax, the process returns to step S125, and the process of integrating the moire image with the moire number j on the integrated moire image is continued. On the other hand, when the moire number j exceeds jmax, the process proceeds to step S130 in FIG.
次のステップS127では、マスク閾値設定部542が、基準画像と積算モアレ画像との各画素の画素値の差の絶対値(差分画素値)を差分情報として算出する。基準画像保持部606は、基準画像データRDをマスク画像処理部520に出力する。モアレ画像保持部608は、積算モアレ画像データIMDをマスク画像処理部520に出力する。マスク画像処理部520のマスク閾値設定部542は、送られた基準画像データRDに基づく基準画像と積算モアレ画像データIMDに基づく積算モアレ画像との各画素の画素値の差の絶対値(差分画素値)を算出する。算出された差分情報(各画素の差分画素値)は、画像記憶部6の図示しない記憶領域に格納される。
In the next step S127, the mask threshold
次のステップS128では、マスク閾値設定部542が、マスク閾値MIを設定する。マスク閾値設定部542は、基準画像と積算モアレ画像との差分情報に基づいてマスク閾値MIを設定する。換言すれば、マスク閾値設定部542は、マスク閾値MIを、基準画像と積算モアレ画像との各画素の差分画素値に対する度数分布表から設定する。設定されたマスク閾値MIは、画像記憶部6の図示しない記憶領域に格納される。
In the next step S128, the mask threshold
次のステップS129では、マスク画像生成部544が、基準画像と積算モアレ画像との差分情報に基づく差分画像を二値化する。換言すれば、マスク画像生成部544が、基準画像と積算モアレ画像との各画素の差分画素値に基づく差分画像を二値化する。マスク画像処理部540は、二値化された差分画像を、マスク画像データBMDとしてマスク画像保持部610に出力する。マスク画像保持部610は、送られたマスク画像データBMDに基づくマスク画像を格納し、保持する。このようにして図4のステップS7のマスク画像生成処理が完了し、マスク画像保持部610がマスク画像を格納し保持した後、図4のディスク判別装置1の登録モードが終了する。
In the next step S129, the mask
図4のステップS8の真偽判別処理について、図13を参照しながら説明する。まず、ステップS141において、回転角度θに「0度」が設定される。換言すれば、回転角度θが初期化される。 The authenticity determination process in step S8 of FIG. 4 will be described with reference to FIG. First, in step S141, “0 degree” is set as the rotation angle θ. In other words, the rotation angle θ is initialized.
次のステップS142では、判別対象であるディスクDの表面および裏面のいずれか一面の撮像画像を取得する撮像画像取得処理が実行される。画像取得部2は、撮像位置に到達した判別対象のディスクDを撮像して、該ディスクDの撮像画像を取得する。画像取得部2は、取得された判別対象のディスクDの撮像画像に基づく撮像画像データIDを制御部4に出力する。制御部4は供給された撮像画像データIDを画像記憶部6に転送する。画像記憶部6は、送られた撮像画像データIDに基づく判別対象のディスクDの撮像画像を撮像画像保持部600に格納し保持する。この撮像画像取得処理は、図5のステップS13の撮像画像取得処理と全く同じであり、図6に示す撮像画像取得処理のフローチャートにて実行される。
In the next step S142, a captured image acquisition process for acquiring a captured image of either one of the front surface and the back surface of the disc D to be determined is executed. The
次のステップS143では、前処理部500が、判別対象のディスクDの撮像画像に対して前処理を実行する。制御部4は画像記憶部6に記憶部制御信号MCSを出力し、画像記憶部6は記憶部制御信号MCSに基づいて撮像画像保持部600に保持された判別対象のディスクDの撮像画像に基づく撮像画像データIDを前処理部500に出力する。前処理部500は、送られた撮像画像データIDに基づく判別対象のディスクDの撮像画像に対して、前処理を行う。前処理部500は、前処理された判別対象のディスクDの撮像画像を、前処理画像データPDとして画像記憶部6の処理画像保持部602に出力する。処理画像保持部602は、送られた前処理画像データPDに基づく判別対象のディスクDの前処理画像が被判別画像として格納され保持される。この前処理は、図5のステップS14の前処理と全く同じであり、図7に示す前処理のフローチャートにて実行される。
In the next step S143, the
次のステップS144では、判別部560の相違度導出部564が、判別対象のディスクDの真偽を判別する。相違度導出部564は、基準画像と被判別画像とを対比して、基準画像に対する被判別画像の相違度DFを算出する。相違度導出部564は、算出された相違度DFに基づいて、判別対象のディスクDの真偽を判別する。ステップS145における対比判定処理の詳細については後述する。ステップS145の対比判定処理が完了した後、図4のステップS8の真贋判別処理が終了する。
In the next step S144, the
図14の真偽判別処理のステップS145の対比判定処理について、図14を参照しながら説明する。まず、ステップS161において、判別部560の相違度導出部564が、基準画像に対する被判別画像の相対位置ずれを補正する。相対位置ずれの補正は、前述の図9のステップS61のずれ補正処理と同様に、例えば特開2016−134073号公報で開示される回転角度ずれおよび水平方向ずれの補正方法により行うことができる。相違度導出部564は、基準画像と被判別画像とを対比し、基準画像に対する被判別画像の相対位置ずれを補正する。相違度導出部564は、被判別画像と各回転角度θの基準画像とを対比し、回転角度「0度」の基準画像に対する被判別画像のずれ角度を導出する。相違度導出部564は、被判別画像を導出されたずれ角度θ回転する。相違度導出部564は、回転角度「0度」の基準画像に対し、回転角度ずれを補正した被判別画像の水平方向ずれを補正する。このようにして、相違度導出部564は、回転角度「0度」の基準画像に対する相対位置ずれを補正した被判別画像を準備する。
The comparison determination process in step S145 of the authenticity determination process in FIG. 14 will be described with reference to FIG. First, in step S161, the
次のステップS162では、判別部560のマスク画像適用部562が、基準画像および被判別画像のそれぞれに、マスク処理を行う。換言すれば、マスク画像適用部562が、基準画像および被判別画像のそれぞれに、マスク画像を適用する。さらに換言すれば、マスク画像適用部562が、回転角度「0度」の基準画像および被判別画像のそれぞれにマスク処理を行う。マスク画像保持部610は、マスク画像データBMDを判別部560に出力する。マスク画像適用部562は、回転角度「0度」の基準画像および被判別画像のそれぞれに、送られたマスク画像データBMDに基づくマスク画像を適用する。
In the next step S162, the mask
次のステップS163では、相違度導出部564が、マスク処理された回転角度「0度」の基準画像(以下、マスク処理された基準画像という。)に対するマスク処理された被判別画像の相違度DFを算出する。基準画像生成部510は、マスク処理された基準画像とマスク処理された被判別画像とを対比して、マスク処理された基準画像に対するマスク処理された被判別画像の相違度DFを算出する。算出された相違度DFは画像記憶部6の図示しない記憶領域に格納される。
In the next step S163, the degree-of-
次のステップS164では、相違度DFが所定の閾値以下であるか否かを判定する。相違度DFが閾値以下である場合(DF≦閾値)、ステップS165に進み、マスク処理された被判別画像がマスク処理された基準画像と一致していると判定(一致判定)される。換言すれば、ディスクDが真正ディスクであると判定される。他方、相違度DFが閾値を超える場合(DF>閾値)、ステップS166に進み、マスク処理された被判別画像がマスク処理された基準画像と一致していないと判定(不一致判定)される。換言すれば、ディスクDが偽ディスクであると判定される。このようにして、図4のステップS8の判別対象のディスクDの真偽判別処理が完了し、その判定結果が画像処理部5から制御部4に判別信号ISとして出力される。画像処理部5が制御部4に判別信号ISを出力した後、図4のディスク判別装置1の判別モードが終了する。
In the next step S164, it is determined whether or not the dissimilarity DF is equal to or less than a predetermined threshold value. When the dissimilarity DF is less than or equal to the threshold (DF ≦ threshold), the process proceeds to step S165, where it is determined (match determination) that the discriminated image subjected to mask processing matches the reference image subjected to mask processing. In other words, it is determined that the disk D is a genuine disk. On the other hand, if the dissimilarity DF exceeds the threshold value (DF> threshold value), the process proceeds to step S166, where it is determined that the discriminated image subjected to mask processing does not match the reference image subjected to mask processing (non-coincidence determination). In other words, it is determined that the disk D is a fake disk. In this way, the authenticity determination process for the disc D to be determined in step S8 in FIG. 4 is completed, and the determination result is output from the image processing unit 5 to the control unit 4 as the determination signal IS. After the image processing unit 5 outputs the discrimination signal IS to the control unit 4, the discrimination mode of the
(変形例)
本発明は上記実施例に限定されるものではなく、種々の変更が可能である。本実施例では、基準画像とディスクDの前処理画像(被判別画像)とを対比させる都度、基準画像および被判別画像にマスク画像の合成処理を行っているが、例えば、図4のステップS7のマスク画像生成処理において、図12のステップS132の二値化処理でマスク画像を生成した後に、回転角度「0度」の基準画像にマスク処理を行うようにすることも可能である。その場合、図15に示すように、ステップS209でマスク画像を生成した後、ステップS210で基準画像保持部606に保持された回転角度「0度」の基準画像にマスク画像を適用するマスク処理を実行する。そして、図14の対比判定処理のステップS162では、非判別画像にのみマスク処理を行う。なお、図15のステップS201〜S209の各処理は、図13のステップ121〜129の各処理と全く同じであるので、説明は省略する。このようにして、図4のステップS7のマスク画像生成処理において、マスク処理を行った基準画像を準備することによって、図13の真偽判別処理のステップS145の対比判定処理を行うたびに、基準画像にマスク処理を行う必要がなくなり、図4のステップS8の真偽判定処理を効率よく実行することができる。
(Modification)
The present invention is not limited to the above-described embodiments, and various modifications can be made. In this embodiment, each time the reference image and the preprocessed image (discriminated image) on the disk D are compared, the mask image is combined with the reference image and the discriminated image. For example, step S7 in FIG. In the mask image generation process, after the mask image is generated by the binarization process in step S132 of FIG. 12, the mask process may be performed on the reference image with the rotation angle “0 degrees”. In this case, as shown in FIG. 15, after generating a mask image in step S209, a mask process is performed in which the mask image is applied to the reference image with the rotation angle “0 degrees” held in the reference
また、図4のステップS8の真偽判別処理において、図13のステップS142の撮像画像取得処理の前に、回転角度「0度」の基準画像にマスク画像を適用するマスク処理を行うようにすることも可能である。その場合、図16に示すように、ステップS243の撮像画像取得処理の前に、ステップS242で基準画像にマスク処理を行う。そして、図14の対比判定処理のステップS162では、被判別画像にのみマスク処理を行う。なお、図16のステップS241、S243およびS244のそれぞれの処理は、図13のステップS141、S142およびS143のそれぞれの処理と全く同じであるので、説明は省略する。このようにして、図16の真偽判別処理のステップS243の撮像画像取得処理の前に、前もってマスク処理を行った基準画像を準備することによって、図16のステップS245の対比判定を効率よく実行することができる。 Further, in the authenticity determination process in step S8 in FIG. 4, a mask process for applying a mask image to the reference image with the rotation angle “0 degrees” is performed before the captured image acquisition process in step S142 in FIG. It is also possible. In that case, as shown in FIG. 16, before the captured image acquisition processing in step S243, mask processing is performed on the reference image in step S242. Then, in step S162 of the comparison determination process in FIG. 14, only the masked image is masked. Note that the processes in steps S241, S243, and S244 in FIG. 16 are exactly the same as the processes in steps S141, S142, and S143 in FIG. In this way, the comparison determination in step S245 in FIG. 16 is efficiently performed by preparing the reference image that has been subjected to the mask process in advance before the captured image acquisition process in step S243 of the authenticity determination process in FIG. can do.
1 ディスク判別装置
2 画像取得部
3 撮像タイミングセンサ
4 制御部
5 画像処理部
6 画像記憶部
7 入出力I/F
8 状態表示器
9 判別基準記憶部
11 投光装置
12 二次元撮像装置
21 面投光装置
22 発光素子
23 導光板
24 反射シート
25 拡散シート
26 ハーフミラー
31 ディスク搬送路
32 ベース板
33 撮像窓
34 透光板
35 撮像領域
41 集光レンズ
42 撮像素子
500 前処理部
502 エッジ抽出部
504 中心抽出部
506 画像切出部
510 基準画像生成部
512 対比判定部
514 画像回転部
516 画像積算部
520 モアレ画像処理部
522 評価値導出部
524 判定閾値設定部
526 モアレ画像選択部
528 モアレ画像積算部
540 マスク画像処理部
542 マスク閾値設定部
544 マスク画像生成部
560 判定部
562 マスク画像適用部
564 相違度導出部
600 撮像画像保持部
602 処理画像保持部
604 入力画像保持部
606 基準画像保持部
608 モアレ画像保持部
610 マスク画像保持部
D ディスク
ID 撮像画像データ
BD 入力画像データ
RD 基準画像データ
PD 処理画像データ
MD モアレ画像データ
IMD 積算モアレ画像データ
BMD マスク画像データ
DL 搬送方向
ICS 撮像制御信号
IS 判別信号
LCS 点灯制御信号
TS タイミング信号
MCS 記憶部制御信号
PCS 画像処理制御信号
SS 状態報知指示信号
SLS 判別基準データ
DF 相違度
EV 評価値
DI 判定閾値
MI マスク閾値
DESCRIPTION OF
8 Status Indicator 9 Discrimination Criteria Storage Unit 11 Light Projector 12 Two-Dimensional Imaging Device 21 Surface Light Emitter 22 Light Emitting Element 23 Light Guide Plate 24 Reflective Sheet 25 Diffusion Sheet 26 Half Mirror 31 Disk Transport Path 32 Base Plate 33 Imaging Window 34 Through Optical plate 35 Imaging region 41 Condensing lens 42 Imaging element 500 Preprocessing unit 502 Edge extraction unit 504 Center extraction unit 506 Image extraction unit 510 Reference image generation unit 512 Comparison determination unit 514 Image rotation unit 516 Image integration unit 520 Moire image processing Unit 522 evaluation value derivation unit 524 determination threshold setting unit 526 moire image selection unit 528 moire image integration unit 540 mask image processing unit 542 mask threshold setting unit 544 mask image generation unit 560 determination unit 562 mask image application unit 564 difference degree derivation unit 600 Captured image holding unit 602 Processed image holding unit 604 Input image holding unit 06 Reference image holding unit 608 Moire image holding unit 610 Mask image holding unit D Disk ID Captured image data BD Input image data RD Reference image data PD Processed image data MD Moire image data IMD Integrated moire image data BMD Mask image data DL Transport direction ICS Imaging control signal IS Discrimination signal LCS Lighting control signal TS Timing signal MCS Storage unit control signal PCS Image processing control signal SS State notification instruction signal SLS Discrimination reference data DF Difference EV Evaluation value DI Determination threshold MI Mask threshold
Claims (8)
真正ディスクとして判別すべき複数のディスクのそれぞれに対応する複数の入力画像を積算して前記基準画像を生成する基準画像生成部と、
前記複数の入力画像のそれぞれと前記基準画像との対比結果に基づいて前記モアレ領域を有する複数のモアレ画像を前記複数の入力画像の中から選択するモアレ画像選択部と、
前記複数のモアレ画像を積算した積算モアレ画像と前記基準画像との対比結果に基づき前記モアレ領域を有効画素から除外するマスク画像を生成するマスク画像生成部と、
入力された前記被判別画像と前記基準画像とを前記マスク画像を適用して対比することにより前記判別対象ディスクの真偽を判別する判別部と、
を備えるディスク判別装置。 A disc discriminating apparatus that discriminates the authenticity of the disc to be discriminated by comparing a discriminated image corresponding to the disc to be discriminated with a reference image by excluding a moire area from effective pixels,
A reference image generation unit that generates a reference image by accumulating a plurality of input images corresponding to each of a plurality of discs to be determined as a genuine disc;
A moire image selection unit that selects a plurality of moire images having the moire region from the plurality of input images based on a comparison result between each of the plurality of input images and the reference image;
A mask image generating unit that generates a mask image that excludes the moire region from effective pixels based on a comparison result between the accumulated moire image obtained by integrating the plurality of moire images and the reference image;
A discriminator for discriminating the authenticity of the disc to be discriminated by comparing the input discriminated image and the reference image by applying the mask image;
A disk discrimination device comprising:
前記評価値導出部により導出された複数の前記評価値の度数分布から前記モアレ画像の判定閾値を設定する判定閾値設定部と、
をさらに備え、
前記モアレ画像選択部が、前記複数の入力画像の評価値のそれぞれについて前記判定閾値を基準に判定することにより前記モアレ画像を選択する請求項1に記載のディスク判別装置。 An evaluation value deriving unit for deriving an evaluation value of matching with respect to the reference image for each of the plurality of input images;
A determination threshold setting unit that sets a determination threshold of the moire image from a plurality of frequency distributions of the evaluation values derived by the evaluation value deriving unit;
Further comprising
The disc determination device according to claim 1, wherein the moire image selection unit selects the moire image by determining each of the evaluation values of the plurality of input images based on the determination threshold.
真正ディスクとして判別すべき複数のディスクのそれぞれに対応する複数の入力画像を積算して前記基準画像を生成する基準画像生成行程と、
前記複数の入力画像のそれぞれと前記基準画像との対比結果に基づいて前記モアレ領域を有する複数のモアレ画像を前記複数の入力画像の中から選択するモアレ画像選択行程と、
前記複数のモアレ画像を積算した積算モアレ画像と前記基準画像との対比結果に基づき前記モアレ領域を有効画素から除外するマスク画像を生成するマスク画像生成行程と、
入力された前記被判別画像と前記基準画像とを前記マスク画像を適用して対比することにより前記判別対象ディスクの真偽を判別する判別行程と、
を備えるディスク判別方法。 A disc discriminating method for discriminating the authenticity of the disc to be discriminated by comparing a discriminated image corresponding to the disc to be discriminated with a reference image by excluding a moire area from effective pixels,
A reference image generation step of generating a reference image by accumulating a plurality of input images corresponding to each of a plurality of discs to be identified as authentic discs;
A moire image selection step of selecting a plurality of moire images having the moire region from the plurality of input images based on a comparison result between each of the plurality of input images and the reference image;
A mask image generation step of generating a mask image for excluding the moire region from effective pixels based on a comparison result between the accumulated moire image obtained by integrating the plurality of moire images and the reference image;
A discrimination process for discriminating the authenticity of the disc to be discriminated by comparing the inputted discriminated image and the reference image by applying the mask image;
Disc discriminating method comprising:
前記評価値導出行程において導出された複数の前記評価値の度数分布から前記モアレ画像の判定閾値を設定する判定閾値設定行程と、
をさらに備え、
前記モアレ画像選択行程において、前記複数の入力画像の評価値のそれぞれについて前記判定閾値を基準に判定することにより前記モアレ画像を選択する請求項5に記載のディスク判別方法。 An evaluation value deriving step of deriving an evaluation value of matching with the reference image for each of the plurality of input images;
A determination threshold setting step of setting a determination threshold of the moire image from a plurality of frequency distributions of the evaluation values derived in the evaluation value derivation step;
Further comprising
The disc determination method according to claim 5, wherein, in the moire image selection process, the moire image is selected by determining each of the evaluation values of the plurality of input images based on the determination threshold.
In the mask image generation process, the difference image between the accumulated moire image and the reference image is binarized using a value that maximizes the degree of separation in the frequency distribution of the difference pixel value between the accumulated moire image and the reference image as a threshold value. The disc discrimination method according to claim 5, wherein the converted image is used as the mask image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017162475A JP6723561B2 (en) | 2017-08-25 | 2017-08-25 | Disk discriminating apparatus and disc discriminating method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017162475A JP6723561B2 (en) | 2017-08-25 | 2017-08-25 | Disk discriminating apparatus and disc discriminating method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019040449A true JP2019040449A (en) | 2019-03-14 |
JP6723561B2 JP6723561B2 (en) | 2020-07-15 |
Family
ID=65726072
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017162475A Active JP6723561B2 (en) | 2017-08-25 | 2017-08-25 | Disk discriminating apparatus and disc discriminating method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6723561B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111913873A (en) * | 2020-06-17 | 2020-11-10 | 浙江数链科技有限公司 | Picture verification method, device and system and computer readable storage medium |
KR20230014401A (en) * | 2021-07-21 | 2023-01-30 | (주)캠시스 | Moire detecting method for inspecting defect |
-
2017
- 2017-08-25 JP JP2017162475A patent/JP6723561B2/en active Active
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111913873A (en) * | 2020-06-17 | 2020-11-10 | 浙江数链科技有限公司 | Picture verification method, device and system and computer readable storage medium |
KR20230014401A (en) * | 2021-07-21 | 2023-01-30 | (주)캠시스 | Moire detecting method for inspecting defect |
KR102613682B1 (en) * | 2021-07-21 | 2023-12-14 | (주)캠시스 | Moire detecting method for inspecting defect |
Also Published As
Publication number | Publication date |
---|---|
JP6723561B2 (en) | 2020-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6002921B2 (en) | Disc discrimination method, disc discrimination device, and disc sorting device | |
JP3652545B2 (en) | Coin discrimination device | |
US5494147A (en) | Coin discriminating apparatus | |
EP1388821B1 (en) | Coin discriminating method and apparatus | |
US10262232B2 (en) | Methods and systems for generating a fingerprint for verification of a reference object | |
JP5838469B2 (en) | Disc discrimination method, disc discrimination device, and disc sorting device | |
TWI332076B (en) | ||
JP2001175912A (en) | Coin discriminating device | |
JP6723561B2 (en) | Disk discriminating apparatus and disc discriminating method | |
JP5193675B2 (en) | Coin identification device | |
JPH09319916A (en) | Coin-discriminating device | |
JP5264343B2 (en) | Coin identification method and coin identification device | |
JPH1114557A (en) | Coin recognition system | |
JP6481126B2 (en) | Disc color discrimination device and color discrimination method | |
JP5953553B2 (en) | Disc discrimination method, disc discrimination device, and disc sorting device | |
JP6406514B2 (en) | Disk identification device and disk identification method | |
JP6826712B2 (en) | Disk image acquisition device and disk discrimination device | |
JP6807581B2 (en) | Disc image acquisition device | |
JP5953614B2 (en) | Disc discrimination method, disc discrimination device, and disc sorting device | |
JP6749005B2 (en) | Disk discriminating apparatus and disc discriminating method | |
US9947161B2 (en) | Disk image acquiring device and disk sorting device | |
EP2804154B1 (en) | Disk image acquiring device and disk sorting device | |
JP5906484B2 (en) | Disc image acquisition device and disc sorting device | |
JP3012128B2 (en) | Coin discriminator | |
JP4231445B2 (en) | Coin identification device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190529 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190606 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200313 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200324 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200417 |
|
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: 20200618 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200618 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6723561 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 |