JPH05264240A - Visual inspection device - Google Patents

Visual inspection device

Info

Publication number
JPH05264240A
JPH05264240A JP4064141A JP6414192A JPH05264240A JP H05264240 A JPH05264240 A JP H05264240A JP 4064141 A JP4064141 A JP 4064141A JP 6414192 A JP6414192 A JP 6414192A JP H05264240 A JPH05264240 A JP H05264240A
Authority
JP
Japan
Prior art keywords
category
code
defect candidate
inspection apparatus
categories
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.)
Pending
Application number
JP4064141A
Other languages
Japanese (ja)
Inventor
Giichi Kakigi
義一 柿木
Tetsuo Hizuka
哲男 肥塚
Moritoshi Ando
護俊 安藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4064141A priority Critical patent/JPH05264240A/en
Publication of JPH05264240A publication Critical patent/JPH05264240A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enhance the performance of a visual inspection device in detecting the defects of printed wiring patterns by detecting a category proposed as being deficient, and selecting an upper category code A corresponding to the relation between the proposed category and a specific category. CONSTITUTION:A radial measuring circuit 3 measures the length of a patterned portion according to a picture element signal of a printed wiring board 100. In accordance with a coded 4 measured value and a detected 5 center picture element a category changing circuit 6 selects and outputs a corresponding category code from stored categories showing the kinds of pattern configurations. The selected category code is compared with category codes proposed as being deficient, and a category proposed as being deficient is detected 7 and a distribution of the category codes is stored 81 and output. In accordance with the relation between the category proposed as being deficient and a specific target category in the distribution of the category codes around the proposed category, a CPU 80 selects a corresponding upper category code from upper category codes stored on registration rule memory 83. Whether or not the pattern of the wiring board 100 is good is determined 200 according to the selected code.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、プリント配線パターン
等の2次元パターンを外観検査する外観検査装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a visual inspection apparatus for visual inspection of a two-dimensional pattern such as a printed wiring pattern.

【0002】プリント配線板は、近年、益々高密度化さ
れてきており、今では、自動外観検査装置が製造のため
に必須となっている。プリント配線板の配線パターンの
欠陥を自動検査するための技術は、大きく分けて、次の
二つから成る。
In recent years, printed wiring boards have been increasingly densified, and now an automatic visual inspection apparatus is indispensable for manufacturing. The technique for automatically inspecting the wiring pattern of the printed wiring board for defects is roughly divided into the following two techniques.

【0003】光学的に配線パターンを読み取り、電気
信号に変換する検知技術。一般的には、ここで、二値化
画像を得る。 得た画像から欠陥を検出する検査論理。
A detection technique for optically reading a wiring pattern and converting it into an electric signal. Generally, a binary image is obtained here. Inspection logic to detect defects from the obtained image.

【0004】特に、前記検査論理において欠陥検出性能
を向上させる要請がある。
In particular, there is a demand for improving the defect detection performance in the inspection logic.

【0005】[0005]

【従来の技術】従来、この種の外観検査装置として特願
昭61−107407号公報に示されたものがある。こ
の従来の外観検査装置は、検査対象となるプリント配線
板のパターン中心において放射状の測長センサにより複
数方向のパターン長を測長し、この測長した値をコード
化してラジアルコードを作成し、このラジアルコードと
予めラジアルコードの良否を記憶した辞書の辞書データ
とを対比してパターンの良否を判定する構成である。前
記辞書に記憶された辞書データは、様々なパターンに対
応する複数のデータとして作成することができ、この複
数のデータを辞書に入れ換えて記憶することにより、各
種パターンに適合できる汎用性を有することとなる。
2. Description of the Related Art Conventionally, as this type of appearance inspection apparatus, there is one disclosed in Japanese Patent Application No. 61-107407. This conventional visual inspection device measures the pattern lengths in a plurality of directions with a radial length measuring sensor in the pattern center of the printed wiring board to be inspected, and creates a radial code by coding the measured values, This radial code and the dictionary data of the dictionary in which the quality of the radial code is stored in advance are compared to determine the quality of the pattern. The dictionary data stored in the dictionary can be created as a plurality of data corresponding to various patterns, and by storing the plurality of data by exchanging the plurality of data in a dictionary, it has versatility that can be adapted to various patterns. Becomes

【0006】この外観検査装置は、1個のラジアルコー
ドからパターンの良否を判断する。即ち、この外観検査
装置におけるラジアルコードを用いる検査は、パター
ンの中心を検出し、中心であれば、測長値をコード化
し(ラジアルコード)、コードの良否を辞書を参照し
て決める。
This appearance inspection apparatus judges the quality of the pattern from one radial code. That is, in the inspection using the radial code in this appearance inspection apparatus, the center of the pattern is detected, and if it is the center, the length measurement value is coded (radial code), and the quality of the code is determined by referring to the dictionary.

【0007】また、前記コード化は以下のように行う。
パターンの中心を検出した後、縦・横・斜めの4組の方
向について、コード化の処理を行う。コードは、4組の
それぞれの方向毎に、長さコード(2bit)、バラン
スコード(1bit)、方向コード(1bit)から成
る。向きが180°異なる方向(例えば、0°方向と1
80°方向)の半径の測長値の和(直径)を計算する。
この値を4値に分ける。すなわち、しきい値(1)より
小さいとき、“S”(ショート)とする。しきい値
(1)以上、かつ、しきい値(2)以下のとき、“C”
(コレクト)とする。また、しきい値(2)より大きい
とき、“L”(ロング)とする。さらに、片側の測長値
が“0Vしきい値”以上のとき、“0V”(オーバーフ
ロー)とする。2つの方向の1つ以上が“0V”のと
き、直径も“0V”とする。以上の処理によって、長さ
コード(2bit)を作る。
The encoding is performed as follows.
After detecting the center of the pattern, encoding processing is performed in four directions of vertical, horizontal and diagonal. The code includes a length code (2 bits), a balance code (1 bit), and a direction code (1 bit) for each of the four sets of directions. 180 ° different directions (eg 0 ° and 1
The sum (diameter) of the measured values of the radius in the 80 ° direction is calculated.
This value is divided into four values. That is, when it is smaller than the threshold value (1), it is set to "S" (short). "C" when the threshold value (1) or more and the threshold value (2) or less
(Collect). When it is larger than the threshold value (2), it is set to "L" (long). Furthermore, when the length measurement value on one side is equal to or more than the “0V threshold value”, it is set to “0V” (overflow). When one or more of the two directions is "0V", the diameter is also "0V". A length code (2 bits) is created by the above processing.

【0008】次に、前述の2つの測長値の差を求める。
その値が“バランスマージン”以下であるとき(すなわ
ち、ほぼ中心であり、バランスが取れている)、バラン
スコードを“1”、そうでないとき、“0”とする。も
し、どちらかが0Vならば、両方が0Vのときバラン
ス、片方が0Vのとき非バランスとする。
Next, the difference between the above two length measurement values is obtained.
When the value is equal to or less than the "balance margin" (that is, it is almost in the center and balanced), the balance code is "1", and when not, it is "0". If either one is 0V, both are 0V, and one is 0V, it is unbalanced.

【0009】さらに、前述のバランスが“0”のとき
は、どちらが長いかを方向コード(1bit)で示す。
上が長いときは“1”、下が長いときは“0”である。
バランスが“0”のときは、方向コードも“0”とす
る。
Further, when the balance is "0", which is longer is indicated by a direction code (1 bit).
It is "1" when the top is long and "0" when the bottom is long.
When the balance is "0", the direction code is also "0".

【0010】以上の処理によって、1組の方向に対し
て、4bitのコードを得る。これを4組の方向で求
め、16bitのコードとする。これがラジアルコード
である。また、前記従来の外観検査装置を改良した他の
外観検査装置としては、ラジアルコード1個によって良
否を決めるのではなく、ラジアルコードの分布によって
良否を決めるものである。ただし、ラジアルコードの分
布では、組み合わせが非常に多くなるので、その前に、
ラジアルコードを形状を表すカテゴリに変換する。カテ
ゴリに変換するための一つの方法は、辞書をカテゴリに
変化するものに拡張するものである。もう一つの方法と
してはニューラルネットワークを使うものが考えられ
る。
By the above processing, a 4-bit code is obtained for one set of directions. This is obtained in four sets of directions and is used as a 16-bit code. This is the radial code. Further, as another appearance inspection apparatus that is an improvement of the conventional appearance inspection apparatus, the quality is determined not by one radial code but by the distribution of the radial code. However, since there are many combinations in the radial code distribution, before that,
Convert a radial code into a category that represents a shape. One way to convert to categories is to extend the dictionary to one that changes into categories. Another method is to use a neural network.

【0011】[0011]

【発明が解決しようとする課題】前記従来の外観検査装
置は以上のように構成されていたことから、過剰検出さ
れるという課題を有していた。即ち、配線パターンの近
傍に微小銅残りがある場合には間隔不足として検出する
結果、この配線パターンを欠陥と判断することとなる。
このような微小銅残りは、銅残りが小さく他の導体に接
近していなければ、人間の目視による検査では良品とし
て判断されるべきものである。このように従来装置にあ
っては1個のラジアルコードから良否の判断を行なうこ
とから,他の周囲の情報を利用できず、高度な判断がで
きないという問題点を有していた。
Since the above-described conventional visual inspection apparatus is constructed as described above, it has a problem of being excessively detected. That is, when there is a small copper residue in the vicinity of the wiring pattern, it is determined that the gap is insufficient, and as a result, this wiring pattern is determined to be a defect.
Such small copper residue should be judged as a good product by a human visual inspection unless the copper residue is small and it is not close to other conductors. As described above, the conventional device has a problem in that it is impossible to make a high-level judgment because other peripheral information cannot be used because the quality is judged from one radial code.

【0012】また、前記他の従来の外観検査装置は辞書
メモリを用いてカテゴリの分布の良否を判断することか
ら、カテゴリの数が増加するに伴い辞書メモリの容量も
膨大なものとしなければならないという課題を有してい
た。例えば、カテゴリを5bitで表現し、その数が4
個である場合には、20bitのアドレスを持つメモリ
(1Mワード)で実現できるがカテゴリの数が9個に増
大すると辞書メモリの容量も45bitのアドレスが必
要となり、さらにカテゴリが増加すると実現が不可能と
なる場合がある。また、カテゴリの分布も3×3画素程
度のものでのみ処理可能であるが、実際には正しい認識
を行なうためには30×30画素程度を対象範囲とする
カテゴリ情報が必要であることから、正しい欠陥検出が
できないという課題を有していた。さらに、前記辞書メ
モリに格納する辞書データの作成が困難である。
Further, since the other conventional appearance inspection apparatus uses the dictionary memory to judge the quality of the category distribution, the dictionary memory capacity must be enormous as the number of categories increases. Had a problem. For example, a category is represented by 5 bits and the number is 4
If the number of categories is 20, the memory (1 M words) having an address of 20 bits can be used, but if the number of categories increases to 9, the dictionary memory capacity needs to have 45 bits of addresses. It may be possible. Further, although the category distribution can be processed only with about 3 × 3 pixels, in reality, category information with a target range of about 30 × 30 pixels is necessary for correct recognition. There was a problem that correct defect detection could not be performed. Furthermore, it is difficult to create dictionary data to be stored in the dictionary memory.

【0013】さらにまた、ニューラルネットワークを用
いて欠陥検出を行なうものにおいては、入力データが3
×3画素の領域を対象としたカテゴリ等である場合に演
算処理が可能であるが、この程度の狭い領域では正確な
欠陥判断ができないという課題を有していた。特に、正
確な結果判断を行なうために、入力データを比較的広い
領域に基づくカテゴリ等とした場合には、ニューラルネ
ットワークでは演算処理が不可能となる課題を有してい
た。
Furthermore, in the case of detecting a defect using a neural network, the input data is 3
Although it is possible to perform arithmetic processing in the case of a category or the like targeting a region of × 3 pixels, there is a problem that accurate defect determination cannot be performed in such a narrow region. In particular, when the input data is classified into a category based on a relatively wide area in order to accurately determine the result, the neural network has a problem that arithmetic processing cannot be performed.

【0014】本発明は前記各課題を解決するためになさ
れたもので、プリント配線パターンの欠陥検出性能を向
上させると共に、検出する欠陥の種類を正しく判断する
ことができる外観検査装置を提案することを目的とす
る。
The present invention has been made to solve the above problems, and proposes a visual inspection apparatus capable of improving the defect detection performance of a printed wiring pattern and correctly determining the type of the detected defect. With the goal.

【0015】[0015]

【課題を解決するための手段】図1は本発明の原理説明
図を示す。同図において本発明に係る外観検査装置は、
試料100上に形成されたパターンを撮像する撮像手段
1と、撮像された画像を二値化する画像二値化手段2
と、当該二値化画像上の任意の中心画素から複数方向に
延在する各画素列内におけるパターン部分のパターン部
長さを測定するラジアル測長手段3と、当該複数方向の
測長値から前記パターンの略中心を検出する中心検出手
段4と、前記複数方向の各測長値をラジアルコードに変
換するコード化手段5と、各種ラジアルコードに対応し
たパターン形状の種類を示すカテゴリコードを予め格納
し、前記コード化手段5で変換されたラジアルコードに
基づいて格納されたカテゴリを選択してカテゴリコード
に変換するカテゴリ変換手段6とを備え、前記カテゴリ
コードに基づいてパターンの欠陥を検出する外観検出装
置において、前記格納されたパターン形状の種類を示す
カテゴリコードのうち予め定義された欠陥候補を格納
し、前記カテゴリ変換手段6から出力されるカテゴリコ
ードを欠陥候補のカテゴリコードと比較して欠陥候補カ
テゴリを検出する欠陥候補検出手段7と、前記欠陥候補
カテゴリと対象となるカテゴリとの関係を分類し、当該
分類に対応したパターン形状の種類を示す各種上位カテ
ゴリコードを格納し、前記検出された欠陥候補カテゴリ
と当該欠陥候補カテゴリを中心とする所定領域内におけ
るカテゴリ分布中の対象となる特定のカテゴリとの関係
に基づいて、当該関係に対応する上位カテゴリコードを
選択して出力する上位カテゴリ変換手段8とを備え、前
記上位カテゴリコードに基づいてパターン欠陥の検出を
行なうものである。
FIG. 1 shows the principle of the present invention. In the figure, the appearance inspection apparatus according to the present invention is
Image capturing means 1 for capturing the pattern formed on the sample 100, and image binarizing means 2 for binarizing the captured image.
A radial length measuring means 3 for measuring a pattern portion length of a pattern portion in each pixel row extending in a plurality of directions from an arbitrary central pixel on the binarized image; A center detecting means 4 for detecting a substantially center of a pattern, an encoding means 5 for converting each measured value in the plurality of directions into a radial code, and a category code indicating a type of a pattern shape corresponding to various radial codes are stored in advance. And a category conversion means 6 for selecting a stored category based on the radial code converted by the encoding means 5 and converting it into a category code, and an appearance for detecting a pattern defect based on the category code. The detection device stores a previously defined defect candidate among the category codes indicating the type of the stored pattern shape, and stores the category change. The defect candidate detecting means 7 for detecting the defect candidate category by comparing the category code output from the means 6 with the category code of the defect candidate, and the relationship between the defect candidate category and the target category are classified and classified into the classification. Stores various upper category codes indicating the types of corresponding pattern shapes, and relates to the relationship between the detected defect candidate category and a specific category that is a target in the category distribution in a predetermined area centered on the defect candidate category. Based on the upper category code, the upper category conversion means 8 for selecting and outputting the upper category code corresponding to the relationship is detected, and the pattern defect is detected based on the upper category code.

【0016】図2は他の本発明の原理説明図を示す。同
図において他の本発明に係る外観検査装置は、試料10
0上に形成されたパターンを撮像する撮像手段1と、撮
像された画像を二値化する画像二値化手段2と、当該二
値化画像上の任意の中心画素から複数方向に延在する各
画素列内におけるパターン部分のパターン部長さを測定
するラジアル測長手段3と、当該複数方向の測長値から
前記パターンの略中心を検出する中心検出手段4と、前
記複数方向の各測長値をラジアルコードに変換するコー
ド化手段5と、各種ラジアルコードに対応したパターン
形状の種類を示すカテゴリコードを予め格納し、前記コ
ード化手段5で変換されたラジアルコードに基づいて格
納されたカテゴリを選択してカテゴリコードに変換する
カテゴリ変換手段6とを備え、前記カテゴリコードに基
づいてパターンの欠陥を検出する外観検出装置におい
て、前記カテゴリ変換手段6から順次出力される複数の
カテゴリにおける任意の中心画素を中心として、当該中
心画素から放射状に分布するカテゴリを複数検出する放
射状カテゴリ検出手段9と、前記検出された複数のカテ
ゴリを相互に関係づけて階層型ネットワーク構造のデー
タとして処理することにより上位カテゴリを出力するニ
ューラルネットワーク10とを備え、当該上位カテゴリ
に基づいてパターン欠陥の検出を行なうものである。
FIG. 2 illustrates another principle of the present invention. In the figure, another appearance inspection apparatus according to the present invention is a sample 10
0, an image pickup unit 1 for picking up a pattern formed on 0, an image binarization unit 2 for binarizing the picked up image, and a plurality of directions extending from arbitrary central pixels on the binarized image. Radial length measuring means 3 for measuring the pattern portion length of the pattern portion in each pixel row, center detecting means 4 for detecting the approximate center of the pattern from the length measuring values in the plurality of directions, and length measuring in each of the plurality of directions. Encoding means 5 for converting a value into a radial code, and category codes indicating types of pattern shapes corresponding to various radial codes are stored in advance, and categories are stored based on the radial codes converted by the encoding means 5. In the appearance detecting apparatus for detecting a pattern defect based on the category code. The radial category detection means 9 for detecting a plurality of categories radially distributed from the center pixel around an arbitrary center pixel in the plurality of categories sequentially output from the means 6, and the detected plurality of categories are related to each other. The neural network 10 outputs a higher category by additionally processing it as data of a hierarchical network structure, and detects a pattern defect based on the higher category.

【0017】[0017]

【作用】本発明においては、カテゴリ変換手段から順次
出力される試料のパターンのカテゴリの分布に基づいて
欠陥候補検出手段が欠陥候補カテゴリを検出し、当該欠
陥候補カテゴリを中心とするカテゴリの分布における対
象となる特定のカテゴリと欠陥候補カテゴリとの関係か
ら上位カテゴリを選択し、当該上位カテゴリに基づいて
試料パターンの欠陥を検出することから、試料パターン
の広い領域におけるコードを用いてパターン良否の判断
ができることとなり、過剰検出に基づく検出誤りを極力
低減できると共に、欠陥検出性能を向上させる。また、
検出される欠陥種類についてもより正確に判別できるこ
ととなる。
In the present invention, the defect candidate detecting means detects the defect candidate category based on the distribution of the category of the pattern of the sample sequentially outputted from the category converting means, and the defect candidate category is centered on the defect candidate category. The upper category is selected from the relationship between the target specific category and the defect candidate category, and the defect of the sample pattern is detected based on the upper category, so it is judged whether the pattern is good or bad by using the code in a wide area of the sample pattern. Therefore, it is possible to reduce the detection error due to excessive detection as much as possible, and improve the defect detection performance. Also,
The detected defect type can be more accurately discriminated.

【0018】他の本発明においては、カテゴリ変換手段
から順次出力される試料パターンのカテゴリの分布に基
づいて、この分布の中心画素を中心に放射状にカテゴリ
を放射状カテゴリ検出手段で複数検出し、当該検出され
た複数のカテゴリを相互に関係づけてニューラルネット
ワークにより階層型ネットワーク構造のデータとして処
理して上位カテゴリを演算出力し、当該上位カテゴリに
基づいて試料のパターン欠陥を検出することから、広い
領域のコードを用いて良否判断ができることとなり、欠
陥検出性能が向上する。特に、ニューラルネットワーク
の学習によって検査が可能となることから、従来困難で
あった辞書作成が容易となる。さらに、欠陥種類の判別
が正確にできることとなる。
According to another aspect of the present invention, a plurality of categories are radially detected by the radial category detection means based on the distribution of the category of the sample pattern sequentially output from the category conversion means, with the central pixel of this distribution as the center, The detected multiple categories are related to each other and processed as data of a hierarchical network structure by a neural network, the upper category is calculated and output, and the pattern defect of the sample is detected based on the upper category. The code can be used to make a pass / fail judgment, and the defect detection performance is improved. In particular, since the inspection can be performed by learning the neural network, it becomes easy to create a dictionary, which has been difficult in the past. Further, the defect type can be accurately discriminated.

【0019】[0019]

【実施例】【Example】

a)本発明の一実施例 以下、本発明の一実施例を図3ないし図8に基づいて説
明する。この図3に本実施例装置の全体ブロック構成
図、図4ないし図8には図3における各ブロックを構成
する回路の詳細な説明図を各々示す。
a) One Embodiment of the Present Invention One embodiment of the present invention will be described below with reference to FIGS. FIG. 3 is an overall block diagram of the apparatus of this embodiment, and FIGS. 4 to 8 are detailed explanatory diagrams of circuits constituting each block in FIG.

【0020】前記図3において本実施例に係る外観検査
装置は、走査用のX−Yステージ101上に載置された
試料のプリント配線板100を撮像部1で画像データの
画素信号として取込み、この画素信号を二値化回路2で
二値化して画像メモリ21に格納し、前処理回路22で
ノイズ成分が除去されてラジアル測長回路3によりプリ
ント配線板100のパターン部長が測定され、コード化
回路4で複数方向におけるパターン部長の測長値をコー
ド化し、中心検出回路5により前記複数方向の測長値か
らプリント配線板100の略中心に対応する中心画素を
検出し、前記コード化した測長値及び中心画素に基づい
て予め格納されたパターン形状の種類を示す複数のカテ
ゴリ中から対応するカテゴリコードをカテゴリ変換回路
6が選択して欠陥候補検出回路7及びカテゴリ分布メモ
リ81に出力する。
In the appearance inspection apparatus according to the present embodiment shown in FIG. 3, the sample printed wiring board 100 placed on the scanning XY stage 101 is captured by the image pickup section 1 as a pixel signal of image data. The pixel signal is binarized by the binarizing circuit 2 and stored in the image memory 21, the noise component is removed by the preprocessing circuit 22, the pattern length of the printed wiring board 100 is measured by the radial length measuring circuit 3, and the code The digitizing circuit 4 encodes the length measurement values of the pattern portion length in a plurality of directions, and the center detection circuit 5 detects the center pixel corresponding to the approximate center of the printed wiring board 100 from the length measurement values in the plurality of directions and encodes the center pixel. The category conversion circuit 6 selects the corresponding category code from a plurality of categories indicating the type of the pattern shape stored in advance based on the length measurement value and the center pixel and the defect is caused. And outputs to the auxiliary detection circuit 7 and the category distribution memory 81.

【0021】前記欠陥候補検出回路7は前記格納された
パターン形状の種類を示すカテゴリコードのうち予め定
義された欠陥候補を格納し、カテゴリ変換回路6から出
力されるカテゴリコードを欠陥候補のカテゴリコードと
比較して欠陥候補カテゴリを検出し、この欠陥候補カテ
ゴリをCPU80へ出力する。前記カテゴリ分布メモリ
81は、カテゴリ変換回路6から出力されるカテゴリコ
ードの分布を、欠陥候補検出回路7で欠陥候補カテゴリ
が検出されたことを条件として格納し、この格納された
カテゴリコードの分布をCPU80へ出力する。
The defect candidate detection circuit 7 stores a previously defined defect candidate among the stored category codes indicating the type of pattern shape, and the category code output from the category conversion circuit 6 is the category code of the defect candidate. The defect candidate category is detected by comparing with, and this defect candidate category is output to the CPU 80. The category distribution memory 81 stores the distribution of category codes output from the category conversion circuit 6 on condition that a defect candidate category is detected by the defect candidate detection circuit 7, and stores the stored category code distribution. Output to the CPU 80.

【0022】前記CPU80は、主にカテゴリ探索回路
82、上位カテゴリ出力回路84及び登録ルール参照回
路85からなり、欠陥候補カテゴリ及びカテゴリの分布
に基づいて、予め登録ルールメモリ83に格納された各
種上位カテゴリコードの中から対応する上位カテゴリコ
ードを選択して欠陥判定回路200へ出力する。
The CPU 80 mainly includes a category search circuit 82, an upper category output circuit 84, and a registration rule reference circuit 85. Based on the defect candidate category and the distribution of the categories, various upper classes stored in advance in the registration rule memory 83. The corresponding upper category code is selected from the category codes and output to the defect determination circuit 200.

【0023】即ち、前記カテゴリ探索回路82がカテゴ
リ分布メモリ81に格納されたカテゴリコードの分布中
から対象となる特定のカテゴリを探索し、この探索され
たカテゴリと検出された欠陥候補カテゴリとの関係に対
応する登録ルールメモリ83に格納された上位カテゴリ
コードを登録ルール参照回路85の制御の下に読出され
て上位カテゴリ出力回路84が出力することとなる。こ
の欠陥判定回路200は上位カテゴリコードに基づいて
プリント配線板100におけるパターンの良否を判断す
る。
That is, the category search circuit 82 searches for a specific target category from the distribution of category codes stored in the category distribution memory 81, and the relationship between the searched category and the detected defect candidate category. The upper category code stored in the registration rule memory 83 corresponding to is read out under the control of the registration rule reference circuit 85 and output by the upper category output circuit 84. The defect determination circuit 200 determines the quality of the pattern on the printed wiring board 100 based on the upper category code.

【0024】次に、前記構成に基づく本実施例の欠陥検
出動作について図9ないし図11を参照して説明する。
まず、X−Yステージ101に試料のプリント配線板1
00が載置され、このプリント配線板100の表面に対
して斜め上方からライン照明装置14がライン状の光線
束を照射し、プリント配線板100上で反射したライン
状の光線束が結像レンズ12を介してラインセンサ16
の受光面に結像・受光される。このラインセンサ16は
図示を省略するドライバにより電気的に走査され、各画
素信号が順次二値化回路2へ出力される。この二値化回
路2で二値化された画素信号が、X−Yステージ101
及びラインセンサ13の操作位置に基づくアドレスで画
像メモリ21に格納され、この格納された二値化の画像
信号に基づく配線パターンの二値画像(以下、パターン
二値画像)に対して前処理回路22がノイズ成分を除去
する処理、またエッジスムージング等の各種処理を実行
する。このように前処理回路22で各種の処理がなされ
たパターン二値画像が、1ライン毎に順次後段のラジア
ル測長回路3へ出力される。
Next, the defect detecting operation of this embodiment based on the above-mentioned structure will be described with reference to FIGS. 9 to 11.
First, the sample printed wiring board 1 is mounted on the XY stage 101.
00 is placed, the line illuminating device 14 irradiates the surface of the printed wiring board 100 with a linear light flux from obliquely above, and the linear light flux reflected on the printed wiring board 100 forms an imaging lens. Line sensor 16 through 12
The image is formed and received on the light receiving surface of. The line sensor 16 is electrically scanned by a driver (not shown), and each pixel signal is sequentially output to the binarization circuit 2. The pixel signal binarized by the binarization circuit 2 is the XY stage 101.
And a preprocessing circuit for a binary image of the wiring pattern (hereinafter, pattern binary image) stored in the image memory 21 at an address based on the operation position of the line sensor 13 and based on the stored binary image signal. 22 performs processing for removing noise components, and various processing such as edge smoothing. The pattern binary image thus variously processed by the preprocessing circuit 22 is sequentially output line by line to the subsequent radial length measuring circuit 3.

【0025】ランジアル測長回路3は、例えば図4
(A)に示す如く、7ライン分のフリップフロップを縦
続接続して構成した1つのシフトレジスタを備えてい
る。パターン二値画像はこのラジアル測長回路3上で走
査される。ラジアル測長回路3には、7ビット×7ビッ
トのラジアル測長センサエリア3aが設けられている。
図4(B)に示す如く、ラジアル測長センサエリア3a
には、その中心のビットから8方向に放射状に伸びた画
素を有するラジアル測長センサ3bが設けられている。
このラジアル測長センサ3bは、8方向の各々について
画像が“1”である個数、すなわち配線パターン部の長
さを検出するためのものである。図4(B)では中心か
らの位置を示す数字0〜3を各方向に沿って記入してい
る。
The radial length measuring circuit 3 is shown in FIG.
As shown in (A), it has one shift register constituted by connecting flip-flops for seven lines in cascade. The pattern binary image is scanned on the radial length measuring circuit 3. The radial length measuring circuit 3 is provided with a radial length measuring sensor area 3a of 7 bits × 7 bits.
As shown in FIG. 4B, the radial measurement sensor area 3a
Is provided with a radial length measuring sensor 3b having pixels radially extending in eight directions from the bit at the center thereof.
The radial length measurement sensor 3b is for detecting the number of images having "1" in each of the eight directions, that is, the length of the wiring pattern portion. In FIG. 4B, numbers 0 to 3 indicating the position from the center are entered along each direction.

【0026】図4(A)、(B)は説明上構成を簡単化
したものであり、実際には例えば図5に示す如く、ラジ
アル測長センサ3cは65ビット×65ビットのエリア
に構成され、中心からラインセンサ16方向に伸びた測
長アームA1〜A16を有し、各測長アームAi(i=
1〜16)は33ビット長(中心のビットを含む)とな
っている。このラジアル測長センサ3cにより、ラジア
ル測長センサ3cの中心画素からの各方向の配線パター
ン部測長値r1〜r16が得られる。
FIGS. 4A and 4B show a simplified structure for the sake of explanation. Actually, for example, as shown in FIG. 5, the radial length measuring sensor 3c is constructed in an area of 65 bits × 65 bits. , Has length measuring arms A1 to A16 extending in the direction of the line sensor 16 from the center, and each length measuring arm Ai (i =
1 to 16) have a length of 33 bits (including the central bit). With this radial length measurement sensor 3c, wiring pattern portion length measurement values r1 to r16 in each direction from the central pixel of the radial length measurement sensor 3c can be obtained.

【0027】測長値r1〜r16は、図3に示す中心検
出回路5及びコード化回路4へ供給される。中心検出回
路5は、測長値r1〜r16から、パターン二値画像1
00aの略中心を検出する。また、コード化回路4は、
測長値ri(iは15以下の奇数)からこの測長位置に
おけるパターン二値画像100aの形状をコード化す
る。
The measured values r1 to r16 are supplied to the center detection circuit 5 and the coding circuit 4 shown in FIG. The center detection circuit 5 determines the pattern binary image 1 from the measured values r1 to r16.
The approximate center of 00a is detected. In addition, the coding circuit 4
The shape of the pattern binary image 100a at this length measurement position is coded from the length measurement value ri (i is an odd number of 15 or less).

【0028】中心検出回路5は、図6に示す如く、同一
構成のバランス判定回路51a〜51hを備えている。
例えばバランス判定回路51aは、測長アームA1の測
長値r1と、測長アームA1と反対方向の測長アームA
9の測長値r9との差を差演算器51a1 で演算すると
共にその結果を絶対化して比較器51a2 に供給してバ
ランスマージンBMの所定しきい値と比較する。このバ
ランスマージンBMは例えば2であり、|r1−r9|
<2のときにバランス判定回路51aの出力が“1”と
なる。バランス判定回路51b〜51hについてもバラ
ンス判定回路51aと同様である。バランス条件判別回
路52は各バランス判定回路51a〜51aと同様であ
る。バランス条件判別回路52は各バランス判定回路5
1a〜51hの出力のうち“1”となっている個数を求
め、この値を予め設定された所定の基準値と比較し、こ
の値が所定の基準値以上であれば中心検出信号を出力す
る。さらに、前記ラジアル測長回路3の測長センサ3c
から測長値の出力r1、r9がコード化回路4の一方向
コード化回路41aに入力され、前記中心検出回路5の
バランス判定回路51aと同様の回路構成とされる差演
算器41a1 及び比較器41a2 によりバランスが取れ
ているか否かを判別する。この差演算器41a1 、比較
器41a2 は中心検出回路5のバランス判定回路51a
と共通に使用する構成とすることもできる。また、前記
回路によりバランスが取れていないと判別された場合に
は、どちらが長いかを示す方向ビットを出力し、バラン
スと方向との2bitのコードを出力することとなる。
As shown in FIG. 6, the center detection circuit 5 includes balance determination circuits 51a to 51h having the same structure.
For example, the balance determination circuit 51a uses the length measurement value r1 of the length measurement arm A1 and the length measurement arm A in the direction opposite to the length measurement arm A1.
The difference from the length measurement value r9 of 9 is calculated by the difference calculator 51a 1 , and the result is absoluteized and supplied to the comparator 51a 2 for comparison with a predetermined threshold value of the balance margin BM. This balance margin BM is, for example, 2 and | r1-r9 |
When <2, the output of the balance determination circuit 51a becomes "1". The balance determination circuits 51b to 51h are similar to the balance determination circuit 51a. The balance condition determination circuit 52 is similar to each of the balance determination circuits 51a to 51a. The balance condition determination circuit 52 is for each balance determination circuit 5.
The number which is "1" among the outputs 1a to 51h is obtained, this value is compared with a preset reference value, and if this value is equal to or larger than the preset reference value, the center detection signal is output. .. Further, the length measuring sensor 3c of the radial length measuring circuit 3
From the measurement values r1 and r9 are input to the unidirectional coding circuit 41a of the coding circuit 4, and the difference calculator 41a 1 having the same circuit configuration as the balance determination circuit 51a of the center detection circuit 5 and the comparison The device 41a 2 determines whether or not the balance is achieved. The difference calculator 41a 1 and the comparator 41a 2 are the balance determination circuit 51a of the center detection circuit 5.
It may be configured to be commonly used with. When the circuit determines that the balance is not achieved, the direction bit indicating which is longer is output, and the 2-bit code for the balance and the direction is output.

【0029】前記測長値の出力r1、r9はコード化回
路4の長さコード化回路42aにも同時に入力され、こ
の長さコード化回路42aの加算器42a1 により両出
力の和が演算され、この両出力の和(r1+r9)を比
較器42a2 、42a3 によりコード化しきい値
th1 、Vth2 と比較して大小関係を示す比較値を出力
する。また、出力r1、r9を比較器43a、44aに
より0Vしきい値と比較し、0Vであるか否かの比較値
を出力する。
The outputs r1 and r9 of the length measurement values are also input to the length coding circuit 42a of the coding circuit 4 at the same time, and the adder 42a 1 of the length coding circuit 42a calculates the sum of both outputs. , The sum (r1 + r9) of both outputs is compared with the coding thresholds V th1 and V th2 by the comparators 42a 2 and 42a 3 to output a comparison value indicating a magnitude relationship. Further, the outputs r1 and r9 are compared with the 0V threshold value by the comparators 43a and 44a, and the comparison value indicating whether or not the voltage is 0V is output.

【0030】前記各々出力される2bitコード、各比
較値に基づいてデータ変換回路45aが4bit値のデ
ータ値に一方向のコードとしてコード化してゲート回路
40に出力する。また、前記出力r1、r9と同様に出
力r2とr10、…、r8とr16の各測長値について
も一方向コード化回路41b〜41hが一方向コードを
ゲート回路40に各々出力する。
The data conversion circuit 45a encodes a 4-bit data value as a unidirectional code based on the 2-bit code output and the comparison value and outputs the data value to the gate circuit 40. Similarly to the outputs r1 and r9, the unidirectional coding circuits 41b to 41h also output the unidirectional codes to the gate circuit 40 for the respective length measurement values of the outputs r2 and r10, ..., R8 and r16.

【0031】前記ゲート回路40は中心検出回路5から
出力される中心検出信号が入力されたことを条件として
ゲートが開かれて16bitのラジアルコードを後段回
路のカテゴリ変換回路6へ出力する。このカテゴリ変換
回路6は図8に示すようにROM構成のカテゴリは辞書
で形成され、ラジアルコードにより特定されるアドレス
に格納されたカテゴリコードに変換して欠陥候補検出回
路7及びカテゴリ分布メモリ81に各々出力する。この
ラジアルコードとカテゴリコードとは予め対応付けられ
てカテゴリ辞書としてカテゴリ変換回路6のROM内に
格納されている。このカテゴリコードに対応するカテゴ
リの内容は図9(A)〜(J)に示すように直線リー
ド、折れ曲りリード、ランド、リード付きランド、リー
ド細り、断線、突起、T分岐、ランド突起、銅残り等、
正常部及び欠陥部も双方含むように定義される。また、
このカテゴリは導体部と空域部との双方があり、前記図
9に示す例を含めて一般には数十種類となる。さらに、
前記図9の例の中で直線リード等のように方向性を有す
るカテゴリの場合には、この方向性をパラメータとして
方向毎に分類することもできる。
The gate circuit 40 opens its gate on condition that the center detection signal output from the center detection circuit 5 is input, and outputs a 16-bit radial code to the category conversion circuit 6 of the subsequent circuit. As shown in FIG. 8, the category conversion circuit 6 is formed by a dictionary of ROM-structured categories, converts the categories into a category code stored at an address specified by a radial code, and stores them in the defect candidate detection circuit 7 and the category distribution memory 81. Output each. The radial code and the category code are associated with each other in advance and stored in the ROM of the category conversion circuit 6 as a category dictionary. As shown in FIGS. 9A to 9J, the contents of the category corresponding to this category code are a straight lead, a bent lead, a land, a land with a lead, a thin lead, a wire break, a protrusion, a T branch, a land protrusion, and copper. The rest, etc.
It is defined to include both normal and defective parts. Also,
This category has both a conductor portion and an air space portion, and generally includes several dozen types including the example shown in FIG. further,
In the case of a category having a directivity such as a straight lead in the example of FIG. 9, it is possible to classify each direction by using this directivity as a parameter.

【0032】前記欠陥候補検出回路7は図8に示すよう
に、欠陥候補読出部71及び辞書72で構成され、カテ
ゴリ変換回路6から入力されるカテゴリコードに対応す
る辞書72に格納された欠陥候補を欠陥候補読出部71
が読出し、この読出された欠陥候補とカテゴリコードを
比較して結果候補カテゴリとしてCPU80に出力す
る。また、カテゴリ変換回路6からのカテゴリコードが
カテゴリ分布メモリ82にも入力され、このカテゴリ分
布メモリ82は欠陥候補検出回路7で欠陥候補カテゴリ
が検出されたことを示す検出信号が入力されることを条
件としてカテゴリコードをカテゴリコードの分布として
格納する。このように検出信号の入力を条件としてカテ
ゴリコードを格納するのはカテゴリ分布メモリ82の記
憶容量を極力小さくするためである。
As shown in FIG. 8, the defect candidate detection circuit 7 is composed of a defect candidate reading section 71 and a dictionary 72, and the defect candidates stored in the dictionary 72 corresponding to the category code input from the category conversion circuit 6. The defect candidate reading unit 71
Read out and compare the read defect candidate with the category code, and output it to the CPU 80 as a result candidate category. Further, the category code from the category conversion circuit 6 is also input to the category distribution memory 82, and the category distribution memory 82 receives the detection signal indicating that the defect candidate category is detected by the defect candidate detection circuit 7. The category code is stored as a condition code distribution as a condition. The reason why the category code is stored under the condition that the detection signal is input is to minimize the storage capacity of the category distribution memory 82.

【0033】前記欠陥候補カテゴリとカテゴリコードの
分布が各々CPU80に入力されると、欠陥候補カテゴ
リを中心とするこのカテゴリコードの分布中における対
象となる特定のカテゴリをカテゴリ探索回路82が予め
定められたルールに基づいてえ探索する。また、この探
索された特定のカテゴリと欠陥候補カテゴリとの関係を
上位カテゴリ出力回路が演算し、この関係に基づいて登
録ルールメモリ83に格納された複数の上位カテゴリか
ら該当する上位カテゴリを読出して上位カテゴリ出力回
路85から欠陥判定回路200に出力する。
When the defect candidate categories and the category code distributions are respectively input to the CPU 80, the category search circuit 82 predetermines a particular category of interest in the category code distribution centered on the defect candidate categories. Search based on the rules. The upper category output circuit calculates the relationship between the searched specific category and the defect candidate category, and based on this relationship, the corresponding upper category is read from the plurality of upper categories stored in the registration rule memory 83. The upper category output circuit 85 outputs the defect determination circuit 200.

【0034】前記特定カテゴリ(符号Bとする)と欠陥
候補カテゴリ(符号Aとする)との関係に対応する上位
カテゴリは図10(A)ないし(G)に一例として示す
ものがある。同図(A)において、欠陥候補カテゴリA
から一定距離以内に対象となる特定のカテゴリBが存在
する場合には上位カテゴリN1 とする(ルール)。同
図(B)においては、欠陥候補カテゴリAからパターン
二値化像100aが連続している一定距離以内に対象と
なる特定のカテゴリBが存在する場合には上位カテゴリ
2 とする(ルール)。同図(C)においては、欠陥
候補カテゴリAに対して特定の方向(特定角度の仰角の
範囲内)且つ一定の距離以内に対象となる特定のカテゴ
リBが存在する場合には上位カテゴリN3 とする(ルー
ル)。同図(D)においては欠陥候補カテゴリAに対
して一定距離以内に対象となるカテゴリBが特定方向で
あれば上位カテゴリN4 とする(ルール)。同図
(E)においては欠陥候補カテゴリAからn画素の一定
範囲内の距離に対象となる特定のカテゴリB及び他の特
定カテゴリCが存在する場合には上位カテゴリN5 とす
る(ルール)。同図(F)においては欠陥候補カテゴ
ロリAに対して一定距離以内に対象となるカテゴリBが
存在する場合は上位カテゴリN6 とする。ただし、欠陥
候補カテゴリAに対するカテゴリBの方向のさらに先に
欠陥候補カテゴリAが存在するときは上位カテゴリN7
とする(ルール)。さらに同図(G)において欠陥候
補カテゴリAが一定の距離以内に所定の個数以上存在す
る場合には上位カテゴリN8 とする(ルール)。
The upper categories corresponding to the relationship between the specific category (denoted by symbol B) and the defect candidate category (denoted by symbol A) are shown in FIGS. 10A to 10G as an example. In FIG. 7A, defect candidate category A
If the target specific category B exists within a certain distance from, it is set as the higher category N 1 (rule). In the same figure (B), when the target specific category B exists within a certain distance where the pattern binarized image 100a is continuous from the defect candidate category A, the higher category N 2 is set (rule). .. In the same figure (C), when the target specific category B exists in a specific direction (within the range of the elevation angle) and within a certain distance with respect to the defect candidate category A, the higher category N 3 (Rule) In FIG. 5D, if the target category B is within a certain distance from the defect candidate category A, if the target category B is in the specific direction, it is set as the upper category N 4 (rule). In FIG. 6E, when the target specific category B and the other specific category C exist at a distance within a certain range of n pixels from the defect candidate category A, the higher category N 5 is set (rule). In FIG. 6F, when the target category B exists within a certain distance from the defect candidate category A, it is regarded as the upper category N 6 . However, when the defect candidate category A exists further in the direction of the category B with respect to the defect candidate category A, the higher category N 7
(Rule) Further, in FIG. 6G, when there are a predetermined number or more of defect candidate categories A within a certain distance, the defect candidate category A is set as a higher category N 8 (rule).

【0035】前記図10(A)〜(G)に記載し定義さ
れる各ルール〜は、ルールを基本として次に表1
として示すように各要素を追加して構成したものであ
る。さらに、表1に示す構成以外に、各要素を各々組合
せてさらに多くのルールを作成することもできる。例え
ば、ルール、を組合せて欠陥候補のカテゴリに対し
て特定方向且つ連続している一定距離以内に対象となる
特定のカテゴリが存在する場合はNm とする。
The rules defined and described in FIGS. 10A to 10G are based on the rules shown in Table 1 below.
It is configured by adding each element as shown by. Further, in addition to the configuration shown in Table 1, each element may be combined to create more rules. For example, N m is set when a target specific category exists in a specific direction and within a continuous constant distance with respect to the defect candidate category by combining rules.

【0036】[0036]

【表1】 前記表1において、各要素のうち連続性はパターン二値
画像100aが連続して延在している場合、参照方向は
欠陥候補カテゴリに対する対象となる特定のカテゴリの
方向、コード方向は参照するコードの特定の方向性、複
数カテゴリ参照は対象となる特定のカテゴリが複数、延
長は対象となる特定のカテゴリより先にさらに欠陥候補
カテゴリが存在、複数個は一定範囲内に欠陥候補カテゴ
リが複数存在するという各々の要素を示す。
[Table 1] In Table 1, the continuity among the respective elements indicates that the pattern binary image 100a continuously extends, the reference direction is the direction of the target specific category with respect to the defect candidate category, and the code direction is the reference code. Specific direction of multiple, multiple category references have multiple target specific categories, extension has more defect candidate categories before the specific target category, multiple have multiple defect candidate categories within a certain range Indicates each element that does.

【0037】前記カテゴリ探索回路82は図11(A)
〜(C)に各々示すような16方向の放射状走査(同図
(A))、四角領域走査(同図(B))、円領域走査
(同図C))等により一定距離内、例えば中心から20
画素程度の範囲において対象となる特定のカテゴリが存
在するか否かを探索する。前記各探索の方式は次の図2
で示すように一長一短があり、各条件に応じて使い分け
る必要がある。
The category search circuit 82 is shown in FIG.
Within a certain distance, for example, the center, by radial scanning in 16 directions (FIG. 7A), square area scanning (FIG. 3B), circular area scanning (FIG. 3C), etc. From 20
It is searched whether or not there is a specific category of interest within a range of about pixels. The method of each search is shown in FIG.
There are merits and demerits as shown in, and it is necessary to use them properly according to each condition.

【0038】[0038]

【表2】 即ち、放射状走査は探索の速度について最も速いが、検
索結果に抜けが生じるという欠点を有する。四角領域査
定は探索の抜けがなく処理が容易であるが、探索速度が
遅くまた距離が正確でなくなる等の欠点を有する。円領
域走査は探索の抜けがなく距離が正確となるが、探索速
度が遅く処理が困難という欠点を有する。
[Table 2] That is, the radial scan is the fastest in terms of search speed, but has the drawback that omissions occur in the search results. The square area assessment is easy to process without omission of search, but has drawbacks such as slow search speed and inaccurate distance. The circular area scanning has no omission in the search and the distance is accurate, but has a drawback that the search speed is slow and the processing is difficult.

【0039】また、前記四角領域走査の欠点を解消する
ために図12に記載する如く、中心となる欠陥候補カテ
ゴリAの種類により決定される方向の線上を矩形状の領
域(鎖線で示す)で走査して探索するように構成するこ
ともできる。
Further, as shown in FIG. 12 in order to eliminate the defect of the rectangular area scanning, a rectangular area (shown by a chain line) is formed on the line in the direction determined by the kind of the defect candidate category A at the center. It can also be configured to scan and search.

【0040】b)他の本発明の一実施例 他の本発明の一実施例を図13に基づいて説明する。同
図において、本実施例に係る外観検査装置は、前記図1
及び図2に記載の外観検査装置と同様に撮像装置1から
欠陥候補検出回路7及びカテゴリ分布メモリ91までの
回路構成を有し、この構成に加え、この欠陥候補検出回
路7で検出された欠陥候補カテゴリ及びカテゴリ分布メ
モリ91に格納された複数のカテゴリが各々入力され、
この入力された複数のカテゴリの中から前記欠陥候補カ
テゴリを中心として対象となる特定のカテゴリを放射状
に探索するカテゴリ探索部92と、この探索された複数
のカテゴリからなるカテゴリ分布を回転・表裏反転して
正規化する正規化回路11と、この正規化かされた複数
のカテゴリが入力され、この複数のカテゴリを相互に関
係づけて階層型のネットワーク構造として処理し、上位
カテゴリを演算して出力するニューラルネットワーク1
0と、この上位カテゴリに基づいて試料のプリント配線
板100上の配線パターンの良否を判断する欠陥判定回
路200とを備える構成である。
B) Another Embodiment of the Present Invention Another embodiment of the present invention will be described with reference to FIG. In FIG. 1, the appearance inspection apparatus according to the present embodiment is the same as that shown in FIG.
2 has a circuit configuration from the image pickup device 1 to the defect candidate detection circuit 7 and the category distribution memory 91 similarly to the appearance inspection apparatus shown in FIG. 2, and in addition to this configuration, the defects detected by the defect candidate detection circuit 7 A plurality of categories stored in the candidate category and category distribution memory 91 are respectively input,
A category search unit 92 that radially searches for a specific target category centered on the defect candidate category from among the plurality of input categories, and rotates / reverses the front and back of the category distribution that includes the plurality of retrieved categories. A normalization circuit 11 for normalizing the input data and a plurality of the normalized categories are input, the plurality of categories are associated with each other, processed as a hierarchical network structure, and an upper category is calculated and output. Neural network 1
0, and a defect determination circuit 200 for determining the quality of the wiring pattern on the printed wiring board 100 of the sample based on the higher category.

【0041】次に、前記構成に基づく本実施例の動作を
図14を参照して説明する。前記撮像装置1でプリント
配線板100のパターン画像を画素信号として出力し、
二値化回路2、画像メモリ21、前処理回路22、ラジ
アル測長回路3、コード化回路4、中心検出回路5、カ
テゴリ変換回路6を介してカテゴリが順次出力し、この
カテゴリに基づいて欠陥候補検出回路7が欠陥候補カテ
ゴリを検出してカテゴリ探索部92に出力すると共に、
前記カテゴリを順次にカテゴリ分布メモリに格納する。
Next, the operation of this embodiment based on the above configuration will be described with reference to FIG. The image pickup device 1 outputs the pattern image of the printed wiring board 100 as pixel signals,
Categories are sequentially output through the binarization circuit 2, the image memory 21, the preprocessing circuit 22, the radial length measurement circuit 3, the coding circuit 4, the center detection circuit 5, and the category conversion circuit 6, and defects are generated based on this category. While the candidate detection circuit 7 detects a defect candidate category and outputs it to the category search unit 92,
The categories are sequentially stored in the category distribution memory.

【0042】前記カテゴリ探索部92は検出された欠陥
候補カテゴリを中心としてカテゴリ分布メモリに格納さ
れる複数のカテゴリの中から図14(A)に示すように
8方向の放射状の線上においてカテゴリを探索する。こ
のカテゴリの探索はカテゴリ分布の中から中心となる欠
陥候補カテゴリと異なる対象となる特定カテゴリを検出
したときにそのカテゴリを用いる。さらに、カテゴリが
不明な画素を検出した場合には以後、最初に検出したカ
テゴリを用いる。このようにして図14(A)中におけ
る〜のカテゴリを検出できることとなる。この中心
となる欠陥候補カテゴリをとして示し、総計で9個の
カテゴリを探索できることとなる。
The category searching unit 92 searches for a category on a radial line in eight directions as shown in FIG. 14A from a plurality of categories stored in the category distribution memory centering on the detected defect candidate category. To do. This category search is performed when a specific category that is a target different from the central defect candidate category is detected from the category distribution. Further, when a pixel whose category is unknown is detected, the category detected first is used thereafter. In this way, the categories of to in FIG. 14 (A) can be detected. This central defect candidate category is shown as, and a total of 9 categories can be searched.

【0043】また、前記カテゴリの探索は図14(B)
に示す如く、欠陥候補カテゴリを中心として放射状に
8領域に分割し、この各領域内で欠陥候補に近い方から
順次探索する構成とすることもできる。
The search for the category is shown in FIG.
As shown in, it is possible to adopt a configuration in which the defect candidate category is divided into eight areas radially and the search is sequentially performed from the area closer to the defect candidate in each area.

【0044】このように探索された各カテゴリが検出さ
れ、各カテゴリが分布の回転.表裏反転に関して正規化
回路11がデータの処理方向を整理・調整して正規化し
たカテゴリをニューラルネットワーク10へ出力する。
このニューラルネットワーク10は順次入力される各カ
テゴリを階層型のネットワーク構造として処理すること
により上位カテゴリを演算して欠陥判定回路200へ出
力する。この上位カテゴリの演算は3層のバックプロパ
ゲーション型とする階層形式のネットワーク構造で処理
される。特に、ニューラルネットワークは高速処理を実
行するために、専用LSIやDSPを使用することが望
ましい。この演算出力される上位カテゴリは、例えば
「間隔不良」及び「微小銅残り」を含むものであれば、
「近接微小銅残り」とするように定義することもでき
る。この各上位カテゴリを正常とするか欠陥とするかは
使用者が決定することができ、欠陥の場合のみ種類コー
ドと共に出力する。
Each category searched in this way is detected, and each category is a rotation of the distribution. The normalization circuit 11 arranges and adjusts the data processing direction for front-back inversion and outputs the normalized category to the neural network 10.
The neural network 10 processes each category that is sequentially input as a hierarchical network structure to calculate a higher category and outputs it to the defect determination circuit 200. The operation of this upper category is processed in a hierarchical network structure of a three-layer back-propagation type. In particular, it is desirable to use a dedicated LSI or DSP for the neural network in order to execute high speed processing. If the upper category that is output by calculation includes, for example, “poor spacing” and “fine copper residue”,
It can also be defined as "proximity minute copper residue". It is possible for the user to determine whether each of these upper categories is normal or defective, and only the defect is output together with the type code.

【0045】この結果判定回路200は予め複数種類に
分類されて欠陥が定義された各上位カテゴリを格納し、
前記入力された上位カテゴリと格納された各上位カテゴ
リとを比較し、この比較結果に基づいて配線パターンの
良否を判断する。
The result judging circuit 200 stores each upper category in which a plurality of types are classified in advance and defects are defined,
The input upper category is compared with each of the stored upper categories, and the quality of the wiring pattern is determined based on the comparison result.

【0046】なお、図15(A)、(B)のような他の
実施例として構成することもできる。図15(A)は欠
陥候補カテゴリ1 9 までの各々を中心として複数
のカテゴリ分布中からカテゴリを探索し、この各々探索
されたカテゴリに基づいてニューラルネットワークが上
位カテゴリを演算出力する構成とすることもできる。
It should be noted that it is also possible to configure as another embodiment as shown in FIGS. 15 (A) and 15 (B). FIG. 15A shows a configuration in which a category is searched from a plurality of category distributions centering on each of defect candidate categories 1 to 9, and a neural network calculates and outputs a higher category based on each of the searched categories. You can also

【0047】また、図15(B)は複数のニューラルネ
ットワーク101 〜10n を並列に設け、この各々のニ
ューラルネットワーク101 〜10n が各々入力される
複数のカテゴリに基づいて上位カテゴリを演算して上位
ニューラルネットワークに入力し、この上位ニューラル
ネットワークが最上位カテゴリを演算する構成とするこ
ともできる。この最上位カテゴリに基づいて欠陥判定回
路200が欠陥の選択判定を実行し、配線パターンの良
否が判断できることとなる。このように複数のニューラ
ルネットワーク101 〜10n に各々複数のカテゴリを
入力できることから、この複数のカテゴリに対応する広
い範囲のパターン画像を対象とできることとなり、検査
精度をさらに向上させることができることとなる。さら
に、前記実施例においては、カテゴリ探索部92におけ
るカテゴリ探索において欠陥候補カテゴリを中心画素と
してカテゴリ分布中から放射状にカテゴリを探索する構
成としたが、カテゴリ分布中の任意の中心画素から放射
状にカテゴリの探索を実行する構成とすることもでき
る。この場合には、欠陥候補カテゴリを検出する欠陥候
補検出回路7を前段に設ける必要がなくなる。またカテ
ゴリ分布メモリ91を設けることなくカテゴリ探索部9
1で直接にカテゴリの探索を行なう構成とすることもで
きる。カテゴリ探索部91から出力されるカテゴリの分
布を正規化回路11で正規化する構成としたが、カテゴ
リの分布を直接ニューラルネットワーク10に入力して
上位カテゴリを演算する構成とすることもできる。
Further, in FIG. 15B, a plurality of neural networks 10 1 to 10 n are provided in parallel, and a higher category is calculated based on a plurality of categories to which the respective neural networks 10 1 to 10 n are input. Then, the upper neural network may be input to the upper neural network, and the upper neural network may calculate the highest category. Based on this highest category, the defect judgment circuit 200 executes the defect selection judgment and can judge the quality of the wiring pattern. Since a plurality of categories can be input to each of the plurality of neural networks 10 1 to 10 n in this manner, a wide range of pattern images corresponding to the plurality of categories can be targeted, and the inspection accuracy can be further improved. Become. Further, in the above-described embodiment, in the category search in the category search unit 92, the category is radially searched from the category distribution with the defect candidate category as the central pixel, but the category is radially searched from any central pixel in the category distribution. It is also possible to adopt a configuration in which the search is executed. In this case, it is not necessary to provide the defect candidate detection circuit 7 for detecting the defect candidate category in the preceding stage. Further, the category search unit 9 is provided without providing the category distribution memory 91.
It is also possible to adopt a configuration in which the category is directly searched for with 1. Although the distribution of the categories output from the category searching unit 91 is normalized by the normalization circuit 11, the distribution of the categories may be directly input to the neural network 10 to calculate the upper category.

【0048】[0048]

【発明の効果】以上のように本発明においては、カテゴ
リ変換手段から順次出力される試料のパターンのカテゴ
リの分布に基づいて欠陥候補検出手段が欠陥候補カテゴ
リを検出し、当該欠陥候補カテゴリを中心とするカテゴ
リの分布における対象となる特定のカテゴリと欠陥候補
カテゴリとの関係から上位カテゴリを選択し、当該上位
カテゴリに基づいて試料パターンの欠陥を検出すること
から、試料パターンの広い領域におけるコードを用いて
パターン良否の判断ができることとなり、過剰検出に基
づく検出誤りを極力低減できると共に、欠陥検出性能を
向上させる。また、検出される欠陥種類についてもより
正確に判別できるという効果を有する。
As described above, according to the present invention, the defect candidate detecting means detects the defect candidate category based on the distribution of the category of the pattern of the sample sequentially output from the category converting means, and the defect candidate category is centered on the defect candidate category. The upper category is selected from the relationship between the target specific category and the defect candidate category in the category distribution, and the defect in the sample pattern is detected based on the upper category. By using this, it is possible to judge the quality of the pattern, and it is possible to reduce the detection error based on the excessive detection as much as possible and improve the defect detection performance. Further, there is an effect that the detected defect type can be more accurately discriminated.

【0049】また、他の本発明においては、カテゴリ変
換手段から順次出力される試料パターンのカテゴリの分
布に基づいて、この分布の中心画素を中心に放射状にカ
テゴリを放射状カテゴリ検出手段で複数検出し、当該検
出された複数のカテゴリを相互に関係づけてニューラル
ネットワークにより階層型ネットワーク構造のデータと
して処理して上位カテゴリを演算出力し、当該上位カテ
ゴリに基づいて試料のパターン欠陥を検出することか
ら、広い領域のコードを用いて良否判断ができることと
なり、欠陥検出性能が向上する。特に、ニューラルネッ
トワークの学習によって検査が可能となることから、従
来困難であった辞書作成が容易となるという効果を有す
る。さらに、欠陥種類の判別が正確にできるという効果
を有する。
In another aspect of the present invention, a plurality of categories are radially detected by the radial category detecting means based on the distribution of the category of the sample pattern sequentially output from the category converting means, with the central pixel of this distribution as the center. , Correlating the detected plurality of categories with each other and processing them as data of a hierarchical network structure by a neural network to arithmetically output the upper category, and detecting the pattern defect of the sample based on the upper category, Since it is possible to make a pass / fail judgment using a code in a wide area, the defect detection performance is improved. In particular, since the inspection can be performed by learning the neural network, it has an effect of facilitating the creation of a dictionary, which has been difficult in the past. In addition, the defect type can be accurately determined.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】他の本発明の原理説明図である。FIG. 2 is another principle explanatory diagram of the present invention.

【図3】本発明の一実施例に係る外観検査装置の全体ブ
ロック構成図である。
FIG. 3 is an overall block configuration diagram of a visual inspection apparatus according to an embodiment of the present invention.

【図4】図3記載の実施例装置におけるラジアル測長回
路の原理構成図である。
4 is a principle configuration diagram of a radial length measuring circuit in the embodiment apparatus shown in FIG.

【図5】図3記載の実施例装置におけるラジアル測長回
路を構成するラジアル測長センサ説明図である。
FIG. 5 is an explanatory view of a radial length measuring sensor which constitutes a radial length measuring circuit in the apparatus of the embodiment shown in FIG.

【図6】図3記載の実施例装置における中心検出回路の
ブロック構成図である。
FIG. 6 is a block configuration diagram of a center detection circuit in the embodiment apparatus shown in FIG.

【図7】図3記載の実施例装置におけるコード化回路の
回路構成図である。
FIG. 7 is a circuit configuration diagram of an encoding circuit in the embodiment apparatus shown in FIG.

【図8】図3記載の実施例装置におけるカテゴリ変換回
路及び欠陥候補検出回路の概略構成図である。
8 is a schematic configuration diagram of a category conversion circuit and a defect candidate detection circuit in the apparatus of the embodiment shown in FIG.

【図9】図3記載の実施例装置において用いられる各種
カテゴリ定義の具体例説明図である。
FIG. 9 is a diagram illustrating a specific example of various category definitions used in the apparatus of the embodiment shown in FIG.

【図10】図3記載の実施例装置において用いられる特
定カテゴリと欠陥候補カテゴリとの関係に対応する上位
カテゴリの定義説明図である。
10 is a definition explanatory diagram of a higher category corresponding to the relationship between a specific category and a defect candidate category used in the apparatus of the embodiment shown in FIG.

【図11】図3記載の実施例装置におけるカテゴリ探索
回路の走査態様図である。
11 is a scanning mode diagram of a category search circuit in the apparatus of the embodiment shown in FIG.

【図12】カテゴリ探索回路の他の走査態様図である。FIG. 12 is another scanning mode diagram of the category search circuit.

【図13】他の本発明の一実施例に係る外観検査装置の
要部ブロック構成図である。
FIG. 13 is a block diagram of a main part of a visual inspection apparatus according to another embodiment of the present invention.

【図14】図13記載の実施例装置におけるカテゴリ探
索部の探索説明図である。
FIG. 14 is a search explanatory diagram of a category search unit in the apparatus of the embodiment described in FIG.

【図15】他の本発明の他の実施例装置におけるカテゴ
リ探索部の探索説明図及びニューラルネットワークのブ
ロック構成図である。
FIG. 15 is a search explanatory view of a category search unit and a block configuration diagram of a neural network in another embodiment apparatus of the present invention.

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

1…撮像部(撮像手段) 2…二値化回路(二値化手段) 3…ラジアル測長回路(ラジアル測長手段) 4…コード化回路(コード化手段) 5…中心検出回路(中心検出手段) 6…カテゴリ変換回路(カテゴリ変換手段) 7…欠陥候補検出回路(欠陥候補検出手段) 8…上位カテゴリ変換手段 9…放射状カテゴリ検出手段 10…ニューラルネットワーク 11…正規化回路(正規化手段) 21…画像メモリ 22…前処理回路 81…カテゴリ分布メモリ 82…カテゴリ探索回路 83…登録ルールメモリ 84…上位カテゴリ出力回路 85…登録ルール参照回路 91…カテゴリ分布記憶部 92…カテゴリ探索部 100…プリント配線板 101…X−Yステージ 200…欠陥判定回路 DESCRIPTION OF SYMBOLS 1 ... Imaging part (imaging means) 2 ... Binarization circuit (binarization means) 3 ... Radial length measurement circuit (radial length measurement means) 4 ... Coding circuit (coding means) 5 ... Center detection circuit (center detection) Means) 6 ... Category conversion circuit (category conversion means) 7 ... Defect candidate detection circuit (defect candidate detection means) 8 ... Upper category conversion means 9 ... Radial category detection means 10 ... Neural network 11 ... Normalization circuit (normalization means) 21 ... Image memory 22 ... Preprocessing circuit 81 ... Category distribution memory 82 ... Category search circuit 83 ... Registration rule memory 84 ... Upper category output circuit 85 ... Registration rule reference circuit 91 ... Category distribution storage unit 92 ... Category search unit 100 ... Print Wiring board 101 ... XY stage 200 ... Defect determination circuit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G06F 15/70 460 Z 9071−5L H05K 3/00 Q 6921−4E ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification number Internal reference number FI Technical display location G06F 15/70 460 Z 9071-5L H05K 3/00 Q 6921-4E

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 試料(100)上に形成されたパターン
を撮像する撮像手段(1)と、撮像された画像を二値化
する画像二値化手段(2)と、当該二値化画像上の任意
の中心画素から複数方向に延在する各画素列内における
パターン部分のパターン部長さを測定するラジアル測長
手段(3)と、当該複数方向の測長値から前記パターン
の略中心を検出する中心検出手段(4)と、前記複数方
向の各測長値をラジアルコードに変換するコード化手段
(5)と、各種ラジアルコードに対応したパターン形状
の種類を示すカテゴリコードを予め格納し、前記コード
化手段(5)で変換されたラジアルコードに基づいて格
納されたカテゴリを選択してカテゴリコードに変換する
カテゴリ変換手段(6)とを備え、前記カテゴリコード
に基づいてパターンの欠陥を検出する外観検出装置にお
いて、 前記格納されたパターン形状の種類を示すカテゴリコー
ドのうち予め定義された欠陥候補を格納し、前記カテゴ
リ変換手段(6)から出力されるカテゴリコードを欠陥
候補のカテゴリコードと比較して欠陥候補カテゴリを検
出する欠陥候補検出手段(7)と、 前記欠陥候補カテゴリと対象となるカテゴリとの関係を
分類し、当該分類に対応したパターン形状の種類を示す
各種上位カテゴリコードを格納し、前記検出された欠陥
候補カテゴリと当該欠陥候補カテゴリを中心とする所定
領域内におけるカテゴリ分布中の対象となる特定のカテ
ゴリとの関係に基づいて、当該関係に対応する上位カテ
ゴリコードを選択して出力する上位カテゴリ変換手段
(8)とを備え、前記上位カテゴリコードに基づいてパ
ターン欠陥の検出を行なうことを特徴とする外観検査装
置。
1. An image pickup means (1) for picking up a pattern formed on a sample (100), an image binarization means (2) for binarizing the picked-up image, and an image on the binarized image. Radial measuring means (3) for measuring the pattern portion length of the pattern portion in each pixel row extending in a plurality of directions from any of the central pixels, and detecting the approximate center of the pattern from the measured values in the plurality of directions. A center detecting means (4), a coding means (5) for converting each measured value in the plurality of directions into a radial code, and a category code indicating a type of pattern shape corresponding to each radial code, A category conversion means (6) for selecting a stored category based on the radial code converted by the encoding means (5) and converting it into a category code; and a pattern based on the category code In the appearance detecting device for detecting defects, a pre-defined defect candidate among the stored category codes indicating the type of pattern shape is stored, and the category code output from the category conversion means (6) is used as the defect candidate. Defect candidate detection means (7) that detects a defect candidate category by comparing the defect candidate category with the category code of No. 1, and various types that indicate the type of pattern shape corresponding to the classification by classifying the relationship between the defect candidate category and the target category. An upper category code that stores a higher category code and corresponds to the detected defect candidate category and a specific category that is a target in a category distribution in a predetermined area centered on the defect candidate category Upper category conversion means (8) for selecting and outputting a category code, and based on the upper category code Appearance inspection apparatus and carrying out the detection of a pattern defect.
【請求項2】 前記請求項1記載の外観検査装置におい
て、 前記上位カテゴリ変換手段(8)は、カテゴリ変換手段
(6)から出力されるカテゴリコードの分布を欠陥候補
検出手段(7)で欠陥候補カテゴリが検出されたことを
条件として格納するカテゴリ分布記憶部(81)と、当
該格納されたカテゴリコードの分布中から対象となる特
定のカテゴリを探索するカテゴリ探索部(82)と、前
記欠陥候補カテゴリと対象となるカテゴリの関係を分類
し、当該分類に対応したパターン形状の種類を示す各種
上位カテゴリコードを格納する登録ルール記憶部(8
3)と、前記探索されたカテゴリと検出された欠陥候補
カテゴリとの関係に対応する登録ルール記憶部(83)
に格納された上位カテゴリコードを選択して出力する上
位カテゴリ出力部(84)とを備えることを特徴とする
外観検査装置。
2. The appearance inspection apparatus according to claim 1, wherein the higher category conversion means (8) detects a defect of a category code distribution output from the category conversion means (6) by a defect candidate detection means (7). A category distribution storage unit (81) that stores a condition that a candidate category is detected, a category search unit (82) that searches for a specific target category in the stored distribution of category codes, and the defect. A registration rule storage unit (8) that classifies relationships between candidate categories and target categories, and stores various upper category codes that indicate types of pattern shapes corresponding to the categories.
3) and a registration rule storage unit (83) corresponding to the relationship between the searched category and the detected defect candidate category.
And an upper category output section (84) for selecting and outputting the upper category code stored in the appearance inspection apparatus.
【請求項3】 前記請求項1記載の外観検査装置におい
て、 前記上位カテゴリ変換手段(8)は、欠陥候補カテゴリ
から一定の距離以内に対象となる特定のカテゴリが存在
するか否かによりカテゴリの分布を判断し、この判断に
基づいて上位カテゴリを出力することを特徴とする外観
検査装置。
3. The appearance inspection apparatus according to claim 1, wherein the upper category conversion means (8) determines whether a specific category of interest is present within a certain distance from a defect candidate category. An appearance inspection device characterized by determining a distribution and outputting a higher category based on this determination.
【請求項4】 前記請求項1記載の外観検査装置におい
て、 前記上位カテゴリ変換手段(8)は、欠陥候補カテゴリ
から一定の距離以内、且つパターンが連続している位置
に対象となる特定のカテゴリが存在するか否かによりカ
テゴリの分布を判断し、この判断に基づいて上位カテゴ
リを出力することを特徴とする外観検査装置。
4. The appearance inspection apparatus according to claim 1, wherein the upper category conversion unit (8) is a specific category to be a target within a certain distance from a defect candidate category and a position where patterns are continuous. The appearance inspection apparatus is characterized in that the distribution of categories is judged depending on whether or not there exists, and a higher category is output based on this judgment.
【請求項5】 前記請求項1記載の外観検査装置におい
て、 前記上位カテゴリ変換手段(8)は、欠陥候補カテゴリ
から一定の距離以内、且つ特定の方向に対象となる特定
のカテゴリが存在するか否かによりカテゴリの分布を判
断し、この判断に基づいて上位カテゴリを出力すること
を特徴とする外観検査装置。
5. The appearance inspection apparatus according to claim 1, wherein the upper category conversion means (8) is within a certain distance from a defect candidate category, and is there a specific category of interest in a specific direction? An appearance inspection apparatus characterized in that the distribution of categories is judged depending on whether or not the higher category is output.
【請求項6】 前記請求項1記載の外観検査装置におい
て、 前記上位カテゴリ変換手段(8)は、欠陥候補カテゴリ
から一定の距離以内、且つ特定の方向の向きを持つ対象
となる特定のカテゴリが存在するか否かによりカテゴリ
の分布を判断し、この判断に基づいて上位カテゴリを出
力することを特徴とする外観検査装置。
6. The appearance inspection apparatus according to claim 1, wherein the upper category conversion unit (8) determines that a specific category that is a target within a certain distance from a defect candidate category and that has a direction in a specific direction is a target category. An appearance inspection apparatus characterized in that a category distribution is judged depending on whether or not it exists, and a higher category is output based on this judgment.
【請求項7】 前記請求項1記載の外観検査装置におい
て、 前記上位カテゴリ変換手段(8)は、欠陥候補カテゴリ
から一定の距離以内、且つ対象となる特定のカテゴリ及
び他の特定のカテゴリが同時に存在するか否かによりカ
テゴリの分布を判断し、この判断に基づいて上位カテゴ
リを出力することを特徴とする外観検査装置。
7. The appearance inspection apparatus according to claim 1, wherein the upper category conversion means (8) is within a certain distance from the defect candidate category, and the target specific category and other specific categories are simultaneously selected. An appearance inspection apparatus characterized in that a category distribution is judged depending on whether or not it exists, and a higher category is output based on this judgment.
【請求項8】 前記請求項1記載の外観検査装置におい
て、 前記上位カテゴリ変換手段(8)は、欠陥候補カテゴリ
から一定距離以内、且つ特定の方向に対象となる特定の
カテゴリが存在し、前記特定の方向に先に他の特定のカ
テゴリが存在するか否かによりカテゴリの分布を判断
し、この判断に基づいて上位カテゴリを出力することを
特徴とする外観検査装置。
8. The appearance inspection apparatus according to claim 1, wherein the upper category conversion unit (8) has a specific category within a predetermined distance from a defect candidate category and in a specific direction, An appearance inspection apparatus characterized in that the distribution of categories is judged depending on whether or not other specific categories exist in a specific direction, and the higher category is output based on this judgment.
【請求項9】 前記請求項1記載の外観検査装置におい
て、 前記上位カテゴリ変換手段(8)は、欠陥候補カテゴリ
から一定の距離以内、且つ対象となる特定のカテゴリが
特定の個数以上存在するか否かによりカテゴリの分布を
判断し、この判断に基づいて上位カテゴリを出力するこ
とを特徴とする外観検査装置。
9. The appearance inspection apparatus according to claim 1, wherein the upper category conversion means (8) is within a certain distance from the defect candidate category, and whether or not there is a specific number or more of the target specific categories. An appearance inspection apparatus characterized in that the distribution of categories is judged depending on whether or not the higher category is output.
【請求項10】 前記請求項1ないし9記載のいずれか
の外観検査装置において、 前記上位カテゴリ変換手段8は、所定領域内において放
射状の測長に基づいて対象となる特定のカテゴリを探索
して上位カテゴリを出力することを特徴とする外観検査
装置。
10. The appearance inspection apparatus according to claim 1, wherein the higher category conversion means 8 searches for a specific target category based on radial measurement within a predetermined area. A visual inspection device characterized by outputting a higher category.
【請求項11】 前記請求項1ないし9記載のいずれか
の外観検査装置において、 前記上位カテゴリ変換手段8は、所定矩形状領域内にお
いて対象となる特定のカテゴリを探索して上位カテゴリ
を出力することを特徴とする外観検査装置。
11. The appearance inspection apparatus according to claim 1, wherein the upper category conversion unit 8 searches for a specific target category in a predetermined rectangular area and outputs the upper category. A visual inspection device characterized in that
【請求項12】 前記請求項1ないし9記載のいずれか
の外観検査装置において、 前記上位カテゴリ変換手段8は、所定円形状領域内にお
いて対象となる特定のカテゴリを探索して上位カテゴリ
を出力することを特徴とする外観検査装置。
12. The appearance inspection apparatus according to claim 1, wherein the upper category conversion unit 8 searches for a specific category of interest in a predetermined circular area and outputs the upper category. A visual inspection device characterized in that
【請求項13】 試料(100)上に形成されたパター
ンを撮像する撮像手段(1)と、撮像された画像を二値
化する画像二値化手段(2)と、当該二値化画像上の任
意の中心画素から複数方向に延在する各画素列内におけ
るパターン部分のパターン部長さを測定するラジアル測
長手段(3)と、当該複数方向の測長値から前記パター
ンの略中心を検出する中心検出手段(4)と、前記複数
方向の各測長値をラジアルコードに変換するコード化手
段(5)と、各種ラジアルコードに対応したパターン形
状の種類を示すカテゴリコードを予め格納し、前記コー
ド化手段(5)で変換されたラジアルコードに基づいて
格納されたカテゴリを選択してカテゴリコードに変換す
るカテゴリ変換手段(6)とを備え、前記カテゴリコー
ドに基づいてパターンの欠陥を検出する外観検出装置に
おいて、 前記カテゴリ変換手段(6)から順次出力される複数の
カテゴリにおける任意の中心画素を中心として、当該中
心画素から放射状に分布するカテゴリを複数検出する放
射状カテゴリ検出手段(9)と、 前記検出された複数のカテゴリを相互に関係づけて階層
型ネットワーク構造のデータとして処理することにより
上位カテゴリを出力するニューラルネットワーク(1
0)とを備え、当該上位カテゴリに基づいてパターン欠
陥の検出を行なうことを特徴とする外観検査装置。
13. An image pickup means (1) for picking up a pattern formed on a sample (100), an image binarization means (2) for binarizing the picked-up image, and on the binarized image. Radial measuring means (3) for measuring the pattern portion length of the pattern portion in each pixel row extending in a plurality of directions from any of the central pixels, and detecting the approximate center of the pattern from the measured values in the plurality of directions. A center detecting means (4), a coding means (5) for converting each measured value in the plurality of directions into a radial code, and a category code indicating a type of pattern shape corresponding to each radial code, A category conversion means (6) for selecting a stored category based on the radial code converted by the encoding means (5) and converting the stored category into a category code; In the appearance detecting apparatus for detecting defects in the image, radial categories for detecting a plurality of categories radially distributed from the center pixel around an arbitrary center pixel in the plurality of categories sequentially output from the category conversion means (6). A detection means (9) and a neural network (1) which outputs a higher category by processing the detected plurality of categories in relation to each other and processing them as data of a hierarchical network structure.
0) and the pattern inspection is carried out based on the higher category.
【請求項14】 前記請求項13記載の外観検査装置に
おいて、 前記格納されたパターン形状の種類を示すカテゴリコー
ドのうち予め定義された欠陥候補を格納し、前記カテゴ
リ変換手段(6)から出力されるカテゴリコードを欠陥
候補のカテゴリコードと比較して欠陥候補カテゴリを検
出する欠陥候補検出手段(7)を備え、 前記放射状カテゴリ検出手段(9)によるカテゴリの検
出を欠陥候補カテゴリを中心として行なうことを特徴と
する外観検査装置。
14. The appearance inspection apparatus according to claim 13, wherein a defect candidate defined in advance among the stored category codes indicating the types of pattern shapes is stored and output from the category conversion means (6). Defect candidate detecting means (7) for detecting a defect candidate category by comparing the category code of the defect candidate with the category code of the defect candidate, and performing the detection of the category by the radial category detecting means (9) mainly on the defect candidate category. Appearance inspection device.
【請求項15】 前記請求項13又は14に記載の外観
検査装置において、 前記放射状カテゴリ検出手段(9)から出力される複数
のカテゴリによる分布を回転・表裏反転について正規化
する正規化手段(11)を備え、 正規化された複数のカテゴリを前記ニューラルネットワ
ークに出力することを特徴とする外観検査装置。
15. The appearance inspection apparatus according to claim 13 or 14, wherein the normalization means (11) normalizes the distribution of a plurality of categories output from the radial category detection means (9) with respect to rotation and front / back inversion. ), And outputs a plurality of normalized categories to the neural network.
【請求項16】 前記請求項13ないし15のいずれか
に記載の外観検査装置において、 前記放射状カテゴリ検出手段(9)は、カテゴリの分布
中において放射線状に分割した分割領域内において各々
カテゴリを検出することを特徴とする外観検査装置。
16. The appearance inspection apparatus according to any one of claims 13 to 15, wherein the radial category detection means (9) detects each category in a radially divided division area in a category distribution. Appearance inspection device characterized by:
【請求項17】 前記請求項13ないし16のいずれか
に記載の外観検査装置において、 前記放射状カテゴリ検出手段(9)は、カテゴリの分布
及び当該分布の略中心画素からの距離情報を用いて対象
となる特定のカテゴリを検出することを特徴とする外観
検査装置。
17. The appearance inspection apparatus according to claim 13, wherein the radial category detection means (9) uses a distribution of categories and distance information from a substantially central pixel of the distribution as a target. The visual inspection apparatus is characterized by detecting a specific category as follows.
【請求項18】 前記請求項13ないし17のいずれか
に記載の外観検査装置において、 前記ニューラルネットワーク(10)は、初段において
複数の下位ニューラルネットワークを並列に接続し、当
該複数の下位ニューラルネットワークから出力される複
数の上位カテゴリが入力され、当該複数の上位カテゴリ
に基づいて最上位カテゴリを演算する上位ニューラルネ
ットワークを段階的に接続することを特徴とする外観検
査装置。
18. The appearance inspection apparatus according to claim 13, wherein the neural network (10) has a plurality of lower neural networks connected in parallel at a first stage, and the plurality of lower neural networks are connected to each other. A visual inspection apparatus, wherein a plurality of output upper categories are input, and an upper neural network that calculates the highest category based on the plurality of upper categories is connected in stages.
JP4064141A 1992-03-19 1992-03-19 Visual inspection device Pending JPH05264240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4064141A JPH05264240A (en) 1992-03-19 1992-03-19 Visual inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4064141A JPH05264240A (en) 1992-03-19 1992-03-19 Visual inspection device

Publications (1)

Publication Number Publication Date
JPH05264240A true JPH05264240A (en) 1993-10-12

Family

ID=13249507

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4064141A Pending JPH05264240A (en) 1992-03-19 1992-03-19 Visual inspection device

Country Status (1)

Country Link
JP (1) JPH05264240A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0855218A (en) * 1994-08-09 1996-02-27 Fujitsu Ltd Method and device for pattern inspection
JPH10302049A (en) * 1997-04-28 1998-11-13 Kumamoto Techno Porisu Zaidan Image identification device, its method, image detection/ identification device provided with the image identification device and medium recording image identification program
US6741734B2 (en) 2000-04-06 2004-05-25 Nec Corporation Appearance inspection method and appearance inspection apparatus having high inspection processing speed
JP2005301823A (en) * 2004-04-14 2005-10-27 Olympus Corp Classification device and classification method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0855218A (en) * 1994-08-09 1996-02-27 Fujitsu Ltd Method and device for pattern inspection
JPH10302049A (en) * 1997-04-28 1998-11-13 Kumamoto Techno Porisu Zaidan Image identification device, its method, image detection/ identification device provided with the image identification device and medium recording image identification program
US6741734B2 (en) 2000-04-06 2004-05-25 Nec Corporation Appearance inspection method and appearance inspection apparatus having high inspection processing speed
JP2005301823A (en) * 2004-04-14 2005-10-27 Olympus Corp Classification device and classification method

Similar Documents

Publication Publication Date Title
US7689029B2 (en) Apparatus and method for inspecting pattern
US6954550B2 (en) Image processing method and apparatus
JPH0757051A (en) Pattern recognition device
JPH08320294A (en) Device and method for inspecting defect of pattern to be inspected
JP2006090921A (en) Visual examination device, threshold determining method visual examination method and program for functionalizing computer as visual examination device
JPH08210820A (en) Method and device for recognizing part to be inspected in visual inspection device of parts-mounted board
JPH05264240A (en) Visual inspection device
JPH0210461B2 (en)
JPH02242382A (en) Defect checking method
Yeh et al. A rotation-invariant and non-referential approach for ball grid array (BGA) substrate conducting path inspection
JPS62263404A (en) Apparatus for inspecting pattern
JPH09178427A (en) Image position measuring method
JP2787851B2 (en) Pattern feature extraction device
JP2001099625A (en) Device and method for pattern inspection
JP2710685B2 (en) Defect detection method by visual inspection
JP2002277409A (en) Inspection device for pattern of printed board
JPH0726827B2 (en) Pattern inspection equipment
JP3189604B2 (en) Inspection method and device
JP3198105B2 (en) Automatic visual inspection device
JPH0815174A (en) Defect inspection method by visual inspection
JPH08285755A (en) Push-in hardness meter
JP2959017B2 (en) Circular image discrimination method
JPS6378009A (en) Pattern inspecting instrument
JPS6350744A (en) Pattern inspecting apparatus
JPH033269B2 (en)

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010828