JP2019040449A - Disk discrimination device and disk discrimination method - Google Patents

Disk discrimination device and disk discrimination method Download PDF

Info

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
Application number
JP2017162475A
Other languages
Japanese (ja)
Other versions
JP6723561B2 (en
Inventor
弘 伴野
Hiroshi Tomono
弘 伴野
鈴木 大志
Hiroshi Suzuki
大志 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Asahi Seiko Co Ltd
Original Assignee
Asahi Seiko Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Asahi Seiko Co Ltd filed Critical Asahi Seiko Co Ltd
Priority to JP2017162475A priority Critical patent/JP6723561B2/en
Publication of JP2019040449A publication Critical patent/JP2019040449A/en
Application granted granted Critical
Publication of JP6723561B2 publication Critical patent/JP6723561B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Testing Of Coins (AREA)

Abstract

To provide a disk discrimination device and a disk discrimination method capable of automatically setting a moire region or the like of a disk and preventing deterioration of the discrimination accuracy of the disk due to the moire.SOLUTION: The disk discrimination device includes: a reference image generating part for integrating a plurality of input images corresponding to each of a plurality of disks to be discriminated as an authentic disk and generating a reference image; a moire image selecting part for selecting a plurality of moire images having moire regions from the plurality of input images on the basis of a comparison result between each of the plurality of input images and the reference image; a mask image generating part for generating a mask image in which the moire region is excluded from an effective pixel on the basis of a comparison result between the integrated moire images obtained by integrating the plurality of moire images and the reference image; and a discrimination part for discriminating the authenticity of a disk to be discriminated by comparing an input discriminated image and the reference image by applying the mask image.SELECTED DRAWING: Figure 3

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 Patent Document 1 and Patent Document 2.

一般に、メダルや硬貨などのディスクは、その表面に模様が形成されており、当該模様を撮像装置で撮像して画像を取得したしたときに、撮像装置の画素配列と模様とが干渉してモアレが発生する場合がある。ディスクを撮像する場合、ディスクの回転角度に応じてモアレの発生状態が変化する。換言すれば、ディスクの回転角度に応じて取得された画像における模様がモアレの影響を受けて変化する。そのため、判別対象ディスクの撮像画像を比較の基準となる画像(以下、基準画像という)と対比して相違度または一致度を導出する際に、モアレの影響によって相違度または一致度が変化し、所望の判別結果を得られないという問題がある。   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 Patent Document 1, in consideration of the fact that moire appears and the reflectance changes significantly depending on the angle between the pixel arrangement of the image sensor and the pattern, the reference is excluded except for a specific portion depending on the rotation angle. Checking with images.

他方、特許文献2に開示された第2の従来技術では、年号部のようにコインの発行年度により文字が変更されて模様自体が一部変化する部分についてマスクをかけることにより、認識精度の低下要因を減少させている。   On the other hand, in the second prior art disclosed in Patent Document 2, the recognition accuracy is improved by applying a mask to a part where the character is changed due to the issuance year of the coin and the pattern itself partially changes like the year part. Decreasing factors are decreasing.

特開2004−157975号公報(請求項1、請求項8、段落番号0018、0019、図15)JP 2004-157975 A (Claim 1, Claim 8, Paragraph Nos. 0018, 0019, FIG. 15) 特開平9−27056号公報(段落番号0013、0019、図3)JP-A-9-27056 (paragraph numbers 0013 and 0019, FIG. 3)

第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.

本発明の一実施例のディスク判別装置を示す概略ブロック図である。1 is a schematic block diagram illustrating a disk discrimination device according to an embodiment of the present invention. 図1のディスク判別装置を構成する画像取得部を示す要部断面図である。It is principal part sectional drawing which shows the image acquisition part which comprises the disc discrimination | determination apparatus of FIG. 図1のディスク判別装置を構成する画像処理部および画像記憶部を示す概略ブロック図である。It is a schematic block diagram which shows the image process part and image memory | storage part which comprise the disk discrimination | determination apparatus of FIG. 図1のディスク判別装置の動作を説明するためのフローチャートである。3 is a flowchart for explaining the operation of the disk discriminating apparatus in FIG. 1. 図4の基準画像生成処理の詳細を示すフローチャートである。5 is a flowchart showing details of reference image generation processing in FIG. 4. 図5の撮像画像取得処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the captured image acquisition process of FIG. 図5の前処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the pre-processing of FIG. 図5の画像回転処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the image rotation process of FIG. 図5の対比判定処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the contrast determination process of FIG. 図4のモアレ画像判定処理の詳細を示すフローチャートである。5 is a flowchart showing details of moire image determination processing in FIG. 4. 図4のモアレ画像判定処理の詳細を示すフローチャートで、図10の続きである。FIG. 10 is a flowchart showing details of the moire image determination process in FIG. 4 and is a continuation of FIG. 10. 図4のマスク画像生成処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the mask image generation process of FIG. 図4の真偽判定処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the authenticity determination process of FIG. 図13の対比判定処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the contrast determination process of FIG. 図12のマスク画像生成処理の変形例の詳細を示すフローチャートである。It is a flowchart which shows the detail of the modification of the mask image generation process of FIG. 図13の真偽判定処理の変形例の詳細を示すフローチャートである。It is a flowchart which shows the detail of the modification of the authenticity determination process of FIG.

以下、本発明の実施の形態を添付図面に基づいて説明する。   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 disk discriminating apparatus 1 according to an embodiment of the present invention. The disc discriminating apparatus 1 has a function of acquiring a captured image of the front surface or the back surface (hereinafter, generically referred to as “front surface”) of the disc D and discriminating the authenticity of the disc D based on the acquired captured image. As shown in FIG. 1, the disc discrimination device 1 includes an image acquisition unit 2, an imaging timing sensor 3, a control unit 4, an image processing unit 5, an image storage unit 6, an input / output interface (I / F) 7, and a status indicator. 8 and a discrimination reference storage unit 9.

まず、図1および図2を参照しながら、画像取得部2について説明する。画像取得部2は、図2に示すように、ディスク搬送路31を搬送されるディスクDの表面の撮像画像を取得し、ディスクDの撮像画像データIDを制御部4に出力する機能を有する。画像取得部2は、投光装置11、二次元撮像装置12およびハーフミラー26を含んでいる。画像取得部2は、ディスク搬送路31においてディスクDの一面を支持するベース板32に開口された撮像窓33に対応して配置されている。   First, the image acquisition unit 2 will be described with reference to FIGS. 1 and 2. As shown in FIG. 2, the image acquisition unit 2 has a function of acquiring a captured image of the surface of the disk D transported through the disk transport path 31 and outputting the captured image data ID of the disk D to the control unit 4. The image acquisition unit 2 includes a light projecting device 11, a two-dimensional imaging device 12, and a half mirror 26. The image acquisition unit 2 is arranged corresponding to the imaging window 33 opened in the base plate 32 that supports one surface of the disk D in the disk transport path 31.

撮像窓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 imaging window 33 defines an imaging area 35 of the disk D that is transported through the disk transport path 31. The imaging window 33 has a pair of long sides substantially parallel to the transport direction DL of the disk D transported through the disk transport path 31 and a pair of short sides substantially perpendicular to the transport direction DL. A translucent plate 34 having translucency is disposed in the imaging window 33, and the surface of the translucent plate 34 on the side of the disk conveyance path 31 is substantially the same as the surface of the base plate 32, in other words, the bottom surface of the disk conveyance path 31. It is composed of one. The length of the pair of long sides of the imaging window 33 is set larger than the diameter of the disk D. This is because information regarding the diameter of the disk D in the longitudinal direction of the imaging window 33 is acquired. The short sides of the image pickup window 33 are arranged so that a straight line connecting the midpoints of the short sides of the image pickup window 33 and the locus of the center of the disk D conveyed on the disk transfer path 31 substantially coincide. This is because the information on the surface of the disk D can be obtained with certainty.

投光装置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 device 11 has a function of projecting light onto the surface of the disk D moving on the disk transport path 31. The light projecting device 11 is, for example, a surface light projecting device 21. This is because the use of the surface light projecting device 21 enables imaging without the influence of shadows even if the rotational phase of the disk D is different. The surface light projecting device 21 includes a light emitting element 22, a light guide plate 23, a reflection sheet 24, and a diffusion sheet 25. In this embodiment, the light emitting element 22 is an LED (Light Emitting Diode). The light emitting element (that is, LED) 22 is a light source for projecting light onto the disk D. White LED is used for the light emitting element 22, and the light emitting element 22 projects white visible light. However, a three-color LED can also be used as the light emitting element 22. As shown in FIG. 2, the light emitting element 22 is disposed so as to face the side end surface of the light guide plate 23. Therefore, the light emitting element 22 can be disposed in a plane parallel to the disk transport path 31, and the installation space is small. Note that the position of the light emitting element 22 shown in FIG. 2 is shown for convenience.

導光板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 disk transport path 31. The resin exhibits a milky white color due to the transparent or diffusing material. When the diffusion material is mixed, the diffusion sheet 25 becomes unnecessary. The light guide plate 23 can also be configured by a glass substrate. In the present embodiment, the light guide plate 23 is opposed to the imaging region 35. The reflection sheet 24 has a function of preventing light from diffusing from the light guide plate 23 to the opposite side of the disk conveyance path 31 and reflecting the light toward the disk conveyance path 31. The reflection sheet 24 is in close contact with the surface of the light guide plate 23 located on the opposite side of the disk conveyance path 31. Note that a silver film may be deposited on the light guide plate 23 instead of the reflection sheet 24. The diffusion sheet 25 has a function of uniformly diffusing light projected from the surface of the light guide plate 23 on the disk transport path 31 side. Therefore, the projection light from the light emitting element 22 guided by the light guide plate 23 or reflected by the reflection sheet 24 is made a uniform amount of light over the entire surface by the diffusion sheet 25 and projected toward the disk transport path 31. To be lighted. As a result, the light is uniformly projected onto the disk D. The projection light projected from the diffusion sheet 25 is projected at a right angle to the disk transport path 31, in other words, the disk D moving on the disk transport path 31. This is because an optical shadow due to the unevenness of the flat surface of the disk D is not created. Since the light guide plate 23, the reflection sheet 24, and the diffusion sheet 25 are thin, the light projecting device 11 can be reduced in size.

なお、本実施例の面投光装置21は、発光素子22としてのLED、導光板23、反射シート24および拡散シート25を含んで構成されているが、これに限定されない。例えば、複数個のLEDを二次元状に配列させたLEDアレイや、LED等の点光源とレンズとを組み合わせた平行光などを用いることができる。また、本実施例では、発光素子22としてLEDを用いているが、これに限定されることはなく、冷陰極線管やハロゲンランプなどの光源を用いることもできる。   In addition, although the surface projector 21 of a present Example is comprised including LED as the light emitting element 22, the light guide plate 23, the reflective sheet 24, and the diffusion sheet 25, it is not limited to this. For example, an LED array in which a plurality of LEDs are arranged two-dimensionally, or parallel light combining a point light source such as an LED and a lens can be used. In this embodiment, an LED is used as the light emitting element 22, but the present invention is not limited to this, and a light source such as a cold cathode ray tube or a halogen lamp can also be used.

ハーフミラー26は、入射光の一部を反射すると共に、入射光の一部を透過する機能を有する。具体的には、投光装置11からの投光は透過し、ディスクDからの反射光は反射する機能を有する。換言すれば、ハーフミラー26は、投光装置11からの投光をディスク搬送路31におけるディスクDに対し直角に投光し、かつ、ディスクDからの反射光をディスク搬送路31と平行な方向に反射させる。ハーフミラー26は、撮像領域35の側方において、ディスク搬送路31の面に対し45度の角度で傾斜配置されている。本実施例において、ハーフミラー26は厚みが薄い投光性樹脂で形成された有機ガラスにクロムを反射膜として蒸着またはメッキしたものである。しかしながら、これに限定されることなく、有機ガラスにかえて、硼珪酸ガラス、石英ガラス、ジルコニア、ルビーおよびサファイアなどの光学ガラスを基板ガラスとして用いても構わない。また、反射膜として、クロムにかえて、錫および銀などの金属膜や、酸化チタン、酸化シリコン、五酸化ニオブ、五酸化タンタルおよびフッ化マグネシウム等の誘電体材料を用いても構わない。さらに、ハーフミラー26は、厚みが薄い有機ガラスにかえて、直角プリズムを2個貼り合わせたプリズム型のハーフミラーを用いても構わない。   The half mirror 26 has a function of reflecting part of incident light and transmitting part of incident light. Specifically, the light projection from the light projecting device 11 is transmitted, and the reflected light from the disk D is reflected. In other words, the half mirror 26 projects the light projected from the light projecting device 11 at a right angle to the disk D in the disk transport path 31 and the reflected light from the disk D in a direction parallel to the disk transport path 31. To reflect. The half mirror 26 is disposed at an angle of 45 degrees with respect to the surface of the disk transport path 31 on the side of the imaging region 35. In this embodiment, the half mirror 26 is formed by depositing or plating chromium as a reflective film on an organic glass formed of a light-projecting resin having a small thickness. However, the present invention is not limited to this, and optical glass such as borosilicate glass, quartz glass, zirconia, ruby and sapphire may be used as the substrate glass instead of organic glass. In addition, instead of chromium, a metal film such as tin and silver, or a dielectric material such as titanium oxide, silicon oxide, niobium pentoxide, tantalum pentoxide, and magnesium fluoride may be used as the reflective film. Further, the half mirror 26 may be a prism-type half mirror in which two right-angle prisms are bonded together, instead of the thin organic glass.

二次元撮像装置12は、集光レンズ41および撮像素子42を含んでいる。集光レンズ41は、ハーフミラー26によって反射された光を所定の小さな範囲に集光する機能を有する。集光レンズ41は、上記機能から、所定の屈折率を有する凸レンズであり、ハーフミラー26の側方、換言すればハーフミラー26が傾斜している方向に配置され、ハーフミラー26と同等または小さい直径を有している。投光装置11等の形状を工夫し、集光レンズ41を小型化することが好ましい。これは、二次元撮像装置12の低価格化および小型化のためである。撮像素子42は、集光レンズ41によって集光された像を撮像する機能を有する。撮像素子42は、集光レンズ41に対してハーフミラー26の反対側、かつ集光レンズ41を介してディスクDの表面像が結像する位置に配置されている。撮像素子42は、小型化のため、CCDイメージセンサやCMOSイメージセンサが採用される。   The two-dimensional imaging device 12 includes a condenser lens 41 and an imaging element 42. The condenser lens 41 has a function of condensing the light reflected by the half mirror 26 into a predetermined small range. The condensing lens 41 is a convex lens having a predetermined refractive index because of the above function, and is disposed on the side of the half mirror 26, in other words, in the direction in which the half mirror 26 is inclined, and is equal to or smaller than the half mirror 26. It has a diameter. It is preferable to devise the shape of the light projecting device 11 and the like to reduce the size of the condenser lens 41. This is to reduce the price and size of the two-dimensional imaging device 12. The imaging element 42 has a function of capturing an image condensed by the condenser lens 41. The imaging element 42 is disposed on the opposite side of the half mirror 26 with respect to the condenser lens 41 and at a position where the surface image of the disk D is formed via the condenser lens 41. For the image pickup element 42, a CCD image sensor or a CMOS image sensor is employed for miniaturization.

次に、撮像タイミングセンサ3について説明する。撮像タイミングセンサ3は、ディスク搬送路31を搬送されるディスクDが撮像領域35上を通過するタイミングを検知する機能を有する。撮像タイミングセンサ3は、ディスクDのほぼ全面がハーフミラー26の上方に達したときに撮像タイミングセンサ3がディスクDまたはディスクDを搬送する搬送部(図示せず)を検知できるよう配置されている。そのため、撮像タイミングセンサ3は、ディスクDを最適に撮像できるタイミングを示すタイミング信号TSをディスクDの検知信号として出力する。   Next, the imaging timing sensor 3 will be described. The imaging timing sensor 3 has a function of detecting the timing at which the disk D conveyed on the disk conveyance path 31 passes over the imaging area 35. The imaging timing sensor 3 is arranged so that the imaging timing sensor 3 can detect the disk D or a transport unit (not shown) that transports the disk D when almost the entire surface of the disk D reaches above the half mirror 26. . Therefore, the imaging timing sensor 3 outputs a timing signal TS indicating the timing at which the disk D can be optimally imaged as a detection signal for the disk D.

制御部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 imaging element 42 and the light emitting element 22 based on the timing signal TS output from the imaging timing sensor 3, and stores the captured image acquired by the imaging element 42 in the image storage unit 6, The image processing unit 5 has a function of executing predetermined image processing based on the stored captured image. As shown in FIG. 3, the control unit 4 outputs the captured image data ID of the disk D output from the image acquisition unit 2 to a captured image holding unit 600 of the image storage unit 6 described later. Further, the control unit 4 outputs an image processing control signal PCS for the image processing unit 5 to the image processing unit 5. Further, the control unit 4 outputs a storage unit control signal MCS for the image storage unit 6 to the image storage unit 6. The control unit 4 is configured by, for example, a microcomputer that operates based on a predetermined program.

画像処理部5は、図3に示すように、前処理部500、基準画像生成部510、モアレ画像処理部520、マスク画像処理部540および判別部560を有し、画像記憶部6に記憶された撮像画像に対して種々の処理を行う機能を有する。画像処理部5は制御部4から出力される画像処理制御信号PCSによって制御される。画像処理部5の詳細については後述する。   As shown in FIG. 3, the image processing unit 5 includes a preprocessing unit 500, a reference image generation unit 510, a moire image processing unit 520, a mask image processing unit 540, and a determination unit 560, and is stored in the image storage unit 6. It has a function to perform various processes on the captured image. The image processing unit 5 is controlled by an image processing control signal PCS output from the control unit 4. Details of the image processing unit 5 will be described later.

次に、画像記憶部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 image storage unit 6 will be described. As shown in FIG. 3, the image storage unit 6 includes a captured image holding unit 600, a processed image holding unit 602, an input image holding unit 604, a reference image holding unit 606, a moire image holding unit 608, and a mask image holding unit 610. . The captured image holding unit 600 holds the captured image of the disc D to be discriminated based on the captured image data ID output from the control unit 4 and also the captured image data ID of each disc D to be discriminated. Is output to the preprocessing unit 500 of the image processing unit 5. The processed image holding unit 602 temporarily holds a captured image (hereinafter, referred to as a preprocessed image) processed by the preprocessing unit 500 of the image processing unit 5 and the stored preprocessed image as preprocessed image data PD. As a reference image generation unit 510 and a determination unit 560 of the image processing unit 5. The input image holding unit 604 temporarily holds an image processed by the reference image generation unit 510 (hereinafter referred to as an input image), and uses the held input image as input image data BD as a reference image of the image processing unit 5. It has a function of outputting to the generation unit 510 and the moire image processing unit 520.

基準画像保持部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 image holding unit 606 holds the reference image generated by the reference image generation unit 510 of the image processing unit 5, and uses the held reference image as reference image data RD, the moire image processing unit 520 of the image processing unit 5, A function of outputting to the mask image processing unit 540 and the determination unit 560 is provided. The moire image holding unit 608 temporarily holds the input image selected as having a moire area in the moire image processing unit 520 of the image processing unit 5 as a moire image, and the held moire image as moire image data MD. A function of outputting to the moiré image processing unit 520 is provided. Further, the moire image holding unit 608 temporarily holds an accumulated moire image obtained by integrating a plurality of moire images in the moire image processing unit 520 of the image processing unit 5 and also stores the accumulated accumulated moire image. The image data IMD is output to the mask image processing unit 540 of the image processing unit 5. The mask image holding unit 610 holds the mask image generated by the mask image processing unit 540 of the image processing unit 5 and outputs the held mask image to the determination unit 560 of the image processing unit 5 as mask image data BMD. It has a function. The captured image holding unit 600, the processed image holding unit 602, the input image holding unit 604, and the moire image holding unit 608 are configured by, for example, a RAM (Random Access Memory) from the viewpoint of data reading / writing speed. The reference image holding unit 606 and the mask image holding unit 610 are configured by a nonvolatile memory such as an EEPROM (Electrically Erasable Programmable Read-Only Memory), for example, from the viewpoint of data holding durability. The operations of the captured image holding unit 600, the processed image holding unit 602, the input image holding unit 604, the reference image holding unit 606, the moire image holding unit 608 and the mask image holding unit 610 are stored in the storage unit control signal output from the control unit 4. Controlled by MCS.

入出力インターフェース(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 disc discrimination device 1 is incorporated. By connecting the main unit to the disc discriminating apparatus 1 via the input / output interface (I / F) 7, a desired signal can be input / output to / from the main unit.

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

判別基準記憶部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 disc discrimination device 1. The discrimination reference storage unit 9 outputs the discrimination reference data SLS to the control unit 4. The control unit 4 determines the authenticity of the disc D to be discriminated based on the threshold value based on the sent discrimination reference data SLS.

次に、図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 preprocessing unit 500, a reference image generation unit 510, a moire image processing unit 520, a mask image processing unit 540, and a determination unit 560.

まず、前処理部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 preprocessing unit 500 will be described. The preprocessing unit 500 performs a reference image generation process in the reference image generation unit 510, a moire image selection process in the moire image processing unit 520, and a moire image selection process on the captured image of the disk D held in the captured image holding unit 600 of the image storage unit 6. The determination unit 560 has a function of performing a predetermined process for efficiently executing each of the determination processes. The captured image of the disk D held in the captured image holding unit 600 is input to the preprocessing unit 500 as the captured image data ID and processed by the preprocessing unit 500. Then, the pre-processed captured image (preprocessed image) of the disk D is output to the processed image holding unit 602 of the image storage unit 6 and is held by the processed image holding unit 602 of the image storage unit 6. As illustrated in FIG. 3, the preprocessing unit 500 includes an edge extraction unit 502, a center extraction unit 504, and an image cutout unit 506.

エッジ抽出部502は、撮像画像保持部600に保持された撮像画像においてエッジを抽出する機能を有する。エッジ抽出とは、画像中の画素の輝度あるいは色が大きく変化している箇所をエッジ(特徴)として抽出する処理である。エッジ抽出は、1次微分に基づくフィルタ(SobelフィルタおよびPrewittフィルタ)ならびに2次微分に基づくフィルタ(ラプラシアンフィルタ)を用いることにより行うことができる。   The edge extraction unit 502 has a function of extracting an edge from the captured image held in the captured image holding unit 600. Edge extraction is a process of extracting, as an edge (feature), a portion where the luminance or color of a pixel in an image has changed greatly. Edge extraction can be performed by using a filter based on a first order derivative (Sobel filter and Prewitt filter) and a filter based on a second order derivative (Laplacian filter).

中心抽出部504は、撮像画像保持部600に保持された撮像画像に基づき、撮像画像におけるディスクDの中心位置を抽出する機能を有する。換言すれば、撮像画像においてディスクDの中心を示す座標値を算出する。中心位置の抽出には公知の方法が用いられ、例えば、撮像画像において縦軸(Y軸)方向に延びる各ラインに対しディスクDの周縁部の一方と他方とを検出し、検出された両周縁部の間隔が最大となるラインにおける両周縁部間の中点をディスクDの中心位置とする。しかし、中心位置の抽出には他の方法を用いることもできる。   The center extraction unit 504 has a function of extracting the center position of the disk D in the captured image based on the captured image held in the captured image holding unit 600. In other words, the coordinate value indicating the center of the disk D in the captured image is calculated. A known method is used for extraction of the center position. For example, one and the other of the peripheral portions of the disk D are detected for each line extending in the vertical axis (Y-axis) direction in the captured image, and both detected peripheral edges are detected. The midpoint between the two peripheral portions in the line where the interval between the portions is maximum is set as the center position of the disk D. However, other methods can be used to extract the center position.

画像切出部506は、中心抽出部504で中心位置が抽出された画像を、該中心位置を基準として予め設定されたサイズに切り出す機能を有する。本実施例において、画像切出部506は、中心抽出部504で中心位置が抽出された画像を、ディスクDの中心位置と対角線の交点とが一致するように正方形状に切り出す。なお、画像を切り出す形状は、長方形状に切り出すこともでき、ディスクDの外周縁に合わせて円形状に切り出すこともできる。   The image cutout unit 506 has a function of cutting out the image from which the center position is extracted by the center extraction unit 504 into a preset size with the center position as a reference. In this embodiment, the image cutout unit 506 cuts out the image whose center position is extracted by the center extraction unit 504 into a square shape so that the center position of the disk D and the intersection of the diagonal lines coincide. In addition, the shape which cuts out an image can also be cut out into a rectangular shape, and can also be cut out into a circular shape according to the outer periphery of the disc D.

次に、基準画像生成部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 image generation unit 510 will be described. The reference image generation unit 510 has a function of performing a predetermined process for generating a reference image serving as a reference for determining the authenticity of the disc D. The reference image generation unit 510 applies the preprocessed image based on the processed image data PD sent from the processed image holding unit 602 of the image storage unit 6 and the input image data BD sent from the input image holding unit 604 of the image storage unit 6. A predetermined process is performed on each of the input image based on the reference image and the reference image based on the reference image data RD sent from the reference image holding unit 606 of the image storage unit 6. Then, the preprocessed image processed by the reference image generation unit 510 is output as input image data BD to the input image holding unit 604 of the image storage unit 6 and is held as an input image by the input image holding unit 604. Further, the preprocessed image processed by the reference image generation unit 510 is output to the reference image holding unit 606 as reference image data RD, and is held by the reference image holding unit 606 as a reference image. Further, the reference image processed by the reference image generation unit 510 is output to the reference image holding unit 606 as reference image data RD, and is held by the reference image holding unit 606 as a reference image. As illustrated in FIG. 3, the reference image generation unit 510 includes a comparison determination unit 512, an image rotation unit 514, and an image integration unit 516.

対比判定部512は、所望の二の画像の各画素(同一座標値の画素)について画素値を比較し、二の画像の相違する度合い(以下、相違度という)または一致する度合い(以下、一致度という)に基づいて二の画像が一致するか否かを判定する機能を有する。例えば、相違度で判定する場合、画素値の一致しない画素数の合計値が、判別基準記憶部9に保持された所定の閾値を越える場合、それら二の画像が一致しないと判定される。他方、一致度で判定する場合、画素値の一致する画素数の合計値が、判別基準記憶部9に保持された所定の閾値を越える場合、それら二の画像が一致すると判定される。本実施例では、相違度により判定する。さらに、対比判定部512は、二の画像の間の回転角度ずれおよび水平方向(画像に対して平行な方向)のずれ(以下、総称して相対位置ずれという。)を補正する機能を有する。相対位置ずれの補正は、例えば特開2016−134073号公報で開示される回転ずれおよび位置ずれの補正方法により行うことができる。対比判定部512は、画像記憶部6の基準画像保持部606に保持された基準画像と画像記憶部6の処理画像保持部602に保持されたディスク番号iの前処理画像との相対位置ずれの補正を行う。対比判定部512は、基準画像と相対位置ずれ補正済みのディスク番号iの前処理画像とを比較し、相違度DFを算出する。対比判定部512は、算出された相違度DFに基づいて、ディスク番号iの前処理画像が基準画像と一致するか否かを判定する。   The comparison determination unit 512 compares the pixel values of each pixel of the desired two images (pixels having the same coordinate value), and the degree of difference between the two images (hereinafter referred to as difference) or the degree of coincidence (hereinafter referred to as coincidence). A function to determine whether or not the two images match based on the degree). For example, when determining based on the degree of difference, if the total value of the number of pixels that do not match the pixel value exceeds a predetermined threshold stored in the discrimination reference storage unit 9, it is determined that the two images do not match. On the other hand, when determining based on the degree of coincidence, if the total value of the number of pixels with matching pixel values exceeds a predetermined threshold stored in the discrimination reference storage unit 9, it is determined that the two images match. In this embodiment, the determination is based on the degree of difference. Furthermore, the comparison determination unit 512 has a function of correcting a rotation angle shift between two images and a shift in a horizontal direction (a direction parallel to the image) (hereinafter collectively referred to as a relative position shift). The relative positional deviation can be corrected by a rotational deviation and positional deviation correction method disclosed in, for example, Japanese Patent Application Laid-Open No. 2006-134073. The comparison determination unit 512 detects the relative positional deviation between the reference image held in the reference image holding unit 606 of the image storage unit 6 and the preprocessed image of the disk number i held in the processed image holding unit 602 of the image storage unit 6. Make corrections. The comparison determination unit 512 compares the reference image with the preprocessed image of the disk number i that has been corrected for the relative displacement, and calculates the difference DF. The comparison determination unit 512 determines whether or not the preprocessed image with the disk number i matches the reference image based on the calculated dissimilarity DF.

画像回転部514は、所望の画像をディスクDの中心位置を中心として回転させる機能を有する。画像回転部514は、画像記憶部6の基準画像保持部606に保持された基準画像を、ディスクDの中心位置を中心として、所定の回転角度差θd毎に回転させる。換言すれば、画像回転部514は、回転角度θに対応する基準画像(以下、回転角度θの基準画像という。)に対して、回転角度差θd回転させた回転角度「θ+θd」に対応する基準画像を生成する。このようにして、回転角度差θd毎に回転させた複数枚の基準画像を準備することによって、後述する図5の基準画像生成処理のステップS21の対比判定処理、および、後述する図13の真偽判別処理のステップS145の対比判定処理において、前処理画像を回転させながら基準画像と対比させる必要がなくなり、前処理画像と基準画像との対比判別処理を効率よく実行することができる。   The image rotation unit 514 has a function of rotating a desired image around the center position of the disk D. The image rotation unit 514 rotates the reference image held in the reference image holding unit 606 of the image storage unit 6 with a predetermined rotation angle difference θd around the center position of the disk D. In other words, the image rotation unit 514 refers to the reference angle corresponding to the rotation angle “θ + θd” obtained by rotating the rotation angle difference θd with respect to the reference image corresponding to the rotation angle θ (hereinafter referred to as the reference image of the rotation angle θ). Generate an image. In this way, by preparing a plurality of reference images rotated for each rotation angle difference θd, a comparison determination process in step S21 of the reference image generation process in FIG. 5 described later and a true image in FIG. In the comparison determination process in step S145 of the false determination process, it is not necessary to compare the reference image with the rotation of the preprocessed image, and the comparison determination process between the preprocessed image and the reference image can be executed efficiently.

画像積算部516は、所望の二の画像に対して画像積算処理を行う機能を有する。画像積算処理とは、画像のエッジの鮮鋭化すると共に、平滑化してノイズを除去する処理である。画像積算処理は、積算する複数の画像重みが一定で、各画素の画素値を単純累積する単純積算により行なうことができる。画像積算部516は、画像記憶部6の基準画像保持部606に保持された回転角度「0度」の基準画像と画像記憶部6の入力画像保持部604に保持された入力画像とに対して画像積算処理を行う。画像積算処理された画像は、基準画像データRDとして基準画像保持部606に出力され、基準画像保持部606に回転角度「0度」の基準画像として保持される。   The image integration unit 516 has a function of performing image integration processing on desired two images. The image integration process is a process for sharpening the edges of an image and smoothing to remove noise. The image integration process can be performed by simple integration in which a plurality of image weights to be integrated are constant and pixel values of each pixel are simply accumulated. The image accumulating unit 516 performs the rotation of “0 degrees” on the reference image held in the reference image holding unit 606 of the image storage unit 6 and the input image held on the input image holding unit 604 of the image storage unit 6. Perform image integration processing. The image subjected to the image integration process is output to the reference image holding unit 606 as the reference image data RD, and held in the reference image holding unit 606 as a reference image with a rotation angle “0 degree”.

次に、モアレ画像処理部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 image processing unit 520 will be described. The moire image processing unit 520 has a function of determining whether or not there is a moire area with respect to a desired image and selecting an image with a moire area as a moire image. Further, the moire image processing unit 520 performs an image integration process on the selected plurality of moire images. The moiré image processing unit 520 determines whether each of the input images of the disk number i held in the input image holding unit 604 of the image storage unit 6 has a moiré area. The moire image processing unit 520 outputs the input image determined to have a moire area to the moire image holding unit 608 of the image storage unit 6 as moire image data MD. An image determined to have a moiré area is stored and held as a moiré image having a moiré number j by the moiré image holding unit 608. Further, the moire image processing unit 520 performs image integration processing on all moire images held in the moire image holding unit 608. The moiré image processing unit 520 outputs the image subjected to the image integration processing to the moire image holding unit 608 as integrated moire image data IMD. The image subjected to the image integration process is held by the moire image holding unit 608 as an integrated moire image. As shown in FIG. 3, the moire image processing unit 520 includes an evaluation value deriving unit 522, a determination threshold setting unit 524, a moire image selecting unit 526, and a moire image integrating unit 528.

評価値導出部522は、所望の二の画像の各画素(同一座標値の画素)について画素値を比較し、二の画像の相違度または一致度から評価値を導出する機能を有する。評価値導出部522は、画像記憶部6の基準画像保持部606に保持された基準画像および入力画像保持部604に保持された各ディスク番号iの入力画像の各画素について画素値を比較して相違度または一致度を算出し、この算出された相違度または一致度に基づいて各ディスク番号iの入力画像の評価値EVを導出する。なお、評価値導出部522における相違度または一致度の算出の方法は、対比判定部512における相違度または一致度の算出の方法と同じである。導出された評価値EVは、画像記憶部6の図示しない記憶領域に格納される。   The evaluation value deriving unit 522 has a function of comparing pixel values for each pixel of the desired two images (pixels having the same coordinate value) and deriving an evaluation value from the degree of difference or coincidence between the two images. The evaluation value deriving unit 522 compares the pixel values of the reference image held in the reference image holding unit 606 of the image storage unit 6 and each pixel of the input image of each disk number i held in the input image holding unit 604. The degree of difference or the degree of coincidence is calculated, and the evaluation value EV of the input image of each disk number i is derived based on the calculated degree of difference or coincidence. Note that the method of calculating the degree of difference or the degree of coincidence in the evaluation value deriving unit 522 is the same as the method of calculating the degree of difference or the degree of coincidence in the comparison determination unit 512. The derived evaluation value EV is stored in a storage area (not shown) of the image storage unit 6.

判定閾値設定部524は、各ディスク番号iの入力画像がモアレ領域を有するか否かを判定するための判定閾値を設定する機能を有する。判定閾値設定部524は、評価値導出部522で導出された評価値EVの度数分布表に基づいて、判定閾値を設定する。設定された判定閾値は、画像記憶部6の図示しない記憶領域に格納される。   The determination threshold value setting unit 524 has a function of setting a determination threshold value for determining whether or not the input image of each disk number i has a moire area. The determination threshold setting unit 524 sets a determination threshold based on the frequency distribution table of the evaluation values EV derived by the evaluation value deriving unit 522. The set determination threshold value is stored in a storage area (not shown) of the image storage unit 6.

モアレ画像選択部526は、所望の画像がモアレ領域を有するか否かを判定すると共に、モアレ領域を有する画像を選択する機能を有する。モアレ画像選択部526は、評価値導出部522で導出された評価値EVと、判定閾値設定部524で設定された判定閾値とに基づいて、各ディスク番号iの入力画像がモアレ領域を有するか否かを判定する。例えば、評価値EVが判定閾値に対して小さい場合、モアレ画像選択部526は、ディスク番号iの入力画像がモアレ領域を有すると判定する。モアレ領域を有すると判定されたディスク番号iの入力画像は、モアレ画像データMDとして画像記憶部6のモアレ画像保持部608に出力され、モアレ番号jのモアレ画像としてモアレ画像保持部608により保持される。   The moire image selection unit 526 has a function of determining whether or not a desired image has a moire area and selecting an image having a moire area. Based on the evaluation value EV derived by the evaluation value deriving unit 522 and the determination threshold set by the determination threshold setting unit 524, the moire image selection unit 526 determines whether the input image of each disk number i has a moire area. Determine whether or not. For example, when the evaluation value EV is smaller than the determination threshold, the moire image selection unit 526 determines that the input image with the disk number i has a moire area. The input image of the disk number i determined to have a moire area is output to the moire image holding unit 608 of the image storage unit 6 as the moire image data MD, and held by the moire image holding unit 608 as the moire image of the moire number j. The

モアレ画像積算部528は、所望の複数枚の画像に対して画像積算処理を行う機能を有する。モアレ画像積算部528は、画像記憶部6のモアレ画像保持部608に保持された全てのモアレ画像を画像積算処理する。モアレ画像の画像積算処理は、基準画像生成部510の画像積算部516における画像積算処理と同じである。画像積算処理されたモアレ画像は、積算モアレ画像データIMDとしてモアレ画像保持部608に出力され、積算モアレ画像としてモアレ画像保持部608により保持される。   The moiré image integration unit 528 has a function of performing image integration processing on a desired plurality of images. The moire image integration unit 528 performs image integration processing on all moire images held in the moire image holding unit 608 of the image storage unit 6. The image integration process of the moire image is the same as the image integration process in the image integration unit 516 of the reference image generation unit 510. The moire image that has undergone image integration processing is output to the moire image holding unit 608 as integrated moire image data IMD, and is held by the moire image holding unit 608 as an integrated moire image.

次に、マスク画像処理部540について説明する。マスク画像処理部540は、所望の二の画像(同一座標値の画素)を対比するときに、モアレ領域を有効画素から除外するためのマスク画像を生成する機能を有する。マスク画像処理部540は、画像記憶部6の基準画像保持部606に保持された基準画像と、モアレ画像保持部608に保持された積算モアレ画像とに基づいてマスク画像を生成する。マスク画像処理部540で生成された画像は、マスク画像データBMDとして画像記憶部6のマスク画像保持部610に出力され、マスク画像としてマスク画像保持部610により保持される。図3に示すように、マスク画像処理部540は、マスク閾値設定部542およびマスク画像生成部544を有している。   Next, the mask image processing unit 540 will be described. The mask image processing unit 540 has a function of generating a mask image for excluding a moire area from effective pixels when comparing two desired images (pixels having the same coordinate value). The mask image processing unit 540 generates a mask image based on the reference image held in the reference image holding unit 606 of the image storage unit 6 and the accumulated moire image held in the moire image holding unit 608. The image generated by the mask image processing unit 540 is output as mask image data BMD to the mask image holding unit 610 of the image storage unit 6 and is held by the mask image holding unit 610 as a mask image. As illustrated in FIG. 3, the mask image processing unit 540 includes a mask threshold setting unit 542 and a mask image generation unit 544.

マスク閾値設定部542は、所望の二の画像の各画素(同一座標値の画素)について画素値の差分情報を算出し、この算出された差分情報に基づいて有効画素と非有効画素とを設定するマスク閾値を設定する機能を有する。差分情報の算出には、例えば、背景差分法を用いることができ、二の画像の各画素(同一座標値の画素)の画素値の差の絶対値(以下、差分画素値という。)が差分情報として算出される。マスク閾値は、算出された各画素の差分画素値に対する度数分布表に基づいて設定される。マスク閾値の設定には、例えば判別分析法やモード法などの一般的な2値化画像処理の閾値設定方法を用いることができる。マスク閾値設定部542は、基準画像保持部606に保持された基準画像と、モアレ画像保持部608に保持された積算モアレ画像との差分情報である各画素の差分画素値を算出する。マスク閾値設定部542は、算出された各画素の差分画素値の度数分布表に基づいてマスク閾値を設定する。設定されたマスク閾値は、画像記憶部6の図示しない記憶領域に格納される。   The mask threshold value setting unit 542 calculates pixel value difference information for each pixel (pixels having the same coordinate value) of the desired two images, and sets effective pixels and ineffective pixels based on the calculated difference information. Has a function of setting a mask threshold. For example, the background difference method can be used to calculate the difference information, and an absolute value (hereinafter referred to as a difference pixel value) of a difference between pixel values of pixels (pixels having the same coordinate value) of the two images is a difference. Calculated as information. The mask threshold is set based on a frequency distribution table for the calculated difference pixel value of each pixel. For setting the mask threshold value, for example, a general binary image processing threshold value setting method such as a discriminant analysis method or a mode method can be used. The mask threshold setting unit 542 calculates a difference pixel value of each pixel which is difference information between the reference image held in the reference image holding unit 606 and the accumulated moire image held in the moire image holding unit 608. The mask threshold setting unit 542 sets the mask threshold based on the calculated frequency distribution table of the difference pixel value of each pixel. The set mask threshold is stored in a storage area (not shown) of the image storage unit 6.

マスク画像生成部544は、マスク画像を生成する機能を有する。マスク画像生成部544は、基準画像と積算モアレ画像との差分情報に基づく画像(以下、差分画像という。)に対して、マスク閾値設定部542で設定されたマスク閾値を適用し、差分画像を二値化処理する。換言すれば、マスク画像生成部544は、マスク閾値設定部542で算出された基準画像と積算モアレ画像との各画素(同一座標値の画素)の差分画素値に基づく差分画像に対して、マスク閾値設定部542で設定されたマスク閾値を適用し、差分画像を二値化処理する。二値化処理された差分画像は、マスク画像として画像記憶部6のマスク画像保持部610に保持される。   The mask image generation unit 544 has a function of generating a mask image. The mask image generation unit 544 applies the mask threshold set by the mask threshold setting unit 542 to an image based on the difference information between the reference image and the accumulated moire image (hereinafter referred to as a difference image), and obtains the difference image. Perform binarization. In other words, the mask image generation unit 544 applies a mask to the difference image based on the difference pixel value of each pixel (pixel having the same coordinate value) between the reference image and the integrated moire image calculated by the mask threshold setting unit 542. The mask threshold set by the threshold setting unit 542 is applied, and the difference image is binarized. The binarized difference image is held in the mask image holding unit 610 of the image storage unit 6 as a mask image.

次に、判別部560について説明する。判別部560は、画像記憶部6の処理画像保持部602に保持された判別対象のディスクDの前処理画像を被判別画像とし、被判別画像と画像記憶部6の基準画像保持部606に保持された複数の基準画像のそれぞれに画像記憶部6のマスク画像保持部610に保持されたマスク画像を適用した後、被判別画像と各基準画像とを対比し、その対比結果から判別対象のディスクDの真偽を判別する機能を有する。判別結果は、画像処理部5から制御部4に判別信号ISとして出力される。判別部560は、マスク画像適用部562および相違度導出部564を有する。   Next, the determination unit 560 will be described. The discriminating unit 560 uses the preprocessed image of the disc D to be discriminated held in the processed image holding unit 602 of the image storage unit 6 as a discriminated image and holds it in the discriminated image and the reference image holding unit 606 of the image storage unit 6. After the mask image held in the mask image holding unit 610 of the image storage unit 6 is applied to each of the plurality of reference images, the discriminated image and each reference image are compared, and the disc to be discriminated from the comparison result It has a function of determining whether D is true or false. The discrimination result is output from the image processing unit 5 to the control unit 4 as a discrimination signal IS. The determination unit 560 includes a mask image application unit 562 and a dissimilarity deriving unit 564.

マスク画像適用部562は、所望の画像に画像記憶部6のマスク画像保持部610に保持されたマスク画像を適用する機能を有する。マスク画像適用部562は、画像記憶部6の処理画像保持部602に保持された被判別画像および画像記憶部6の基準画像保持部606に保持された複数の基準画像のそれぞれに、画像記憶部6のマスク画像保持部610に保持されたマスク画像を適用する。これにより、被判別画像および複数の基準画像のそれぞれが有するモアレ領域が、ディスクDの真偽判別のための有効画素から除外される。   The mask image application unit 562 has a function of applying the mask image held in the mask image holding unit 610 of the image storage unit 6 to a desired image. The mask image application unit 562 applies an image storage unit to each of the discriminated image held in the processed image holding unit 602 of the image storage unit 6 and the plurality of reference images held in the reference image holding unit 606 of the image storage unit 6. The mask image held in the mask image holding unit 610 is applied. As a result, the moire area of each of the discriminated image and the plurality of reference images is excluded from the effective pixels for discriminating the authenticity of the disc D.

相違度導出部564は、所望の二の画像の各画素(同一座標値の画素)について画素値を比較し、二の画像の相違度または一致度に基づいて二の画像が一致するか否かを判定する機能を有する。例えば、相違度で判定する場合、画素値の一致しない画素数の合計値が画像記憶部6に保持された所定の閾値を越える場合、それら二の画像が一致しないと判定される。他方、一致度で判定する場合、画素値の一致する画素数の合計値が画像記憶部6に保持された所定の閾値を越える場合、それら二の画像が一致すると判定される。本実施例では、相違度により判定する。   The dissimilarity deriving unit 564 compares pixel values for each pixel (pixels having the same coordinate value) of the desired two images, and determines whether the two images match based on the dissimilarity or coincidence of the two images. It has the function to judge. For example, when the determination is made based on the degree of difference, when the total value of the number of pixels that do not match the pixel value exceeds a predetermined threshold stored in the image storage unit 6, it is determined that the two images do not match. On the other hand, when the determination is based on the degree of coincidence, if the total value of the number of pixels with matching pixel values exceeds a predetermined threshold stored in the image storage unit 6, it is determined that the two images match. In this embodiment, the determination is based on the degree of difference.

なお、画像処理部5を構成するエッジ抽出部502、中心抽出部504、対比判定部512、画像回転部514、画像積算部516、評価値導出部522、判定閾値設定部524、モアレ画像選択部526、モアレ画像積算部528、マスク閾値設定部542、マスク画像生成部544、マスク画像適用部562および相違度導出部564は、それぞれの機能を有するものであれば、ハードウェアおよびソフトウェアのいずれで構成してもよい。一部をハードウェアとし残りをソフトウェアとすることも可能である。   The edge extraction unit 502, the center extraction unit 504, the comparison determination unit 512, the image rotation unit 514, the image integration unit 516, the evaluation value derivation unit 522, the determination threshold setting unit 524, and the moire image selection unit that constitute the image processing unit 5. 526, moire image integration unit 528, mask threshold setting unit 542, mask image generation unit 544, mask image application unit 562, and dissimilarity derivation unit 564 may be either hardware or software as long as they have their respective functions. It may be configured. It is possible to make a part of the hardware and the rest software.

(動作)
次に、図4〜図15を参照しながら、ディスク判別装置1の動作について説明する。なお、ディスク判別装置1の動作で取得される撮像画像は、ディスクDにおける表面および裏面のいずれかの画像である。そのため、ディスクDの表面および裏面の模様が異なる場合、表面および裏面のそれぞれの基準画像を生成する必要があり、表面および裏面のそれぞれの基準画像と対比する必要がある。本実施例では、ディスクDの表面および裏面の模様が同じものとして説明する。
(Operation)
Next, the operation of the disk discriminating apparatus 1 will be described with reference to FIGS. Note that the captured image acquired by the operation of the disc discriminating apparatus 1 is one of the front surface and the back surface of the disc D. Therefore, when the patterns on the front and back surfaces of the disc D are different, it is necessary to generate the reference images for the front and back surfaces, and to compare with the reference images for the front and back surfaces. In the present embodiment, description will be made assuming that the patterns on the front and back surfaces of the disk D are the same.

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

次のステップ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 image holding unit 604 of the image storage unit 6. In the next step S7, a mask image generation process for generating a mask image for excluding the moire areas of the reference image and the input image of the disc D from the effective pixels for discriminating the authenticity of the disc D is executed. . After the mask image generation process in step S7 is completed, the process returns to step S2. On the other hand, if it is determined that the generation of the mask image has not been selected, the process returns to step S2. Details of the moire image determination process in step S6 and the mask image generation process in step S7 will be described later.

ステップ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 image acquisition unit 2 images the disk D that has reached the imaging position, in other words, the disk D that faces the imaging window 33 and acquires the captured image of the disk D. The image acquisition unit 2 outputs the acquired captured image to the control unit 4 as a captured image data ID. The control unit 4 transfers the supplied captured image data ID to the image storage unit 6. The image storage unit 6 stores and holds the captured image based on the transmitted captured image data ID in the captured image holding unit 600. Details of the captured image acquisition process in step S13 will be described later.

次にステップS14に進み、前処理部500が、ディスクDの撮像画像に対して前処理を実行する。制御部4は画像記憶部6に記憶部制御信号MCSを出力し、画像記憶部6は記憶部制御信号MCSに基づいて撮像画像保持部600に保持された撮像画像に基づく撮像画像データIDを前処理部500に出力する。前処理部500は、送られた撮像画像データIDに基づく撮像画像に対して、前処理を行う。前処理部500は、前処理された画像を、処理画像データPDとして画像記憶部6の処理画像保持部602に出力する。なお、ステップS14における前処理の詳細については後述する。   In step S14, the preprocessing unit 500 performs preprocessing on the captured image of the disk D. The control unit 4 outputs a storage unit control signal MCS to the image storage unit 6, and the image storage unit 6 outputs the captured image data ID based on the captured image held in the captured image holding unit 600 based on the storage unit control signal MCS. The data is output to the processing unit 500. The preprocessing unit 500 performs preprocessing on the captured image based on the transmitted captured image data ID. The preprocessing unit 500 outputs the preprocessed image to the processed image holding unit 602 of the image storage unit 6 as processed image data PD. Details of the preprocessing in step S14 will be described later.

次にステップ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 image acquisition unit 2 has acquired the captured image is the first disc, the process proceeds to step S16. On the other hand, if the disk number i exceeds 1 (i> 1), in other words, if the disk D from which the image acquisition unit 2 has acquired the captured image is the second or subsequent disk, the process proceeds to step S21.

次のステップ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 image holding unit 604 of the image storage unit 6 holds the input image of the disk D with the disk number “1”. The preprocessing unit 500 outputs the preprocessed image (preprocessed image) of the disk D with the disk number “1” to the input image holding unit 604 as input image data BD. The input image holding unit 604 stores and holds the input image based on the sent input image data BD in association with the disk number i. In step S16, the input image holding unit 604 stores and holds the input image based on the sent input image data BD in association with the disk number “1”. In other words, the input image holding unit 604 stores and holds the input image based on the sent input image data BD as the input image of the disk number “1”.

次のステップ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 image holding unit 606 of the image storage unit 6 holds the reference image of the disk D. The preprocessing unit 500 outputs the preprocessed image (preprocessed image) of the disk D with the disk number “1” to the reference image holding unit 606 as the reference image data RD. The reference image holding unit 606 stores and holds a reference image of the disk D based on the sent reference image data RD. Note that the input image data BD output by the preprocessing unit 500 in step S16 and the reference image data RD output by the preprocessing unit 500 in step S17 are based on the preprocessed image of the disk D having the same disk number “1”. It is data. In other words, at the time of step S17, the input image holding unit 604 and the reference image holding unit 606 hold the same image. In other words, at the time of step S17, the input image with the disk number “1” held in the input image holding unit 604 and the reference image held in the reference image holding unit 606 are the same image.

次のステップ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 image rotation unit 514 of the reference image generation unit 510 creates a plurality of reference images by rotating the reference image for each predetermined rotation angle difference θd. The reference image holding unit 606 outputs the reference image data RD to the reference image generation unit 510. The image rotation unit 514 of the reference image generation unit 510 performs a rotation process for rotating the image on the reference image based on the sent reference image data RD. The image rotation unit 514 rotates the reference image for each predetermined rotation angle difference θd with the center position of the disk D as the rotation center, and creates a plurality of reference images. The reference image generation unit 510 outputs the plurality of reference images rotated by the image rotation unit 514 to the reference image holding unit 606 as reference image data RD. The reference image holding unit 606 stores and holds each of the plurality of reference images based on the sent reference image data RD in association with the rotation angle θ. The rotation angle difference θd can be arbitrarily set. For example, when the rotation angle difference θd is “1 degree”, the rotation angle difference θd is rotated by “1 degree”, that is, the rotation angle θ is different by “1 degree”. 360 reference images are created. When the rotation angle difference θd is “3.6 degrees”, 100 reference images with different rotation angles θ by “3.6 degrees” are created. Further, when the rotation angle difference θd is “5 degrees”, 72 reference images having different rotation angles θ by “5 degrees” are created. Details of the image rotation processing in step S18 will be described later.

次のステップ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 comparison determination unit 512 of the reference image generation unit 510 determines whether or not the preprocessed image with the disk number i matches the reference image. The reference image holding unit 606 outputs the reference image data RD to the reference image generation unit 510. The processed image holding unit 602 outputs the preprocessed image data PD to the reference image generating unit 510. The comparison determination unit 512 of the reference image generation unit 510 compares the reference image based on the sent reference image data RD with the preprocessed image of the disk number i based on the sent preprocessed image data PD, and The difference degree of the preprocessed image is calculated, and it is determined whether or not the preprocessed image matches the reference image based on the calculated difference degree. In other words, the comparison determination unit 512 determines whether or not the disk D with the disk number i matches the disks D with the disk numbers “1” to “i−1”. If it is determined that the preprocessed image with the disk number i matches the reference image, the process proceeds to step S22. On the other hand, if it is determined that the preprocessed image on the disk D does not match the reference image, that is, does not match, the process returns to step S12, and the process on the next disk D is executed. The details of the comparison determination process in step S21 will be described later.

次のステップS22では、入力画像保持部604が、ディスク番号iの入力画像を保持する。基準画像生成部510は、ディスク番号iの前処理画像を、入力画像データBDとして入力画像保持部604に出力する。入力画像保持部604は、送られた入力画像データBDに基づく入力画像をディスク番号iに対応付けて格納し保持する。   In the next step S22, the input image holding unit 604 holds the input image of the disk number i. The reference image generation unit 510 outputs the preprocessed image with the disk number i to the input image holding unit 604 as the input image data BD. The input image holding unit 604 stores and holds the input image based on the sent input image data BD in association with the disk number i.

次のステップS23では、基準画像生成部510の画像積算部516が、基準画像にディスク番号iの入力画像を積算する。基準画像保持部606は、基準画像データRDを基準画像生成部510に出力する。入力画像保持部604は、入力画像データBDを基準画像生成部510に出力する。基準画像生成部510の画像積算部516は、供給された基準画像データRDに基づく回転角度「0度」の基準画像に対して、送られた入力画像データBDに基づくディスク番号iの入力画像を積算する。   In the next step S23, the image integration unit 516 of the reference image generation unit 510 integrates the input image with the disk number i on the reference image. The reference image holding unit 606 outputs the reference image data RD to the reference image generation unit 510. The input image holding unit 604 outputs the input image data BD to the reference image generation unit 510. The image accumulating unit 516 of the reference image generating unit 510 receives the input image of the disk number i based on the input image data BD sent to the reference image with the rotation angle “0 degrees” based on the supplied reference image data RD. Accumulate.

次のステップS24では、基準画像保持部606が、基準画像を保持する。基準画像生成部510は、画像積算後の基準画像を、基準画像データRDとして基準画像保持部606に出力する。基準画像保持部606は、送られた基準画像データRDに基づく基準画像を、回転角度「0度」の基準画像として格納し保持する。基準画像保持部606が画像積算後の基準画像を格納し保持した後、ステップS19に進む。   In the next step S24, the reference image holding unit 606 holds the reference image. The reference image generation unit 510 outputs the reference image after image integration to the reference image holding unit 606 as reference image data RD. The reference image holding unit 606 stores and holds a reference image based on the sent reference image data RD as a reference image with a rotation angle “0 degrees”. After the reference image holding unit 606 stores and holds the reference image after the image integration, the process proceeds to step S19.

ステップ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 image rotation unit 514 rotates the reference image with the rotation angle “0 degree” for each predetermined rotation angle difference θd. Create multiple reference images. The reference image holding unit 606 outputs the reference image data RD to the reference image generation unit 510. The image rotation unit 514 of the reference image generation unit 510 performs a rotation process for rotating the image on the reference image with the rotation angle “0 degrees” based on the transmitted reference image data RD. The image rotation unit 514 rotates a reference image with a rotation angle “0 degree” for each predetermined rotation angle difference θd with the center position of the disk D as the rotation center, and creates a plurality of reference images. The reference image generation unit 510 outputs the plurality of reference images rotated by the image rotation unit 514 to the reference image holding unit 606 as reference image data RD. The reference image holding unit 606 stores and holds each of a plurality of reference images based on the sent reference image data RD in association with the rotation angle θ. Note that the image rotation process in step S25 is exactly the same as the image rotation process in step S18. When the image rotation process in step S25 is completed, the reference image generation process ends. In this way, the reference image generation process in step S4 in FIG. 4 is completed, and a plurality of input images associated with each disk number i, that is, each of the disk numbers “1” to “imax”, are input image holding unit 604. And a plurality of reference images associated with the respective rotation angles θ are held in the reference image holding unit 606. The input image holding unit 604 stores and holds the input image associated with each disk number i, and the reference image holding unit 606 stores and holds the reference image associated with each rotation angle θ. Return to step S5 of step 4.

なお、本実施例において、図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 image holding unit 606 of the image storage unit 6. However, it is also possible to sequentially integrate each of the input images having the disk numbers “2” to “imax” with respect to the input image having the disk number “1”, for example. Further, in the comparison determination process of step S21, the determination of matching of the preprocessed images with the disk numbers “3” to “imax” is performed on the reference image obtained by integrating the input images with the disk numbers “1” to “i-1”. However, it is also possible to hold the preprocessed image with the disk number “1” as a temporary reference image and perform a match determination of the preprocessed image with the disk number i based on the temporary reference image.

図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 imaging timing sensor 3 is turned on. In other words, it is determined whether or not the disk D moving on the disk transport path 31 has reached the imaging position. When the disk D reaches the imaging position, the imaging timing sensor 3 is turned on. That is, the imaging timing sensor 3 is turned on corresponding to the movement of the disk D in the disk transport path 31. If the imaging timing sensor 3 is on, the process proceeds to step S32. If the disk D does not reach the imaging position, the imaging timing sensor 3 is kept off and step S31 is repeatedly executed. In other words, the image acquisition unit 2 is in a standby state until the disk D reaches the imaging position.

次のステップ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 light emitting element 22, and the light emitting element 22 is lighted for a short time (that is, flash issuance) based on the lighting control signal LCS. Accordingly, diffused light is emitted from the light projecting device 11 toward the imaging window 33, and the disk D facing the imaging window 33 is projected.

次のステップ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 imaging element 42, and the imaging element 42 images the disc D to be determined based on the imaging control signal ICS. In other words, a captured image of the disc D to be determined is acquired by the two-dimensional imaging device 12. The imaging element 42 outputs the acquired captured image data ID to the control unit 4. The control unit 4 transfers the supplied captured image data ID to the image storage unit 6. The image storage unit 6 stores and holds the captured image based on the transmitted captured image data ID in the captured image holding unit 600. After the captured image acquisition process in step S13 in FIG. 5 is completed in this way, the process returns to step S14 in FIG.

図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 edge extraction unit 502 performs edge extraction processing on the captured image held in the captured image holding unit 600. The edge-extracted image is held in the processed image holding unit 602 of the image storage unit 6.

次のステップS42では、中心抽出部504が処理画像保持部602に保持されたエッジ抽出後の画像においてディスクDの中心位置を抽出する。抽出された中心位置の座標値は画像記憶部6の図示しない記憶領域に格納される。   In the next step S42, the center extraction unit 504 extracts the center position of the disk D in the image after edge extraction held in the processed image holding unit 602. The extracted coordinate value of the center position is stored in a storage area (not shown) of the image storage unit 6.

次のステップS43では、画像切出部506が、処理画像保持部602に保持されたエッジ抽出後の画像を矩形状に切り出す。画像切出部506は、中心抽出部504が抽出したディスクDの中心位置を基準に、画像をエッジ抽出後の画像を矩形状に切り出す。より詳細には、画像切出部506は、矩形状の2本の対角線の交点がディスクDの中心位置と一致するように、エッジ抽出後の画像を矩形状に切り出す。矩形状に切り出された画像は、処理画像保持部602に保持される。このようにして図5のステップS14の前処理が完了し、当該前処理が施された撮像画像が処理画像として処理画像保持部602に保持される。処理画像保持部602が処理画像を格納し保持した後、図5のステップS15に戻る。   In the next step S43, the image cutout unit 506 cuts out the edge-extracted image held in the processed image holding unit 602 into a rectangular shape. The image cutout unit 506 cuts out the image after edge extraction of the image into a rectangular shape based on the center position of the disk D extracted by the center extraction unit 504. More specifically, the image cutout unit 506 cuts out the image after edge extraction into a rectangular shape so that the intersection of two rectangular diagonal lines matches the center position of the disk D. The image cut into a rectangular shape is held in the processed image holding unit 602. In this way, the preprocessing in step S14 in FIG. 5 is completed, and the captured image subjected to the preprocessing is held in the processed image holding unit 602 as a processed image. After the processed image holding unit 602 stores and holds the processed image, the process returns to step S15 in FIG.

図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 image rotation unit 514 of the reference image generation unit 510 rotates the reference image corresponding to the rotation angle 0 ° (θ = 0) held in the reference image holding unit 606 by the rotation angle θ. The reference image rotated by the rotation angle θ (hereinafter referred to as a reference image having the rotation angle θ) is held in the reference image holding unit 606. After the reference image holding unit 606 stores and holds the reference image of the rotation angle θ, the process returns to step S51 and the image rotation process is continued.

一方、ステップ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 image holding unit 606 as a reference image of the rotation angle θ. After the reference image holding unit 606 stores and holds the reference image of each rotation angle θ, the process returns to step S19 in FIG. In addition, the rotation reference image generation process in step S25 of FIG. 5 is completed, and each reference image rotated by the rotation angle difference θd is held in the reference image holding unit 606 as a reference image of the rotation angle θ. After the reference image holding unit 606 stores and holds the reference image of each rotation angle θ, the reference image generation process of FIG. 5 is completed.

図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 image generation unit 510 corrects the relative position shift (rotation angle shift and horizontal shift) of the preprocessed image of the disk D with the disk number i with respect to the reference image. The correction of the relative positional deviation can be performed by, for example, a correction method for a rotational angle deviation and a horizontal direction deviation disclosed in JP-A-2006-134073. The processed image holding unit 602 of the image storage unit 6 outputs the preprocessed image data PD to the reference image generation unit 510 of the image processing unit 5. The reference image holding unit 606 of the image storage unit 6 outputs the reference image data RD to the reference image generation unit 510 of the image processing unit 5. The reference image generation unit 510 compares the preprocessed image of the disk number i based on the sent preprocessed image data PD with the reference image based on the sent reference image data RD, and compares the preprocessed image data before the disk number i with respect to the reference image. Correct the relative displacement of the processed image. The comparison determination unit 512 of the reference image generation unit 510 compares the preprocessed image with the disk number i with the reference image with each rotation angle θ, and compares the preprocessed image with the disk number i with respect to the reference image with the rotation angle “0 degrees”. The deviation angle is derived. The image rotation unit 514 of the reference image generation unit 510 rotates the deviation angle θ derived from the preprocessed image of the disk number i. The comparison determination unit 512 corrects the horizontal displacement of the preprocessed image obtained by correcting the rotation angle displacement with respect to the reference image having the rotation angle “0 degree”. The preprocessed image of the disk number i whose relative positional deviation has been corrected in this way is stored and held in the processed image holding unit 602.

次のステップ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 comparison determination unit 512 calculates the difference DF of the preprocessed image of the disk number i in which the relative positional deviation with respect to the reference image is corrected. The processed image holding unit 602 outputs the preprocessed image data PD to the reference image generating unit 510. The reference image holding unit 606 outputs the reference image data RD to the reference image generation unit 510. The reference image generation unit 510 compares the preprocessed image with the disk number i based on the sent preprocessed image data PD and the reference image with the rotation angle “0 degrees” based on the sent reference image data RD. The difference DF of the preprocessed image with the disk number i with respect to the reference image is calculated. The calculated difference degree DF is stored in a storage area (not shown) of the image storage unit 6.

次のステップ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 image processing unit 520 reads the reference image held in the reference image holding unit 606. In the next step S83, the moire image processing unit 520 reads the input image of the disk number i held in the input image holding unit 604.

次のステップS82では、モアレ画像処理部520の評価値導出部522が、ディスク番号iの入力画像と基準画像とを対比させて、評価値EVを導出する。評価値EVは、例えば、基準画像に対する入力画像の相違度または一致度を使用することができる。また、評価値EVは、例えば、単純に、基準画像と相違する入力画像の画素の個数(画素数)を用いることもできる。導出された評価値EVは画像記憶部6の図示しない記憶領域に格納される。   In the next step S82, the evaluation value deriving unit 522 of the moire image processing unit 520 compares the input image of the disk number i with the reference image to derive the evaluation value EV. As the evaluation value EV, for example, the degree of difference or coincidence of the input image with respect to the reference image can be used. In addition, for example, the number of pixels (number of pixels) of the input image different from the reference image can be simply used as the evaluation value EV. The derived evaluation value EV is stored in a storage area (not shown) of the image storage unit 6.

次のステップ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 threshold setting unit 524 of the moire image processing unit 520 sets a determination threshold DI for determining whether the input image has a moire area, in other words, whether the input image is a moire image. To do. The determination threshold DI is set from a frequency distribution based on the evaluation value EV. More specifically, the determination threshold DI is set based on the frequency distribution on the side where the evaluation value is higher than the average value of the frequency distribution based on the evaluation value EV. After the determination threshold setting unit 524 sets the determination threshold DI, the process proceeds to step S88 in FIG. The set determination threshold value DI is stored in a storage area (not shown) of the image storage unit 6.

次のステップ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 image selection unit 526 reads the determination threshold value DI stored in a storage area (not shown) of the image storage unit 6. In the next step S90, the moire image selection unit 526 reads the evaluation value EV of the disk number i stored in a storage area (not shown) of the image storage unit 6.

次のステップ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é image selection unit 526 compares the evaluation value EV of the disk number i with the determination threshold value DI and determines whether or not the input image of the disk number i has a moire area from the magnitude relationship, in other words, the disk number i. It is determined whether the input image is a moire image. When the evaluation value EV of the disk number i is equal to or less than the determination threshold value DI, the process proceeds to step S92, where it is determined that the input image of the disk number i has a moire area, in other words, the input image of the disk number i is a moire image. The process proceeds to step S93. On the other hand, if the evaluation value EV of the disk number i exceeds the determination threshold value DI, the process proceeds to step S98, where the input image of the disk number i does not have a moire area, in other words, the input image of the disk number i is not a moire image. And the process proceeds to step S96.

ステップS93では、画像記憶部6のモアレ画像保持部608が、モアレ番号jのモアレ画像を格納し、保持する。モアレ画像処理部520は、モアレ画像選択部526がモアレ領域を有すると判定したディスク番号iの入力画像を、モアレ画像データMDとしてモアレ画像保持部608に出力する。モアレ画像保持部608は、送られたモアレ画像データMDに基づくモアレ画像をモアレ番号jのモアレ画像として格納し保持する。   In step S93, the moire image holding unit 608 of the image storage unit 6 stores and holds the moire image having the moire number j. The moire image processing unit 520 outputs the input image of the disk number i determined by the moire image selection unit 526 to have a moire area to the moire image holding unit 608 as moire image data MD. The moire image holding unit 608 stores and holds the moire image based on the sent moire image data MD as the moire image having the moire number j.

次のステップ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 image holding unit 604 is exceeded. When the disk number i is equal to or less than imax (i ≦ imax), the process returns to step S90. On the other hand, when the disk number i exceeds imax (i> imax), it is determined whether or not there is a moire area for all the input images of the disk number i held in the input image holding unit 604, in other words, a moire image. The moire image determination ends. In this way, the moire image determination process in step S6 of FIG. 4 is completed, and each input image of the disk number i determined as a moire image is held in the moire image holding unit 608 as a moire image of moire number j. . After the moire image holding unit 608 stores and holds the moire image, the process returns to step S7 in FIG.

図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 image holding unit 608 stores and holds the accumulated moire image. The moire image holding unit 608 of the image storage unit 6 outputs the moire image data MD based on the moire image having the moire number j to the moire image processing unit 520. The moire image processing unit 520 outputs the moire image having the moire number j based on the sent moire image data MD to the moire image holding unit 608 as integrated moire image data IMD. The moire image holding unit 608 stores and holds the accumulated moire image based on the sent accumulated moire image data IMD. In other words, the moire image having the moire number j is held in the moire image holding unit 608 as an integrated moire image. In other words, in step S122, the moire image having the moire number “1” is held in the moire image holding unit 608 as an integrated moire image.

次のステップ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 image integrating unit 528 performs image integration processing on the integrated moire image and the moire image having the moire number j. The moire image holding unit 608 of the image storage unit 6 outputs the moire image data MD based on the integrated moire image data IMD and the moire image of the moire number j to the moire image processing unit 520. The moiré image integration unit 528 performs image integration processing on the integrated moire image based on the transmitted integrated moire image data IMD and the moire image of the moire number j based on the transmitted moire image data MD. In other words, the moire image having the moire number j is added to the integrated moire image. The moire image processing unit 520 outputs the integrated moire image subjected to the image integration process to the moire image holding unit 608 as integrated moire image data IMD. The moire image holding unit 608 stores and holds the accumulated moire image based on the sent accumulated moire image data IMD.

次のステップ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 value setting unit 542 calculates the absolute value (difference pixel value) of the pixel value difference of each pixel between the reference image and the integrated moire image as difference information. The reference image holding unit 606 outputs the reference image data RD to the mask image processing unit 520. The moire image holding unit 608 outputs the accumulated moire image data IMD to the mask image processing unit 520. The mask threshold value setting unit 542 of the mask image processing unit 520 has an absolute value (difference pixel) of a difference between pixel values of each pixel between the reference image based on the transmitted reference image data RD and the integrated moire image data based on the integrated moire image data IMD. Value). The calculated difference information (difference pixel value of each pixel) is stored in a storage area (not shown) of the image storage unit 6.

次のステップS128では、マスク閾値設定部542が、マスク閾値MIを設定する。マスク閾値設定部542は、基準画像と積算モアレ画像との差分情報に基づいてマスク閾値MIを設定する。換言すれば、マスク閾値設定部542は、マスク閾値MIを、基準画像と積算モアレ画像との各画素の差分画素値に対する度数分布表から設定する。設定されたマスク閾値MIは、画像記憶部6の図示しない記憶領域に格納される。   In the next step S128, the mask threshold value setting unit 542 sets the mask threshold value MI. The mask threshold setting unit 542 sets the mask threshold MI based on the difference information between the reference image and the accumulated moire image. In other words, the mask threshold value setting unit 542 sets the mask threshold value MI from the frequency distribution table for the difference pixel value of each pixel between the reference image and the integrated moire image. The set mask threshold MI is stored in a storage area (not shown) of the image storage unit 6.

次のステップS129では、マスク画像生成部544が、基準画像と積算モアレ画像との差分情報に基づく差分画像を二値化する。換言すれば、マスク画像生成部544が、基準画像と積算モアレ画像との各画素の差分画素値に基づく差分画像を二値化する。マスク画像処理部540は、二値化された差分画像を、マスク画像データBMDとしてマスク画像保持部610に出力する。マスク画像保持部610は、送られたマスク画像データBMDに基づくマスク画像を格納し、保持する。このようにして図4のステップS7のマスク画像生成処理が完了し、マスク画像保持部610がマスク画像を格納し保持した後、図4のディスク判別装置1の登録モードが終了する。   In the next step S129, the mask image generation unit 544 binarizes the difference image based on the difference information between the reference image and the integrated moire image. In other words, the mask image generation unit 544 binarizes the difference image based on the difference pixel value of each pixel between the reference image and the integrated moire image. The mask image processing unit 540 outputs the binarized difference image to the mask image holding unit 610 as mask image data BMD. The mask image holding unit 610 stores and holds a mask image based on the sent mask image data BMD. In this way, after the mask image generation process in step S7 in FIG. 4 is completed and the mask image holding unit 610 stores and holds the mask image, the registration mode of the disc discrimination device 1 in FIG. 4 ends.

図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 image acquisition unit 2 images the disc D to be discriminated that has reached the imaging position, and acquires a captured image of the disc D. The image acquisition unit 2 outputs the captured image data ID based on the acquired captured image of the disc D to be discriminated to the control unit 4. The control unit 4 transfers the supplied captured image data ID to the image storage unit 6. The image storage unit 6 stores and holds the captured image of the disc D to be discriminated based on the transmitted captured image data ID in the captured image holding unit 600. This captured image acquisition process is exactly the same as the captured image acquisition process in step S13 of FIG. 5, and is executed in the flowchart of the captured image acquisition process shown in FIG.

次のステップ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 preprocessing unit 500 performs preprocessing on the captured image of the disc D to be determined. The control unit 4 outputs a storage unit control signal MCS to the image storage unit 6, and the image storage unit 6 is based on the captured image of the disc D to be discriminated held in the captured image holding unit 600 based on the storage unit control signal MCS. The captured image data ID is output to the preprocessing unit 500. The pre-processing unit 500 performs pre-processing on the captured image of the disc D to be determined based on the transmitted captured image data ID. The preprocessing unit 500 outputs the preprocessed captured image of the disc D to be discriminated to the processed image holding unit 602 of the image storage unit 6 as preprocessed image data PD. The processed image holding unit 602 stores and holds a preprocessed image of the disc D to be discriminated based on the sent preprocessed image data PD as a discriminated image. This pre-process is exactly the same as the pre-process in step S14 of FIG. 5, and is executed in the pre-process flowchart shown in FIG.

次のステップS144では、判別部560の相違度導出部564が、判別対象のディスクDの真偽を判別する。相違度導出部564は、基準画像と被判別画像とを対比して、基準画像に対する被判別画像の相違度DFを算出する。相違度導出部564は、算出された相違度DFに基づいて、判別対象のディスクDの真偽を判別する。ステップS145における対比判定処理の詳細については後述する。ステップS145の対比判定処理が完了した後、図4のステップS8の真贋判別処理が終了する。   In the next step S144, the dissimilarity deriving unit 564 of the determination unit 560 determines the authenticity of the disc D to be determined. The degree-of-difference deriving unit 564 calculates the degree of difference DF of the discriminated image with respect to the reference image by comparing the reference image and the discriminated image. The difference degree deriving unit 564 determines the authenticity of the disc D to be determined based on the calculated difference degree DF. Details of the comparison determination process in step S145 will be described later. After the comparison determination process in step S145 is completed, the authenticity determination process in step S8 of FIG. 4 ends.

図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 dissimilarity deriving unit 564 of the determination unit 560 corrects the relative positional deviation of the determination target image with respect to the reference image. The correction of the relative positional deviation can be performed by the correction method of the rotational angle deviation and the horizontal deviation disclosed in, for example, Japanese Patent Application Laid-Open No. 2006-134073, similarly to the deviation correction processing in step S61 of FIG. The degree-of-difference deriving unit 564 compares the reference image with the image to be determined, and corrects the relative positional deviation of the image to be determined with respect to the reference image. The degree-of-difference deriving unit 564 compares the discriminated image with the reference image at each rotation angle θ, and derives the deviation angle of the discriminated image with respect to the reference image at the rotation angle “0 degree”. The degree-of-difference deriving unit 564 rotates the shift angle θ from which the image to be determined is derived. The degree-of-difference deriving unit 564 corrects the horizontal shift of the image to be discriminated in which the shift of the rotation angle is corrected with respect to the reference image having the rotation angle “0 degree”. In this way, the dissimilarity deriving unit 564 prepares an image to be discriminated in which the relative positional deviation with respect to the reference image with the rotation angle “0 degrees” is corrected.

次のステップS162では、判別部560のマスク画像適用部562が、基準画像および被判別画像のそれぞれに、マスク処理を行う。換言すれば、マスク画像適用部562が、基準画像および被判別画像のそれぞれに、マスク画像を適用する。さらに換言すれば、マスク画像適用部562が、回転角度「0度」の基準画像および被判別画像のそれぞれにマスク処理を行う。マスク画像保持部610は、マスク画像データBMDを判別部560に出力する。マスク画像適用部562は、回転角度「0度」の基準画像および被判別画像のそれぞれに、送られたマスク画像データBMDに基づくマスク画像を適用する。   In the next step S162, the mask image application unit 562 of the determination unit 560 performs mask processing on each of the reference image and the determination target image. In other words, the mask image application unit 562 applies the mask image to each of the reference image and the determination target image. In other words, the mask image application unit 562 performs a mask process on each of the reference image and the determination target image with the rotation angle “0 degrees”. Mask image holding unit 610 outputs mask image data BMD to discrimination unit 560. The mask image application unit 562 applies a mask image based on the sent mask image data BMD to each of the reference image having the rotation angle “0 degrees” and the determination target image.

次のステップS163では、相違度導出部564が、マスク処理された回転角度「0度」の基準画像(以下、マスク処理された基準画像という。)に対するマスク処理された被判別画像の相違度DFを算出する。基準画像生成部510は、マスク処理された基準画像とマスク処理された被判別画像とを対比して、マスク処理された基準画像に対するマスク処理された被判別画像の相違度DFを算出する。算出された相違度DFは画像記憶部6の図示しない記憶領域に格納される。   In the next step S163, the degree-of-difference deriving unit 564 performs the degree-of-difference DF of the masked image to be discriminated with respect to the masked reference image with the rotation angle “0 degrees” (hereinafter referred to as the masked reference image). Is calculated. The reference image generation unit 510 compares the mask-processed reference image with the mask-processed discriminated image, and calculates a difference DF of the mask-processed discriminating image with respect to the mask-processed reference image. The calculated difference degree DF is stored in a storage area (not shown) of the image storage unit 6.

次のステップ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 disc discrimination device 1 in FIG.

(変形例)
本発明は上記実施例に限定されるものではなく、種々の変更が可能である。本実施例では、基準画像とディスク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 image holding unit 606 in step S210. Run. Then, in step S162 of the comparison determination process in FIG. 14, only the non-discrimination image is masked. Note that the processes in steps S201 to S209 in FIG. 15 are exactly the same as the processes in steps 121 to 129 in FIG. In this way, in the mask image generation process in step S7 of FIG. 4, the reference image subjected to the mask process is prepared, so that the reference determination process in step S145 of the authenticity determination process in FIG. It is not necessary to perform mask processing on the image, and the true / false determination process in step S8 in FIG. 4 can be efficiently executed.

また、図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 SYMBOLS 1 Disc discriminating device 2 Image acquisition part 3 Imaging timing sensor 4 Control part 5 Image processing part 6 Image storage part 7 Input / output I / F
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.
前記判定閾値設定部が、前記度数分布の平均値よりも前記評価値が高い側の前記度数分布に基づいて前記判定閾値を設定する請求項2に記載のディスク判別装置。   The disk determination device according to claim 2, wherein 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. 前記マスク画像生成部が、前記積算モアレ画像と前記基準画像との差分画素値の度数分布における分離度が最大となる値を閾値として、前記積算モアレ画像と前記基準画像との差分画像を二値化した画像を前記マスク画像とする請求項1〜3のいずれか1項に記載のディスク判別装置。   The mask image generation unit binarizes a difference image between the accumulated moiré image and the reference image, with a value at which the degree of separation in the frequency distribution of the difference pixel value between the accumulated moiré image and the reference image is maximized. The disc discriminating apparatus according to claim 1, wherein the converted image is used as the mask image. 判別対象ディスクに対応する被判別画像と基準画像とをモアレ領域を有効画素から除外して対比することにより前記判別対象ディスクの真偽を判別するディスク判別方法であって、
真正ディスクとして判別すべき複数のディスクのそれぞれに対応する複数の入力画像を積算して前記基準画像を生成する基準画像生成行程と、
前記複数の入力画像のそれぞれと前記基準画像との対比結果に基づいて前記モアレ領域を有する複数のモアレ画像を前記複数の入力画像の中から選択するモアレ画像選択行程と、
前記複数のモアレ画像を積算した積算モアレ画像と前記基準画像との対比結果に基づき前記モアレ領域を有効画素から除外するマスク画像を生成するマスク画像生成行程と、
入力された前記被判別画像と前記基準画像とを前記マスク画像を適用して対比することにより前記判別対象ディスクの真偽を判別する判別行程と、
を備えるディスク判別方法。
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.
前記判定閾値設定行程において、前記度数分布の平均値よりも前記評価値が高い側の前記度数分布に基づいて前記判定閾値を設定する請求項6に記載のディスク判別方法。   The disc determination method according to claim 6, wherein 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. 前記マスク画像生成行程において、前記積算モアレ画像と前記基準画像との差分画素値の度数分布における分離度が最大となる値を閾値として、前記積算モアレ画像と前記基準画像との差分画像を二値化した画像を前記マスク画像とする請求項5〜7のいずれか1項に記載のディスク判別方法。

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.

JP2017162475A 2017-08-25 2017-08-25 Disk discriminating apparatus and disc discriminating method Active JP6723561B2 (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (3)

* Cited by examiner, † Cited by third party
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