JPH06265482A - Matching pattern signal generating method in pattern matching inspection and device thereof - Google Patents

Matching pattern signal generating method in pattern matching inspection and device thereof

Info

Publication number
JPH06265482A
JPH06265482A JP5053603A JP5360393A JPH06265482A JP H06265482 A JPH06265482 A JP H06265482A JP 5053603 A JP5053603 A JP 5053603A JP 5360393 A JP5360393 A JP 5360393A JP H06265482 A JPH06265482 A JP H06265482A
Authority
JP
Japan
Prior art keywords
contour
pattern
data
matching
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP5053603A
Other languages
Japanese (ja)
Other versions
JP3267372B2 (en
Inventor
Hideyuki Hanabusa
秀行 花房
Masami Nishio
正巳 西尾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HEWTEC KK
Original Assignee
HEWTEC KK
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HEWTEC KK filed Critical HEWTEC KK
Priority to JP05360393A priority Critical patent/JP3267372B2/en
Publication of JPH06265482A publication Critical patent/JPH06265482A/en
Application granted granted Critical
Publication of JP3267372B2 publication Critical patent/JP3267372B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To make any defect in a mast area effectively detectable by extracting each of both first and second contouring parts crossing and paralleling the scanning direction and then performing a mast expansion process for pattern matching separately. CONSTITUTION:A first difference processing circuit 8 extracts a first contouring part, crossing the scanning direction of a camera, from a difference between a camera signal A not passing through a delay line 9 and a delay camera signal B, outputting a signal of first contouring data C. The data C are binary-coded (10), and master first contour binary data D2, imparting an expanded master area to this data C is outputted (11). In addition, an AND circuit 7 inputted with real first binary-coded data F binary-coded the data C inputs corresponding data E into a first memory 5 synchronously, and when there is a difference after pattern matching, a signal G is outputted. When a defective object inclusive of this signal G is more than the specified size, a defect is judged (12). On the other hand, a second contouring part in parallel with the scanning direction is extracted (28), and a defective judgment (32) takes place with the same processing as the first one. Therefore a defect in one side mask area is situated at the outside of the other side mast area, whereby it is effectively detectable.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば印刷物の印刷パ
ターン等の被検査パターンの良否をパターンマッチング
検査により判定する欠点検査において実施され、前記判
定の対象となるマッチングパターン信号を生成する方法
とその装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for generating a matching pattern signal which is carried out in a defect inspection for determining the quality of a pattern to be inspected such as a print pattern of a printed matter by a pattern matching inspection, Regarding the device.

【0002】[0002]

【従来の技術】パターンマッチング検査は、被検査パタ
ーンの撮像信号を信号処理して、被検査パターンの輪郭
を抽出し、この抽出された輪郭パターンに対してマスク
領域を拡大して与えて(換言すれば、輪郭パターンを太
らせて)マスタパターンを形成した後、前記撮像信号を
信号処理して得た輪郭パターンにマスク領域を与えない
リアルデータを、前記マスタパターンと比較し、もっ
て、パターンマッチングを行う。
2. Description of the Related Art In a pattern matching inspection, an image pickup signal of a pattern to be inspected is subjected to signal processing to extract a contour of the pattern to be inspected, and a mask area is enlarged and given to the extracted contour pattern. Then, after the master pattern is formed by thickening the contour pattern), the real data that does not give a mask area to the contour pattern obtained by performing the signal processing of the image pickup signal is compared with the master pattern to perform pattern matching. I do.

【0003】このパターンマッチングにおいてマスクが
施された部分は欠点検査上は不感帯領域となる。そのた
め、前記のようにマスク領域を拡大して与えることによ
り、印刷物等の被検材の位置精度や被検査パターンの印
刷位置のずれ等を許容でき、このようなマスク領域をマ
スタパターンに与えることは、パターンマッチング検査
においては不可欠とされている。
In this pattern matching, the masked portion becomes a dead zone area in the defect inspection. Therefore, by enlarging the mask area as described above, it is possible to allow the positional accuracy of the material to be inspected such as printed matter and the deviation of the printing position of the pattern to be inspected, and to provide such a mask area to the master pattern. Are essential for pattern matching inspection.

【0004】[0004]

【発明が解決しようとする課題】ところで、従来は輪郭
パターン全体についてパターンマッチング処理をする構
成となっている。そのため、例えばバーコードで代表さ
れるように隣接する被検査パターン相互の間隔が狭く近
接している場合には、夫々の被検査パターンに与えたマ
スク領域がオーバーラップする。
By the way, conventionally, pattern matching processing is performed for the entire contour pattern. Therefore, when the distance between adjacent inspection patterns is narrow and close to each other, as represented by a bar code, for example, the mask regions given to the respective inspection patterns overlap.

【0005】したがって、例えばバーコード等において
はその全体が互いにオーバーラップするマスク領域によ
り不感帯領域となるから、この領域内に生じた欠点につ
いて、それを含むマッチングパターン信号を生成するこ
とは、従来においては不可能であり、その欠点検出がで
きない。
Therefore, for example, in the case of a bar code or the like, the entire area becomes a dead zone area due to the mask areas which overlap each other. Therefore, with respect to the defect occurring in this area, it has been a conventional practice to generate a matching pattern signal including the defect. Is impossible, and its defect cannot be detected.

【0006】また、被検査パターンの相互間隔が広い場
合でも、このパターンの輪郭上およびその近傍に発生し
た欠点はマスク領域内に位置されてしまうため、このよ
うな欠点についてのマッチングパターン信号も生成でき
ず、その欠点検出ができない。本発明の目的は、マスク
領域内の欠点を検出するのに有効なパターンマッチング
検査におけるマッチングパターン信号生成方法とその装
置を得ることにある。
Further, even when the pattern to be inspected has a large mutual interval, defects generated on the contour of the pattern and in the vicinity thereof are located in the mask area, and therefore a matching pattern signal for such a defect is also generated. No, it cannot detect its defects. An object of the present invention is to obtain a matching pattern signal generation method and its apparatus in a pattern matching inspection effective for detecting defects in a mask area.

【0007】[0007]

【課題を解決するための手段】前記目的を達成するため
に、本発明の請求項1に係るパターンマッチング検査に
おけるマッチングパターン信号生成方法は、被検材の被
検査パターンを撮像して得た撮像信号をもとに、前記被
検査パターンの輪郭について前記撮像の走査方向に対し
交差する第1輪郭部分に、マスク領域拡大処理を行って
第1輪郭部分マスタパターンを形成し、この第1輪郭部
分マスタパターンと前記第1輪郭部分についてのリアル
データとを比較して、前記被検査パターンの輪郭のうち
前記走査方向に平行な第2輪郭部分についてのマッチン
グパターン信号を生成するとともに、前記撮像信号をも
とに前記第2輪郭部分に、マスク領域拡大処理を行って
第2輪郭部分マスタパターンを形成し、この第2輪郭部
分マスタパターンと前記第2輪郭部分についてのリアル
データとを比較して、前記第1輪郭部分についてのマッ
チングパターン信号を生成することを特徴とする。
In order to achieve the above object, a method for generating a matching pattern signal in a pattern matching inspection according to claim 1 of the present invention is an image obtained by imaging an inspection pattern of an inspection material. Based on the signal, the mask area enlargement process is performed on the first contour portion of the contour of the pattern to be inspected, which intersects the scanning direction of the imaging, to form the first contour portion master pattern. The master pattern and the real data of the first contour portion are compared to generate a matching pattern signal for a second contour portion of the contour of the pattern to be inspected, which is parallel to the scanning direction, and at the same time, the imaging signal is generated. Based on the second contour portion, mask area expansion processing is performed to form a second contour portion master pattern, and the second contour portion master pattern is formed. By comparing the real data for the second contour portion, and generating a matching pattern signal for said first contour portion.

【0008】また同様の目的を達成するために、請求項
2に係る本発明のパターンマッチング検査におけるマッ
チングパターン信号生成装置は、撮像器により撮像され
た被検材の被検査パターンについての撮像信号を処理し
て、前記被検査パターンの輪郭について前記撮像器の走
査方向に対し交差する第1輪郭部分を抽出する第1輪郭
抽出手段と、抽出された前記第1輪郭部分についての第
1輪郭データに対してマスク領域を拡大して与える第1
マスク拡大処理手段と、この処理手段で処理された前記
第1輪郭データを格納する第1メモリと、前記第1輪郭
抽出手段で抽出された前記第1輪郭部分についてのリア
ルデータと前記第1メモリに格納されたデータとを比較
して、前記被検査パターンの輪郭のうち前記走査方向に
平行な第2輪郭部分についてのマッチングパターン信号
を生成する第1生成手段とを備えた第1マッチングパタ
ーン生成部と、前記撮像器からの撮像信号を処理して前
記第2輪郭部分を抽出する第2輪郭抽出手段と、抽出さ
れた前記第2輪郭部分についての第2輪郭データに対し
てマスク領域を拡大して与える第2マスク拡大処理手段
と、この処理手段で処理された前記第2輪郭データを格
納する第2メモリと、前記第2輪郭抽出手段で抽出され
た前記第2輪郭部分についてのリアルデータと前記第2
メモリに格納されたデータとを比較して、前記第1輪郭
部分についてのマッチングパターン信号を生成する第2
生成手段とを備えた第2マッチングパターン生成部とを
具備したものである。
In order to achieve the same object, a matching pattern signal generating device in a pattern matching inspection of the present invention according to a second aspect provides an image pickup signal of an inspection pattern of an inspection material imaged by an image pickup device. First contour extraction means for processing to extract a first contour portion that intersects the contour of the pattern to be inspected with respect to the scanning direction of the imager, and first contour data for the extracted first contour portion. In contrast, the mask area is enlarged and given first
Mask enlarging processing means, a first memory for storing the first contour data processed by the processing means, real data on the first contour portion extracted by the first contour extracting means, and the first memory A first matching pattern generating means for generating a matching pattern signal for a second contour portion of the contour of the pattern to be inspected which is parallel to the scanning direction by comparing the data stored in the first matching pattern generation means. Section, second contour extracting means for processing the image pickup signal from the image pickup device to extract the second contour portion, and enlarging the mask area with respect to the second contour data on the extracted second contour portion. Second mask enlarging processing means to be given by the above, a second memory for storing the second contour data processed by the processing means, and the second contour portion extracted by the second contour extracting means. Said the real data for the second
A second circuit for comparing the data stored in the memory to generate a matching pattern signal for the first contour portion;
And a second matching pattern generator having a generator.

【0009】[0009]

【作用】前記請求項1の発明の構成によれば、被検査パ
ターンの輪郭について走査方向に対し交差する第1輪郭
部分のリアルデータと比較される第1輪郭部分マスタパ
ターンは、前記被検査パターンの輪郭について走査方向
に対し交差する第1輪郭部分に、マスク領域拡大処理を
行って形成されるから、この第1輪郭部分マスタパター
ンは、前記被検査パターンの輪郭のうち前記走査方向に
平行な第2輪郭部分に対してのマスク領域を持っていな
い。したがって、パターンマッチングの際に前記第2輪
郭部分は、第1輪郭部分マスタパターンのマスク領域外
に位置されて不感帯領域となることがなく、前記第1輪
郭部分マスタパターンと前記第1輪郭部分のリアルデー
タとの比較により、前記被検査パターンの輪郭のうち前
記走査方向に平行な第2輪郭部分についてのマッチング
パターン信号を生成できる。
According to the structure of the present invention, the first contour portion master pattern to be compared with the real data of the first contour portion which intersects the contour of the pattern to be inspected in the scanning direction is the pattern to be inspected. The first contour portion master pattern is parallel to the scanning direction among the contours of the pattern to be inspected because the first contour portion master pattern is formed on the first contour portion that intersects the scanning direction with respect to the contour. There is no mask area for the second contour portion. Therefore, during pattern matching, the second contour portion is not located outside the mask area of the first contour portion master pattern and becomes a dead zone area, and the first contour portion master pattern and the first contour portion are not By comparing with the real data, it is possible to generate a matching pattern signal for the second contour portion of the contour of the pattern to be inspected, which is parallel to the scanning direction.

【0010】同様に、被検査パターンの輪郭について走
査方向と平行な第2輪郭部分のリアルデータと比較され
る第2輪郭部分マスタパターンは、前記被検査パターン
の輪郭について走査方向と平行な第2輪郭部分に、マス
ク領域拡大処理を行って形成されるから、この第2輪郭
部分マスタパターンは、前記被検査パターンの輪郭のう
ち前記走査方向に交差する第1輪郭部分に対してのマス
ク領域を持っていない。したがって、パターンマッチン
グの際に前記第1輪郭部分は、第2輪郭部分マスタパタ
ーンのマスク領域外に位置されて不感帯領域となること
がなく、前記第2輪郭部分マスタパターンと前記第2輪
郭部分のリアルデータとの比較により、前記被検査パタ
ーンの輪郭のうち前記走査方向に交差する第1輪郭部分
についてのマッチングパターン信号を生成できる。
Similarly, the second contour portion master pattern, which is compared with the real data of the second contour portion parallel to the scanning direction for the contour of the pattern to be inspected, has the second contour parallel to the scanning direction for the contour of the pattern to be inspected. Since the contour portion is formed by performing the mask area enlargement process, the second contour portion master pattern is a mask area for the first contour portion of the contour of the pattern to be inspected which intersects in the scanning direction. do not have. Therefore, during pattern matching, the first contour portion is not located outside the mask area of the second contour portion master pattern and becomes a dead zone area, and the second contour portion master pattern and the second contour portion do not overlap each other. By comparing with the real data, it is possible to generate a matching pattern signal for the first contour portion of the contour of the pattern to be inspected that intersects in the scanning direction.

【0011】このように被検査パターンについて走査方
向と交差する第1輪郭部分と走査方向と平行な第2輪郭
部分について夫々輪郭を抽出した後に、マスク拡大処理
をして夫々別々にパターンマッチングを行うことによ
り、一方のパターンマッチングにおいてマスク領域に含
まれる欠点を、他方のパターンマッチングで前記マスク
領域外に位置させて、マスク領域内の欠点を含むマッチ
ングパターン信号を生成できる。
After extracting the contours of the first contour portion that intersects the scanning direction and the second contour portion that is parallel to the scanning direction of the pattern to be inspected in this way, mask enlargement processing is performed and pattern matching is performed separately. As a result, the defect included in the mask area in one pattern matching can be located outside the mask area in the other pattern matching, and the matching pattern signal including the defect in the mask area can be generated.

【0012】前記請求項2の発明の構成において、第1
マッチングパターン生成部の第1輪郭抽出手段には、撮
像器の撮像信号が供給され、この第1輪郭抽出手段は、
その信号処理により撮像された被検材の被検査パターン
について前記撮像器の走査方向に対し交差する第1輪郭
部分を抽出する。第1マスク拡大処理手段は、抽出され
た前記第1輪郭部分についての第1輪郭データに対して
マスク領域を拡大して与える。第1メモリは、少なくと
も前記被検査パターンに対するすべての前記第1輪郭デ
ータを格納できる容量を有して、これらにマスクが与え
られたデータを格納する。第1生成手段は、第1輪郭抽
出手段で抽出された前記第1輪郭部分についてのリアル
データと第1メモリに格納されたデータとを比較して、
前記被検査パターンの輪郭のうち前記走査方向に平行な
第2輪郭部分についてのマッチングパターン信号を生成
する。
In the structure of the invention of claim 2, the first
The image pickup signal of the image pickup device is supplied to the first contour extraction means of the matching pattern generation unit, and the first contour extraction means
A first contour portion that intersects the scanning direction of the image pickup device is extracted from the inspection pattern of the inspection material imaged by the signal processing. The first mask enlargement processing unit enlarges and gives a mask region to the first contour data of the extracted first contour portion. The first memory has a capacity capable of storing at least all of the first contour data for the pattern to be inspected, and stores mask-given data therein. The first generation means compares the real data on the first contour portion extracted by the first contour extraction means with the data stored in the first memory,
A matching pattern signal is generated for a second contour portion of the contour of the pattern to be inspected which is parallel to the scanning direction.

【0013】そのため、第1マッチングパターン生成部
は、被検査パターンにおける前記走査線の走査方向に対
し交差する第1輪郭部分にマスクを設けるとともに、被
検査パターンにおける前記走査方向と平行な第2輪郭部
分にはマスクを設けることなく、パターンマッチング処
理を行う。
Therefore, the first matching pattern generating section provides a mask on the first contour portion of the pattern to be inspected which intersects the scanning direction of the scanning lines, and the second contour parallel to the scanning direction in the pattern to be inspected. The pattern matching process is performed without providing a mask on the part.

【0014】第2マッチングパターン生成部の第2輪郭
抽出手段にも、撮像器の撮像信号が供給され、この第2
輪郭抽出手段は、その信号処理により撮像された被検材
の被検査パターンについて前記撮像器の走査方向に対し
平行な第2輪郭部分を抽出する。第2マスク拡大処理手
段は、抽出された前記第2輪郭部分についての第2輪郭
データに対してマスク領域を拡大して与える。第2メモ
リは、少なくとも前記被検査パターンに対するすべての
前記第2輪郭データを格納できる容量を有して、これら
にマスクが与えられたデータを格納する。第2生成手段
は、第2輪郭抽出手段で抽出された前記第2輪郭部分に
ついてのリアルデータと第2メモリに格納されたデータ
とを比較して、前記被検査パターンの輪郭のうち前記走
査方向に交差する第1輪郭部分についてのマッチングパ
ターン信号を生成する。
The image pickup signal of the image pickup device is also supplied to the second contour extracting means of the second matching pattern generating section.
The contour extracting means extracts a second contour portion parallel to the scanning direction of the image pickup device for the inspection pattern of the inspection material imaged by the signal processing. The second mask enlargement processing unit enlarges and gives a mask area to the extracted second contour data of the second contour portion. The second memory has a capacity capable of storing at least all of the second contour data for the pattern to be inspected, and stores mask-given data therein. The second generation means compares the real data of the second contour portion extracted by the second contour extraction means with the data stored in the second memory, and selects the contour of the pattern to be inspected in the scanning direction. A matching pattern signal for the first contour portion intersecting with is generated.

【0015】そのため、第2マッチングパターン生成部
は、被検査パターンにおける前記走査線の走査方向に平
行な第2輪郭部分にマスクを設けるとともに、被検査パ
ターンにおける前記走査方向に交差する第1輪郭部分に
はマスクを設けることなく、パターンマッチング処理を
行う。
Therefore, the second matching pattern generating section provides the mask on the second contour portion of the pattern to be inspected which is parallel to the scanning direction of the scanning line, and the first contour portion of the pattern to be inspected which intersects in the scanning direction. Pattern matching processing is performed without providing a mask.

【0016】したがって、この請求項2の発明において
は、前記マッチングパターン信号生成方法を実施して、
一方のパターンマッチングにおいてマスク領域に含まれ
る欠点を、他方のパターンマッチングで前記マスク領域
外に位置させて、マスク領域内の欠点を含むマッチング
パターン信号を生成できる。
Therefore, in the invention of claim 2, the matching pattern signal generating method is carried out,
A defect included in the mask area in one pattern matching can be located outside the mask area in the other pattern matching to generate a matching pattern signal including a defect in the mask area.

【0017】[0017]

【実施例】以下、図1〜図5を参照して本発明の一実施
例を説明する。図1は例えば印刷物(被検材)の印刷パ
ターン(被検査パターン)の良否を判定する欠点検査機
に組込まれるマッチングパターン信号生成装置の構成を
示すブロック図であって、この装置は本発明に係るマッ
チングパターン信号の生成方法を実施する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of the present invention will be described below with reference to FIGS. FIG. 1 is a block diagram showing a configuration of a matching pattern signal generation device incorporated in a defect inspection machine for determining the quality of a printed pattern (inspected pattern) of a printed matter (inspected material). The matching pattern signal generation method is performed.

【0018】前記信号発生装置は、第1マッチングパタ
ーン生成部1と、第2マッチングパターン生成部2とを
具備している。この装置には印刷パターンを必要により
適当な照明下において撮像する撮像器例えばCCDライ
ンセンサカメラ(図示しない)から出力される撮像信号
A(区別する必要がある場合にはA1,A2,A3,…Anと表
記する。)が同時に供給される。前記カメラは欠点検出
機に備えられる。
The signal generator comprises a first matching pattern generator 1 and a second matching pattern generator 2. This device has an image pickup signal A (for example, A1, A2, A3, ... if necessary to be distinguished) output from an image pickup device for picking up a print pattern under appropriate illumination, for example, a CCD line sensor camera (not shown). Will be supplied at the same time. The camera is included in a defect detector.

【0019】第1マッチングパターン生成部1は、第1
輪郭抽出手段3と、第1マスク領域拡大手段4と、第1
メモリ5と、リアル用第1輪郭2値化手段としての第1
リアル用比較器6と、第1生成手段としての負論理入力
端子付きのアンド回路7とを備えている。
The first matching pattern generating section 1 has a first
A contour extracting means 3, a first mask area expanding means 4, a first
The memory 5 and the first real-purpose first contour binarizing means
A real comparator 6 and an AND circuit 7 with a negative logic input terminal as the first generating means are provided.

【0020】第1輪郭抽出手段3は、例えば2つの入力
端を有した第1差分処理回路8の一方の入力端に、ディ
レーライン9を介して前記撮像信号Aが入力されるとと
もに、他方の入力端に、ディレーライン9を通すことな
く前記撮像信号Aが入力される構成である。ディレーラ
イン9は撮像信号の1ライン分(1走査線分)の画素デ
ータについて、数ビット分、例えば4ビット分の時間軸
的遅れを与えるものである。第1差分処理回路8は、デ
ィレーライン9を通ることなく入力される撮像信号A
と、この信号Aに対して遅れて入力される遅延撮像信号
Bとの差を求める処理を行う。
The first contour extracting means 3 receives the image pickup signal A through the delay line 9 at one input end of the first difference processing circuit 8 having, for example, two input ends, and at the other end. The image pickup signal A is inputted to the input end without passing through the delay line 9. The delay line 9 gives a time-axis delay of several bits, for example, four bits, to the pixel data of one line (one scanning line) of the image pickup signal. The first difference processing circuit 8 receives the image pickup signal A input without passing through the delay line 9.
Then, a process for obtaining a difference from the delayed image pickup signal B input with a delay with respect to the signal A is performed.

【0021】なお、第1差分処理回路8の構成は、図5
に示されるように前記両信号A,Bが供給される減算器
15と、バッファ回路16と、インバータ回路17と、
切替え回路18とを有している。減算器15は、差分処
理を実行するものであるとともに、その結果が0以上
(AーB≧0)の時にはボローが発生しないから、減算
器15はバッファ回路16を通して差分出力が出るよう
に切替え回路18を制御する。また、差分処理の結果ボ
ローが発生した時に減算器15は、ボロー信号を切替え
回路18に与えてインバータ回路17を通して差分出力
が出るように切替え回路18を制御する。それによっ
て、第1差分処理回路8は前記両信号A,Bについて
(AーB)の絶対値を出力するようになっている。
The configuration of the first difference processing circuit 8 is shown in FIG.
A subtractor 15 to which both signals A and B are supplied, a buffer circuit 16, an inverter circuit 17,
And a switching circuit 18. The subtractor 15 executes difference processing, and when the result is 0 or more (AB ≧ 0), no borrow occurs, so the subtractor 15 is switched to output a difference output through the buffer circuit 16. Control the circuit 18. Further, when a borrow occurs as a result of the difference processing, the subtractor 15 gives the borrow signal to the switching circuit 18 and controls the switching circuit 18 so that a differential output is output through the inverter circuit 17. As a result, the first difference processing circuit 8 outputs the absolute value of (AB) for both signals A and B.

【0022】前記第1輪郭抽出手段3での処理により、
被検査パターンの輪郭のうち、このパターンについて前
記カメラの走査方向に対して直角に交差する第1輪郭部
分が抽出される。詳しくは、図3に例示する「F」とい
う文字が各部同一色の印刷パターンPであるとするとと
もに、このパターンPを図3の矢印方向に前記カメラが
走査した場合をもって以下代表して説明する。
By the processing by the first contour extracting means 3,
Of the contours of the pattern to be inspected, a first contour portion intersecting the pattern at right angles to the scanning direction of the camera is extracted. Specifically, the letter “F” illustrated in FIG. 3 is a print pattern P of the same color in each part, and the case where the pattern P is scanned by the camera in the arrow direction of FIG. 3 will be described below as a representative. .

【0023】前記カメラの撮像に伴い撮像信号A1がその
まま第1差分処理回路8に入力してから、図2に示され
るように前記撮像信号A1はディレーライン9でt時間遅
延され、遅延撮像信号B(B1,B2,B3,…Bn)として第
1差分処理回路8に入力される。それにより第1差分処
理回路8は、1ライン内で時間的にずれている隣接の画
素データ相互についての差を求める。
As the image pickup signal A1 is input to the first difference processing circuit 8 as it is along with the image pickup by the camera, the image pickup signal A1 is delayed by the delay line 9 for t time as shown in FIG. B (B1, B2, B3, ... Bn) is input to the first difference processing circuit 8. As a result, the first difference processing circuit 8 obtains the difference between adjacent pixel data that are temporally displaced within one line.

【0024】この差分処理の結果において、差がない場
合には前記1ライン内の隣接した画素データ相互には色
差がないと判定され、また、差が求められた場合には1
ライン内での撮像信号の変化点としての境界、換言すれ
ば、前記1ライン内の隣接した画素データ相互には色差
があると判定される。
When there is no difference in the result of this difference processing, it is determined that there is no color difference between the adjacent pixel data in the one line, and when the difference is obtained, it is 1
It is determined that there is a color difference between the boundary as a change point of the image pickup signal in the line, in other words, the adjacent pixel data in the one line.

【0025】このようにして前記1ライン内での前記印
刷パターンPについての輪郭部分、換言すれば、印刷パ
ターンPの輪郭について走査方向に対して直角に交差す
る第1輪郭部分が抽出される。この輪郭部分は前記色差
に応じた値(多値)の第1輪郭データCとして、第1差
分処理回路8から第1マスク領域拡大手段4と第1リア
ル用比較器6とに夫々供給される。
In this way, the contour portion of the print pattern P within the one line, in other words, the first contour portion of the contour of the print pattern P intersecting at right angles to the scanning direction is extracted. This contour portion is supplied from the first difference processing circuit 8 to the first mask area enlarging means 4 and the first real-purpose comparator 6 as the first contour data C having a value (multivalue) corresponding to the color difference. .

【0026】第1マスク領域拡大手段4は、マスタ用第
1輪郭2値化手段としての第1マスタ用比較器10と、
第1マスク領域拡大処理回路11とで形成されている。
第1マスク用比較器10の入力端は第1差分処理回路8
の出力端に接続され、これは前記第1輪郭データCを2
値化する。図2中S1は比較器10のしきい値(スレッシ
ョルドレベル)であり、このしきい値を境に第1輪郭デ
ータCが2値化されてマスタ用第1輪郭2値データD1と
なる。
The first mask area enlarging means 4 includes a first master comparator 10 as a master first contour binarizing means,
It is formed by the first mask area expansion processing circuit 11.
The input terminal of the first mask comparator 10 has a first difference processing circuit 8
Of the first contour data C.
Quantify. In FIG. 2, S1 is a threshold value (threshold level) of the comparator 10, and the first contour data C is binarized at this threshold value to become the master first contour binary data D1.

【0027】第1マスク領域拡大処理回路11には前記
2値データD1が入力され、この回路11は、供給された
前記2値データD1に対して、信号を遅らせたり早めたり
する処理により、前記2値データD1を時間軸方向に太ら
せて拡大したマスク領域を形成し、それを前記2値デー
タD1に与える。このようにマスク領域を拡大して与える
ことにより、印刷物の位置精度や印刷パターンPの印刷
位置ずれ等の影響を少なくできる。
The binary data D1 is input to the first mask area enlargement processing circuit 11, and the circuit 11 performs the processing for delaying or advancing the signal with respect to the supplied binary data D1. The binary data D1 is thickened in the time axis direction to form an enlarged mask area, which is given to the binary data D1. By enlarging and providing the mask area in this way, it is possible to reduce the influence of the positional accuracy of the printed matter, the print position shift of the print pattern P, and the like.

【0028】第1メモリ5には第1マスク領域拡大手段
11の出力、つまり、前記第1輪郭データCについて拡
大マスク領域が与えられたマスタ用第1輪郭2値データ
D2が供給される。この第1メモリ5は少なくとも前記印
刷パターンP全体についてのマスタ用第1輪郭2値デー
タD2を格納できる容量を有している。第1メモリ5には
格納された前記マスタ用第1輪郭2値データD2は、パタ
ーンマッチングの際に対応するリアルデータに対して1
ライン分づつ読み出され、その出力Eはアンド回路7の
非論理入力端子に供給される。第1メモリ5に格納され
たマスタ用第1輪郭2値データD2は都度更新される。
The first memory 5 outputs to the first mask area enlarging means 11, that is, the master first contour binary data to which the enlarging mask area is given for the first contour data C.
D2 is supplied. The first memory 5 has a capacity capable of storing at least the master first contour binary data D2 for at least the entire print pattern P. The master first contour binary data D2 stored in the first memory 5 is 1 with respect to the corresponding real data at the time of pattern matching.
Each line is read out, and its output E is supplied to the non-logical input terminal of the AND circuit 7. The master first contour binary data D2 stored in the first memory 5 is updated each time.

【0029】第1メモリ5に格納された前記印刷パター
ンPについての画像は図4(A)に示されている。同図
中X1〜X5は前記走査方向に対して直角に交差する方向に
沿う第1輪郭部分であり、同図中に斜め線を付して示す
領域部分Maは欠点検査において不感帯となる前記第1
輪郭部分X1〜X5に対する第1マスク領域を示している。
An image of the print pattern P stored in the first memory 5 is shown in FIG. 4 (A). In the figure, X1 to X5 are first contour portions along a direction intersecting at right angles to the scanning direction, and an area portion Ma shown by diagonal lines in the figure is the first zone which becomes a dead zone in defect inspection. 1
The first mask area for the contour portions X1 to X5 is shown.

【0030】第1差分処理回路8の出力端に接続された
第1リアル用比較器6は、前記第1輪郭データCを2値
化する。図2中S2は比較器6のしきい値(スレッショル
ドレベル)であり、このしきい値を境に第1輪郭データ
Cは2値化されてリアル用第1輪郭2値データFとな
る。前記しきい値S2のレベルは前記比較器10のしきい
値S1よりも低く設定されている。この比較器6の出力
(リアル用第1輪郭2値データF)はアンド回路7の他
の入力端子に供給される。このリアル用第1輪郭2値デ
ータFの供給とそれに対応する前記第1メモリ5からの
データの読み出しとは同期して行われる。
The first real comparator 6 connected to the output terminal of the first difference processing circuit 8 binarizes the first contour data C. In FIG. 2, S2 is a threshold value (threshold level) of the comparator 6, and the first contour data C is binarized at this threshold value to become the first real contour binary data F. The level of the threshold S2 is set lower than the threshold S1 of the comparator 10. The output of the comparator 6 (real first contour binary data F) is supplied to the other input terminal of the AND circuit 7. The supply of the real first contour binary data F and the reading of the corresponding data from the first memory 5 are performed in synchronization.

【0031】前記のようにしてアンド回路7には、輪郭
抽出後に第1リアル用比較器6で生成されたリアル用第
1輪郭2値データFが供給されるとともに、これとタイ
ミングを合わせて前記データFに対応するマスタ用第1
輪郭2値データEとが供給される。このアンド回路7
は、前記のようにして供給された同一の撮像信号につい
てのパターンマッチングを行い、それにより両パターン
間に異同がある場合にはマッチングパターン信号Gを出
力する。
As described above, the AND circuit 7 is supplied with the real first contour binary data F generated by the first real comparator 6 after the contour extraction, and at the same time with the timing, First for master corresponding to data F
The contour binary data E is supplied. This AND circuit 7
Performs pattern matching on the same image pickup signal supplied as described above, and outputs a matching pattern signal G when there is a difference between both patterns.

【0032】このマッチングパターン信号Gは第1サイ
ズ判定回路12に与えられる。この判定回路12はマッ
チングパターン信号Gに含まれる欠点対象についての大
きさを判定するものであり、前記欠点対象が所定の大き
さ以上である場合に、この欠点対象を欠点として判定す
るものである。この欠点判定は、その欠点パターンの幅
と走査方向の画素数を掛け算して得た面積の値を、基準
の面積値とを比較して判定を行う。
The matching pattern signal G is given to the first size judging circuit 12. The determination circuit 12 determines the size of a defect target included in the matching pattern signal G, and determines the defect target as a defect when the defect target is a predetermined size or more. . In this defect determination, the value of the area obtained by multiplying the width of the defect pattern by the number of pixels in the scanning direction is compared with the reference area value to make the determination.

【0033】第2マッチングパターン生成部2は、第2
輪郭抽出手段23と、第2マスク領域拡大手段24と、
第2メモリ25と、リアル用第2輪郭2値化手段として
の第2リアル用比較器26と、第2生成手段としての負
論理入力端子付きのアンド回路27とを備えている。
The second matching pattern generating section 2 has a second
A contour extracting means 23, a second mask area expanding means 24,
It is provided with a second memory 25, a second real comparator 26 as real second contour binarization means, and an AND circuit 27 with negative logic input terminal as second generation means.

【0034】第2輪郭抽出手段23は、例えば2つの入
力端を有した第2差分処理回路28の一方の入力端に、
複数例えば2個の1ラインメモリ29a,29bを直列
に接続してなる遅延部29を介して前記撮像信号Aを入
力されるとともに、他方の入力端に、遅延部29を通す
ことなく前記撮像信号Aが入力される構成である。
The second contour extracting means 23 has, for example, one input end of the second difference processing circuit 28 having two input ends,
A plurality of, for example, two 1-line memories 29a and 29b are connected in series, and the image pickup signal A is input through the delaying unit 29, and the image pickup signal is input to the other input terminal without passing through the delaying unit 29. This is a configuration in which A is input.

【0035】各ラインメモリ29a,29bは夫々1ラ
イン分の撮像信号を記憶し、その使用数に対応して走査
線の並び方向、換言すれば、走査線に対して直角に交差
する方向に時間的遅れを与えるもので、この実施例では
2ライン分の時間遅れ与える。第2差分処理回路28
は、遅延部29を通ることなく入力される撮像信号A
と、この信号Aに対して遅れて入力される遅延撮像信号
Bとの差を求める処理を行う。なお、この第2差分処理
回路28は図5に示された前記第1差分処理回路8と同
様の構成であり、絶対値を出力する。
Each of the line memories 29a and 29b stores an image pickup signal for one line, and the time is set in a direction in which the scanning lines are arranged, that is, in a direction intersecting the scanning lines at a right angle in accordance with the number of used signals. In this embodiment, a time delay of two lines is given. Second difference processing circuit 28
Is an image pickup signal A input without passing through the delay unit 29.
Then, a process for obtaining a difference from the delayed image pickup signal B input with a delay with respect to the signal A is performed. The second difference processing circuit 28 has the same configuration as the first difference processing circuit 8 shown in FIG. 5, and outputs an absolute value.

【0036】このような第1輪郭抽出手段23での処理
により、被検査パターンの輪郭について前記カメラの走
査方向に平行な第2輪郭部分が抽出される。詳しくは、
前記カメラの撮像に伴い撮像信号A1がそのまま第1差分
処理回路28に入力した時点から遅延部29で2ライン
分遅らされて、前記撮像信号A1が第1差分処理回路28
に入力される。そのため、この回路28は前記カメラの
走査方向に平行であって、互いに前記走査方向とは直角
に交差する方向に隣接するように並ぶ関係にある走査線
相互についての差を求める。
By the processing by the first contour extracting means 23, the second contour portion parallel to the scanning direction of the camera is extracted from the contour of the pattern to be inspected. For more information,
When the image pickup signal A1 is input to the first difference processing circuit 28 as it is taken by the camera, the delay unit 29 delays the image pickup signal A1 by two lines so that the image pickup signal A1 is transferred to the first difference processing circuit 28.
Entered in. Therefore, the circuit 28 finds a difference between scanning lines which are parallel to the scanning direction of the camera and are adjacent to each other in a direction intersecting each other at a right angle to the scanning direction.

【0037】この差分処理の結果において差がない場合
には、前記走査方向とは直角に交差する方向に並んだ走
査線の画素データ相互間には色差がないと判定され、ま
た、差が求められた場合には撮像信号の変化点としての
境界、換言すれば、前記走査方向とは直角に交差する方
向に並んだ走査線の画素データ相互間には色差があると
判定される。
If there is no difference in the result of this difference processing, it is determined that there is no color difference between the pixel data of the scanning lines arranged in the direction intersecting at right angles with the scanning direction, and the difference is obtained. In that case, it is determined that there is a color difference between the boundary as the change point of the image pickup signal, in other words, between the pixel data of the scanning lines arranged in the direction intersecting with the scanning direction at a right angle.

【0038】このようにして前記印刷パターンPについ
ての輪郭部分、換言すれば、印刷パターンPの輪郭につ
いて走査方向に対して直角に交差する第2輪郭部分が抽
出される。この輪郭部分は前記色差に応じた値(多値)
の第2輪郭データJとして、第2差分処理回路28から
第2マスク領域拡大手段24と第2リアル用比較器26
とに夫々供給される。
In this way, the contour portion of the print pattern P, in other words, the second contour portion which intersects the contour of the print pattern P at a right angle to the scanning direction is extracted. This contour part has a value (multivalue) corresponding to the color difference.
2nd contour data J of the second difference processing circuit 28 from the second mask area enlarging means 24 and the second real comparator 26.
And supplied respectively.

【0039】第2マスク領域拡大手段24は、マスタ用
第2輪郭2値化手段としての第2マスタ用比較器30
と、第2マスク領域拡大処理回路31とで形成されてい
る。第2マスク用比較器30の入力端は第2差分処理回
路28の出力端に接続され、これは前記第2輪郭データ
Jを2値化する。図2中S3は比較器30のしきい値(ス
レッショルドレベル)であり、このしきい値を境に第2
輪郭データJは2値化されてマスタ用第2輪郭2値デー
タK1となる。
The second mask area expanding means 24 is a second master comparator 30 as the second contour binarizing means for master.
And a second mask area expansion processing circuit 31. The input end of the second mask comparator 30 is connected to the output end of the second difference processing circuit 28, which binarizes the second contour data J. In FIG. 2, S3 is a threshold value (threshold level) of the comparator 30.
The contour data J is binarized to become the master second contour binary data K1.

【0040】第2マスク領域拡大処理回路31にはマス
タ用第2輪郭2値データK1が入力され、この回路31
は、供給された第2輪郭2値データK1に対して、信号を
遅らせたり早めたりする処理により第2輪郭2値データ
K1を時間軸方向に太らせて拡大したマスク領域を形成
し、それを第2輪郭2値データK1に与える。このように
マスク領域を拡大して与えることにより印刷物の位置精
度や印刷パターンPの印刷位置ずれ等の影響を少なくで
きる。
The second mask area enlargement processing circuit 31 is supplied with the master second contour binary data K1.
Is the second contour binary data by the processing of delaying or advancing the signal with respect to the supplied second contour binary data K1.
An enlarged mask region is formed by thickening K1 in the time axis direction, and the enlarged mask region is given to the second contour binary data K1. By enlarging and providing the mask area in this way, the influence of the positional accuracy of the printed matter, the print position shift of the print pattern P, and the like can be reduced.

【0041】第2メモリ25には第2マスク領域拡大手
段24の出力、つまり、前記第2輪郭データJについて
拡大マスク領域が与えられたマスタ用第2輪郭2値デー
タK2が供給される。この第2メモリ25は少なくとも前
記印刷パターンP全体についてのマスタ用第2輪郭2値
データK2を格納できる容量を有している。第2メモリ2
5は格納された前記マスタ用第2輪郭2値データK2は、
パターンマッチングの際に対応するリアルデータに対し
て1ライン分づつ読み出され、その出力Lはアンド回路
27の非論理入力端子に供給される。第2メモリ25に
格納されたマスタ用第2輪郭2値データK2は都度更新さ
れる。
The second memory 25 is supplied with the output of the second mask area enlarging means 24, that is, the master second contour binary data K2 to which the enlarging mask area is given for the second contour data J. The second memory 25 has a capacity capable of storing at least the master second contour binary data K2 for at least the entire print pattern P. Second memory 2
5 is the stored second contour binary data K2 for master,
At the time of pattern matching, the corresponding real data is read out line by line, and its output L is supplied to the non-logical input terminal of the AND circuit 27. The master second contour binary data K2 stored in the second memory 25 is updated each time.

【0042】第2メモリ25に格納された前記印刷パタ
ーンPについての画像は図4(B)に示されている。同
図中Y1〜Y5は前記走査方向に平行な方向に沿う第2輪郭
部分であり、同図中に斜め線を付して示す領域部分Mb
は欠点検査において不感帯となる前記第2輪郭部分Y1〜
Y5に対する第2マスク領域を示している。
An image of the print pattern P stored in the second memory 25 is shown in FIG. 4 (B). In the figure, Y1 to Y5 are second contour portions along a direction parallel to the scanning direction, and area portions Mb shown by oblique lines in the figure.
Indicates the second contour portion Y1 to be a dead zone in the defect inspection.
The second mask area for Y5 is shown.

【0043】第2差分処理回路28の出力端に接続され
た第2リアル用比較器26は、前記第2輪郭データJを
2値化する。図2中S4は比較器26のしきい値(スレッ
ショルドレベル)であり、このしきい値を境に第2輪郭
データJは2値化されてリアル用第2輪郭2値データN
となる。前記しきい値S4のレベルは前記比較器30のし
きい値S3よりも低く設定されている。この比較器26の
出力(リアル用第2輪郭2値データN)はアンド回路2
7の他の入力端子に供給される。このリアル用第2輪郭
2値データNの供給とそれに対応する前記第2メモリ2
5からのデータの読み出しとは同期して行われる。
The second real-purpose comparator 26 connected to the output terminal of the second difference processing circuit 28 binarizes the second contour data J. In FIG. 2, S4 is a threshold value (threshold level) of the comparator 26, and the second contour data J is binarized on the basis of this threshold value to obtain the real second contour binary data N.
Becomes The level of the threshold value S4 is set lower than the threshold value S3 of the comparator 30. The output of the comparator 26 (the second contour binary data N for real) is the AND circuit 2.
7 to the other input terminals. Supply of this real second contour binary data N and the corresponding second memory 2
The reading of data from 5 is performed in synchronization.

【0044】前記のようにしてアンド回路27には、輪
郭抽出後に第2リアル用比較器26で生成されたリアル
用第2輪郭2値データNが供給されるとともに、これと
タイミングを合わせて、前記データNに対応するマスタ
用第2輪郭2値データLとが供給される。このアンド回
路27は、前記のようにして供給された同一の撮像信号
についてパターンマッチングを行い、それにより両パタ
ーン間に異同がある場合にはマッチングパターン信号O
を出力する。
As described above, the AND circuit 27 is supplied with the real second contour binary data N generated by the second real comparator 26 after the contour extraction, and at the same time, The master second contour binary data L corresponding to the data N is supplied. The AND circuit 27 performs pattern matching on the same image pickup signal supplied as described above, and when there is a difference between the two patterns, the matching pattern signal O
Is output.

【0045】このマッチングパターン信号Oは第2サイ
ズ判定回路32に与えられる。この判定回路32はマッ
チングパターン信号Oに含まれる欠点対象についての大
きさを判定するものであり、前記欠点対象が所定の大き
さ以上である場合に、この欠点対象を欠点として判定す
るものである。なお、この欠点判定においては、その欠
点パターンの走査方向に沿う長さの画素数と走査方向に
直角な方向に沿う幅の画素数を90゜展開して掛け算して
得た面積を、基準の面積値を比較して判定を行うように
なっている。
The matching pattern signal O is given to the second size judging circuit 32. The determination circuit 32 determines the size of the defect target included in the matching pattern signal O, and determines the defect target as a defect when the defect target is equal to or larger than a predetermined size. . In this defect determination, the area obtained by multiplying the number of pixels of the length of the defect pattern along the scanning direction by the number of pixels of the width along the direction perpendicular to the scanning direction by 90 ° Judgment is made by comparing area values.

【0046】前記構成において、第1マッチングパター
ン生成部1は、既述のように第1輪郭抽出手段3で印刷
パターンPについてカメラの走査方向に対して交差する
第1輪郭部分X1〜X5を抽出した後、この第1輪郭部分X1
〜X5のみに、マスク領域拡大処理を行って第1輪郭部分
マスタパターン(図4A参照)を形成し、この第1輪郭
部分マスタパターンと前記第1輪郭部分X1〜X5について
のリアルデータとを比較して、前記被検査パターンPの
輪郭のうち前記走査方向に平行な第2輪郭部分Y1〜Y5に
ついてのマッチングパターン信号Gを生成する。
In the above structure, the first matching pattern generator 1 extracts the first contour portions X1 to X5 of the print pattern P by the first contour extracting means 3 as described above, which intersects the scanning direction of the camera. After this, this first contour part X1
To X5 only, mask area expansion processing is performed to form a first contour portion master pattern (see FIG. 4A), and this first contour portion master pattern is compared with real data for the first contour portions X1 to X5. Then, the matching pattern signal G for the second contour portions Y1 to Y5 parallel to the scanning direction among the contours of the pattern P to be inspected is generated.

【0047】ところで、図3の印刷パターンPの内側部
分に色度の変化がないので、前記第1輪郭抽出手段3で
の輪郭抽出においては、図4(A)に示されるように第
1輪郭部分X1〜X5間には輪郭パターンが形成されること
がなく、したがって、第1輪郭部分X1〜X5以外の部分に
拡大マスク処理が施されることがない。
By the way, since there is no change in chromaticity in the inner portion of the print pattern P in FIG. 3, in the contour extraction by the first contour extracting means 3, as shown in FIG. 4 (A), the first contour is extracted. No contour pattern is formed between the portions X1 to X5, and therefore the portion other than the first contour portions X1 to X5 is not subjected to the enlarging mask processing.

【0048】そのため、図3に示される印刷パターンP
において走査方向と平行な輪郭部分、例えばY1で示す第
2輪郭部分にある欠点Q1に対してはノーマスクとなるか
ら、この欠点Q1の情報を含むマッチングパターン信号G
を第1マッチングパターン生成部1により生成できる。
なお、この生成部1では、印刷パターンPにおいて走査
方向に直角に交差する輪郭部分、例えばX1で示す第1輪
郭部分にある欠点Q2については、第1輪郭部分X1につい
てのマスク領域Maで形成される不感帯領域に含まれる
から、これを検出することはできない。
Therefore, the print pattern P shown in FIG.
In this case, since the defect Q1 in the contour portion parallel to the scanning direction, for example, the second contour portion indicated by Y1 is a no mask, the matching pattern signal G including the information of this defect Q1 is used.
Can be generated by the first matching pattern generation unit 1.
In the generation unit 1, the defect Q2 in the contour portion intersecting the print pattern P at right angles to the scanning direction, for example, the first contour portion X1 is formed in the mask area Ma for the first contour portion X1. Since it is included in the dead zone region, it cannot be detected.

【0049】しかし、この欠点Q2の情報を含むマッチン
グパターン信号Oは第2マッチングパターン生成部2に
より生成できる。すなわち。第2マッチングパターン生
成部1は、既述のように第2輪郭抽出手段23で印刷パ
ターンPについてカメラの走査方向に平行な第2輪郭部
分Y1〜Y5を抽出した後、この第2輪郭部分Y1〜Y5のみ
に、マスク領域拡大処理を行って第2輪郭部分マスタパ
ターンを形成し、この第2輪郭部分マスタパターンと前
記第2輪郭部分Y1〜Y5についてのリアルデータとを比較
して、前記被検査パターンの輪郭のうち前記走査方向に
対して直角に交差する第1輪郭部分についてのマッチン
グパターン信号Oを生成する。
However, the matching pattern signal O including the information of this defect Q2 can be generated by the second matching pattern generating section 2. Ie. As described above, the second matching pattern generation unit 1 extracts the second contour portions Y1 to Y5 of the print pattern P by the second contour extraction means 23, which are parallel to the scanning direction of the camera, and then the second contour portion Y1. To Y5 only, a mask area expansion process is performed to form a second contour portion master pattern, and the second contour portion master pattern is compared with the real data of the second contour portions Y1 to Y5, and A matching pattern signal O is generated for the first contour portion of the contour of the inspection pattern that intersects the scanning direction at a right angle.

【0050】図3の印刷パターンPの内側部分に色度の
変化がないので、前記第2輪郭抽出手段23での輪郭抽
出においては、図4(B)に示されるように第2輪郭部
分Y1〜Y5間には輪郭パターンが形成されることがなく、
したがって、第2輪郭部分Y1〜Y5以外の部分に拡大マス
ク処理が施されることがない。
Since there is no change in the chromaticity in the inner part of the print pattern P in FIG. 3, the second contour part Y1 is extracted in the contour extraction by the second contour extracting means 23 as shown in FIG. 4 (B). No contour pattern is formed between ~ Y5,
Therefore, the enlarged mask processing is not applied to the portions other than the second contour portions Y1 to Y5.

【0051】そのため、図3に示される印刷パターンP
において走査方向に直角に交差する輪郭部分、例えばX1
で示される輪郭部分にある欠点Q2に対してはノーマスク
となるから、この欠点Q2の情報を含むマッチングパター
ン信号Oを第2マッチングパターン生成部2により生成
できる。なお、この生成部2では、印刷パターンPにお
いて走査方向に平行な輪郭部分、例えばY1にある欠点Q1
については、第2輪郭部分Y1についてのマスク領域Mb
で形成される不感帯領域に含まれるから、これを検出す
ることはできないが、この欠点Q1についてのマッチング
パターン信号Gは既述のように第1マッチングパターン
生成部1で生成できる。
Therefore, the print pattern P shown in FIG.
Contours that intersect at right angles to the scanning direction at, for example, X1
Since there is no mask for the defect Q2 in the contour portion indicated by, the matching pattern signal O including the information of this defect Q2 can be generated by the second matching pattern generation unit 2. In the generation unit 2, the defect Q1 in the contour portion parallel to the scanning direction in the print pattern P, for example, Y1.
For, the mask area Mb for the second contour portion Y1
Since it is included in the dead zone region formed by the above, it cannot be detected, but the matching pattern signal G for this defect Q1 can be generated by the first matching pattern generation unit 1 as described above.

【0052】また、以上の理由により、印刷パターンP
の内部にある欠点に対するマッチングパターン信号G,
Oを生成できることは勿論のこと、この印刷パターンP
の近傍に位置してマスク領域に含まれるような欠点に対
しても、それについてのマッチングパターン信号G,O
を生成できる。したがって、前記構成の装置により例え
ばバーコードの印刷品質を検査する場合のように印刷パ
ターンが近接して密になっている場合であっても、マス
ク領域内の欠点に対してのマッチングパターン信号を確
実に生成して、欠点検出に供することができる。
For the above reasons, the print pattern P
A matching pattern signal G for defects inside the
Not only can O be generated, but this print pattern P
Even if the defect is located in the vicinity of and is included in the mask region, the matching pattern signals G and O for the defect are included.
Can be generated. Therefore, even if the print patterns are close and dense as in the case of inspecting the print quality of a bar code by the device having the above-described configuration, the matching pattern signal for the defect in the mask area can be obtained. It can be reliably generated and used for defect detection.

【0053】前記一実施例では印刷パターンの掠れや欠
け等の欠け性の欠点には対処できないが、この場合には
図6のようにすればよい。つまり、第1マスタ用比較器
10の出力に対してマスク拡大処理を与えることなく、
前記出力(マスタ用第1輪郭2値データ)を第1メモリ
5に格納させるとともに、第1リアル用比較器6(な
お、そのしきい値S5のレベルは比較器10のしきい値S6
より大きい。)の出力(リアル用第1輪郭2値データ)
に第1マスク領域拡大処理回路11を介してアンド回路
7に与える。
In the above-mentioned one embodiment, it is not possible to deal with defects such as blurring and chipping of the print pattern, but in this case, it is sufficient to do as shown in FIG. That is, without applying mask expansion processing to the output of the first master comparator 10,
The output (master first contour binary data) is stored in the first memory 5, and the first real comparator 6 (the threshold value S5 is the threshold value S6 of the comparator 10).
Greater than ) Output (first contour binary data for real)
To the AND circuit 7 via the first mask area expansion processing circuit 11.

【0054】これと同様に、第2マスタ用比較器30の
出力(マスタ用第2輪郭2値データ)に対してもマスク
拡大処理を与えることなく、前記マスタ用第2輪郭2値
データを第2メモリ25に格納させるとともに、第2リ
アル用比較器26(なお、そのしきい値のレベルは比較
器30のしきい値より大きい。)の出力(リアル用第2
輪郭2値データ)に第2マスク領域拡大処理回路31を
介してアンド回路27に与える。なお、これらの点以外
の構成は前記一実施例と同じであるので、その説明を省
略する。このようにすることにより、欠け性の欠点に対
してのマッチングパターン信号を生成できる。また、本
発明は、図6に示された部分を前記第1実施例に付加し
た構成としてもよい。
Similarly, the output of the second master comparator 30 (master second contour binary data) is not subjected to the mask enlargement process, and the master second contour binary data is converted into the first second contour binary data. The second real-purpose comparator 26 (the threshold level thereof is higher than the threshold of the comparator 30) while being stored in the second memory 25 (the second real-purpose second).
The binary contour data) is given to the AND circuit 27 via the second mask area expansion processing circuit 31. The configuration other than these points is the same as that of the first embodiment, and therefore the description thereof is omitted. By doing so, it is possible to generate a matching pattern signal for the defect of chipping. Further, the present invention may have a configuration in which the portion shown in FIG. 6 is added to the first embodiment.

【0055】なお、本発明は前記各実施例に制約される
ものではなく、パターンマッチング検査を必要とするも
のにはすべて適用できる。また、前記各実施例におい
て、ディレーラインや1ラインメモリ等は他の遅延回路
を用いても良いとともに、各差分処理回路に代えて、微
分処理回路または空間フィルタを用いて輪郭抽出をして
も良い。
The present invention is not limited to the above-mentioned embodiments, but can be applied to all those requiring pattern matching inspection. Further, in each of the above-mentioned embodiments, the delay line, the one-line memory, etc. may use other delay circuits, and instead of each difference processing circuit, a differential processing circuit or a spatial filter may be used for contour extraction. good.

【0056】[0056]

【発明の効果】以上詳記したように請求項1に係る本発
明方法によれば、被検査パターンについて走査方向と交
差する第1輪郭部分と走査方向と平行な第2輪郭部分に
ついて夫々輪郭を抽出した後に、マスク拡大処理をして
夫々別々にパターンマッチングを行うことにより、一方
のパターンマッチングにおいてマスク領域に含まれる欠
点を、他方のパターンマッチングで前記マスク領域外に
位置させて、マスク領域内の欠点を含むマッチングパタ
ーン信号を生成できるから、被検査パターン相互が接近
していても、被検査パターンの輪郭上やその近傍にある
マスク領域内の欠点を検出するのに有効である。
As described in detail above, according to the method of the present invention according to claim 1, the contours of the first contour portion which intersects the scanning direction and the contour of the second contour portion which is parallel to the scanning direction are respectively contoured. After the extraction, mask enlargement processing is performed and pattern matching is performed separately, so that defects included in the mask area in one pattern matching are located outside the mask area in the other pattern matching, and Since it is possible to generate the matching pattern signal including the defect of (1), it is effective to detect the defect in the mask area on the contour of the pattern to be inspected or in the vicinity thereof even if the patterns to be inspected are close to each other.

【0057】そして、請求項2に係る本発明装置によれ
ば、前記方法を実施でき、それにより、被検査パターン
についてのマスク領域内の欠点を検出できるという、本
発明の所期の目的を達成できる。
According to the apparatus of the present invention as defined in claim 2, the method can be carried out, whereby the intended object of the present invention is to detect defects in the mask area for the pattern to be inspected. it can.

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

【図1】本発明の一実施例に係るマッチングパターン信
号生成装置の構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of a matching pattern signal generation device according to an embodiment of the present invention.

【図2】前記一実施例の各点における信号波形のタイム
チャート。
FIG. 2 is a time chart of a signal waveform at each point in the one embodiment.

【図3】被検査パターンの一例を示す図。FIG. 3 is a diagram showing an example of a pattern to be inspected.

【図4】(A)は図3に示された被検査パターンについ
て前記一実施例装置により形成された第1輪郭部分マス
タパターンの構成を示す図。(B)は図3に示された被
検査パターンについて前記一実施例装置により形成され
た第2輪郭部分マスタパターンの構成を示す図。
FIG. 4A is a diagram showing a configuration of a first contour portion master pattern formed by the apparatus of the one embodiment for the pattern to be inspected shown in FIG. FIG. 4B is a diagram showing a configuration of a second contour portion master pattern formed by the apparatus of the one embodiment for the pattern to be inspected shown in FIG.

【図5】同一実施例の差分処理回路の構成を示すブロッ
ク図。
FIG. 5 is a block diagram showing a configuration of a difference processing circuit of the same embodiment.

【図6】本発明の他の実施例に係るマッチングパターン
信号生成装置の一部の構成を示すブロック図。
FIG. 6 is a block diagram showing a partial configuration of a matching pattern signal generation device according to another embodiment of the present invention.

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

1…第1マッチングパターン生成部、 2…第2マッチ
ングパターン生成部、3…第1輪郭抽出手段、
4…第1マスク領域拡大手段、5…第1メモリ、
6…第1リアル用比較器、7…ア
ンド回路(第1生成手段)、 8…第1差分処理回
路、9…ディレーライン、 10…第1
マスク用比較器、11…第1マスク領域拡大処理回路、
12…第1サイズ判定回路、23…第2輪郭抽出手
段、 24…第2マスク領域拡大手段、25
…第2メモリ、 26…第2リアル用
比較器、27…アンド回路(第2生成手段)、 28…
第2差分処理回路、29…遅延部、
29a,29b…1ラインメモリ、30…第2マス
ク用比較器、 31…第2マスク領域拡大処理
回路、32…第2サイズ判定回路。
1 ... 1st matching pattern generation part, 2 ... 2nd matching pattern generation part, 3 ... 1st outline extraction means,
4 ... First mask area expanding means, 5 ... First memory,
6 ... 1st real comparator, 7 ... AND circuit (1st production | generation means), 8 ... 1st difference processing circuit, 9 ... Delay line, 10 ... 1st
Mask comparator 11, 11 ... First mask area expansion processing circuit,
12 ... First size determination circuit, 23 ... Second contour extraction means, 24 ... Second mask area expansion means, 25
... second memory, 26 ... second real comparator, 27 ... AND circuit (second generating means), 28 ...
Second difference processing circuit, 29 ... Delay unit,
29a, 29b ... 1 line memory, 30 ... 2nd mask comparator, 31 ... 2nd mask area expansion processing circuit, 32 ... 2nd size determination circuit.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】被検材の被検査パターンを撮像して得た撮
像信号をもとに、前記被検査パターンの輪郭について前
記撮像の走査方向に対し交差する第1輪郭部分に、マス
ク領域拡大処理を行って第1輪郭部分マスタパターンを
形成し、この第1輪郭部分マスタパターンと前記第1輪
郭部分についてのリアルデータとを比較して、前記被検
査パターンの輪郭のうち前記走査方向に平行な第2輪郭
部分についてのマッチングパターン信号を生成するとと
もに、 前記撮像信号をもとに前記第2輪郭部分に、マスク領域
拡大処理を行って第2輪郭部分マスタパターンを形成
し、この第2輪郭部分マスタパターンと前記第2輪郭部
分についてのリアルデータとを比較して、前記第1輪郭
部分についてのマッチングパターン信号を生成すること
を特徴とするパターンマッチング検査におけるマッチン
グパターン信号生成方法。
1. A mask area is enlarged in a first contour portion which intersects a scanning direction of the imaging with respect to a contour of the pattern to be inspected, based on an imaging signal obtained by imaging the pattern to be inspected of a material to be inspected. Processing is performed to form a first contour portion master pattern, and the first contour portion master pattern is compared with the real data of the first contour portion to parallelize the contours of the pattern to be inspected in the scanning direction. A matching pattern signal for the second contour portion is generated, and a mask area expansion process is performed on the second contour portion based on the imaging signal to form a second contour portion master pattern. It is characterized in that the partial master pattern is compared with the real data of the second contour portion to generate a matching pattern signal for the first contour portion. A matching pattern signal generation method in a pattern matching inspection.
【請求項2】撮像器により撮像された被検材の被検査パ
ターンについての撮像信号を処理して、前記被検査パタ
ーンの輪郭について前記撮像器の走査方向に対し交差す
る第1輪郭部分を抽出する第1輪郭抽出手段と、抽出さ
れた前記第1輪郭部分についての第1輪郭データに対し
てマスク領域を拡大して与える第1マスク拡大処理手段
と、この処理手段で処理された前記第1輪郭データを格
納する第1メモリと、前記第1輪郭抽出手段で抽出され
た前記第1輪郭部分についてのリアルデータと前記第1
メモリに格納されたデータとを比較して、前記被検査パ
ターンの輪郭のうち前記走査方向に平行な第2輪郭部分
についてのマッチングパターン信号を生成する第1生成
手段とを備えた第1マッチングパターン生成部と、 前記撮像器からの撮像信号を処理して前記第2輪郭部分
を抽出する第2輪郭抽出手段と、抽出された前記第2輪
郭部分についての第2輪郭データに対してマスク領域を
拡大して与える第2マスク拡大処理手段と、この処理手
段で処理された前記第2輪郭データを格納する第2メモ
リと、前記第2輪郭抽出手段で抽出された前記第2輪郭
部分についてのリアルデータと前記第2メモリに格納さ
れたデータとを比較して、前記第1輪郭部分についての
マッチングパターン信号を生成する第2生成手段とを備
えた第2マッチングパターン生成部と、 を具備したパターンマッチング検査におけるマッチング
パターン信号生成装置。
2. A first contour portion that intersects the scanning direction of the image pickup device with respect to the contour of the pattern to be inspected by processing an image pickup signal of the pattern to be inspected of the material to be inspected picked up by the image pickup device. First contour extracting means, first mask enlarging processing means for enlarging and providing a mask area with respect to the first contour data of the extracted first contour portion, and the first mask processed by the processing means. A first memory for storing contour data; real data on the first contour portion extracted by the first contour extracting means; and the first
A first matching pattern, which is compared with data stored in a memory to generate a matching pattern signal for a second contour portion of the contour of the pattern to be inspected, which is parallel to the scanning direction. A generation unit, second contour extraction means for processing the image pickup signal from the image pickup device to extract the second contour portion, and a mask area for the second contour data on the extracted second contour portion. Second mask enlarging processing means for enlarging and giving, second memory for storing the second contour data processed by this processing means, and real for the second contour portion extracted by the second contour extracting means. A second matching pattern including a second generation unit that compares the data with the data stored in the second memory to generate a matching pattern signal for the first contour portion. A matching pattern signal generation device for pattern matching inspection, comprising: a turn generation unit.
JP05360393A 1993-03-15 1993-03-15 Method and apparatus for generating matching pattern signal in pattern matching inspection Expired - Fee Related JP3267372B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05360393A JP3267372B2 (en) 1993-03-15 1993-03-15 Method and apparatus for generating matching pattern signal in pattern matching inspection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05360393A JP3267372B2 (en) 1993-03-15 1993-03-15 Method and apparatus for generating matching pattern signal in pattern matching inspection

Publications (2)

Publication Number Publication Date
JPH06265482A true JPH06265482A (en) 1994-09-22
JP3267372B2 JP3267372B2 (en) 2002-03-18

Family

ID=12947463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05360393A Expired - Fee Related JP3267372B2 (en) 1993-03-15 1993-03-15 Method and apparatus for generating matching pattern signal in pattern matching inspection

Country Status (1)

Country Link
JP (1) JP3267372B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002202586A (en) * 2000-12-28 2002-07-19 Toppan Printing Co Ltd Apparatus and method for measuring mask pattern shape, and recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002202586A (en) * 2000-12-28 2002-07-19 Toppan Printing Co Ltd Apparatus and method for measuring mask pattern shape, and recording medium
JP4714989B2 (en) * 2000-12-28 2011-07-06 凸版印刷株式会社 Mask pattern shape measuring apparatus, mask pattern shape measuring method, and recording medium

Also Published As

Publication number Publication date
JP3267372B2 (en) 2002-03-18

Similar Documents

Publication Publication Date Title
US5272763A (en) Apparatus for inspecting wiring pattern formed on a board
JPH05256796A (en) Inspecting system
IE61590B1 (en) Method and apparatus for detecting significant difference of sheet material
JP2005121546A (en) Defect inspection method
JP3265595B2 (en) Image processing method and apparatus
JPH02132564A (en) Image tester
JP3320164B2 (en) Printing inspection equipment
JP2002310937A (en) Method and apparatus for inspection of defect
JP3204876B2 (en) Print inspection equipment
JP2710527B2 (en) Inspection equipment for periodic patterns
JP3267372B2 (en) Method and apparatus for generating matching pattern signal in pattern matching inspection
JP2737484B2 (en) Wiring pattern inspection equipment
JP2003203218A (en) Visual inspection device and method
JPH06147855A (en) Image inspection method
JP4474006B2 (en) Inspection device
JP2991520B2 (en) Inspection device for print blur of printed matter
JPH0560536A (en) Wiring pattern inspection device
JP2850601B2 (en) Printed circuit board pattern inspection equipment
JP2676990B2 (en) Wiring pattern inspection equipment
JP2529505B2 (en) Wiring pattern inspection device
JP2003098117A (en) Apparatus for detecting defect of image and its defect detection method
JP2770637B2 (en) Pattern inspection equipment
JPH0569536A (en) Defect detecting method and defect detecting circuit in inspection device for printed matter
JPS6135303A (en) Pattern defect inspecting instrument
JP2634064B2 (en) Binarization device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees