JP2017097388A - Data acquisition apparatus, printer and program - Google Patents

Data acquisition apparatus, printer and program Download PDF

Info

Publication number
JP2017097388A
JP2017097388A JP2015225264A JP2015225264A JP2017097388A JP 2017097388 A JP2017097388 A JP 2017097388A JP 2015225264 A JP2015225264 A JP 2015225264A JP 2015225264 A JP2015225264 A JP 2015225264A JP 2017097388 A JP2017097388 A JP 2017097388A
Authority
JP
Japan
Prior art keywords
data
registration data
verification
registration
value
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
JP2015225264A
Other languages
Japanese (ja)
Other versions
JP6719723B2 (en
Inventor
伊藤 健介
Kensuke Ito
健介 伊藤
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2015225264A priority Critical patent/JP6719723B2/en
Publication of JP2017097388A publication Critical patent/JP2017097388A/en
Application granted granted Critical
Publication of JP6719723B2 publication Critical patent/JP6719723B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To prevent registration data not suitable for uniformity determination from being registered.SOLUTION: A registration data acquisition unit 22 acquires an image with 64×64 dots in a previously-set registration data acquisition region of a tablet 90 as registration data. A registration data storage unit 23 stores the registration data acquired by the registration data acquisition unit 22 as data for uniformity determination of the tablet. A verification unit 26 verifies that the reliability of the registration data is equal to or greater than a predetermined reference value by comparing the collation arithmetic result of the same pieces of registration data and the collation arithmetic result of the pieces of the registration data acquired from the different tablets.SELECTED DRAWING: Figure 13

Description

本発明は、データ取得装置、印刷装置およびプログラムに関する。   The present invention relates to a data acquisition device, a printing device, and a program.

特許文献1には、ランダム性を有する読み取り可能な固有の特徴が表面に沿って分布している固体の真偽を判定する真偽判定方法が開示されている。   Patent Document 1 discloses a true / false determination method for determining the authenticity of a solid in which readable and unique features having randomness are distributed along a surface.

特許文献2には、連続してランダムにかつ所定列数の複数列で供給される多数の錠剤に対して非接触で印刷を行うことができ、さらに、不良品の錠剤のみをピンポイントで確実に排出できる錠剤印刷装置が開示されている。   In Patent Document 2, it is possible to perform non-contact printing on a large number of tablets continuously and randomly supplied in a plurality of rows of a predetermined number of rows, and pinpoint only defective tablets. A tablet printing device that can be discharged is disclosed.

特許文献3には、ランダムに供給される錠剤に対して錠剤の向きに応じた印刷処理を高速で行えるようにした錠剤印刷装置が開示されている。   Patent Document 3 discloses a tablet printing apparatus that can perform printing processing according to the orientation of a tablet at a high speed on a randomly supplied tablet.

特許第4103826号公報Japanese Patent No. 4103826 特開2013−013711号公報JP 2013-013711 A 特開2013−121432号公報JP 2013-121432 A

紙、錠剤、金属、樹脂等の様々な物体の表面には、人体の指紋、静脈パターン、虹彩パターン等と同じように一意性のあるランダムパターンが存在する。そのため、物体の表面に沿って分布するランダムパターンの一部の画像を取得して登録データとして登録しておき、再度物体から取得したランダムパターンの画像データと登録データと比較することにより同一物体であるか否かを判定する技術が提案されている。   On the surface of various objects such as paper, tablets, metals, resins, etc., there are random patterns having uniqueness like human body fingerprints, vein patterns, iris patterns and the like. For this reason, an image of a part of a random pattern distributed along the surface of the object is acquired and registered as registration data, and the image of the random pattern acquired from the object is compared again with the registration data. Techniques for determining whether or not there is proposed.

この技術では、登録しておいた登録データと、判定対象の物体から取得された照合用データとが一致するかどうかにより真偽判定が行われる。   In this technique, the authenticity determination is performed based on whether the registered data that has been registered matches the verification data acquired from the object to be determined.

そのため、予め登録していた登録用データに不具合があった場合、本来であれば本物であると判定されるべき物体が、偽物であると誤判定されたり、本来は偽物であると判定されるべき物体が本物であると誤判定されてしまう可能性がある。   Therefore, if there is a defect in the registration data registered in advance, the object that should be determined to be genuine is erroneously determined to be fake or originally determined to be fake. There is a possibility that the object to be determined is erroneously determined to be genuine.

本発明の目的は、同一性判定に適さない登録用データが登録されることを防ぐことが可能なデータ取得装置、印刷装置およびプログラムを提供することである。   An object of the present invention is to provide a data acquisition device, a printing device, and a program capable of preventing registration data that is not suitable for identity determination from being registered.

[データ取得装置]
請求項1に係る本発明は、登録対象の物体を含む画像から、前記物体上の所定サイズの領域に分布する特徴を表す特徴データを登録用データとして取得する取得手段と、
前記取得手段により取得された登録用データを物体の同一性判定のためのデータとして格納する格納手段と、
同一の登録用データどうしの照合演算結果と、異なる物体から取得された登録用データどうしの照合演算結果とを比較して、当該登録用データの信頼性が予め定められた基準値以上であることを検証する検証手段とを備えたデータ取得装置である。
[Data acquisition device]
The present invention according to claim 1 is an acquisition unit that acquires, as registration data, feature data representing features distributed in a region of a predetermined size on the object from an image including an object to be registered;
Storage means for storing the registration data acquired by the acquisition means as data for determining the identity of an object;
The comparison operation result between the same registration data and the comparison operation result between the registration data acquired from different objects are compared, and the reliability of the registration data is equal to or higher than a predetermined reference value. It is a data acquisition device provided with the verification means which verifies.

請求項2に係る本発明は、前記検証手段が、同一の登録用データどうしの照合演算結果と、異なる物体から取得された登録用データどうしの照合演算結果との差が予め設定された閾値より大きい場合に、当該登録用データの信頼性が予め定められた基準値以上であるとの検証結果を出力する請求項1記載のデータ取得装置である。   According to the second aspect of the present invention, the verification means determines whether a difference between a matching calculation result between the same registration data and a matching calculation result between registration data acquired from different objects is based on a preset threshold value. The data acquisition device according to claim 1, wherein when it is large, a verification result that the reliability of the registration data is equal to or higher than a predetermined reference value is output.

請求項3に係る本発明は、前記検証手段が、比較対象の2つの登録用データのうち一方の登録用データの一部を切り取り、切り取ったデータと他方の登録用データの対応する領域から取得されたデータどうしの相関値を演算することにより照合演算を行う請求項1または2記載のデータ取得装置である。   According to a third aspect of the present invention, the verification means cuts out a part of one registration data out of the two registration data to be compared, and acquires from the corresponding area of the cut-out data and the other registration data. 3. The data acquisition apparatus according to claim 1, wherein the collation operation is performed by calculating a correlation value between the obtained data.

請求項4に係る本発明は、前記検証手段が、前記一方の登録用データから切り取ったデータと同じサイズのデータを前記他方の登録用データから順次選択して、選択したデータと前記一方の登録用データから切り取ったデータとの相関値を順次演算して複数の相関値を取得し、取得された複数の相関値から最大値と、前記相関値の最大値から平均値を減じた値を標準偏差で除すことで得られる相関値の最大値のノーマライズド・スコアを算出し、同一の登録用データどうしの照合演算における相関値の最大値と、異なる物体から取得された登録用どうしの照合演算における相関値の最大値との差および同一の登録用データどうしの照合演算における相関値の最大値のノーマライズド・スコアと、異なる物体から取得された登録用どうしの照合演算における相関値の最大値のノーマライズド・スコアとの差が予め設定された閾値より大きい場合に、当該登録用データの信頼性が予め定められた基準値以上であるとの検証結果を出力する請求項3記載のデータ取得装置である。   According to a fourth aspect of the present invention, the verification unit sequentially selects data having the same size as the data cut from the one registration data from the other registration data, and selects the selected data and the one registration. The correlation value with the data cut out from the data for use is sequentially calculated to obtain a plurality of correlation values, and the standard value is obtained by subtracting the maximum value from the obtained correlation values and the average value from the maximum value of the correlation values. The normalized score of the maximum correlation value obtained by dividing by the deviation is calculated, and the maximum correlation value in the matching operation of the same registration data is compared with the registrations acquired from different objects. Difference between the maximum correlation value in the calculation and the normalized score of the maximum correlation value in the matching calculation between the same registration data, and matching between the registrations obtained from different objects When the difference between the maximum value of the correlation value in the calculation and the normalized score is larger than a preset threshold value, a verification result that the reliability of the registration data is equal to or higher than a predetermined reference value is output. A data acquisition device according to claim 3.

請求項5に係る本発明は、前記検証手段が、前記相関値を正規化相関法で演算することにより取得する請求項3または4記載のデータ取得装置である。   The present invention according to claim 5 is the data acquisition device according to claim 3 or 4, wherein the verification means acquires the correlation value by calculating with a normalized correlation method.

請求項6に係る本発明は、前記格納手段が、前記登録用データとともに当該登録用データに対する前記検証手段における検証結果の情報を格納する請求項1から5のいずれか1項記載のデータ取得装置である。   According to a sixth aspect of the present invention, in the data acquisition device according to any one of the first to fifth aspects, the storage unit stores the verification result information in the verification unit for the registration data together with the registration data. It is.

請求項7に係る本発明は、前記検証手段における検証結果が登録用データの信頼性が予め定められた基準値未満であった場合、自装置の動作を停止する停止手段をさらに備えた請求項1から5のいずれか1項記載のデータ取得装置である。   The present invention according to claim 7 further comprises stop means for stopping the operation of the own apparatus when the verification result in the verification means is that the reliability of the registration data is less than a predetermined reference value. The data acquisition device according to any one of 1 to 5.

請求項8に係る本発明は、前記検証手段における検証結果が登録用データの信頼性が予め定められた基準値未満であった場合、その旨を通知する通知手段をさらに備えた請求項1から5のいずれか1項記載のデータ取得装置である。   The present invention according to claim 8 further comprises notification means for notifying that when the verification result in the verification means is that the reliability of the registration data is less than a predetermined reference value, The data acquisition device according to any one of 5.

請求項9に係る本発明は、前記物体は錠剤である請求項1から8のいずれか1項記載のデータ取得装置である。   The present invention according to claim 9 is the data acquisition device according to any one of claims 1 to 8, wherein the object is a tablet.

[印刷装置]
請求項10に係る本発明は、登録対象の物体への印刷を行う印刷手段と、
前記印刷手段により印刷が行われた後の物体を撮像した画像から、前記物体上の所定サイズの領域に分布する特徴を表す特徴データを登録用データとして取得する取得手段と、
前記取得手段により取得された登録用データを物体の同一性判定のためのデータとして格納する格納手段と、
同一の登録用データどうしの照合演算結果と、異なる物体から取得された登録用データどうしの照合演算結果とを比較して、当該登録用データの信頼性が予め定められた基準値以上であることを検証する検証手段とを備えた印刷装置である。
[Printer]
According to a tenth aspect of the present invention, there is provided printing means for performing printing on an object to be registered;
An acquisition unit that acquires, as registration data, feature data representing features distributed in a region of a predetermined size on the object from an image obtained by imaging the object after printing by the printing unit;
Storage means for storing the registration data acquired by the acquisition means as data for determining the identity of an object;
The comparison operation result between the same registration data and the comparison operation result between the registration data acquired from different objects are compared, and the reliability of the registration data is equal to or higher than a predetermined reference value. And a verification unit that verifies the printing apparatus.

[プログラム]
請求項11に係る本発明は、登録対象の物体を含む画像から、前記物体上の所定サイズの領域に分布する特徴を表す特徴データを登録用データとして取得する取得ステップと、
前記取得ステップにおいて取得された登録用データを物体の同一性判定のためのデータとして格納する格納ステップと、
同一の登録用データどうしの照合演算結果と、異なる物体から取得された登録用データどうしの照合演算結果とを比較して、当該登録用データの信頼性が予め定められた基準値以上であることを検証する検証ステップとをコンピュータに実行させるためのプログラムである。
[program]
The present invention according to claim 11 is an acquisition step of acquiring, as registration data, feature data representing features distributed in a region of a predetermined size on the object from an image including the object to be registered.
A storage step of storing the registration data acquired in the acquisition step as data for object identity determination;
The comparison operation result between the same registration data and the comparison operation result between the registration data acquired from different objects are compared, and the reliability of the registration data is equal to or higher than a predetermined reference value. This is a program for causing a computer to execute a verification step for verifying.

請求項1に係る本発明によれば、同一性判定に適さない登録用データが登録されることを防ぐことが可能なデータ取得装置を提供することができる。   According to the first aspect of the present invention, it is possible to provide a data acquisition device capable of preventing registration data that is not suitable for identity determination from being registered.

請求項2に係る本発明によれば、同一性判定に適さない登録用データが登録されることを防ぐことが可能なデータ取得装置を提供することができる。   According to the second aspect of the present invention, it is possible to provide a data acquisition device that can prevent registration data that is not suitable for identity determination from being registered.

請求項3に係る本発明によれば、同一性判定に適さない登録用データが登録されることを防ぐことが可能なデータ取得装置を提供することができる。   According to the third aspect of the present invention, it is possible to provide a data acquisition device capable of preventing registration data that is not suitable for identity determination from being registered.

請求項4に係る本発明によれば、同一性判定に適さない登録用データが登録されることを防ぐことが可能なデータ取得装置を提供することができる。   According to the present invention of claim 4, it is possible to provide a data acquisition device capable of preventing registration data that is not suitable for identity determination from being registered.

請求項5に係る本発明によれば、同一性判定に適さない登録用データが登録されることを防ぐことが可能なデータ取得装置を提供することができる。   According to the fifth aspect of the present invention, it is possible to provide a data acquisition device capable of preventing registration data not suitable for identity determination from being registered.

請求項6に係る本発明によれば、請求項1から5のいずれか1項に係る本発明により得られる効果に加えて、格納されている登録用データの信頼性の有無を把握することが可能になるという効果を得ることができる。   According to the present invention according to claim 6, in addition to the effect obtained by the present invention according to any one of claims 1 to 5, it is possible to grasp the presence or absence of reliability of stored registration data. The effect that it becomes possible can be obtained.

請求項7に係る本発明によれば、請求項1から5のいずれか1項に係る本発明により得られる効果に加えて、同一性判定に適さない登録用データを格納することを防ぐことが可能になるという効果を得ることができる。   According to the present invention of claim 7, in addition to the effect obtained by the present invention of any one of claims 1 to 5, it is possible to prevent storing registration data that is not suitable for identity determination The effect that it becomes possible can be obtained.

請求項8に係る本発明によれば、請求項1から5のいずれか1項に係る本発明により得られる効果に加えて、取得された登録用データが同一性判定に適さないことを知ることが可能になるという効果を得ることができる。   According to the present invention according to claim 8, in addition to the effect obtained by the present invention according to any one of claims 1 to 5, it is known that the acquired registration data is not suitable for identity determination. Can be obtained.

請求項9に係る本発明によれば、錠剤の一部の画像を登録用データとして登録する際に、同一性判定に適さない登録用データが登録されることを防ぐことが可能なデータ取得装置を提供することができる。   According to the ninth aspect of the present invention, when registering a partial image of a tablet as registration data, a data acquisition device capable of preventing registration data not suitable for identity determination from being registered. Can be provided.

請求項10に係る本発明によれば、同一性判定に適さない登録用データが登録されることを防ぐことが可能な印刷装置を提供することができる。   According to the tenth aspect of the present invention, it is possible to provide a printing apparatus that can prevent registration data that is not suitable for identity determination from being registered.

請求項11に係る本発明によれば、同一性判定に適さない登録用データが登録されることを防ぐことが可能なプログラムを提供することができる。   According to the present invention of claim 11, it is possible to provide a program capable of preventing registration data that is not suitable for identity determination from being registered.

登録用データの取得のために撮像された錠剤の画像例および登録用データ取得領域81の位置の一例を示す図である。It is a figure which shows an example of the image of the tablet imaged for acquisition of the data for registration, and an example of the position of the data acquisition area 81 for registration. 登録用データの一例を示す図である。It is a figure which shows an example of the data for registration. 真贋判定装置300の構成を説明するためのブロック図である。3 is a block diagram for explaining the configuration of an authenticity determination device 300. FIG. カメラ320により撮像された錠剤の画像例および照合用データ取得領域82の位置の一例を示す図である。It is a figure which shows an example of the image of the tablet imaged with the camera 320, and an example of the position of the data acquisition area 82 for collation. 照合用データの一例を示す図であるIt is a figure which shows an example of the data for collation. 照合演算の対象である登録用データと照合用データの例を示す図である。It is a figure which shows the example of the data for registration which is the object of collation calculation, and the data for collation. 照合用データから、登録用データと同サイズのデータを順次切り出す様子を説明するための図である。It is a figure for demonstrating a mode that the data of the same size as the data for registration are cut out sequentially from the data for collation. 照合用データから切り出したデータとの相関値演算を、照合用データから切り出すデータの位置をX方向およびY方向に1ドット(画素)ずつ順次ずらしながら繰り返す様子を説明するための図である。It is a figure for demonstrating repeating a correlation value calculation with the data cut out from the data for collation, shifting the position of the data cut out from the data for collation one dot (pixel) at a time in the X direction and the Y direction sequentially. 照合演算により得られた1089個の相関値をグラフ化した例を示す図である。It is a figure which shows the example which graphed the 1089 correlation values obtained by collation calculation. 2つの物体が同一である可能性が高いと判定できる相関値の最大値と、相関値の最大値のノーマライズド・スコアの範囲を示すグラフ例を示す図である。It is a figure which shows the example of a graph which shows the range of the normalized score of the maximum value of the correlation value which can determine with two objects having the high possibility of being the same, and the maximum value of a correlation value. 本発明の一実施形態の印刷装置の構成を示す図である。1 is a diagram illustrating a configuration of a printing apparatus according to an embodiment of the present invention. 本発明の一実施形態におけるコントローラ10のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the controller 10 in one Embodiment of this invention. 本発明の一実施形態におけるコントローラ10の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the controller 10 in one Embodiment of this invention. プリントヘッド部50により印刷処理が行われる様子を示す図である。FIG. 4 is a diagram illustrating a state in which printing processing is performed by a print head unit. 検査用カメラ40により撮像された画像の模式図を示す図である。It is a figure which shows the schematic diagram of the image imaged by the inspection camera. 正常な露光量で撮像された場合の錠剤の画像例を示す図(図16(A))および、露光過多の状態で撮像された場合の錠剤の画像例を示す図(図16(B))である。The figure which shows the example of a tablet image when imaged with normal exposure (FIG. 16 (A)), and the figure which shows the example of a tablet image when imaged in an overexposed state (FIG. 16B) It is. 露光過多の状態で撮像された画像に基づいて取得された登録用データの一例を示す図である。It is a figure which shows an example of the data for registration acquired based on the image imaged in the state of overexposure. 検証部26が照合演算を行って信頼性の検証を行う10の登録用データ1〜10を説明するための図である。It is a figure for demonstrating 10 registration data 1-10 which the verification part 26 performs collation calculation and verifies reliability. 64×64ドットの登録用データ1から32×32ドットのデータを切り出して、切り出したデータと登録用データ1との照合演算を行う様子を説明するための図である。It is a figure for demonstrating a mode that the data of 32x32 dots are cut out from the registration data 1 of 64x64 dots, and the collation operation with the cut-out data and the data 1 for registration is performed. 登録用データ1から切り出された32×32ドットのデータと、登録用データ2〜10との照合演算をそれぞれ行う様子を説明するための図である。It is a figure for demonstrating a mode that the collation calculation with the data for 32 * 32 dots cut out from the data for registration 1 and the data for registration 2-10 is each performed. 登録用データが正常なデータである場合に、登録用データ1から切り出された32×32ドットのデータと、登録用データ1との照合演算の結果得られる相関値のグラフ例を示す図である。It is a figure which shows the example of a graph of the correlation value obtained as a result of the collation calculation with the data for 32x32 cut out from the data for registration, and the data for registration, when the data for registration is normal data . 登録用データが正常なデータである場合に、登録用データ1から切り出された32×32ドットのデータと、登録用データ2〜10との照合演算の結果得られる相関値のグラフ例を示す図である。The figure which shows the example of a graph of the correlation value obtained as a result of the collation operation of the 32 * 32 dot data cut out from the registration data 1 and the registration data 2-10 when the registration data is normal data It is. 露光過多の状態で撮像された画像から取得された登録用データ1の例を示す図(図23(B))および、この登録用データ1から切り出された32×32ドットのデータ例を示す図(図23(A))である。A diagram (FIG. 23B) showing an example of registration data 1 acquired from an image captured in an overexposed state, and a diagram showing a 32 × 32 dot data example cut out from the registration data 1 (FIG. 23A). 露光過多の状態で撮像された画像から取得された登録用データ2の例を示す図(図24(B))および、露光過多の状態で撮像された画像から取得された登録用データ1から切り出された32×32ドットのデータ例を示す図(図24(A))である。FIG. 24B shows an example of registration data 2 acquired from an image captured in an overexposed state, and is extracted from registration data 1 acquired from an image captured in an overexposed state. FIG. 24A is a diagram showing an example of 32 × 32 dot data (FIG. 24A). 正常な登録用データが取得できていない場合の照合演算結果のグラフ例を示す図である。It is a figure which shows the example of a graph of the collation calculation result when the data for normal registration cannot be acquired. 同一の登録用データどうし、および異なる錠剤の登録用データどうしの照合演算を説明するための図である。It is a figure for demonstrating the collation calculation between the data for the same registration, and the data for registration of a different tablet. 正常な登録用データが取得できている場合の照合演算により得られた相関値の最大値と、相関値の最大値のノーマライズド・スコア(NS)のグラフ例である。It is an example of a graph of the maximum value of the correlation value obtained by the collation calculation when normal registration data can be acquired and the normalized score (NS) of the maximum value of the correlation value. 正常な登録用データが取得できていない場合の照合演算により得られた相関値の最大値と、相関値の最大値のノーマライズド・スコア(NS)のグラフ例である。It is an example of the graph of the maximum value of the correlation value obtained by the collation calculation when the data for normal registration cannot be acquired, and the normalized score (NS) of the maximum value of the correlation value.

[物体の同一性判定方法]
まず、本発明の理解を助けるために、本発明の前提となる物体の同一性判定方法について説明する。ここでは判定対象の物体が錠剤の場合について説明する。この同一性判定方法を用いて錠剤の同一性判定を行うことにより、例えば市場において偽造が疑われる錠剤が、過去に正規に製造された錠剤と同一なものであるかを知ることができる。
[Identity determination method of objects]
First, in order to help understanding of the present invention, a method for determining the identity of an object which is a premise of the present invention will be described. Here, a case where the object to be determined is a tablet will be described. By determining the identity of the tablet using this identity determination method, for example, it is possible to know whether a tablet suspected of being counterfeited in the market is the same as a tablet that has been normally manufactured in the past.

先ず、この物体の同一性判定方法では、図1に示すように、同一性判定を行いたい判定対象の錠剤90aの表面上の予め設定された位置の所定サイズの登録用データ取得領域81に分布する特徴を表す特徴データを登録用データ(登録用画像データ)として取得する。具体的には、錠剤90aを撮像した画像に基づいて、登録用データ取得領域81における32ドット×32ドットの画像を登録用データとして取得する。   First, in this object identity determination method, as shown in FIG. 1, distribution is made in a registration data acquisition area 81 of a predetermined size at a preset position on the surface of a determination target tablet 90a to be determined for identity. The feature data representing the feature to be acquired is acquired as registration data (registration image data). Specifically, an image of 32 dots × 32 dots in the registration data acquisition area 81 is acquired as registration data based on an image obtained by imaging the tablet 90a.

例えば、錠剤の画像を読み取る際の読取解像度が400dpi、読み取り解錠が8ビットグレイスケールの場合には、32ドット×32ドットの画像を取得するための登録用データ取得領域81は約2mm×2mm程度のサイズの領域となる。   For example, when the reading resolution when reading an image of a tablet is 400 dpi and the reading and unlocking is an 8-bit gray scale, the registration data acquisition area 81 for acquiring a 32 dot × 32 dot image is about 2 mm × 2 mm. It becomes an area of about the size.

そして、この登録用データ取得領域81における32ドット×32ドットの領域のデータを切り出すことにより得られた登録用データの一例を図2に示す。   FIG. 2 shows an example of registration data obtained by cutting out data of a 32 dot × 32 dot area in the registration data acquisition area 81.

図2に示した登録用データの例では、1024(32×32)ドットの画素毎に、例えば0〜255階調の濃度値がデータとして取得されているのが分かる。   In the example of the registration data shown in FIG. 2, it can be seen that, for each pixel of 1024 (32 × 32) dots, density values of, for example, 0 to 255 gradations are acquired as data.

次に、例えば市場から回収された錠剤が正規に製造された本物(真の物体)であるのか偽物であるのかを判定するための真贋判定装置について図3を参照して説明する。   Next, for example, an authenticity determination device for determining whether a tablet collected from the market is a genuine product (true object) or a fake product that is properly manufactured will be described with reference to FIG.

図3は、このような真贋判定装置300の一実施形態の構成を示す図である。ここでは、錠剤90bが、登録用データを取得された錠剤90aと同一であるか否かの判定が行われるもとして説明する。   FIG. 3 is a diagram illustrating a configuration of an embodiment of such an authenticity determination apparatus 300. Here, description will be made assuming that it is determined whether or not the tablet 90b is the same as the tablet 90a from which the registration data is acquired.

真贋判定装置300は、図3に示されるように、リング照明ユニット310と、カメラ320と、照合用データ取得部330と、登録用データ格納部340と、相関値演算部350と、同一性判定部360とを備えている。   As shown in FIG. 3, the authenticity determination device 300 includes a ring illumination unit 310, a camera 320, a verification data acquisition unit 330, a registration data storage unit 340, a correlation value calculation unit 350, and an identity determination. Part 360.

リング照明ユニット310は、真贋判定(真偽判定)を行う判定対象の錠剤90bに光を照射するための照明装置である。カメラ320は、判定対象の錠剤を含む画像を撮像するための撮像手段である。   The ring illumination unit 310 is an illumination device for irradiating light to the determination target tablet 90b that performs authenticity determination (authentication determination). The camera 320 is an imaging unit for capturing an image including a determination target tablet.

照合用データ取得部330は、カメラ320により撮像された画像から、錠剤90b上に印刷された印刷パターンの位置により規定される位置に基づいて決定される照合用データ取得領域82に分布する特徴を表す特徴データを照合用データ(照合用画像データ)として取得する。   The collation data acquisition unit 330 has a feature distributed from the image captured by the camera 320 to the collation data acquisition area 82 determined based on the position defined by the position of the print pattern printed on the tablet 90b. The feature data to be represented is acquired as collation data (collation image data).

ここで、照合用データ取得領域82、登録用データ取得領域81を含み登録用データ取得領域81よりも大きなサイズに設定されている。   Here, the size is set to be larger than the registration data acquisition area 81 including the verification data acquisition area 82 and the registration data acquisition area 81.

具体的には、照合用データ取得部330は、錠剤90bの予め設定された照合用データ取得領域における64ドット×64ドットの画像を照合用データとして取得する。   Specifically, the verification data acquisition unit 330 acquires a 64 dot × 64 dot image in a preset verification data acquisition area of the tablet 90b as verification data.

例えば、カメラ320により撮像された錠剤90bの画像例および照合用データ取得領域82の位置の一例を図4に示す。   For example, FIG. 4 shows an example of an image of the tablet 90b imaged by the camera 320 and an example of the position of the collation data acquisition area 82.

また、この照合用データ取得領域82における64ドット×64ドットの領域のデータを切り出すことにより得られた照合用データの一例を図5に示す。   FIG. 5 shows an example of collation data obtained by cutting out data of a 64 dot × 64 dot area in the collation data acquisition area 82.

図5に示した登録用データの例では、4096(64×64)ドットの画素毎に、例えば0〜255階調の濃度値がデータとして取得されているのが分かる。   In the example of the registration data shown in FIG. 5, it can be seen that, for each pixel of 4096 (64 × 64) dots, for example, density values of 0 to 255 gradations are acquired as data.

登録用データ格納部340は、正規の錠剤(真の物体)90aから取得され予め登録されていた図2に示したような登録用データを格納している。   The registration data storage unit 340 stores registration data as shown in FIG. 2 acquired from a regular tablet (true object) 90a and registered in advance.

相関値演算部350は、図6に示すように、照合用データ取得部330により取得された照合用データと、登録用データ格納部340に格納されている登録用データとの相関値演算を行うことにより照合演算を行う。この相関値演算部350における相関値演算の詳細については後述する。   As shown in FIG. 6, the correlation value calculation unit 350 calculates a correlation value between the verification data acquired by the verification data acquisition unit 330 and the registration data stored in the registration data storage unit 340. The collation operation is performed. Details of the correlation value calculation in the correlation value calculation unit 350 will be described later.

同一性判定部360は、相関値演算部350により行われた照合演算の結果に基づいて、照合用データ取得部330により取得された照合用データと、登録用データ格納部340に格納されている登録用データとを比較することにより、判定対象の錠剤の同一性を判定する。具体的には、同一性判定部360は、判定対象の錠剤が、登録用データ格納部340に格納されている登録用データを取得した錠剤のいずれかと同一であるか否かを判定する。   The identity determination unit 360 is stored in the verification data acquired by the verification data acquisition unit 330 and the registration data storage unit 340 based on the result of the verification calculation performed by the correlation value calculation unit 350. The identity of the tablet to be determined is determined by comparing with the registration data. Specifically, the identity determination unit 360 determines whether the determination target tablet is the same as any of the tablets that have acquired the registration data stored in the registration data storage unit 340.

つまり、判定対象の錠剤が、過去に製造された市場に販売された錠剤のいずれかと同一であるとの判定結果が得られれば、その判定対象の錠剤は正規の錠剤であり、全ての錠剤と同一でないとの判定結果が得られれば、その判定対象の錠剤は偽物の錠剤であると判定されることになる。   In other words, if a determination result is obtained that the determination target tablet is the same as any of the tablets sold in the past, the determination target tablet is a regular tablet, and all tablets If the determination result that they are not identical is obtained, it is determined that the determination target tablet is a fake tablet.

次に、図7〜図10を参照して、登録用データと照合用データとの照合演算の具体的な演算方法について詳細に説明する。   Next, with reference to FIGS. 7 to 10, a specific calculation method of the matching calculation between the registration data and the matching data will be described in detail.

まず図6に示したように、照合用データは、登録用データを取得した領域を含む領域から取得されたデータであるため、照合用データと登録用データとが同一の物体から取得されたものであれば、この照合用データの中に登録用データに対応するデータが含まれているはずである。   First, as shown in FIG. 6, the verification data is data acquired from an area including the area from which the registration data is acquired. Therefore, the verification data and the registration data are acquired from the same object. If so, the data corresponding to the registration data should be included in the verification data.

そのため、図7に示すように、照合用データから、登録用データと同サイズのデータを順次切り出して相関値演算を算出していく。   Therefore, as shown in FIG. 7, the correlation value calculation is calculated by sequentially cutting out data having the same size as the registration data from the verification data.

そして、登録用データの集合をF、登録用データの各画素の画素値をfi、登録用データ(及び照合用データ切り出した領域)の総画素数をN(N=32×32=1024)、照合用データの切り出した領域のデータをG、照合用データの切り出した領域の各画素の画素値をgi、登録用データの各画素の画素値の平均値をfAVE、照合用データの切り出した領域のデータの各画素の画素値の平均値をgAVEとして下記の式(1)による相関値演算を行う。 Then, F is a set of registration data, f i is the pixel value of each pixel of registration data, and N is the total number of pixels of registration data (and the region from which data for verification is cut out) (N = 32 × 32 = 1024). , G is the data of the area where the data for verification is cut out, g i is the pixel value of each pixel of the area where the data for verification is cut out, f AVE is the average value of the pixel values of each pixel of the registration data, The average value of the pixel values of each pixel of the cut-out area data is set as g AVE , and the correlation value is calculated by the following equation (1).

そして、上記の登録用データと、照合用データから切り出したデータとの相関値演算を図8に示すように、照合用データから切り出すデータの位置をX方向およびY方向に1ドット(画素)ずつ順次ずらしながら繰り返す。   Then, as shown in FIG. 8, a correlation value calculation between the registration data and the data cut out from the collation data is performed, and the position of the data cut out from the collation data is set to 1 dot (pixel) in the X and Y directions. Repeat while shifting sequentially.

この結果、1つの登録用データ(32×32ドット)と照合用データ(64×64ドット)との照合演算を行うことにより、1089((64−32+1)×(64−32+1))個の相関値が得られることになる。   As a result, 1089 ((64−32 + 1) × (64−32 + 1)) correlations are obtained by performing a collation operation between one registration data (32 × 32 dots) and collation data (64 × 64 dots). A value will be obtained.

このようにして得られた1089個の相関値を、照合用データにおいて登録データとの照合を行った位置に対してグラフ化した例を図9に示す。   FIG. 9 shows an example in which the 1089 correlation values obtained in this way are graphed with respect to the positions where the collation data is collated with the registered data.

図9に示した例では、照合用データにおけるある位置のデータと登録用データとの相関値が、他の場所よりも大きくなり1に近い値となっていることが分かる。   In the example shown in FIG. 9, it can be seen that the correlation value between the data at a certain position and the registration data in the verification data is larger than other locations and is close to 1.

つまり、この図9に示した例では、登録用データと照合用データは同一の物体から取得されたものであると判定することができる。   That is, in the example shown in FIG. 9, it can be determined that the registration data and the verification data are obtained from the same object.

しかし、登録用データを取得する際の照明量、カメラのフォーカス設定不良、振動によるカメラと物体との距離の変動等の様々な要因により、正常な登録用データが取得できない場合が考えられる。そして、正常な登録用データが取得できない場合には、照合演算を行っても誤判定が発生する可能性が高くなってしまう。   However, there are cases where normal registration data cannot be acquired due to various factors such as the amount of illumination when acquiring registration data, camera focus setting failure, and fluctuations in the distance between the camera and the object due to vibration. If normal registration data cannot be acquired, there is a high possibility that erroneous determination will occur even if collation calculation is performed.

そのため、この同一性判定方法では、相関値の最大値だけを用いて同一性判定を行うのではなく、相関値の最大値と、相関値の最大値のノーマライズド・スコアを演算してこの2つの値により同一性判定を行う。   Therefore, in this identity determination method, the identity determination is not performed using only the maximum correlation value, but the maximum value of the correlation value and the normalized score of the maximum value of the correlation value are calculated. The identity is determined by one value.

このノーマライズド・スコアとは、相関値の分布具合を表す特徴量であり、相関値の最大値のノーマライズド・スコアは下記の式(2)に基づいて算出される。   The normalized score is a feature amount representing the degree of correlation value distribution, and the normalized score of the maximum correlation value is calculated based on the following equation (2).

ノーマライズド・スコア=(相関値の最大値−相関値の平均値)÷相関値の標準偏差 ・・・(2)   Normalized score = (maximum correlation value-average correlation value) ÷ standard deviation of correlation value (2)

このノーマライズド・スコアとは、その値が母集団の平均値からどれだけ離れているかを示す指標である。そのため、相関値の最大値のノーマライズド・スコアとは、1089個の相関値のうちの最大値が、相関値の平均値からどれだけ離れているかを示す指標となる。   The normalized score is an index indicating how far the value is from the average value of the population. Therefore, the normalized score of the maximum correlation value is an index indicating how far the maximum value of the 1089 correlation values is away from the average value of the correlation values.

例えば、図10に示すように、一例として相関値の最大値が0.3以上で、かつ相関値の最大値のノーマライズド・スコアが5.0以上の場合に、登録用データが取得された物体と照合用データを取得した物体とは同一の物体である可能性が高いとの判定を行う。   For example, as shown in FIG. 10, as an example, when the maximum correlation value is 0.3 or more and the normalized score of the maximum correlation value is 5.0 or more, the registration data is acquired. It is determined that there is a high possibility that the object and the object whose collation data has been acquired are the same object.

つまり、相関値の最大値とそのノーマライズド・スコアを図10に示したようなグラフ上にプロットした場合に、プロット値が斜線のエリア内にあれば、比較している2つの物体は同一である可能性が高く、斜線のエリア内に入らなければ、2つの物体は同一である可能性が低いと判定する。   That is, when the maximum correlation value and its normalized score are plotted on the graph as shown in FIG. 10, if the plotted value is within the hatched area, the two objects being compared are the same. If there is a high possibility that the object does not fall within the hatched area, it is determined that the two objects are unlikely to be the same.

例えば、図10に示したグラフでは、プロット値91は2つの物体は同一である可能性が高いことを示しており、プロット値92、93は2つの物体は同一である可能性が低いことを示している。   For example, in the graph shown in FIG. 10, the plot value 91 indicates that two objects are likely to be the same, and the plot values 92 and 93 indicate that the two objects are unlikely to be the same. Show.

[実施形態]
次に、本発明の実施の形態について図面を参照して詳細に説明する。
[Embodiment]
Next, embodiments of the present invention will be described in detail with reference to the drawings.

図11は本発明の一実施形態の印刷装置の構成を示す図である。   FIG. 11 is a diagram illustrating a configuration of a printing apparatus according to an embodiment of the present invention.

本実施形態では、円形の錠剤上に文字等の印刷情報を印刷するための印刷装置において、錠剤上に印刷を行う際に錠剤を一意に特定可能な特徴データを取得して登録用データ(登録用画像データ)として格納する。つまり、本実施形態の印刷装置は、錠剤から登録用データを取得するためのデータ取得装置として機能する。   In the present embodiment, in a printing apparatus for printing print information such as characters on a circular tablet, characteristic data that can uniquely identify the tablet is acquired when printing on the tablet, and registration data (registration) Image data). That is, the printing apparatus of this embodiment functions as a data acquisition apparatus for acquiring registration data from a tablet.

なお、このように印刷処理を行った全ての錠剤の登録用データを取得して格納しておくことにより、例えば、市場において偽造が疑われる錠剤が発見された場合、回収した偽造の疑いがある錠剤の特徴データを取得して、格納されている全ての登録用データと比較することにより正規に製造されて出荷された錠剤であるのか偽造の錠剤であるのかを判定することが可能となる。   In addition, by acquiring and storing registration data for all the tablets that have been printed in this way, for example, if a tablet suspected of forgery is found in the market, there is a suspicion of the collected counterfeit It is possible to determine whether a tablet is a manufactured tablet and a counterfeit tablet by acquiring the characteristic data of the tablet and comparing it with all stored registration data.

なお、本実施形態では、円形の錠剤に対して印刷を行う場合について説明するが、円形以外の他の形状の錠剤についても同様に本発明を適用することができるものである。また、錠剤の種類もFC(フィルムコート)錠、糖衣等のコーティング錠、素錠(裸錠)のいずれに対しても適用可能である。   In addition, although this embodiment demonstrates the case where it prints with respect to a circular tablet, this invention can be applied similarly to tablets of shapes other than circular. Also, the types of tablets can be applied to any of FC (film coated) tablets, coated tablets such as sugar-coated tablets, and plain tablets (bare tablets).

さらに、本発明は物体の一例として円形の錠剤を用いているが、表面の微細な凹凸等のランダム性を有する読み取り可能な固有の特徴が表面に沿って分布している物体であれば、チップコンデンサ等のチップ部品、ギヤ、ワッシャー等の部品、ICチップ、半導体部品、クレジットカード、チケット、有価証券、書類等の様々な物体を用いた場合でも本発明を適用可能である。   Furthermore, the present invention uses a circular tablet as an example of an object. However, if the object has readable unique features having randomness such as fine irregularities on the surface distributed along the surface, a chip is used. The present invention can be applied even when various objects such as chip parts such as capacitors, parts such as gears and washers, IC chips, semiconductor parts, credit cards, tickets, securities, and documents are used.

本実施形態の印刷装置は、図11に示されるように、コントローラ10と、錠剤90を供給するためのホッパ20と、検出用カメラ30と、リング照明ユニット31と、検査用カメラ40と、リング照明ユニット41と、プリントヘッド部50と、ホッパ20により供給された錠剤90を搬送するための搬送コンベア(搬送路)60と、不要品排出ユニット70と、良品格納ボックス71と、不良品格納ボックス72とを備えている。   As shown in FIG. 11, the printing apparatus according to the present embodiment includes a controller 10, a hopper 20 for supplying tablets 90, a detection camera 30, a ring illumination unit 31, an inspection camera 40, and a ring. Illumination unit 41, print head unit 50, transport conveyor (transport path) 60 for transporting tablets 90 supplied by hopper 20, unnecessary product discharge unit 70, non-defective product storage box 71, defective product storage box 72.

リング照明ユニット31、41は、それぞれ、搬送コンベア60上を搬送される錠剤90に光を照射するための照明装置である。   Each of the ring illumination units 31 and 41 is an illumination device for irradiating light onto the tablets 90 conveyed on the conveyance conveyor 60.

検出用カメラ30は、搬送コンベア60上を搬送される錠剤を含む画像を撮像する撮像手段である。この検出用カメラ30は、リング照明ユニット31の直上に設けられており、リング照明ユニット31により光が照射された錠剤90の画像を撮像することが可能になっている。そして、検出用カメラ30により錠剤90の画像を撮像することにより、錠剤の位置、向き等を検出することができる。   The detection camera 30 is an imaging unit that captures an image including tablets that are transported on the transport conveyor 60. The detection camera 30 is provided immediately above the ring illumination unit 31 and can capture an image of the tablet 90 irradiated with light by the ring illumination unit 31. Then, by taking an image of the tablet 90 with the detection camera 30, the position, orientation, etc. of the tablet can be detected.

プリントヘッド部50は、検出用カメラ30により撮像された画像に基づいて錠剤90への印刷を行う印刷手段である。ここでは、プリントヘッド部50は、インクジェット方式により搬送コンベア60を搬送されている錠剤90に対して製造番号、ロット番号、商品名等の文字、数字、記号等の印刷を行う。   The print head unit 50 is a printing unit that performs printing on the tablet 90 based on an image captured by the detection camera 30. Here, the print head unit 50 prints characters such as a manufacturing number, a lot number, and a product name, numbers, symbols, and the like on the tablets 90 that are transported on the transporting conveyor 60 by an inkjet method.

具体的には、プリントヘッド部50は、コントローラ10により印刷動作の制御が行われている。そして、コントローラ10は、検出用カメラ30により撮像された画像に基づいて、錠剤90の位置や向き、および表裏等の情報を検出して、検出した情報に基づいて搬送コンベア60上の錠剤90に対して指定された位置に指定された文字等が印刷されるようなタイミングでプリントヘッド部50を制御する。   Specifically, the print head unit 50 is controlled for printing operation by the controller 10. Then, the controller 10 detects information such as the position and orientation of the tablet 90 and the front and back sides based on the image captured by the detection camera 30 and applies the information to the tablets 90 on the transport conveyor 60 based on the detected information. On the other hand, the print head unit 50 is controlled at a timing at which a designated character or the like is printed at a designated position.

なお、本実施形態では、錠剤90は割線の無い円形の錠剤であるため、向きや表裏の情報を検出する必要はない。しかし、割線付きの円形の錠剤に印刷を行う場合には、搬送コンベア60上の錠剤の向きや割線の有無に基づく表裏の判定を行い、印刷制御部21は、その判定結果に基づいて印刷する文字の向き等を制御する。   In the present embodiment, since the tablet 90 is a circular tablet without a secant line, it is not necessary to detect orientation and front / back information. However, when printing is performed on a circular tablet with a score line, the front and back are determined based on the direction of the tablet on the conveyor 60 and the presence or absence of the score line, and the print control unit 21 performs printing based on the determination result. Control the direction of characters.

検査用カメラ40は、プリントヘッド部50により印刷が行われた後の錠剤90を含む画像を撮像する撮像手段である。検査用カメラ40は、リング照明ユニット41の直上に設けられており、リング照明ユニット41により光が照射された錠剤90の画像を撮像することが可能になっている。そして、検査用カメラ40は、印刷ずれや印刷かすれ等の印刷不良の錠剤90を検出して排除するために設けられている。   The inspection camera 40 is an imaging unit that captures an image including the tablet 90 that has been printed by the print head unit 50. The inspection camera 40 is provided immediately above the ring illumination unit 41 and can capture an image of the tablet 90 irradiated with light by the ring illumination unit 41. The inspection camera 40 is provided for detecting and eliminating tablets 90 that are defective in printing such as printing misalignment and printing fading.

不良品格納ボックス72は、不良品排出ユニット70により排出された不良品の錠剤を格納するための排出場所である。良品格納ボックス71は、不良品排出ユニット70により排出されなかった良品の錠剤を格納するための格納場所である。   The defective product storage box 72 is a discharge place for storing defective tablets discharged by the defective product discharge unit 70. The non-defective product storage box 71 is a storage location for storing non-defective tablets that have not been discharged by the defective product discharge unit 70.

不良品排出ユニット70は、コントローラ10の制御に基づいて、搬送コンベア60上を搬送されている錠剤90を不良品格納ボックス72に排出するような動作を行う。   Based on the control of the controller 10, the defective product discharge unit 70 performs an operation of discharging the tablets 90 being transported on the transport conveyor 60 to the defective product storage box 72.

コントローラ10は、検査用カメラ40により撮像された画像に基づいて、この画像における錠剤90の印刷状態を確認し、印刷不良だと判定した場合には、不良品排出ユニット70を制御して不良品の錠剤90が不良品格納ボックス72に排出されるよう制御する。   Based on the image captured by the inspection camera 40, the controller 10 confirms the printing state of the tablet 90 in this image. If the controller 10 determines that the printing is defective, the controller 10 controls the defective product discharge unit 70 to control the defective product. The tablet 90 is controlled to be discharged into the defective product storage box 72.

次に、本実施形態の印刷装置におけるコントローラ10のハードウェア構成を図12に示す。   Next, FIG. 12 shows a hardware configuration of the controller 10 in the printing apparatus of the present embodiment.

コントローラ10は、図12に示されるように、CPU11、メモリ12、ハードディスクドライブ(HDD)等の記憶装置13、検出用カメラ30、プリントヘッド部50、検査用カメラ40、不良品排出ユニット70等の外部装置との間でデータの送信及び受信を行う通信インタフェース(IF)14、タッチパネル又は液晶ディスプレイ並びにキーボードを含むユーザインタフェース(UI)装置15を有する。これらの構成要素は、制御バス16を介して互いに接続されている。   12, the controller 10 includes a CPU 11, a memory 12, a storage device 13 such as a hard disk drive (HDD), a detection camera 30, a print head unit 50, an inspection camera 40, a defective product discharge unit 70, and the like. It has a communication interface (IF) 14 for transmitting and receiving data to and from an external device, and a user interface (UI) device 15 including a touch panel or a liquid crystal display and a keyboard. These components are connected to each other via a control bus 16.

CPU11は、メモリ12または記憶装置13に格納された制御プログラムに基づいて予め定められた処理を実行して、コントローラ10の動作を制御する。なお、本実施形態では、CPU11は、メモリ12または記憶装置13内に格納された制御プログラムを読み出して実行するものとして説明したが、当該プログラムをCD−ROM等の記憶媒体に格納してCPU11に提供することも可能である。   The CPU 11 controls the operation of the controller 10 by executing a predetermined process based on a control program stored in the memory 12 or the storage device 13. In the present embodiment, the CPU 11 has been described as reading and executing a control program stored in the memory 12 or the storage device 13, but the program is stored in a storage medium such as a CD-ROM and stored in the CPU 11. It is also possible to provide.

図13は、上記の制御プログラムが実行されることにより実現されるコントローラ10の機能構成を示すブロック図である。   FIG. 13 is a block diagram showing a functional configuration of the controller 10 realized by executing the control program.

本実施形態のコントローラ10は、図13に示されるように、印刷制御部21と、登録用データ取得部22と、登録用データ格納部23と、不良品検出部24と、検証部26と、処理部27とを備えている。   As shown in FIG. 13, the controller 10 of the present embodiment includes a print control unit 21, a registration data acquisition unit 22, a registration data storage unit 23, a defective product detection unit 24, a verification unit 26, And a processing unit 27.

印刷制御部21は、検出用カメラ30により撮像された画像から印刷対象の錠剤90の位置を検出し、検出した位置に基づいてプリントヘッド部50の印字タイミングを制御している。つまり、印刷制御部21は、搬送コンベア60の搬送速度、撮像された画像中の錠剤90の位置、プリントヘッド部50の印刷速度等の情報から、プリントヘッド部50に対して印刷指示を出力するタイミングを算出して、算出されたタイミングでプリントヘッド部50に対して印刷指示を送信している。   The print control unit 21 detects the position of the tablet 90 to be printed from the image captured by the detection camera 30 and controls the print timing of the print head unit 50 based on the detected position. That is, the print control unit 21 outputs a print instruction to the print head unit 50 from information such as the conveyance speed of the conveyance conveyor 60, the position of the tablet 90 in the captured image, and the print speed of the print head unit 50. Timing is calculated, and a print instruction is transmitted to the print head unit 50 at the calculated timing.

このようにしてプリントヘッド部50により印刷処理が行われる様子を図14に示す。図14を参照すると、錠剤90は、搬送コンベア60によりプリントヘッド部50の下を通過する際に「XY−001」、「ABC」という文字と横線(ライン)が印刷されているのが分かる。   FIG. 14 shows how the printing process is performed by the print head unit 50 in this way. Referring to FIG. 14, it can be seen that the tablets 90 are printed with letters “XY-001” and “ABC” and a horizontal line (line) when passing under the print head unit 50 by the conveyor 60.

不良品検出部24は、検査用カメラ40により撮像された印刷後の錠剤90を含む画像から錠剤90に印刷された文字等の印刷情報に印刷かすれ、印刷ずれ等の不具合がないか否かを判定して、印刷不良があると判定した場合には、その錠剤90を搬送コンベア60から排出するよう不良品排出ユニット70を制御する。なお、不良品検出部24は、印刷不良だけでなく錠剤90の欠け等の不具合も検出している。   The defective product detection unit 24 prints the print information such as characters printed on the tablet 90 from the image including the printed tablet 90 imaged by the inspection camera 40, and determines whether or not there is a defect such as a printing deviation. If it is determined that there is a printing defect, the defective product discharge unit 70 is controlled so that the tablets 90 are discharged from the transport conveyor 60. Note that the defective product detection unit 24 detects not only defective printing but also defects such as chipping of the tablet 90.

登録用データ取得部22は、検査用カメラ40により撮像された画像から、錠剤90の表面上の所定サイズの領域に分布する特徴を表す特徴データを登録用データとして取得する。具体的には、登録用データ取得部22は、錠剤90の予め設定された登録用データ取得領域における64ドット×64ドットの画像を登録用データとして取得する。   The registration data acquisition unit 22 acquires, as registration data, feature data representing features distributed in a region of a predetermined size on the surface of the tablet 90 from the image captured by the inspection camera 40. Specifically, the registration data acquisition unit 22 acquires a 64 dot × 64 dot image in a preset registration data acquisition area of the tablet 90 as registration data.

なお、上記で説明した同一性判定方法では、32ドット×32ドットの画像を登録用データとして取得して格納しておき、判定対象の物体から64ドット×64ドットの画像を照合用データとして取得して照合演算を行うものとして説明したが、本実施形態では、登録用データが64ドット×64ドットの画像データである点が異なる。   In the identity determination method described above, a 32-dot × 32-dot image is acquired and stored as registration data, and a 64-dot × 64-dot image is acquired as verification data from the object to be determined. However, the present embodiment is different in that the registration data is image data of 64 dots × 64 dots.

例えば、検査用カメラ40により撮像された画像の模式図を図15に示す。図15では、搬送コンベア60上の印刷処理後の錠剤90を含む画像が撮像された様子が示されている。   For example, a schematic diagram of an image captured by the inspection camera 40 is shown in FIG. FIG. 15 shows a state in which an image including the tablet 90 after the printing process on the conveyor 60 is captured.

本実施形態における登録用データ取得部22は、図15に示したような画像から、図4に示した照合用データ取得領域82と同じ領域を登録用データ取得領域として、64×64ドットの画像データを登録用データとして取得する。つまり、本実施形態では、図5に示したような64×64ドットの照合用データと同様な画像データが登録用データとして取得されることになる。   The registration data acquisition unit 22 according to the present embodiment uses a 64 × 64 dot image from the image shown in FIG. 15 as the registration data acquisition area, which is the same area as the verification data acquisition area 82 shown in FIG. Acquire data as registration data. That is, in the present embodiment, image data similar to the 64 × 64 dot collation data as shown in FIG. 5 is acquired as registration data.

なお、本実施形態では、印刷された文字等の印刷情報の位置に基づいて登録用データ取得領域81や照合用データ取得領域82の位置が規定されている。そのため、ここでは錠剤上に印刷された横線からの相対的な位置に基づいて登録用データ取得領域81や照合用データ取得領域82が規定されている。   In the present embodiment, the positions of the registration data acquisition area 81 and the collation data acquisition area 82 are defined based on the position of print information such as printed characters. Therefore, here, the registration data acquisition area 81 and the collation data acquisition area 82 are defined based on the relative position from the horizontal line printed on the tablet.

登録用データ格納部23は、登録用データ取得部22により取得された登録用データを錠剤の同一性判定のためのデータとして格納する。なお、登録用データ格納部23の記憶容量に余裕がある場合には、印刷後の錠剤の全体の画像を登録用データとして格納するようにしても良い。   The registration data storage unit 23 stores the registration data acquired by the registration data acquisition unit 22 as data for determining the identity of tablets. If the storage capacity of the registration data storage unit 23 is sufficient, the entire image of the tablet after printing may be stored as registration data.

検証部26は、同一の登録用データどうしの照合演算結果と、異なる錠剤から取得された登録用データどうしの照合演算結果とを比較して、登録用データの信頼性が予め定められた基準値以上であることを検証する。   The verification unit 26 compares the collation calculation result between the same registration data and the collation calculation result between the registration data acquired from different tablets, and the reliability of the registration data is determined in advance. Verify that this is the case.

例えば、検証部26は、同一の登録用データどうしの照合演算結果と、異なる錠剤から取得された登録用データどうしの照合演算結果との差が予め設定された閾値より大きい場合に、登録用データの信頼性が予め定められた基準値以上であるとの検証結果を出力する。   For example, when the difference between the collation calculation result between the same registration data and the collation calculation result between the registration data acquired from different tablets is larger than a preset threshold value, the verification unit 26 A verification result is output that the reliability is equal to or higher than a predetermined reference value.

なお、検証部26は、比較対象の2つの登録用データのうち一方の登録用データの一部を切り取り、切り取ったデータと他方の登録用データの対応する領域から取得されたデータどうしの相関値を演算することにより照合演算を行う。   The verification unit 26 cuts a part of one registration data out of the two registration data to be compared, and the correlation value between the data acquired from the corresponding area of the cut data and the other registration data. The collation calculation is performed by calculating.

具体的には、検証部26は、64×64ドットの登録用データの中央位置から32×32ドットのデータを切り取り、この切り取ったデータと、他方の登録用データとを用いて照合演算を行う。   Specifically, the verification unit 26 cuts out 32 × 32 dot data from the center position of the registration data of 64 × 64 dots, and performs a collation operation using the cut out data and the other registration data. .

つまり、検証部26は、一方の登録用データから切り取った32×32ドットのデータと同じサイズのデータを他方の登録用データから順次選択して、選択したデータと一方の登録用データから切り取ったデータとの相関値を正規化相関法により順次演算して複数の相関値を取得する。   That is, the verification unit 26 sequentially selects data having the same size as the 32 × 32 dot data cut from one registration data from the other registration data, and cuts the selected data and one registration data from each other. A correlation value with data is sequentially calculated by a normalized correlation method to obtain a plurality of correlation values.

そして、検証部26は、取得された複数の相関値から最大値と、相関値の最大値から平均値を減じた値を標準偏差で除すことで得られる相関値の最大値のノーマライズド・スコアを算出する。   Then, the verification unit 26 normalizes the maximum value of the correlation values obtained by dividing the maximum value from the plurality of acquired correlation values and the value obtained by subtracting the average value from the maximum correlation value by the standard deviation. Calculate the score.

そして、検証部26は、同一の登録用データどうしの照合演算における相関値の最大値と、異なる物体から取得された登録用どうしの照合演算における相関値の最大値との差および同一の登録用データどうしの照合演算における相関値の最大値のノーマライズド・スコアと、異なる錠剤から取得された登録用どうしの照合演算における相関値の最大値のノーマライズド・スコアとの差が予め設定された閾値より大きい場合に、登録用データの信頼性が予め定められた基準値以上であるとの検証結果を出力する。   Then, the verification unit 26 determines the difference between the maximum value of the correlation value in the matching calculation between the same registration data and the maximum value of the correlation value in the matching calculation obtained from different objects, and the same registration value. Preset threshold value for the difference between the normalized value of the maximum correlation value in the matching operation between data and the normalized score of the maximum correlation value in the matching operation for registration obtained from different tablets If larger, a verification result indicating that the reliability of the registration data is equal to or higher than a predetermined reference value is output.

なお、相関値の具体的な計算方法や、ノーマライズド・スコアの具体的な計算方法については、上述した同一性判定方法における登録用データ(32×32ドット)と照合用データ(64×64ドット)とを用いた照合演算における相関値の計算方法や、ノーマライズド・スコアの計算方法と同様である。   In addition, regarding the specific calculation method of the correlation value and the specific calculation method of the normalized score, the registration data (32 × 32 dots) and the verification data (64 × 64 dots) in the above-described identity determination method are used. ) And the calculation method of the correlation value in the matching operation and the calculation method of the normalized score.

また、検証部26が64×64ドットの登録用データの信頼性を検証する詳細な動作および理由については後述する。   The detailed operation and reason for verifying the reliability of the registration data of 64 × 64 dots by the verification unit 26 will be described later.

処理部27は、検証部26における検証結果に基づく処理を実行する。例えば、処理部27は、検証部26における検証結果の情報を登録用データ格納部23に格納するようにする。このことにより登録用データ格納部23は、登録用データとともにその登録用データに対する検証部26における検証結果の情報を格納することになる。   The processing unit 27 executes processing based on the verification result in the verification unit 26. For example, the processing unit 27 stores the verification result information in the verification unit 26 in the registration data storage unit 23. As a result, the registration data storage unit 23 stores information on the verification result of the verification unit 26 for the registration data together with the registration data.

また、処理部27は、検証部26における検証結果が登録用データの信頼性が予め定められた基準値未満であった場合、自装置である印刷装置の動作を停止するような制御を行うようにしても良い。さらに、処理部27は、検証部26における検証結果が登録用データの信頼性が予め定められた基準値未満であった場合、その旨を予め設定された宛先に通知したり、自装置の表示画面上に文字情報等により通知するようにしても良い。   Further, when the verification result in the verification unit 26 indicates that the reliability of the registration data is less than a predetermined reference value, the processing unit 27 performs control to stop the operation of the printing apparatus that is the self apparatus. Anyway. Further, when the verification result in the verification unit 26 indicates that the reliability of the registration data is less than a predetermined reference value, the processing unit 27 notifies the preset destination to that effect or displays the display of its own device. You may make it notify by character information etc. on a screen.

[検証部26における登録用データの信頼性の検証方法の詳細]
次に、本実施形態の印刷装置において、32×32ドットの画像ではなく64×64ドットの画像を登録用データとして格納して、検証部26が登録用データの信頼性を検証する動作の詳細を以下に説明する。
[Details of Verification Method of Registration Data Reliability in Verification Unit 26]
Next, in the printing apparatus according to the present embodiment, details of an operation in which a 64 × 64 dot image instead of a 32 × 32 dot image is stored as registration data, and the verification unit 26 verifies the reliability of the registration data. Is described below.

本実施形態の印刷装置において、登録用データを取得する際に検証部26による登録用データの信頼性の検証を行うようにしているのは、登録用データが正常に取得することができないような状態が発生する可能性があるからである。   In the printing apparatus of the present embodiment, when the registration data is acquired, the verification unit 26 verifies the reliability of the registration data so that the registration data cannot be acquired normally. This is because a state may occur.

このような登録用データが正常に取得することができないような状態の一例としては、錠剤の画像を撮像する際の露光量が多すぎる露光過多が挙げられる。   As an example of a state in which such registration data cannot be acquired normally, there is excessive exposure when taking an image of a tablet.

例えば、正常な露光量で撮像された場合の錠剤の画像例を図16(A)に示し、露光過多の状態で撮像された場合の錠剤の画像例を図16(B)に示す。   For example, FIG. 16A shows an example of a tablet image taken with a normal exposure amount, and FIG. 16B shows an example tablet image taken with an overexposure state.

図16(B)に示したような状態では、露光量が多すぎることにより画像全体が白くなってしまっているのが分かる。そして、このような露光過多の状態で撮像された画像に基づいて取得された登録用データの一例を図17に示す。   In the state as shown in FIG. 16B, it can be seen that the entire image has become white due to the excessive exposure amount. FIG. 17 shows an example of registration data acquired based on an image captured in such an overexposed state.

図17に示した登録用データでは、露光過多によりほとんどの画素が白くなっており濃度値としては0に近い値になっているのが分かる。このような登録用データは各錠剤の特徴が正常に取得できたデータではないため、このような登録用データを用いて同一性判定を行ったとしても、誤判定が発生する可能性が高くなってしまう。   In the registration data shown in FIG. 17, it can be seen that most pixels are white due to overexposure and the density value is close to zero. Since such registration data is not data in which the characteristics of each tablet can be acquired normally, even if the identity determination is performed using such registration data, there is a high possibility of erroneous determination. End up.

このような露光過多が発生する場合としては、例えば、以下のような例が考えられる。   Examples of cases where such overexposure occurs include the following examples.

錠剤の色には白色、茶色等の様々な色が存在するが、錠剤の色によって適切な露光量は異なる。例えば、茶色等の濃い色の場合にはより強い光量を照射したほうが表面の特徴が表れた画像を撮像することができるのに対して、白色等の場合には弱い光量を照射した方が表面の特徴が表れた画像を撮像することができる。   Various colors such as white and brown exist for the color of the tablet, but the appropriate exposure amount varies depending on the color of the tablet. For example, in the case of a dark color such as brown, it is possible to capture an image in which the surface features appear when irradiating with a stronger light amount, whereas in the case of white or the like, the surface irradiated with a weaker light amount It is possible to capture an image in which the above features appear.

そのため、画像を撮像する錠剤の色によりリング照明ユニット31、41の光量を調節する必要があるが、印刷する錠剤の色が切り替わったのに光量の調節をしなかった場合、錠剤の色に対して適切な光量とならずに露光過多となるような場合が考えられる。   Therefore, it is necessary to adjust the light intensity of the ring illumination units 31 and 41 according to the color of the tablet that captures the image. However, if the color of the tablet to be printed is changed but the light intensity is not adjusted, the color of the tablet Thus, there may be a case in which overexposure occurs without obtaining an appropriate amount of light.

このような理由により、本実施形態の印刷装置では、登録用データを取得して格納する際に検証部26により取得される登録用データの信頼性の検証を行うようにしている。   For this reason, the printing apparatus according to the present embodiment verifies the reliability of registration data acquired by the verification unit 26 when acquiring and storing registration data.

なお、露光過多以外にも、逆に光量不足により取得される画像がほぼ黒一色になってしまう場合、検査用カメラ40のフォーカス異常、振動による画像のぶれ、様々な照明異常等の場合でも同様に正常な登録用データを取得することができない場合が発生し得る。   In addition to overexposure, when the image acquired due to insufficient light intensity becomes almost black, the same applies to the case of abnormal focus of the inspection camera 40, image blur due to vibration, various illumination abnormalities, etc. In some cases, normal registration data cannot be obtained.

本実施形態の検証部26では、登録用データ格納部23に格納されている複数の登録用データに対して信頼性の検証が行われる。   In the verification unit 26 of the present embodiment, reliability verification is performed on a plurality of registration data stored in the registration data storage unit 23.

以下の説明では、一例として、検証部26が図18に示すような10の登録用データ1〜10に対して信頼性の検証を行う場合を用いて説明する。この登録用データ1〜10は、10個の異なる錠剤からそれぞれ取得されたデータである。   In the following description, as an example, the case where the verification unit 26 performs reliability verification on 10 pieces of registration data 1 to 10 as illustrated in FIG. 18 will be described. The registration data 1 to 10 are data respectively obtained from 10 different tablets.

まず、検証部26は、図19に示すように、64×64ドットの登録用データ1から32×32ドットのデータを切り出して、切り出したデータと登録用データ1との照合演算を行う。   First, as shown in FIG. 19, the verification unit 26 cuts out 32 × 32 dot data from 64 × 64 dot registration data 1 and performs a collation operation between the cut out data and the registration data 1.

当然ながら、切り出された32×32ドットのデータは、登録用データ1の一部のデータと同一のデータであるため、切り出した位置における相関値はほぼ1に近い値となる。   Of course, since the cut out 32 × 32 dot data is the same data as a part of the registration data 1, the correlation value at the cut out position is a value close to 1.

そして、検証部26は、図20に示すように、登録用データ1から切り出された32×32ドットのデータと、登録用データ2〜10との照合演算をそれぞれ行う。   Then, as illustrated in FIG. 20, the verification unit 26 performs a collation operation between the 32 × 32 dot data cut out from the registration data 1 and the registration data 2 to 10.

ここで、登録用データが信頼性の高い正常なデータである場合、登録用データ1から切り出された32×32ドットのデータと、登録用データ1との照合演算の結果得られる相関値は、図21に示すグラフのようになる。   Here, when the registration data is normal data with high reliability, the correlation value obtained as a result of the collation operation between the 32 × 32 dot data extracted from the registration data 1 and the registration data 1 is The graph is as shown in FIG.

つまり、32×32ドットのデータを切り出した位置における相関値は限りなく1に近い値となり、その他の位置における相関値は小さな値となる。   That is, the correlation value at the position where the data of 32 × 32 dots is cut out is a value close to 1, and the correlation values at other positions are small.

また、登録用データが信頼性の高い正常なデータである場合、登録用データ1から切り出された32×32ドットのデータと、登録用データ2〜10との照合演算の結果得られる相関値は、図22に示すグラフのようになる。   When the registration data is normal data with high reliability, the correlation value obtained as a result of the collation operation between the 32 × 32 dot data cut out from the registration data 1 and the registration data 2 to 10 is The graph shown in FIG. 22 is obtained.

つまり、照合演算が行われたデータはそれぞれ異なる錠剤から取得されたものであるため、全ての位置における相関値は小さな値となる。   That is, since the data subjected to the collation calculation is obtained from different tablets, the correlation values at all positions are small.

次に、正常な登録用データが取得できていない場合のデータ例を図23、図24に示す。図23は、露光過多の状態で撮像された画像から取得された登録用データ1の例(図23(B))と、この登録用データ1から切り出された32×32ドットのデータ例(図23(A))を示す図である。   Next, FIG. 23 and FIG. 24 show examples of data when normal registration data cannot be acquired. FIG. 23 shows an example of registration data 1 (FIG. 23B) acquired from an image captured in an overexposed state, and a 32 × 32 dot data example cut out from the registration data 1 (FIG. 23). 23 (A)).

また、図24は、露光過多の状態で撮像された画像から取得された登録用データ2の例(図24(B))と、露光過多の状態で撮像された画像から取得された登録用データ1から切り出された32×32ドットのデータ例(図24(A))を示す図である。   FIG. 24 shows an example of registration data 2 acquired from an image captured in an overexposed state (FIG. 24B) and registration data acquired from an image captured in an overexposed state. FIG. 25 is a diagram illustrating a data example of 32 × 32 dots clipped from 1 (FIG. 24A).

図23、図24を参照すると、露光過多の状態で撮像された画像から取得された登録用データどうしはかなり近似したデータ構造になっているのが分かる。   Referring to FIG. 23 and FIG. 24, it can be seen that registration data acquired from an image captured in an overexposed state has a data structure that is quite approximate.

そのため、このようなデータを用いて照合演算を行ったとしても、図25に示すように、照合位置に関係なく相関値が比較的大きな値になるよう照合演算結果しか得られない。つまり、図23(A)と図23(B)のデータ間の照合演算における演算結果と、図24(A)と図24(B)のデータ間の照合演算における演算結果が同じようなものとなってしまうことになる。   Therefore, even if the collation calculation is performed using such data, only the collation calculation result is obtained so that the correlation value becomes a relatively large value regardless of the collation position as shown in FIG. That is, the calculation result in the collation calculation between the data in FIGS. 23A and 23B is similar to the calculation result in the collation calculation between the data in FIGS. 24A and 24B. Will end up.

そして、本実施形態では、検証部26は、図26に示すような、10の登録用データ1〜10に対して、同一のデータどうしの照合演算および、異なる登録用データどうしの照合演算を行う。   And in this embodiment, the verification part 26 performs the collation calculation of the same data and the collation calculation of different registration data with respect to 10 registration data 1-10 as shown in FIG. .

つまり、検証部26は、同一の登録用データどうしの照合演算を10回行い、異なる登録用データどうしの照合演算を45回(10×(10−1)/2)行う。   That is, the verification unit 26 performs the collation operation between the same registration data 10 times, and performs the collation operation between the different registration data 45 times (10 × (10−1) / 2).

このような照合演算により得られた相関値の最大値と、相関値の最大値のノーマライズド・スコア(NS)をグラフにしたものを図27、図28に示す。   FIG. 27 and FIG. 28 are graphs showing the maximum correlation value obtained by such a collation operation and the normalized score (NS) of the maximum correlation value.

ここでは、10の登録用データ1〜10を用いて演算を行っているため、図27、図28では、同一の登録用データにおける演算結果が10、異なる登録用データ間における演算結果が45プロットされている。   Here, since the calculation is performed using 10 pieces of registration data 1 to 10, in FIG. 27 and FIG. 28, the calculation result for the same registration data is 10 and the calculation result between the different registration data is 45 plots. Has been.

なお、図27は、正常な登録データが取得できている場合のグラフ例を示しており、図28は、正常な登録データが取得できていない場合のグラフ例を示している。   27 shows an example of a graph when normal registration data can be acquired, and FIG. 28 shows an example of a graph when normal registration data cannot be acquired.

図27に示したグラフ例では、正常な登録用データが取得できていることにより、同一の登録用データどうしの10の演算結果(黒丸印)は、相関値の最大値およびノーマライズド・スコアの両方とも大きな値となっているのが分かる。また、図27では、異なる登録用データ間の45の演算結果(黒四角印)は、相関値の最大値およびノーマライズド・スコアの両方とも小さな値となっているのが分かる   In the example of the graph shown in FIG. 27, since the normal registration data can be acquired, the 10 calculation results (black circles) between the same registration data are the maximum correlation value and the normalized score. It can be seen that both values are large. Also, in FIG. 27, it can be seen that 45 calculation results (black square marks) between different registration data are both small values of the maximum correlation value and the normalized score.

そのため、同一の登録用データどうしの相関値の最大値のうちの最も小さな値と、異なる登録用データどうしの相関値の最大値のうちの最も大きな値との差は0.694となり、その差は大きくなっているのが分かる。   Therefore, the difference between the smallest value among the maximum correlation values between the same registration data and the largest value among the maximum correlation values between the different registration data is 0.694, which is the difference. You can see that it is getting bigger.

また、同一の登録用データどうしのノーマライズド・スコアのうちの最も小さな値と、異なる登録用データどうしのノーマライズド・スコアのうちの最も大きな値との差は7.132となり、その差も大きくなっているのが分かる。   The difference between the smallest value of the normalized scores of the same registration data and the largest value of the normalized scores of different registration data is 7.132, and the difference is also large. You can see that

これに対して、図28に示したグラフ例では、同一の登録用データどうしの10の演算結果(黒丸印)は、相関値の最大値は1に近い大きな値となっているが、ノーマライズド・スコアはばらつきが大きくなっているのが分かる。また、図28では、正常な登録用データが取得できていないことにより、異なる登録用データ間の45の演算結果(黒四角印)のばらつきが大きくなり、相関値の最大値やノーマライズド・スコアが大きな値となってしまっているものが存在しているのが分かる   On the other hand, in the graph example shown in FIG. 28, the 10 calculated results (black circles) between the same registration data have a maximum correlation value close to 1, but the normalized value is large.・ It can be seen that the scores vary widely. In FIG. 28, since normal registration data cannot be acquired, the variation of 45 calculation results (black square marks) between different registration data increases, and the maximum correlation value or the normalized score is increased. It can be seen that there is something that has become a large value

そのため、同一の登録用データどうしの相関値の最大値のうちの最も小さな値と、異なる登録用データどうしの相関値の最大値のうちの最も大きな値との差は−0.021となり、その差がマイナスとなっているのが分かる。つまり、同一の登録用データどうしの相関値の最大値が、異なる登録用データどうしの相関値の最大値よりも小さくなってしまうような状態が発生してしまっているのが分かる。   Therefore, the difference between the smallest value among the maximum correlation values between the same registration data and the largest value among the maximum correlation values between the different registration data is −0.021. You can see that the difference is negative. That is, it can be seen that a situation has occurred in which the maximum correlation value between the same registration data is smaller than the maximum correlation value between different registration data.

また、同一の登録用データどうしのノーマライズド・スコアのうちの最も小さな値と、異なる登録用データどうしのノーマライズド・スコアのうちの最も大きな値との差は−8.32となり、その差もマイナスになっているのが分かる。つまり、同一の登録用データどうしのノーマライズド・スコアが、異なる登録用データどうしのノーマライズド・スコアよりも小さくなってしまうような状態が発生してしまっているのが分かる。   The difference between the smallest value of the normalized scores of the same registration data and the largest value of the normalized scores of the different registration data is −8.32, and the difference is also You can see that it is negative. That is, it can be seen that a state has occurred in which the normalized score between the same registration data is smaller than the normalized score between different registration data.

そのため、例えば検証部26は、同一の登録用データどうしの照合演算における相関値の最大値と、異なる物体から取得された登録用どうしの照合演算における相関値の最大値との差が0より大きく、かつ、同一の登録用データどうしの照合演算における相関値の最大値のノーマライズド・スコアと、異なる錠剤から取得された登録用どうしの照合演算における相関値の最大値のノーマライズド・スコアとの差が0より大きい場合に、登録用データの信頼性が予め定められた基準値以上であるとの検証結果を出力する。   Therefore, for example, the verification unit 26 has a difference between the maximum value of the correlation value in the matching calculation between the same registration data and the maximum value of the correlation value in the matching calculation between the registrations acquired from different objects is larger than zero. And the normalized score of the maximum correlation value in the matching operation between the same registration data and the normalized score of the maximum correlation value in the matching operation between the registration data obtained from different tablets. When the difference is larger than 0, a verification result indicating that the reliability of the registration data is equal to or higher than a predetermined reference value is output.

検証部26がこのような検証を行うことにより、図28に示したような照合演算結果の場合には、正常な登録用データが取得できていないとの検証結果を得ることが可能となる。   When the verification unit 26 performs such verification, in the case of the collation calculation result as shown in FIG. 28, it is possible to obtain a verification result that normal registration data cannot be acquired.

そして、処理部27が印刷装置の動作を停止させて、正常な登録用データが取得されていない旨を通知することにより、リング照明ユニット31、41の光量の設定を再調整することを促すようにすることが可能となる。   Then, the processing unit 27 stops the operation of the printing apparatus and notifies the user that the normal registration data has not been acquired, thereby prompting the user to readjust the light intensity settings of the ring illumination units 31 and 41. It becomes possible to.

なお、本実施形態では、印刷後の錠剤90を撮像する検査用カメラ40の画像に基づいて登録用データを取得する場合を用いて説明したが、印刷前の錠剤90を撮像する検出用カメラ30の画像に基づいて登録用データを取得することも可能である。   In this embodiment, the case where the registration data is acquired based on the image of the inspection camera 40 that images the tablet 90 after printing has been described. However, the detection camera 30 that images the tablet 90 before printing. It is also possible to acquire registration data based on the images.

[変形例]
上記実施形態では、錠剤の片側のみに印刷を行う場合を用いて説明したが、本発明はこれに限定されるものではなく、搬送コンベア60の最後に錠剤を反転させる反転装置を設け、検査用カメラ30、検出用カメラ40、プリントヘッド部50等の構成をもう1組用意して、反転された錠剤についても印刷処理を実行するような構成の場合でも同様に本発明を適用することができるものである。
[Modification]
In the above embodiment, the case where printing is performed only on one side of the tablet has been described. However, the present invention is not limited to this, and an inversion device for inverting the tablet is provided at the end of the transport conveyor 60 for inspection. The present invention can be similarly applied to a configuration in which another set of the camera 30, the detection camera 40, the print head unit 50, and the like is prepared and the printing process is performed on the inverted tablet. Is.

また、上記実施形態の印刷装置では、説明を簡単にするために、搬送コンベア60上を錠剤90が1列だけ搬送される場合を用いて説明したが、複数列の錠剤を同時に搬送して、複数の錠剤に対して同時に印刷を行う場合でも本発明は同様に適用可能である。   Moreover, in the printing apparatus of the said embodiment, in order to simplify description, although demonstrated using the case where the tablet 90 was conveyed only 1 row on the conveyance conveyor 60, a several row tablet is conveyed simultaneously, The present invention can be similarly applied even when printing is simultaneously performed on a plurality of tablets.

さらに、上記実施形態では、64×64ドットの画像データを登録用データとして取得し、この登録用データから32×32ドットのデータを切り出して照合演算を行う場合を用いて説明しているが、登録用データおよび切り出すデータのデータサイズはこのようなサイズに限定されるものではない。   Furthermore, in the above-described embodiment, a case has been described in which 64 × 64 dot image data is acquired as registration data, and 32 × 32 dot data is cut out from the registration data to perform a collation operation. The data size of the registration data and the cut-out data is not limited to such a size.

10 コントローラ
11 CPU
12 メモリ
13 記憶装置
14 通信インタフェース(IF)
15 ユーザインタフェース(UI)装置
16 制御バス
20 ホッパ
21 印刷制御部
22 登録用データ取得部
23 登録用データ格納部
24 不良品検出部
26 相関値演算部
27 処理部
30 検出用カメラ
31 リング照明ユニット
40 検査用カメラ
41 リング照明ユニット
50 プリントヘッド部
60 搬送コンベア
70 不良品排出ユニット
71 良品格納ボックス
72 不良品格納ボックス
81 登録用データ取得領域
82 照合用データ取得領域
90、90a、90b 錠剤
91〜93 プロット値
300 真贋判定装置
310 リング照明ユニット
320 カメラ
330 照合用データ取得部
340 登録用データ格納部
350 相関値演算部
360 同一性判定部
10 Controller 11 CPU
12 Memory 13 Storage Device 14 Communication Interface (IF)
DESCRIPTION OF SYMBOLS 15 User interface (UI) apparatus 16 Control bus 20 Hopper 21 Print control part 22 Registration data acquisition part 23 Registration data storage part 24 Defective product detection part 26 Correlation value calculation part 27 Processing part 30 Detection camera 31 Ring illumination unit 40 Inspection camera 41 Ring illumination unit 50 Print head unit 60 Conveyor 70 Defective product discharge unit 71 Defective product storage box 72 Defective product storage box 81 Registration data acquisition area 82 Reference data acquisition area 90, 90a, 90b Tablet 91-93 Plot Value 300 authenticity determination device 310 ring illumination unit 320 camera 330 collation data acquisition unit 340 registration data storage unit 350 correlation value calculation unit 360 identity determination unit

Claims (11)

登録対象の物体を含む画像から、前記物体上の所定サイズの領域に分布する特徴を表す特徴データを登録用データとして取得する取得手段と、
前記取得手段により取得された登録用データを物体の同一性判定のためのデータとして格納する格納手段と、
同一の登録用データどうしの照合演算結果と、異なる物体から取得された登録用データどうしの照合演算結果とを比較して、当該登録用データの信頼性が予め定められた基準値以上であることを検証する検証手段と、
を備えたデータ取得装置。
Acquisition means for acquiring, as registration data, feature data representing features distributed in a region of a predetermined size on the object from an image including an object to be registered;
Storage means for storing the registration data acquired by the acquisition means as data for determining the identity of an object;
The comparison operation result between the same registration data and the comparison operation result between the registration data acquired from different objects are compared, and the reliability of the registration data is equal to or higher than a predetermined reference value. Verification means for verifying,
A data acquisition device comprising:
前記検証手段は、同一の登録用データどうしの照合演算結果と、異なる物体から取得された登録用データどうしの照合演算結果との差が予め設定された閾値より大きい場合に、当該登録用データの信頼性が予め定められた基準値以上であるとの検証結果を出力する請求項1記載のデータ取得装置。   When the difference between the collation calculation result between the same registration data and the collation calculation result between the registration data acquired from different objects is larger than a preset threshold, the verification means The data acquisition device according to claim 1, wherein the data acquisition device outputs a verification result that the reliability is equal to or higher than a predetermined reference value. 前記検証手段は、比較対象の2つの登録用データのうち一方の登録用データの一部を切り取り、切り取ったデータと他方の登録用データの対応する領域から取得されたデータどうしの相関値を演算することにより照合演算を行う請求項1または2記載のデータ取得装置。   The verification means cuts out a part of one registration data of the two registration data to be compared, and calculates a correlation value between the cut data and the data acquired from the corresponding area of the other registration data. The data acquisition apparatus according to claim 1, wherein the collation operation is performed by performing the verification operation. 前記検証手段は、前記一方の登録用データから切り取ったデータと同じサイズのデータを前記他方の登録用データから順次選択して、選択したデータと前記一方の登録用データから切り取ったデータとの相関値を順次演算して複数の相関値を取得し、取得された複数の相関値から最大値と、前記相関値の最大値から平均値を減じた値を標準偏差で除すことで得られる相関値の最大値のノーマライズド・スコアを算出し、同一の登録用データどうしの照合演算における相関値の最大値と、異なる物体から取得された登録用どうしの照合演算における相関値の最大値との差および同一の登録用データどうしの照合演算における相関値の最大値のノーマライズド・スコアと、異なる物体から取得された登録用どうしの照合演算における相関値の最大値のノーマライズド・スコアとの差が予め設定された閾値より大きい場合に、当該登録用データの信頼性が予め定められた基準値以上であるとの検証結果を出力する請求項3記載のデータ取得装置。   The verification unit sequentially selects data having the same size as the data cut from the one registration data from the other registration data, and correlates the selected data with the data cut from the one registration data. Correlation obtained by sequentially calculating values to obtain a plurality of correlation values, and dividing the maximum value from the plurality of acquired correlation values and the value obtained by subtracting the average value from the maximum value of the correlation values by the standard deviation The normalized score of the maximum value is calculated, and the maximum value of the correlation value in the matching operation between the same registration data and the maximum value of the correlation value in the matching operation between the registration data obtained from different objects The normalized score of the maximum correlation value in the matching operation between the difference and the same registration data, and the maximum correlation value in the matching operation between registrations obtained from different objects 4. The data acquisition according to claim 3, wherein when the difference from the normalized score is greater than a preset threshold value, a verification result indicating that the reliability of the registration data is equal to or higher than a predetermined reference value is output. apparatus. 前記検証手段は、前記相関値を正規化相関法で演算することにより取得する請求項3または4記載のデータ取得装置。   5. The data acquisition device according to claim 3, wherein the verification unit acquires the correlation value by calculating with a normalized correlation method. 前記格納手段は、前記登録用データとともに当該登録用データに対する前記検証手段における検証結果の情報を格納する請求項1から5のいずれか1項記載のデータ取得装置。   6. The data acquisition apparatus according to claim 1, wherein the storage unit stores information on a verification result in the verification unit for the registration data together with the registration data. 前記検証手段における検証結果が登録用データの信頼性が予め定められた基準値未満であった場合、自装置の動作を停止する停止手段をさらに備えた請求項1から5のいずれか1項記載のデータ取得装置。   6. The apparatus according to claim 1, further comprising a stopping unit that stops the operation of the device when the verification result in the verification unit is that the reliability of the registration data is less than a predetermined reference value. Data acquisition device. 前記検証手段における検証結果が登録用データの信頼性が予め定められた基準値未満であった場合、その旨を通知する通知手段をさらに備えた請求項1から5のいずれか1項記載のデータ取得装置。   The data according to any one of claims 1 to 5, further comprising notification means for notifying that when the verification result in the verification means is that the reliability of the registration data is less than a predetermined reference value. Acquisition device. 前記物体は錠剤である請求項1から8のいずれか1項記載のデータ取得装置。   The data acquisition device according to claim 1, wherein the object is a tablet. 登録対象の物体への印刷を行う印刷手段と、
前記印刷手段により印刷が行われた後の物体を撮像した画像から、前記物体上の所定サイズの領域に分布する特徴を表す特徴データを登録用データとして取得する取得手段と、
前記取得手段により取得された登録用データを物体の同一性判定のためのデータとして格納する格納手段と、
同一の登録用データどうしの照合演算結果と、異なる物体から取得された登録用データどうしの照合演算結果とを比較して、当該登録用データの信頼性が予め定められた基準値以上であることを検証する検証手段と、
を備えた印刷装置。
A printing means for printing on an object to be registered;
An acquisition unit that acquires, as registration data, feature data representing features distributed in a region of a predetermined size on the object from an image obtained by imaging the object after printing by the printing unit;
Storage means for storing the registration data acquired by the acquisition means as data for determining the identity of an object;
The comparison operation result between the same registration data and the comparison operation result between the registration data acquired from different objects are compared, and the reliability of the registration data is equal to or higher than a predetermined reference value. Verification means for verifying,
Printing device with
登録対象の物体を含む画像から、前記物体上の所定サイズの領域に分布する特徴を表す特徴データを登録用データとして取得する取得ステップと、
前記取得ステップにおいて取得された登録用データを物体の同一性判定のためのデータとして格納する格納ステップと、
同一の登録用データどうしの照合演算結果と、異なる物体から取得された登録用データどうしの照合演算結果とを比較して、当該登録用データの信頼性が予め定められた基準値以上であることを検証する検証ステップとをコンピュータに実行させるためのプログラム。
An acquisition step of acquiring, as registration data, feature data representing features distributed in a region of a predetermined size on the object from an image including an object to be registered;
A storage step of storing the registration data acquired in the acquisition step as data for object identity determination;
The comparison operation result between the same registration data and the comparison operation result between the registration data acquired from different objects are compared, and the reliability of the registration data is equal to or higher than a predetermined reference value. A program for causing a computer to execute a verification step for verifying the process.
JP2015225264A 2015-11-18 2015-11-18 Data acquisition device, printing device, and program Active JP6719723B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015225264A JP6719723B2 (en) 2015-11-18 2015-11-18 Data acquisition device, printing device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015225264A JP6719723B2 (en) 2015-11-18 2015-11-18 Data acquisition device, printing device, and program

Publications (2)

Publication Number Publication Date
JP2017097388A true JP2017097388A (en) 2017-06-01
JP6719723B2 JP6719723B2 (en) 2020-07-08

Family

ID=58816808

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015225264A Active JP6719723B2 (en) 2015-11-18 2015-11-18 Data acquisition device, printing device, and program

Country Status (1)

Country Link
JP (1) JP6719723B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004157602A (en) * 2002-11-01 2004-06-03 Toshiba Corp Apparatus and method for person recognition and passage controller
JP2011028718A (en) * 2009-06-26 2011-02-10 Fuji Xerox Co Ltd Registering apparatus, authentication system, and registering program
JP2013193989A (en) * 2012-03-19 2013-09-30 Fuji Xerox Co Ltd Tablet, method for producing tablets, tablet management device, device for checking tablets, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004157602A (en) * 2002-11-01 2004-06-03 Toshiba Corp Apparatus and method for person recognition and passage controller
JP2011028718A (en) * 2009-06-26 2011-02-10 Fuji Xerox Co Ltd Registering apparatus, authentication system, and registering program
JP2013193989A (en) * 2012-03-19 2013-09-30 Fuji Xerox Co Ltd Tablet, method for producing tablets, tablet management device, device for checking tablets, and program

Also Published As

Publication number Publication date
JP6719723B2 (en) 2020-07-08

Similar Documents

Publication Publication Date Title
JP2019534526A5 (en)
JP4113393B2 (en) Coin discrimination method and apparatus
ES2920383T3 (en) Methods and a system for verifying the identity of a printed article
KR20090038882A (en) Document authentication using template matching with fast masked normalized cross-correlation
JP2007280367A (en) Face collation device
CN110580459B (en) Safety check method and control equipment
EP3723054A1 (en) Banknote recognition unit, banknote handling device, and banknote recognition method
JP6587210B2 (en) Printing apparatus and program
JP6751521B2 (en) Data acquisition device, printing device, authenticity judgment device and program
KR101438443B1 (en) Identification system of forged ids and identification method using the same
US11842593B2 (en) Systems and methods for detection of counterfeit documents
WO2005062028A1 (en) Substrate inspection device
JP6719723B2 (en) Data acquisition device, printing device, and program
US20210312210A1 (en) Object matching device
JP2019220047A (en) Authentication device, authentication program, authentication method
CN115994996A (en) Collation apparatus, storage medium, and collation method
US10204353B2 (en) Copy detection using extinsic features
CN111766244B (en) Method and system for verifying anti-counterfeiting element
US10740996B2 (en) Apparatus and method for checking the authenticity of a security element
ES2947414T3 (en) Assessing the condition of real world objects
US9928612B2 (en) Information processing apparatus
JP2007248376A (en) Inspection method and inspection device of printed pattern on ovd foil
CN116671095A (en) Authenticity verification system and authenticity verification method
JP2005031802A (en) Medium authenticity discriminating device
JP2009110169A (en) Medicament inspection apparatus and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181022

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190911

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191028

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191219

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200531

R150 Certificate of patent or registration of utility model

Ref document number: 6719723

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350