JPS63674A - Pattern inspection method - Google Patents

Pattern inspection method

Info

Publication number
JPS63674A
JPS63674A JP62123916A JP12391687A JPS63674A JP S63674 A JPS63674 A JP S63674A JP 62123916 A JP62123916 A JP 62123916A JP 12391687 A JP12391687 A JP 12391687A JP S63674 A JPS63674 A JP S63674A
Authority
JP
Japan
Prior art keywords
pattern
circuit
window area
correlation
window
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
JP62123916A
Other languages
Japanese (ja)
Other versions
JPH033269B2 (en
Inventor
Michiaki Miyagawa
宮川 道明
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP62123916A priority Critical patent/JPS63674A/en
Publication of JPS63674A publication Critical patent/JPS63674A/en
Publication of JPH033269B2 publication Critical patent/JPH033269B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To stably inspect a pattern with high accuracy by using not only a measured data but also a correlation operation data between different window areas, for deciding whether the pattern is normal or defective. CONSTITUTION:A part of a pattern 20 is seen through each of window areas 21-27. First of all, the electric signal of a time series obtained by bringing an object pattern 50 to image pickup by an ITV camera 51 is binary-coded and divided into picture elements (dots) by a binarization/picture element dividing circuit 52, and a feature extracting circuit 53 receives a dot signal from the dividing circuit 52 and extracts its feature. Subsequently, a secondary decision processing by a feature quantity data measured directly through the window area, and a correlation secondary decision processing by a correlation operation data obtained by working a measured data area executed, and when a result shows a non-defective by one of them, an overall deciding circuit 62 outputs the result of decision as a non-defective.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、検査対象パターンの良否を判定するパターン
検査方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a pattern inspection method for determining the quality of a pattern to be inspected.

〔従来の技術〕[Conventional technology]

第9図(a) 、 (b)は、それぞれテンプレートマ
ツチング方式と称される従来のパターン検査方法の原理
説明図である。同図において、1と1′はそれぞれ検査
対象パターン、2〜8はそれぞれ十印で示されたサンプ
リングポイント、である。
FIGS. 9(a) and 9(b) are diagrams explaining the principle of a conventional pattern inspection method called a template matching method, respectively. In the figure, 1 and 1' are patterns to be inspected, respectively, and 2 to 8 are sampling points indicated by cross marks.

第9図(a)において、検査対象パターン1が文字の8
であったとする。このとき、図示せざるテンプレートを
用いて、サンプリングポイント2〜8を図示の如く定め
、各ポイントにおけるパターンの有無を検査する。例え
ばパターン有ならば論理1、パターン無ならば論理0と
し、2〜8の各ポイントにおける検査結果をコード化し
、そのコードから検査対象パターンが既知のどのパター
ンに分類されるかを認識゛するのである。
In FIG. 9(a), the pattern to be inspected 1 is the character 8.
Suppose it was. At this time, using a template (not shown), sampling points 2 to 8 are determined as shown in the drawing, and the presence or absence of a pattern at each point is inspected. For example, if there is a pattern, it is set to logic 1, if there is no pattern, it is set to logic 0, the inspection results at each point 2 to 8 are coded, and from that code it is recognized which known pattern the pattern to be inspected is classified into. be.

第9図(a)においては、ポイント2〜8の何れにおい
ても検査結果は有(論理1)であシ、この場合、検査対
象パターン1は文字の8であると認識する。第9図(b
)においては、ポイント8のみがパターン無(論理0)
で、この場合は、文字の0のパターンであると予め判定
のアルゴリズムを定めておき、それに従って0と認識す
る。
In FIG. 9(a), the test result is positive (logical 1) at any of points 2 to 8, and in this case, the test target pattern 1 is recognized as the character 8. Figure 9 (b
), only point 8 has no pattern (logical 0)
In this case, an algorithm for determining that the pattern is a character 0 is determined in advance, and the character is recognized as 0 according to the algorithm.

このようなテンプレートマツチングによるパターン検査
方法は、吟味すべき情報が圧縮されていて少ない(サン
プリングポイントにおけるパターンの有無のみ)こと、
吟味した結果によるパターンのクラス分けが容易である
こと、等の利点があシ、0CR(光学文字読取rJ)の
ように、検査対象となる未知のパターンを、標準(既知
)パターンの中のどれに相当するものかを判定して分類
すれば足シるというようなパターン認識装置に用いれば
有効であることが知られている。
In this pattern inspection method using template matching, the information to be examined is compressed and small (only the presence or absence of a pattern at a sampling point);
It has the advantage that it is easy to classify patterns based on the results of examination, and it is easy to classify an unknown pattern to be inspected into a standard (known) pattern, such as OCR (optical character reader rJ). It is known that it is effective if used in a pattern recognition device that can perform classification by determining whether the pattern corresponds to a pattern.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら、テンプレートマツチング法をパターン検
査方法に応用すると、いくつかの問題点が出てくる。そ
の一つは、パターンの良否検査に於ては、サンプリング
ポイントを拡張した窓領域を考え、該窓領域内にパター
ンが存在するか否かで判定すると、類似ではあるが不良
のパターンを良品と誤判定すると云う致命的な欠陥があ
ることでらる。なぜならば、パターンが存在するか否か
という2者択一の方式では、窓領域内にパターンが存在
しなかったときは不良と判定するが、パターンが存在し
たけれども、その大きさが良品と異なっていた場合には
、不良と判定することができないからである。
However, when the template matching method is applied to a pattern inspection method, several problems arise. One of them is that when testing the quality of a pattern, we consider a window area that extends the sampling point, and if we judge whether or not a pattern exists within the window area, we can identify a similar but defective pattern as a good item. This is because there is a fatal flaw that causes false judgments. This is because in the binary method of determining whether a pattern exists or not, if a pattern does not exist within the window area, it is determined to be defective, but even though a pattern exists, its size is different from that of a non-defective product. This is because if the product is found to be defective, it cannot be determined that the product is defective.

一般に印刷されているようなパターンでは、窓領域に占
めるパターン部分の面積が、場所により大きく異なるな
ど、それぞれの窓領域において、パターン部分に特数(
この場合、面積の大小)があるので、この特叙を抽出し
て計測しなければ正しいパターン検査は出来ない。
In general printed patterns, the area occupied by the pattern part in the window area varies greatly depending on the location, and in each window area, the pattern part has a special number (
In this case, since there are large and small areas), correct pattern inspection cannot be performed unless this special feature is extracted and measured.

本発明は、上述のような従来の技術的事情にかんがみな
されたものであり、従って本発明の目的は、テンプレー
トマツチング法の原理にのっとりながら、それを発展さ
せて、−般の印刷パターンなどをも正しく検査すること
のできるパターン検査方法を提供することにある。
The present invention has been made in view of the above-mentioned conventional technical circumstances, and therefore, an object of the present invention is to develop the template matching method based on the principle of the template matching method, and to apply it to general printing patterns, etc. It is an object of the present invention to provide a pattern inspection method that can also correctly inspect patterns.

〔問題点を解決するための手段〕[Means for solving problems]

二次元逐次走査形光電変換装置の視野内に複数個の窓領
域を設定するとともに各窓領域の組合せを予じめ設定し
ておき、各窓領域に対応する2[化信号から各窓領域内
での被検査対象パターンの成る特数量を計測し、同じ組
に属する各窓領域の特数量を相関演算し、該相関演算の
結果に基づいて被検査対象パターンの良否を判定する。
A plurality of window areas are set within the field of view of the two-dimensional sequential scanning photoelectric conversion device, and a combination of each window area is set in advance. The special quantity of the pattern to be inspected is measured, the special quantity of each window region belonging to the same group is calculated by correlation, and the quality of the pattern to be inspected is determined based on the result of the correlation calculation.

〔作用〕[Effect]

先ず検査対象パターンを二次元逐次走査形光電変換装置
(例えば工業用テレビカメラ)を用い撮偉して得られる
時系列の電気信号を処理してパターンの良否を判定する
ものであるが、テレビカメラの視野内に、複数(−般に
は多数)の窓領域を電気的手段などにより設定し、各窓
領域からみたパターン部分の特徴を量的に抽出する。
First, the pattern to be inspected is photographed using a two-dimensional sequential scanning photoelectric conversion device (for example, an industrial television camera), and the obtained time-series electrical signals are processed to determine the quality of the pattern. A plurality (generally a large number) of window regions are set within the field of view by electrical means or the like, and the features of the pattern portion viewed from each window region are quantitatively extracted.

検査対象パターンが良品であっても、カメラ視野内で所
定の位置からずれていたシすると、予め定められた窓領
域を通して抽出された特数量が所定のしきい呟範囲内に
収まらないことがラシ、その結果、判定結果は不良と出
る。しかし、パターンは少し隣りへずれただけなのであ
るから、所定の窓領域を通して検出された特数量と、そ
の隣りの窓領域を通して検出された%漱証との相関をと
れば(この場合、相関とは加算、減算など)、得られた
相関量は所定のしきい匝範囲内に収まり判定結果は良と
出る。このような考え方に立って、関連のある適当な窓
領域の組合せを定め、その間で各特@量の演算加工(例
えば加算)を行ない、加工結果について判定(これを相
関判定と云う)を行ない、その結果により良否を判定す
る。
Even if the pattern to be inspected is a good product, if it deviates from the predetermined position within the camera field of view, the special quantity extracted through the predetermined window area may not fall within the predetermined threshold range. , As a result, the judgment result is defective. However, since the pattern is only slightly shifted to the adjacent one, if we take the correlation between the special quantity detected through a given window area and the % value detected through the adjacent window area (in this case, the correlation and (addition, subtraction, etc.), the obtained correlation amount falls within a predetermined threshold range, and the judgment result is good. Based on this idea, we determine appropriate combinations of related window areas, perform arithmetic processing (for example, addition) on each special @ quantity between them, and make judgments about the processing results (this is called correlation judgment). , and determine whether the product is good or bad based on the results.

とのように相関判定を行なうことにより検査対象パター
ンの良否を判定している。なお、窓領域の形状、大きさ
等については、検査対象パターンに従って任意適宜に定
めるもので、長方形などに限るものではない。また窓領
域を通して抽出する特数量としても、窓領域内のパター
ン部分の面積のほか、パターン部分の周囲長、その他を
用いうろことは勿論である。
The quality of the pattern to be inspected is determined by performing a correlation determination as shown in FIG. Note that the shape, size, etc. of the window area may be determined arbitrarily and appropriately according to the pattern to be inspected, and are not limited to a rectangle or the like. Further, as the special quantity extracted through the window area, in addition to the area of the pattern part within the window area, the circumferential length of the pattern part, and other scales may be used.

〔実施例〕〔Example〕

次に図を参照して本発明の詳細な説明する。 The present invention will now be described in detail with reference to the drawings.

第2図(a)は、本発明における窓領域の設定例を示す
説明図であシ、第2図(b)は検査対象パターンの一例
の説明図であυ、第2図(c)は窓領域を通して見たパ
ターンの説明図である。
FIG. 2(a) is an explanatory diagram showing an example of setting a window area in the present invention, FIG. 2(b) is an explanatory diagram of an example of a pattern to be inspected, and FIG. FIG. 3 is an explanatory diagram of a pattern seen through a window area.

これらの図において、21〜27はそれぞれ短冊形の窓
領域であシ、20は検査対象のパターン(文字の8)で
ある。第2図(C)に見られるように、窓領域21〜2
7のそれぞれを通して、パターン20の一部分が見られ
る。
In these figures, 21 to 27 are rectangular window areas, and 20 is a pattern to be inspected (letter 8). As seen in FIG. 2(C), window areas 21-2
7, a portion of pattern 20 is visible.

第6図は窓領域の他の設定例を示す説明図である。同図
においては、第2図(a)に示したのと同じ窓領域21
〜27の外側に、31〜36の各窓領域を、また内側に
、41〜48の各窓領域を設定しておシ、パターンの配
置がずれた場合などにおいて、中央の窓領域(21〜2
7)と外側または内側の窓領域の間で相関をとることが
可能な構成になっている。
FIG. 6 is an explanatory diagram showing another example of setting the window area. In the same figure, the same window area 21 as shown in FIG. 2(a) is shown.
The window areas 31 to 36 are set outside of 27, and the window areas 41 to 48 are set inside. However, if the pattern is misaligned, the window areas 21 to 36 in the center 2
7) and the outside or inside window area.

第1図は本発明の一実施例を示すブロック図である。同
図において、50は検査対象パターン、51は工業用テ
レビカメラ(I’rVカメラ)、52は2匝化・画素分
割回路、53.53’はそれぞれ特徴抽出回路、54.
54’はそれぞれ計数回路、55は計数直記憶回路、5
6は一次判定回路、57は二次判定回路、58は相関判
定要否回路、59は相関演算回路、60は相関−次判定
回路、61は相関二次判定回路、62は総会判定回路、
63は窓領域発生回路、64は制御回路、65は設定値
記憶回路、66はキーボード、である。
FIG. 1 is a block diagram showing one embodiment of the present invention. In the figure, 50 is a pattern to be inspected, 51 is an industrial television camera (I'rV camera), 52 is a 2-cell conversion/pixel division circuit, 53 and 53' are feature extraction circuits, and 54.
54' is a counting circuit, 55 is a counting direct memory circuit, 5
6 is a primary determination circuit, 57 is a secondary determination circuit, 58 is a correlation determination necessity circuit, 59 is a correlation calculation circuit, 60 is a correlation-order determination circuit, 61 is a correlation secondary determination circuit, 62 is a general assembly determination circuit,
63 is a window area generation circuit, 64 is a control circuit, 65 is a set value storage circuit, and 66 is a keyboard.

次に動作の概要を説明する。先ず対象パターン50をI
TVカメラ51により撮像して得られる時系列の電気信
号を21i化・fiiiI素分割回路52において2唾
化し、かつ画素(ドツト)に分割する。
Next, an overview of the operation will be explained. First, the target pattern 50 is
A time-series electrical signal obtained by imaging with a TV camera 51 is divided into two in a 21i/fiii element division circuit 52 and divided into pixels (dots).

通常は、一画面分の電気信号を水平X軸方向に620個
、垂直Y軸方向に240個、全部で約7萬7千個位のド
ツトに分割する。特徴抽出回路53は、分割回路52か
らのドツト信号を受け、その特徴を抽出する。例えば特
徴が単に面積の大小でめったとすると、ドツト信号の白
なら白、黒なら黒に着目してそのドツト信号口の部分の
横方向水平定食時の長さくドツトの数)を次の計数回路
54で計数してゆくことにより面積が求まる(つまシ長
さの集合により面積を求める)。53′は面積以外の別
な特徴を抽出する回路、例えば白と黒の境界長を検出す
る場合だとすると、その境界点を抽出する回路であり、
次の計数回路54′によって境界点の数を計数すること
により境界長が求まる。なお、窓領域発生回路63から
発生される窓領域信号の制御のもとに計数回路54.5
4’は計数動作を行なうので、GF数結果は、各窓領域
について抽出された特@量ということになシ、とれが窓
領域の番号と特欧項目毎に整理されて記憶回路55に一
旦記憶される。窓領域発生回路65は、キーボード66
から設定は記憶回路65に入力されたデータをもとに偏
集された任意の形状の多数の窓領域を表わす信号を発生
し出力することができる。
Normally, one screen's worth of electrical signals is divided into 620 dots in the horizontal X-axis direction and 240 dots in the vertical Y-axis direction, for a total of about 77,000 dots. The feature extraction circuit 53 receives the dot signal from the division circuit 52 and extracts its features. For example, if the characteristic is simply the size of the area, focus on the white dot signal, or the black dot signal, and calculate the length (number of dots) of the dot signal opening in the lateral and horizontal settings using the following counting circuit. The area is determined by counting at step 54 (the area is determined by a set of the lengths of the tabs). 53' is a circuit for extracting features other than area; for example, when detecting the boundary length between black and white, it is a circuit for extracting the boundary point;
The boundary length is determined by counting the number of boundary points by the next counting circuit 54'. Note that under the control of the window area signal generated from the window area generating circuit 63, the counting circuit 54.5
4' performs a counting operation, so the GF number results are not necessarily the special quantities extracted for each window area, but are organized by window area number and special item and stored in the memory circuit 55 once. be remembered. The window area generation circuit 65 is connected to the keyboard 66
Based on the data input to the memory circuit 65, the settings can generate and output signals representing a large number of concentrated window areas of arbitrary shapes.

さてITVカメラ51による1フイールドの走査が完了
すると、容態領域毎の特徴データの計測および記憶が完
了するので、これらの特徴データをもとに、以下の回路
56〜65により、対象パターンの良否を判定する。
Now, when the scanning of one field by the ITV camera 51 is completed, the measurement and storage of characteristic data for each condition area is completed, and based on these characteristic data, the following circuits 56 to 65 determine whether the target pattern is good or bad. judge.

記憶回路55から読出された各窓領域毎の特徴データは
、−次判定回路56において、各窓領域毎、特徴毎に設
定された上限設定値αij、下限設定唾βij(但し、
iは特徴の種類を表わし、jは窓領域の番号を示す)と
比較され、上限と下限の範囲(しきい呟範囲)内にある
か否かの一次判定がなされる。特徴項目最についての判
定処理動作を具体的に説明する。
The feature data for each window area read out from the memory circuit 55 is processed by the next determination circuit 56 to an upper limit setting value αij and a lower limit setting value βij set for each window area and each feature (however,
(i represents the type of feature and j represents the number of the window area), and a primary determination is made as to whether or not it is within the upper and lower limit range (threshold range). The determination processing operation for the feature item number one will be specifically explained.

一次判定回路56は、特徴項目i(例えば面状なら面積
の大小)についての窓領域jにおけるデータDBjが上
限設定値αij、下限設定値β1jの範囲内にあるか否
かを調べて一次判定を行なうが、これを全窓領域につい
て実施する。−次判定結果は、上下限しきい匝の範囲内
にあれば論理1、範囲外にあれば論理0と表わされる。
The primary determination circuit 56 performs a primary determination by checking whether data DBj in the window area j regarding the feature item i (for example, the size of the area in the case of a planar shape) is within the range of the upper limit setting value αij and the lower limit setting value β1j. However, this is performed for the entire window area. - The next determination result is expressed as logic 1 if it is within the range of the upper and lower thresholds, and logic 0 if it is outside the range.

なお上下限しきい値は、窓領域毎、%欲項目毎に適切な
ものを選択することが可能でア)、これらのしきい値デ
ータはキーボード66から入力されて設定値記憶回路6
5に記憶されているので、−次判定回路56はこれを読
出して使用する。
The upper and lower thresholds can be selected appropriately for each window area and each % desire item.A) These threshold data are input from the keyboard 66 and stored in the set value storage circuit 6.
5, the -next determination circuit 56 reads and uses this.

−般に検査対象パターンは、N個(Nは任意の整数)の
小パターンから構成されると考えて良いことが多いので
、各窓領域はN個の小パターンに対応するようにN個の
グループにまとめられる。
- In general, the pattern to be inspected can be considered to be composed of N small patterns (N is an arbitrary integer), so each window area has N small patterns corresponding to N small patterns. organized into groups.

例えば検査対象パターンがrA B CDJであったと
すれば、これは4個の小パターン(各文字がそれぞれ小
パターンを構成する)から成るものと考える。なお小パ
ターンは、必ずしも1文字単位、1図形単位で構成され
るものではなく、複数文字単位で構成されるときもある
For example, if the pattern to be inspected is rA B CDJ, it is considered that it consists of four small patterns (each character constitutes a small pattern). Note that the small pattern is not necessarily composed of one character or one figure, but may be composed of multiple characters.

グループ化された窓領域番号の胆合せはキーボード66
を用いて入力され設定値記憶回路65に記憶される。二
次判定回路57は、グループ化された窓領域番号の組合
せを記憶回路65から読出し、これに従って一次判定回
路56からの各窓領域毎の一次判定結果をグループに分
ける。次に二次判定回路57は、グループ分けされた一
次判定結果を、設定値記憶回路65から続出した一次判
定テーブルと比較照合することにより、グループとして
の良否を判定する。なお−次判定テーブルは、対象パタ
ーン毎に予め求めて設定値記憶回路65に記憶させてお
くものである。
Keyboard 66 for grouped window area numbers
and stored in the set value storage circuit 65. The secondary determination circuit 57 reads out the grouped combinations of window area numbers from the storage circuit 65, and divides the primary determination results for each window area from the primary determination circuit 56 into groups accordingly. Next, the secondary determination circuit 57 compares and collates the grouped primary determination results with the primary determination table sequentially output from the set value storage circuit 65, thereby determining the quality of the group. Note that the next determination table is determined in advance for each target pattern and stored in the set value storage circuit 65.

第6図に示したように設定された窓領域を用い、数字の
8(第2図6)と7をそれぞれ対象パターンとしたとき
の一次判定テーブルを第4図に示す。
FIG. 4 shows a primary determination table when the window areas set as shown in FIG. 6 are used and the numbers 8 (FIG. 2 6) and 7 are used as target patterns.

対象パターンが数字の8であるときは、−次判定テーブ
ルは、窓領域番号の順に配列されたコード化データ(1
1111110・・・・・・0〕でオシ、数字の7であ
るときはC1110000・・・・・・0〕であること
が第4図から理解されるであろう。
When the target pattern is the number 8, the -th order determination table is the coded data (1
1111110...0] and the number 7 is C1110000...0]. It will be understood from FIG.

二次判定回路57による二次判定操作は全グループにつ
いて行なわれる。グループとしての二次判定が不良(N
G)であったときは、相関判定安否回路58において相
関判定の要否を決める。相関判定要否回路58は、予め
設定されている種々の条件に従って、成る場合には相関
判定要と決定し、成る場合には、それには及ばない(つ
まシ否)と決定する。相関判定安となったときには、本
発明が適用されて相関演算回路59が、設定された窓領
域の組合せ(この組合せに関するデータはやはシ記憶回
路65から続出して得る)について、抽出された特徴デ
ータの演算(例えば窓領域21のデータと窓領域31の
データとを加算)を行ない、その結果を新データDCj
kとして出力する。
The secondary determination operation by the secondary determination circuit 57 is performed for all groups. Poor secondary judgment as a group (N
G), the correlation determination safety circuit 58 determines whether correlation determination is necessary. The correlation determination necessity circuit 58 determines that a correlation determination is necessary if the condition is met, and determines that the correlation determination is not necessary, if it is true, according to various preset conditions. When the correlation judgment is low, the present invention is applied and the correlation calculation circuit 59 extracts data for the set combination of window areas (data regarding this combination is subsequently obtained from the storage circuit 65). Calculate the feature data (for example, add the data of the window area 21 and the data of the window area 31), and use the result as new data DCj.
Output as k.

演算により得られた新データDCjkは相関−次判定回
路60へ送られ、ここで、設定値記憶回路65よシ続出
された上限設定置αC4K’:下限投定呟βCjkの範
囲内にあるか否かの相関−次判定がなされ、範囲内にあ
れば論理1、範囲外であれで論理Oが出力される。かか
る相関−次判定処理は指定された全ての窓領域の組合せ
について行なわれる。
The new data DCjk obtained by the calculation is sent to the correlation-next determination circuit 60, where it is determined whether or not the upper limit setting value αC4K' is within the range of the lower limit setting value βCjk successively outputted by the setting value storage circuit 65. A correlation-order determination is made, and if it is within the range, a logic 1 is output, and if it is outside the range, a logic O is output. Such correlation-order determination processing is performed for all specified combinations of window areas.

次に相関二次判定回路61では、回路60からの相関−
軟判定結果と、設定値記憶回路65から読出した相関−
次判定テーブルとを比較照合することにより相関二次判
定を行ない、−致していれば当該グループの当該特徴項
目についての判定は良となる。
Next, in the correlation secondary determination circuit 61, the correlation -
Correlation between the soft decision result and the set value storage circuit 65
A correlation secondary determination is performed by comparing and collating with the next determination table, and if -, the determination for the feature item of the group is good.

第3図に示した如く設定された窓領域を用い、数字の8
が、第2図(c)に示した窓領域との相対位置から、若
干上方へずれた場合に求められる相関−次判定テーブル
を一例として第5図に示す。第5図において、パターン
8が少し上へずれたため、窓領域21単独では特徴抽出
社が少なく、データは論理1に々ることかできないで論
理0にとどまっており、他方、窓領域21と31の特徴
量の和により、ようやくデータは論理1になっているこ
とが理解されるであろう。窓領域24.27についても
それぞれ同じことが云える。相関−次判定テーブルも予
めこれを求めてキーボード66によって設定値記憶回路
65に記憶しておくものであることは、先に説明した一
次判定テーブルの場合と同じである。
Using the window area set as shown in Figure 3, the number 8
FIG. 5 shows an example of a correlation-order determination table obtained when the position is slightly upwardly shifted from the relative position with respect to the window area shown in FIG. 2(c). In FIG. 5, since the pattern 8 has shifted slightly upward, there are few features extracted in the window area 21 alone, and the data cannot reach logic 1 and remains at logic 0. On the other hand, window areas 21 and 31 It will be understood that the data finally becomes logical 1 by the sum of the feature quantities. The same holds true for the window areas 24, 27, respectively. The correlation-secondary judgment table is also obtained in advance and stored in the set value storage circuit 65 using the keyboard 66, as in the case of the first-order judgment table described above.

以上により結局、窓領域を通して直接計測した特徴量デ
ータによる二次判定処理と、計測データを加工して得ら
れる相関演算データによる相関二次判定処理を行ない、
そのどちらか−方で結果が良品と出れば、総合判定回路
62は良品という判定結果を出力することになる。
As a result of the above, secondary judgment processing using feature data directly measured through the window area and correlation secondary judgment processing using correlation calculation data obtained by processing the measurement data are performed.
If either of the results shows that the product is good, the comprehensive judgment circuit 62 outputs the judgment result that the product is good.

第6図に、第1図に示した実施例の動作機いを、@7図
に動作の詳細をそれぞれ流れ図として示した。なお第7
図では、窓領域のことを単にウィンドと表現している。
FIG. 6 shows the operating mechanism of the embodiment shown in FIG. 1, and FIG. 7 shows the details of the operation as a flowchart. Furthermore, the seventh
In the figure, the window area is simply expressed as a window.

以上に述べた実m例の説明では、窓領域の形状を長方形
として説明したが、そのほか四角形、五角形、口角多角
形、円形、環形等、任意の形状であってよく、特に検査
対象パターンが文字でなく図形であるような場合には、
それに適した形状の窓領域を選択することが大切である
In the explanation of the actual examples described above, the shape of the window area was explained as a rectangle, but it may be any other shape such as a quadrangle, a pentagon, a mouth corner polygon, a circle, an annular shape, etc. In particular, the pattern to be inspected is a character. If it is a figure instead of
It is important to select a window area with an appropriate shape.

また前記実施例の説明では、相関判定処理を行なう際、
相関二次判定時に、相関−次判定結果だけを用いて行な
うように説明したが、相関−次判定偕果のほかに、−次
判定結果を参照して行なうこともできる。また、相関演
算として加算の例を説明したが、パターン条件によって
は差や比をとるとメリットが出るケースもある。次に前
記実施例では特徴項目iだけの相関をとったが、パター
ンの条件によっては異なる特徴項目同志の相関をとると
著るしいメリットがあることもある。このようなケース
の動作フローチャートを第8図に示す。
Furthermore, in the description of the embodiment, when performing the correlation determination process,
Although it has been described that the correlation secondary determination is performed using only the correlation-order determination result, the correlation-order determination result may also be referred to in addition to the correlation-order determination result. Furthermore, although an example of addition has been described as a correlation operation, depending on the pattern conditions, there may be cases where it is advantageous to take a difference or ratio. Next, in the embodiment described above, correlations were taken only for feature item i, but depending on the conditions of the pattern, there may be a significant advantage in taking correlations between different feature items. An operational flowchart for such a case is shown in FIG.

尚、以上の説明では特徴項目として面積と境界長につい
て説明したが、交点・端点・弧丘点・斜線等積々の局部
面情報を採用できる。
In the above description, area and boundary length have been described as feature items, but local surface information such as intersections, end points, arcuate points, diagonal lines, etc. can also be used.

以上、述べたように実施例の装置では、対象ノくターン
によって窓領域の形状、位置、数等の条件、各槌しきい
呟、相関条件、各種判定条件等がキーボード入力によ多
自由に記憶回路に設定できる様になっている。従って、
従来パターン検査装置は対象パターンによってハードや
アルゴリズムが著るしく異なシ景産性に乏しかったが、
実施例の装置では検査対象となるパターンの変更に対す
る適応力を著しく高くしており、従って量産可能な講成
となっている。
As described above, in the device of the embodiment, conditions such as the shape, position, number, etc. of the window area, each hammer threshold, correlation conditions, various judgment conditions, etc. can be freely entered by keyboard input depending on the target turn. It can be set in the memory circuit. Therefore,
Conventional pattern inspection equipment had poor productivity as the hardware and algorithms differed significantly depending on the target pattern.
The apparatus of this embodiment has extremely high adaptability to changes in the pattern to be inspected, and therefore can be mass-produced.

〔発明の効果〕〔Effect of the invention〕

次に本発明の効果について述べる。 Next, the effects of the present invention will be described.

■ 窓領域が、従来のようにパターン成分が存在する場
所だ番プでなく、第3図において31〜48に示したよ
うに、パターンの存在しない領域にも設定できる。従っ
て従来不可能であった〔検査パターン=良品パターン+
α〕のような場合に対しても容易に不良は不良と判定で
きる。
(2) Window areas can be set in areas where no pattern exists, as shown at 31 to 48 in FIG. 3, instead of in areas where pattern components exist as in the conventional method. Therefore, it was previously impossible [inspection pattern = non-defective pattern +
[alpha]] can also be easily determined to be defective.

■ 窓領域をグループ化し、グループ毎に独立して判定
することができるので、良品サンプルでの部位によるバ
ラツキ(微小位置ずれや濃度変化)があったときにもム
ダバネ(良品を不良品と見誤る)が少なくなる。
■ Window areas can be grouped and each group can be judged independently, so even when there are variations (minor positional deviations or density changes) in good samples, there is no waste spring (mistaking a good product as a defective one). ) will decrease.

■ パターンの良否判定に、計測したデータだけを用い
るのでなく、異なる窓領域間での相関演算データをも用
いることによりパターンを高精度に、かつ安定に検査で
きる。とくに良品サンプルにおいて部位や搬送条件等に
より計測値の絶対匝が変化することが比較的多い場合が
ある。このようなときは計測瞭を上下限値で比較する方
式ではムダバネが多いか、もしくは不良検出率が悪くな
る。しかし、このような条件下でも「異なる窓領域の計
測直の相対比が一定」であったシ、「異なる窓領域の計
測喧の会計が一定」であったり、「異なる窓領域の計測
匝の差をとるとパターンの変化が明確になる」などの関
係が存在することが多いから、このような条件を利用し
て高精度の検査を行うことができる。
(2) Patterns can be inspected with high precision and stability by using not only measured data but also correlation calculation data between different window areas to determine whether a pattern is acceptable or not. In particular, in non-defective samples, the absolute value of the measured value often changes depending on the location, transportation conditions, etc. In such a case, the method of comparing measurement accuracy using upper and lower limit values will result in a large number of wasted springs or a poor detection rate of defects. However, even under such conditions, there are cases where ``the relative ratio of measurement values of different window areas is constant'', ``the measurement ratio of different window areas is constant'', and ``the relative ratio of measurement values of different window areas is constant''. In many cases, there is a relationship such as "If you take the difference, the change in pattern becomes clear", so it is possible to perform highly accurate inspection using such conditions.

■ 相関をとる場合に同一の特徴だけでなく、他の特徴
(同じ窓領域であってもよい)データとの相関を調べる
と著るしい効果をうることかできる場合がある。例えば
汚れ検査のように面積と周囲長差との相関をとると良・
不良の差が明確になる。
■ When taking correlations, it may be possible to obtain a significant effect by examining not only data on the same feature but also data on other features (even the same window area). For example, it is good to take a correlation between the area and the difference in perimeter length, as in the case of stain inspection.
The difference between defects becomes clear.

■ 窓領域の形状を実質的に任意とすることにより、種
々の対象パターンに適用でき、かつ、窓領域の数を減ら
しうるので高速に判定することができる。
(2) By making the shape of the window area substantially arbitrary, it can be applied to various target patterns, and the number of window areas can be reduced, making it possible to perform high-speed determination.

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

第1図は本発明の一実施例を示すブロック図、第2図(
a)は窓領域の設定例を示す説明図、第2図(b)はパ
ターンの一例の説明図、第2図(c)は窓領域を通して
見たパターンの説明図、第3図は窓領域の他の設定例を
示す説明図、第4図は一次判定テーブルの説明図、第5
図は相関−次判定テーブルの一例を示す説明図、第6図
は第1図に示した実施例の動作概要を示す流れ図、第7
図は同じく動作の詳細を示す流れ図、第8図は他の動作
例を示す流れ図、第9図(a) 、 (b)は従来のパ
ターン検査方法の原理説明図、である。 符号説明 1.1′・・・・・・パターン、2〜8・・曲サンプリ
ングポイント、20・・・・・・対象パターン、21〜
47・・・・・・窓領域、50・・・・・・対象パター
ン、51・・・・・・工TVカメラ、52・・・・・・
2籠化・画素分割回路、53.53’・・・・・・特徴
抽出回路、54.54’・・・・・・計数回路、55・
・・・・・計数値記憶回路、56・・・・・・−次判定
回路、57・・・・・・二次判定回路、58・・・・・
・相関判定安否回路、59・・・・・・相関演算回路、
60・・・・・・相関−次判定回路、61・・・・・・
相関二次判定回路、62・・・・・・総合判定(ロ)路
、63・・・・・・窓領域発生回路、64・・・・・・
制御回路、65・・・・・・設定値記憶回路、66・・
・・・・キーボード 代理人 弁理士 並 木 昭 夫 代理人 弁理士 松 崎    清 “°0        □3゜ (の       +b+ 贋2 図
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG. 2 (
a) is an explanatory diagram showing an example of setting a window area, FIG. 2(b) is an explanatory diagram of an example of a pattern, FIG. 2(c) is an explanatory diagram of a pattern seen through the window area, and FIG. 3 is an explanatory diagram of the window area. Fig. 4 is an explanatory diagram showing other setting examples, Fig. 4 is an explanatory diagram of the primary judgment table, Fig. 5 is an explanatory diagram showing another setting example
6 is an explanatory diagram showing an example of a correlation-order determination table, FIG. 6 is a flowchart showing an outline of the operation of the embodiment shown in FIG. 1, and FIG.
8 is a flowchart showing the details of the operation, FIG. 8 is a flowchart showing another example of the operation, and FIGS. 9(a) and 9(b) are diagrams explaining the principle of the conventional pattern inspection method. Code explanation 1.1'...Pattern, 2-8...Song sampling point, 20...Target pattern, 21-
47... Window area, 50... Target pattern, 51... Engineering TV camera, 52...
2 cage/pixel division circuit, 53.53'...Feature extraction circuit, 54.54'...Counting circuit, 55.
...Count value storage circuit, 56...-Next judgment circuit, 57...Secondary judgment circuit, 58...
・Correlation judgment safety circuit, 59...Correlation calculation circuit,
60... Correlation-order judgment circuit, 61...
Correlation secondary judgment circuit, 62... General judgment (b) path, 63... Window area generation circuit, 64...
Control circuit, 65... Setting value storage circuit, 66...
...Keyboard agent Patent attorney Akio Namiki Agent Patent attorney Kiyoshi Matsuzaki

Claims (1)

【特許請求の範囲】[Claims] 1)被検査対象パターンを二次元逐次走査形光電変換装
置により走査して得られる時系列の電気信号を画素分割
して2値化し、該2値化信号から被検査対象パターンの
形状を検査するパターン検査方法において、二次元逐次
走査形光電変換装置の視野内に複数個の窓領域を設定す
るとともに各窓領域の組合せを予じめ設定しておき、各
窓領域に対応する2瞳化信号から各窓領域内での被検査
対象パターンの或る特徴量を計測し、同じ組に属する各
窓領域の特徴量を相関演算し、該相関演算の結果に基づ
いて被検査対象パターンの良否を判定することを特徴と
するパターン検査方法。
1) A time-series electrical signal obtained by scanning the pattern to be inspected with a two-dimensional sequential scanning photoelectric conversion device is divided into pixels and binarized, and the shape of the pattern to be inspected is inspected from the binarized signal. In a pattern inspection method, a plurality of window areas are set within the field of view of a two-dimensional sequential scanning photoelectric conversion device, and a combination of each window area is set in advance, and a two-pupil signal corresponding to each window area is generated. A certain feature amount of the pattern to be inspected in each window area is measured from , a correlation calculation is performed on the feature amounts of each window area belonging to the same group, and the quality of the pattern to be inspected is determined based on the result of the correlation calculation. A pattern inspection method characterized by determining.
JP62123916A 1987-05-22 1987-05-22 Pattern inspection method Granted JPS63674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62123916A JPS63674A (en) 1987-05-22 1987-05-22 Pattern inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62123916A JPS63674A (en) 1987-05-22 1987-05-22 Pattern inspection method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP57016433A Division JPS58134372A (en) 1982-02-05 1982-02-05 Pattern checking device

Publications (2)

Publication Number Publication Date
JPS63674A true JPS63674A (en) 1988-01-05
JPH033269B2 JPH033269B2 (en) 1991-01-18

Family

ID=14872520

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62123916A Granted JPS63674A (en) 1987-05-22 1987-05-22 Pattern inspection method

Country Status (1)

Country Link
JP (1) JPS63674A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0298793A (en) * 1988-10-05 1990-04-11 Fuji Photo Film Co Ltd Method for deciding whether recognized radiation image split pattern is correct or erroneous
US7262534B2 (en) 2003-09-29 2007-08-28 Mitsubishi Denki Kabushiki Kaisha Magneto-generator

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5241016A (en) * 1975-09-29 1977-03-30 Oki Electric Ind Co Ltd Printer
JPS5650475A (en) * 1979-09-28 1981-05-07 Sumitomo Electric Ind Ltd Optical character reader
JPS56153484A (en) * 1980-04-30 1981-11-27 Natl Aerospace Lab Preprocessing device for pattern recognition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5241016A (en) * 1975-09-29 1977-03-30 Oki Electric Ind Co Ltd Printer
JPS5650475A (en) * 1979-09-28 1981-05-07 Sumitomo Electric Ind Ltd Optical character reader
JPS56153484A (en) * 1980-04-30 1981-11-27 Natl Aerospace Lab Preprocessing device for pattern recognition

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0298793A (en) * 1988-10-05 1990-04-11 Fuji Photo Film Co Ltd Method for deciding whether recognized radiation image split pattern is correct or erroneous
US7262534B2 (en) 2003-09-29 2007-08-28 Mitsubishi Denki Kabushiki Kaisha Magneto-generator

Also Published As

Publication number Publication date
JPH033269B2 (en) 1991-01-18

Similar Documents

Publication Publication Date Title
US8139117B2 (en) Image quality analysis with test pattern
US6347150B1 (en) Method and system for inspecting a pattern
US8086422B2 (en) Method for analyzing defect data and inspection apparatus and review system
US5337369A (en) Equipment for fingerprint pattern classification
US6954550B2 (en) Image processing method and apparatus
CN100580435C (en) System and method for process variation monitor
KR20060051443A (en) Defect detection apparatus and defect detection method
JP4230880B2 (en) Defect inspection method
JPH0210461B2 (en)
JPH11337498A (en) Apparatus and method for inspecting printed circuit board
JPS63674A (en) Pattern inspection method
US4607387A (en) Pattern check device
US20040228516A1 (en) Defect detection method
JPH04350546A (en) Detection of foreign matter
JPH063541B2 (en) Pattern inspection equipment
CN114441554B (en) Detection method
KR910007348B1 (en) Machine vision process and apparatus for reading a plurality of separated figures
JP3198105B2 (en) Automatic visual inspection device
JPH05264240A (en) Visual inspection device
JP2787851B2 (en) Pattern feature extraction device
JP2023024148A (en) Image processing apparatus, image processing method, and image processing program
JPH0798763A (en) Method and device for processing image
JPH06309437A (en) Pattern inspecting device
JPH04169987A (en) Method for detecting character string in image information
JPH03194415A (en) Device and method for pattern inspection