JPH0333605A - Comparing/testing method of patterns and apparatus thereof - Google Patents

Comparing/testing method of patterns and apparatus thereof

Info

Publication number
JPH0333605A
JPH0333605A JP16708689A JP16708689A JPH0333605A JP H0333605 A JPH0333605 A JP H0333605A JP 16708689 A JP16708689 A JP 16708689A JP 16708689 A JP16708689 A JP 16708689A JP H0333605 A JPH0333605 A JP H0333605A
Authority
JP
Japan
Prior art keywords
threshold value
image
threshold
pattern
pattern comparison
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
JP16708689A
Other languages
Japanese (ja)
Other versions
JP2647502B2 (en
Inventor
Fumiaki Endo
文昭 遠藤
Shunji Maeda
俊二 前田
Hitoshi Kubota
仁志 窪田
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP1167086A priority Critical patent/JP2647502B2/en
Publication of JPH0333605A publication Critical patent/JPH0333605A/en
Application granted granted Critical
Publication of JP2647502B2 publication Critical patent/JP2647502B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To enable tests corresponding to a variety of kinds of items to be tested by setting the optimum threshold value for binarization for every kind of the items to be tested. CONSTITUTION:A threshold value calculating means 2a of this apparatus calculates the optimum threshold value for every kind of testing items. For example, if the testing item is of a kind not yet tested, a threshold value calculating command 10 is sent to the means 2a, where the threshold value is calculated. The calculated value is input to a threshold value memory means 26. On the other hand, if the testing item is a kind already tested, the already- obtained threshold value is input to the threshold value memory means 26. Thereafter, a binarizing means 25 binarizes a differential image of the detected images of the patterns of the testing item to test the item. Thus, it becomes possible to change the testing conditions in compliance with the complexity of the patterns of items of each kind, the finish or result of the items, the contrast of the detected images of the patterns of the items of each kind and the like, thereby enabling tests corresponding to many kinds of items.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はLSIウェハ等の検査対象に対して本来同一で
あるべきパターンを検出した画像の差画像の2値化画像
を用いてパターンの欠陥等を検出8− するパターン比較検査方法および装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention detects pattern defects by using a binarized image of a difference image between detected images of patterns that should be the same in an inspection object such as an LSI wafer. The present invention relates to a pattern comparison inspection method and apparatus for detecting 8- and the like.

〔従来の技術〕[Conventional technology]

従来のLSIウェハ等に対して実物パターン同士の濃淡
画像の比較により欠陥を検査するパターン比較検査方法
および装置は、第19図に示すような構成による検査方
法がとられている。
A conventional pattern comparison inspection method and apparatus for inspecting defects on LSI wafers and the like by comparing grayscale images of actual patterns has been constructed as shown in FIG.

第19図は従来のパターン比較検査方法および装置の一
例を示す構成国である。第19図において、3はステー
ジ、4は撮像手段、6は画像記憶手段、7は差画像検出
手段、8は2値化手段、9は閾値記憶手段、14は検出
画像信号、15は記憶画像信号、16は差画像信号、1
7は閾値、18は2値画像である。
FIG. 19 shows the constituent countries of an example of a conventional pattern comparison inspection method and apparatus. In FIG. 19, 3 is a stage, 4 is an imaging means, 6 is an image storage means, 7 is a difference image detection means, 8 is a binarization means, 9 is a threshold value storage means, 14 is a detected image signal, and 15 is a stored image signal, 16 is the difference image signal, 1
7 is a threshold value, and 18 is a binary image.

この構成で、検査対象のLSIウェハ等を載せたステー
ジ3を動かしなから撮像手段4で画像を検出し、この画
像を比較単位分だけ画像記憶手段6に記憶しておくこと
により、パターンの検出画像信号14と記憶画像信号1
5を得る。ついで差画像検出手段7でこの2つの画像信
号14.15の差画像信号16を算出し、2値化手段8
でこの差画像信号16を閾値記憶手段9に記憶されてい
る閾値17で2値化することにより、2値画像信号18
を得る。この2値画像信号18によりLSIウェハ等の
パターンの欠陥を検査する。
With this configuration, an image is detected by the imaging means 4 without moving the stage 3 on which the LSI wafer, etc. to be inspected is mounted, and this image is stored in the image storage means 6 for the comparison unit, thereby detecting a pattern. Image signal 14 and stored image signal 1
Get 5. Next, the difference image detection means 7 calculates a difference image signal 16 between these two image signals 14 and 15, and the binarization means 8
By binarizing this difference image signal 16 using the threshold value 17 stored in the threshold value storage means 9, a binary image signal 18 is obtained.
get. This binary image signal 18 is used to inspect patterns of LSI wafers and the like for defects.

第20図は第19図の検出した画像の例を示す説明図で
ある。第20図において、各図面を通じて同一符号は相
当部分を示し、91.92は欠陥である。例えば検査対
象のある品種Xに対して第20図のような検出画像14
aと、記憶画像15aと、差画像16aが得られ、この
検出画像14aの中には欠陥91があるとする。そこで
差画像16aの中の欠陥91を含むA−A’部の信号波
形90aをとると欠陥91の部分で信号波形90aの濃
淡差が大きくなっており、ここで適当な閾値Vlで2値
化すると欠陥91のみを検出することができ、このよう
な2値画像18aを得ることができる。この間値v1を
欠陥判定閾値と呼ぶ。またある品種Yに対して第20図
のような検出画像14bと、記憶画像15bと、差画像
16bが得られ、この場合にも検出画像14bの中には
欠陥92があるとする。そこで差画像16b中の欠陥9
2を含むB−B’部の信号波形90bをとると欠陥92
の部分0 とその他の部分で信号波形90bの濃淡差が大きくなっ
ており、ここで先の品種Xの場合の閾値V1で2値化し
たのでは欠陥92ばかりでなく、パターンの正常部まで
も誤って欠陥として検出してしまう誤検出が発生する。
FIG. 20 is an explanatory diagram showing an example of the image detected in FIG. 19. In FIG. 20, the same reference numerals indicate corresponding parts throughout the drawings, and 91 and 92 indicate defects. For example, a detected image 14 as shown in FIG.
Assume that a, a stored image 15a, and a difference image 16a are obtained, and that there is a defect 91 in this detected image 14a. Therefore, if we take the signal waveform 90a of the A-A' section that includes the defect 91 in the difference image 16a, the difference in shading of the signal waveform 90a becomes large in the defect 91 section, and here it is binarized using an appropriate threshold value Vl. Then, only the defect 91 can be detected, and such a binary image 18a can be obtained. The value v1 during this time is called a defect determination threshold. Further, it is assumed that a detected image 14b, a stored image 15b, and a difference image 16b as shown in FIG. 20 are obtained for a certain product Y, and in this case as well, there is a defect 92 in the detected image 14b. Therefore, defect 9 in the difference image 16b
If you take the signal waveform 90b of the B-B' part including 2, the defect 92
There is a large difference in shading in the signal waveform 90b between part 0 and other parts, and if the binarization is performed using the threshold V1 for type X, not only the defect 92 but also the normal part of the pattern will be detected. Erroneous detection occurs in which a defect is mistakenly detected.

このため例えば高い閾値V2で2値化する必要があり、
こうして新たな閾値V2により2値化して得られる2値
画像18bのように欠陥92のみを検出することができ
る。しかし品種Xの場合の差画像16aのときに閾値V
2で2値化したのでは欠陥91を検出できずに見逃して
しまう。したがって欠陥判定閾値Vは検査対象の品種毎
に最適閾値に設定する必要があった。なおこの種の2値
化閾値の決定法として関連するものには、例えば特開昭
62−282387号公報が挙げられる。
For this reason, for example, it is necessary to binarize with a high threshold value V2,
In this way, only the defect 92 can be detected as in the binary image 18b obtained by binarizing using the new threshold value V2. However, in the case of the difference image 16a for product X, the threshold value V
If the image is binarized at 2, the defect 91 cannot be detected and will be missed. Therefore, it was necessary to set the defect determination threshold V to an optimal threshold for each type of product to be inspected. A related method for determining this type of binarization threshold includes, for example, Japanese Unexamined Patent Publication No. 62-282387.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術は、検査対象の本来同一であるべきパター
ンを検出した画像の差画像の2値化画像による比較検査
における他品種に対応した最適閾値の設定法の点につい
て配慮がされておらず、検査者が品種毎に試行錯誤で閾
値を設定していたの11− で、その試行錯誤で設定した閾値が必らずしも最適でな
いため信頼性の高い検査が行われず、また試行錯誤の閾
値設定には莫大な時間を要する問題があった。
The above-mentioned conventional technology does not take into consideration the method of setting the optimal threshold corresponding to other product types in the comparative inspection using the binarized image of the difference image of the detected image of the pattern that should be the same in the inspection object. Inspectors used to set thresholds for each product through trial and error11-, but the thresholds set through trial and error were not always optimal, making it impossible to conduct highly reliable inspections. There was a problem with the setup, which required a huge amount of time.

本発明の目的は検査対象の多品種に対応した検査を行う
ことのできるパターン比較検査方法および装置を提供る
ことにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a pattern comparison inspection method and apparatus that can perform inspections compatible with various types of inspection objects.

本発明の他の目的は検査対象の多品種に対応した正確な
検査を行うことのできるパターン比較検査方法および装
置を提供することにある。
Another object of the present invention is to provide a pattern comparison inspection method and apparatus that can perform accurate inspections corresponding to a wide variety of inspection objects.

本発明のさらに他の目的は検査対象の多品種に対応した
正確な検査を高速に行うことのできるパターン比較検査
方法および装置を提供することにある。
Still another object of the present invention is to provide a pattern comparison inspection method and apparatus that can perform accurate inspection at high speed for a wide variety of inspection objects.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するために本発明によるパターン比較検
査方法および装置は、多品種に対応するように検査対象
の品種毎に最適閾値を算出する手段を設け、まだ検査し
たことのない品種のときには閾値の算出を行い、既に検
査したことのある品12 種のときには既に算出しである閾値をそれぞれセットし
た後に、検査対象のパターンの検出画像の差画像を2値
化して検査を行うようにしたものである。
In order to achieve the above object, the pattern comparison inspection method and apparatus according to the present invention are provided with a means for calculating an optimal threshold value for each product type to be inspected so as to correspond to a wide variety of products, and a threshold value for a product type that has not yet been inspected. After calculating the threshold value for each of the 12 items that have already been inspected, the difference image between the detected images of the pattern to be inspected is binarized and inspected. It is.

また上記他の目的を達成するために本発明によるパター
ン比較検査方法および装置は、多品種に対応した正確な
検査を行うようにパターンの検出画像の差画像またはそ
の2値化画像の面積等の特徴量から正常パターンを誤検
出したり、パターン欠陥を見逃したりしない閾値を算出
する手段を設け、該閾値を用いて検査対象のパターンの
検出画像の差画像を2値化することにより検査を行うよ
うにしたものである。
In addition, in order to achieve the above-mentioned other objects, the pattern comparison inspection method and apparatus according to the present invention provide a pattern comparison inspection method and apparatus that can measure the area, etc. of a difference image of a pattern detection image or its binarized image so as to perform accurate inspection compatible with a wide variety of products. A means is provided to calculate a threshold value that does not erroneously detect a normal pattern or overlook a pattern defect from the feature amount, and the inspection is performed by using the threshold value to binarize the difference image of the detected image of the pattern to be inspected. This is how it was done.

また上記さらに他の目的を達成するために本発明よるパ
ターン比較検査方法および装置は、多品種に対応した正
確な検査を高速に行うように複数の閾値と該閾値によっ
てえられたパターンの差画像の2値化画像の特徴量やそ
の正常パターンの誤検出率やパターン欠陥の見逃し率と
の関係から2値化の閾値を更新する手段を設け、該更新
の終了3 条件を満たした閾値を設定して2値化することにより検
査を行うようにしたものである。
In addition, in order to achieve the above-mentioned and other objects, the pattern comparison inspection method and apparatus according to the present invention provide a plurality of threshold values and a difference image of a pattern obtained by the threshold values so as to perform accurate inspection corresponding to a wide variety of products at high speed. A means is provided to update the binarization threshold based on the relationship between the feature amount of the binarized image, the false detection rate of normal patterns, and the overlooking rate of pattern defects, and the threshold value that satisfies the update termination condition 3 is set. Inspection is performed by converting the data into binarized data.

〔作 用〕[For production]

上記パターン比較検査方法および装置は、検査対象の品
種を変える毎にパターンの検出画像の差画像を2値化す
る最適閾値を算出して検出することにより、各品種のパ
ターンの複雑さやでき具合等および各品種のパターンの
検出画像のコントラスト等に応じて検査条件を変えるこ
とができるようになるので、多品種に対応した検査が可
能になる。
The above-mentioned pattern comparison inspection method and apparatus calculate and detect the optimal threshold value for binarizing the difference image of the pattern detection images every time the product to be inspected changes, thereby detecting the complexity of the pattern of each product, the degree of completion, etc. In addition, since the inspection conditions can be changed according to the contrast of the detected image of the pattern of each product type, it becomes possible to perform inspections compatible with a wide variety of products.

また上記パターン比較検査方法および装置は、パターン
の検出画像の差画像の2値化画像を用いて比較検査した
結果の情報を用いて、パターンの差画像またはその2値
化画像の面積等の特徴量から正常なパターンを誤って検
出したり、またはパターンの欠陥を見逃したりしないよ
うな最適閾値で差画像を2値化して検査することにより
、検出した箇所の中に正常なパターンをあやまって検出
したり、あるいはパターンの欠陥を見逃したりし14− たものが含まれることがないので、正確な検査が可能に
なる。
In addition, the pattern comparison inspection method and apparatus described above use information on the results of comparison inspection using a binarized image of a difference image of a detected pattern image, and detects characteristics such as the area of a pattern difference image or its binarized image. By binarizing and inspecting the difference image using an optimal threshold that does not mistakenly detect normal patterns from the amount or overlook pattern defects, it is possible to mistakenly detect normal patterns in the detected areas. 14- Since there are no defects included in the pattern or defects in the pattern overlooked, accurate inspection becomes possible.

また上記パターン比較検査方法および装置は、複数の閾
値と該閾値によって観測された2値画像の特徴量やその
正常パターンの誤検出率やパターン欠陥の見逃し率との
関係からパターンの差画像を2値化する閾値を更新しな
がら収束させることにより、単純に値の小さい順または
大きい順に閾値を更新する方法や試行錯誤で閾値を更新
する方法に比べて、最適閾値の存在範囲を速く絞り込ん
で最適閾値を高速に求めることができるので、作業全体
の時間も短縮できて高速な検査が可能になる。
In addition, the pattern comparison inspection method and apparatus described above detect pattern difference images based on the relationship between a plurality of threshold values, the feature values of the binary image observed using the threshold values, the false detection rate of normal patterns, and the missed rate of pattern defects. By converging while updating the threshold values, the range of optimal thresholds can be quickly narrowed down and optimized, compared to methods that simply update the thresholds in ascending order of values or in order of increasing values, or methods that update thresholds through trial and error. Since the threshold value can be determined quickly, the overall work time can be shortened and high-speed inspection can be performed.

〔実施例〕〔Example〕

以下に本発明の実施例を第1図ないし第17図により説
明する。
Embodiments of the present invention will be described below with reference to FIGS. 1 to 17.

第1図は本発明によるパターン比較検査方法および装置
の第1の実施例を示す構成図である。第1図において、
1aは検査装置本体部、2aは閾値算出手段である。3
はステージで該ステージの移15− 動によって検査対象のLSIウェハを走査させることが
可能である。4は撮像手段でステージ3の動きに同期し
てLSIウェハの画像を検出する。
FIG. 1 is a block diagram showing a first embodiment of a pattern comparison inspection method and apparatus according to the present invention. In Figure 1,
1a is an inspection device main body, and 2a is a threshold value calculation means. 3
It is possible to scan the LSI wafer to be inspected by moving the stage 15-. 4 is an imaging means that detects an image of the LSI wafer in synchronization with the movement of the stage 3;

この画像を検出画像14と呼ぶ。5は制御部でステージ
3の移動の制御や撮像手段4の制御等をステージ移動指
令12と、撮像指令13等により行う。6は画像記憶手
段で検出画像14を比較単位で記憶しておくことにより
隣接同一パターン間の比較を可能とする。この記憶され
た画像を記憶画像15と呼ぶこととする。7は差画像検
出手段で検出画像14と記憶画像15の差画像16を検
出する。8は2値化手段、9は閾値記憶手段で、2値化
手段8では閾値記憶手段9に記憶されている閾値17に
より差画像16を2値化して2値画像18を検査結果と
して出力する。20は切換スイッチで該スイッチを切り
換えることにより検出画像14と、差画像16と、2値
画像18を選択して画像21を閾値算出手段2aに送る
ことができる。閾値算出手段2aでは閾値算出指令lO
により動作開始して画像取込み指令11を検査装置本体
部1aに送り、画像21を得て該画像2116− を用いて閾値の算出を行い、算出閾値19を閾値記憶手
段9にセットする。
This image is called a detected image 14. Reference numeral 5 denotes a control unit that controls the movement of the stage 3 and the imaging means 4 using a stage movement command 12, an imaging command 13, and the like. Reference numeral 6 denotes an image storage means which stores the detected images 14 in units of comparison, thereby making it possible to compare adjacent identical patterns. This stored image will be referred to as a stored image 15. 7 is a difference image detection means that detects a difference image 16 between the detected image 14 and the stored image 15. 8 is a binarization means, 9 is a threshold value storage means, and the binarization means 8 binarizes the difference image 16 using the threshold value 17 stored in the threshold value storage means 9, and outputs a binary image 18 as an inspection result. . By switching the switch 20, the detected image 14, the difference image 16, and the binary image 18 can be selected and the image 21 can be sent to the threshold calculation means 2a. In the threshold value calculation means 2a, the threshold value calculation command lO
The operation is started by sending an image capture command 11 to the inspection apparatus main body 1a, obtaining an image 21, calculating a threshold value using the image 2116-, and setting a calculated threshold value 19 in the threshold value storage means 9.

第2図は第1図のパターン比較検査方法のフローチャー
トである。第1図の各部の動作を第2図のフローチャー
トにより説明する。まず検査者が検査対象のLSIウェ
ハの品種が以前に検査を行ったことのある品種かどうか
を調べ(ステップ100)、検査したことのある品種で
あれば既に最適閾値が算出しであるので、この閾値19
を閾値算出手段2aから閾値記憶手段9に入力しくステ
ップ101) 、実際の検査を行う(ステップ105)
。またこれまでに検査したことのない品種の場合には検
査者が閾値算出指令10を閾値算出手段2aに送って閾
値算出を起動する(ステップ102)。これらの判断(
ステップ100)は検査者が行わずに、記憶手段に品種
名と閾値を登録しておいて自動的に行ってもよい。次に
閾値算出手段2aでは制御部5に画像取込み指令11を
送り、制御部5はステージ3にステージ移動指令12を
送ると同時に撮像手段4に撮像指令13を送って、ステ
ージ3の動きに17 合わせて撮像することにより、画像21を閾値算出手段
2aに入力する(ステップ103)。つぎに閾値算出手
段2aでは画像21を用いて閾値を算出するが、この画
像21としては検出画像14と、差画像16と、2値画
像18などが考えられ、これらは切換えスイッチ20で
切換え可能である。この算出閾値19は閾値記憶手段9
にセットされる(ステップ105)。
FIG. 2 is a flowchart of the pattern comparison inspection method shown in FIG. The operation of each part in FIG. 1 will be explained with reference to the flowchart in FIG. 2. First, the inspector checks whether the type of LSI wafer to be inspected is a type that has been inspected before (step 100), and if it is a type that has been inspected before, the optimum threshold value has already been calculated. This threshold 19
is input from the threshold calculation means 2a to the threshold storage means 9 (step 101), and an actual test is performed (step 105).
. Further, in the case of a product type that has not been inspected before, the inspector sends a threshold value calculation command 10 to the threshold value calculation means 2a to start threshold value calculation (step 102). These judgments (
Step 100) may not be performed by the inspector, but may be performed automatically by registering the product name and threshold value in the storage means. Next, the threshold calculation means 2a sends an image capture command 11 to the control section 5, and the control section 5 sends a stage movement command 12 to the stage 3, and at the same time sends an imaging command 13 to the imaging means 4. By capturing the images together, the image 21 is input to the threshold calculation means 2a (step 103). Next, the threshold value calculation means 2a calculates the threshold value using the image 21, and the image 21 can be the detection image 14, the difference image 16, the binary image 18, etc., and these can be switched with the changeover switch 20. It is. This calculated threshold value 19 is calculated by the threshold value storage means 9
(step 105).

この閾値のセット後に実際の検査を次の手順で行う。ま
ず制御部5からのステヘージ移動指令12によりステー
ジ3を動かすと同時に撮像指令13により撮像手段4か
らの検出画像14を入力し、この検出画像14を差画像
検出手段7におくると共に画像記憶手段6に記憶してお
く。ついである一定の時間だけ遅延させて記憶画像15
を取り出すことにより、差画像検出手段7では本来同一
であるべき隣接パターンを検出した検出画像14と記憶
画像15の差画像16を得ることができ、この差画像1
6を2値化手段8では閾値記憶手段9に記憶された閾値
17で2値化することにより、パターンの欠陥部のみを
検出した2値画像18を得ることができる(ステ8− ツブ105)。このように検査対象の多品種に対応した
検査を行うことができる。
After setting this threshold value, the actual inspection is performed in the following steps. First, the stage 3 is moved by the stage movement command 12 from the control section 5, and at the same time, the detected image 14 from the imaging means 4 is inputted by the imaging command 13, and this detected image 14 is sent to the difference image detection means 7, and the image storage means 6 Remember it. The stored image 15 is then delayed by a certain period of time.
By taking out the difference image 1, the difference image detection means 7 can obtain a difference image 16 between the detected image 14 in which adjacent patterns that should be originally detected and the stored image 15 are obtained.
6 is binarized by the binarization means 8 using the threshold value 17 stored in the threshold value storage means 9, thereby making it possible to obtain a binary image 18 in which only the defective portion of the pattern is detected (Step 8-Tub 105). . In this way, it is possible to perform inspections that correspond to a wide variety of inspection targets.

第3図は第1図の閾値算出手段2aの第1の構成側図で
ある。第工図の閾値算出手段2aを第3図により詳しく
説明する。この第1の構成例では検査装置本体部1aか
らの画像21として検出画像14を入力して閾値の算出
を行う。第3図において、22はセレクタでセレクト信
号35により検出画像14を画像30a、30bのどぢ
らかに出力し、23a 、 23bは画像記憶手段で本
来同一であるべき隣接パターンを検出した画像をそれぞ
れ記憶する。24は差画像検出手段で2つの画像31a
、31bの差画像32を検出し、25は2値化手段で差
画像32を閾値記憶手段26に記憶しである閾値38に
より2値化した2値画像33を出力する。27はラベリ
ング手段で2値画像33中のハイレベルの画素に連結成
分(4連結または8連結)毎にラベル付けを行ってラベ
リング画像34を出力する。28は閾値算出制御部で閾
値算出指令10により閾値算出を開始して制御を行い、
29は閾値更新手段で最大面積40をもとに閾値37を
算出する。
FIG. 3 is a first configuration side view of the threshold value calculation means 2a of FIG. 1. The threshold value calculation means 2a of the second construction drawing will be explained in detail with reference to FIG. In this first configuration example, the threshold value is calculated by inputting the detected image 14 as the image 21 from the inspection apparatus main body 1a. In FIG. 3, 22 is a selector which outputs the detected image 14 to one of images 30a and 30b in response to a select signal 35, and 23a and 23b are image storage means which respectively output images in which adjacent patterns that should be originally the same are detected. Remember. 24 is a difference image detection means that detects two images 31a.
, 31b, and 25 is a binarization means which stores the difference image 32 in a threshold value storage means 26 and outputs a binary image 33 which has been binarized using a threshold value 38. A labeling means 27 labels high-level pixels in the binary image 33 for each connected component (4-connected or 8-connected) and outputs a labeled image 34. 28 is a threshold value calculation control unit which starts and controls threshold value calculation according to the threshold value calculation command 10;
Reference numeral 29 is a threshold value updating means that calculates a threshold value 37 based on the maximum area 40.

19− 39は最大面積算出手段でラベリング画像34より各ラ
ベルの付いた画素をカラン1−することにより面積を算
出した後その最大面積40を出力する。
19-39 is a maximum area calculation means which calculates the area by scanning each labeled pixel from the labeling image 34, and then outputs the maximum area 40.

つぎに閾値算出手段2aの各部の動作を説明する。まず
閾値算出制御部28で閾値算出指令10を受は取ったの
ち検査装置本体部1に画像取込み指令11を送り、検出
画像14をセレクタ22に入力する。
Next, the operation of each part of the threshold value calculation means 2a will be explained. First, the threshold value calculation control section 28 receives the threshold value calculation command 10, and then sends the image capture command 11 to the inspection apparatus main body section 1, and inputs the detected image 14 to the selector 22.

このときセレクト信号35をa側にておくことにより画
像記憶手段23aに画像30aを記憶する。ついで再度
に画像取込み指令11を送って検査装置本体部1でステ
ージ3を移動させることにより、先に記憶した画像30
aと本来同一であるべき隣接パターンを検出した検出画
像14をセレクタ22に入力し、このときセレクト信号
をb側にしておくことにより画像記憶手段23bに画像
30bを記憶手段30bに記憶する。これにより画像の
入力(第2図のステップ103)を完了する。つぎに差
画像検出手段24で本来同一であるべきパターンを検出
した画像31a。
At this time, by keeping the select signal 35 on the a side, the image 30a is stored in the image storage means 23a. Then, by sending the image capture command 11 again and moving the stage 3 in the inspection device main body 1, the previously stored image 30
The detected image 14 in which an adjacent pattern which should originally be the same as a is inputted to the selector 22, and at this time, by setting the select signal to the b side, the image 30b is stored in the image storage means 23b in the storage means 30b. This completes the image input (step 103 in FIG. 2). Next, an image 31a in which patterns that should be originally the same are detected by the difference image detection means 24.

31bの差画像32を検出する。この差画像32を2値
化手段25で閾値記憶手段26に記憶している閾値38
0− により2値化して2値画像33を得、これをラベリング
手段27でラベリングを行ってラベリング画像34を得
、さらに最大面積算出手段39で各ラベルの付いた画素
数をカウントすることにより最大面積40を出力する。
A difference image 32 of 31b is detected. This difference image 32 is converted to a threshold value 38 stored in the threshold value storage means 26 by the binarization means 25.
0- to obtain a binary image 33, which is labeled by a labeling means 27 to obtain a labeled image 34, and further by counting the number of pixels with each label by a maximum area calculation means 39. Output area 40.

この最大面積40をここでは不一致面積Sと呼ぶことと
する。不一致面積Sは差画像16(2値画像1g)の特
徴量の1つである。そこで閾値Vを変えて不一致面積S
を求めると第4図のようになる。
This maximum area 40 will be referred to as the mismatch area S here. The mismatch area S is one of the feature amounts of the difference image 16 (binary image 1g). Therefore, by changing the threshold value V, the mismatch area S
The result obtained is as shown in Figure 4.

第4図は第3図の閾値V38と不一致面積S40の関係
を示す説明図である。第4図において、不−値面積S(
画素)は閾値■(階調)に対して、閾値■が増加すると
不一致面積Sが減少するかもしくは変化しないという単
調減少の関係にある。ここでパターンの欠陥判定のさい
の最小検出面積Sdとし、不一致面積Sがこの最小検出
面積84未満となるような最小閾値vcを求めると、こ
の閾値V。はこの閾値算出に用いた画像板中にパターン
の欠陥がない場合に正常部での誤検出の出ない最小の閾
値である。このような最小閾値V。を見い出すまで閾値
更新手段29で更新閾値37を更新させては、最大面積
算出手段39で不一致面積S40の算出をくり返すこと
により、パターンの正常部で誤検出の出ない最小閾値■
。を算出できるようにして、正確なパターンの検査を行
うことができる。
FIG. 4 is an explanatory diagram showing the relationship between the threshold value V38 in FIG. 3 and the mismatch area S40. In Fig. 4, the unvalue area S(
Pixels) are in a monotonically decreasing relationship with respect to the threshold value ■ (gradation) in that as the threshold value ■ increases, the mismatch area S decreases or remains unchanged. Here, let the minimum detection area Sd be the minimum detection area for pattern defect determination, and find the minimum threshold value vc such that the mismatch area S is less than this minimum detection area 84. is the minimum threshold value that will not cause false detection in a normal area when there is no pattern defect in the image plate used for calculating this threshold value. Such a minimum threshold value V. The update threshold 37 is updated by the threshold update means 29 until the update threshold 37 is found, and the maximum area calculation means 39 repeatedly calculates the discrepancy area S40, thereby determining the minimum threshold that does not cause false detection in the normal part of the pattern.
. can be calculated, allowing accurate pattern inspection.

この最小閾値Vcは検査対象の一部分の画像に対するも
のであるが、検査対象の代表的な部分の数箇所から算出
を行って得られた算出閾値Vcの中の最大値を取ること
により、検査対象の広い領域を検査しても正常部の誤検
出の出ない最小閾値voを得ることができる。このため
には閾値算出に用いる箇所すべてについて黙視確認等に
よりあらかじめ欠陥のないことを確認しておけばよい。
This minimum threshold Vc is for an image of a part of the inspection target, but by taking the maximum value among the calculated thresholds Vc obtained by calculating from several representative parts of the inspection target, It is possible to obtain a minimum threshold value vo that does not cause erroneous detection of normal parts even if a wide area of the area is inspected. For this purpose, it is sufficient to confirm in advance that there are no defects in all the locations used for threshold value calculation by visual inspection or the like.

このような最小閾値■。を算出する閾値更新手段29の
構成を第5図に示す。
Such a minimum threshold■. FIG. 5 shows the configuration of the threshold value updating means 29 for calculating .

第5図は第3図の閾値更新手段29の構成側図である。FIG. 5 is a side view of the configuration of the threshold value updating means 29 in FIG. 3.

第5図において、41は演算部で後に説明するような式
により更新閾値37を算出する。42は閾値記憶手段、
43は不一致面積記憶手段で、これまでに不一致面積を
算出した閾値37と、そのときの不一致面積40とを全
てそれぞれ記憶しておく。44は終了判定部でこれらの
閾値45とこれに対する不一致面積46との組を全て読
み出して、後に説明する終了条件が成り立つか否かの判
定を行ったのち、終了条件が成り立った場合には終了信
号36と算出閾値19を出力する。
In FIG. 5, numeral 41 is a calculation unit that calculates an updated threshold value 37 using a formula that will be explained later. 42 is a threshold storage means;
Reference numeral 43 denotes a mismatch area storage means that stores all the threshold values 37 for calculating the mismatch area so far and the mismatch area 40 at that time. Reference numeral 44 denotes a termination determination unit which reads out all sets of these threshold values 45 and non-matching areas 46 with respect to these, determines whether or not termination conditions described later are satisfied, and ends if the termination conditions are satisfied. A signal 36 and a calculated threshold value 19 are output.

第6図は第3図(第5図)の算出閾値V。19の算出方
法のフローチャートである。第3図(第5図)の閾値更
新手段29の算出閾値■c19の算出手順を第6図によ
り説明する。先に不一致面積S40の算出方法について
は既に説明したが、今度は閾値更新手段29でまず閾値
V38の初期値V1を算出しくステップ200) 、つ
ぎに不一致面積Snを算出して(ステップ201) 、
終了条件が成立したか否か判断したのち(ステップ20
2) 、n =n+1として閾値Vnを算出しくステッ
プ203)、この閾値V38を順に様々に変化させて各
閾値Vll V2・・・、Vnに対する不一致面積S4
0の各不一致面積SI+S2+・・・tsnを求める動
作(ステップ201)を終了条件が成立する(ステップ
202)までくり返す。この23 ときの終了条件(ステップ202)は次式となる。
FIG. 6 shows the calculation threshold V of FIG. 3 (FIG. 5). 19 is a flowchart of the calculation method of No. 19. The procedure for calculating the calculation threshold c19 of the threshold updating means 29 in FIG. 3 (FIG. 5) will be explained with reference to FIG. 6. The method for calculating the mismatch area S40 has already been explained above, but this time, the threshold updating means 29 first calculates the initial value V1 of the threshold V38 (step 200), and then calculates the mismatch area Sn (step 201).
After determining whether the termination condition is satisfied (step 20
2) Calculate the threshold value Vn with n = n+1 (step 203), and sequentially change this threshold value V38 in various ways to calculate the discrepancy area S4 for each threshold value Vll V2..., Vn
The operation of calculating each mismatch area SI+S2+...tsn of 0 (step 201) is repeated until the end condition is satisfied (step 202). The termination condition at 23 (step 202) is as follows.

V、−VI11= 1かつs 、< s dかつSWl
≧SdここでQ、m=1〜n、最小検出面積Sdである
V, -VI11=1 and s, < s d and SWl
≧Sd where Q, m=1 to n, and the minimum detection area Sd.

この終了条件が成立したときに閾値V。=VAとして算
出閾値V019が求められ閾値算出が終了し、この時点
で閾値更新手段29より終了信号36が閾値算出制御部
28に送られ、算出閾値V。19が検査装置本体部1に
送られる。
Threshold V when this termination condition is met. =VA, the calculation threshold value V019 is obtained, and the threshold calculation is completed. At this point, the threshold value updating means 29 sends the end signal 36 to the threshold calculation control unit 28, and the calculation threshold value V is determined. 19 is sent to the inspection device main body section 1.

第7図は第5図の演算部41の計算方法のセカント法お
よびセカント法とはさみうち法を組み合わせた方法の説
明図である。第5図の閾値更新手段29の演算部41の
計算方法のセカント法とはさみうち法を組み合わせた方
法の計算手順を第7図により説明する。まずセカント法
では閾値■(階調)の初期値Vll V2は差画像16
の標順偏差の整数倍などの値から算出するかまたは入力
し、閾値V3からは次式により閾値vnを更新する。
FIG. 7 is an explanatory diagram of the secant method and the combination of the secant method and the scissors method as calculation methods of the calculating section 41 of FIG. The calculation procedure of the calculation method of the calculation unit 41 of the threshold value updating means 29 shown in FIG. 5, which is a combination of the secant method and the scissors method, will be explained with reference to FIG. First, in the secant method, the initial value Vll V2 of the threshold ■ (gradation) is the difference image 16
The threshold value vn is calculated or inputted from a value such as an integral multiple of the standard deviation of , and from the threshold value V3, the threshold value vn is updated by the following formula.

24− この式はn=3とおくと第7図の点Pl*P2+P3を
見ればわかるように点PI+P2を通る直線と不一致面
積S(画素)の直線5=Sdとの交点の■座標を閾値V
3として不一致面積S3の点S3を決定することに対応
する。このさい検査対象によっては不一致面積Sの対数
をとり、 として、収束を速めることも可能である。つぎにこの処
理に加え、はさみうち法を組み合わせて、例えば第7図
の点” n−1+ P n−2のようにSn−菫くS 
a r 5n−z< S aとなったときには(1)式
の添字n−2をn−3に変えた次の式を用いることとす
る。
24- This formula sets n=3, and as can be seen by looking at the point Pl*P2+P3 in Figure 7, the threshold is V
3 corresponds to determining the point S3 of the mismatch area S3. At this time, depending on the object to be inspected, it is also possible to take the logarithm of the mismatch area S as follows to speed up the convergence. Next, in addition to this process, by combining the scissors method, for example, the point ``n-1+P n-2'' in Figure 7 is
When a r 5n-z<S a, the following equation is used in which the subscript n-2 of equation (1) is changed to n-3.

これがはさみうち法の処理であって、 この処理よ ?5− り必ず最適閾値■。に収束させることができる。This is the process of the scissors method, This process ? 5- Always use the optimal threshold ■. can be converged to.

第8図は第5図の演算部41の計算方法のはさみうち法
の説明図である。第5図の閾値更新手段29の演算部4
1の計算方法のはさみうち法の計算手順を免8図により
説明する。先にセカント法と組み合せてはさみうち法の
計算式(3)を既に説明したが、このはさみうち法のセ
カント法との違いは閾値Vの初期値V I + V 2
のうちVlを十分小さくとり、V2を十分大きくとるこ
とにより、不一致面積SのS、≧Sd、S2〈Sdとし
て、初めから初期値V I r V 2の間に最適閾値
V。があるという状態で(3)により算出を行う点であ
る。
FIG. 8 is an explanatory diagram of the scissors method of calculation performed by the arithmetic unit 41 of FIG. Arithmetic unit 4 of threshold value updating means 29 in FIG.
The calculation procedure of the scissors method of calculation method 1 will be explained with reference to Figure 8. We have already explained the calculation formula (3) of the scissor method in combination with the secant method, but the difference between the scissor method and the secant method is that the initial value of the threshold V is V I + V 2
By setting Vl sufficiently small and V2 sufficiently large, the optimum threshold V is set between the initial value V I r V 2 from the beginning, where S, ≧ Sd, S2 < Sd of the mismatch area S. The point is that calculation is performed using (3) under the condition that .

第9図は第5図の演算部41の計算方法の2分法の説明
図である。第5図の閾値更新手段29の演算部41の計
算方法の2分法の計算手順を第9図により説明する。こ
の2分法では先のはさみうち法と同様に閾値Vの初期値
VIIV2として十分小さなVlと十分大きなV2を与
えることにより、S+>Sd、S2〈Sdとして、閾値
V3は初期値V I + V 2の中点をと−+てVs
= (VllV2)/2とり、、こ26 (vn−2+vn−1) / 2とし、S n < S
 dかつS n−2>S n−3またはSn≧sdかつ
S n−2< S n−3のとき、点P。−2とP。−
3を交換するという動作を逐次的にくり返す。この動作
により必ず最適閾値V。に収束する。
FIG. 9 is an explanatory diagram of the dichotomy of the calculation method of the arithmetic unit 41 of FIG. The calculation procedure of the bisection method used by the calculating section 41 of the threshold updating means 29 shown in FIG. 5 will be explained with reference to FIG. 9. In this dichotomy, by giving a sufficiently small Vl and a sufficiently large V2 as the initial value VIIV2 of the threshold V, as in the previous scissors method, the threshold V3 becomes the initial value V I + V, with S+>Sd and S2<Sd. Take the midpoint of 2 - + and Vs
= (VllV2)/2, 26 (vn-2+vn-1)/2, and S n < S
d and S n-2>S n-3 or Sn≧sd and S n-2<S n-3, then point P. -2 and P. −
The operation of exchanging 3 is repeated sequentially. This operation ensures that the optimal threshold value V is reached. converges to.

上記の第7図ないし第9図の演算部41の計算方法で、
第7図のセカント法は最適閾値■。の付近に速く移動す
るという長所があるが、閾値Vと不一致面積Sの関係で
傾きが水平に近くなると収束しなくなるという短所があ
る。第8図のはさみうち法は必ず最適閾値V。に収束す
るという長所があるが、初期値V、、V2の間隔を大き
くとる必要があるため収束が遅くなるという短所がある
。したがって第7図の説明のようにセカン1−法とはさ
みうち法を組み合わせた方法により、初めにセカント法
で最適閾値V。付近まで高速に移動したのち、十分に最
適閾値Vcの存在範囲を限定した範囲ではさみうち法を
適用できるため、単調に小さ7− い順または大きい順に閾値vnを変化させる場合に比べ
高速に閾値V。を算出することができる。
In the calculation method of the arithmetic unit 41 shown in FIGS. 7 to 9 above,
The secant method in Figure 7 has an optimal threshold ■. It has the advantage that it moves quickly near , but it has the disadvantage that it no longer converges when the slope approaches the horizontal due to the relationship between the threshold value V and the mismatch area S. The scissors method shown in Fig. 8 always has an optimal threshold value V. It has the advantage that it converges to , but it has the disadvantage that it converges slowly because it is necessary to have a large interval between the initial values V, , V2. Therefore, as explained in FIG. 7, by using a method that combines the second method and the scissors method, the optimum threshold value V is first determined by the second method. After moving quickly to the vicinity, the sandwiching method can be applied in a sufficiently limited range where the optimal threshold value Vc exists, so the threshold value can be changed more quickly than when changing the threshold value vn monotonically in descending order or in descending order. V. can be calculated.

第10図は第1図の閾値算出手段2aの第2の構成側口
である。この第2の構成例では第3図の構成例と違って
、検査装置本体部1aより検査対象の本来同一であるべ
きパターンを検出した画像の差画像16を入力して閾値
19の算出を行うため、差画像記憶手段60を有するが
第3図のセレクタ22と画像記憶手段23a、 23b
と差画像検出手段24とが不要となるので、第3図の構
成例に比尺て閾値算出手段2aの構成が簡単になるとい
う利点がある。
FIG. 10 shows a second configuration side entrance of the threshold value calculation means 2a of FIG. 1. In this second configuration example, unlike the configuration example shown in FIG. 3, the threshold value 19 is calculated by inputting the difference image 16 of images in which patterns that should originally be the same in the inspection target are detected from the inspection device main body 1a. Therefore, a difference image storage means 60 is provided, but the selector 22 and image storage means 23a and 23b shown in FIG.
Since the difference image detecting means 24 and the difference image detecting means 24 are not required, there is an advantage that the structure of the threshold value calculating means 2a is simplified compared to the structure example shown in FIG.

この閾値19の算出手順は第3図と同様である。The procedure for calculating this threshold value 19 is the same as that shown in FIG.

第11図は第1図の閾値算出手段2aの第3の構成側口
である。この第3の構成例では第3図の構成例と違って
検査装置本体部1aより検査対象の本来同一であるべき
パターンを検出した画像の差画像16の2値画像18を
入力して閾値19の算出を行うが、ただしこの構成の場
合には閾値19を変える毎に2値化画像18を入力する
必要がある。この構成例では第3図のセレクタ22と画
像記憶手段23a。
FIG. 11 shows a third component side entrance of the threshold value calculation means 2a of FIG. 1. In this third configuration example, unlike the configuration example in FIG. However, in this configuration, it is necessary to input the binarized image 18 every time the threshold value 19 is changed. In this configuration example, the selector 22 and image storage means 23a shown in FIG. 3 are used.

=28 23bと差画像検出手段24と2値化手段25と閾値記
憶手段26とが不要であるので、第3図の構成例に比べ
て閾値算出手段2aの構成がさらに簡単になるという利
点がある。この閾値19の算出手順は第3図と同様であ
る。
=28 23b, the difference image detection means 24, the binarization means 25, and the threshold value storage means 26 are not required, so the advantage is that the configuration of the threshold value calculation means 2a is simpler than the configuration example shown in FIG. be. The procedure for calculating this threshold value 19 is the same as that shown in FIG.

第12は本発明によるパターン比較検査方法および装置
の第2の実施例を示す構成図である。第12図において
、1bは検査装置本体部、2bは閾値算出手段である。
The twelfth is a configuration diagram showing a second embodiment of the pattern comparison inspection method and apparatus according to the present invention. In FIG. 12, 1b is the main body of the inspection device, and 2b is threshold calculation means.

61は座標算出手段で2値画像18とステージ3の移動
量64をもとに座!7i!62を算出する。
61 is a coordinate calculation means that calculates the position based on the binary image 18 and the movement amount 64 of the stage 3! 7i! Calculate 62.

この構成は第1図とほぼ同様であるが、その違いは検査
装置本体部1bに座標算出手段61と、ステージ3の移
動量64があって、第1図の切換スイッチ20がないこ
とと、閾値算出手段2bり内部構成と、第1図の画像取
込み指令■1の代りに検査指令63があることなどであ
る。
This configuration is almost the same as that in FIG. 1, but the difference is that the inspection device main body 1b has a coordinate calculation means 61 and a movement amount 64 of the stage 3, and the changeover switch 20 in FIG. 1 is not present. The internal configuration of the threshold value calculation means 2b is different, and the inspection command 63 is provided in place of the image capture command 1 shown in FIG.

第13図は第12図のパターン比較検査方法の第1のフ
ローチャートである。第12図の各部の動作を第13図
のフローチャー1−により説明する。まず検査者が検査
対象の品種が検査を行ったことがある9 かどうかを調べ(ステップ100) 、検査したことが
あれば既に最適閾値が算出しであるのでこの閾値19を
閾値記憶手段9に入力しくステップ10■)、実際の検
査を行う(ステップ105)。またこれまでに検査した
ことのない品種の場合には検査者が閾値算出指令10を
閾値算出手段2bに送って閾値算出を起動する(ステッ
プ102)。これらの判定(ステップ100)は検査者
が行わずに記憶手段に品種名と最適閾値を登録しておい
て自動的に行ってもよい。ここまでの手順は第2図のフ
ローチャート・と同じである。つぎに閾値算出手段2a
では制御部5に検査指令63を送って試し検査を行うが
、この試し検査では閾値記憶手段9に適当な閾値17を
セットするか算出するかして検査を行う。この試し検査
は実際の検査(ステップ105)と同様の動作を行うが
、これについて説明する。まず制御部5からステージ移
動指令12によりステージ3を動かすと同時に撮像指令
13により撮像手段4から検出画像14を入力し、この
検出画像14を差画像検出手段7に送ると共に画像記憶
手段6に記憶して0 おく。ついである一定の時間だけ遅延させて記憶画像1
5を取り出すことにより、差画像検出手段7では検査対
象の本来同一であるべき隣接パターンを検出した検出画
像14と記憶画像15との差画像16を得ることができ
る。この差画像16を2値化手段8では閾値記憶手段9
に記憶された閾値19で2値化することによりパターン
の欠陥候補を検出した2値画像18を得る。座標算出手
段61ではこの2値画像18とステージ3の移動量64
をもとにパターンの欠陥候補の座標62を算出して出力
し、ここで試し検査を終了する(ステップ106)。つ
ぎに目視確認を行うが、この目視確認では欠陥候補の座
標62にもとづき制御部5からのステージ移動指令12
と撮像指令13によりステージ3と撮像手段4を動作さ
せ、欠陥候補の画像を取り込んで検査者がこれをモニタ
等で観察することにより真の欠陥であるか、それとも誤
検出であるかの判断をして、誤検出の座標62を閾値算
出手段2bに送る。この目視確認は画像ではなく直接に
顕微鏡等で見て行ってもよい(ステップ107)。つぎ
にこの誤検出率68 標62をもとに閾値算出手段2bで閾値算出を行って算
出閾値19を閾値記憶手段9にセットしくステップ10
8) 、その後に実際の検査を行う(ステップ105)
。このようにして検査対象の多品種に対応した検査を行
うことができる。
FIG. 13 is a first flowchart of the pattern comparison inspection method of FIG. 12. The operation of each part in FIG. 12 will be explained using flowchart 1- in FIG. 13. First, the inspector checks whether the product to be inspected has ever been inspected (step 100), and if it has been inspected, the optimum threshold value has already been calculated, so this threshold value 19 is stored in the threshold storage means 9. Step 10 (2) is entered, and actual inspection is performed (Step 105). Furthermore, in the case of a product type that has not been inspected before, the inspector sends a threshold value calculation command 10 to the threshold value calculation means 2b to start threshold value calculation (step 102). These determinations (step 100) may not be performed by the inspector, but may be performed automatically by registering the product name and optimal threshold value in the storage means. The procedure up to this point is the same as the flowchart in FIG. Next, threshold value calculation means 2a
Then, an inspection command 63 is sent to the control section 5 to perform a trial inspection. In this trial inspection, an appropriate threshold value 17 is either set in the threshold storage means 9 or calculated. This trial inspection performs the same operation as the actual inspection (step 105), which will be explained below. First, the stage 3 is moved by the stage movement command 12 from the control section 5, and at the same time, the detected image 14 is inputted from the imaging means 4 by the imaging command 13, and this detected image 14 is sent to the difference image detection means 7 and stored in the image storage means 6. Then set it to 0. Then, after a certain period of time delay, memory image 1
5, the difference image detecting means 7 can obtain a difference image 16 between the stored image 15 and the detected image 14 in which adjacent patterns of the inspection object that should be the same are detected. This difference image 16 is binarized by means 8 and threshold storage means 9.
By performing binarization using a threshold value 19 stored in , a binary image 18 in which pattern defect candidates are detected is obtained. The coordinate calculation means 61 calculates this binary image 18 and the movement amount 64 of the stage 3.
The coordinates 62 of the pattern defect candidate are calculated and output based on , and the trial inspection ends here (step 106). Next, a visual check is performed, but in this visual check, the stage movement command 12 from the control unit 5 is determined based on the coordinates 62 of the defect candidate.
The stage 3 and the imaging means 4 are operated according to the imaging command 13, and an image of the defect candidate is captured, and the inspector observes this on a monitor or the like to determine whether it is a true defect or a false detection. Then, the erroneously detected coordinates 62 are sent to the threshold calculation means 2b. This visual confirmation may be performed by directly observing with a microscope or the like instead of using an image (step 107). Next, the threshold value calculation means 2b calculates the threshold value based on this false detection rate 68 standard 62, and the calculated threshold value 19 is set in the threshold value storage means 9.Step 10
8) Then perform the actual inspection (step 105)
. In this way, it is possible to perform inspections that correspond to a wide variety of products to be inspected.

第14図は第13図の閾値V l 9と誤検出率fの関
係を示す説明図である。第14図において、パターンの
欠陥候補の誤検出率fを例えば検査対象のチップ当りの
誤検出の個数と定義し、この誤検出率f(個/チツプ)
と閾値V(階調)の関係を調べると図示のように単調減
少の関係になる。ここで誤検出率fがある適当な設定値
fdより小さくなる最小閾値■。を最適閾値として求め
ることにする。
FIG. 14 is an explanatory diagram showing the relationship between the threshold value V l 9 in FIG. 13 and the false detection rate f. In FIG. 14, the false detection rate f of pattern defect candidates is defined as the number of false detections per chip to be inspected, and this false detection rate f (pieces/chip)
When examining the relationship between V and the threshold value V (gradation), it becomes a monotonically decreasing relationship as shown in the figure. Here, the minimum threshold ■ that makes the false detection rate f smaller than a certain appropriate setting value fd. is determined as the optimal threshold value.

この最小閾値V。の算出を行うための閾値算出手段2b
の構成を第15図に示す。
This minimum threshold value V. Threshold calculation means 2b for calculating
The configuration is shown in FIG.

第15図は第12図の閾値算出手段2bの構成側図であ
る。第15図において、28は閾値算出制御部、29は
閾値更新手段、65は誤検出座標記憶手段で座標算出手
段61から送られる誤検出座標62を記憶しておく。6
6は誤検出率算出手段で誤検出座標62ま−3ま たは誤検出座標67により誤検出率68を算出する。
FIG. 15 is a side view of the configuration of the threshold value calculation means 2b of FIG. 12. In FIG. 15, 28 is a threshold value calculation control section, 29 is a threshold value updating means, and 65 is an erroneously detected coordinate storage means that stores the erroneously detected coordinates 62 sent from the coordinate calculation means 61. 6
Reference numeral 6 denotes an erroneous detection rate calculation means which calculates an erroneous detection rate 68 from the erroneous detection coordinates 62 to 3 or the erroneous detection coordinates 67.

69はセレクタでセレクト信号70により誤検出座標6
2を誤検出座標記憶手段65または誤検出率算出手段6
6に送る。
69 is a selector which detects incorrectly detected coordinates 6 by a select signal 70.
2 to the erroneous detection coordinate storage means 65 or the erroneous detection rate calculation means 6
Send to 6.

つぎに第15図の閾値算出の動作を説明する。まず目視
確認終了用後(第13図のステップ107) 、誤検出
座標62を検査装置本体部1より入力する。セレクタ6
9ではセレクト信号70により誤検出座標62を誤検出
座標記憶手段65に送って記憶させる。つぎに誤検出率
算出手段66では誤検出座標62をカウントして誤検出
率f68を算出する。ついで閾値更新手段29出は誤検
出率68をもとに閾値19を更新して検査装置本体部1
bの閾値記憶手段9にセットする。ここで閾値算出制御
部28より検査指令63を検査装置本体部1bに送って
試し検査(第13図のステップ106)と同じ箇所を検
査する。つぎにその検査結果の欠陥候補の座標62を受
は取り、この座標62をセレクタ62ではセレクト信号
70により誤検出1$算出手段66に送って、ここで誤
検出座標記憶手段65に記憶しである誤検出座標67と
照合することにより誤検出率f68を算出する。ついで
閾値更新手段29ではこの誤検出率f68をもとに第3
図(第5図)の不一致面積S40の場合と同様の終了判
定(第6図のステップ202)を行う。ここで終了条件
が満たされない場合にはさらに閾値19を更新して同様
の処理をくり返す。こうして終了条件が満たされたとき
には誤検出率f(個/チツプ)が設定値fd以下となる
算出閾値V。19を検査装置本体部1bにセットして閾
値算出の処理を終了する(第13図のステップ108)
Next, the operation of calculating the threshold value shown in FIG. 15 will be explained. First, after completing the visual confirmation (step 107 in FIG. 13), the erroneously detected coordinates 62 are input from the inspection apparatus main body 1. Selector 6
At step 9, the erroneously detected coordinates 62 are sent to the erroneously detected coordinates storage means 65 by the select signal 70 and are stored therein. Next, the false detection rate calculation means 66 counts the false detection coordinates 62 and calculates the false detection rate f68. Next, the threshold value updating means 29 updates the threshold value 19 based on the false detection rate 68, and updates the threshold value 19 based on the false detection rate 68.
Set in the threshold storage means 9 of b. Here, the threshold calculation control section 28 sends an inspection command 63 to the inspection apparatus main body section 1b to inspect the same location as the trial inspection (step 106 in FIG. 13). Next, the coordinates 62 of the defect candidate as a result of the inspection are received, and the selector 62 sends the coordinates 62 by a select signal 70 to the false detection 1$ calculation means 66, where it is stored in the false detection coordinate storage means 65. A false detection rate f68 is calculated by comparing with a certain false detection coordinate 67. Next, the threshold value updating means 29 calculates a third value based on this false detection rate f68.
The same termination determination (step 202 in FIG. 6) as in the case of the mismatch area S40 in the figure (FIG. 5) is performed. If the termination condition is not satisfied here, the threshold value 19 is further updated and the same process is repeated. When the termination condition is satisfied in this way, the calculation threshold value V is such that the false detection rate f (pieces/chip) becomes equal to or less than the set value fd. 19 in the inspection device main body 1b to complete the threshold calculation process (step 108 in FIG. 13).
.

このように第12図(第15図)の実施例によれば、誤
検出のでない閾値■。で正確な検査を行うことができ、
その不良原因をチエツクして有効な対策ができる。また
第15図の閾値更新手段29の構成は第5図の構成で不
一致面積記憶手段43を誤検出率記憶手段に置き換えて
誤検出率68を入力するようにすればよい。この場合の
閾値更新手段29の動作も先と同様であって、閾値更新
手段29の演算部41の計算方法も先のセカント法とは
さみうち法を併用した方法と、はさみうち法単独と、2
分法などで閾値V。を算出できる。ここでは閾値算出手
段2bで誤検出率f68を用いて閾値V。の算出を行っ
ているが、他の評価量を用いて同様の処理で閾値■oを
求めることができる。
As described above, according to the embodiment shown in FIG. 12 (FIG. 15), the threshold value ■ does not cause false detection. Accurate inspection can be carried out with
You can check the cause of the failure and take effective countermeasures. Further, the configuration of the threshold value updating means 29 in FIG. 15 may be changed to the configuration shown in FIG. 5 by replacing the mismatch area storage means 43 with a false detection rate storage means and inputting the false detection rate 68. The operation of the threshold value updating means 29 in this case is also the same as above, and the calculation method of the calculation unit 41 of the threshold value updating means 29 is the method using the secant method and the scissor method in combination, the method using the scissors method alone, and the two methods.
Threshold value V in division method etc. can be calculated. Here, the threshold value V is calculated using the false detection rate f68 by the threshold value calculation means 2b. However, the threshold value ■o can be obtained by similar processing using other evaluation quantities.

第16図は第13図の閾値VI9と欠陥の見逃し率Mの
関係を示す説明図である。第16図においてパターンの
欠陥の見逃し率Mを例えば検査対象のチップ当りの見逃
しの個数と定義し、この見逃し率M(個/チツプ)と閾
値V(階調)の関係を調べると図示のように単調増加の
関係になる。ここで見逃し率Mがある適当な設定値M、
未満となる最大閾値V。を最適閾値として求めることに
する。これによりほぼ全ての欠陥を見つけることができ
るため全ての不良原因をチエツクして対策できる。
FIG. 16 is an explanatory diagram showing the relationship between the threshold value VI9 in FIG. 13 and the defect overlooking rate M. In FIG. 16, the missed pattern defect rate M is defined as, for example, the number of missed defects per chip to be inspected, and the relationship between this missed rate M (pieces/chip) and the threshold value V (gradation) is examined as shown in the figure. is a monotonically increasing relationship. Here, an appropriate setting value M with a missed rate M,
The maximum threshold value V that is less than. is determined as the optimal threshold value. This allows almost all defects to be found, allowing all causes of defects to be checked and countermeasures to be taken.

ただしこの閾値算出を行うためにはパターンの欠陥の座
標があらかしめ判っている必要があるが、これには第1
3図のフローチャー1〜のように試し検査(ステップ1
06)と、目視確認(ステップ107)を行うか、また
は欠陥を埋め込んだテストパターンを用意すればよい。
However, in order to calculate this threshold value, it is necessary to know the coordinates of the defect in the pattern.
Trial inspection (step 1) as shown in flowchart 1~ in Figure 3.
06) and visual confirmation (step 107), or a test pattern in which defects are embedded may be prepared.

5 第17図は第12図のパターン比較検査方法の第2のフ
ローチャートである。第17図において、まず検査した
ことのある品種かどうかを調べ(ステップ100) 、
検査したことのある品種であればその閾値の入力を行い
(ステップ101.) 、実際の検査を行う(ステップ
105)。また検査したことのない品種の場合には閾値
算出の起動を行い(ステップ102) 、画像を入力し
くステップ103) 、その画像より閾値を算出しくス
テップ104) 、この閾値で試し検査を行い(ステッ
プ106) 、ついで目視確認を行い(ステツプ107
)、誤検出率fより閾値算出を行って(ステップ1.0
8) 、実際の検査を行う(ステップ105)。この場
合には先の閾値算出手段2a、2bの両方が必要となる
。この検査方法によれば閾値の精度を高めることができ
る。
5. FIG. 17 is a second flowchart of the pattern comparison inspection method of FIG. 12. In FIG. 17, first check whether the variety has been tested before (step 100);
If the product has been previously inspected, the threshold value is input (step 101), and the actual inspection is performed (step 105). In addition, in the case of a product that has not been inspected before, threshold value calculation is started (step 102), an image is inputted (step 103), a threshold value is calculated from that image (step 104), and a trial inspection is performed using this threshold value (step 104). 106), then perform a visual check (step 107).
), calculate the threshold value from the false detection rate f (step 1.0
8) Perform actual inspection (step 105). In this case, both of the aforementioned threshold value calculation means 2a and 2b are required. According to this inspection method, the accuracy of the threshold value can be improved.

第18図は第12図のパターン比較検査方法の第3のフ
ローチャー1・である。第18図において、まず検査し
たことのある品種かどうかを調べ(ステップ100) 
、検査したことのある品種であればその閾値を入力しく
ステップ1.01) 、実際の検査を行6 う(ステップ105)。また検査したことのない品種の
場合には閾値算出を起動しくステップ102)、画像を
入力しくステップ103) 、この画像により閾値を算
出しくステップ104) 、この閾値で試し検査を行い
(ステップ1(16) 、ついで目視確認を行い(ステ
ップ1.07) 、ここで判明した誤検出の発生した箇
所の画像を入力しくステップ109)、この画像より閾
値算出を行い(ステップ108)、実際の検査を行う(
ステツプ105)。この検査方法によれば同様に閾値の
精度を高めることができる。
FIG. 18 is the third flowchart 1 of the pattern comparison inspection method of FIG. 12. In Figure 18, first check whether the variety has been inspected before (step 100).
If the product has been previously inspected, enter the threshold value (step 1.01) and perform the actual inspection (step 105). In addition, in the case of a product that has not been inspected before, start threshold calculation (step 102), input an image (step 103), calculate the threshold using this image (step 104), and perform a trial inspection using this threshold (step 1 ( 16) Next, perform a visual check (step 1.07), input the image of the location where the false detection found here has occurred (step 109), calculate the threshold value from this image (step 108), and perform the actual inspection. conduct(
Step 105). According to this inspection method, the accuracy of the threshold value can be similarly improved.

上記の実施例では差画像16の特徴量として不一致面積
Sを用いて閾値Vの算出を行う例を説明したが、これに
限定されるものでなく、他の特徴量を用いて閾値算出を
行ってもよく、その他の特徴量としては例えば差画像1
6(2値画像18)の周囲長、投撮長、体積(明るさが
ある値以上となる画素の明るさの和)などがある。
In the above embodiment, an example was explained in which the threshold value V is calculated using the mismatch area S as the feature amount of the difference image 16, but the invention is not limited to this, and the threshold value calculation may be performed using other feature amounts. For example, the difference image 1 may be used as other feature quantities.
6 (binary image 18), projection length, volume (sum of brightness of pixels whose brightness exceeds a certain value), etc.

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

本発明によれば、検査対象の品種により本来同一である
べきパターンの差画像の2値化の最適閾値37 値を設定して検査を行うことができるので多品種への対
応が可能である。
According to the present invention, it is possible to carry out inspection by setting the optimum threshold value for binarizing the difference image of patterns that should be the same depending on the product to be inspected, so it is possible to handle a wide variety of products.

また正常なパターンを誤って検出しないような最適閾値
で検査を行うことができるので検査の精度を高めること
がか能である。
Furthermore, since inspection can be performed using an optimal threshold value that does not erroneously detect normal patterns, it is possible to improve the accuracy of inspection.

さらに複数の閾値とその閾値によって観測された誤検出
量との関係から閾値を更新してゆき収束させることがで
きるので最適閾値を高速に算出することが可能となるな
どの効果がある。
Further, since the threshold value can be updated and converged based on the relationship between a plurality of threshold values and the amount of false detections observed by the threshold value, there is an effect that the optimal threshold value can be calculated at high speed.

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

第1図は本発明によるパターン比較検査方法および装置
の第1の実施例を示す構成図、第2図は第1図検査方法
のフローチャート、第3図は第1図の閾値算出手段の第
Iの構成側口、第4図は第3図の閾値と不一致面積の関
係の説明図、第5図は第3図の閾値更新手段構成側口、
第6図は第3図(第5図)の閾値算出方法のフローチャ
ー1・、第7図は第5図の演算部のセカント法の説明図
、第8図は第5図の演算部のはさみうち法の説明図、第
9図は第5図の演算部の2分法の説明図、第108 図は第工図の閾値算出手段の第2の構成測量、第11図
は第1図の閾値算出手段の第3の構成側口、第12図は
本発明によるパターン比較検査方法および装置の第2の
実施例を示す構成図、第13図は第12図の検査方法の
第Iのフローチャート、第14図は第13図の閾値と誤
検出率の関係の説明図、第15図は第12図の閾値算出
手段の構成測量、第16図は第13図の閾値と見逃し率
の関係の説明図、第17図は第12図の検査方法の第2
のフローチャート、第18図は第12図の検査方法の第
3のフローチャート、第19図は従来のパターン比較検
査方法および装置の一例を示す構成図、第20図は第1
9図の検出画像例の説明図である。
FIG. 1 is a block diagram showing a first embodiment of the pattern comparison inspection method and apparatus according to the present invention, FIG. 2 is a flowchart of the inspection method of FIG. 1, and FIG. 4 is an explanatory diagram of the relationship between the threshold in FIG. 3 and the mismatch area, and FIG. 5 is the configuration side of the threshold updating means in FIG. 3.
Figure 6 is a flowchart 1 of the threshold calculation method in Figure 3 (Figure 5), Figure 7 is an explanatory diagram of the secant method in the calculation unit in Figure 5, and Figure 8 is an illustration of the secant method in the calculation unit in Figure 5. Fig. 9 is an explanatory diagram of the dichotomy of the calculating section in Fig. 5, Fig. 108 is the second component survey of the threshold calculation means in the engineering drawing, Fig. 11 is the illustration of Fig. 1. FIG. 12 is a block diagram showing a second embodiment of the pattern comparison inspection method and apparatus according to the present invention, and FIG. Flowchart, Figure 14 is an explanatory diagram of the relationship between the threshold value in Figure 13 and the false detection rate, Figure 15 is a configuration survey of the threshold calculation means in Figure 12, and Figure 16 is the relationship between the threshold value in Figure 13 and the missed rate. Fig. 17 is an explanatory diagram of the second inspection method of Fig. 12.
18 is a third flowchart of the inspection method of FIG. 12, FIG. 19 is a block diagram showing an example of a conventional pattern comparison inspection method and apparatus, and FIG.
FIG. 9 is an explanatory diagram of the detected image example of FIG. 9;

Claims (1)

【特許請求の範囲】 1、検査対象の本来同一であるべきパターンを検出した
画像の差画像の2値化画像を用いたパターン比較検査方
法おいて、検査対象の品種毎に2値化の最適閾値を算出
して設定することを特徴とするパターン比較検査方法。 2、検査対象の本来同一であるべきパターンを検出する
手段と、該検出画像を記憶する手段と、該検出画像の差
画像を検出する手段と、該差画像を2値化する手段とか
らなるパターン比較検査装置において、検査対象の品種
毎に2値化する最適閾値を算出する手段と、該閾値を設
定する手段とを設けたことを特徴とするパターン比較検
査装置。 3、検査対象の本来同一であるべきパターンを検出した
画像の差画像の2値化画像を用いたパターン比較検査方
法において、複数の検出画像から求められる差画像また
は2値化画像の特徴量から2値化の最適閾値を算出して
設定することを特徴とするパターン比較検査方法。 4、検査対象の本来同一であるべきパターンを検出する
手段と、該検出画像を記憶する手段と、該検出画像の差
画像を検出する手段と、該差画像を2値化する手段とか
らなるパターン比較検査装置において、複数の検出画像
から求められる差画像または2値化画像の特徴量を算出
する手段と、該特徴量から2値化する最適閾値を算出す
る手段と、該閾値を設定する手段とを設けたことを特徴
とするパターン比較検査装置。 5、検査対象の本来同一であるべきパターンを検出した
画像の差画像の2値化画像を用いたパターン比較検査方
法において、複数の2値化の閾値と該閾値によってえら
れた2値化画像の特徴量との関係から2値化の閾値を更
新することにより最適閾値を設定することを特徴とする
パターン比較検査方法。 6、検査対象の本来同一であるべきパターンを検出する
手段と、該検出画像を記憶する手段と、該検出画像の差
画像を検出する手段と、該差画像を2値化する手段とか
らなるパターン比較検査装置において、複数の2値化す
る閾値と該閾値によってえられた2値化画像の特徴量と
の関係から2値化の閾値を更新する手段と、該更新の終
了を判定する手段と、該更新の終了した閾値を設定する
手段とを設けたことを特徴とするパターン比較検査装置
。 7、検査対象の本来同一であるべきパターンを検出した
画像の差画像の2値化画像を用いたパターン比較検査方
法において、複数の2値化の閾値と該閾値によってえら
れた2値化画像の面積との関係から2値化の閾値を更新
することにより最適閾値を設定することを特徴とするパ
ターン比較検査方法。 8、請求項7記載のパターン比較検査方法において、閾
値を更新する方法として、閾値に対して2値化画像の面
積が単調減少の関係にあるのに対して、閾値がある設定
値となるときの面積の値を求める方法において、閾値の
2つの値に対する面積の値を求め、これを結ぶ直線と面
積の設定値との交点から閾値を更新し、かつ面積が設定
値を越えたときからは必ず設定値をはさむように2点を
結ぶことにより更新する逐次的計算方法を用いることを
特徴とするパターン比較検査方法。 9、請求項7記載のパターン比較検査方法において、閾
値を更新する方法としてセカント法と、はさみうち法と
、2分法とのうちの1つを用いることを特徴とするパタ
ーン比較検査方法。 10、請求項7記載のパターン比較検査方法において、
閾値を更新する方法としてセカント法と、はさみうち法
と、2分法とのうちの少なくとも2つ以上を組み合わせ
て用いることを特徴とするパターン比較検査方法。 11、検査対象の本来同一であるべきパターンを検出す
る手段と、該検出画像を記憶する手段と、該検出画像の
差画像を検出する手段と、該差画像を2値化する手段と
からなるパターン比較検査装置において、2値化画像の
ラベリングを行う手段と、該ラベル中の連結成分の最大
面積を求める手段と、該最大面積を記憶する手段と、複
数の2値化する閾値と該閾値によってえられた2値化画
像の最大面積との関係から2値化の閾値を更新する手段
と、該更新の終了を判定する手段と、該更新の終了した
閾値を設定する手段とを設けたことを特徴とするパター
ン比較検査装置。 12、検査対象の本来同一であるべきパターンを検出し
た画像の差画像の2値化画像を用いたパターン比較検査
方法において、比較検査した結果の情報を用いて正常パ
ターンの誤検出率をもとに、該誤検出率が設定値未満に
なるように2値化の閾値を設定することを特徴とするパ
ターン比較検査方法。 13、検査対象の本来同一であるべきパターンを検出し
た画像の差画像の2値化画像を用いたパターン比較検査
方法において、複数の2値化の閾値と該閾値によってえ
られた2値化画像の正常パターンの誤検出率との関係か
ら2値化の閾値を更新することにより最適閾値を設定す
ることを特徴とするパターン比較検査方法。 14、検査対象の本来同一であるべきパターンを検出す
る手段と、該検出画像を記憶する手段と、該検出画像の
差画像を検出する手段と、該差画像を2値化する手段と
からなるパターン比較検査装置おいて、複数の2値化の
閾値と該閾値によってえられた2値化画像の正常パター
ンの誤検出率との関係から2値化の閾値を更新する手段
と、該更新の終了を判定する手段と、該更新の終了した
閾値を設定する手段とを設けたことを特徴とするパター
ン比較検査装置。 15、検査対象の本来同一であるべきパターンを検出し
た画像の差画像の2値化画像を用いたパターン比較検査
方法において、比較検査した結果の情報を用いてパター
ン欠陥の見逃し率をもとに、該見逃し率が設定値未満に
なるように2値化の閾値を設定することを特徴とするパ
ターン比較検査方法。 16、検査対象の本来同一であるべきパターンを検出し
た画像の差画像の2値化画像を用いたパターン比較検査
方法において、複数の2値化の閾値と該閾値によってえ
られた2値化画像のパターン欠陥の見逃し率との関係か
ら2値化の閾値を更新することにより最適閾値を設定す
ることを特徴とするパターン比較検査方法。 17、検査対象の本来同一であるべきパターンを検出す
る手段と、該検出画像を記憶する手段と、該検出画像の
差画像を検出する手段と、該差画像を2値化する手段と
からなるパターン比較検査装置において、複数の2値化
の閾値と該閾値によってえられた2値化画像のパターン
欠陥の見逃し率との関係から2値化の閾値を更新する手
段と、該更新の終了を判定する手段と、該更新の終了し
た閾値を設定する手段とを設けたことを特徴とするパタ
ーン比較検査装置。 18、検査対象の本来同一であるべきパターンを検出す
る手段と、該検出画像を記憶する手段と、該検出画像の
差画像を検出する手段と、該差画像を2値化する手段と
からなるパターン比較検査装置において、検査対象の品
種毎に2値化する最適閾値を算出する手段と、該品種対
応の最適閾値を記憶する手段と、該閾値を設定する手段
とを設けたことを特徴とするパターン比較検査装置。 19、検査対象の本来同一であるべきパターンを検出す
る手段と、該検出画像を記憶する手段と、該検出画像の
差画像を検出する手段と、該差画像を2値化する手段と
、該2値化画像の座標を照合する手段とからなるパター
ン比較検査装置において、検査対象の品種毎に2値化す
る最適閾値を算出する手段と、該閾値を設定する手段と
を設けたことを特徴とするパターン比較検査装置。
[Scope of Claims] 1. In a pattern comparison inspection method using a binarized image of a difference image between images in which patterns that should originally be the same are detected, optimization of binarization for each type of inspection subject is provided. A pattern comparison inspection method characterized by calculating and setting a threshold value. 2. Consisting of a means for detecting a pattern of the inspection object that should be originally the same, a means for storing the detected image, a means for detecting a difference image of the detected image, and a means for binarizing the difference image. A pattern comparison and inspection apparatus, characterized in that the pattern comparison and inspection apparatus is provided with means for calculating an optimum threshold value for binarization for each product type to be inspected, and means for setting the threshold value. 3. In a pattern comparison inspection method using a binarized image of difference images of detected images that should originally be the same pattern of the inspection target, from the feature amount of the difference image or binarized image obtained from multiple detected images. A pattern comparison inspection method characterized by calculating and setting an optimal threshold for binarization. 4. Consisting of means for detecting patterns that should be originally the same in the inspection object, means for storing the detected image, means for detecting a difference image between the detected images, and means for binarizing the difference image. In a pattern comparison inspection device, a means for calculating a feature amount of a difference image or a binarized image obtained from a plurality of detected images, a means for calculating an optimal threshold value for binarization from the feature amount, and a means for setting the threshold value. 1. A pattern comparison inspection device comprising: means. 5. In a pattern comparison inspection method using a binarized image of a difference image of images in which a pattern of the inspection target that should be originally the same is detected, a plurality of binarization thresholds and a binarized image obtained by the thresholds are used. A pattern comparison inspection method characterized in that an optimal threshold is set by updating a threshold for binarization based on a relationship with a feature amount. 6. Consisting of means for detecting patterns that should be originally the same in the inspection object, means for storing the detected image, means for detecting a difference image between the detected images, and means for binarizing the difference image. In a pattern comparison inspection device, a means for updating a binarization threshold based on a relationship between a plurality of binarization thresholds and feature amounts of a binarized image obtained by the threshold, and a means for determining completion of the update. and means for setting the updated threshold value. 7. In a pattern comparison inspection method using a binarized image of a difference image of images in which a pattern of an inspection target that should be originally the same is detected, a plurality of binarization thresholds and a binarized image obtained by the thresholds are used. A pattern comparison inspection method characterized in that an optimal threshold is set by updating a binarization threshold in relation to the area of the area. 8. In the pattern comparison inspection method according to claim 7, as a method of updating the threshold value, the area of the binarized image is in a monotonically decreasing relationship with respect to the threshold value, but when the threshold value becomes a certain set value. In the method of calculating the area value, calculate the area value for two threshold values, update the threshold value from the intersection of the straight line connecting them and the area setting value, and when the area exceeds the setting value, A pattern comparison inspection method characterized by using a sequential calculation method in which updates are made by connecting two points so that they always sandwich a set value. 9. The pattern comparison inspection method according to claim 7, wherein one of a secant method, a scissors method, and a bisection method is used as a method for updating the threshold value. 10. In the pattern comparison inspection method according to claim 7,
A pattern comparison inspection method characterized by using a combination of at least two of the secant method, the scissors method, and the bisection method as a method for updating a threshold. 11. Consisting of means for detecting patterns that should be originally the same in the inspection object, means for storing the detected image, means for detecting a difference image between the detected images, and means for binarizing the difference image. In a pattern comparison inspection device, a means for labeling a binarized image, a means for determining a maximum area of connected components in the label, a means for storing the maximum area, a plurality of thresholds for binarization, and the threshold value. means for updating the binarization threshold based on the relationship with the maximum area of the binarized image obtained by the method, means for determining the completion of the update, and means for setting the threshold at which the update has been completed. A pattern comparison inspection device characterized by: 12. In a pattern comparison inspection method using a binarized image of a difference image of images in which patterns that should originally be the same are detected, the false detection rate of normal patterns is calculated using information on the results of comparison inspection. A pattern comparison inspection method characterized in that a binarization threshold is set so that the false detection rate is less than a set value. 13. In a pattern comparison inspection method using a binarized image of a difference image of images in which a pattern of an inspection target that should be originally the same is detected, a plurality of binarization thresholds and a binarized image obtained by the thresholds are used. A pattern comparison inspection method characterized in that an optimal threshold is set by updating a binarization threshold in relation to a false detection rate of a normal pattern. 14. Consisting of a means for detecting a pattern that should be originally the same in the inspection object, a means for storing the detected image, a means for detecting a difference image of the detected image, and a means for binarizing the difference image. In a pattern comparison inspection device, a means for updating a binarization threshold based on a relationship between a plurality of binarization thresholds and a false detection rate of a normal pattern of a binarized image obtained by the threshold; A pattern comparison inspection device comprising: means for determining completion; and means for setting a threshold value at which the update has been completed. 15. In a pattern comparison inspection method using a binarized image of a difference image of images that detect patterns that should originally be the same on the inspection target, the pattern defect oversight rate is calculated based on the information of the comparative inspection results. , a pattern comparison inspection method characterized in that a binarization threshold is set so that the missed rate is less than a set value. 16. In a pattern comparison inspection method using a binarized image of a difference image of images in which a pattern of the inspection target that should be originally the same is detected, a plurality of binarization thresholds and a binarized image obtained by the thresholds are used. A pattern comparison inspection method characterized in that an optimal threshold is set by updating a binarization threshold in relation to a missed rate of pattern defects. 17. Consisting of a means for detecting a pattern that should be the same in the inspection target, a means for storing the detected image, a means for detecting a difference image of the detected image, and a means for binarizing the difference image. In a pattern comparison inspection device, means for updating a binarization threshold based on the relationship between a plurality of binarization thresholds and a missed rate of pattern defects in a binarized image obtained by the threshold, and a means for updating the binarization threshold; A pattern comparison inspection device characterized by comprising: means for determining, and means for setting the updated threshold value. 18. Consisting of a means for detecting a pattern that should be originally the same in the inspection object, a means for storing the detected image, a means for detecting a difference image of the detected image, and a means for binarizing the difference image. The pattern comparison inspection device is characterized by being provided with a means for calculating an optimum threshold value for binarization for each product type to be inspected, a means for storing an optimum threshold value corresponding to the product type, and a means for setting the threshold value. Pattern comparison inspection device. 19. means for detecting patterns that should be originally the same in the inspection object; means for storing the detected image; means for detecting a difference image between the detected images; means for binarizing the difference image; A pattern comparison inspection device comprising means for comparing the coordinates of a binarized image, characterized in that it is provided with means for calculating an optimal threshold value for binarization for each product type to be inspected, and means for setting the threshold value. Pattern comparison inspection device.
JP1167086A 1989-06-30 1989-06-30 Pattern comparison inspection method and apparatus Expired - Fee Related JP2647502B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1167086A JP2647502B2 (en) 1989-06-30 1989-06-30 Pattern comparison inspection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1167086A JP2647502B2 (en) 1989-06-30 1989-06-30 Pattern comparison inspection method and apparatus

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP9012827A Division JP2981434B2 (en) 1997-01-27 1997-01-27 Pattern defect detection method and apparatus

Publications (2)

Publication Number Publication Date
JPH0333605A true JPH0333605A (en) 1991-02-13
JP2647502B2 JP2647502B2 (en) 1997-08-27

Family

ID=15843157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1167086A Expired - Fee Related JP2647502B2 (en) 1989-06-30 1989-06-30 Pattern comparison inspection method and apparatus

Country Status (1)

Country Link
JP (1) JP2647502B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004512864A (en) * 2000-07-18 2004-04-30 モトローラ・インコーポレイテッド Wireless electrocardiograph system and method
JP2005265493A (en) * 2004-03-17 2005-09-29 Shigeki Kobayashi Inspection device
US8668653B2 (en) 2004-03-24 2014-03-11 Nihon Kohden Corporation Biological information measuring garment having sensor, biological information measuring system and equipment, and control method of equipment
US9026200B2 (en) 2004-03-24 2015-05-05 Nihon Kohden Corporation Garment for bioinformation measurement having electrode, bioinformation measurement system and bioinformation measurement device, and device control method
JP2018155567A (en) * 2017-03-16 2018-10-04 株式会社リコー Inspection device, inspection system, method for inspection, and program

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4079841B2 (en) * 2003-06-30 2008-04-23 オリンパス株式会社 Defect display device
JP6554832B2 (en) * 2015-03-11 2019-08-07 株式会社リコー Picking system and picking method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60114705A (en) * 1983-11-28 1985-06-21 Mitsubishi Electric Corp Visual sensor
JPS62113436A (en) * 1985-11-13 1987-05-25 Toshiba Corp External appearance inspection method for semiconductor pellet
JPS62212506A (en) * 1986-03-14 1987-09-18 Hitachi Ltd Method for detecting flaw
JPS62276441A (en) * 1986-05-26 1987-12-01 Hitachi Ltd Method and apparatus for inspection
JPS62282387A (en) * 1986-05-30 1987-12-08 Matsushita Electric Ind Co Ltd Threshold control method
JPS62199978U (en) * 1986-06-11 1987-12-19

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60114705A (en) * 1983-11-28 1985-06-21 Mitsubishi Electric Corp Visual sensor
JPS62113436A (en) * 1985-11-13 1987-05-25 Toshiba Corp External appearance inspection method for semiconductor pellet
JPS62212506A (en) * 1986-03-14 1987-09-18 Hitachi Ltd Method for detecting flaw
JPS62276441A (en) * 1986-05-26 1987-12-01 Hitachi Ltd Method and apparatus for inspection
JPS62282387A (en) * 1986-05-30 1987-12-08 Matsushita Electric Ind Co Ltd Threshold control method
JPS62199978U (en) * 1986-06-11 1987-12-19

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004512864A (en) * 2000-07-18 2004-04-30 モトローラ・インコーポレイテッド Wireless electrocardiograph system and method
JP2005265493A (en) * 2004-03-17 2005-09-29 Shigeki Kobayashi Inspection device
US8668653B2 (en) 2004-03-24 2014-03-11 Nihon Kohden Corporation Biological information measuring garment having sensor, biological information measuring system and equipment, and control method of equipment
US9026200B2 (en) 2004-03-24 2015-05-05 Nihon Kohden Corporation Garment for bioinformation measurement having electrode, bioinformation measurement system and bioinformation measurement device, and device control method
US9414785B2 (en) 2004-03-24 2016-08-16 Nihon Kohden Corporation Garment for bioinformation measurement having electrode, bioinformation measurement system and bioinformation measurement device, and device control method
US9433379B2 (en) 2004-03-24 2016-09-06 Nihon Kohden Corporation Garment for bioinformation measurement having electrode, bioinformation measurement system and bioinformation measurement device, and device control method
JP2018155567A (en) * 2017-03-16 2018-10-04 株式会社リコー Inspection device, inspection system, method for inspection, and program

Also Published As

Publication number Publication date
JP2647502B2 (en) 1997-08-27

Similar Documents

Publication Publication Date Title
US4509075A (en) Automatic optical inspection apparatus
US5046111A (en) Methods and apparatus for optically determining the acceptability of products
US5537490A (en) Line image processing method
US4378494A (en) Apparatus and method for detecting defects in glass bottles using event proximity
KR0169985B1 (en) Automatic package inspection method
KR900007548B1 (en) Pattern masking method and an apparatus therefor
US20120229618A1 (en) Defect inspection device and defect inspection method
JPS60215286A (en) Method and apparatus for optoelectronic inspection of surface pattern of object
US20010048522A1 (en) Defect inspection method and defect inspection apparatus
Chavan et al. Quality control of PCB using image processing
JPH0333605A (en) Comparing/testing method of patterns and apparatus thereof
JP3924796B2 (en) Pattern position measuring method and measuring apparatus
JP2981434B2 (en) Pattern defect detection method and apparatus
JPS61212708A (en) Method and apparatus for detecting pattern defect
JP3265826B2 (en) Image determination device and image determination method
JPH0210461B2 (en)
JP2710527B2 (en) Inspection equipment for periodic patterns
JPS6347642A (en) Method for discriminating kind of flaw in surface flaw detection
JP2638121B2 (en) Surface defect inspection equipment
JPS62263404A (en) Apparatus for inspecting pattern
US6674888B1 (en) Tuning method for a processing machine
JPH03194415A (en) Device and method for pattern inspection
JPH063541B2 (en) Pattern inspection equipment
JPS62262192A (en) Mark inspection method
JPH0815174A (en) Defect inspection method by visual inspection

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees