JPH09128469A - Two-dimensional code verification device - Google Patents

Two-dimensional code verification device

Info

Publication number
JPH09128469A
JPH09128469A JP7280393A JP28039395A JPH09128469A JP H09128469 A JPH09128469 A JP H09128469A JP 7280393 A JP7280393 A JP 7280393A JP 28039395 A JP28039395 A JP 28039395A JP H09128469 A JPH09128469 A JP H09128469A
Authority
JP
Japan
Prior art keywords
dimensional code
reference item
read
verification device
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7280393A
Other languages
Japanese (ja)
Inventor
Makoto Sugiyama
誠 杉山
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.)
TEC CORP
Original Assignee
TEC CORP
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 TEC CORP filed Critical TEC CORP
Priority to JP7280393A priority Critical patent/JPH09128469A/en
Publication of JPH09128469A publication Critical patent/JPH09128469A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To verify whether a two-dimensional code such as a matrix code is correctly printed or not to a print medium. SOLUTION: Each reference item is provided with a reference item area 14-1 storing data of a reference item to verify and judging numerical data in the reference item. Then, with respect to a two-dimensional picture read by a two-dimensional code scanner 1, an evaluating numerical value is calculated concerning each reference item stored in the reference item area 14-1 to execute synthetic judgement based on this evaluating numerial value.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、印刷媒体に印刷
された2次元コードが正しく印刷されているか否かを検
証する2次元コード検証装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a two-dimensional code verification device for verifying whether a two-dimensional code printed on a print medium is printed correctly.

【0002】[0002]

【従来の技術】流通等の産業において、各種バーコー
ド、多段バーコードや図9に示すようなマトリックスコ
ード等の2次元コードが使用されている。ところで、こ
れらのコードはほとんどの場合、スキャナ等の読取装置
により自動的に読み取られてコードが意味する情報が解
読され、この情報に基づいて精算や在庫管理等の各種処
理が行われる。
2. Description of the Related Art Two-dimensional codes such as various bar codes, multi-step bar codes and matrix codes shown in FIG. 9 are used in industries such as distribution. By the way, in most cases, these codes are automatically read by a reading device such as a scanner to decode the information that the code means, and various processes such as settlement and inventory management are performed based on this information.

【0003】ところで、各種バーコードや2次元コード
は通常プリンタ等によりラベル等に印刷されるが、その
印刷品質については各種プリンタの性能により変化す
る。しかし、印刷品質が極端に悪い場合には、上記読取
装置でコードを読取った時に、読取りエラーが発生し、
精算業務や在庫管理業務等の各種業務が滞るという問題
がある。
By the way, various bar codes and two-dimensional codes are usually printed on a label or the like by a printer or the like, and the printing quality thereof varies depending on the performance of each printer. However, when the print quality is extremely poor, a reading error occurs when reading the code with the above reading device,
There is a problem that various operations such as settlement and inventory management are delayed.

【0004】そこで、従来、各種バーコードについて
は、印刷されたバーコードが正しく印刷されているか否
かを検証するバーコード検証器がある。このバーコード
検証器は、バーコードが所定の仕様( 規格 )に適合して
いるかを調べるもので、例えばバーコードを構成する各
バーの太さのばらつき具合を検査して、ばらつき具合が
許容できる範囲内である場合には適合と判定して、許容
できる範囲を越える場合には不適合と判定して、ディス
プレイ等の表示器により表示するようになっている。な
お、2次元コードでも特に多段式バーコードは、バーコ
ードを縦に重ねた構成であるので、原理的には上記バー
コード検出器とほぼ同様な検証装置により、多段式バー
コードが正しく印刷されているか否かを検証することが
できる。
Therefore, conventionally, regarding various barcodes, there is a barcode verifier that verifies whether or not the printed barcode is correctly printed. This bar code verifier is to check whether the bar code conforms to a predetermined specification (standard) .For example, the bar code composing the bar code can be inspected for variations in thickness, and the variations can be allowed. If it is within the range, it is judged as conforming, and if it exceeds the allowable range, it is judged as non-conforming, and it is displayed by a display device such as a display. Even in the case of a two-dimensional code, in particular, the multi-stage bar code has a structure in which the bar codes are vertically stacked. Therefore, in principle, the multi-stage bar code can be correctly printed by a verification device almost similar to the above bar code detector. Can be verified.

【0005】[0005]

【発明が解決しようとする課題】しかし、多段式バーコ
ードを除いたマトリックスコード等の2次元コードにつ
いては、バーコード検証器のように単純にバーの太さの
ばらつきから検証することができないので、それらの2
次元コードが正しく印刷されているか否かを検証する装
置は一般的に開発されておらず、2次元コードが正しく
印刷されているか否かを検証することはできなかった。
However, a two-dimensional code such as a matrix code excluding a multi-stage bar code cannot be simply verified from the variation in the bar thickness, unlike a bar code verifier. , Those two
An apparatus for verifying whether the two-dimensional code is printed correctly has not been generally developed, and it has not been possible to verify whether the two-dimensional code is printed correctly.

【0006】そこでこの発明は、マトリックスコード等
の各種2次元コードが正しく印刷媒体に印刷されている
か否かを検証する2次元コード検証装置を提供すること
を目的とする。
Therefore, an object of the present invention is to provide a two-dimensional code verification device which verifies whether various two-dimensional codes such as a matrix code are correctly printed on a print medium.

【0007】[0007]

【課題を解決するための手段】請求項1対応の発明は、
印刷媒体上に印刷された2次元コードの画像を読取る読
取手段と、この読取手段により読取られた2次元コード
画像に対して検証すべき基準項目が設定された基準項目
設定手段と、この基準項目設定手段により設定された基
準項目に基づいて順次2次元コード画像を評価する評価
手段と、この評価手段による評価結果に基づいて印刷媒
体上の2次元コードの印刷状態の正否を検証する検証手
段とを設けたものである。
The invention corresponding to claim 1 is:
Reading means for reading the image of the two-dimensional code printed on the print medium, reference item setting means for setting reference items to be verified with respect to the two-dimensional code image read by the reading means, and the reference item. An evaluation unit that sequentially evaluates the two-dimensional code image based on the reference item set by the setting unit, and a verification unit that verifies whether the printing state of the two-dimensional code on the print medium is correct based on the evaluation result by the evaluation unit. Is provided.

【0008】請求項2対応の発明は、請求項1対応の発
明において、基準項目設定手段により設定される基準項
目として、2次元コードを構成する基本パターンの大き
さのばらつきを含むものである。
The invention according to claim 2 is the invention according to claim 1, wherein the reference item set by the reference item setting means includes a variation in the size of the basic pattern forming the two-dimensional code.

【0009】請求項3対応の発明は、請求項1対応の発
明において、基準項目設定手段により設定される基準項
目として、2次元コードの上下左右方向における歪みを
含むものである。
According to a third aspect of the present invention, in the first aspect of the invention, the reference item set by the reference item setting means includes distortion in the vertical and horizontal directions of the two-dimensional code.

【0010】請求項4対応の発明は、請求項1対応の発
明において、読取手段は、2次元コードの読取り画像に
対して2次元コードを構成する基本パターン単位で読取
りエラーを訂正するエラー訂正機能を備え、基準項目設
定手段により設定される基準項目として、読取手段によ
る2次元コードの読取り時にエラー訂正機能により訂正
した個数を含むものである。
According to a fourth aspect of the present invention, in the first aspect of the invention, the reading means corrects a reading error in a basic pattern unit forming a two-dimensional code for a read image of the two-dimensional code. The reference item set by the reference item setting means includes the number corrected by the error correction function when the two-dimensional code is read by the reading means.

【0011】請求項5対応の発明は、請求項1対応の発
明において、基準項目設定手段により設定される基準項
目として、2次元コードを構成する基本パターンの印刷
・非印刷でのコントラストを含むものである。
According to a fifth aspect of the invention, in the first aspect of the invention, the reference item set by the reference item setting means includes a contrast in printing / non-printing of the basic pattern forming the two-dimensional code. .

【0012】[0012]

【発明の実施の形態】以下、この発明の実施の形態を図
面を参照して説明する。図1は、この発明を適用した2
次元コード検証装置の全体の構成を示す図である。なお
ここでは、この実施の形態の一例として、この2次元コ
ード検証装置にマトリックスコードを検証するためのソ
フトウエアを備えたものについて説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a second embodiment of the present invention.
It is a figure which shows the whole structure of a dimension code verification apparatus. As an example of this embodiment, a two-dimensional code verification device provided with software for verifying a matrix code will be described here.

【0013】1は、印刷媒体上に印刷されたマトリック
スコード等の2次元コードの画像を読取る読取手段とし
ての2次元コードスキャナである。この2次元コードス
キャナ1は、読取り時に1個のモジュールについて、読
取上のエラーを訂正する機能を備え、このエラー訂正が
施された画像データをケーブル2を介してホストコンピ
ュータ3へ送信する。
Reference numeral 1 denotes a two-dimensional code scanner as a reading means for reading an image of a two-dimensional code such as a matrix code printed on a print medium. The two-dimensional code scanner 1 has a function of correcting an error in reading one module at the time of reading, and transmits the image data on which this error correction is performed to the host computer 3 via the cable 2.

【0014】図2は、このホストコンピュータ3の要部
回路構成を示すブロック図である。11は、制御部本体
を構成するCPU(central processing unit )である。
このCPU11が行う処理のプログラムデータが記憶さ
れたROM(read onlymemory)12、前記CPU11が
処理を行う時に使用する各種メモリのエリアが形成され
たRAM(random access memory)13、ハードディスク
装置やフロッピーディスク装置等から構成されたメモリ
部14、各種周辺装置と接続するI/O(input/output)
ポート15は、それぞれシステムバス16を介して前記
CPU11と接続されている。
FIG. 2 is a block diagram showing a circuit configuration of a main part of the host computer 3. Reference numeral 11 denotes a CPU (central processing unit) constituting the control unit body.
A ROM (read only memory) 12 in which program data for processing performed by the CPU 11 is stored, a RAM (random access memory) 13 in which areas of various memories used when the CPU 11 performs processing are formed, a hard disk device or a floppy disk device. I / O (input / output) connected to various peripheral devices such as memory unit 14
Each of the ports 15 is connected to the CPU 11 via a system bus 16.

【0015】また、前記CPU11は前記システムバス
16を介して、キーボード17とのデータの伝送制御を
行うキーボードインターフェイス18、表示器19を制
御する表示コントローラ20、前記2次元コードスキャ
ナ1と前記ケーブル2を介してデータの伝送制御を行う
スキャナインターフェイス21と接続されている。
The CPU 11 also controls a keyboard interface 18 for controlling data transmission with a keyboard 17 via the system bus 16, a display controller 20 for controlling a display device 19, the two-dimensional code scanner 1 and the cable 2. It is connected to the scanner interface 21 that controls data transmission via the.

【0016】前記メモリ部14には、基準項目の総個数
( ここではnとする )、マトリックスコードに関して検
証すべき基準項目のデータ及びその基準項目における判
定数値データを記憶する基準項目設定手段としての基準
項目エリア14-1が形成されている。
The memory unit 14 stores the total number of reference items.
A reference item area 14-1 is formed as reference item setting means for storing the data of the reference item to be verified with respect to the matrix code and the judgment numerical value data for the reference item (here, n).

【0017】図3は、前記ホストコンピュータ3の前記
CPU11が行う検証処理の流れを示す図である。ま
ず、RAM13に形成された格納エリアxに1を設定
し、ステップ1( ST1 )の処理として、格納エリアx
に設定されている数値xにより、基準項目エリア14-1
からx番目の基準項目データ及びその基準項目の判定数
値データを読取る。次に、そのx番目の基準項目データ
に基づいて、読取った2次元コード画像の評価を行い、
評価数値を算出する( 評価手段 )。
FIG. 3 is a diagram showing a flow of verification processing performed by the CPU 11 of the host computer 3. First, 1 is set in the storage area x formed in the RAM 13, and the storage area x is set as the processing of step 1 (ST1).
Based on the numerical value x set in, the reference item area 14-1
Read the x-th reference item data and the judgment numerical value data of the reference item. Next, the read two-dimensional code image is evaluated based on the x-th reference item data,
Calculate the evaluation value (evaluation method).

【0018】例えば、基準項目の第1の例として、マト
リックスコードを構成する各モジュール( 基本パターン
)21の幅( 縦及び横 )のばらつきにより、読取った2
次元コード画像を評価する。図4( a )に示すマトリッ
クスコードの1行は、各モジュール21の幅のばらつき
がないものである。また、図4( b )に示すマトリック
スコードの1行では、左から6番目の未印刷の白のモジ
ュール21の幅W3及び左から7番目の印刷の黒のモジ
ュール21の幅B4が、他のモジュールに比べて小さく
なっており、各モジュール21の幅にばらつきが生じて
いる。その評価数値の算出方法としては、太さの平均値
及び分散を算出することにより数値として表すことがで
きる。
For example, as a first example of the standard items, each module (basic pattern
) 21 was read due to variation in width (length and width) of 2
Evaluate the dimension code image. One line of the matrix code shown in FIG. 4A has no variation in the width of each module 21. Further, in one line of the matrix code shown in FIG. 4B, the width W3 of the unprinted white module 21 which is the sixth from the left and the width B4 of the black module 21 which is the seventh printed from the left are different from each other. It is smaller than the module, and the width of each module 21 varies. As a method of calculating the evaluation numerical value, it is possible to express the numerical value by calculating the average value and the variance of the thickness.

【0019】なお、実際的には白のモジュールW1〜W
5と黒のモジュールB1〜B5との間で幅が異なる場合
があり、それは印字上の問題により発生するモジュール
の太り、細りによるものである。従って、白のモジュー
ルと黒のモジュールとで個別的にモジュールの太さの平
均値及び分散を算出することにより、白及び黒のモジュ
ールの太り細りによるばらつきを数値として表すことが
できる。この白と黒のモジュールから個別的に算出した
平均値の差を求めると、この差が白と黒のモジュールの
太り細りを定量的に表現する数値となり、プリンタの印
字精度に基づくマトリックスコードの評価数値を表すこ
とになる。
In practice, white modules W1 to W
5 and the black modules B1 to B5 may have different widths due to the thick and thin modules generated due to printing problems. Therefore, by individually calculating the average value and variance of the module thicknesses of the white module and the black module, it is possible to represent the variation due to the thinness of the white and black modules as a numerical value. When the difference between the average values calculated individually from the white and black modules is obtained, this difference becomes a numerical value that quantitatively expresses the overweight and thinness of the white and black modules, and the matrix code evaluation based on the printing accuracy of the printer It will represent a numerical value.

【0020】基準項目の第2の例として、マトリックス
コードの歪みにより、読取った2次元コード画像を評価
する。図5は、マトリックスコードの構造を幾何学的に
簡略化した図であり、図5(a )に示すマトリックスコ
ードは、歪みのないものである。図5( b )に示すマト
リックスコードでは、マトリックスコード全体( 各モジ
ュール )が正方四辺形でなく略平行四辺形になってお
り、歪みが生じている。その評価数値の算出方法として
は、マトリックスコード全体( 各モジュール )の外郭線
の長さ及び外郭線が交わる角度を算出( 計算的に測定 )
することにより数値として表すことができる。
As a second example of the reference item, the read two-dimensional code image is evaluated by the distortion of the matrix code. FIG. 5 is a diagram in which the structure of the matrix code is simplified geometrically, and the matrix code shown in FIG. 5 (a) has no distortion. In the matrix code shown in FIG. 5B, the entire matrix code (each module) is not a square quadrangle but a substantially parallelogram, and distortion occurs. As the calculation method of the evaluation value, the length of the outline of the whole matrix code (each module) and the angle at which the outline intersects are calculated (calculated)
By doing so, it can be expressed as a numerical value.

【0021】図6は、マトリックスコードの歪みの他の
例を示す図である。このマトリックスコードでは、マト
リックスコード全体としては正方四辺形であるが、この
マトリックスコードのモジュールの一部又は全部がそれ
ぞれ歪んでいる。しかしこれは前述した基準項目の第1
の例で説明したように、各モジュールの幅のばらつきに
より評価することができる。
FIG. 6 is a diagram showing another example of the distortion of the matrix code. In this matrix code, the matrix code as a whole is a quadrilateral, but some or all of the modules of this matrix code are distorted. However, this is the first of the criteria items mentioned above.
As described in the above example, it can be evaluated by the variation in the width of each module.

【0022】基準項目の第3の例として、2次元コード
スキャナ1におけるエラー訂正が実施されたモジュール
の個数により、読取った2次元コード画像を評価する。
例えば図7に示すように、印字欠けのモジュール21は
単純な処理では黒のモジュールとして認識されないが、
2次元コードスキャナのエラー訂正機能により黒のモジ
ュールとして訂正される。そこで、このエラー訂正機能
により訂正されたモジュール( 黒のモジュール及び白の
モジュール )の個数により評価する。すなわち、この個
数により2次元コード画像の信頼性を評価数値として表
すことができる。
As a third example of the reference item, the read two-dimensional code image is evaluated according to the number of modules in the two-dimensional code scanner 1 in which the error correction is performed.
For example, as shown in FIG. 7, the print-defective module 21 is not recognized as a black module by simple processing.
It is corrected as a black module by the error correction function of the two-dimensional code scanner. Therefore, evaluation is performed by the number of modules (black modules and white modules) corrected by this error correction function. That is, the reliability of the two-dimensional code image can be represented as an evaluation numerical value by this number.

【0023】基準項目第4の例として、2次元コードス
キャナ1から出力される読取画像の信号波形における黒
のモジュールに対応する部分と白のモジュールに対応す
る部分とのコントラストにより、読取った2次元コード
画像を評価する。図8は、マトリックスコードの1行及
びその1行に対応する( 1走査における)2次元コード
スキャナ1による読取波形を示す図である。左から第1
番目の黒のモジュール( 幅b1 )において、時点t1に
おいて、読取波形が適正に自動調整される判定レベル(
例えば読取波形の高周波成分及び低周波成分に応じて変
化する )を下回ることにより、黒のモジュール( 幅b1
)に入ったことが認識される。次に時点t2において、
読取波形が判定レベルを上回ることにより黒モジュール
から出て白のモジュール( 幅W1 )に入ったことが認識
される。
As a fourth example of the reference item, the read two-dimensional image is obtained by the contrast between the part corresponding to the black module and the part corresponding to the white module in the signal waveform of the read image output from the two-dimensional code scanner 1. Evaluate the code image. FIG. 8 is a diagram showing one line of the matrix code and a waveform read by the two-dimensional code scanner 1 (in one scan) corresponding to the one line. First from the left
In the th black module (width b1), at the time point t1, the read level is automatically and properly adjusted.
For example, the black module (width b1 is changed) depending on the high frequency component and the low frequency component of the read waveform.
) Is recognized. Then at time t2,
It is recognized that when the read waveform exceeds the judgment level, it comes out of the black module and enters the white module (width W1).

【0024】以降同様にして、読取波形が判定レベルを
下回ることにより、各白のモジュール( 幅W1〜W5、
… )を出て各黒のモジュール( 幅B2〜B5、… )に入
ったことが認識され、読取波形が判定レベルを上回るこ
とにより、各黒のモジュール( B2〜B5、… )を出て
各白のモジュール( 幅W2〜W5 )に入ったことが認識
される。
Similarly, when the read waveform falls below the determination level, each white module (width W1 to W5,
It is recognized that each black module (widths B2 to B5, ...) Has exited and the read waveform exceeds the judgment level, and each black module (B2 to B5, ...) It is recognized that the white module (width W2 to W5) has been entered.

【0025】従って、読取波形の黒のモジュール部分で
は、判定レベルを下回ることにより、全体的に低いレベ
ルとなり、読取波形の白のモジュール部分では、判定レ
ベルを上回ることにより全体的に高いレベルとなる。そ
こで、この読取波形の黒のモジュール部分と白のモジュ
ール部分とではコントラストが生じる。
Therefore, in the black module portion of the read waveform, the overall level becomes lower by falling below the determination level, and in the white module portion of the read waveform, the overall level becomes higher by exceeding the determination level. . Therefore, contrast occurs between the black module portion and the white module portion of this read waveform.

【0026】このコントラストは、予め設定された水準
レベル( 水準線 )Hから各モジュール部分の高さ( 低さ
を )を求め、読取波形の黒のモジュール部分と白のモジ
ュール部分との高さ( 低さの )の差として算出すること
ができる。この算出したコントラストが、黒のモジュー
ルと白のモジュールとの識別における信頼性、すなわち
読取った2次元コード画像の信頼性を示す評価数値とし
て表すことができる。
For this contrast, the height (lowness) of each module portion is obtained from a preset level (level line) H, and the height between the black module portion and the white module portion of the read waveform ( It can be calculated as the difference of (). The calculated contrast can be expressed as an evaluation value indicating the reliability in identifying the black module and the white module, that is, the reliability of the read two-dimensional code image.

【0027】その他、マトリックスコードを評価する方
法に他に各種方法があり、これらの方法に対応する基準
項目が、基準項目エリア14-1に順番に設定されてい
る。上述したように呼出されたx番目の基準項目データ
に基づいて、読取った2次元コード画像の評価を行い、
評価数値が算出されると、この評価数値がx番目の基準
項目の判定数値データと比較して、読取った2次元コー
ド画像がX番目の基準項目に適合しているか否かを判断
する。ここで、適合していると判断すると、x番目の基
準項目について、適合及びその評価数値のデータをRA
M13の所定エリアに記憶( セット )する。また不適合
と判断すると、不適合をRAM13の所定エリアに記憶
( セット )する。
There are various other methods for evaluating the matrix code, and the reference items corresponding to these methods are set in order in the reference item area 14-1. Based on the xth reference item data called as described above, the read two-dimensional code image is evaluated,
When the evaluation numerical value is calculated, the evaluation numerical value is compared with the judgment numerical value data of the xth reference item to determine whether the read two-dimensional code image conforms to the Xth reference item. Here, if it is determined that the result is conforming, the data of the conformity and its evaluation numerical value are RA for the x-th criterion item.
Store (set) in a predetermined area of M13. When it is determined that the nonconformity is found, the nonconformity is stored in a predetermined area of the RAM 13.
( set.

【0028】次に、格納エリアxに設定されている数値
xに対して+1の加算更新処理を行い、この加算更新さ
れた格納エリアxの数値xが基準項目の総個数nより大
きいか否かを判断する。ここで、格納エリアxの数値x
が総個数n以下と判断すると、再び前述のステップ1の
処理へ戻るようになっている。
Next, the addition / update processing of +1 is performed on the numerical value x set in the storage area x, and whether or not the numerical value x of the storage area x subjected to the additional update is larger than the total number n of reference items. To judge. Here, the numerical value x of the storage area x
When it is determined that the total number is less than or equal to n, the process returns to the above-mentioned step 1 again.

【0029】また、その数値xが総個数nより大きいと
判断すると、RAM13の所定エリアに記憶された各基
準項目についての適合/不適合及び評価数値のデータに
基づいて、今回読取った2次元コードが正しく印刷され
ているか否かを総合的に評価する( 検証手段 )。なお、
この総合評価は、例えば基準項目の1つでも不適合とい
う評価があれば、その2次元コードが正しく印刷されて
いないと評価しても良いし、また、例えば評価数値から
さらに共通のマイナス値を算出し、このマイナス値の合
計が所定の下限値を下回ったときに、その2次元コード
が正しく印刷されていないと評価しても良いものであ
る。
When it is judged that the numerical value x is larger than the total number n, the two-dimensional code read this time is determined based on the data of conformity / nonconformity and evaluation numerical values for each reference item stored in a predetermined area of the RAM 13. Comprehensively evaluate whether or not it is printed correctly (verification means). In addition,
In this comprehensive evaluation, for example, if even one of the reference items is evaluated as non-conforming, it may be evaluated that the two-dimensional code is not printed correctly, or, for example, a common negative value is calculated from the evaluation values. However, when the total of the negative values is less than the predetermined lower limit value, it may be evaluated that the two-dimensional code is not printed correctly.

【0030】この総合的評価を終了すると、その評価結
果を表示器19に表示して、この検証処理を終了するよ
うになっている。
When the comprehensive evaluation is completed, the evaluation result is displayed on the display unit 19 and the verification process is completed.

【0031】このような構成の本実施の形態において
は、基準項目エリア14-1には、予めマトリックスコー
ド等の2次元コードを検証するために必要な全ての基準
項目のデータ及びその基準項目に関する判定数値データ
が記憶されている。検証すべきマトリックスコード等の
2次元コードは、2次元コードスキャナ1により読取ら
れ、2次元コード画像データ( 2値化される前のアナロ
グデータ )としてホストコンピュータ3に送信される。
In the present embodiment having such a configuration, the reference item area 14-1 relates to all reference item data necessary for verifying a two-dimensional code such as a matrix code in advance and the reference item. Judgment numerical value data is stored. A two-dimensional code such as a matrix code to be verified is read by the two-dimensional code scanner 1 and transmitted to the host computer 3 as two-dimensional code image data (analog data before binarization).

【0032】ホストコンピュータ3では、基準項目エリ
ア14-1から1番からn番まで順番に基準項目データ及
びその基準項目の判定数値データを読取る。例えば、基
準項目としては、マトリックスコードを構成する各モジ
ュールの幅のばらつき、マトリックスコードの歪み、エ
ラー訂正が実施されたモジュールの個数、黒のモジュー
ルに対応する部分と白のモジュールに対応する部分との
読取波形のコントラスト等がある。
The host computer 3 reads the reference item data and the judgment numerical data of the reference items in order from the reference item area 14-1 to the 1st to nth items. For example, as reference items, there are variations in the width of each module forming the matrix code, distortion of the matrix code, the number of modules for which error correction has been performed, a portion corresponding to a black module and a portion corresponding to a white module. There is a contrast of the read waveform of.

【0033】このように順番に基準項目を読取る毎に、
各基準項目についてその読取った2次元コード画像デー
タを評価して、評価数値を算出する。この算出して得た
評価数値に対して判定数値データに基づいて、その読取
った2次元コード画像データが該当する基準項目に適合
しているか否かを判断する。適合と判断すると、該当す
る基準項目について適合及び評価数値のデータをRAM
13にセットし、また不適合と判断すると、該当する基
準項目について不適合との評価をRAM13にセットす
る。以上のようにしてRAM13に各基準項目について
の評価結果、すなわち適合及び評価数値のデータ又は不
適合のデータが順番に記憶されていく。最後の基準項目
についての評価結果がRAM13に記憶されると、総合
評価が行われ、この総合評価により、2次元コードが正
しく印刷されているか否かの評価結果が、表示器19に
表示される。
Every time the reference items are read in this way,
The read two-dimensional code image data is evaluated for each reference item to calculate an evaluation value. It is determined whether the read two-dimensional code image data conforms to the corresponding reference item based on the determination numerical value data for the calculated evaluation numerical value. When it is judged as conforming, the data of conformity and evaluation numerical values for the corresponding standard items are stored in RAM.
If it is set to 13, and if it is determined that it is non-conforming, the evaluation of non-conformity for the corresponding reference item is set in the RAM 13. As described above, the RAM 13 stores the evaluation results for each reference item, that is, the data of conformity and evaluation numerical values or the data of nonconformity in order. When the evaluation result for the last reference item is stored in the RAM 13, a comprehensive evaluation is performed, and the comprehensive evaluation causes the display 19 to display the evaluation result as to whether or not the two-dimensional code is correctly printed. .

【0034】このようにこの実施の形態によれば、各基
準項目毎に検証すべき基準項目のデータ及びその基準項
目における判定数値データを記憶した基準項目エリア1
4-1を設け、2次元コードスキャナ1により読取ったマ
トリックスコードの画像に対して、基準項目エリア14
-1に記憶されている各基準項目について評価数値を算出
し、この評価数値に基づいて総合判断を行うことによ
り、マトリックスコード( 2次元コード )が正しく印刷
されているか否かを検証することができる。
As described above, according to this embodiment, the reference item area 1 in which the data of the reference item to be verified for each reference item and the numerical value data for determination in the reference item are stored.
4-1 is provided for the reference item area 14 for the matrix code image read by the two-dimensional code scanner 1.
It is possible to verify whether the matrix code (two-dimensional code) is printed correctly by calculating the evaluation value for each reference item stored in -1 and making a comprehensive judgment based on this evaluation value. it can.

【0035】また、この実施の形態によれば、マトリッ
クスコードのモジュールの幅のばらつきを評価すること
が含まれていることにより、少なくとも従来のバーコー
ドを検証するのと同じレベルの信頼性を確保してマトリ
ックスコードを検証することができる。
Further, according to this embodiment, since the variation in the width of the module of the matrix code is evaluated, at least the same level of reliability as that for verifying the conventional bar code is secured. Then, the matrix code can be verified.

【0036】また、この実施の形態によれば、マトリッ
クスコードの全体的な歪み( 上下左右方向における歪み
)を評価することが含まれていることにより、2次元コ
ードにおいて必要な検証を行うことができる。これは、
従来のバーコードの検証では対応できない点である。
Further, according to this embodiment, the overall distortion of the matrix code (distortion in the vertical and horizontal directions is
) Is included, the necessary verification can be performed in the two-dimensional code. this is,
This is a point that conventional barcode verification cannot handle.

【0037】また、この実施の形態によれば、2次元コ
ードスキャナ1におけるエラー訂正が実施されたモジュ
ールの個数を評価することが含まれていることにより、
読取った2次元コードの画像データの信頼性を評価する
と共に、読取った画像データからではなく、より直接的
に実際に印刷されている2次元コードを正確に検証する
ことができる。
Further, according to this embodiment, since the evaluation of the number of modules in which the error correction is performed in the two-dimensional code scanner 1 is included,
The reliability of the image data of the read two-dimensional code can be evaluated, and the actually printed two-dimensional code can be verified more directly rather than from the read image data.

【0038】また、この実施の形態によれば、2次元コ
ードスキャナ1から出力される読取画像の信号波形にお
ける黒のモジュールに対応する部分と白のモジュールに
対応する部分のコントラストを評価することが含まれて
いることにより、黒のモジュールと白のモジュールとの
識別における信頼性を検証することができる。
Further, according to this embodiment, the contrast of the portion corresponding to the black module and the portion corresponding to the white module in the signal waveform of the read image output from the two-dimensional code scanner 1 can be evaluated. Since it is included, the reliability in distinguishing between the black module and the white module can be verified.

【0039】以上の全ての基準項目についてそれぞれ評
価して、それらの評価結果から総合的に評価することに
より、より正確に高精度に2次元コードが正しく印刷さ
れているか否かを検証することができる。
It is possible to verify whether or not the two-dimensional code is correctly printed more accurately and highly accurately by evaluating each of the above criteria items and comprehensively evaluating the evaluation results. it can.

【0040】なお、この実施の形態においては、以上の
全ての基準項目を評価するものついて説明したが、この
発明はこれに限定されるものではなく、このうちの幾つ
かを選択し、選択した基準項目について評価して、その
評価結果により総合的に評価して検証しても良いもので
ある。
Although the present embodiment has been described with respect to the evaluation of all the above criteria items, the present invention is not limited to this, and some of them are selected and selected. It is also possible to evaluate the reference items, and then comprehensively evaluate and verify the results.

【0041】[0041]

【発明の効果】以上詳述したようにこの発明によれば、
マトリックスコード等の2次元コードが正しく印刷媒体
に印刷されているか否かを検証する2次元コード検証装
置を提供できる。
As described in detail above, according to the present invention,
A two-dimensional code verification device for verifying whether a two-dimensional code such as a matrix code is correctly printed on a print medium can be provided.

【図面の簡単な説明】[Brief description of the drawings]

【図1】この発明の実施の形態の2次元コード検証装置
の全体の構成を示す図。
FIG. 1 is a diagram showing an overall configuration of a two-dimensional code verification device according to an embodiment of the present invention.

【図2】同実施の形態の2次元コード検証装置のホスト
コンピュータの要部回路構成を示すブロック図。
FIG. 2 is a block diagram showing a circuit configuration of a main part of a host computer of the two-dimensional code verification device according to the first embodiment.

【図3】同実施の形態の2次元コード検証装置のホスト
コンピュータで行われる検証処理の流れを示す図。
FIG. 3 is a view showing a flow of verification processing performed by the host computer of the two-dimensional code verification device of the embodiment.

【図4】マトリックスコードの1行における各モジュー
ルの幅のばらつきがない例とある例とを示す図。
FIG. 4 is a diagram showing an example in which there is no variation in the width of each module in one line of a matrix code, and a certain example.

【図5】マトリックスコードの幾何学的構造における歪
みがない例とある例とを示す簡略化した図。
FIG. 5 is a simplified diagram showing an example in which there is no distortion in the geometric structure of the matrix code and one example.

【図6】マトリックスコードの幾何学的構造における歪
みの他の例を示す簡略化した図。
FIG. 6 is a simplified diagram showing another example of distortion in the geometric structure of a matrix code.

【図7】マトリックスコードにおける印字欠けモジュー
ルの例を示す図。
FIG. 7 is a diagram showing an example of a print defect module in a matrix code.

【図8】マトリックスコードの1行とこの1行における
2次元コードスキャナによる読取波形を示す図。
FIG. 8 is a diagram showing one line of a matrix code and a waveform read by the two-dimensional code scanner in this one line.

【図9】マトリックスコードの1例を示す図。FIG. 9 is a diagram showing an example of a matrix code.

【符号の説明】[Explanation of symbols]

1…2次元コードスキャナ、 3…ホストコンピュータ、 11…CPU、 14-1…基準項目エリア。 1 ... Two-dimensional code scanner, 3 ... Host computer, 11 ... CPU, 14-1 ... Reference item area.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 印刷媒体上に印刷された2次元コードの
画像を読取る読取手段と、 この読取手段により読取られた2次元コード画像に対し
て検証すべき基準項目が設定された基準項目設定手段
と、 この基準項目設定手段により設定された基準項目に基づ
いて順次前記2次元コード画像を評価する評価手段と、 この評価手段による評価結果に基づいて前記印刷媒体上
の前記2次元コードの印刷状態の正否を検証する検証手
段とを設けたことを特徴とする2次元コード検証装置。
1. A reading unit for reading an image of a two-dimensional code printed on a print medium, and a reference item setting unit for setting a reference item to be verified with respect to the two-dimensional code image read by the reading unit. And an evaluation unit that sequentially evaluates the two-dimensional code image based on the reference item set by the reference item setting unit, and a printing state of the two-dimensional code on the print medium based on the evaluation result by the evaluation unit. A two-dimensional code verifying device, which is provided with a verifying means for verifying the correctness of.
【請求項2】 請求項1記載の2次元コード検証装置に
おいて、前記基準項目設定手段により設定される基準項
目として、2次元コードを構成する基本パターンの大き
さのばらつきを含むことを特徴とする2次元コード検証
装置。
2. The two-dimensional code verification device according to claim 1, wherein the reference item set by the reference item setting means includes a variation in the size of a basic pattern forming the two-dimensional code. Two-dimensional code verification device.
【請求項3】 請求項1記載の2次元コード検証装置に
おいて、前記基準項目設定手段により設定される基準項
目として、2次元コードの上下左右方向における歪みを
含むことを特徴とする2次元コード検証装置。
3. The two-dimensional code verification device according to claim 1, wherein the reference item set by the reference item setting means includes distortion in the vertical and horizontal directions of the two-dimensional code. apparatus.
【請求項4】 請求項1記載の2次元コード検証装置に
おいて、 前記読取手段は、前記2次元コードの読取り画像に対し
て2次元コードを構成する基本パターン単位で読取りエ
ラーを訂正するエラー訂正機能を備え、 前記基準項目設定手段により設定される基準項目とし
て、前記読取手段による2次元コードの読取り時に前記
エラー訂正機能により訂正した個数を含むことを特徴と
する2次元コード検証装置。
4. The two-dimensional code verification device according to claim 1, wherein the reading unit corrects a read error in the read image of the two-dimensional code in units of basic patterns forming a two-dimensional code. A two-dimensional code verification device, characterized in that the reference item set by the reference item setting means includes the number corrected by the error correction function when the two-dimensional code is read by the reading means.
【請求項5】 請求項1記載の2次元コード検証装置に
おいて、前記基準項目設定手段により設定される基準項
目として、2次元コードを構成する基本パターンの印刷
・非印刷でのコントラストを含むことを特徴とする2次
元コード検証装置。
5. The two-dimensional code verification apparatus according to claim 1, wherein the reference item set by the reference item setting unit includes a contrast between printing and non-printing of a basic pattern forming the two-dimensional code. A characteristic two-dimensional code verification device.
JP7280393A 1995-10-27 1995-10-27 Two-dimensional code verification device Pending JPH09128469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7280393A JPH09128469A (en) 1995-10-27 1995-10-27 Two-dimensional code verification device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7280393A JPH09128469A (en) 1995-10-27 1995-10-27 Two-dimensional code verification device

Publications (1)

Publication Number Publication Date
JPH09128469A true JPH09128469A (en) 1997-05-16

Family

ID=17624409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7280393A Pending JPH09128469A (en) 1995-10-27 1995-10-27 Two-dimensional code verification device

Country Status (1)

Country Link
JP (1) JPH09128469A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010538339A (en) * 2007-07-02 2010-12-09 マイクロスキャン システムズ インコーポレイテッド System, device, and method for managing data matrix writing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010538339A (en) * 2007-07-02 2010-12-09 マイクロスキャン システムズ インコーポレイテッド System, device, and method for managing data matrix writing

Similar Documents

Publication Publication Date Title
JP4000488B2 (en) System and method for evaluating outline of document image
CN106997446A (en) Enhanced matrix notation error correction method
EP0382293B1 (en) Method of and apparatus for converting the resolution of an image represented by a pattern of bivalent pixels
CN115861153A (en) Image detection method, computer device and storage medium
US5912985A (en) Pattern detection method
JPH09128469A (en) Two-dimensional code verification device
US10458923B2 (en) Print data processing method, print data processing device, and recording medium having recorded therein print data processing program
CA2036274A1 (en) Document processor including method and apparatus for identifying and correcting errors
JPH05274467A (en) Data input device
CN113747146A (en) Test chart detection method, device, equipment and storage medium
EP0446633A2 (en) Document processor including method and apparatus for identifying and correcting errors
CN109299628B (en) Bar code decoding method and device
JPH09147056A (en) Method and device for checking appearance of mark
EP4318304A1 (en) Information reading device
US20120085821A1 (en) Barcode evaluation method and barcode evaluation apparatus
JPH08310050A (en) Bar code printing device
JP2002366899A (en) Method and device for character information recognition
CN116993613A (en) Image density correction method, device, equipment and medium for laser printer
JP2001225534A (en) Method of reference value calculating and relational expression calculating device
JPH0679330B2 (en) Pixel resolution inspection method for image sensor
JP2968782B1 (en) Print result automatic evaluation method
JPH0230065B2 (en)
US6738530B1 (en) Method of recognizing character in which correction of inclination of character is carried out and apparatus for carrying out this method
CN114861696A (en) Positioning method and positioning system for QR code position detection graph
JP3063925B2 (en) Image pattern matching device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20100725

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100725

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20110725

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20110725

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20120725

LAPS Cancellation because of no payment of annual fees