JPH0120477B2 - - Google Patents
Info
- Publication number
- JPH0120477B2 JPH0120477B2 JP57208850A JP20885082A JPH0120477B2 JP H0120477 B2 JPH0120477 B2 JP H0120477B2 JP 57208850 A JP57208850 A JP 57208850A JP 20885082 A JP20885082 A JP 20885082A JP H0120477 B2 JPH0120477 B2 JP H0120477B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- sample
- sample data
- pixel
- pattern
- 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.)
- Expired
Links
Landscapes
- Inking, Control Or Cleaning Of Printing Machines (AREA)
- Inspection Of Paper Currency And Valuable Securities (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は印刷物の絵柄を検査する方法および装
置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method and apparatus for inspecting patterns on printed matter.
従来の印刷物絵柄検査装置は、第1図に示すよ
うに印刷物1をラインセンサカメラ2により幅方
向に検査しつつ画像情報を取出し、一方搬送系の
シリンダ3に取付けたロータリーエンコーダ4の
出力によつてカメラ2の走査を同期化することに
より試料絵柄5(第2図)をマトリクス状の多数
の小画素に分割する。
As shown in Fig. 1, the conventional printed matter pattern inspection device extracts image information while inspecting the printed matter 1 in the width direction with a line sensor camera 2, and on the other hand, uses the output of a rotary encoder 4 attached to a cylinder 3 of the conveyance system. By synchronizing the scanning of the camera 2, the sample pattern 5 (FIG. 2) is divided into a large number of small pixels arranged in a matrix.
これら各画素は、同様に分割してメモリに記録
した標本絵柄6(第2図)の対応する小画素と順
次濃度比較されて欠陥有無が検出される。 The density of each of these pixels is sequentially compared with the corresponding small pixels of the sample pattern 6 (FIG. 2), which has been similarly divided and recorded in the memory, to detect the presence or absence of a defect.
このような絵柄検査において、第3図に示すよ
うに搬送系の幅方向位置ずれがあると試料から得
られた階調7のうちの〇印を付した3画素につき
標本から得られた階調8の該当する3画素分と比
較した場合、試料絵柄に欠陥がなくても欠陥あり
との誤判定が行われる。 In this kind of pattern inspection, if there is a positional shift in the width direction of the conveyance system as shown in Figure 3, the gradation obtained from the specimen will change for the 3 marked pixels out of the gradation 7 obtained from the sample. When compared with the corresponding three pixels of No. 8, it is erroneously determined that there is a defect even if there is no defect in the sample pattern.
これを防ぐ一法として、試料と標本との階調差
に対して大きな許容値を設定することが考えられ
る。 One way to prevent this is to set a large tolerance value for the tone difference between the sample and the sample.
しかしながら、これは欠陥検出精度の低下をも
たらすもので対策としては必ずしも良好なもので
はない。 However, this results in a decrease in defect detection accuracy and is not necessarily a good countermeasure.
このような問題のない方法としては、標本絵柄
に対する試料絵柄の位置ずれを補正するものとい
うことになり、各種の方法が考案されている。 A method free from such problems involves correcting the positional deviation of the sample pattern with respect to the sample pattern, and various methods have been devised.
その1は本願出願人による特願56−146355号に
示すような、印刷物の絵柄が幅方向に関しいかな
る位置にあるかを検出し、この位置変化が標本絵
柄のデータを基準値メモリに書込むときと試料絵
柄のデータを検出値メモリに書込むときとで所定
値以上異なるときは、そのときの試料絵柄データ
を基準値メモリに書込むものである。 The first method is as shown in Japanese Patent Application No. 56-146355 filed by the applicant of the present invention, which detects the position of a pattern on a printed matter in the width direction, and detects the position change when writing sample pattern data into a reference value memory. When the data of the sample pattern and the data of the sample pattern are written in the detected value memory are different by a predetermined value or more, the sample pattern data at that time is written in the reference value memory.
しかしながら、この方法によると、印刷物の幅
方向の位置変化検出、および位置変化情報にした
がつて位置ずれ補正のための装置が必要となり、
ハードウエアの複雑化、コスト高等の問題を生じ
る。 However, this method requires a device for detecting positional changes in the width direction of the printed material and for correcting positional deviations according to the positional change information.
This results in problems of increased hardware complexity and higher costs.
その2は特公昭55−45948号等に示すもので、
試料画素とこれに対応する標本画素の近傍数点の
画素とを比較する方法である。 Part 2 is shown in Special Publication No. 55-45948, etc.
This method compares a sample pixel with several pixels in the vicinity of the corresponding sample pixel.
しかしながら、この方法では検査精度の低下を
避け得ない点で問題がある。 However, this method has a problem in that it inevitably reduces inspection accuracy.
本発明は上述の点に鑑みてなされたもので、印
刷物搬送系に位置ずれがあつても高精度で絵柄検
査でき、しかも装置を安価に構成し得る印刷物の
絵柄検査方法および装置を提供することを目的と
する。 The present invention has been made in view of the above-mentioned points, and an object of the present invention is to provide a method and apparatus for inspecting patterns of printed matter, which can inspect patterns with high precision even if there is a positional shift in a printed matter conveyance system, and which can be constructed at low cost. With the goal.
上記目的達成のため、
本願第1の発明では、
印刷物の試料絵柄を画素マトリクスに分解して
検出した試料データを、標本印刷物から予め取出
されメモリーに記憶されている標本データと1画
素づつ比較し絵柄の良否判定を行う印刷物の絵柄
検査方法において、前記試料データおよび標本デ
ータの一方を1画素づつ印刷物の横方向に位置ず
れさせて前記両データの他方と比較し、両データ
が最も一致に近付いたときの前記両データ間の位
置ずれ量により前記試料データまたは標本データ
を印刷物の横方向に関し位置ずれ補正したうえ
で、前記標本データと比較するようにしたことを
特徴とする印刷物の絵柄検査方法を提供し、
また本願第2の発明では、
印刷物の搬送動作に応じて同期信号を形成する
装置と、前記同期信号に基づき前記印刷物の絵柄
を1画素づつ走査して画像データを取出すカメラ
と、このカメラにより標本印刷物から取出した画
像データが書込まれる標本データメモリと、前記
カメラからの試料データと前記標本データメモリ
からのデータとを前記両データの一方を他方に対
し1画素づつ位置ずれさせつつ比較し両データが
最も一致に近付いた位置ずれ量を検出する回路
と、この位置ずれ量検出回路の出力に基づく位置
ずれ補正を行つて前記両データを1画素づつ比較
し試料印刷物の絵柄良否判定を行う回路とをそな
えた印刷物の絵柄検査装置を提供する。
In order to achieve the above object, in the first invention of the present application, sample data detected by decomposing a sample pattern of a printed matter into a pixel matrix is compared pixel by pixel with sample data extracted in advance from a sample printed matter and stored in a memory. In a pattern inspection method for a printed matter for determining the quality of a pattern, one of the sample data and the specimen data is shifted in the horizontal direction of the printed material by one pixel and compared with the other of the two data, and both data are closest to matching. A pattern inspection method for a printed matter, characterized in that the sample data or the sample data is corrected for the positional shift in the horizontal direction of the printed matter based on the amount of positional shift between the two pieces of data when In a second invention of the present application, there is provided: a device for forming a synchronization signal according to the conveyance operation of a printed matter; a camera that scans a pattern of the printed matter pixel by pixel based on the synchronization signal and extracts image data; A specimen data memory in which image data extracted from specimen prints by this camera is written, and specimen data from the camera and data from the specimen data memory are shifted one pixel by one pixel from the other. A circuit detects the amount of positional deviation when both data come closest to matching, and a circuit that performs positional deviation correction based on the output of this positional deviation amount detection circuit, compares both data pixel by pixel, and determines whether the pattern of the sample print is good or not. To provide a pattern inspection device for a printed matter, which is equipped with a circuit for making a determination.
試料印刷物から試料データを取出す。この試料
データは、予めメモリに蓄えられている標本デー
タと比較される。この比較は試料データと標本デ
ータとの両データにつき、一方を他方に対して印
刷物の横方向に1画素づつ移行させながら行う。
このような比較により両データが最も近付いたと
きの移行量から位置ずれ量を知る。そしてこの位
置ずれ量を利用して位置ずれ補正を行つてから試
料データと標本データとを比較し試料印刷物の絵
柄良否判定を行う。
Extract sample data from the sample print. This sample data is compared with sample data previously stored in memory. This comparison is performed for both sample data and sample data, while moving one pixel at a time in the horizontal direction of the printed matter with respect to the other.
Through such a comparison, the amount of positional deviation can be determined from the amount of shift when both data are closest to each other. Then, after correcting the positional deviation using this positional deviation amount, the sample data and the sample data are compared to determine the quality of the pattern of the sample print.
第4図a,bないし第8図は本発明の一実施例
を示したものである。
FIGS. 4a, b to 8 show an embodiment of the present invention.
第4図a,bは試料データと標本データとを示
したもので、同図aは本発明方法において取扱わ
れる試料データと標本データとの基本的な関係を
示し、同図bは印刷物の絵柄エツジをはじめとす
る特殊な部分における試料データと標本データと
の関係を示したものである。 Figures 4a and 4b show sample data and specimen data; Figure 4a shows the basic relationship between sample data and specimen data handled in the method of the present invention, and Figure 4b shows the pattern of printed matter. This shows the relationship between sample data in special parts such as edges.
まず同図aによれば、1つの試料データ9に対
し複数の標本データ10〜16を参照する。これ
ら標本データ10〜16は基本となる標本データ
13を予想される位置ずれ分だけ1画素分ずつ左
右にシフトして得たものである。 First, according to figure a, a plurality of sample data 10 to 16 are referred to for one sample data 9. These sample data 10 to 16 are obtained by shifting the basic sample data 13 one pixel at a time to the left and right by the expected positional shift.
そして、試料データ9を標本データ10〜16
の中で最も試料データ9と位相が近いもの12と
濃度比較することができ、これによつて欠陥検出
が行われる。 Then, sample data 9 is changed to sample data 10 to 16.
Among them, the density can be compared with the sample data 12 which is closest in phase to the sample data 9, and defect detection is thereby performed.
これにより試料データ9が印刷物の幅方向に位
置ずれしていてもデータ同士を内容的に比較する
ことができるから精度よく欠陥検出することがで
きる。 As a result, even if the sample data 9 is misaligned in the width direction of the printed material, the data can be compared in terms of content, so defects can be detected with high accuracy.
次に同図bによれば、試料データ17に対し最
も位相の近い標本データ18を対比すると共に、
階調差許容値を大きくとつたものである。これに
より絵柄エツジ部分のように階調差が極めて大き
な場合に適した欠陥検査を行い得る。すなわち、
標本データ18は試料データ17に最も位相の近
いものであるため、両者の位相差は1/2画素幅分
である。従つて1/2画素幅分の位置ずれが生じた
場合のエツジに相当する画素における試料と標本
との階調差をその画素に対する許容値とすればよ
い。この各画素毎の許容値設定については種々の
方法を採ることができ(特願昭56−179599号参
照)、あるいはエツジに相当する画素をマスキン
グすることにより判定対象外としてもよい。 Next, according to FIG.
This has a large gradation difference tolerance. This makes it possible to carry out defect inspection suitable for cases where the gradation difference is extremely large, such as at the edge of a picture. That is,
Since the sample data 18 has the closest phase to the sample data 17, the phase difference between the two is 1/2 pixel width. Therefore, the tone difference between the sample and the specimen at the pixel corresponding to the edge when a positional shift of 1/2 pixel width occurs may be taken as the tolerance value for that pixel. Various methods can be used to set the permissible value for each pixel (see Japanese Patent Application No. 179599/1983), or pixels corresponding to edges may be masked to be excluded from the determination.
第5図は第4図に示した思想に基き構成した本
発明方法を実施するための装置構成を示したもの
である。この構成では、印刷物1上の絵柄がカメ
ラ2によつて走査されて画像情報が取出される。
この際、搬送系シリンダ3の回転量がロータリエ
ンコーダ4により取出され同期回路21に与えら
れる。同期回路21は、カメラ2、A/D変換回
路22およびアドレス回路24にその出力を与
え、カメラ2の走査同期化、カメラ2により取出
した画像情報のA/D変換同期化、ならびに標本
データメモリ25および画素制御データメモリ2
6のアドレス割当てを行う。 FIG. 5 shows the configuration of an apparatus for carrying out the method of the present invention, which is constructed based on the idea shown in FIG. In this configuration, the image on the printed matter 1 is scanned by the camera 2 and image information is extracted.
At this time, the rotation amount of the conveyance system cylinder 3 is taken out by the rotary encoder 4 and given to the synchronization circuit 21. The synchronization circuit 21 provides its output to the camera 2, the A/D conversion circuit 22, and the address circuit 24, and performs scan synchronization of the camera 2, A/D conversion synchronization of image information taken out by the camera 2, and sample data memory. 25 and pixel control data memory 2
6 address assignment is performed.
このアドレス割当てに基き、検査開始時に切換
スイツチSWによつて標本絵柄のデータを取込ん
だ標本データメモリ25から各試料データTに対
応する標本データSを読出し、また画素制御メモ
リ26から画素制御データMを読出す。画素制御
データMは各画素毎に許容値を与えるためのデー
タである。 Based on this address assignment, the sample data S corresponding to each sample data T is read out from the sample data memory 25 into which sample pattern data has been taken in by the changeover switch SW at the start of the test, and the pixel control data is read out from the pixel control memory 26. Read M. The pixel control data M is data for giving a permissible value to each pixel.
これらメモリ25,26における標本データ
S、画素制御データMおよびA/D変換回路22
を介して与えられる試料データTは位置ずれ補正
回路23に入力されて補正されそれぞれS′,M′,
T′となる。そして判定回路27によりこれら補
正後のデータS′,M′,T′による試料印刷物の絵
柄欠陥検出が行われる。 Sample data S, pixel control data M and A/D conversion circuit 22 in these memories 25 and 26
The sample data T given through is input to the positional deviation correction circuit 23 and corrected as S', M', and S', respectively.
becomes T′. Then, the determination circuit 27 detects a pattern defect in the sample print based on the corrected data S', M', and T'.
第6図は第5図における位置ずれ補正回路23
の一部をなす相関器の構成を示すもので、この相
関器を用いて位置ずれ量検出回路(第7図)が構
成され、この検出信号に基き補正回路(第8図)
が位置ずれ補正動作を行うように構成される。 Figure 6 shows the positional deviation correction circuit 23 in Figure 5.
This figure shows the configuration of a correlator that forms part of the correlator. This correlator is used to configure a positional deviation amount detection circuit (Figure 7), and based on this detection signal, a correction circuit (Figure 8) is constructed.
is configured to perform a positional deviation correction operation.
相関器30は例えばTRW社製TDC1023Jを用
いればよく、この相関器は2つの64ビツトシフト
レジスタ31,32および1つの64ビツトラツチ
33、エクスクルーシブノアゲートENOR1〜
ENOR64、それに加算器34からなる。 For example, a TDC1023J manufactured by TRW may be used as the correlator 30, and this correlator includes two 64-bit shift registers 31, 32, one 64-bit latch 33, and an exclusive NOR gate ENOR 1 to
ENOR 64 and an adder 34.
そして、シフトレジスタ32には標本データの
1ビツトシリアル入力BIN(64ビツト)およびシリ
アル入力のためのクロツクCLKBが与えられ、そ
の各ビツト出力がラツチ33(R1〜R64)に与え
られラツチ信号LDRがこれらラツチに与えられ
てラツチされる。また、シフトレジスタ31には
試料データの1ビツトシリアル入力AIN(64ビツ
ト)およびシリアル入力のためのクロツクCLKA
が与えられ、その各ビツト出力がエクスクルーシ
ブノアゲートENOR1〜ENOR64の一方の入力と
なり、他方の入力にはラツチ33(R1〜R64)の
各ビツト出力が与えられる。エクスクルーシブノ
アゲートENOR1〜ENOR64の各出力は加算器3
4に与えられ、加算器34はクロツクCLKSが与
えられる毎にエクスクルーシブノアゲート出力の
数つまり相関値(Corr)が7ビツトで出力する
ような構成となつている。 The shift register 32 is supplied with a 1-bit serial input B IN (64 bits) of sample data and a clock CLKB for serial input, and each bit output is supplied to the latch 33 (R 1 to R 64 ). Signal LDR is applied to these latches and latched. The shift register 31 also has a 1-bit serial input A IN (64 bits) of sample data and a clock CLKA for serial input.
are given, each bit output thereof becomes one input of exclusive NOR gates ENOR 1 to ENOR 64 , and each bit output of latch 33 (R 1 to R 64 ) is given to the other input. Each output of exclusive NOR gate ENOR 1 to ENOR 64 is added to adder 3.
The adder 34 is configured to output the number of exclusive NOR gate outputs, that is, the correlation value (Corr) in 7 bits each time the clock CLKS is applied.
この相関器において、まず64ビツトの標本デー
タB1……B64がクロツクCLKBによつてシフトレ
ジスタBに入力された後、ラツチ信号LDRによ
つてシフトレジスタ32の各ビツトの内容はラツ
チ33(R1〜R64)に保持される。次いでシフト
レジスタ31とラツチ33の各出力の間で相関値
が計算され、この計算時間中にシフトレジスタ3
2に次の標本データを入力することができる。 In this correlator, first, 64-bit sample data B1 ... B64 is input to shift register B by clock CLKB, and then the contents of each bit of shift register 32 are changed to latch 33 by latch signal LDR. R 1 to R 64 ). A correlation value is then calculated between each output of the shift register 31 and the latch 33, and during this calculation time the shift register 3
2, the following sample data can be input.
ラツチ33に保持された標本データR1……R64
とクロツクCLKAによつてシフトレジスタ31に
入力された試料データA1……A64との間で対応す
るビツト毎にエクスクルーシブノアがとられ、
AoとRoとが一致するときはENORo=1、不一致
のときENORo=0が得られる。このうちENORo
=1となつたビツトの個数が加算器34により相
関値Corrとして出力される。相関値Corrの最大
値は64である。 Sample data held in latch 33 R 1 ...R 64
An exclusive NOR is taken for each corresponding bit between the sample data A1 ... A64 inputted to the shift register 31 by the clock CLKA, and
When A o and R o match, ENOR o = 1, and when they do not match, ENOR o = 0 is obtained. Of these, ENOR o
The number of bits for which =1 is output by the adder 34 as a correlation value Corr. The maximum value of the correlation value Corr is 64.
相関値Corrは試料データAがシフトされる度
に異つた値をとるが試料データAと標本データR
との位相が一致することは相関値Corrが最大値
をとることと等価であり相関値Corrが最大値を
とる位相を調べることによつて位置ずれ量を検出
することができる。 The correlation value Corr takes a different value each time sample data A is shifted, but sample data A and sample data R
Matching the phases with the above is equivalent to the correlation value Corr taking the maximum value, and the amount of positional deviation can be detected by checking the phase at which the correlation value Corr takes the maximum value.
第7図は第6図に示した相関器30を用いて構
成された位置ずれ量検出回路を示している。 FIG. 7 shows a positional deviation amount detection circuit constructed using the correlator 30 shown in FIG.
まず概念的な説明を行うと、この回路は位置ず
れ量Dを出力するもので、Dは−8〜+7の値を
とり、D<0であれば試料データTの位相が進ん
でいる状態、D=0であれば試料データTと標本
データSの位相が等しい状態、D>0であれば標
本データSの位相が進んでいる状態を表わす。つ
まり試料データTが8ビツト進んでいる状態がD
=−8、試料データTが7ビツト遅れている状態
がD=+7に対応する。検出できる位置ずれ幅は
後述するように容易に拡張できる。 First, to give a conceptual explanation, this circuit outputs the amount of positional deviation D, and D takes a value from -8 to +7. If D<0, the phase of the sample data T is advanced; If D=0, it represents a state in which the phases of the sample data T and sample data S are equal, and if D>0, it represents a state in which the phase of the sample data S is advanced. In other words, the state in which sample data T is ahead by 8 bits is D.
=-8, and the state in which the sample data T is delayed by 7 bits corresponds to D=+7. The detectable positional deviation width can be easily expanded as described later.
標本データSと試料データTの位相を比較する
ために各データのMSBS7,T7の時系列1/0パ
ターンの相関を相関器30によつてとる。ここ
で、標本データS、試料データTはともに8ビツ
ト、0〜+255の値をとるデータである。したが
つて標本データS(試料データT)が+128以上の
値になるとS7=1(T7=1)、128未満でS7=0と
なる。すなわち階調128を閾値として閾値以上の
画素に1、閾値未満の階調の画素にφを対応させ
ることに相当する。 In order to compare the phases of sample data S and sample data T, the correlator 30 takes the correlation between the time series 1/0 patterns of MSBS 7 and T 7 of each data. Here, both the sample data S and the sample data T are 8-bit data that takes values from 0 to +255. Therefore, when the sample data S (sample data T) has a value of +128 or more, S 7 =1 (T 7 =1), and when it is less than 128, S 7 =0. That is, this corresponds to setting gradation 128 as a threshold, and assigning 1 to pixels with a gradation equal to or higher than the threshold, and φ to pixels with a gradation less than the threshold.
この方法では1走査にわたつて両データS,T
の階調が全て128以上または全て128未満であると
両データS,Tの相関がとれず、位置ずれ量の検
出が不可能となるが、一般の絵柄では暗レベルか
ら明レベルまで様々の階調をとり、上記のような
場合は殆んどないことからここで述べた方法がハ
ードウエア上最も簡単な構成であるにも拘らず効
果は大きい。 In this method, both data S, T
If all the gradations are 128 or more or all less than 128, there will be no correlation between the two data S and T, and it will be impossible to detect the amount of positional deviation. However, in general pictures, there are various gradations from dark to bright levels. Since the above-mentioned cases are rare, the method described here has a great effect even though it has the simplest hardware configuration.
このような検出方法では問題がある場合には次
のような方法を採用すればよい。 If there is a problem with such a detection method, the following method may be adopted.
(i) 閾値を128に固定せず、両データS,Tに応
じて浮動的に与える。例えば1走査にわたる両
データS,Tの平均値を閾値にする等の方法が
考えられる。(i) The threshold value is not fixed at 128, but is given floatingly according to both data S and T. For example, a method may be considered in which the average value of both data S and T over one scan is set as a threshold value.
(ii) 両データS,Tを微分することにより絵柄の
エツジを求め、そのエツジに対応させた時系列
1/0パターンS′,T′をS7,T7の代りに用い
てS′,T′の相関をとる。(ii) Find the edges of the picture by differentiating both data S and T, and use the time series 1/0 patterns S' and T' corresponding to the edges in place of S 7 and T 7 to calculate S', Correlate T′.
次に第7図の回路の具体的動作を説明すると、
いま同時に同アドレスを持つ標本データSと試料
データTが入力されるとし、試料データTの位相
が進んでいる状態を検出するために試料データ
T7を8ビツトのシフトレジスタ41に入力しそ
の位相を8ビツト遅らせておく。シフトレジスタ
41をシフトするクロツクはカメラの走査クロツ
クCLKを用いればよい。 Next, the specific operation of the circuit shown in FIG. 7 will be explained.
Suppose that sample data S and sample data T that have the same address are input at the same time, and in order to detect the state in which the phase of sample data T is leading, the sample data
T7 is input to an 8-bit shift register 41, and its phase is delayed by 8 bits. The scanning clock CLK of the camera may be used as the clock for shifting the shift register 41.
標本となるべき64ビツトの時系列1/0パター
ンS7が相関器30に入力されるとそのパターンを
ラツチする信号LDRをカウンタ42が出力する。
ラツチ44は相関値Corrを保持する。ラツチ4
4のカメラ走査開始時の初期値は0であり、シス
テムが発生する走査開始信号S ZEROによつて
初期化される。そして相関器30からより大きい
相関値Corrが出力されるたびにコンパレータ4
5の出力によつてより大きい方の値に更新され
る。 When the 64-bit time series 1/0 pattern S7 to be a sample is input to the correlator 30, the counter 42 outputs a signal LDR that latches the pattern.
Latch 44 holds the correlation value Corr. Latch 4
The initial value at the start of camera scanning of No. 4 is 0, and is initialized by the scanning start signal S ZERO generated by the system. Then, each time a larger correlation value Corr is output from the correlator 30, the comparator 4
5 is updated to the larger value.
カウンタ43はカメラの走査クロツクCLKを
計数しその値(4ビツト、0〜15の値)をラツチ
46が保持する。ラツチ46の値はより大きい相
関値Corrが出力される度にコンパレータ45の
出力によつて更新されるから、相関値Corrが最
大値をとつたときの位相がラツチ46によつて保
持されることになる。このラツチ46に保持され
た最大相関値Corrから減算器47により「8」
を減じることにより位置ずれ量D(−8〜+7)
を得ることができる。「8」を減算するのはカウ
ンタ43がクロツクパルスCLKを8個カウント
する分だけシフトレジスタ41で遅れを生じてい
るのを修正するためである。 A counter 43 counts the scanning clock CLK of the camera, and a latch 46 holds the value (4 bits, value from 0 to 15). Since the value of the latch 46 is updated by the output of the comparator 45 every time a larger correlation value Corr is output, the latch 46 maintains the phase when the correlation value Corr reaches its maximum value. become. The subtractor 47 calculates "8" from the maximum correlation value Corr held in the latch 46.
By subtracting the amount of positional deviation D (-8 to +7)
can be obtained. The reason for subtracting "8" is to correct the delay caused by the shift register 41 by the amount by which the counter 43 counts eight clock pulses CLK.
カウンタ43、ラツチ44は標本データの
MSBであるS7が相関器30へ64ビツト入力され
る度に初期化されるので64画素ごとに標本データ
Sと試料データTとの位置ずれ量Dが出力され
る。すなわちラインセンサカメラの全画素数が
512であれば64画素づつに分割された8個のブロ
ツク毎に標本データSと試料データTとの位置ず
れ補正を行うことができる。 The counter 43 and latch 44 store sample data.
Since the MSB S7 is initialized every time 64 bits are input to the correlator 30, the amount of positional deviation D between the sample data S and the sample data T is output for every 64 pixels. In other words, the total number of pixels of the line sensor camera is
512, it is possible to correct the positional deviation between the sample data S and the sample data T for each of eight blocks divided into 64 pixels each.
ここで位置ずれ量Dの値(−8〜+7)をより
広範囲に検出したい場合たとえばシフトレジスタ
45を16ビツトに変更すると共にカウンタ43を
8ビツト出力に変更し、減算器47にて「16」を
減ずることによつて位置ずれ量D(−16〜+15)
を得る。以下同様にして広範囲の位置ずれ量を検
出できる。 If you want to detect the value of the positional deviation amount D (-8 to +7) over a wider range, for example, change the shift register 45 to 16 bits, change the counter 43 to 8 bits output, and use the subtracter 47 to output "16". By reducing the positional deviation amount D (-16 to +15)
get. Thereafter, a wide range of positional deviation amounts can be detected in the same manner.
第8図a,bは第7図の位置ずれ量検出回路の
出力Dに基いて位置ずれ補正を行う回路を示した
もので同図aは試料データTを取扱う回路を、同
図bは標本データSを取扱う回路をそれぞれ示し
ており、これら両回路は共に略々同一の構成を持
つている。すなわち、8ビツトシフトレジスタ5
1および16対1セレクタ52によつて試料データ
Tの第nビツトToの位置ずれ補正値To′が得られ
る。この構成を8ビツト並列にすれば試料データ
Tを位置ずれ補正したデータT′が得られる。こ
こでD≧0のときT′=t0(t0:シフトなし)、D<
0のときT′=t1、……t8(1ビツト〜8ビツトの
シフト)となる。 Figures 8a and 8b show circuits that perform positional deviation correction based on the output D of the positional deviation amount detection circuit in Figure 7. Figure 8a is a circuit that handles sample data T, and Figure 8b is a circuit that handles sample data T. Each circuit that handles data S is shown, and both circuits have substantially the same configuration. That is, 8-bit shift register 5
The positional deviation correction value T o ' of the n-th bit T o of the sample data T is obtained by the 1 to 1 and 16 to 1 selector 52 . If this configuration is made 8-bit parallel, data T' obtained by correcting the positional deviation of the sample data T can be obtained. Here, when D≧0, T′=t 0 (t 0 : no shift), D<
When it is 0, T'=t 1 , . . . t 8 (shift of 1 bit to 8 bits).
これと同様にシフトレジスタ53,55、セレ
クタ54,56によりD≦0のときS′=s0、M′=
m0、D>0のときS′=s1〜s8、M′=m1〜m8(1
ビツト〜8ビツトのシフト)となる。シフトレジ
スタ51,53,55はカメラ走査開始時にシス
テムの発生する走査開始信号S ZEROによつて
0に初期化される。 Similarly, when D≦0, S'= s0 , M'=
m 0 , when D>0, S′=s 1 ~s 8 , M′=m 1 ~ m 8 (1
bit to 8 bit shift). The shift registers 51, 53, and 55 are initialized to 0 by a scan start signal S ZERO generated by the system at the start of camera scan.
以上によつて位置ずれ量Dにしたがつて位置ず
れを補正された標本データS′、試料データT′画素
制御データM′が得られる。これら補正されたS′,
T′,M′は判定回路27(第5図)に入力され欠
陥検出される。 As described above, sample data S', sample data T' and pixel control data M' whose positional deviations have been corrected according to the positional deviation amount D are obtained. These corrected S′,
T' and M' are input to the determination circuit 27 (FIG. 5) and defects are detected.
第9図は判定回路27の一実施例で、57〜6
2は8ビツトのデータラツチ回路、63は同じく
8ビツトの入力が可能なように構成されたオアゲ
ートアレイ、64は同じくシフトレジスタ、65
は同じく選択回路、66,69は同じく加算回
路、67は同じくインバータ、68は同じくエク
スクルーシブオアゲート、70は同じくコンパレ
ータである。 FIG. 9 shows an embodiment of the determination circuit 27, with 57 to 6
2 is an 8-bit data latch circuit, 63 is an OR gate array configured to allow 8-bit input, 64 is a shift register, and 65 is an 8-bit data latch circuit.
66 and 69 are adder circuits, 67 is an inverter, 68 is an exclusive OR gate, and 70 is a comparator.
次に、この実施例の動作について説明する。 Next, the operation of this embodiment will be explained.
印刷動作が開始してその検査動作に入ると、位
置ずれ補正された標本データS′、試料データT′、
画素制御データM′は順次各ラツチ57〜60に
取込まれる。 When the printing operation starts and the inspection operation begins, the sample data S′, sample data T′, which have been corrected for positional deviation, are
Pixel control data M' is sequentially loaded into each latch 57-60.
そこで、このうち、ラツチ59に入力されたポ
ジ状態の標本データS′とラツチ60に入力された
ネガ状態の試料データT′とが加算回路66、イ
ンバータ67、エクスクルーシブオアゲート6
8、加算回路69からなる回路で処理されて試料
データT′と標本データS′の差の絶対値を表わすデ
ータDとなり、ラツチ62に書込まれる。即ちD
=|T′−S′|が取出される。そして、このデータ
Dはラツチ62からコンパレータ70の一方の入
力Bに供給される。 Therefore, among these, the positive state sample data S' input to the latch 59 and the negative state sample data T' input to the latch 60 are transferred to the adder circuit 66, the inverter 67, and the exclusive OR gate 6.
8. The data D is processed by a circuit consisting of an adder circuit 69 to become data D representing the absolute value of the difference between the sample data T' and the sample data S', and is written into the latch 62. That is, D
= |T′−S′| is extracted. This data D is then supplied from latch 62 to one input B of comparator 70.
また、ラツチ58から取出された基準データ
S′はシフトレジスタ64に入力され、ここで所定
のビツト数だけシフトされて所定の係数K(1よ
り小さい)が乗算されたデータKS′となつて選択
回路65の一方の入力Bに供給される。 In addition, the reference data taken out from the latch 58
S' is input to the shift register 64, where it is shifted by a predetermined number of bits and multiplied by a predetermined coefficient K (less than 1) to become data KS', which is then supplied to one input B of the selection circuit 65. Ru.
一方、ラツチ57に取込まれた画素制御データ
M′はそのまま読出されて選択回路65の他方の
入力Aに供給されると共に、オアゲート63を介
して選択回路65の選択入力Sに供給される。な
お、この選択回路65は、その選択入力Sが
“H”レベルのとき入力Bに供給されているデー
タを出力し、“L”レベルのときには入力Aのデ
ータを出力する働きをする。 On the other hand, the pixel control data taken into the latch 57
M' is read out as is and supplied to the other input A of the selection circuit 65, and is also supplied to the selection input S of the selection circuit 65 via the OR gate 63. The selection circuit 65 functions to output the data supplied to the input B when the selection input S is at the "H" level, and outputs the data at the input A when the selection input S is at the "L" level.
コンパレータ70は入力AのデータJLと入力
BのデータDとを比較し、入力Bのデータが入力
Aのデータより大きかつたときだけ“H”レベル
となる出力Jを発生する。即ち、データJLを判
定レベルとした比較動作が行なわれて出力Jが得
られることになる。 Comparator 70 compares data JL of input A with data D of input B, and generates an output J that becomes "H" level only when the data of input B is greater than the data of input A. That is, a comparison operation is performed using the data JL as the determination level, and the output J is obtained.
以上のような構成により印刷物の絵柄がある程
度位置ずれを伴つていても、正確に絵柄の良否判
別を行うことができ、高速検査が可能で装置の低
コスト化ができる。また、標本データと試料デー
タとの比較を行うため、絵柄同士を全体的に比較
する場合に比べ格段に高精度の検査を行うことが
できる。 With the above configuration, even if the pattern on the printed matter is misaligned to some extent, it is possible to accurately determine whether the pattern is good or bad, enabling high-speed inspection and reducing the cost of the apparatus. Furthermore, since the sample data is compared with the sample data, it is possible to perform an inspection with much higher precision than when comparing the patterns as a whole.
上記実施例では、試料データはメモリに記憶し
ていないか、試料データ用メモリを設けてもよ
い。また、位置ずれ検出に際し試料データを印刷
物横方向に1画素づつ位置ずれさせてもよい。 In the embodiments described above, the sample data may not be stored in the memory, or a sample data memory may be provided. Further, when detecting positional deviation, the sample data may be displaced one pixel at a time in the horizontal direction of the printed material.
本発明は上述のように、試料印刷物から取出し
た試料データをメモリに蓄えられている標本デー
タと比較するにつき、この試料データおよび標本
データの一方を他方に対し印刷物横方向に1画素
づつ移行させて比較し、両データが最も一致に近
付いた移行量をもつて位置ずれ量を知り、この位
置ずれ量に基き位置ずれ補正を行つた上で試料デ
ータと標本データとを比較し試料印刷物の絵柄検
査を行うようにしたため、印刷物搬送系に位置ず
れがあつても高精度で絵柄検査を行うことがで
き、しかもその装置構成は安価に行うことができ
る。
As described above, when comparing the sample data extracted from the sample print with the sample data stored in the memory, the present invention shifts one of the sample data and the sample data from the other one pixel at a time in the horizontal direction of the print. The amount of positional deviation is determined based on the amount of shift where both data come closest to matching, and the positional deviation is corrected based on this amount of positional deviation, and then the sample data is compared with the sample data to determine the pattern of the sample print. Since the inspection is carried out, even if there is a positional shift in the print conveyance system, the pattern inspection can be carried out with high precision, and the apparatus configuration can be done at low cost.
第1図は本発明の対象である絵柄検査装置の画
像情報検出部の構成を示す図、第2図は絵柄検査
のための試料絵柄データと標本絵柄データの記録
方式の模型的説明図、第3図は印刷物搬送系等に
起因して絵柄の位置ずれが生じた場合の説明用特
性図、第4図a,bは本発明方法の基本的な検査
方法および絵柄エツジの検査方法を示す特性図、
第5図は本発明方法を実施するための装置構成を
示すブロツク線図、第6図は本発明装置を構成す
るために用いる相関器の内部構成を示すブロツク
線図、第7図は第6図の相関器を用いて構成した
位置ずれ量検出回路の構成を示す接続図、第8図
は第7図の回路と組合わされて位置ずれ補正を行
う回路の内部構成を示すブロツク線図、第9図は
第5図の装置における判定回路のより具体的構成
を示すブロツク線図である。
1……印刷物、2……カメラ、3……シリン
ダ、4……ロータリーエンコーダ、5,7,9,
17……試料絵柄(試料行)データ、6,8,1
0,18……標本絵柄(標本行)データ、31,
32,41,51,53,55……シフトレジス
タ、T……試料データ、S……標本データ、M…
…画素制御データ、JC……判定回路、L……ラ
ツチ、SR……シフトレジスタ。
FIG. 1 is a diagram showing the configuration of an image information detection section of a pattern inspection device that is the object of the present invention, FIG. Fig. 3 is an explanatory characteristic diagram when a positional shift of a pattern occurs due to the print conveyance system, etc., and Fig. 4 a and b are characteristics showing the basic inspection method of the method of the present invention and the pattern edge inspection method. figure,
FIG. 5 is a block diagram showing the configuration of a device for implementing the method of the present invention, FIG. 6 is a block diagram showing the internal configuration of a correlator used to configure the device of the present invention, and FIG. 8 is a connection diagram showing the configuration of a positional deviation detection circuit configured using the correlator shown in the figure; FIG. 8 is a block diagram showing the internal configuration of a circuit that is combined with the circuit of FIG. FIG. 9 is a block diagram showing a more specific configuration of the determination circuit in the apparatus of FIG. 5. 1... Printed matter, 2... Camera, 3... Cylinder, 4... Rotary encoder, 5, 7, 9,
17...Sample picture (sample row) data, 6, 8, 1
0,18...Sample picture (sample row) data, 31,
32, 41, 51, 53, 55...shift register, T...sample data, S...sample data, M...
...Pixel control data, JC...Judgment circuit, L...Latch, SR...Shift register.
Claims (1)
て検出した試料データを、標本印刷物から予め取
出されメモリに記録されている標本データと1画
素づつ比較し絵柄の良否判定を行う印刷物の絵柄
検査方法において、前記試料データおよび標本デ
ータの一方を1画素づつ印刷物の横方向に位置ず
れさせて前記両データの他方と比較し、両データ
が最も一致に近づいたときの前記両データ間の位
置ずれ量により前記試料データまたは標本データ
を印刷物横方向に関し位置ずれ補正した上で、前
記標本データと比較するようにしたことを特徴と
する印刷物の絵柄検査方法。 2 印刷物の搬送動作に応じて同期信号を形成す
る装置と、前記同期信号に基き前記印刷物の絵柄
を1画素づつ走査して画像データを取出すカメラ
と、このカメラにより標本印刷物から取出した画
像データが書込まれる標本データメモリと、前記
カメラからの試料データと前記標本データメモリ
からのデータとを前記両データの一方を他方に対
し1画素づつ印刷物横方向に位置ずれさせつつ比
較し両データが最も一致に近づく位置ずれ量を検
出する回路と、この位置ずれ量検出回路の出力に
基く位置ずれ補正を行つて前記両データを1画素
づつ比較し試料印刷物の絵柄良否判定を行う回路
とをそなえた印刷物の絵柄検査装置。[Claims] 1. Sample data detected by decomposing a sample pattern of a printed matter into a pixel matrix is compared pixel by pixel with sample data previously extracted from the sample printed material and recorded in a memory to determine the quality of the pattern. In a pattern inspection method for a printed matter, one of the sample data and the sample data is shifted in position in the horizontal direction of the printed material by one pixel and compared with the other of the two data, and when the two data come closest to matching, the two data are detected. A pattern inspection method for a printed matter, characterized in that the sample data or sample data is corrected for positional deviation in the horizontal direction of the printed matter based on the amount of positional deviation between them, and then compared with the sample data. 2. A device that generates a synchronization signal according to the conveyance operation of the printed material, a camera that scans the pattern of the printed material pixel by pixel based on the synchronized signal and extracts image data, and a device that generates image data extracted from the specimen printed material by this camera. The specimen data memory to be written, the specimen data from the camera, and the data from the specimen data memory are compared while shifting one of the data from the other in the horizontal direction of the print by one pixel, and both data are the best. It is equipped with a circuit that detects the amount of positional deviation that approaches a match, and a circuit that performs positional deviation correction based on the output of this positional deviation amount detection circuit, compares both data pixel by pixel, and determines the quality of the pattern of the sample print. Pattern inspection device for printed matter.
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57208850A JPS5999592A (en) | 1982-11-29 | 1982-11-29 | Print pattern inspection method and device |
| DE8383108547T DE3380997D1 (en) | 1982-08-31 | 1983-08-30 | IMAGE EXAMINATION METHOD. |
| US06/527,947 US4677680A (en) | 1982-08-31 | 1983-08-30 | Method and device for inspecting image |
| EP83108547A EP0104477B1 (en) | 1982-08-31 | 1983-08-30 | Method for inspecting image |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57208850A JPS5999592A (en) | 1982-11-29 | 1982-11-29 | Print pattern inspection method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5999592A JPS5999592A (en) | 1984-06-08 |
| JPH0120477B2 true JPH0120477B2 (en) | 1989-04-17 |
Family
ID=16563137
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57208850A Granted JPS5999592A (en) | 1982-08-31 | 1982-11-29 | Print pattern inspection method and device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5999592A (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01233593A (en) * | 1988-03-14 | 1989-09-19 | Fujitsu Ltd | Mobile origin estimation system and sheet paper discrimination system using the same |
| JP2546876B2 (en) * | 1988-03-14 | 1996-10-23 | 富士通株式会社 | Digital line segment creation method and paper sheet discrimination system |
| JPH01233592A (en) * | 1988-03-14 | 1989-09-19 | Fujitsu Ltd | Mobile origin selection system and sheet paper discrimination system using the same |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6015997B2 (en) * | 1976-09-22 | 1985-04-23 | オムロン株式会社 | Authenticity identification method for printed matter |
| JPS559284A (en) * | 1978-07-05 | 1980-01-23 | Omron Tateisi Electronics Co | Counterfeit bill detecting method |
| US4311914A (en) * | 1978-12-18 | 1982-01-19 | Gretag Aktiengesellschaft | Process for assessing the quality of a printed product |
-
1982
- 1982-11-29 JP JP57208850A patent/JPS5999592A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5999592A (en) | 1984-06-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4677680A (en) | Method and device for inspecting image | |
| US4707734A (en) | Coarse flaw detector for printed circuit board inspection | |
| US4668982A (en) | Misregistration/distortion correction scheme | |
| US4561103A (en) | Print inspecting method and apparatus | |
| EP0217414B1 (en) | Pattern masking method and an apparatus therefor | |
| US5440650A (en) | Image processing system for inspection of overprinted matter | |
| IE61590B1 (en) | Method and apparatus for detecting significant difference of sheet material | |
| EP0685959B1 (en) | Image processing apparatus for identifying character, photo and dot images in the image area | |
| JPH0120477B2 (en) | ||
| EP0311990B1 (en) | Method and apparatus for detecting disparity of cyclic length of printed patterns | |
| JP3204876B2 (en) | Print inspection equipment | |
| JP3278207B2 (en) | Image inspection equipment | |
| JPH0371263B2 (en) | ||
| JPH0147823B2 (en) | ||
| JPH08323965A (en) | Color image inspection method and apparatus | |
| JPS5973758A (en) | Method and apparatus for inspecting picture pattern of printed matter | |
| JPH03264359A (en) | Device for inspecting printed matter | |
| JPS60309A (en) | Method and apparatus for testing pattern of print | |
| JP2003046766A (en) | Image processing device | |
| JPH0236896B2 (en) | JIKUTAISHOBUTSUTAINOKETSUKANKENSASOCHI | |
| GB2159622A (en) | Print inspecting method | |
| JP3267372B2 (en) | Method and apparatus for generating matching pattern signal in pattern matching inspection | |
| SU1270781A1 (en) | Device for recognizing contours of object images | |
| JPH0128994B2 (en) | ||
| JPS59146283A (en) | Method for checking pattern |