JPH0625657B2 - Method and device for inspecting printed matter - Google Patents
Method and device for inspecting printed matterInfo
- Publication number
- JPH0625657B2 JPH0625657B2 JP58108224A JP10822483A JPH0625657B2 JP H0625657 B2 JPH0625657 B2 JP H0625657B2 JP 58108224 A JP58108224 A JP 58108224A JP 10822483 A JP10822483 A JP 10822483A JP H0625657 B2 JPH0625657 B2 JP H0625657B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- sample
- printed matter
- pixel
- circuit
- 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 - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41F—PRINTING MACHINES OR PRESSES
- B41F33/00—Indicating, counting, warning, control or safety devices
- B41F33/0036—Devices for scanning or checking the printed matter for quality control
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/98—Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
- G06V10/993—Evaluation of the quality of the acquired pattern
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D7/00—Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
- G07D7/06—Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency using wave or particle radiation
- G07D7/12—Visible light, infrared or ultraviolet radiation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30144—Printing quality
Landscapes
- Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Toxicology (AREA)
- Character Discrimination (AREA)
- Image Analysis (AREA)
- Inking, Control Or Cleaning Of Printing Machines (AREA)
- Length Measuring Devices By Optical Means (AREA)
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
Description
【発明の詳細な説明】 本発明は印刷物の絵柄を検査する方法および装置に関す
る。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method and apparatus for inspecting the design of printed matter.
従来の印刷物絵柄検査装置は、第1図に示すように印刷
物1をラインセンサカメラ2により幅方向に走査しつつ
画像情報を取出し、一方搬送系のシリンダ3に取付けた
ロータリーエンコーダ4の出力によつてカメラ2の走査
を同期化することにより試料絵柄5(第2図)をマトリ
クス状の多数の小画素に分割する。As shown in FIG. 1, a conventional printed matter pattern inspection apparatus takes out image information while scanning a printed matter 1 in a width direction by a line sensor camera 2, and outputs an image from a rotary encoder 4 attached to a cylinder 3 of a conveying system. Then, by synchronizing the scanning of the camera 2, the sample pattern 5 (Fig. 2) is divided into a large number of small pixels in a matrix.
これら各画素は、同様に分割してメモリに記録した標本
絵柄6(第2図)の対応する小画素と順次濃度比較され
て欠陥有無が検出される。The density of each of these pixels is similarly compared with the corresponding small pixel of the sample pattern 6 (FIG. 2) recorded in the memory in the same manner to detect the presence or absence of a defect.
このような絵柄検査において、第3図に示すように搬送
系の幅方向位置ずれがあると試料から得られた階調7の
うちの○印を付した3画素につき標本から得られた階調
8の該当する3画素分と比較した場合、試料絵柄に欠陥
がなくても欠陥ありとの誤判定が行われる。In such a pattern inspection, if there is a positional deviation in the width direction of the transport system as shown in FIG. 3, among the gradations 7 obtained from the sample, the gradations obtained from the sample for the three pixels marked with a circle. When compared with the corresponding 3 pixels of 8, even if there is no defect in the sample pattern, it is erroneously determined that there is a defect.
これを防ぐ一法として、試料と標本との階調差に対して
大きな許容値を設定することが考えられる。As one method for preventing this, it is conceivable to set a large allowable value with respect to the gradation difference between the samples.
しかしながら、これは欠陥検出精度の低下をもたらすも
ので対策としては必ずしも良好なものではない。However, this causes a decrease in defect detection accuracy and is not necessarily a good countermeasure.
このような問題のない方法としては、標本絵柄に対する
試料絵柄の位置ずれを補正するものということになり、
各種の方法が考案されている。As a method without such a problem, it means to correct the positional deviation of the sample pattern with respect to the sample pattern,
Various methods have been devised.
その1は本願出願人による特願56−146355号に示すよう
な、印刷物の絵柄が幅方向に関しいかなる位置にあるか
を検出し、この位置変化が標本絵柄のデータを標本画素
データメモリに書込むときと試料絵柄のデータを読み込
むときとで比較した結果所定値以上異なるときは、その
ときの試料絵柄データを標本画素データメモリに書込む
ものである。The first is to detect the position of the design of the printed matter in the width direction as shown in Japanese Patent Application No. 56-146355 by the applicant of the present application, and this position change writes the data of the sample design in the sample pixel data memory. As a result of comparison between the time and the time of reading the data of the sample pattern, if the difference is a predetermined value or more, the sample pattern data at that time is written in the sample pixel data memory.
しかしながら、この方法によると、印刷物の幅方向の位
置変化検出、および位置変化情報にしたがつて位置ずれ
補正のための装置が必要となり、ハードウエアの複雑
化、コスト高騰の問題を生じる。However, according to this method, a device for detecting the position change of the printed matter in the width direction and for correcting the position shift according to the position change information is required, which causes problems of hardware complexity and cost increase.
その2は特公昭55−45948 号等に示すもので、試料画素
とこれに対応する標本画素の近傍数点の画素とを比較す
る方法である。The second is shown in Japanese Examined Patent Publication No. 55-45948 and the like, which is a method of comparing a sample pixel with pixels corresponding to several points in the vicinity of the sample pixel.
しかしながら、この方法では検査精度の低下を避け得な
い点で問題がある。However, this method has a problem in that the deterioration of inspection accuracy cannot be avoided.
その3は本願出願人による特願昭57−151,118に係るも
ので試料の幅方向絵柄階調データ(以下試料行データと
いう)を、標本の対応する幅方向絵柄階調データ(以下
標本行データという)と比較し、検出するにつき、各試
料毎に許容する位置ずれ分だけシフトした複数の標本行
を参照し、試料行と最も位相の近い標本行と試料行とに
よつて絵柄検査を行なう方法であつた。The third is related to Japanese Patent Application No. 57-151,118 filed by the applicant of the present application. The widthwise pattern gradation data of the sample (hereinafter referred to as sample line data) is the widthwise pattern gradation data corresponding to the sample (hereinafter referred to as sample line data). ), A plurality of sample rows shifted by an allowable positional deviation for each sample are referred to for detection, and a pattern inspection is performed by the sample row and the sample row that are closest in phase to the sample row. It was.
しかしながらこの方法では、試料搬送系の位置決め精度
によつては、必要な標本行の数が非常に多くなるととも
に、搬送系の高精度化が要求されるためさらに、簡略か
つ低コスト化がはかれる位置ずれ補正方法の開発が望ま
れていた。However, in this method, depending on the positioning accuracy of the sample transport system, the number of sample rows required is extremely large, and since the transport system needs to be highly accurate, the position can be further simplified and reduced in cost. The development of a deviation correction method has been desired.
本発明は上述の点を考慮してなされたもので、試料印刷
物から取出された絵柄データを標本印刷物から予め取出
されメモリに記憶されている絵柄データと比較し絵柄の
良否判定を行うにつき、前記試料から1行毎に検出した
試料行データおよび前記メモリに記憶されている標本行
データの何れか一方を他方に対し相対的に1画素単位で
位置ずれさせて複数のデータを形成し、この複数のデー
タによつて前記試料行データと標本行データとの対比を
行い、そのレベル差が最小値となつたときの前記両デー
タの位置関係からこれら両データ間の位置ずれを求め、
この位置ずれ量に基いて前記両データの一方のアドレス
を補正するような印刷物の絵柄検査方法および装置を提
供するものである。The present invention has been made in consideration of the above points, and compares the pattern data taken out from the sample printed matter with the pattern data previously taken out from the sample printed matter and stored in the memory to judge the quality of the pattern. One of the sample row data detected for each row from the sample and the sample row data stored in the memory is displaced relative to the other on a pixel-by-pixel basis to form a plurality of data. The sample row data and the sample row data are compared with each other according to the above data, and the positional deviation between the two data is obtained from the positional relationship between the two data when the level difference becomes the minimum value,
The present invention provides a method and apparatus for inspecting a pattern on a printed matter, which corrects one of the addresses of the both data based on the amount of positional deviation.
以下第4図乃至第21図を参照して本発明を実施例につき
説明する。Hereinafter, the present invention will be described with reference to FIGS. 4 to 21.
第4図(a),(b),(c)は試料データと標本行データとを
示したもので、同図(a)は本発明方法において取扱われ
る試料行データと標本行データとの基本的な関係を示
し、同図(b)は両データの位置ずれ量と欠陥箇数との関
係を示し、同図(c)は印刷物の絵柄エツジをはじめとす
る特殊な部分における試料行データと標本行データとの
関係を示したものである。4 (a), (b) and (c) show sample data and sample line data, and FIG. 4 (a) shows the basics of sample line data and sample line data handled in the method of the present invention. Fig. (B) shows the relationship between the amount of positional deviation of both data and the number of defects, and Fig. (C) shows the sample line data in a special part such as the pattern edge of the printed matter. It shows the relationship with the sample row data.
まず同図(a)によれば、1つの試料行データ9に対し複
数の標本行データ10〜16を参照する。これら標本行デー
タ10〜16は基本となる標本行データ13を搬送系の精度よ
り予想される位置ずれ分だけ1画素分ずつ左右にシフト
して得たものである。First, referring to FIG. 1A, a plurality of sample row data 10 to 16 are referred to for one sample row data 9. These sample row data 10 to 16 are obtained by shifting the basic sample row data 13 to the left and right by one pixel by the amount of positional deviation expected from the accuracy of the transport system.
そして、試料行データ9を標本行データ10〜16の中で最
も試料行データ9と位相が近いものと12と濃度比較する
ことができ、これによつて欠陥検出が行われる。Then, the sample row data 9 can be compared with the sample row data 10 to 16 whose phase is closest to that of the sample row data 9 and the density of the sample row data 9 to detect the defect.
これにより試料行データ9が印刷物の幅方向に位置ずれ
していてもデータ同士を内容的に比較することができる
から精度よく欠陥検出することができる。複数の標本行
データの内から試料行データと位相の一番近いものを選
択する方法は以下の通りである。As a result, even if the sample row data 9 is displaced in the width direction of the printed matter, the data can be compared in terms of content, so that the defect can be detected with high accuracy. The method of selecting the one having the phase closest to the sample row data from the plurality of sample row data is as follows.
第4図(b)に示すように、複数個の標本行データの各々
についてカメラの1走査期間欠陥検出を行なうと、試料
行データと最も位相が近い標本行データの欠陥箇数が他
に比べて最小になる。即ち、1走査毎に、欠陥箇数が最
小となる標本行データがその時の試料行データと、一番
位相が近いということになる。ただし、この図示例は比
較的淡い画像に関するものであり、濃淡の度合の強い画
像により傾斜の大きい特性曲線となる。As shown in FIG. 4 (b), when defect detection is performed for one scan period of the camera for each of a plurality of sample row data, the number of defects in the sample row data that is closest in phase to the sample row data is higher than that in the other cases. Becomes the minimum. That is, for each scan, the sample row data with the minimum number of defects has the closest phase to the sample row data at that time. However, this illustrated example relates to a relatively light image, and an image having a high degree of shading produces a characteristic curve having a large inclination.
次に同図(c)によれば、試料行データ17に対し最も位相
の近い標本行データ18を対比すると共に、階調差許容値
を大きくとつたものである。これにより絵柄エツジ部分
のように階調差が極めて大きな場合に適した欠陥検査を
行い得る。すなわち、標本行データ18は試料行データ17
に最も位相の近いものであるため、両者の位相差は1/2
画素幅分である。従つて1/2画素幅分の位値ずれが生じ
た場合のエツジに相当する画素における試料と標本との
階調差をその画素に対する許容値とすればよい。この各
画素毎の許容値設定については種々の方法を採ることが
でき(特開昭56−179599号参照)、あるいはエツジに相
当する画素をマスキングすることにより判定対象外とし
てもよい。Next, according to FIG. 3C, the sample row data 17 is compared with the sample row data 18 having the closest phase, and the gradation difference allowable value is increased. As a result, it is possible to perform a defect inspection suitable for a case where the difference in gradation is extremely large like the edge portion of the pattern. That is, the sample row data 18 is the sample row data 17
The phase difference between the two is 1/2
It is the pixel width. Therefore, the gradation difference between the sample and the sample at the pixel corresponding to the edge when the shift of the half pixel width occurs may be set as the allowable value for the pixel. Various methods can be used for setting the permissible value for each pixel (see Japanese Patent Laid-Open No. 56-179599), or a pixel corresponding to an edge may be masked to be excluded from the determination target.
第5図に第4図の思想に基づき構成した本発明方法を実
施するための装置構成を示す。FIG. 5 shows an apparatus configuration for carrying out the method of the present invention constructed based on the idea of FIG.
この装置において、印刷物1を搬送する搬送シリンダ3
の回転量がロータリーエンコーダ4により検出され、同
期回路21に入力される。この同期回路21には、カメラ2
によるスキヤニング位置検出信号が同様に入力されて印
刷物1上の任意位置が検出される。この同期回路21の出
力に基きA/D変換器22がカメラ2より入力されたアナロ
グ量をデイジタル量に変換する。ここで、印刷物1上に
同期回路21の情報を基にアドレス付けする回路がアドレ
ス補正回路24である。この回路の重要な機能は、試料行
パターンに最も位相の近い標本行パターンに関する判定
回路23の出力結果がフイードバツクされることにより次
の行を最適アドレスに補正することである。そして、デ
イジタル量を検出1画素につき標本画素データメモリ25
に格納した後、次の画面からは判定回路23において試料
行データが、標本画素データメモリ25より生成される複
数のシフト行データとリアルタイムで比較される。一
方、判定レベル設定回路27にて事前に設定された判定レ
ベルデータメモリ26のデータと標本画素データメモリ25
のデータとから、リアルタイムで判定レベルが求めら
れ、判定回路23に出力される。In this device, a transport cylinder 3 that transports the printed matter 1
Is detected by the rotary encoder 4 and input to the synchronizing circuit 21. This synchronization circuit 21 has a camera 2
Similarly, the scanning position detection signal is input to detect an arbitrary position on the printed material 1. Based on the output of the synchronizing circuit 21, the A / D converter 22 converts the analog amount input from the camera 2 into a digital amount. Here, the address correction circuit 24 is a circuit that addresses the printed matter 1 based on the information of the synchronization circuit 21. An important function of this circuit is to correct the next row to the optimum address by feeding back the output result of the judgment circuit 23 regarding the sample row pattern having the closest phase to the sample row pattern. Then, the digital amount is detected.
Then, the sample row data is compared with the plurality of shift row data generated from the sample pixel data memory 25 in real time in the determination circuit 23 from the next screen. On the other hand, the data of the decision level data memory 26 and the sample pixel data memory 25 preset by the decision level setting circuit 27
The determination level is obtained in real time from this data and is output to the determination circuit 23.
なお、図においてアドレス補正回路24から判定回路23に
与えられる破線図示の信号はカメラ2からの試料画素デ
ータを最適アドレスに補正する場合に用いられる。この
場合、判定回路23はシフトレジスタ等を持つていて試料
画素データを1画素分づつシフトできるようになつてい
ることを要する。In the figure, the signal indicated by the broken line given from the address correction circuit 24 to the determination circuit 23 is used when the sample pixel data from the camera 2 is corrected to the optimum address. In this case, the determination circuit 23 needs to have a shift register or the like so that the sample pixel data can be shifted by one pixel.
第6図は第5図の装置における判定回路23のより具体的
構成をシフト量±3画素、1行512 画素を例にとつて示
したもので、標本行データSDおよび判定レベルデータ
MDを1画素分ずつシフトするためのラツチL1〜L3
によるシフト回路と、試料行データTDを1画素分ずつ
シフトするためのラツチL4〜L6によるシフト回路と
をそれぞれ判定要素JE1〜JE3およびJE4〜JE
7による判定要素群と組合わせてなるものである。FIG. 6 shows a more specific configuration of the judgment circuit 23 in the apparatus of FIG. 5 by taking a shift amount of ± 3 pixels and one row of 512 pixels as an example. Sample row data SD and judgment level data MD are set to 1 Latches L 1 to L 3 for shifting pixel by pixel
And the shift circuits by the latches L 4 to L 6 for shifting the sample row data TD by one pixel, respectively, as the determination elements JE 1 to JE 3 and JE 4 to JE.
This is combined with the judgment element group according to No. 7 .
各シフト回路は何れもカメラ2(第1図)の走査に用い
たクロツクCLKがラツチ回路に与えられることにより
シフト動作を行うもので、クロツクCLKが1画素毎に
与えられるようにすればよい。Each of the shift circuits performs the shift operation by supplying the clock CLK used for scanning the camera 2 (FIG. 1) to the latch circuit, and the clock CLK may be supplied for each pixel.
例えば試料行データTD1はラツチL4,L5,L6に
よりカメラの走査に同期して順次シフトされTD2,T
D3,TD4となる。同様に標本行データSD1および
判定レベルデータMD1はラツチL1,L2,L3によ
りカメラの走査に同期して順次シフトされMD2,MD
3,MD4およびSD2,SD3,SD4となる。For example, the sample row data TD1 is sequentially shifted by the latches L 4 , L 5 , and L 6 in synchronization with the scanning of the camera TD2, T.
It becomes D3 and TD4. Similarly, the sample row data SD1 and the judgment level data MD1 are sequentially shifted in synchronization with the scanning of the camera by the latches L 1 , L 2 , and L 3 , MD 2 , MD.
3 , MD 4 and SD 2 , SD 3 , SD 4 .
そして試料行データTD1は判定エレメントJE1,J
E2,JE3,JE4に与えられ、標本行データおよび
判定レベルデータと比較判定される。すなわち判定エレ
メントJE4では試料行データTD1と標本行データS
D1、判定レベルデータMD1による判定を行い、判定
エレメントJE1ではTD1とSD2,MD2による判
定、同じくJE2ではTD1とSD3,MD3による判
定、JE3ではTD1とSD4,MD4による判定を行
う。これにより標本行データおよび判定レベルデータを
試料行データに対し遅れさせたときの判定が行われる。Then, the sample row data TD1 is the judgment elements JE 1 , J
It is given to E 2 , JE 3 , and JE 4 and is compared and judged with the sample row data and the judgment level data. That is, in the judgment element JE 4 , the sample row data TD1 and the sample row data S
D 1 performs the determination based on the determination level data MD 1 , and the determination element JE 1 determines based on TD 1 and SD 2 and MD 2 , similarly JE 2 determines based on TD 1 and SD 3 , MD 3 , and JE 3 determines TD 1 . The determination based on SD 4 and MD 4 is performed. As a result, the determination is performed when the sample row data and the determination level data are delayed from the sample row data.
一方、これとは反対に試料行データを標本行データおよ
び画素制御データに対し遅れさせたときの判定は判定エ
レメントJE5,JE6,JE7により行われる。これ
により判定エレメントJE1〜JE7の各々により第4
図(a)における試料行データ9と標本行データ10〜16と
の比較判定が行なわれる。この時の各判定エレメントJ
E1〜JE7の出力はカメラ1走査の間に検出された欠
陥の箇数である。On the other hand, on the contrary, the judgment when the sample row data is delayed from the sample row data and the pixel control data is made by the judgment elements JE 5 , JE 6 , and JE 7 . As a result, each of the determination elements JE 1 to JE 7 causes the fourth
The comparison determination of the sample row data 9 and the sample row data 10 to 16 in FIG. Each judgment element J at this time
The output of E 1 to JE 7 is the number of defects detected during one camera scan.
この7つの判定エレメントからの出力は総合判定回路T
JUに与えられる。総合判定回路TJUは、各エレメン
トから出力される欠陥箇数のうち最小値を選び出し、そ
の値が閾値を超えているか否かによつて良否判定を行な
う。即ち、試料行データとも最も位相の合つた標本行デ
ータとの比較判定が行なわれる訳である。又、この最低
欠陥箇数を与える判定エレメントを総合判定回路TJU
の演算結果に基き識別することで、現在検査している試
料行データが標本行データから、何画素ずれているかが
判かる。この識別データは出力端子STからアドレス補
正回路24に転送され、次のカメラ1走査に対する先頭ア
ドレスを補正する。The outputs from these seven decision elements are the total decision circuit T
Given to JU. The comprehensive judgment circuit TJU selects a minimum value from the number of defects output from each element, and judges whether the value exceeds a threshold value or not. That is, the comparison determination is performed with the sample row data and the sample row data that has the best phase. In addition, the judgment element that gives this minimum number of defects is the total judgment circuit TJU.
By discriminating on the basis of the calculation result of, the number of pixels of the sample row data currently inspected is deviated from the sample row data. This identification data is transferred from the output terminal ST to the address correction circuit 24, and the leading address for the next scan of the camera 1 is corrected.
第7図は第6図の判定回路に用いられる判定エレメント
JEのより具体的構成を示したものである。これは、差
の絶対値検出回路DA、コンパレータCP、カウンタC
T、ラツチLAにより構成されている。そして、差の絶
対値回路DAは、各試料行データTD(TD1〜T
D4)と各標本行データSD(SD1〜SD4)との差
の絶対値|TD−SD|を求める。この値と判定レベル
設定回路27から与えられる各判定レベルMD(MD1〜
MD4とをコンパレータCPにて比較し、判定レベル以
上の画素を欠陥信号として、カウンタCTへ出力する。
カウンタCTはカメラの1走査開始毎に発生するスキヤ
ニング開始信号SZEROが入力される毎に初期化さ
れ、欠陥信号が出力されている間のみカウント可能とな
る。カウンタCTのクロツクCLKは本発明に係る検査装
置のタイミング生成用に使用されているクロツクであ
り、このクロツク1つはカメラによる画像走査における
一画素に相当する。即ち、カウンタCTでは、カメラの
1走査期間に発生する欠陥画素数をカウントすることに
なる。ラツチLAは、カメラの1走査終了毎に発生する
スキヤニング終了信号SENDによつて前記1走査期間中に
発生する欠陥箇数をFN(FN1〜FN7)信号として
総合判定回路TJUに出力する。FIG. 7 shows a more specific structure of the judgment element JE used in the judgment circuit of FIG. This is a difference absolute value detection circuit DA, a comparator CP, a counter C.
It is composed of T and latch LA. Then, the absolute value circuit DA of the difference is used for each sample row data TD (TD 1 to T
The absolute value | TD-SD | of the difference between D 4 ) and each sample row data SD (SD 1 to SD 4 ) is determined. This value and each judgment level MD (MD 1 to
MD 4 is compared with the comparator CP, and pixels having a judgment level or higher are output to the counter CT as defect signals.
The counter CT is initialized each time the scanning start signal SZERO generated at the start of one scan of the camera is input, and can be counted only while the defect signal is output. The clock CLK of the counter CT is a clock used for timing generation of the inspection apparatus according to the present invention, and one clock corresponds to one pixel in image scanning by the camera. That is, the counter CT counts the number of defective pixels generated in one scanning period of the camera. The latch LA outputs the number of defects generated during the one scanning period as an FN (FN 1 to FN 7 ) signal to the comprehensive determination circuit TJU in response to the scanning end signal SEND generated each time the camera completes one scanning.
第8図は第7図の判定エレメントにおける差の絶対値回
路のより具体的構成を示したもので、2つの加算器A
D1,AD2、エクスクルーシブオア回路EXおよびインバ
ータINVにより構成され、入力としてTD、▲▼
が与えられることにより|TD−SD|なる出力を形成する。
この回路は周知であるため詳細説明は省略する。FIG. 8 shows a more specific structure of the absolute value circuit of the difference in the decision element of FIG.
It is composed of D 1 and AD 2 , an exclusive OR circuit EX and an inverter INV, and has TD as an input, ▲ ▼
Is given to form an output of | TD−SD |.
Since this circuit is well known, its detailed description is omitted.
第9図は第6図の判定回路における総合判定回路TJUの
構成をより詳細に示したものであり、6つの低値検出回
路MIN1〜MIN6、コンパレータCP、判定エレメント識別
回路JAから構成されている。FIG. 9 shows the configuration of the overall decision circuit TJU in the decision circuit of FIG. 6 in more detail. It is composed of six low value detection circuits MIN 1 to MIN 6 , a comparator CP, and a decision element identification circuit JA. ing.
判定エレメントJE1〜JE7(第6図,第7図,第8
図)からの欠陥箇数FN1〜FN7の中で最小のものを
検出するのが低値検出回路MIN1〜MIN6であり、検出され
た最小値は、あらかじめ与えられている欠陥許容数とコ
ンパレータCPにて比較され、許容数以上の走査行は欠
陥行として検出信号が出力端子OUTPUTに出力される。こ
こで与えられる欠陥許容数はノイズ等による誤判定防止
のための値に印刷物の品質として許容できる範囲の値を
上乗せしたものである。Judgment elements JE 1 to JE 7 (FIGS. 6, 7, and 8)
A defective number of articles FN 1 is lower-value detecting circuit for detecting the minimum one among ~FN 7 MIN1~MIN6 from Figure), the detected minimum value, and the defect allowable number have been given in advance comparator If the number of scan lines is compared by CP and the number of scan lines exceeds the allowable number, a detection signal is output to the output terminal OUTPUT as a defective line. The allowable number of defects given here is a value for preventing erroneous determination due to noise or the like added with a value in a range acceptable as the quality of the printed matter.
又、この総合判定回路TJUには、±3画素づつシフトさ
れた各標本行データ群と最も位相の近い(欠陥数が最
小)試料行データがどれかを検出するために判定エレメ
ント識別回路JAが設けられている。これの出力STは
現在、カメラが走査している時の位置ずれ量が標本行デ
ータを検査装置に取り込んだ時と、何画素ずれているか
の情報を与える。Further, this comprehensive judgment circuit TJU has a judgment element discrimination circuit JA for detecting which sample row data is closest in phase with each sample row data group shifted by ± 3 pixels (minimum number of defects). It is provided. The output ST of this gives information on how many pixels the positional deviation amount when the camera is scanning is different from when the sample row data was taken into the inspection device.
第10図は第9図における低値検出回路MINのより具体的
な構成を示したもので、セレクタSE、コンパレータC
Pとにより構成されている。2つの入力A,Bをコンパ
レータCPにて比較し、A>Bなる信号を得る。これは
1つは判定エレメント識別信号JとしてJAへいき、も
う1つはセレクタSEにて入力A,Bの中から低値を選
択する信号となる。この回路の出力が2入力A,Bから
低値を検出した信号MIN(A,B)である。FIG. 10 shows a more specific structure of the low value detection circuit MIN in FIG. 9, which includes a selector SE and a comparator C.
And P. The two inputs A and B are compared by the comparator CP, and a signal of A> B is obtained. One of them is a signal for determining element identification signal J, which goes to JA, and the other is a signal for selecting a low value from inputs A and B by selector SE. The output of this circuit is the signal MIN (A, B) that has detected a low value from the two inputs A, B.
ここに、第9図の総合判定回路は7つの入力を2つずつ
組合わせて低値検出し、この低値検出結果同士を比較し
て低値検出し、さらにもう一段低値検出を行うことによ
り7入力中の最低値を検出するようにしたものである。Here, the comprehensive judgment circuit in FIG. 9 detects two low values by combining two of the seven inputs, compares the low value detection results with each other to detect the low value, and further performs the low value detection. Is used to detect the lowest value among the 7 inputs.
第11図は、第9図における判定エレメント識別回路JA
の動作内容を示したものである。第11図において、チャ
ート内の“1”は、低値検出回路の出力JがA>Bを満
足している状態、“φ”はA<Bを満足している状態、
“X”はそのどちらでもかまわない状態である。J1〜
J6がそれぞれ、チヤートのような状態を満足している
時に7つの判定エレメントJEからの出力FN1〜FN7の
どれが一番小さいかが識別できる。FIG. 11 shows the judgment element identifying circuit JA in FIG.
It shows the operation contents of. In FIG. 11, “1” in the chart is a state where the output J of the low value detection circuit satisfies A> B, “φ” is a state where A <B is satisfied,
"X" is a state in which either of them is acceptable. J1
It is possible to identify which of the outputs FN1 to FN7 from the seven decision elements JE is the smallest when each of J6 satisfies the chart-like condition.
第12図は、第9図における判定エレメント識別回路JA
のより具体的構成を示したもので、インバータINV1〜
INV6、オア回路OR1〜OR6、エンコーダENにて前記ロ
ジツクを構成した回路例である。FIG. 12 shows the judgment element identification circuit JA in FIG.
It shows a more specific configuration of the inverter INV 1 ~
This is an example of a circuit in which the logic is constituted by INV 6 , OR circuits OR 1 to OR 6 , and encoder EN.
判定レベルの設定方法は本出願人が既に出願(特願昭5
6−179599号参照)したものをさらに進め、リアルタイ
ムにて判定回路の判定結果に使用できさらに誤判定し難
い構成である。The applicant has already applied for the determination level setting method (Japanese Patent Application No.
6-179599) is further advanced, and it can be used for the determination result of the determination circuit in real time, and is more difficult to make an erroneous determination.
ここでは、3種類の判定レベルを採用する。第1番目は
“固定分”と呼ばれるものであり、印刷絵柄のシヤドー
部分(低濃度部分)に対する最低値、あるいは、検査を
必要としない部分(余白部分)に対する最大値(8ビツ
トにて255 )を与える。これは判定レベルデータ・メモ
リ26に事前に書込んでおく。第2番目は、“比例分”と
呼ばれるものであり、標本画素データ25にある比率K
(K<1)を乗じた値であり、これにより検査性能の向
上が期待できる。Here, three types of determination levels are adopted. The first is called "fixed portion", which is the minimum value for the shadow area (low density area) of the printed pattern, or the maximum value for the area that does not require inspection (margin area) (255 at 8 bits). give. This is written in the decision level data memory 26 in advance. The second is what is called "proportional amount", which is the ratio K in the sample pixel data 25.
It is a value obtained by multiplying (K <1), and improvement of inspection performance can be expected by this.
第3番目は“エツヂ分”と呼ばれるものであり標本画素
データ・メモリ25の隣り合う画素の差を判定レベルとし
て与えることにより、濃度急変部分での誤動作防止に役
立つ。第2,第3の判定レベルは標本画素データ・メモ
リ25からリアルタイムに演算される。The third is called "edge", and by giving the difference between adjacent pixels of the sample pixel data memory 25 as a judgment level, it is useful for preventing malfunction in the portion where the density changes abruptly. The second and third judgment levels are calculated in real time from the sample pixel data memory 25.
ある画素の判定レベルを与えるときには、前記3種類の
判定レベルの中から最大値を選んで用いることにより、
誤判定し難い検査装置の構成を可能としている。すなわ
ち標本画素データSDにおける画素間レベル差が小さい
場合には、第1の判定レベルを用い、階調変化により画
素間レベル差がやや大きい場合には第2の判定レベルを
用い、エツヂ部分で画素間レベル差が著しく大きい場合
は第3の判定レベルを用いる。このような対応により誤
判定を防ぐ。When a judgment level of a certain pixel is given, the maximum value is selected from the three kinds of judgment levels and used.
This makes it possible to configure an inspection device that is unlikely to be erroneously determined. That is, when the inter-pixel level difference in the sample pixel data SD is small, the first determination level is used, and when the inter-pixel level difference is slightly large due to the gradation change, the second determination level is used, and the pixel at the edge portion is used. If the inter-level difference is extremely large, the third judgment level is used. Such a measure prevents erroneous determination.
第13図に第5図の判定レベル設定回路27の具体的構成例
を示す。FIG. 13 shows a concrete configuration example of the decision level setting circuit 27 shown in FIG.
標本画素データSDは、1つはラツチLA3,LA4を用いて
シフトされインバータINV、差の絶対値回路DA2,DA3
にて隣り合う画素同士の差が求められる。高値検出回路
HL1にて、左右の隣り合う画素との差の中で大きい方
が、高値検出回路HL2のB入力に“エツヂ分”判定レベ
ルとして送られる。このように左右両隣りの画素と比較
することにより幅方向の位置ずれが左右どちらに生じて
も一つの判定レベルで対応できる。標本画素データSD
のもう1つは、比例分設定回路RSにてある係数K(K
<1)が乗ぜられ、高値検出回路HL2のC入力に“比例
分”判定レベルとして送られる。One of the sample pixel data SD is shifted using the latches LA3 and LA4, an inverter INV, and absolute difference circuits DA2 and DA3.
At, the difference between adjacent pixels is obtained. High value detection circuit
In HL1, the larger of the differences between the left and right adjacent pixels is sent to the B input of the high value detection circuit HL2 as the "edge" determination level. In this way, by comparing with the pixels on both the left and right sides, it is possible to deal with the position difference in the width direction on either the left or right side with one determination level. Sample pixel data SD
The other one is a coefficient K (K
It is multiplied by <1) and sent to the C input of the high price detection circuit HL2 as a “proportional” determination level.
ここで標本画素データSDをラツチLA4の出力としてい
る訳は“エツヂ分”判定レベルと画素の位相を一致させ
るためである。同様の目的で、判定レベルデータCDか
ら“固定分”判定レベルを引用する際もラツチLA1,LA2
にて位相合せを行ない高値検出回路HL2の入力Aとなつ
ている。高値検出回路HL2では入力A,B,Cの中から
最大の判定レベル、つまり標本画素データSDの該当領
域における画素間レベル差から得た最適判定レベルを選
定し、その値をその画素の判定レベルMDとして判定回
路27に送出する。The reason why the sample pixel data SD is used as the output of the latch LA4 is to match the "edge" determination level with the phase of the pixel. For the same purpose, when quoting the "fixed" judgment level from the judgment level data CD, the latches LA1 and LA2
It is used as the input A of the high-value detection circuit HL2 for phase matching. The high-value detection circuit HL2 selects the maximum judgment level from the inputs A, B, and C, that is, the optimum judgment level obtained from the level difference between pixels in the corresponding area of the sample pixel data SD, and uses that value as the judgment level for that pixel. It is sent to the judgment circuit 27 as MD.
この一連の動作は検査装置のタイミング・クロツクCLK
と同期して行なわれるため、試料行データと標本行デー
タの画素毎比較が行なわれる判定回路23へリアルタイム
で判定レベルを与えることができる。This series of operation is the timing clock CLK of the inspection device.
Since it is performed in synchronism with the above, it is possible to give a judgment level in real time to the judgment circuit 23 that compares the sample row data with the sample row data for each pixel.
ここで、差の絶対値回路DA2,DA3は第8図と同様な構成
であり、又、高値検出回路HL1,HL2は第10図に示された
低値優先回路MINの逆の機能で実現できるため回路図は
省略する。Here, the absolute value circuits DA2 and DA3 of the difference have the same configuration as in FIG. 8, and the high value detection circuits HL1 and HL2 can be realized by the function reverse to that of the low value priority circuit MIN shown in FIG. Therefore, the circuit diagram is omitted.
第14図は第13図の比例分設定回路RSの具体例を示した
ものである。本実施例では簡単のため乗算器などを用い
ずにゲートG1〜G4を、デコーダDEで選択すること
により、特定の判定レベルが得られるようになつてい
る。又、比例分設定値は2ビツトとしている。ゲートG
1の入力は最上位ビツトはLOWに接続、下位7ビツトを
標本画素データSDの上位7ビツト(残り1ビツトは無
接続)と接続することにより、このゲートG1が選択さ
れた時には標本画素データSDの50%の値が出力され
る。同様にG2〜G3を選択することによりそれぞれ、
S2の25%、12.5%、6.25%の値が出力されるように入
力系が接続されている。FIG. 14 shows a specific example of the proportional component setting circuit RS of FIG. In the present embodiment, for simplicity, the gates G1 to G4 are selected by the decoder DE without using a multiplier or the like so that a specific determination level can be obtained. The proportional set value is set to 2 bits. Gate G
When the gate G1 is selected, the sample pixel data SD is connected to the input of 1 by connecting the highest bit to LOW and connecting the lower 7 bits to the upper 7 bits of the sample pixel data SD (the remaining 1 bit is not connected). The value of 50% of is output. Similarly, by selecting G2 to G3 respectively,
The input system is connected so that the values of 25%, 12.5%, and 6.25% of S2 are output.
印刷機巻返し検査装置などの印刷物1の搬送系を考える
とき、第15に示すように搬送系の走行精度によつてはか
なりの幅方向位置ずれが生じる。又、本質的に印刷工程
においては、給紙部より供給されるウエブの流れが場合
によつては、幅方向にシフトするため印刷段階で印刷シ
リンダを幅方向へ動かすことが多い。この時には当然、
試料行データは幅方向へ大きく移動することになる。従
つて、走査位置a,c間のような長期間については、か
なりの量の幅方向位置ずれが生じることが予想される。
一方、カメラの1走査期間に相当するa,b間のような
極めて短期間については、ほとんど、幅方向位置ずれは
生じていない(1〜2画素程度の余裕を見れば充分であ
る。)従つて、長期的な幅方向位置ずれの対策がより必
要であるが、このために多数の標本行データを用意する
ことは、ハードウエアに対する負荷が非常に大きいもの
になつてしまう。When considering a conveyance system for the printed matter 1 such as a reversing inspection device for a printing machine, as shown in the fifteenth, a considerable lateral displacement occurs depending on the traveling accuracy of the conveyance system. Further, in the printing process, the flow of the web supplied from the paper feeding unit may shift in the width direction in some cases, so that the printing cylinder is often moved in the width direction in the printing step. At this time, of course,
The sample row data will move greatly in the width direction. Therefore, for a long period of time such as between the scanning positions a and c, it is expected that a considerable amount of lateral displacement will occur.
On the other hand, in the extremely short period between a and b, which corresponds to one scanning period of the camera, there is almost no positional deviation in the width direction (a margin of about 1 to 2 pixels is sufficient). Then, although it is necessary to take measures against the positional deviation in the width direction for a long period of time, preparing a large number of sample row data for this purpose results in a very heavy load on the hardware.
そこで、本発明では、短期的なずれ(a,b間で生じる
位置ずれ)に対しては少数の標本行データ(本実施例で
は±3画素)で対応し、長期的な位置ずれ(a,c間で
生じる位置ずれ)に対しては、カメラの各走査前に走査
開始アドレスを、一番位置ずれ量の少ないアドレスへ補
正することでハードウエア負荷を大幅に軽減している。Therefore, in the present invention, a small number of sample row data (± 3 pixels in this embodiment) is used for a short-term shift (a shift in position between a and b), and a long-term shift (a, (positional deviation occurring between c), the hardware load is greatly reduced by correcting the scanning start address to the address with the smallest positional deviation before each scanning of the camera.
第16図はこのカメラ走査前に行われるアドレス補正をど
のタイミングで行なうかを示している。この補正動作は
カメラ走査の開始点、終了点を基準にして行う。ロータ
リー・エンコーダ4の信号を元に、シリンダ3の回転方
向を分割し、カメラ走査開始点をまとめたのが例えばN
1,N2であり、対応する終了点がED1,ED2である。カメ
ラの走査開始点N1,N2ごとに、開始信号SZEROが発生
し、走査終了点ED1,E2ごとに終了信号SENDが発生す
る。FIG. 16 shows at what timing the address correction is performed before the camera scanning. This correction operation is performed with reference to the start and end points of camera scanning. For example, the rotation direction of the cylinder 3 is divided based on the signal from the rotary encoder 4 and the camera scanning start points are summarized as N.
1 and N2, and the corresponding end points are ED 1 and ED 2 . For each scanning start point N1, N2 of the camera, start signal SZERO occurs, end signal SEND is generated for each scanning end point ED 1, E 2.
この走査終了点SENDから、走査開始点SZEROまでの間、
カメラは光量を蓄積しており、検査装置自身は何の演算
動作も行なつていない。この期間に、判定回路23から得
られるST信号(試料行データと最も位相の近い標本行
データのアドレスを与える)を元に、次のカメラ走査開
始アドレスを補正してやることによりリアルタイムでの
位置ずれ補正を可能としている。From this scan end point SEND to the scan start point SZERO,
The camera stores the amount of light, and the inspection device itself does not perform any arithmetic operation. During this period, the next camera scanning start address is corrected based on the ST signal (which gives the address of the sample row data that is closest in phase to the sample row data) obtained from the determination circuit 23 to correct the positional deviation in real time. Is possible.
第17図は判定回路23から出力されるST信号の位置ずれ
量の定義を説明したもので、G1は標本行データを取り
込んだ際の画素位置を表わし、G2,G3は、試料行デ
ータに位相を合わせるために標本行データG1をシフト
したデータであり、G2を方向シフト、G3を方向
シフトと定義している。即ち、本実施例では3ビツトの
情報を持つST信号を解読してやることにより、現在取
り込んでいる試料行データが標本行データに対し±3画
素の中でどれに最も近く位置しているかが判かる。これ
を整理すると下表のようになる。FIG. 17 explains the definition of the position shift amount of the ST signal output from the judgment circuit 23. G1 represents the pixel position when the sample row data is taken in, and G2 and G3 represent the phase of the sample row data. Are data obtained by shifting the sample row data G1 in order to match with each other, G2 is defined as a direction shift, and G3 is defined as a direction shift. That is, in the present embodiment, by decoding the ST signal having the information of 3 bits, it is possible to know to which one of the ± 3 pixels the sample row data currently fetched is located closest to the sample row data. . The table below summarizes this.
第18図に、アドレス補正回路24の具体的回路構成例を示
す。この回路は、3種類のカウンタC1〜C3、ラツチ
LA5、インバータINV、アンド回路ANDおよびオア
回路ORから構成されている。ここで、SCLK信号はカメ
ラより出力される信号で、これらの1クロツクに同期し
て一画素の情報が検査装置へ取り込まれる。そして、検
査装置内でこの信号から内部タイミングを制御するため
にCLK信号を発生させている。SCLK信号はカメラが発生
している信号なのでアドレスが発生していない時、即
ち、SEND信号からSZERO信号の間にも発生しているが、C
LK信号は、検査装置内で作つている信号なのでこの信号
SZEROとSENDの間の期間の出力はない。従つて、アドレ
ス補正のタイミング信号として利用できるクロツクはSC
LK信号となる。 FIG. 18 shows a specific circuit configuration example of the address correction circuit 24. This circuit has three types of counters C1 to C3 and a latch.
It is composed of LA5, an inverter INV, an AND circuit AND, and an OR circuit OR. Here, the SCLK signal is a signal output from the camera, and the information of one pixel is taken into the inspection device in synchronization with these one clock. Then, a CLK signal is generated from this signal in the inspection device in order to control the internal timing. Since the SCLK signal is generated by the camera, it is also generated when the address is not generated, that is, between the SEND signal and the SZERO signal.
Since the LK signal is a signal created in the inspection device, this signal
There is no output for the period between SZERO and SEND. Therefore, the clock that can be used as the address correction timing signal is SC.
It becomes the LK signal.
第19図は各種のクロツクφ1〜φ7の発生タイミングを
示したもので、SEND信号とSZERO信号の間にアドレス補
正が正確に行なわれるようになつている。FIG. 19 shows the timing of generation of various clocks φ 1 to φ 7 , and address correction is accurately performed between the SEND signal and the SZERO signal.
各カウンタC1〜C3は、プリセツト機能付であり、Lo
ad端子がLOWのときには、プリセツト・データが出力さ
れる。C1は判定回路23よりのST信号をプリセツト・
データとし、位置ずれ画素数をカウントする。C2は、
アツプ・ダウン・カウンタであり、1走査前の走査終了
点でのアドレスをプリセツト・データとし、C1でカウ
ントされた画素数分SCLK信号をカウント・アツプあるい
はカウント・ダウンしたアドレスを現在の試料行データ
と位相の一番近いアドレスとして内部アドレス発生用カ
ウンタC3のプリセツト・データへ出力する。C3はC
2よりのプリセツト・データを元に、カメラの走査開始
アドレスが最適に補正された内部アドレスを発生してい
く。ここでは、内部アドレスを16ビツトとして扱つてい
る。この出力は、メモリへのデータの書込み、読出し用
アドレスとして使用される。Each of the counters C1 to C3 has a preset function and
When the ad pin is LOW, preset data is output. C1 presets the ST signal from the decision circuit 23
As data, the number of misaligned pixels is counted. C2 is
This is an up-down counter, and the address at the scan end point one scan before is used as the preset data, and the SCLK signal counted up or down by the number of pixels counted by C1 is used as the current sample line data. Is output to the preset data of the internal address generating counter C3 as the address having the closest phase. C3 is C
Based on the preset data from 2, an internal address is generated in which the scanning start address of the camera is optimally corrected. Here, the internal address is treated as 16 bits. This output is used as an address for writing and reading data in the memory.
次に第19図のタイミングで発生するクロツクφ1〜φ7
それぞれの機能を説明する。Next, the clocks φ 1 to φ 7 generated at the timing shown in FIG.
Each function is explained.
判定回路23よりSEND信号に同期してST信号が出力され
る。このデータが確定する時間的余裕でクロツクφ2に
てラツチLA5に取り込む。ラツチLA5の出力の最上位ビツ
トは試料行データのシフト方向を示すデータとして、ア
ツプ・ダウン・カウンタC2に入力される。C2ではア
ツプ状態、ダウン状態が確定した後、クロツクφ3にて
プリセツトデータ(1走査前の走査終了アドレス)を出
力する。但し、クロツクφ1がLow(プリセツト・モー
ド)の間はカウントは行なわれない。一方、ラツチLA5
の下位2ビツト出力はインバータINVを通してプリセツ
ト・データとして位置ずれ画素数検出カウンタC1に入
力される。ここでは試料行データが標本行データから何
画素ずれているかをカウントしφ7信号を発生させる。
このφ7信号を元にφ4信号が作られ、位置ずれの画素
数分だけ、SCLK信号をアツプ・ダウン・カウンタC7の
クロツク入力へ通過させる。これにより、カウンタC2
は、位置ずれ量に応じて内部アドレスをシフトさせ走査
開始アドレスを現在のカメラ走査と最も位相が近いとこ
ろに補正している。クロツクφ5,φ6は、補正された
アドレスを内部アドレスと置換させるためのタイミング
・クロツクを示している。The ST signal is output from the determination circuit 23 in synchronization with the SEND signal. Take this data into latch LA5 at clock φ 2 with enough time to settle. The highest bit of the output of the latch LA5 is input to the up-down counter C2 as data indicating the shift direction of the sample row data. In C2, after the up state and the down state are determined, the preset data (scan end address of one scan before) is output at clock φ 3 . However, counting is not performed while clock φ 1 is low (preset mode). On the other hand, Latch LA5
The lower 2 bit outputs of the above are input to the position shift pixel number detection counter C 1 as preset data through the inverter INV. Here, how many pixels the sample row data deviates from the sample row data is counted and a φ 7 signal is generated.
A φ 4 signal is generated based on this φ 7 signal, and the SCLK signal is passed to the clock input of the up-down counter C7 by the number of pixels having a positional shift. As a result, the counter C2
, The internal address is shifted according to the amount of positional deviation, and the scanning start address is corrected to the position where the phase is closest to the current camera scanning. Clocks φ 5 and φ 6 indicate timing clocks for replacing the corrected address with the internal address.
第20図は、第19図のタイミング・チャートに基づいて、
クロツクφ1〜φ6を実際に発生させるための実施例で
ある。このクロツク発生回路はD型フリツプフロツプDF
1〜DF5、カウンタC4,C5、インバータINVから構成
される。FIG. 20 is based on the timing chart of FIG.
This is an embodiment for actually generating the clocks φ 1 to φ 6 . This clock generation circuit is a D-type flip-flop DF
1 to DF 5 , counters C4 and C5, and an inverter INV.
フリツプフロツプDF1にて、SEND信号からSZERO信号の
間、カウンタC4,C5をカウント・モードにすること
により、クロツクφ2,φ3を出力させる。クロツクφ
3をフリツプフロツプDF2,DF3の入力として用いること
によりクロツクφ1を得ている。φ1はφ3をインバー
タINVで反転させて得ている。さらに、カウンタC1の
φ7出力をフリツプフロツプDF4,DF5の入力として用い
ることにより、クロツクφ5,φ6を得ている。The flip-flop DF 1 outputs the clocks φ 2 and φ 3 by setting the counters C4 and C5 in the count mode between the SEND signal and the SZERO signal. Clock φ
The clock φ 1 is obtained by using 3 as the input of the flip-flops DF2 and DF3. φ 1 is obtained by inverting φ 3 with the inverter INV. Further, by using a phi 7 output of the counter C1 as an input flip-flop DF 4, DF 5, to obtain clock phi 5, the phi 6.
以上のような構成により印刷部の絵柄がある程度位置ず
れを伴つていても、正確に絵柄の良否判別を行うことが
でき、高速検査が可能で装置の低コスト化ができる。ま
た、標本行データと試料行データとの比較を行うため、
絵柄同士を全体的に比較する場合に比べ格段に高精度の
検査を行うことができる。With the above configuration, even if the design of the printing unit is misaligned to some extent, the quality of the design can be accurately determined, high-speed inspection is possible, and the cost of the apparatus can be reduced. Also, in order to compare the sample row data with the sample row data,
It is possible to perform inspection with extremely high accuracy as compared with the case where the patterns are compared with each other as a whole.
さらに、印刷物の走行方向への位置ずれについても、第
6図に示した判定回路を一部変更したような第21図の回
路で対応できる。これは判定エレメントJC1〜JC7、シフ
トレジスタSR1〜SR6及び、総合判定回路TJUに
よつて構成されている。シフトレジスタSRはカメラ2
(第1図)のセンサ・アレイビツト数に等しいビツト数
であり標本行データSD、判定レベルMD及び試料行デ
ータTDを第6図におけるラツチのように、1画素づつ
遅らせて、判定エレメントJC1〜J7に与え、これら判定
エレメントJC1〜JC7の各出力j1〜j7は総合判定回路
TJUに与えられて、最小値が検出される。Further, the displacement of the printed matter in the traveling direction can be dealt with by the circuit of FIG. 21 which is a partial modification of the determination circuit shown in FIG. This determination element JC 1 ~JC 7, the shift register SR 1 to SR 6 and is by connexion configured total determination circuit TJU. The shift register SR is the camera 2
(Figure 1) is a number of bits equal to the number of sensor Areibitsuto sample row data SD, the decision level MD and the sample row data TD as the latch in FIG. 6, is delayed by one pixel, determining elements JC 1 ~ given to J 7, each output j 1 to j 7 of these determination elements JC 1 ~JC 7 is given to the overall decision circuit TJU, the minimum value is detected.
本発明は上述のように、試料行データを予めメモリに記
憶されている標本行データと各行毎に対比するにつき、
これら両データの一方を他方に対し適当な画素数分位置
をずらせた複数のデータとして他方のデータと逐一比較
し、その中で最もレベル差の少いときの両データ間の位
置ずれ量を検出してこの位置ずれ量に応じ前記一方のデ
ータのアドレス補正を行うようにしたため、印刷機械送
系において予想される印刷物の位置ずれに対応するため
の最小限のハードウエアで構成できる。そしてハードウ
エアが簡単でありながら、高精度の検査をリアルタイム
で行うことができる。As described above, the present invention compares the sample row data with the sample row data stored in advance in the memory for each row.
One of these two data is compared with the other data one by one as a plurality of data shifted by an appropriate number of pixels from the other, and the amount of positional deviation between the two data when the level difference is smallest among them is detected. Since the address of one of the data is corrected according to the amount of positional deviation, the minimum hardware for coping with the positional deviation of the printed matter expected in the printing machine feeding system can be realized. And while the hardware is simple, highly accurate inspection can be performed in real time.
第1図は本発明の対象である絵柄検査装置の画像情報検
出部の構成を示す図、第2図は絵柄検査のための試料画
素データと標本画素データの記録方式の模型的説明図、
第3図は印刷物搬送系等に起因した絵柄の位置ずれが生
じた場合の説明用特性図、第4図(a),(b),(c)は本発
明方法の基本的な検査方法および絵柄エツジの検査方法
を示す特性図、第5図は本発明方法を実施するための装
置構成を示すブロツク線図、第6図は第5図の装置にお
ける判定回路のより具体的構成を示すブロツク線図、第
7図は第6図の判定回路における判定エレメントのより
具体的構成を示すブロツク線図、第8図は第7図の判定
エレメントにおける差の絶対値検出回路のより具体的構
成を示すブロツク線図、第9図は第6図の判定回路にお
ける総合判定回路のより具体的構成を示すブロツク線
図、第10図は第9図の総合判定回路における低値検出回
路のより具体的構成を示すブロツク線図、第11図は第9
図の総合判定回路における判定エレメント識別回路の動
作説明図、第12図は同判定エレメント識別回路のより具
体的構成を示す結線図、第13図は第5図の装置における
判定レベル設定回路のより具体的構成を示すブロツク線
図、第14図は第13図の判定レベル設定回路における比例
分設定回路のより具体的構成を示すブロツク線図、第15
図は印刷物搬送系における印刷物の幅方向位置ずれの説
明図、第16図は第5図の装置におけるカメラの画像信号
アドレス補正動作の説明図、第17図は第5図の装置にお
ける標本画素データにおける読出し時のシフト動作を説
明する図、第18図は第5図の装置におけるアドレス補正
回路24のより具体的構成を示すブロツク線図、第19図は
第18図の回路各部の信号のタイミングチヤート、第20図
は第18図の回路に用いるクロツクを発生する回路を示す
図、第21図は第5図の装置における判定回路の他の例を
示すブロツク線図である。 1……印刷物、2……カメラ、3……シリンダ、4……
ロータリーエンコーダ、5,7,9,17……試料絵柄
(試料行)データ、6,8,10,18……標本絵柄(標本
行)データ。 TD……試料行データ、SD……標本行データ、MD…
…画素制御データ、JC……判定回路、JE……判定エ
レメント、L……ラツチ、SR……シフトレジスタ、T
JU……総合判定回路。FIG. 1 is a diagram showing a configuration of an image information detection unit of a pattern inspection device which is an object of the present invention, and FIG. 2 is a model explanatory view of a sample pixel data and a recording system of sample pixel data for a pattern inspection,
FIG. 3 is a characteristic diagram for explanation in the case where a displacement of a picture pattern due to a printed material conveying system or the like occurs, and FIGS. 4 (a), (b) and (c) show a basic inspection method of the method of the present invention. FIG. 5 is a characteristic diagram showing a method for inspecting a pattern edge, FIG. 5 is a block diagram showing a device configuration for carrying out the method of the present invention, and FIG. 6 is a block diagram showing a more specific configuration of a judgment circuit in the device shown in FIG. FIG. 7 is a block diagram showing a more specific structure of the judgment element in the judgment circuit of FIG. 6, and FIG. 8 is a more specific structure of the absolute difference value detection circuit in the judgment element of FIG. Block diagram shown in FIG. 9, FIG. 9 is a block diagram showing a more specific structure of the comprehensive determination circuit in the determination circuit of FIG. 6, and FIG. 10 is a more specific example of the low value detection circuit in the comprehensive determination circuit of FIG. Block diagram showing the structure, Fig. 11 is the ninth
FIG. 12 is an operation explanatory diagram of the judgment element identification circuit in the comprehensive judgment circuit in the figure, FIG. 12 is a connection diagram showing a more specific configuration of the judgment element identification circuit, and FIG. 13 is a diagram showing the judgment level setting circuit in the apparatus of FIG. A block diagram showing a specific configuration, FIG. 14 is a block diagram showing a more specific configuration of the proportional component setting circuit in the determination level setting circuit of FIG. 13, FIG.
The figure is an explanatory view of the positional deviation in the width direction of the printed matter in the printed matter conveying system, FIG. 16 is an explanatory view of the image signal address correction operation of the camera in the apparatus of FIG. 5, and FIG. 17 is the sample pixel data in the apparatus of FIG. FIG. 18 is a block diagram for explaining the shift operation at the time of reading, FIG. 18 is a block diagram showing a more specific structure of the address correction circuit 24 in the apparatus of FIG. 5, and FIG. 19 is the timing of signals at various parts of the circuit of FIG. FIG. 20 is a diagram showing a circuit for generating a clock used in the circuit of FIG. 18, and FIG. 21 is a block diagram showing another example of the decision circuit in the device of FIG. 1 ... Printed matter, 2 ... Camera, 3 ... Cylinder, 4 ...
Rotary encoder, 5,7,9,17 ... Sample pattern (sample line) data, 6,8,10,18 ... Sample pattern (sample line) data. TD ... Sample line data, SD ... Sample line data, MD ...
... Pixel control data, JC ... Judgment circuit, JE ... Judgment element, L ... Latch, SR ... Shift register, T
JU: Comprehensive judgment circuit.
Claims (3)
標本印刷物から予め取り出されたメモリに記憶されてい
る絵柄データと比較し印刷絵柄の良否判定を行う印刷物
の良否判定を行う印刷物の絵柄検査方法において、 前記試料から1行毎に検出した試料行データおよび前記
メモリに記憶されている標本行データのいづれか一方を
他方に対して相対的に1画素単位で位置ずれさせて複数
のデータを形成し、 この複数のデータを用いて前記試料行データと標本行デ
ータとの画素毎のレベル対比を行って各行データ毎の欠
陥画素数を求め、 その欠陥画素数が最小値になったときの前記両行データ
の位置関係からこれら両データ間の位置ずれ量を求め、 この位置ずれ量に基づいて前記量データのいづれか一方
のアドレスを補正するようにしたことを特徴とする印刷
物の絵柄検査方法。1. A method of inspecting a printed matter for judging whether the printed matter is good or bad by comparing the pattern data taken out from the sample printed matter with the pattern data stored in a memory preliminarily taken out from the sample printed matter. In step 1, one of the sample row data detected for each row from the sample and the sample row data stored in the memory is displaced relative to the other by one pixel unit to form a plurality of data. , The number of defective pixels for each row data is obtained by performing a level comparison for each pixel of the sample row data and the sample row data using the plurality of data, and the number of defective rows for both rows when the number of defective pixels becomes the minimum value The amount of positional deviation between these two data is calculated from the positional relationship of the data, and one of the addresses of the amount data is corrected based on this amount of positional deviation. A method for inspecting a pattern on a printed matter.
を標本印刷物から予め取り出されメモリに記憶されてい
る絵柄データと比較し印刷絵柄の良否判定を行う印刷物
の絵柄検査方法において、 前記試料から1行毎に検出した試料行データおよび前記
メモリに記憶されている標本行データのいづれか一方を
他方に対し相対的に1画素単位で位置ずれさせて複数の
データを形成し、 この複数のデータを用いて前記試料行データと標本行デ
ータとの画素毎のレベル対比を行い、 得られたレベル差が、固定値として与えられたもの、前
記標本行データに所定係数が乗ぜられたもの、濃度急変
部での濃度差としてのものの中から選ばれた1つの判定
レベルに対しいかなる関係にあるかによって前記絵柄の
欠陥画素数を求め、 前記欠陥画素数が最小値となったときの前記両データの
位置関係からこれら両データ間の位置ずれ量を求め、 この位置ずれ量に基づいて前記両データのいづれか一方
にアドレスを補正するようにしたことを特徴とする印刷
物の絵柄検査方法。2. A pattern inspecting method for a printed matter, comprising: comparing the pattern data taken out from the sample row data with the pattern data previously taken out from the sample printed matter and stored in the memory to judge the quality of the printed pattern. Either one of the sample row data detected for each row and the sample row data stored in the memory is displaced by one pixel unit relative to the other to form a plurality of data, and the plurality of data are used. Then, the pixel row data and the sample row data are compared in level for each pixel, and the obtained level difference is given as a fixed value, the sample row data is multiplied by a predetermined coefficient, the concentration abrupt change portion. The number of defective pixels of the pattern is obtained according to the relationship with one judgment level selected from among the density differences in 1. The printed matter characterized in that the positional deviation amount between the two data is calculated from the positional relationship between the two data, and the address is corrected to one of the two data based on the positional deviation amount. Pattern inspection method.
する装置と、 前記同期信号に基づき前記印刷物の絵柄を走査して画像
情報を取り出すカメラと、 このカメラにより標本印刷物から取り出した画像情報が
書き込まれる標本画素データメモリと、 予め設定されている複数の判定レベル中から1つを選択
し、この選択された判定レベルにより前記標本画素デー
タメモリから読み出された画素毎の画像情報にレベル設
定を行って出力する判定レベル設定回路と、 この判定レベル設定回路からの画像情報と前記カメラか
らの試料印刷物の画像情報とをレベル比較し、画素毎に
画像欠陥の判定を行う判定回路と、 前記同期回路の出力に基づき前記標本画素データメモリ
の読み出しアドレス信号を形成し、かつ前記判定回路の
出力に基づき前記アドレス信号のアドレス補正を行うア
ドレス補正回路とをそなえた印刷物の絵柄検査装置。3. A device for forming a synchronizing signal in accordance with a conveying operation of a printed matter, a camera for scanning a pattern of the printed matter based on the synchronizing signal to take out image information, and an image information taken out from a sample printed matter by the camera. The sample pixel data memory to which is written and one of a plurality of preset determination levels are selected, and the image information for each pixel read from the sample pixel data memory is selected according to the selected determination level. A judgment level setting circuit that performs setting and outputs, and a judgment circuit that compares the image information from the judgment level setting circuit with the image information of the sample printed matter from the camera, and judges an image defect for each pixel, The read address signal of the sample pixel data memory is formed based on the output of the synchronization circuit, and the address is output based on the output of the determination circuit. Print pattern inspection apparatus having an address correction circuit that performs address correction for less signal.
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58108224A JPH0625657B2 (en) | 1983-06-16 | 1983-06-16 | Method and device for inspecting printed matter |
| 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 |
| DE8383108547T DE3380997D1 (en) | 1982-08-31 | 1983-08-30 | IMAGE EXAMINATION METHOD. |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58108224A JPH0625657B2 (en) | 1983-06-16 | 1983-06-16 | Method and device for inspecting printed matter |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60309A JPS60309A (en) | 1985-01-05 |
| JPH0625657B2 true JPH0625657B2 (en) | 1994-04-06 |
Family
ID=14479190
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58108224A Expired - Lifetime JPH0625657B2 (en) | 1982-08-31 | 1983-06-16 | Method and device for inspecting printed matter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0625657B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0621769B2 (en) * | 1985-12-13 | 1994-03-23 | 大日本スクリ−ン製造株式会社 | Pattern defect detection method and device |
| JP2512871B2 (en) * | 1987-04-23 | 1996-07-03 | 株式会社ニコン | Pattern measuring device |
| JP4654693B2 (en) * | 2005-01-19 | 2011-03-23 | パナソニック株式会社 | Inspection image imaging device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5951029B2 (en) * | 1980-04-25 | 1984-12-12 | 株式会社日立製作所 | Pattern defect inspection method |
-
1983
- 1983-06-16 JP JP58108224A patent/JPH0625657B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60309A (en) | 1985-01-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4677680A (en) | Method and device for inspecting image | |
| US6317512B1 (en) | Pattern checking method and checking apparatus | |
| JP3825070B2 (en) | Counterfeit banknote pattern detector and detection method | |
| JP3313474B2 (en) | Print inspection equipment | |
| IE61590B1 (en) | Method and apparatus for detecting significant difference of sheet material | |
| JPH0559473B2 (en) | ||
| JPH0625657B2 (en) | Method and device for inspecting printed matter | |
| JP3278207B2 (en) | Image inspection equipment | |
| JPH0147823B2 (en) | ||
| JP3433331B2 (en) | Image inspection method and apparatus | |
| JPH06233128A (en) | Method for assigning index concerned with color behavior to picture element displayed by color reproducing system, and color reproducing system for executing that method | |
| JPH0371263B2 (en) | ||
| JP2556894B2 (en) | Print quality inspection device and method | |
| JPH0414067B2 (en) | ||
| JP3374297B2 (en) | Color image inspection method and color image inspection apparatus | |
| JPH0120477B2 (en) | ||
| JP2841373B2 (en) | Pattern inspection equipment | |
| JPH07128248A (en) | Defect inspection equipment | |
| JPH09147056A (en) | Mark appearance inspection method and its equipment | |
| JPH0726827B2 (en) | Pattern inspection equipment | |
| JPH0658688B2 (en) | Print pattern recognition device | |
| JPH09330412A (en) | Image inspection method and apparatus | |
| JPS6345545A (en) | Inspecting device for printed matter | |
| JPH0363876B2 (en) | ||
| JPH04129743A (en) | Pattern inspection device for printed matter |