JP3368644B2 - Wiring pattern inspection apparatus and method - Google Patents

Wiring pattern inspection apparatus and method

Info

Publication number
JP3368644B2
JP3368644B2 JP32850093A JP32850093A JP3368644B2 JP 3368644 B2 JP3368644 B2 JP 3368644B2 JP 32850093 A JP32850093 A JP 32850093A JP 32850093 A JP32850093 A JP 32850093A JP 3368644 B2 JP3368644 B2 JP 3368644B2
Authority
JP
Japan
Prior art keywords
code
characteristic
feature
code string
string
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP32850093A
Other languages
Japanese (ja)
Other versions
JPH06288738A (en
Inventor
豊樹 川原
淳晴 山本
祐二 丸山
秀彦 川上
秀昭 川村
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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP32850093A priority Critical patent/JP3368644B2/en
Priority to US08/305,968 priority patent/US5608816A/en
Publication of JPH06288738A publication Critical patent/JPH06288738A/en
Application granted granted Critical
Publication of JP3368644B2 publication Critical patent/JP3368644B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

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

【0001】[0001]

【産業状の利用分野】本発明は、プリント基板やホトマ
スク等における配線パターンの不良を検査するための配
線パターン検査装置及びその方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a wiring pattern inspection apparatus and method for inspecting a wiring pattern on a printed circuit board, a photomask or the like.

【0002】[0002]

【従来の技術】従来、プリント基板等の不良の検査は人
間による目視検査に頼っていた。ところが、製品の小型
化や軽量化が進むにつれ、プリント基板の配線パターン
細密化や複雑化がより一層進んでいる。このような状況
の中で、人間が高い検査精度を保ちつつ非常に細密な配
線パターンを、しかも長時間続けることが難しくなって
きており、検査の自動化が強く望まれている。
2. Description of the Related Art Conventionally, visual inspection by humans has been used to inspect defective printed circuit boards. However, as products become smaller and lighter, the wiring patterns of printed circuit boards are becoming finer and more complex. Under such circumstances, it is becoming difficult for a person to keep a very fine wiring pattern for a long time while maintaining high inspection accuracy, and automation of inspection is strongly desired.

【0003】プリント基板外観検査装置の従来例として
は、中川泰夫、二宮隆典:”電子回路基板の外観検査技
術”、O plus E、No.132、pp138〜15
2、1990年11月に各種検査装置が紹介されてい
る。パターンの検査方式としては、特徴抽出法(または
デザインルール法:DRC法)と比較検査法に大別され
る。デザインルール法は、線幅や配線パターンの特徴
(接続点、端点等)から設計ルールに違反していないか
を検査するもので、例えば特開昭61−15343号公
報や特開昭62−263404号公報などがある。
As a conventional example of a printed circuit board appearance inspection apparatus, Yasuo Nakagawa and Takanori Ninomiya: "Appearance inspection technology for electronic circuit boards", O plus E, No. 3 132, pp 138-15
2. Various inspection devices were introduced in November 1990. Pattern inspection methods are roughly classified into a feature extraction method (or design rule method: DRC method) and a comparison inspection method. The design rule method inspects whether or not the design rule is violated from the characteristics of the line width and the wiring pattern (connection points, end points, etc.). For example, Japanese Patent Laid-Open No. 61-15343 and Japanese Patent Laid-Open No. 62-263404. There is a bulletin, etc.

【0004】一方、比較検査法は、良品パターンや設計
パターンと被検査パターンとを画素単位で比較する方式
で、例えば特開昭60−061604号公報や特開昭6
2−140009号公報などがある。
On the other hand, the comparison inspection method is a method for comparing the pattern to be inspected with the non-defective pattern or design pattern on a pixel- by- pixel basis, and is disclosed in, for example, JP-A-60-061604 or JP-A-6-160604.
2-140009 and the like.

【0005】[0005]

【発明が解決しようとする課題】しかしながら上記の従
来の構成では、それぞれ一長一短がありそれぞれの方式
を補うためにいくつかの方法があり、中川泰夫、二宮隆
典:”電子回路基板の外観検査技術”、O plus E、N
o.132、pp138〜152、1990年11月の
中で比較検査法と特徴抽出法を組み合わせおのおのの長
所を採用し欠点を補う方式が紹介されている。また、有
望な方式としては、特開平1−180404号公報のパ
ターン領域に対して事前に準備される複数の検査法の中
から所要の検査法を適用する領域を各検査法毎に設定す
る方式で、具体的には領域毎に比較検査法と特徴抽出法
で検査するものである。
However, in the above-mentioned conventional configuration, there are advantages and disadvantages, and there are several methods to supplement the respective methods. Yasuo Nakagawa, Takanori Ninomiya: "Appearance inspection technology for electronic circuit boards" , O plus E, N
o. 132, pp. 138-152, November 1990, a method of combining the comparative inspection method and the feature extraction method and adopting their respective advantages and compensating for their defects is introduced. Further, as a promising method, a method of setting a region to which a required inspection method is applied from a plurality of inspection methods prepared in advance for the pattern region of JP-A-1-180404 is set for each inspection method. Specifically, the inspection is performed for each area by the comparison inspection method and the feature extraction method.

【0006】しかし、この方法では、近年の微細化およ
び複雑化する配線パターンに対して人手により数十〜数
百箇所の領域を設定する事は困難であるとともに、設定
した領域と被検査基板との位置ズレの問題も大きいとい
う課題を有していた。
However, according to this method, it is difficult to manually set several tens to several hundreds of regions for a wiring pattern which is becoming finer and more complicated in recent years, and the set region and the substrate to be inspected There was also a problem that the problem of the positional deviation of was large.

【0007】本発明は上記従来技術の課題を解決するも
ので、基板上の各種パターンに適合したミクロ検査とマ
クロ検査を並行して検査するため、処理領域を分けるこ
となく基板に存在する多種多様な欠陥に対し見落としや
誤報のない簡便で信頼性の高い配線パターン検査装置を
提供することを目的とする。
The present invention solves the above-mentioned problems of the prior art. Since the micro inspection and the macro inspection adapted to various patterns on the substrate are inspected in parallel, a wide variety of substrates existing on the substrate can be obtained without dividing the processing area. It is an object of the present invention to provide a simple and highly reliable wiring pattern inspection device that does not overlook or falsely report various defects.

【0008】[0008]

【課題を解決するための手段】この目的を達成するため
に本発明は、第1に、プリント基板から得た2値画像に
対し、線幅や線間隔を測定し設計ルールに定められた基
準に違反した位置とその種類を特徴情報として検出する
デザインルール検査手段と、予め良品基板を用いてデザ
インルール検査手段からの特徴情報を記憶する特徴情報
記憶手段と、前記デザインルール検査手段により検出さ
れた特徴情報と、前記特徴情報記憶手段からの特徴情報
とを比較し真の欠陥のみを検出する第1の比較判定手段
から成るミクロ検査装置と、前記2値画像に対し、
像の輪郭位置にエッジの方向を表す方向コードを与え、
方向コードの変化する点を特徴点として検出し、前記特
徴点の座標と方向コードの変化を表すコードからなる特
徴コードを検出する特定形状検出手段と、予め良品基板
を用いて特定形状検出手段からの特徴コードを記憶する
特徴コード記憶手段と、前記特定形状検出手段により検
出された特徴コードと、前記特徴コード記憶手段からの
特徴コードとを比較し真の欠陥のみを検出する第2の比
較判定手段とから成るマクロ検査装置とを設けたもので
ある。
In order to achieve this object, the present invention firstly requires measuring the line width and line spacing of a binary image obtained from a printed circuit board and the criteria set in the design rule. using violation position and the design rule checking means for detecting the type as feature information, previously non-defective substrate design
Feature information storing feature information from in-rule inspection means
It is detected by the storage means and the design rule inspection means.
Feature information and feature information from the feature information storage means
Comparing with and detecting only true defects
A micro-inspection device comprising: and a binary image, a direction code representing an edge direction is given to a contour position of the image,
Specific shape detection means for detecting a point where the direction code changes as a characteristic point and detecting a characteristic code consisting of the coordinates of the characteristic point and a code indicating the change of the direction code, and a non-defective substrate in advance.
To store the feature code from the specific shape detector
It is detected by the feature code storage means and the specific shape detection means.
A macro inspection device comprising a second comparison and determination means for comparing the issued feature code with the feature code from the feature code storage means to detect only true defects is provided.

【0009】第2に、特定形状検出手段において、画像
の輪郭位置にエッジの方向を表す方向コードを与える方
向コード付与手段と、方向コードの変化する点を特徴点
として検出し、前記特徴点の座標と方向コードの変化を
表す特徴コードを生成するようにしたものである。
Secondly, in the specific shape detecting means, the direction code assigning means for giving a direction code indicating the direction of the edge to the contour position of the image and the point where the direction code changes are detected as the characteristic points, and the characteristic points are detected. A feature code representing changes in coordinates and direction code is generated.

【0010】第3に、第2の比較判定手段において、特
定形状検出手段からの特徴点の座標と方向コードの変化
を表すコードからなる特徴コードを任意の許容範囲(r
s)内に対応する特徴コードと順次連結して特徴コード
列を生成し、予め良品基板で生成した特徴コード記憶手
段からの特徴コード列とをコード列単位で比較判定する
ようにしたものである。
Thirdly, in the second comparison / determination means, a feature code consisting of a code indicating the change in the coordinates and the direction code of the feature point from the specific shape detection means is set to an arbitrary allowable range (r
In (s), a characteristic code string is sequentially generated by connecting with the corresponding characteristic code, and the characteristic code string from the characteristic code storage means generated in advance on the non-defective substrate is compared and judged in code string units. .

【0011】第4に、第2の比較判定手段において、特
定形状検出手段からの特徴点の座標と方向コードの変化
を表すコードからなる特徴コードを任意の許容範囲(r
s)内に対応する特徴コードと順次連結して特徴コード
列(B)を生成し、予め良品基板で生成した特徴コード
記憶手段からの特徴コード列(A)とをコード列単位で
比較判定する際に、両者のコード列(A)(B)の特徴
コードを順次類似性で比較し、欠落特徴コードを補間
し、欠落特徴コードがペアコード列(2つの特徴コード
が鏡像となるコード列で例えば12−21,34−4
3)なら照合とし、それ以外は欠陥と判定処理するよう
にしたものである。
Fourth, in the second comparison / determination means, a feature code consisting of a code indicating a change in the coordinates of the feature point and the direction code from the specific shape detection means is set to an arbitrary allowable range (r).
The characteristic code string (B) is generated by sequentially connecting the corresponding characteristic codes in s), and the characteristic code string (A) from the characteristic code storage means generated in advance on the non-defective substrate is compared and judged in code string units. At this time, the feature codes of the two code strings (A) and (B) are sequentially compared in similarity, and the missing feature code is interpolated, and the missing feature code is a pair code string (two feature codes are mirror images of a code string. For example, 12-21, 34-4
If it is 3), the verification is performed, and otherwise, it is determined as a defect.

【0012】第5に、第2の比較判定手段において、特
定形状検出手段からの特徴点の座標と方向コードの変化
を表すコードからなる特徴コードを任意の許容範囲(r
s)内に対応する特徴コードと順次連結して特徴コード
列(B)を生成し、予め良品基板で生成した特徴コード
記憶手段からの特徴コード列(A)とをコード列単位で
比較判定し、不一致になった特徴コード列にショート、
断線、欠け、突起等を示すの特定の基本コード列の要素
が含まれているかを検査し、欠陥の種類を判定するよう
にしたものである。
Fifth, in the second comparison / determination means, a feature code consisting of a code indicating the change in the coordinate and the direction code of the feature point from the specific shape detection means is set to an arbitrary allowable range (r).
The characteristic code string (B) is sequentially connected to the corresponding characteristic code in s), and the characteristic code string (A) from the characteristic code storage means generated in advance on the non-defective substrate is compared and judged in code string units. , Short to the mismatched feature code string,
This is to inspect whether or not a specific element of the basic code string indicating a disconnection, a chip, a protrusion, etc., is included to determine the type of defect.

【0013】第6に、第2の比較判定手段において、特
定形状検出手段からの特徴点の座標と方向コードの変化
を表すコードからなる特徴コードを任意の許容範囲(r
s)内に対応する特徴コードと順次連結して特徴コード
列(B)を生成し、予め良品基板で生成した特徴コード
記憶手段からの特徴コード列(A)とをコード列単位で
比較判定し、不一致になった特徴コード列にショート、
断線、欠け、突起等を示すの特定の基本コード列の要素
が含まれているかを検査し、欠陥の種類を判定した後
に、(欠けおよび突起については)特徴コード列から欠
陥面積を演算し予め設定した大きさの欠陥のみ検出する
ようにしたものである。
Sixthly, in the second comparison / determination means, a feature code consisting of a code indicating the change in the coordinate and the direction code of the feature point from the specific shape detection means is set to an arbitrary allowable range (r
The characteristic code string (B) is sequentially connected to the corresponding characteristic code in s), and the characteristic code string (A) from the characteristic code storage means generated in advance on the non-defective substrate is compared and judged in code string units. , Short to the mismatched feature code string,
After inspecting whether the element of a specific basic code string indicating disconnection, chipping, protrusion, etc. is included, and determining the type of defect, the defect area is calculated from the characteristic code string (for chipping and protrusion) in advance. Only the defects of the set size are detected.

【0014】第7に、第2の比較判定手段において、特
定形状検出手段からの特徴点の座標と方向コードの変化
を表すコードからなる特徴コードを任意の許容範囲(r
s)内に対応する特徴コードと順次連結して特徴コード
列を生成し、予め良品基板で生成した特徴コード記憶手
段からの特徴コード列とをコード列単位で比較判定する
際に、不一致となった特徴コード列に量子化誤差等によ
り発生したペアコード列が含まれている場合は欠陥とし
ないようにしたものである。
Seventh, in the second comparison / determination means, a feature code consisting of a code indicating the change in the coordinates of the feature point and the direction code from the specific shape detection means is set to an arbitrary allowable range (r).
In (s), a characteristic code string is sequentially connected to the corresponding characteristic code to generate a characteristic code string, and when the characteristic code string from the characteristic code storage unit generated in advance on the non-defective board is compared and judged in the code string unit, there is a mismatch. If the feature code sequence includes a pair code sequence generated due to a quantization error or the like, the feature code sequence is not defective.

【0015】第8に、特定形状検出手段において、画像
の輪郭位置にエッジの方向を表す方向コードを与える方
向コード付与手段と、注目画素に連結している2つの輪
郭画素の方向コードが互いに同一コードであり、かつ前
記注目画素の方向コードが前記2つの輪郭画素の方向コ
ードと異なる場合に、前記注目画素の方向コードを付け
変える方向コード変換手段と、方向コードの変化する点
を特徴点として前記特徴点の座標と前記特徴点の方向コ
ードの変化を表す特徴コードを抽出するようにしたもの
である。
Eighth, in the specific shape detecting means, the direction code assigning means for giving a direction code indicating the direction of the edge to the contour position of the image and the direction code of the two contour pixels connected to the target pixel are the same. When the code is the code and the direction code of the pixel of interest is different from the direction codes of the two contour pixels, the direction code conversion means for changing the direction code of the pixel of interest and the change of the direction code are feature points. the feature code representing the change of direction codes of coordinates and the feature points of the feature point is obtained by a so that the out extraction.

【0016】[0016]

【作用】本発明は上記構成によって、第1に、スルーホ
ール検出手段でスルーホール部を充填した画像を生成し
た後、デザインルール検査手段では信号線の線幅など設
計ルールに基づいた特徴情報の検出を行い、特定形状検
出手段では矩形パターンのコーナーなど所定の図形形状
を検出することにより、基板上の各種パターンに適合し
たミクロ検査とマクロ検査を並行して検査するため、処
理領域を分けることなく基板に存在する多種多様な欠陥
に対し見落としのない高精度の欠陥検出が行える。
According to the present invention, according to the above construction, first, after the image in which the through hole portion is filled by the through hole detecting means is generated, the design rule checking means displays the characteristic information based on the design rule such as the line width of the signal line. By performing detection, the specific shape detection means detects a predetermined graphic shape such as a corner of a rectangular pattern, thereby performing a micro inspection and a macro inspection that are suitable for various patterns on the substrate in parallel, so that the processing area is divided. It is possible to detect defects with high accuracy without overlooking various defects existing on the substrate.

【0017】第2に、特定形状検出手段において、画像
の輪郭位置にエッジの方向を表す方向コードを与え、方
向コードの変化する点を特徴点として検出し、この特徴
点の座標と方向コードの変化点を良品基板からの特徴コ
ードと比較することでラージショート等のマクロな欠陥
が検出できる。
Secondly, in the specific shape detecting means, a direction code representing the direction of the edge is given to the contour position of the image, a point at which the direction code changes is detected as a feature point, and the coordinates of this feature point and the direction code are detected. Macro defects such as large shorts can be detected by comparing the change points with the characteristic codes from the non-defective substrate.

【0018】第3に、第2の比較判定手段において、特
定形状検出手段からの方向コードの変化位置とコードか
らなる特徴コードを入力し、任意の範囲内に対応する特
徴コードと順次連結して特徴コード列を生成し、予め良
品基板で生成した特徴コード記憶手段からの特徴コード
列とを特徴コード列単位で比較判定することでエッジの
微細な形状変化に強い判定が出来る。
Thirdly, in the second comparison / determination means, a characteristic code consisting of a change position of the direction code and the code from the specific shape detection means is inputted and sequentially connected with a corresponding characteristic code within an arbitrary range. A characteristic code string is generated and compared with the characteristic code string from the characteristic code storage unit generated in advance on a non-defective substrate in comparison with the characteristic code string, so that it is possible to make a strong judgment against a minute edge shape change.

【0019】第4に、第2の比較判定手段において、特
定形状検出手段からの方向コードの変化位置とコードか
らなる特徴コードを入力し、任意の範囲内に対応する特
徴コードと順次連結して特徴コード列を生成し、予め良
品基板で生成した特徴コード記憶手段からの特徴コード
列とを特徴コード列単位で比較判定する際、類似性で判
定することでエッジの微細な形状変化で欠落した特徴コ
ードによる誤判定を防止でき、安定した判定が出来る。
Fourthly, in the second comparison / determination means, a change position of the direction code from the specific shape detection means and a characteristic code consisting of the code are inputted and sequentially connected with corresponding characteristic codes within an arbitrary range. When a characteristic code string is generated and compared with the characteristic code string from the characteristic code storage unit generated in advance on a non-defective board in the characteristic code string unit and judged, the judgment is made by the similarity and the edge is missing due to a minute shape change. Misjudgment due to the feature code can be prevented and stable judgment can be performed.

【0020】第5に、第2の比較判定手段において、特
定形状検出手段からの方向コードの変化位置とコードか
らなる特徴コードを入力し、任意の範囲内に対応する特
徴コードと順次連結して特徴コード列を生成し、予め良
品基板で生成した特徴コード記憶手段からの特徴コード
列とを特徴コード列単位で比較判定し、不一致になった
特徴コード列にショート、断線、欠け及び突起等を示す
特定の基本コード列の要素が含まれている検査し欠陥
の種類を判定することで工程管理を容易とし、更に作業
者にとって判り易くすることができる。
Fifthly, in the second comparison / determination means, a characteristic code consisting of a change position of the direction code and the code from the specific shape detection means is inputted and sequentially connected with a corresponding characteristic code within an arbitrary range. A feature code string is generated and compared with the feature code string from the feature code storage means generated in advance on a non-defective board in feature code string units, and the mismatched feature code string is checked for shorts, disconnections, chips, protrusions, etc. By inspecting whether the element of the specific basic code string shown is included and determining the type of the defect, the process control can be facilitated and the operator can easily understand.

【0021】第6に、第2の比較判定手段において、特
定形状検出手段からの方向コードの変化位置とコードか
らなる特徴コードを入力し、任意の範囲内に対応する特
徴コードと順次連結して特徴コード列を生成し、予め良
品基板で生成した特徴コード記憶手段からの特徴コード
列とを特徴コード列単位で比較判定し、不一致になった
特徴コード列にショート、断線、欠け及び突起等を示す
特定の基本コード列の要素が含まれている検査し欠陥
の種類を判定した後に、特徴コード列から欠陥の面積を
演算し予め設定した大きさの欠陥のみ検出することで誤
判定を防止する。
Sixth, in the second comparison / determination means, a characteristic code consisting of a change position of the direction code and the code from the specific shape detection means is inputted, and sequentially connected with a corresponding characteristic code within an arbitrary range. A feature code string is generated and compared with the feature code string from the feature code storage means generated in advance on a non-defective board in feature code string units, and the mismatched feature code string is checked for shorts, disconnections, chips, protrusions, etc. Prevents erroneous determination by inspecting whether the element of the specific basic code string shown is included and determining the type of defect, then calculating the area of the defect from the feature code string and detecting only the defect of a preset size To do.

【0022】第7に、第2の比較判定手段において、特
定形状検出手段からの方向コードの変化位置とコードか
らなる特徴コードを入力し、任意の範囲内に対応する特
徴コードと順次連結して特徴コード列を生成し、予め良
品基板で生成した特徴コード記憶手段からの特徴コード
列とを特徴コード列単位で比較判定し、不一致となった
特徴コード列にエッジの微細な形状変化で発生したペア
コード列が含まれている場合は欠陥としないことによ
報を削減し安定した検査が出来る。
Seventh, in the second comparison / determination means, a characteristic code consisting of a change position of the direction code and the code from the specific shape detection means is inputted and sequentially connected with a corresponding characteristic code within an arbitrary range. A characteristic code string is generated, and the characteristic code string from the characteristic code storage means generated in advance on a non-defective board is compared and judged on a feature code string unit basis. if it contains a pair code string Ri by the fact that do not defect
Reduce the imaginary report and stable inspection can be.

【0023】[0023]

【実施例】【Example】

(実施例1)以下、本発明の第1の実施例について、図
面を参照しながら説明する。
(First Embodiment) A first embodiment of the present invention will be described below with reference to the drawings.

【0024】図1は本発明の第1の実施例における配線
パターン検査装置のブロック構成図である。
FIG. 1 is a block diagram of a wiring pattern inspection apparatus according to the first embodiment of the present invention.

【0025】図1において、21はプリント基板、11
は拡散光で照射する反射照明22と下方からプリント基
板21を照射する透過照明23とCCDカメラ24など
の撮像装置を備えた画像入力手段、12は濃淡画像を2
値画像に変換する2値化手段、13は配線パターンとス
ルーホールを分離しスルーホールを充填した画像を生成
するとともにパッドの座残り幅が不足する位置を検出す
るスルーホール検出手段、14はパターンの幅や間隔を
測定し設計ルールに違反する位置や断線あるいは分岐な
どの位置を特徴情報として検出するデザインルール検査
手段、15はパターンのコーナーなど所定の形状を有す
る位置を特徴コードとして検出する特定形状検出手段、
17は良品基板の特徴情報を記憶する特徴情報記憶手
段、19は良品基板の特徴コードを記憶する特徴コード
記憶手段、16はスルーホール検出手段13およびデザ
インルール検査手段14により検出された特徴情報と、
特徴情報記憶手段17からの特徴情報を比較し一致しな
かった特徴点を欠陥と判定する第1の比較判定手段、1
8は特定形状検出手段15により検出された特徴コード
と、特徴コード記憶手段19からの特徴コードを比較し
一致しなかった特徴点を欠陥と判定する第2の比較判定
手段、25はスルーホール検出手段13を通すか通さな
いかを選択する切り換えスイッチである。
In FIG. 1, 21 is a printed circuit board, 11
Is an image input means provided with a reflective illumination 22 for irradiating with diffused light, a transmissive illumination 23 for irradiating the printed board 21 from below, and an image pickup device such as a CCD camera 24. Reference numeral 12 is a grayscale image.
Binarization means for converting into a value image, 13 is a through hole detecting means for separating the wiring pattern and the through holes to generate an image in which the through holes are filled, and for detecting a position where the residual width of the pad is insufficient, and 14 is a pattern Design rule inspecting means for measuring the width and interval of the pattern and detecting a position violating the design rule or a position such as a disconnection or a branch as feature information, and 15 is a feature code for detecting a position having a predetermined shape such as a corner of a pattern as a feature code. Shape detection means,
Reference numeral 17 is a characteristic information storage unit for storing characteristic information of a non-defective substrate, 19 is a characteristic code storage unit for storing a characteristic code of a non-defective substrate, 16 is characteristic information detected by the through-hole detection unit 13 and the design rule inspection unit 14. ,
First comparison determination means for comparing the feature information from the feature information storage means 17 and determining a feature point that does not match as a defect, 1
Reference numeral 8 is second comparison / determination means for comparing the feature code detected by the specific shape detection means 15 with the feature code from the feature code storage means 19 and determining a feature point that does not match as a defect, 25 is a through hole detection. It is a changeover switch for selecting whether to pass the means 13.

【0026】以上のように構成された配線パターン検査
装置について、その動作を説明する。まず、検査対象で
あるプリント基板21を、上方からの反射照明22と下
方からの透過照明23で照明し、CCDカメラ等を用い
た画像入力手段11で撮像し濃淡画像を得る。本実施例
では、画像入力手段11としてCCDラインセンサカメ
ラを用いて、スルーホール検出手段13の処理を行う例
について説明する。反射照明22は特に限定しないが基
材(ガラスエポキシ等)と銅パターンとの反射輝度差の
大きい600nm付近の波長を用いると容易に2値化で
きることはよく知られている。また最近では、超高輝度
LED(例えばGaAlAs 660nmまたはInG
aAl 620nmなど)が商品化されており、アレイ
状に配列し多方向から照射するのも有効な照明方法とい
える。また同時にプリント基板21を下方から透過照明
23により照射するが、本実施例では拡散ビーム型の高
輝度LEDをライン状に配列したものを使用する。これ
は、同一出願人の特開平04−120448号公報や特
願平03−225898号に記載されているように、透
過照明をCCDカメラ24のHSYNC信号(図示して
いないが、1ライン周期の同期信号)に同期させてパル
ス点灯する際に、応答を早くし高速のパルス動作を可能
とするためである。本実施例ではCCDラインセンサカ
メラ24のHSYNC信号に同期させて、1ライン周期
毎に透過照明23のON、OFFを行うものとする。C
CDラインセンサカメラ24より得られた濃淡画信号
は、2値化手段12で予め濃度ヒストグラム等で求めた
しきい値レベルで2値化し、パターン側を”1”、基材
側を”0”とする2値画像101に変換する。以上の手
続きで得られた2値画像101は、図2に示すようにス
ルーホール部において、透過光のパルス点灯による1ラ
イン毎の縞模様が形成された画像となる。スルーホール
検出手段13は前記縞領域を抽出し、スルーホールを充
填した画像102を生成するとともに、パッドの座残り
幅の不足位置を検出する。図3はスルーホール検出手段
13のブロック構成図である。以下図3を用いてスルー
ホール検出手段13の動作を説明する。図3(a)にお
いて、30はスルーホール領域抽出部、31は膨張処理
部、32及び34は遅延回路、36はゲート回路35の
出力から値”1”の位置座標を検出し出力する座標検出
部、37は膨張処理部31の膨張サイズを設定する端
子、101は2値化手段12からの2値画像、111は
ホール部が値”1”で背景が値”0”の2値画像、11
2はパッドの座の不足位置を示す2値画像である。上記
のように構成されたスルーホール検出手段13につい
て、以下その動作を説明する。2値化手段12からの2
値画像101は、導体部が”1”、基材部が”0”、及
びスルーホール部が1ライン毎に”1”と”0”が交番
する縞パターンで形成されており、スルーホール領域抽
出部30により前記縞パターンの領域を検出し、スルー
ホール部のみが”1”で背景が”0”の2値画像111
を生成する。また前記2値化手段12からの2値画像1
01は遅延回路32で遅延され、ORゲート33によ
り、スルーホール画像39との論理和がとられ、スルー
ホールを充填した画像が生成される。膨張処理部31
は、端子37より設定される画素数分だけ入力画像を太
らせ、ANDゲート35により、遅延回路34で遅延さ
れた画信号の論理を反転した画像と前記膨張されたホー
ル画像との論理積がとられ、図3(b)に示す不一致領
域53のみが”1”の値をもつ画像112が生成され
る。前記不一致領域53はパッドの座残り幅の不足を意
味しており、例えば座残り幅がk画素以下を欠陥として
検出する場合は、膨張処理部31で膨張する画素数とし
てkが設定されるものである。以下スルーホル領域抽出
部30について図4を用いてさらに詳細に説明する。図
4(a)は、スルーホール領域抽出部30のブロック構
成図、図4(b)は3×3走査窓の画素配置を示すもの
である。図4(a)において、40、41、42及び4
3はスルーホール部の縞パターン領域を値”1”で塗り
潰す第1、2、3及び4の塗り潰し回路、44、45、
46及び47は、前記塗り潰し回路40、41、42及
び43の出力画像を1画素縮める収縮回路、49は入力
画像を1画素太らせる膨張回路である。第1の塗り潰し
回路40は3×3窓走査回路と窓内の画素の論理演算回
路で構成され、(数1)の演算により縞パターンを塗り
潰す。走査窓を用いた画信号処理の具体的構成は一般的
な技術であり説明は省略する。同様の動作で第2の塗り
潰し回路41では(数2)の論理演算、第3の塗り潰し
回路42では(数3)の論理演算、及び第4の塗り潰し
回路43では(数4)の論理演算が各々独立して並列に
行われる。
The operation of the wiring pattern inspecting apparatus having the above structure will be described. First, the printed circuit board 21 to be inspected is illuminated by the reflection illumination 22 from above and the transmission illumination 23 from below, and is picked up by the image input means 11 using a CCD camera or the like to obtain a grayscale image. In the present embodiment, an example in which a CCD line sensor camera is used as the image input unit 11 and the processing of the through hole detection unit 13 is performed will be described. The reflection illumination 22 is not particularly limited, but it is well known that the reflection illumination 22 can be easily binarized by using a wavelength near 600 nm in which the difference in reflection luminance between the base material (glass epoxy or the like) and the copper pattern is large. Recently, ultra-high brightness LEDs (eg GaAlAs 660 nm or InG
aAl 620 nm) has been commercialized, and it can be said that arranging them in an array and irradiating from multiple directions is also an effective illumination method. At the same time, the printed board 21 is illuminated from below by the transmitted illumination 23. In this embodiment, a diffused beam type high brightness LED is arranged in a line. This is because, as described in Japanese Patent Application Laid-Open No. 04-120448 and Japanese Patent Application No. 03-225898 of the same applicant, the transmission illumination is controlled by the HSYNC signal (not shown) of the CCD camera 24. This is because when the pulse lighting is performed in synchronization with the synchronization signal), the response is accelerated and a high-speed pulse operation is possible. In this embodiment, it is assumed that the transmission illumination 23 is turned on and off every line cycle in synchronization with the HSYNC signal from the CCD line sensor camera 24. C
The grayscale image signal obtained from the CD line sensor camera 24 is binarized by the binarizing means 12 at a threshold level previously obtained from a density histogram or the like, and the pattern side is "1" and the substrate side is "0". To the binary image 101. The binary image 101 obtained by the above procedure is an image in which a stripe pattern for each line is formed by pulse lighting of transmitted light in the through hole portion as shown in FIG. The through hole detecting means 13 extracts the striped area, generates an image 102 in which the through holes are filled, and detects a position where the pad remaining width is insufficient. FIG. 3 is a block diagram of the through hole detecting means 13. The operation of the through hole detecting means 13 will be described below with reference to FIG. In FIG. 3A, 30 is a through-hole area extraction unit, 31 is an expansion processing unit, 32 and 34 are delay circuits, and 36 is coordinate detection that detects and outputs the position coordinate of the value “1” from the output of the gate circuit 35. 37, a terminal for setting the expansion size of the expansion processing unit 31, 101 a binary image from the binarizing means 12, 111 a binary image with a hole portion having a value “1” and a background value “0”, 11
Reference numeral 2 is a binary image showing the insufficient position of the seat of the pad. The operation of the through-hole detecting means 13 configured as described above will be described below. 2 from the binarizing means 12
In the value image 101, the conductor portion is “1”, the base material portion is “0”, and the through hole portion is formed in a striped pattern in which “1” and “0” are alternated for each line. The area of the striped pattern is detected by the extraction unit 30, and the binary image 111 in which only the through hole portion is "1" and the background is "0".
To generate. Also, the binary image 1 from the binarizing means 12
01 is delayed by the delay circuit 32, and the OR gate 33 takes the logical OR with the through hole image 39 to generate an image in which the through holes are filled. Expansion processing unit 31
Is to thicken the input image by the number of pixels set by the terminal 37, and the AND gate 35 calculates the logical product of the image obtained by inverting the logic of the image signal delayed by the delay circuit 34 and the expanded hole image. As a result, the image 112 in which only the non-coincidence region 53 shown in FIG. 3B has a value of "1" is generated. The non-coincidence region 53 means a shortage of the remaining seat width of the pad. For example, when a remaining seat width of k pixels or less is detected as a defect, k is set as the number of pixels to be expanded by the expansion processing unit 31. Is. The through-hole region extracting section 30 will be described in more detail below with reference to FIG. FIG. 4A shows a block diagram of the through-hole area extraction unit 30, and FIG. 4B shows a pixel arrangement of 3 × 3 scanning windows. In FIG. 4A, 40, 41, 42 and 4
Reference numeral 3 is the first, second, third and fourth filling circuits for filling the stripe pattern area of the through hole portion with the value “1”, 44, 45,
Reference numerals 46 and 47 are contraction circuits for contracting the output images of the filling circuits 40, 41, 42 and 43 by 1 pixel, and 49 is an expansion circuit for expanding the input image by 1 pixel. The first filling circuit 40 is composed of a 3 × 3 window scanning circuit and a logical operation circuit of pixels in the window, and fills the stripe pattern by the operation of (Equation 1). The specific configuration of the image signal processing using the scanning window is a general technique and will not be described. With the same operation, the logical operation of (Equation 2) is performed in the second filling circuit 41, the logical operation of (Equation 3) is performed in the third filling circuit 42, and the logical operation of (Equation 4) is performed in the fourth filling circuit 43. Each is performed independently and in parallel.

【0027】[0027]

【数1】 [Equation 1]

【0028】[0028]

【数2】 [Equation 2]

【0029】[0029]

【数3】 [Equation 3]

【0030】[0030]

【数4】 [Equation 4]

【0031】ただし、+は論理和、・は論理積、 ̄は論
理反転を示すものである。前記第1から第4の塗り潰し
回路の出力画像にはパターンの輪郭線も残るため、収縮
回路44、45、46及び47において、(数5)の演
算を行い、前記輪郭線を消去する。
However, + is a logical sum, · is a logical product, and − is a logical inversion. Since the contour lines of the pattern also remain in the output images of the first to fourth filling circuits, the contraction circuits 44, 45, 46 and 47 perform the operation of (Equation 5) to erase the contour lines.

【0032】[0032]

【数5】 [Equation 5]

【0033】さらに、収縮回路44、45、46及び4
7の出力に対しANDゲート48で論理積をとり一致領
域を検出し、スルーホールを元の大きさに戻すため膨張
回路49で(数6)の演算を行いスルーホール画像11
1として出力する。
Further, the contraction circuits 44, 45, 46 and 4
The output of 7 is ANDed by the AND gate 48 to detect a matching area, and the expansion circuit 49 performs the operation of (Equation 6) to restore the through hole to the original size.
Output as 1.

【0034】[0034]

【数6】 [Equation 6]

【0035】次に、膨張処理部31の具体的処理につい
て図5を用いて説明する。図5は、任意画素数の膨張
(dilatation)または収縮(erosio
n)を行うための走査窓の画素配置を示すものである。
図5に(a)は全方向に等距離に膨張や収縮を行うマス
ク、(b)は水平及び垂直方向に等距離に膨張や収縮を
行うマスクである。図5において”0”は注目画素を示
し、各画素に与えられた番号は注目画素からの距離を示
しており、(a)は近似ユークリッド距離、(b)は8
近傍距離(chess−bord distance)
である。また他に4近傍距離(city−block
distance)をもつ菱形のマスク等があるが、処
理の目的に応じてマスク形状は選択されるものである。
これらの画像処理技術は、比較的良く知られた手法であ
り、A.Rosenfeld & A.C.Kak著、
長尾真訳”デジタル画像処理”、近代科学社(1992
年)に詳しく説明しているので省略するものとする。
Next, the specific processing of the expansion processing section 31 will be described with reference to FIG. FIG. 5 shows an expansion or contraction (erosio) of an arbitrary number of pixels.
FIG. 6 shows the pixel arrangement of the scanning window for performing the process n).
In FIG. 5, (a) shows a mask that expands and contracts at equal distances in all directions, and (b) shows a mask that expands and contracts at equal distances in the horizontal and vertical directions. In FIG. 5, “0” indicates the target pixel, the number given to each pixel indicates the distance from the target pixel, (a) is the approximate Euclidean distance, and (b) is 8
Proximity distance (chess-board distance)
Is. In addition, 4 neighborhood distances (city-block
There are diamond-shaped masks having a distance), but the mask shape is selected according to the purpose of processing.
These image processing techniques are relatively well known techniques and are described in A. Rosenfeld & A. C. By Kak,
Shino Nagao "Digital Image Processing", Modern Science Company (1992)
It is omitted here because it has been explained in detail in (Year).

【0036】本実施例における膨張処理部31は、パッ
ドの座残り幅の不足を検出することを目的としており、
全方向に等距離に膨張させる必要があるため同図(a)
の円形マスクを用いる。いま入力画像をk画素太らせる
場合は、走査窓で画像を1画素ずつラスタ走査し、各走
査位置で注目画素0を含めた番号k以下の全ての画素を
選択し論理和をとり演算結果を出力することにより膨張
画像を得ることができる。また入力画像をk画素縮める
場合は、前記論理和の代わりに論理積を演算することに
より収縮画像を得ることができる。
The expansion processing section 31 in this embodiment is intended to detect the shortage of the remaining width of the pad,
Since it is necessary to expand all the directions equidistantly, the same figure (a)
Circular mask is used. When the input image is to be thickened by k pixels, the image is raster-scanned one pixel at a time in the scanning window, and all the pixels of number k or less including the pixel of interest 0 are selected at each scanning position and the logical sum is calculated to obtain the operation result. A dilated image can be obtained by outputting. When the input image is contracted by k pixels, a contracted image can be obtained by calculating a logical product instead of the logical sum.

【0037】なお、スルーホール加工前のプリント基板
に対しては、スルーホールを充填する処理は不要である
ので、切り換えスイッチ25によりスルーホール検出手
段13をパスさせるものとする。
Since it is not necessary to fill the through-holes in the printed circuit board before the through-holes are processed, the through-hole detecting means 13 is made to pass by the changeover switch 25.

【0038】次に、デザインルール検査手段14及び特
定形状検出手段15について詳細に説明する。
Next, the design rule inspection means 14 and the specific shape detection means 15 will be described in detail.

【0039】デザインルール検査は、例えば同一出願人
から出願された特開平03−252545号公報や特願
平02−334009号に記載されているように、パタ
ーンの芯線を抽出すると同時に距離変換画像を生成し、
芯線に沿ったパターン幅の測定や、分岐点や端点など芯
線の形状を認識することにより、線幅の不足やショー
ト、断線など設計上許されないパターンを検出するもの
である。図6(a)はデザインルール検査手段14のブ
ロック構成図を示すもので、70はパターンを背景から
連結性を保ちつつ1画素ずつ細める細線化処理部、71
は細線化処理と同時にパターンの内部点に距離値を与え
る距離変換処理部、72は細線化画像116と距離変換
画像117から欠陥の特徴を検出する特徴抽出部、73
はパターンの幅を測定する測長回路、74はパターンの
芯線の形状を認識する形状検出回路、75は前記測長回
路73に対し最小線幅などの基準線幅を設定する端子、
76は前記特徴抽出部で検出された特徴点の位置座標と
特徴種別を検出する座標検出部である。細線化処理部7
0における細線化は、パターンを背景側から連結性を保
ちつつ1画素ずつ消去する処理を繰り返し行いパターン
の芯線を抽出するもので、よく知られた画像処理手法で
ある。例えば田村:”細線化法についての諸考察”,電
子情報通信学会技術報告,PRL75−66(197
5)があり、1層の細め処理を4つのサブイテレ−ショ
ンに分け、各サブイテレーションにおいてそれぞれ上下
左右から画素を消去し、最終的に1画素幅で連結した芯
線を得るものである。距離変換処理部71は、パターン
部に背景からの距離値を与える処理であり、2値画像1
01対し初期値としてパターン全領域に距離値”1”及
び背景に”0”を与え、前記細線化の反復毎に消去され
なかったパターン内部の画素の距離値をインクリメント
するもので、最終的に芯線を含む全ての画素に背景から
の距離値が与えられる。このとき特願平02−3340
09号に記載されているように、前記細線化において消
去する輪郭画素を、各細線化毎に4連結エッジや8連結
エッジなどを選択的に制御すれば、ユークリッド距離に
極めて近い距離変換画像を得ることができる。図6
(b)は前記距離変換処理部71の出力画像の一例を示
すもので、パターンに与えられた2桁の番号は背景から
の距離値を示しており、□で囲まれた画素は前記細線化
処理部70により抽出された芯線位置を示すものであ
る。特徴抽出部72は、前記細線化処理部70からの細
線化画像116及び距離変換処理部71からの距離変換
画像117を3×3窓で走査し、線幅の違反位置やパタ
ーンの芯線の分岐点や端点に関する位置を検出し、座標
と特徴の種類を特徴情報として第1の比較判定手段16
に通知する。以下図6(b)を用いて特徴抽出部72の
動作について説明する。特徴抽出部72は測長回路73
と形状検出回路74で構成されており、測長回路73は
距離変換画像117を走査する3×3窓を有し、形状検
出回路74は細線化画像116を走査する3×3窓を有
している。測長回路73は、3×3窓の中央画素が細線
化画像の芯線上にあるとき、3×3窓の中央画素の距離
値D0とその8近傍の距離値Di(i=1〜8)を用い
て(数7)の演算を行い、パターン幅Tnを求める。
In the design rule inspection, for example, as described in Japanese Patent Application Laid-Open No. 03-252545 and Japanese Patent Application No. 02-340409 filed by the same applicant, the distance conversion image is extracted at the same time as the core line of the pattern is extracted. Generate,
By measuring the pattern width along the core wire and recognizing the shape of the core wire such as branch points and end points, a pattern which is not allowed by design such as insufficient line width, short circuit, or wire breakage is detected. FIG. 6A shows a block diagram of the design rule inspection means 14, and 70 is a thinning processing unit for thinning the pattern pixel by pixel while maintaining connectivity from the background.
Is a distance conversion processing unit that gives a distance value to an internal point of the pattern simultaneously with the thinning process, 72 is a feature extraction unit that detects a defect feature from the thinned image 116 and the distance conversion image 117, 73
Is a length measuring circuit for measuring the width of the pattern, 74 is a shape detecting circuit for recognizing the shape of the core wire of the pattern, 75 is a terminal for setting a reference line width such as a minimum line width to the length measuring circuit 73,
Reference numeral 76 is a coordinate detection unit that detects the position coordinates and the feature type of the feature points detected by the feature extraction unit. Thinning processing unit 7
The thinning at 0 is a well-known image processing method, in which the process of erasing the pattern one pixel at a time from the background side is repeatedly performed to extract the core line of the pattern, which is a well-known image processing method. For example, Tamura: "Considerations on thinning method", IEICE technical report, PRL 75-66 (197).
5), one layer of thinning processing is divided into four sub-iterations, pixels are erased from the top, bottom, left, and right in each sub-iteration, and finally a core line connected with one pixel width is obtained. The distance conversion processing unit 71 is a process of giving a distance value from the background to the pattern portion, and is a binary image 1
01, the distance value "1" is given to the entire pattern area as an initial value and "0" is given to the background, and the distance value of the pixels in the pattern not erased is incremented each time the thinning is repeated. A distance value from the background is given to all pixels including the core line. At this time, Japanese Patent Application No. 02-3340
As described in No. 09, if the contour pixels to be erased in the thinning are selectively controlled by 4 connected edges or 8 connected edges for each thinning, a distance conversion image extremely close to the Euclidean distance can be obtained. it is obtained Rukoto. Figure 6
(B) shows an example of the output image of the distance conversion processing unit 71. The two-digit number given to the pattern shows the distance value from the background, and the pixels enclosed by □ are the thinned lines. The core line position extracted by the processing unit 70 is shown. Feature extraction unit 72 scans the distance conversion <br/> image 117 from the thinned image 11 6 beauty distance conversion processing unit 71 from the thinning processing unit 70 with 3 × 3 window, breach position of the line The first comparison / determination means 16 detects the positions of the branch points and the end points of the core line of the pattern and the pattern and uses the coordinates and the type of the characteristic as the characteristic information.
To notify. The operation of the feature extraction unit 72 will be described below with reference to FIG. The feature extraction unit 72 has a length measurement circuit 73.
The shape measuring circuit 73 has a 3 × 3 window for scanning the distance conversion image 117, and the shape detecting circuit 74 has a 3 × 3 window for scanning the thinned image 116. ing. When the central pixel of the 3 × 3 window is on the core line of the thinned image, the length measuring circuit 73 determines the distance value D0 of the central pixel of the 3 × 3 window and the distance values Di of its 8 neighborhoods (i = 1 to 8). Is used to calculate the pattern width Tn.

【0040】[0040]

【数7】 [Equation 7]

【0041】ここに[*]は*の四捨五入を示すものと
する。測長回路73は上記パターン幅Tnを形状検出回
路74に通知するとともに、予め端子75から設定され
た最小線幅Wminと比較され、TnがWminに満た
ない場合、線幅不足の検出を座標検出部76に通知す
る。形状検出回路74は、3×3窓を用いて9ビットの
ビットパターンから分岐点及び端点の検出を行うが、前
記測長回路73からのパターン幅データTnが予め設定
された最小パッドサイズTpad以下の場合に、座標検
出部76へ通知する。分岐点及び端点の検出は9ビット
アドレスのルックアップテーブル(以下LUTと略記す
る。)を用いて行うものとする。前記LUTにおいては
予め、(数8)の条件を満たすパターンに端点、(数
9)の条件を満たすパターンに分岐点をそれぞれ割り当
てるものとする。
Here, [*] indicates rounding of *. The length measurement circuit 73 notifies the pattern width Tn to the shape detection circuit 74, and compares the pattern width Tn with the minimum line width Wmin set in advance from the terminal 75. If Tn is less than Wmin, detection of insufficient line width is detected by coordinate detection. Notify the department 76. The shape detection circuit 74 detects branch points and end points from a 9-bit bit pattern using a 3 × 3 window, but the pattern width data Tn from the length measurement circuit 73 is equal to or smaller than a preset minimum pad size Tpad. In this case, the coordinate detection unit 76 is notified. The branch point and the end point are detected by using a look-up table of 9-bit address (hereinafter abbreviated as LUT). In the LUT, it is assumed that end points are assigned to patterns satisfying the condition of (Equation 8) and branch points are assigned to patterns satisfying the condition of (Equation 9).

【0042】[0042]

【数8】 [Equation 8]

【0043】[0043]

【数9】 [Equation 9]

【0044】ここにdi(i=1〜8)は図4(b)の
定義に従うものとする。図6(b)において走査窓77
の位置ではパターンの幅Tn=2画素となり、最小の信
号線幅Wmin=4画素と設定するとTnはWminに
満たないため線幅不足として座標検出部76へ通知す
る。また最小パッドサイズTpad=15画素とする
と、走査窓78の位置では(数9)の条件に当てはまる
ため分岐として、走査窓79の位置では(数8)の条件
に当てはまるため端点として検出され、座標検出部76
へ通知される。なお図示は省略したが、2値画像101
の論理を反転して基材側を値”1”、パターン側を値”
0”として、同様のデザインルール検査を行うが、この
場合測長回路73を用いた線間隔の検査のみを行うもの
とする。座標検出部76は通知された特徴点の座標を検
出し、その特徴情報103を第1の比較判定手段16へ
通知する。
Here, di (i = 1 to 8) follows the definition of FIG. 4 (b). In FIG. 6B, the scanning window 77
At the position of, the pattern width Tn = 2 pixels, and if the minimum signal line width Wmin = 4 pixels is set, Tn is less than Wmin, and the coordinate detection unit 76 is notified that the line width is insufficient. When the minimum pad size Tpad = 15 pixels, the condition of (Equation 9) is satisfied at the position of the scanning window 78, and the branch is detected at the position of the scanning window 79 because the condition of (Equation 8) is satisfied. Detector 76
Will be notified to. Although not shown, the binary image 101
Reverse the logic of "1" for the substrate side and "1" for the pattern side
The same design rule inspection is performed as 0 ″, but in this case only the line spacing inspection using the length measurement circuit 73 is performed. The coordinate detection unit 76 detects the coordinates of the notified feature point and The characteristic information 103 is notified to the first comparison / determination means 16.

【0045】次に特定形状検出手段15の動作について
図7及び図8を用いて説明する。図7は特定形状検出手
段15の回路構成図であり、同図において90は9×9
窓走査回路、91はパターンのエッジを検出するための
3×3窓走査回路、92は前記3×3窓91のデータか
らパターンのエッジを検出するエッジ検出回路、93は
前記9×9窓走査回路においてハッチを施した16画素
のデータから所定のパターン形状を検出する形状検出L
UT、94は前記形状検出LUT93の出力を前記エッ
ジ検出回路92の出力信号によりゲートをかけるゲート
回路、95は前記形状検出LUT93で検出された特定
形状の位置座標と形状種別を検出する座標検出部であ
る。 以下、図7を参照しながら特定形状検出手段15
の具体的動作について説明する。2値画像101を9×
9走査窓90で走査し、窓内データから形状検出LUT
93を用いて所定の形状を検出する。本実施例において
は、特定形状としてパターンのコーナーを検出するもの
であり、以下コーナー検出の動作について説明する。ま
ず9×9窓走査回路90において内部の3×3窓走査回
路91から4近傍画素のデータ121を取り出し、エッ
ジ検出回路92によりパターンのエッジを検出し、特定
形状を検出する位置をパターンの輪郭領域に決める。エ
ッジ検出回路92は(数10)の論理演算を行い、演算
結果122をゲート回路92に入力する。
Next, the operation of the specific shape detecting means 15 will be described with reference to FIGS. 7 and 8. FIG. 7 is a circuit configuration diagram of the specific shape detecting means 15. In the figure, 90 is 9 × 9.
A window scanning circuit, 91 is a 3 × 3 window scanning circuit for detecting the edge of the pattern, 92 is an edge detection circuit for detecting the edge of the pattern from the data of the 3 × 3 window 91, and 93 is the 9 × 9 window scanning. Shape detection L for detecting a predetermined pattern shape from 16-pixel data hatched in the circuit
UT, 94 is a gate circuit that gates the output of the shape detection LUT 93 by the output signal of the edge detection circuit 92, and 95 is a coordinate detection unit that detects the position coordinates and shape type of the specific shape detected by the shape detection LUT 93. Is. Hereinafter, with reference to FIG. 7, the specific shape detecting means 15
The specific operation of will be described. Binary image 101 9 ×
9 Scan window 90, shape detection LUT from the data in the window
A predetermined shape is detected using 93. In this embodiment, the corner of the pattern is detected as the specific shape, and the operation of corner detection will be described below. First, in the 9 × 9 window scanning circuit 90, the data 121 of the four neighboring pixels is taken out from the internal 3 × 3 window scanning circuit 91, the edge of the pattern is detected by the edge detection circuit 92, and the position where the specific shape is detected is determined as the contour of the pattern. Decide on the area. The edge detection circuit 92 performs the logical operation of (Equation 10) and inputs the operation result 122 to the gate circuit 92.

【0046】[0046]

【数10】 [Equation 10]

【0047】ここにd1、d3,d5,d7は図4
(b)の定義にしたがうものとする。9×9窓走査回路
90において、以上の処理と同時に3×3窓走査回路9
1のハッチを施した外側の16画素のデータ123が取
り出され、形状検出LUT93に入力される。形状検出
LUT93においては16ビットのパターン構成から、
直角、鋭角、鈍角などの角度の識別とコーナーの向きを
判定し、識別コードを出力する。図8にコーナー識別に
おける具体的パターン構成を示す。図8において白の画
素は値”0”、黒の画素は値”1”を示しており、16
画素を隣接させ5×5の矩形状パターンとして表現して
いる。同図(a)は右上に直角コーナーがあることを示
し、同図(b)は論理は左下に270°のコーナーがあ
ることを示している。同様に(c)(e)は135°、
(d)(f)は225°、(g)(i)は45°、
(h)(j)は315°のコーナーがあることを示すも
のである。なお図示は省略したが、90°毎の回転対象
パターンにも個別にコードを与え、合計40通りのコー
ナーの分類を行う。これに対応し形状検出LUT93に
おいては6ビットの識別コードを登録する。また上記4
0とおり以外のパターンの識別コードは”0”を与える
ものとする。形状検出LUT93の出力データ124は
前記エッジ検出信号122でゲートされるため、パター
ンの輪郭のうち、45°、90°、135°、225
°、270°、315°のコーナー位置が”0”以外の
コードで座標検出部95へ通知される。座標検出部95
は、通知された特徴点の座標を検出し、その特徴コード
を第2の比較判定手段18へ通知する。したがって、シ
ールドパターンなど大面積パターンを構成するコーナー
のみが第2の比較判定手段18における比較判定処理の
対象となる。
Here, d1, d3, d5 and d7 are shown in FIG.
According to the definition of (b). In the 9 × 9 window scanning circuit 90, simultaneously with the above processing, the 3 × 3 window scanning circuit 9
Data 123 of the outer 16 pixels hatched with 1 is extracted and input to the shape detection LUT 93. In the shape detection LUT 93, from the 16-bit pattern configuration,
It identifies angles such as right angles, acute angles, and obtuse angles, and determines the direction of corners, and outputs an identification code. FIG. 8 shows a specific pattern configuration for corner identification. In FIG. 8, white pixels have a value “0” and black pixels have a value “1”.
Pixels are arranged adjacent to each other and are expressed as a 5 × 5 rectangular pattern. The figure (a) shows that there is a right-angled corner in the upper right, and the figure (b) shows that the logic has a corner of 270 ° in the lower left. Similarly, (c) and (e) are 135 °,
(D) and (f) are 225 °, (g) and (i) are 45 °,
(H) and (j) show that there is a 315 ° corner. Although not shown in the figure, a code is also given to each 90 ° rotation target pattern to classify a total of 40 corners. Corresponding to this, a 6-bit identification code is registered in the shape detection LUT 93. Also above 4
Identification codes of patterns other than 0 are given as "0". Since the output data 124 of the shape detection LUT 93 is gated by the edge detection signal 122, 45 °, 90 °, 135 °, and 225 of the contour of the pattern.
The corner positions of 270 °, 270 °, and 315 ° are notified to the coordinate detection unit 95 with a code other than “0”. Coordinate detection unit 95
Detects the coordinates of the notified feature point and notifies the feature code to the second comparison / determination means 18. Therefore, only the corners that form the large-area pattern such as the shield pattern are subject to the comparison and determination processing in the second comparison and determination means 18.

【0048】次に、第1の比較判定手段16について説
明する。第1比較判定手段16は、スルーホール検出
手段13およびデザインルール検査手段14から通知さ
れた特徴情報を、予め良品基板を学習し特徴情報記憶手
段17に記憶しておいた特徴情報と比較し一致しない特
徴情報を欠陥として検出する。以下に第1の比較判定手
段16の動作を図9を用いて説明する。第1の比較判定
手段16は、図9(a)に示すようなCPUシステムで
構成されており特徴情報記憶手段17とCPUバスを介
し接続している。検査開始後、特徴情報103、105
は、それぞれFIFOメモリ133、134、にバッフ
ァされ、CPU130はI/F回路135を介しそれぞ
れの特徴情報を読み出す。特徴情報記憶手段17は、予
プリント基板を走査する順序にしたがい良品基板の特
徴情報として座標と特徴の種類を記憶しておく。本実施
例においては、特徴情報103および105は、特徴情
報記憶手段17において個別の記憶領域に記憶されてい
るものとする。CPU130はFIFOメモリ133、
134からそれぞれの特徴情報を読み出し、スルーホー
ル検出手段13からの特徴情報105はそのまま欠陥
記憶手段131に記憶させ、特徴情報103に関して
は特徴情報記憶手段17から良品の特徴情報を読み込
み、座標と特徴の種別を照合し、一致しない特徴情報を
欠陥情報記憶手段131に記憶させる。前記座標と特徴
の種別の照合について図9(b)を参照しながら説明す
る。図9(b)は特徴情報の位置を2次元空間上で表し
た例であり、○は良品基板の特徴情報(良品データと略
称する。)、◎は検査する基板の特徴情報(検査データ
と略称する。)を示している。本実施例における第1の
比較判定手段16は良品データと検査データの位置ずれ
を許容して、一致判定を行うもので、良品データ14
0、141、142、143を中心としてp×p画素の
許容領域150、151、152、153定義し、対応
する検査データが前記許容領域に包含されるかどうかを
判定する。すなわち検査データ145、147、148
はそれぞれ許容領域150、152、153に包含され
ており、それぞれ良品データ140、142、143に
一致したとみなす。なお検査データの特徴種別が同じで
2つ以上の許容領域に含まれる場合は、距離の近い方の
良品データと一致させるものとする。図8(b)におい
ては検査データ147から良品データ142と143ま
での距離を求め、近距離の良品データ142と一致させ
る。検査データ146と良品データ141は一致がみら
れなかった特徴情報であり、良品基板に対し何らかの欠
陥が存在するとして、座標と特徴情報を欠陥情報記憶手
段131に記憶させる。最終的に欠陥情報記憶手段13
1に記憶された特徴情報が検査結果として、作業者にレ
ポートされる。
Next, the first comparison / determination means 16 will be described. The first comparison determination unit 16, the feature information notified from the through-hole detection means 13 and the design rule checking means 14, compared with the feature information stored in the feature information storage unit 17 learns a previously non-defective substrate Feature information that does not match is detected as a defect. The operation of the first comparison / determination means 16 will be described below with reference to FIG. The first comparison / determination means 16 is composed of a CPU system as shown in FIG. 9A, and is connected to the characteristic information storage means 17 via a CPU bus. After the inspection is started, the characteristic information 103, 105
Are buffered in the FIFO memories 133 and 134, respectively, and the CPU 130 reads out the respective characteristic information via the I / F circuit 135. Characteristic information storage means 17, pre
The type of coordinates and characteristics previously remembers as feature information of the good product substrate had was the order of scanning the fit printed circuit board. In the present embodiment, it is assumed that the characteristic information 103 and 105 are stored in individual storage areas in the characteristic information storage means 17. The CPU 130 is a FIFO memory 133,
Each characteristic information is read out from the 134, and the characteristic information 105 from the through-hole detecting means 13 is the defect information as it is.
Is stored in the distribution storage unit 131, reads the characteristic information of non-defective from the characteristic information storage means 17 with respect to the feature information 103 collates the type of coordinates and characteristics, and stores the feature information that does not match the defect information storage unit 131. Collation between the coordinate and the type of feature will be described with reference to FIG. FIG. 9B is an example in which the position of the characteristic information is represented in a two-dimensional space. The symbol ◯ is characteristic information of a non-defective board (abbreviated as non-defective data), and the symbol ◎ is characteristic information of the board to be inspected (inspection data). (Abbreviated). The first comparison / determination means 16 in the present embodiment allows the misalignment between the non-defective product data and the inspection data to make a coincidence determination.
Allowable areas 150, 151, 152, 153 of p × p pixels are defined around 0, 141, 142, 143, and it is determined whether the corresponding inspection data is included in the allowed area. That is, the inspection data 145, 147, 148
Are included in the permissible areas 150, 152, and 153, respectively, and are considered to match the non-defective item data 140, 142, and 143, respectively. If the inspection data has the same feature type and is included in two or more permissible areas, the inspection data is made to match the non-defective product data having the shorter distance. In FIG. 8B, the distances from the inspection data 147 to the non-defective product data 142 and 143 are calculated and matched with the short-range non-defective product data 142. The inspection data 146 and the non-defective product data 141 are characteristic information that does not match, and it is assumed that some defect exists in the non-defective substrate, and the coordinates and the characteristic information are stored in the defect information storage means 131. Finally, the defect information storage means 13
The characteristic information stored in 1 is reported to the worker as the inspection result.

【0049】次に、第2の比較判定手段18について説
明する。第2の比較判定手段18は、特定形状検出手段
15から通知された特徴コードを、予め良品基板を学習
し特徴コード記憶手段19に記憶しておいた特徴コード
と比較し一致しない特徴コードを欠陥として検出する。
第2の比較判定手段18の動作を図9を用いて説明す
る。第2の比較判定手段18は、図9(a)に示すよう
なCPUシステムで構成されており特徴コード記憶手段
19とCPUバスを介し接続している。第2の比較判定
手段は、特定形状検出手段15で検出された特徴コード
104をFIFOメモリ161にバッファし、I/F回
路162を介してCPU160に取り込み、予め記憶し
た特徴コード記憶手段19からの特徴コードと比較す
る。特徴コードの照合は、実施例1においては、第1の
判定処理と同様であるので説明は省略する。また、本実
施例では、第1の比較判定手段と第2の比較判定手段と
をそれぞれのCPUシステムで構成したが、1つのCP
Uシステムで構成しそれぞれの処理をマルチタスクで切
り替えて処理することも容易に実現できる。
Next, the second comparison / determination means 18 will be described. The second comparison / determination means 18 compares the feature code notified from the specific shape detection means 15 with the feature code previously learned from the non-defective substrate and stored in the feature code storage means 19, and the feature code that does not match is defective. To detect as.
The operation of the second comparison / determination unit 18 will be described with reference to FIG. The second comparison / determination means 18 is composed of a CPU system as shown in FIG. 9A, and is connected to the characteristic code storage means 19 via a CPU bus. The second comparison / determination means buffers the feature code 104 detected by the specific shape detection means 15 in the FIFO memory 161, fetches it into the CPU 160 via the I / F circuit 162, and stores it from the feature code storage means 19 stored in advance. Compare with feature code. In the first embodiment, the collation of the characteristic code is the same as the first determination process, and thus the description thereof is omitted. Further, in the present embodiment, the first comparison determination means and the second comparison determination means are configured by respective CPU systems, but one CP
It is also possible to easily realize the processing by configuring it with a U system and switching each processing by multitasking.

【0050】以上のように本実施例によればプリントパ
ターンの画像に対し、ミクロ検査であるデザインルール
検査手段とマクロ検査である特定形状検出手段を併用し
た検査方式で検査するものである。細い信号線には厳密
に高精度で検査するデザインルール検出手段を適用し、
SMDパッドやシールドパターンなど大面積パターンに
は大まかに検査する特定形状検出手段を適用することに
より、基板に存在する多種多様な欠陥に対し見落としの
ない高精度の欠陥検出が行える。また、適用領域を分離
することなく、デザインルール検出手段は、細線化・距
離変換処理部の処理段数を制限すれば細い信号線やピン
ホール、残銅等にのみ1画素幅となり、太いパターンは
1画素幅とならないために検出されず、特定形状検出手
段においては、検出するマスクサイズが大きく設定され
ている点と形状検出LUTにより細い信号線、ピンホー
ルや残銅等を検出することなく太いパターンの欠陥のみ
検出するものである。また、同様に特定形状検出手段1
5は、大きな幅をもつショートなどの検出を目的とする
ため、図7において2値画像101を縮小し、形状検出
回路を小型化してもよいことはいうまでもない。
As described above, according to the present embodiment, the image of the print pattern is inspected by the inspection method in which the design rule inspection means which is a micro inspection and the specific shape detection means which is a macro inspection are used together. Applying design rule detection means that strictly inspects with high precision to thin signal lines,
By applying a specific shape detecting means for roughly inspecting a large area pattern such as an SMD pad or a shield pattern, highly accurate defect detection can be performed without overlooking various defects existing on the substrate. In addition, the design rule detection means does not separate the application area, and if the number of processing steps of the thinning / distance conversion processing unit is limited, the design rule detection means has only one pixel width for thin signal lines, pinholes, residual copper, etc. It is not detected because it does not have a width of one pixel, and in the specific shape detection means, the point where the mask size to be detected is set large and the shape detection LUT makes it thick without detecting thin signal lines, pinholes, residual copper, etc. Only pattern defects are detected. Similarly, the specific shape detecting means 1
Since 5 is for detecting a short circuit having a large width, it goes without saying that the binary image 101 in FIG. 7 may be reduced and the shape detection circuit may be downsized.

【0051】(実施例2)以下、本発明の第2の実施例
について、図面を参照しながら説明する。
(Second Embodiment) A second embodiment of the present invention will be described below with reference to the drawings.

【0052】図10は、本発明の第2の実施例の配線パ
ターン検査装置における特定形状検出手段15のブロッ
ク構成図である。図10において、201は2値化手段
12からの2値画像101に8方向の方向コードを付与
する方向コード付与手段、202は方向コードの変化す
る特徴点を検出し、方向コードの変化を表すコードおよ
び特徴点の座標を特徴コードとして抽出する特徴抽出手
段を示す。本実施例においては、特定形状の検出方法と
して配線パターンの輪郭画素に方向コードを付与しその
方向コードの変化点を検出することで、配線パターンの
特定形状としてコーナを検出するものである。方向コー
ドを付与する方式は、フリーマンのチェインコード
(H.Freeman:”On the encodi
ng ofarbitrary geometric
configurations”、IRE Tran
s.Electron.Comput.EC−10、1
961、pp260−268)がよく知られている。
FIG. 10 is a block diagram of the specific shape detecting means 15 in the wiring pattern inspecting device according to the second embodiment of the present invention. In FIG. 10, 201 is a direction code assigning unit that assigns eight direction codes to the binary image 101 from the binarizing unit 12, and 202 is a feature point in which the direction code changes, and indicates a change in the direction code. The feature extraction means for extracting the coordinates of the code and the feature point as a feature code is shown. In the present embodiment, as a method of detecting a specific shape, a direction code is given to the contour pixel of the wiring pattern and a change point of the direction code is detected, so that a corner is detected as the specific shape of the wiring pattern. The direction code is assigned by a Freeman chain code (H. Freeman: “On the encodi”).
ng off-farbitary geometric
configurations ”, IRE Tran
s. Electron. Comput. EC-10, 1
961, pp260-268) is well known.

【0053】まず、方向コード付与手段201につい
て、図11を用いて説明する。図11(a)は、方向コ
ード付与手段201の回路構成図である。図11(a)
において、211はラインメモリ、212は3×3の走
査窓、213は走査窓212のビットパターンによって
4ビットの方向コード画像214を出力するLUT(ル
ック・アップ・テーブル)を示す。方向コードは、図1
1(b)に示す様に、注目画素204からとなりの輪郭
画素に向かう8方向を、方向コードとしてそれぞれ”
1”〜”8”の値で表すものである。方向コード付与手
段201は、2値画像101に対し3×3走査窓212
で走査し、走査窓内からのビットパターンでLUT21
3を用いて4ビットの方向コードを出力する。LUT2
13は、予め計算によってデータを作成しておくもの
で、条件(数11)を満たすパターンに対して(数1
2)により方向コードiを算出するもので、右回り方向
に方向コード付与するものとする。ただし、条件(数
13)を満たす例えば一画素幅の特殊なパターンに対し
ては値”a”を付与し、パターン内部には値”f”、基
材部には値”0”をそれぞれ割り当てるものとする。
First, the direction code assigning means 201 will be described with reference to FIG. FIG. 11A is a circuit configuration diagram of the direction code assigning means 201. FIG. 11 (a)
In the figure, 211 is a line memory, 212 is a 3 × 3 scanning window, and 213 is a LUT (look-up table) that outputs a 4-bit direction code image 214 according to the bit pattern of the scanning window 212. Direction code is shown in Figure 1.
As shown in FIG. 1 (b), the eight directions from the pixel of interest 204 to the adjacent contour pixels are used as direction codes, respectively.
It is represented by a value of 1 "to" 8 ". The direction code assigning means 201 uses the 3x3 scanning window 212 for the binary image 101.
Scan with the LUT 21 with the bit pattern from within the scan window.
3 is used to output a 4-bit direction code. LUT2
Data 13 is created in advance by calculation. For a pattern that satisfies the condition (Equation 11), (Equation 1
The direction code i is calculated by 2), and the direction code is given in the clockwise direction. However, for example, a value “a” is assigned to a special pattern having a pixel width that satisfies the condition (Equation 13), a value “f” is assigned to the inside of the pattern, and a value “0” is assigned to the base material portion. I shall.

【0054】[0054]

【数11】 [Equation 11]

【0055】[0055]

【数12】 [Equation 12]

【0056】[0056]

【数13】 [Equation 13]

【0057】ここで、走査窓内の画素d1〜d8は、図
4(b)の定義に従うものとする。なお、Nc(8)は8
連結数、Nc(4)は4連結数と呼ばれ、パターンの連結
性を示すパラメータとしてよく知られている。上記処理
によって得られる方向コード画像の例を図12に示す。
Here, it is assumed that the pixels d1 to d8 in the scanning window comply with the definition of FIG. 4 (b). Note that Nc (8) is 8
The number of connections, Nc (4), is called a four-connection number and is well known as a parameter indicating the connectivity of patterns. An example of the direction code image obtained by the above processing is shown in FIG.

【0058】次に、特徴抽出手段202について図13
を用いて説明する。図13は、特徴抽出手段の回路構成
図である。図13において、221はラインメモリ、2
22は多値の3×3走査窓、223は走査窓222から
のD0信号226に従って、D1〜D8の信号225の
出力を選択するMPX(マルチプレクサ)、224はM
PX223からの出力234およびD0信号226を参
照し、特徴の形状を示すための特徴コードを出力するL
UTを示す。本実施例においては、方向コードの変化す
る点を抽出し、形状を表す特徴コードを通知するもので
ある。以下に、特徴抽出手段202の動作について説明
する。まず、方向コード付与手段201からの方向コー
ド画像214を、走査窓222に入力し一画素づつ走査
する。
Next, the feature extracting means 202 will be described with reference to FIG.
Will be explained. FIG. 13 is a circuit configuration diagram of the feature extraction means. In FIG. 13, 221 is a line memory, 2
22 is a multi-valued 3 × 3 scanning window, 223 is an MPX (multiplexer) that selects the output of a signal 225 of D1 to D8 according to the D0 signal 226 from the scanning window 222, and 224 is M.
By referring to the output 234 from the PX 223 and the D0 signal 226, L that outputs a feature code for indicating the shape of the feature
Indicates UT. In the present embodiment, points at which the direction code changes are extracted and the feature code representing the shape is notified. The operation of the feature extracting means 202 will be described below. First, the direction code image 214 from the direction code assigning means 201 is input to the scanning window 222 and scanned pixel by pixel.

【0059】特徴抽出手段202は、走査窓222から
のD1〜D8の方向コード信号225をそれぞれMPX
223に入力し、注目画素位置D0の方向コード226
が示す周辺の画素位置D1〜D8が選択される。注目画
素D0の方向コード226と選択された周辺画素の方向
コード234から、LUT224により特徴コードCf
と同期信号227からXY座標発生器228で発生した
XY座標とからなる特徴情報104として第1の比較判
定手段16へ出力される。ただし、周辺画素の方向コー
ド227の値が”a”の時は、特徴コードCfとして
値”a”を通知するものとする。特徴コードCfは、予
め(数14)で演算した結果をLUT224に登録して
おくものである。
The feature extracting means 202 MPX the direction code signals 225 of D1 to D8 from the scanning window 222, respectively.
223, and the direction code 226 of the target pixel position D0
The peripheral pixel positions D1 to D8 indicated by are selected. From the direction code 226 of the target pixel D0 and the direction code 234 of the selected peripheral pixels, the feature code Cf is calculated by the LUT 224.
And the synchronization signal 227 and the XY coordinates generated by the XY coordinate generator 228 are output to the first comparison / determination means 16 as the characteristic information 104. However, when the value of the direction code 227 of the peripheral pixels is "a", the value "a" is notified as the characteristic code Cf. The characteristic code Cf is for registering the result calculated in advance (Equation 14) in the LUT 224.

【0060】[0060]

【数14】 [Equation 14]

【0061】ただし、Diは、方向コードD0が示す方
向に隣接している画素の方向コードである。図14に、
図12から抽出した特徴コードの例を示す。図14に示
す””内の数値は、特徴コード値を示すものである。本
実施例では、右回り方向に方向コードを付与したが、左
回りに付与してもよい。また、本実施例では、特徴コー
ドとして1−2または1−8のような135゜または2
25゜のコーナを基本に考えているために、例えば1−
3(90゜)または1−6(45゜)に対しては2値化
後に鋭角なコーナを丸くするような2値フィルターを入
れるか、第2の比較判定処理手段18で処理に先立って
特徴コードを読み替えるような処理を行う必要があるこ
とを示唆しておくものである。例えば、特徴コード”1
−3”は”1−2”と”2−3”に、特徴コード”1−
6”は”1−8”、”8−7”および”7−6”に読み
替えるもので、座標は同座標を与えるものとする。
However, Di is the direction code of the pixel adjacent in the direction indicated by the direction code D0. In Figure 14,
An example of the feature code extracted from FIG. 12 is shown. Numerical values in "" shown in FIG. 14 indicate feature code values. In this embodiment, the direction code is given in the clockwise direction, but it may be given in the counterclockwise direction. In this embodiment, the characteristic code is 135 ° or 2 such as 1-2 or 1-8.
To believe the basic 25 ° corner, such as 1-
For 3 (90 °) or 1-6 (45 °), a binary filter for rounding an acute corner after binarization is inserted, or the second comparison / determination processing means 18 has a feature prior to processing. It should be pointed out that it is necessary to perform processing such as replacing the code. For example, feature code "1
-3 "is" 1-2 "and" 2-3 ", and feature code" 1- "
6 "is read as" 1-8 "," 8-7 "and" 7-6 ", and the coordinates are the same.

【0062】以上説明したように、特定形状検出手段1
5はマクロ検査として、パターンを8方向の方向コード
で近似して表現し、その方向コードの変化点をコーナ点
として検出し、第2の比較判定手段18で良品のコーナ
点と比較判定されるものである。また、本方式は、画素
単位で方向コードを付与することから太いパターンは言
うまでもなく残銅やピンホール等に対しても高精度で検
出することからデザインルール検査手段と両者をまとめ
て作業者にレポートされるものである。
As described above, the specific shape detecting means 1
Reference numeral 5 is a macro inspection, which represents a pattern by approximating it with direction codes in eight directions, detects a change point of the direction code as a corner point, and makes a comparison judgment with a corner point of a non-defective product by the second comparison and judgment means 18. It is a thing. In addition, since this method assigns a direction code on a pixel-by-pixel basis, it can detect residual copper and pinholes with high accuracy, not to mention thick patterns. It is what is reported.

【0063】(実施例3)以下、本発明の第3の実施例
について説明する。本発明の第3の実施例は、配線パタ
ーン検査装置において第2の比較判定手段18における
特定形状検出手段15からの特徴コードの比較判定処理
であり、特定形状検出手段15は実施例2と同様で、第
2の比較判定手段18のブロック構成図は実施例1で説
明した図9(a)と同様であり異なるのは比較判定処理
の処理内容が異なるもので異なる点を中心に説明する。
(Embodiment 3) The third embodiment of the present invention will be described below. The third embodiment of the present invention is the comparison / determination processing of the feature code from the specific shape detection means 15 in the second comparison / determination means 18 in the wiring pattern inspection apparatus, and the specific shape detection means 15 is the same as the second embodiment. The block diagram of the second comparison / determination unit 18 is similar to that of FIG. 9A described in the first embodiment, and the difference is that the processing content of the comparison / determination processing is different, and the different points will be mainly described.

【0064】本発明の比較判定処理は、特定形状検出手
段15で検出された特徴コードを、第2の比較判定手段
18において注目特徴点を中心として任意の許容範囲
(rs)内に対応する特徴点と順次結合し特徴コード列
データを生成するコード列化処理と、予め良品基板で作
成した特徴コード記憶手段19からの特徴コード列とを
コード列単位で比較するコード列比較処理ら構成され
る。図9(a)において、特定形状検出手段15からの
特徴コード104は、FIFO161およびI/F回路
162を介してCPU160のソフトウエア処理によっ
て比較判定処理が実行される。まず、コード列化処理の
概念について図15を用いて説明する。図15(a)
は、あるパターンの特徴コード列の一例を示している
が、始点241”特徴コード12”から終点242”特
徴コード65”の8点の特徴コードを連結し、1つの特
徴コード列として取り扱うものである。図15(b)は
連結の手順について説明する図で、注目特徴点244を
中心に許容範囲249を設定し、その範囲内で注目特徴
点244の連結できる相手を検索する。このとき、最初
に連結する方向を右方向として注目特徴点244の特徴
コード”21”に対応する特徴コード”12”または”
18”を探索する。特徴コード”21”の右方向に連結
できる特徴コードは、方向”1”から方向”2”または
方向”8”に変化する点しか存在しないために対応する
特徴コードとして”12”または”18”となる。図1
5(b)の例では、右方向に存在する特徴コード”1
8”が連結できる。次に注目特徴点を特徴コード”1
8”にして、同様に対応する特徴コードを検索し許容範
囲に特徴点がなくなるまで繰り返して処理するもので、
許容範囲に対応する特徴点がなくなった時その注目特徴
点が終点242となる。今度は、左方向について同様の
処理を行うもので、許容範囲内において注目特徴点24
4の特徴コード”21”に対応する特徴コード”12”
または”32”を検索する。この場合は、特徴コード”
32”が対応する特徴点となる。同様に対応する特徴コ
ードを検索し許容範囲に特徴点がなくなるまで繰り返し
て処理するもので、許容範囲に対応する特徴点がなくな
った時その注目特徴点が始点241となる。また、特徴
点を検索する際、その特徴コードによって検索する範囲
を決めることができ、例えば特徴コード”21”で方
向”1”を検索する場合は図15(b)の 探索範囲24
のみ検索すれば良く左横方向を検索する必要がないこ
とがわかる。また、特徴コード列として連結する際に、
図15(c)で示すようなレジスタまたはバッファを用
意し、最初の対応点240をレジスタの中心位置に入
れ、それを中心に連結すると容易にコード列が生成でき
る。次に、コード列化処理の手順について、図16のフ
ローチャートに従って説明する。 ステップ1:まず、特徴コード記憶手段132から最初
の特徴点を対象点としてコード列レジスタの中央に保持
する。 ステップ2:対象点を中心に、許容領域を設定する。 ステップ3:許容領域内に候補点が存在する場合、対象
点の特徴コードの下位桁と同じ数字を特徴コードの上位
桁に持つ候補点をその対象点と同一グループと見なす。
候補点が複数存在する場合は最短距離の点を選択する。
例えば、対象点の特徴コードが”21”の場合下位桁
は”1”となり、対象となる候補点の特徴コードは”1
8”と”12”である。 ステップ4:対象となる候補点をコード列レジスタに連
結し、その候補点を対象点として次の候補点がなくなる
までステップ2から繰り返す。 ステップ5:対象となる候補点が存在しない場合は、そ
の対象点を終点としてコード列レジスタに連結し、ステ
ップ6に移る。 ステップ6:最初の対象点の位置に戻る。 ステップ7:対象点を中心に、許容領域を設定する。 ステップ8:許容領域内に候補点が存在する場合は、今
度は特徴コードの上位桁と同じ数字を特徴コードの下位
桁に持つ候補点をその対象点と同一グループとみなす。 ステップ9:対象となる候補点をコード列レジスタに連
結し、その候補点を対象点として次の候補点がなくなる
までステップ7から繰り返す。 ステップ10:対象となる候補点が存在しない場合は、
その対象点を始点としてコード列レジスタに連結し、連
結された特徴点の平均座標を演算し特徴コード列ファイ
ル(基準または検査)に登録してステップ11に移る ステップ11:特徴コード記憶手段に未処理の特徴コー
ドがあれば、ステップ1に戻り、なければ終了する。
In the comparison / determination processing of the present invention, the feature code detected by the specific shape detecting means 15 is associated with the feature code within the arbitrary permissible range (rs) around the feature point of interest in the second comparison / determination means 18. a code string of processing for generating a sequentially linked feature code string data as a point, is code string comparison processing or we configured to compare a feature code string by the code string units from the feature code storage means 19 created in advance good substrate It In FIG. 9A, the characteristic code 104 from the specific shape detection means 15 is subjected to comparison / determination processing by software processing of the CPU 160 via the FIFO 161 and the I / F circuit 162. First, the concept of the code string conversion process will be described with reference to FIG. FIG. 15 (a)
Shows an example of a feature code string of a certain pattern, it is a feature code string that is concatenated with eight feature codes from a start point 241 "feature code 12" to an end point 242 "feature code 65" as one feature code string. is there. FIG. 15B is a diagram for explaining the procedure of connection, in which an allowable range 249 is set around the feature point 244 of interest, and a partner to which the feature point 244 of interest can be connected is searched for. At this time, the first connecting direction is the right direction, and the feature code “12” or “corresponding to the feature code“ 21 ”of the feature point 244 of interest.
18 "to explore. Characteristic code" 21 ", wherein the code that can be linked to the right of the direction" 1 "direction from" 2 "or direction" 8 "as a feature code corresponding to only points that change does not exist in the" 12 "or" 18 ".
In the example of 5 (b), the feature code “1” existing in the right direction
8 "can be connected. Next, the feature point of interest is the feature code" 1.
8 "and similarly search for the corresponding feature code, and repeatedly process until there are no feature points in the allowable range.
When there is no feature point corresponding to the allowable range, the target feature point becomes the end point 242. This time, the same processing is performed for the left direction, and the feature point 24 of interest is within the allowable range.
Feature code "12" corresponding to feature code "21" of 4
Or search for "32". In this case, the feature code ”
32 "is the corresponding feature point. Similarly, the corresponding feature code is searched and repeatedly processed until there are no feature points in the allowable range. the start point 241. also, when searching for feature points, it is possible to determine the range to be searched by the feature code, for example, when searching for a direction "1" in the feature code "21" in the search shown in FIG. 15 (b) Range 24
It can be seen that it is sufficient to search only 5 and there is no need to search in the left lateral direction. Also, when connecting as a feature code string,
A code string can be easily generated by preparing a register or a buffer as shown in FIG. 15C, putting the first corresponding point 240 at the center position of the register, and connecting it at the center. Next, the procedure of the code string conversion process will be described with reference to the flowchart of FIG. Step 1: First, the first feature point is held in the center of the code string register as the target point from the feature code storage means 132. Step 2: An allowable area is set around the target point. Step 3: If the candidate points in the allowable region is present, considered a candidate point with the same number as the low-order feature code of the target point to the upper digit of the feature code and the object point and the same Ichigu loop.
If there are multiple candidate points, the point with the shortest distance is selected.
For example, if the feature code of the target point is "21", the lower digit is "1", and the feature code of the target candidate point is "1".
8 ”and“ 12. ”Step 4: The candidate points that are the targets are connected to the code string register, and the candidate points are used as the target points, and the process is repeated from step 2 until there is no next candidate point. If no candidate point exists, the target point is connected as an end point to the code string register, and the process proceeds to step 6. Step 6: Return to the position of the first target point Step 7: A permissible area is centered on the target point setting step 8:. If the candidate point is present in the allowable region, now considered a candidate point with the same number as significant digit of the feature codes in the lower digit of feature code and the object point and the same Ichigu loop. Step 9: Concatenate the target candidate points to the code string register, and repeat from step 7 until there is no next candidate point with that candidate point as the target point Step 10: There is a target candidate point. If not,
The target point is connected to the code string register as a starting point, the average coordinates of the connected feature points are calculated, registered in the feature code string file (reference or inspection), and the process proceeds to step 11. Step 11: Not stored in the feature code storage means. If there is a feature code for processing, the process returns to step 1, otherwise ends.

【0065】次に、コード列比較処理について、図17
のフローチャートに従って説明する。 ステップ1:基準特徴コード列ファイルから特徴コード
列を取り出し、注目点とする。 ステップ2:基準特徴コード列の平均座標を中心に許容
範囲(rc)を設定する。 ステップ3:許容範囲内に対応する検査特徴コード列を
検査特徴コード列ファイルから検索する。存在しない場
合は欠陥として検査済みを登録し、存在する場合はステ
ップ4へ進む。 ステップ4:次に、基準特徴コード列と検査特徴コード
列を比較し一致する場合は照合したことを登録する。 ステップ5:未処理の基準特徴コード列がある場合は、
未処理の基準特徴コード列がなくなるまでステップ1か
ら繰り返す。 ステップ6:基準及び検査特徴コード列ファイルで照合
しなかった特徴コード列を検索し欠陥として欠陥情報記
憶手段に登録する。
Next, the code string comparison processing will be described with reference to FIG.
It will be described in accordance with the flowchart of. Step 1: A feature code string is extracted from the reference feature code string file and set as a point of interest. Step 2: An allowable range (rc) is set around the average coordinates of the standard feature code string. Step 3: Search the inspection feature code sequence file for the inspection feature code sequence corresponding to the allowable range. If it does not exist, the inspection is registered as a defect, and if it exists, the process proceeds to step 4. Step 4: Next, the reference feature code string and the inspection feature code string are compared, and if they match, the fact that they have been matched is registered. Step 5: If there is an unprocessed reference feature code string,
Repeat from step 1 until there are no unprocessed reference feature code strings. Step 6: A feature code string that has not been matched is searched for in the reference and inspection feature code string file and registered as a defect in the defect information storage means.

【0066】[0066]

【表1】 [Table 1]

【0067】[0067]

【表2】 [Table 2]

【0068】(表1)に特徴コード列ファイルの一例を
示し以下に説明する。(表1)は基準特徴コード列ファ
イルの一例を示し、(表2)は検査特徴コード列ファイ
ルの一例を示すもので、No.は発生順に付けた番号、
処理は未処理か処理済みかを1/0で示し、照合は照合
が”1”、未照合が”0”、対応Noは検査側の対応す
る番号を記載、基準特徴コード列はコード列化処理で生
成した特徴コード列、平均アドレスはコード列化処理で
演算した特徴点の平均座標(X座標、Y座標)を示して
いる。(表1)で”0004”の基準特徴コード列は、
検査特徴コード列と照合しなかった為に未照合とな
り、”0006”の基準特徴コード列および図(表2)
の”0004”の検査特徴コード列は対応する特徴コー
ド列が存在しなかった為に未照合となっている。また、
コード列化処理とコード列比較処理を行った後に、一致
しなかった特徴コード列を再度コード列化処理の許容領
域を拡大して繰り返して処理することも効果があり有効
な処理である。
An example of the characteristic code string file is shown in (Table 1) and will be described below. (Table 1) shows an example of the standard feature code sequence file, and (Table 2) shows an example of the inspection feature code sequence file. Is the number assigned in the order of occurrence,
Whether processing is unprocessed or processed is indicated by 1/0, matching is “1”, unmatched is “0”, the corresponding number is the corresponding number on the inspection side, and the standard feature code string is converted to a code string. The characteristic code string and average address generated by the process indicate the average coordinates (X coordinate, Y coordinate) of the characteristic points calculated by the code string conversion process. In (Table 1), the standard feature code string of "0004" is
Since it did not collate with the inspection feature code sequence, it was not collated, and the standard feature code sequence of "0006" and the figure (Table 2)
The inspection feature code string of "0004" is unverified because there is no corresponding feature code string. Also,
It is also an effective and effective process that after performing the code string conversion process and the code string comparison process, the feature code strings that do not match are expanded again by expanding the allowable region of the code string conversion process.

【0069】(実施例4)以下、本発明の第4の実施例
について説明する。本発明の第4の実施例は、配線パタ
ーン検査装置において第2の比較判定手段18における
特定形状検出手段15からの特徴コードの比較判定処理
であり、特定形状検出手段15は実施例2と同様で、第
2の比較判定手段18のブロック構成図は実施例3で説
明した図9(a)と同様であり異なるのは比較判定処理
の処理内容が異なるもので異なる点を中心に説明する。
図9(a)において、特定形状検出手段15からの特徴
コード104は、FIFO161およびI/F回路16
2を介してCPU160のソフトウエア処理によって比
較判定処理が実行される。
(Fourth Embodiment) A fourth embodiment of the present invention will be described below. The fourth embodiment of the present invention is a comparison / determination process of the feature code from the specific shape detection means 15 in the second comparison / determination means 18 in the wiring pattern inspection device, and the specific shape detection means 15 is the same as the second embodiment. The block diagram of the second comparison / determination means 18 is similar to that of FIG. 9A described in the third embodiment, and the difference is that the processing content of the comparison / determination processing is different, and the different points will be mainly described.
In FIG. 9A, the characteristic code 104 from the specific shape detecting means 15 is the FIFO 161 and the I / F circuit 16
The comparison / determination process is executed by the software process of the CPU 160 via 2.

【0070】本発明の比較判定処理は、特定形状検出手
段15で検出された特徴コードを、第2の比較判定手段
18において注目特徴点を中心として任意の許容範囲
(rs)内に対応する特徴点と順次結合し特徴コード列
データを生成するコード列化処理と、予め良品基板で作
成した特徴コード記憶手段19からの特徴コード列とを
整列させて、対応付けできなかった余分な特徴コード
(余剰コード列)がペアコード列であるかどうかを判定
してコード列の類似的な比較を行うコード列類似比較処
理から構成される。
In the comparison / determination processing of the present invention, the feature code detected by the specific shape detection means 15 corresponds to the feature code corresponding to the feature point of interest in the second comparison / determination means 18 within an arbitrary allowable range (rs). An extra feature code that could not be associated by aligning the code sequence conversion process for sequentially combining points with each other to generate the feature code sequence data and the feature code sequence from the feature code storage means 19 created in advance on a non-defective substrate ( The surplus code string) is a pair code string, and the code string similarity comparison processing is performed to compare the code strings in a similar manner.

【0071】本発明の第2の比較判定手段について説明
するが、コード列化処理については、実施例3と同じで
あるので省略し、コード列の整列化について図19を用
いて説明する。図19の401は基準特徴コード列、4
02は検査特徴コード列である。2つの特徴コード列
で、特徴コードが同じで最短距離に存在する特徴点をそ
れぞれ対応させる処理を整列化と呼ぶ。401と402
の特徴コード列を整列化すると、特徴点403と特徴点
404に対応する特徴点は基準特徴コード列401には
ないことがわかる。403と404のような対応付けで
きない余分な特徴コードを余剰コード列と呼ぶ。この余
剰コード列が、基準コード列401と検査コード列40
2の違いを表している。上記の処理を特徴点を総当たり
で行うと膨大な時間がかかるため実用的ではない。そこ
で本実施例では、DPマッチング(Dynamic Programming
Matching)の手法を応用して、非常に高速に特徴コード
列を整列する事を行っている。DPマッチング法は、音
声認識やパターンマッチングにおいて比較的良く知られ
た手法であり、(上坂吉則・尾関和彦:パターン認識と
学習のアルゴリズム,文一総合出版,1990,91−
108)に説明されているので詳しい理論は省略するも
のとする。
The second comparison / determination means of the present invention will be described. The code string conversion process is the same as that in the third embodiment, and therefore will be omitted, and the code string alignment will be described with reference to FIG. Reference numeral 401 in FIG. 19 is a reference feature code string, 4
02 is an inspection feature code string. The process of associating the feature points having the same feature code and existing at the shortest distance in the two feature code strings with each other is called alignment. 401 and 402
When the feature code string of is sorted, it can be seen that the feature points corresponding to the feature points 403 and 404 are not in the reference feature code string 401. Extra feature codes such as 403 and 404 that cannot be associated with each other are called extra code strings. This surplus code string is the reference code string 401 and the check code string 40.
It represents the difference between the two. It is not practical to perform the above processing by brute force for the feature points, because it takes a huge amount of time. Therefore, in this embodiment, DP matching (Dynamic Programming
Matching method is applied to align feature code strings at extremely high speed. The DP matching method is a relatively well-known method in speech recognition and pattern matching. (Yoshinori Uesaka and Kazuhiko Ozeki: Algorithms for pattern recognition and learning, Bunichi General Publishing, 1990, 91-
108) and detailed theory will be omitted.

【0072】DPマッチングを用いて特徴コード列を整
列する処理について以下に説明する。
The process of aligning the characteristic code strings using DP matching will be described below.

【0073】整列する特徴コード列をそれぞれ、A=a
1a2…aI、B=b1b2…bJとする。Iは特徴コード
列Aの長さ、Jは特徴コード列Bの長さである。次に、
(数15)の評価式を与える。(数15)式は、特徴コ
ードaとbとの類似度と呼ぶ。DPマッチングでは、優
先順位の高い特徴コードの組み合わせほど(数15)式
の評価値が小さくなるように定義する必要がある。本実
施例では、特徴コードが同じで最短距離にあるものほど
優先順位が高いので、aとbの特徴コードが同じであれ
ば”2点間の距離値”、aとbの特徴コードが異なって
いれば”400”、aとbのどちらかが脱落している場
合には”100”という評価値を出力するように(数1
5)式を定義した。そして、(数15)の式の値の和が
最小になるように特徴コードを対応させて行けば特徴コ
ード列を整列化できる。また、効率的に整列化するため
に(数16)と(数17)を用いる。ここでg(i,
j)は、Aのうちのa1a2…aiまでの特徴コード列と
Bのうちのb1b2…bjまでの特徴コード列を整列化し
た場合の対応する特徴点のそれぞれの類似度(数15)
の和を示す。すなわち、g(I,J)が、特徴コード列
AとBを整列した場合の類似度(数15)の和を意味す
る。(数17)の式は漸化式であり、(数16)を初期
値として、すでに計算したg(i−1,j)、g(i−
1,j−1)およびg(i,j−1)の値を用いて、g
(i,j)を最小にする特徴コードの組み合わせを選択
している。このように、過去の最小値を使って現在の値
を計算することで、わずかな計算量で最小のg(i,
j)を求める事ができる。この計算をi=1〜I、j=
1〜Jまで続けて行けば最後にg(I,J)が求められ
る。さらに、g(i,j)を計算するごとに、対応でき
なかった特徴コードを記憶しておけば、特徴コード列A
とBを整列化したときの余剰コード列がわかる。
The characteristic code strings to be aligned are respectively A = a
1a2 ... aI and B = b1b2 ... bJ. I is the length of the characteristic code string A, and J is the length of the characteristic code string B. next,
The evaluation formula of (Equation 15) is given. The expression (15) is called the similarity between the feature codes a and b. In DP matching, it is necessary to define such that a combination of feature codes having a higher priority order has a smaller evaluation value of Expression (15). In the present embodiment, the ones having the same feature code and having the shortest distance have a higher priority order. Therefore, if the feature codes of a and b are the same, the "distance value between two points " and the feature codes of a and b are different. If it is, "400" is output, and if either a or b is missing, the evaluation value "100" is output (Equation 1).
5) Formula was defined. Then, the characteristic code strings can be arranged by associating the characteristic codes so that the sum of the values of the equation (15) is minimized. Further, (Equation 16) and (Equation 17) are used for efficient alignment. Where g (i,
j) is the similarity of each of the corresponding feature points when the feature code sequence up to a1a2 ... ai in A and the feature code sequence up to b1b2 ... bj in B are aligned (Equation 15).
Indicates the sum of. That is, g (I, J) means the sum of the similarities (Equation 15) when the feature code strings A and B are aligned. The equation of (Equation 17) is a recurrence equation, and with (Equation 16) as an initial value, g (i−1, j) and g (i−) that have already been calculated are calculated.
1, j−1) and g (i, j−1), g
A combination of feature codes that minimizes (i, j) is selected. In this way, by calculating the current value using the past minimum value, the minimum g (i,
j) can be obtained. This calculation is i = 1 to I, j =
If 1 to J are continued, g (I, J) is finally obtained. Further, each time g (i, j) is calculated, if the feature code that cannot be handled is stored, the feature code string A
The surplus code string when the B and B are sorted is known.

【0074】[0074]

【数15】 [Equation 15]

【0075】ここで、a={Ca, Xa, Ya}、b={Cb,
Xb, Yb}はそれぞれ特徴コードを表し、*は特徴コード
の脱落を表す。
Here, a = {Ca, Xa, Ya} and b = {Cb,
Xb, Yb} represents the feature code, and * represents the loss of the feature code.

【0076】[0076]

【数16】 [Equation 16]

【0077】[0077]

【数17】 [Equation 17]

【0078】ここで、min{}は最小値を求める演算
子を意味している。
Here, min {} means an operator for finding the minimum value.

【0079】[0079]

【表3】 [Table 3]

【0080】[0080]

【表4】 [Table 4]

【0081】(表3)および(表4)にコード列整列化
の一例を示し以下に説明する。(表3)は整列させる特
徴コード列を示し、(表4)はコード列整列化処理の一
例を示し、i,j,はそれぞれのi,jの値、g(i,
j)は(数17)の式の計算結果を(数15)の評価式
の形で表し、整列化はそのときに対応する特徴コードの
組み合わせ、余剰コード列は余ったコード列をそれぞれ
示す。i=1〜4とj=1〜2との全てについて計算し
た結果を(表4)に示す。よって、(表3)の特徴コー
ド列の余剰コード列は”81−18”となる。
Tables 3 and 4 show examples of code string alignment, which will be described below. (Table 3) shows characteristic code sequences to be aligned, (Table 4) shows an example of code sequence alignment processing, i, j, are values of i, j, and g (i,
j) represents the calculation result of the formula (17) in the form of the evaluation formula (15), the marshalling indicates the combination of the corresponding feature codes, and the surplus code string indicates the surplus code string. The results calculated for all i = 1 to 4 and j = 1 to 2 are shown in (Table 4). Therefore, the surplus code string of the characteristic code string in (Table 3) is "81-18".

【0082】次に、コード列類似比較処理の概念につい
て、図19を用いて説明する。図19はある基準特徴コ
ード列と検査特徴コード列の比較判定の1例を示してい
る。検査のパターンが量子化誤差のため、基準と検査の
特徴コード列は一致しない。ここで、コード列整列化を
行うと量子化誤差の部分が余剰コード列として求められ
る。この余剰コード列から基準と検査とがどれだけ違っ
ているかがわかる。本実施例においては、余剰コード列
がペアコード列であれば特徴コード列は一致している
とする。ペアコード列とは、以下のように定義するも
のとし、図20を用いて説明する。図20(a)は量子
化誤差とその特徴コード列を示し、図20(b)は大き
な段差部分とその特徴コード列を示している。ペアコー
ド列とは、”12−21”のように互いの特徴コードの
下位桁と上位桁が入れ替わった組み合わせのコードを持
ち、なおかつ互いが任意の許容範囲(rp)内に存在す
るコード列と定義する。図20(a)、特徴コード列
が”12−21”で互いの点の距離が許容範囲(rp)
内であるのでペアコード列とする。また、図20(b)
の大きな段差の場合は、特徴コード列は”12−21”
であるが、互いの点が許容範囲(rp)内にないためペ
アコード列にはならない。このように許容範囲(rp)
を適当に設定する事により数画素程度の量子化誤差と大
きな段差部分とを区別する事ができる。このようなペア
コード列を消去あるいは無視する事により、量子化誤差
によるパターン形状の不安定性を許容して、精度の高い
検査が可能となる。
Next, the concept of code string similarity comparison processing will be described with reference to FIG. FIG. 19 shows an example of comparison / determination between a certain reference feature code sequence and an inspection feature code sequence. Since the inspection pattern is a quantization error, the reference and inspection feature code strings do not match. Here, when code string alignment is performed, the quantization error portion is obtained as a surplus code string. From this surplus code string, it can be seen how different the standard and the inspection are. In the present embodiment, even excess code string is feature code string if paired code string match
And the. The pair code string is defined as follows and will be described with reference to FIG. 20A shows a quantization error and its characteristic code string, and FIG. 20B shows a large step portion and its characteristic code string. A pair code string is a code string such as "12-21" that has a combination of codes in which the lower digit and the upper digit of the mutual characteristic codes are interchanged, and that are mutually within an allowable range (rp). Define. 20 (a) is the distance tolerance of one another point in feature code string "12-21" (rp)
Since it is inside, the pair code string is used. In addition, FIG.
If there is a large step, the feature code string is "12-21".
However, since the mutual points are not within the allowable range (rp), they do not form a pair code string. Thus, the allowable range (rp)
By appropriately setting, it is possible to distinguish a quantization error of about several pixels and a large step portion. By erasing or ignoring such a pair code string, instability of the pattern shape due to the quantization error is allowed, and highly accurate inspection is possible.

【0083】コード列類似比較処理について、図21の
フローチャートに従って説明する。 ステップ1:基準特徴コード列ファイルから特徴コード
列を取り出し、注目点とする。 ステップ2:基準特徴コード列の平均座標を中心に許容
範囲(rc)を設定する。 ステップ3:許容範囲内に対応する検査特徴コード列を
検査特徴コード列ファイルから検索する。存在しない場
合は欠陥として検査済みを登録し、存在する場合はステ
ップ4へ進む。 ステップ4:次に、基準特徴コード列と検査特徴コード
列を整列させ、対応付けできなかった余分なコード列
(余剰コード列)を取り出す。 ステップ5:余剰コード列がなかった場合は照合した事
を登録する。 ステップ6:余剰コード列がペアコード列であった場合
は照合した事を登録する。 ステップ7:未処理の基準特徴コード列がある場合は、
未処理の基準特徴コード列がなくなるまでステップ1か
ら繰り返す。 ステップ8:基準及び検査特徴コード列ファイルで照合
しなかった特徴コード列を検索し欠陥として欠陥情報記
憶手段に登録する。
The code string similarity comparison process will be described with reference to the flowchart of FIG. Step 1: A feature code string is extracted from the reference feature code string file and set as a point of interest. Step 2: An allowable range (rc) is set around the average coordinates of the standard feature code string. Step 3: Search the inspection feature code sequence file for the inspection feature code sequence corresponding to the allowable range. If it does not exist, the inspection is registered as a defect, and if it exists, the process proceeds to step 4. Step 4: Next, the reference feature code string and the inspection feature code string are aligned, and an extra code string (surplus code string) that cannot be associated is taken out. Step 5: If there is no surplus code string, register the verified one. Step 6: If the surplus code string is a pair code string, register that it has been verified. Step 7: If there is an unprocessed reference feature code string,
Repeat from step 1 until there are no unprocessed reference feature code strings. Step 8: A feature code string that has not been collated is searched for in the reference and inspection feature code string file and registered in the defect information storage means as a defect.

【0084】[0084]

【表5】 [Table 5]

【0085】[0085]

【表6】 [Table 6]

【0086】(表5)、(表6)に特徴コード列ファイ
ルの一例を示し以下に説明する。(表5)は基準特徴コ
ード列ファイルの一例を示し、(表6)は検査特徴コー
ド列ファイルの一例を示すもので、No.は発生順に付
けた番号、処理は未処理か処理済みかを1/0で示し、
照合は照合が”1”、未照合が”0”、対応Noは検査
側の対応する番号を記載、基準特徴コード列はコード列
化処理で生成した特徴コード列、平均アドレスはコード
列化処理で演算した特徴点の平均座標(X座標、Y座
標)を示している。(表5)で”0004”の基準特徴
コード列は、(表6)の”0006”の検査コード列と
整列化した結果、余剰コード列が”65−4−43−
32”でペアコード列でないので未照合となってい
る。”0006”の基準特徴コード列は、(表6)の”
0004”の検査特徴コード列と整列化した結果、余剰
コード列が”12−21”で、ペアコード列だったので
照合となる。
An example of the characteristic code string file is shown in (Table 5) and (Table 6) and will be described below. (Table 5) shows an example of the reference feature code sequence file, and (Table 6) shows an example of the inspection feature code sequence file. Is a number assigned in the order of occurrence, and 1/0 indicates whether the process is unprocessed or processed,
The collation is “1” for collation, “0” for non-collation, the corresponding number on the inspection side is described, the standard feature code string is the feature code string generated by the code string conversion process, and the average address is the code string conversion process. The average coordinates (X-coordinate, Y-coordinate) of the feature points calculated in step 3 are shown. Reference feature code string of "0004" in (Table 5) (Table 6) of the "0006" check code string and aligned with the result of excess code string is "65 - 5 4-43-
It is unmatched because it is not a pair code string of 32 ". The standard feature code string of" 0006 "is" Table 6 ".
As a result of being aligned with the inspection feature code string of “0004”, the surplus code string is “12-21”, which is the pair code string, and therefore the verification is performed.

【0087】(実施例5)以下、本発明の第5の実施例
について説明する。本発明の第5の実施例は、配線パタ
ーン検査装置において第2の比較判定手段18における
特定形状検出手段15からの特徴コードの比較判定処理
であり、特定形状検出手段15は実施例2と同様で、第
2の比較判定手段18のブロック構成図は実施例3で説
明した図9(a)と同様であり異なるのは比較判定処理
の処理内容が異なるもので異なる点を中心に説明する。
図9(a)において、特定形状検出手段15からの特徴
コード104は、FIFO161およびI/F回路16
2を介してCPU160のソフトウエア処理によって比
較判定処理が実行される。
(Fifth Embodiment) The fifth embodiment of the present invention will be described below. The fifth embodiment of the present invention is a comparison / determination process of the characteristic code from the specific shape detection means 15 in the second comparison / determination means 18 in the wiring pattern inspection apparatus, and the specific shape detection means 15 is the same as that of the second embodiment. The block diagram of the second comparison / determination means 18 is similar to that of FIG. 9A described in the third embodiment, and the difference is that the processing content of the comparison / determination processing is different, and the different points will be mainly described.
In FIG. 9A, the characteristic code 104 from the specific shape detecting means 15 is the FIFO 161 and the I / F circuit 16
The comparison / determination process is executed by the software process of the CPU 160 via 2.

【0088】本発明の比較判定処理は、特定形状検出手
段15で検出された特徴コードを、第2の比較判定手段
18において注目特徴点を中心として任意の許容範囲
(rs)内に対応する特徴点と順次結合し特徴コード列
データを生成するコード列化処理と、予め良品基板で作
成した特徴コード記憶手段19からの特徴コード列とを
コード列単位で比較するコード列比較処理と、不一致と
なった特徴コード列に欠陥形状を示す特定の基本コード
列が含まれているかを検査し、欠陥の種類を判定する欠
陥形状判定処理から構成される。
In the comparison / determination process of the present invention, the feature code detected by the specific shape detection means 15 corresponds to the feature code corresponding to the feature point of interest in the second comparison / determination means 18 within an arbitrary allowable range (rs). A code string conversion process for sequentially combining points with each other to generate characteristic code string data, and a code string comparison process for comparing the characteristic code string from the characteristic code storage means 19 previously created on a non-defective substrate in code string units, and a mismatch. The defect shape determination process for inspecting whether the specific feature code sequence includes a specific basic code sequence indicating the defect shape and determining the type of defect.

【0089】本発明の第2の比較判定手段について説明
するが、コード列化処理とコード列比較処理について
は、実施例3と同じであるので説明は省略し、異なる欠
陥形状判定処理について以下に説明する。ただし、コー
ド列比較処理のかわりに、実施例4で説明したコード列
類似比較処理を使っても良い。図22(a)〜(f)は
プリント基板における主な6種類の欠陥とその特徴コー
ド列の一例を示している。実際の欠陥は、もっと複雑な
特徴コード列を持っている場合もあるが、図22の特徴
コード列の要素が必ず含まれている。例えば、あるショ
ートの特徴コード列”12−23−32−23−34−
45”と”56−67−76−67−78−81”に
は、それぞれ”12−23−34−45”と”56−6
7−78−81”の要素が必ず含まれる。このような特
徴コード列を基本コード列と呼ぶものとする。
The second comparison / determination means of the present invention will be described. Since the code string conversion process and the code string comparison process are the same as those in the third embodiment, the description thereof will be omitted, and the different defect shape judgment process will be described below. explain. However, the code string similarity comparison process described in the fourth embodiment may be used instead of the code string comparison process. 22A to 22F show an example of six main types of defects on the printed circuit board and their characteristic code strings. The actual defect may have a more complicated characteristic code string, but the element of the characteristic code string of FIG. 22 is always included. For example, a certain short characteristic code string "12-23-32-23-34-
45 "and" 56-67-76-67-78-81 "include" 12-23-34-45 "and" 56-6, respectively.
The element of 7-78-81 "is always included. Such a characteristic code string is called a basic code string.

【0090】[0090]

【表7】 [Table 7]

【0091】[0091]

【表8】 [Table 8]

【0092】[0092]

【表9】 [Table 9]

【0093】[0093]

【表10】 [Table 10]

【0094】[0094]

【表11】 [Table 11]

【0095】[0095]

【表12】 [Table 12]

【0096】(表7)〜(表12)は、図22の6種類
の欠陥に対応する全ての基本コード列とそれに対応する
識別コードを与えた表であり、(表7)〜(表10)の
欠陥種類の基本コード列は、45°毎の回転を考慮して
それぞれ8種類必要であるが、(表11)の銅残りと
(表12)のピンホールは回転を考慮する必要がないの
で基本コード列は1種類でよい。欠陥の種類を判定する
ためには、(表7)〜(表12)に示された基本コード
列の要素が欠陥の特徴コード列に含まれていることを調
べればよい。また図22(a)、(c)からわかるよう
に、ショートおよび断線は、コ型の基本コード列が2つ
対応することから判断できる。
[0096] (Table 7) to (Table 12), Ri table der gave identification code and the corresponding all basic code string corresponding to the six types of defects 22, (Table 7) to (Table 10)
The basic code string of the defect type considers the rotation every 45 °.
Eight types are required for each, but with the copper residue in (Table 11)
Pinholes in (Table 12) do not need to consider rotation
Therefore, only one type of basic code string is required. In order to determine the type of defect, it is sufficient to check that the elements of the basic code string shown in (Table 7) to (Table 12) are included in the characteristic code string of the defect. Further, as can be seen from FIGS. 22 (a) and 22 (c), the short and the disconnection can be judged from the fact that the two U-shaped basic code strings correspond to each other.

【0097】欠陥形状判定処理の手順について、図23
のフローチャートに従って説明する。 ステップ1:欠陥情報記憶手段から不一致となった特徴
コード列を取り出して注目コード列とする。 ステップ2:注目コード列にどの基本コード列の要素が
含まれているかを検査する。 テップ3:含まれていない場合は注目コード列は照合
として欠陥情報記憶手段から消去する。 ステップ4:基本コード列が含まれている場合は、欠陥
情報記憶手段の注目コード列の箇所に基本コード列の識
別コードを登録する。 ステップ5:欠陥情報記憶手段に未処理の特徴コード列
がある場合は、なくなるまでステップ1から繰り返す。 ステップ6:欠陥情報記憶手段から識別コードが登録さ
れた特徴コード列を注目点とする。 ステップ7:注目コード列が”コ型”の基本コード列で
あるかどうか調べる。 ステップ8:”コ型”以外の基本コード列はそのまま欠
陥種類を登録する。 ステップ9:”コ型”の基本コード列については、対応
する相手を探す。 ステップ10:対応する相手が存在する場合には、基本
コード列の組み合わせから欠陥種類を登録する。 ステップ11:識別コードの登録された特徴コード列が
なくなるまで、ステップ6から繰り返す。
FIG. 23 shows the procedure of the defect shape determination processing.
It will be described in accordance with the flowchart of. Step 1: The mismatched characteristic code string is taken out from the defect information storage means and set as the focused code string. Step 2: test if there is any element of any basic code column to the attention code column. Step 3: if it does not interest code string is deleted from the defect information storage unit as verification. Step 4: If the basic code string is included, the identification code of the basic code string is registered in the location of the focused code string in the defect information storage means. Step 5: If there is an unprocessed characteristic code string in the defect information storage means, repeat from step 1 until it disappears. Step 6: The feature code string in which the identification code is registered from the defect information storage means is set as the point of interest. Step 7: Check whether the focused code string is a "U-shaped" basic code string. Step 8: For the basic code string other than the "U type", the defect type is registered as it is. Step 9: For the "U type" basic code string, a corresponding partner is searched. Step 10: If there is a corresponding partner, the defect type is registered from the combination of the basic code strings. Step 11: Repeat from Step 6 until there is no feature code string in which the identification code is registered.

【0098】[0098]

【表13】 [Table 13]

【0099】(表13)は、検査データの欠陥情報ファ
イルの一例である。ここで、No.は検査特徴コード列
の通し番号に対応し、x、yは特徴コード列の平均座
標、識別コードは特徴コード列に(表7)〜(表12)
の基本コード列が対応した場合の識別コード、対応コー
ド列はコ型基本コード列の場合の対応する相手の通し番
号を示し、欠陥種類は判定された欠陥種類、特徴コード
列は不一致であった検査の特徴コード列である。”24
19”と2420”はそれぞれ識別コードが”A1”
と”A5”であり、互いに近傍にあるので”ショート”
と判定されている。また、”2793”は”C7”の基
本コード列が対応して、”欠け”と判定される。”46
64”と”5156”とは対応する基本コード列がない
ため、欠陥情報ファイルから消去される。 (実施例6) 以下、本発明の第6の実施例について説明する。本発明
の第6の実施例は、配線パターン検査装置において第2
の比較判定手段18における特定形状検出手段15から
の特徴コードの比較判定処理であり、特定形状検出手段
15は実施例2と同様で、第2の比較判定手段18のブ
ロック構成図は実施例3で説明した図9(a)と同様で
あり異なるのは比較判定処理の処理内容が異なるもので
異なる点を中心に説明する。図9(a)において、特定
形状検出手段15からの特徴コード104は、FIFO
161およびI/F回路162を介してCPU160の
ソフトウエア処理によって比較判定処理が実行される。
Table 13 is an example of a defect information file of inspection data. Here, No. Corresponds to the serial number of the inspection feature code string, x and y are the average coordinates of the feature code string, and the identification code is in the feature code string (Table 7) to (Table 12).
Of the corresponding basic code string, the corresponding code string indicates the serial number of the corresponding partner in the case of a U-shaped basic code string, the defect type is the determined defect type, and the feature code string is inconsistent. Is a feature code string of. "24
The identification codes of 19 "and 2420" are "A1".
And "A5", which are "short" because they are close to each other
Has been determined. Also, "2793" corresponds to the basic code string of "C7" and is determined to be "missing". "46
Since 64 "and" 5156 "do not have corresponding basic code strings, they are erased from the defect information file . (Sixth Embodiment) The sixth embodiment of the present invention will be described below. The embodiment is the second in the wiring pattern inspection device.
The comparison and determination processing of the feature code from the specific shape detection means 15 in the comparison and determination means 18 is the same as that in the second embodiment, and the block configuration diagram of the second comparison and determination means 18 is the third embodiment. 9A is the same as that described in FIG. 9A, and the difference is the processing content of the comparison determination processing, and the different points will be mainly described. In FIG. 9A, the feature code 104 from the specific shape detection means 15 is a FIFO.
Comparison determination processing is executed by software processing of the CPU 160 via the I / F circuit 162 and the I / F circuit 162.

【0100】本発明の比較判定処理は、特定形状検出手
段15で検出された特徴コードを、第2の比較判定手段
18において注目特徴点を中心として任意の許容範囲
(rs)内に対応する特徴点と順次結合し特徴コード列
データを生成するコード列化処理と、予め良品基板で作
成した特徴コード記憶手段19からの特徴コード列とを
コード列単位で比較するコード列比較処理と、不一致と
なった特徴コード列に欠陥形状を示す特定の基本コード
列が含まれているかを検査し、欠陥の種類を判定する欠
陥形状判定処理と、判定した欠陥種類から、欠け、突起
等の欠陥についてのみ欠陥面積を演算し予め設定した大
きさを越える欠陥だけを検出する面積演算処理から構成
される。
In the comparison / determination process of the present invention, the feature code detected by the specific shape detecting means 15 is associated with the feature code within the arbitrary permissible range (rs) centering on the feature point of interest in the second comparison / determination means 18. A code string conversion process for sequentially combining points with each other to generate characteristic code string data, and a code string comparison process for comparing the characteristic code string from the characteristic code storage means 19 previously created on a non-defective substrate in code string units, and a mismatch. Defect shape judgment processing that inspects whether the specified characteristic code string contains a specific basic code string that indicates the defect shape, and determines the defect type, and from the judged defect type, only for defects such as chips and protrusions It is composed of area calculation processing for calculating a defect area and detecting only defects exceeding a preset size.

【0101】本発明の第2の比較判定手段について説明
するが、コード列化処理と、コード列比較処理、欠陥形
状判定処理について(実施例5)と同じであるので省略
し、面積演算処理の概念について説明する。不一致であ
った特徴コード列を欠陥と判定する場合、欠け及び突起
などの欠陥はその面積値に依存し、面積値が使用者の設
定した値よりも小さい場合は通知する必要はない。その
ため、欠け及び突起の面積を計算する事が必要となって
くる。そこで、特徴点を包括する矩形領域の面積値を欠
陥形状のおおよその面積として計算して、予め設定した
許容値(sc)を越えた場合に欠陥として通知する処理
を面積演算処理と呼ぶ。
The second comparison / determination means of the present invention will be described. The code string conversion process, the code string comparison process, and the defect shape judgment process are the same as those in the fifth embodiment, so that the description thereof will be omitted. Explain the concept. When the mismatched feature code string is determined to be a defect, defects such as defects and protrusions depend on the area value thereof, and when the area value is smaller than the value set by the user, it is not necessary to notify. Therefore, it becomes necessary to calculate the areas of the chip and the protrusion. Therefore, a process of calculating an area value of a rectangular region including feature points as an approximate area of a defect shape and notifying as a defect when the value exceeds a preset allowable value (sc) is called area calculation processing.

【0102】面積演算処理の手順を”欠け”を例にし、
図24を用いて説明する。図24において、始点600
と終点601とを結ぶ直線602の長さlと、直線60
2からの最遠の点603との距離hとを掛けた値が矩形
領域604の面積である。ここで、始点600と終点6
01との距離lは(数18)で与えられ、直線602か
らの点603との距離hは(数19)で与えられる。し
たがって、矩形領域の面積Sは(数20)で算出する事
ができる。
In the procedure of the area calculation processing, taking “missing” as an example,
This will be described with reference to FIG. In FIG. 24, the starting point 600
And the length l of a straight line 602 connecting the end point 601 and the straight line 60
A value obtained by multiplying the distance h from the farthest point 603 from 2 is the area of the rectangular region 604. Here, start point 600 and end point 6
The distance 1 to 01 is given by (Equation 18), and the distance h from the straight line 602 to the point 603 is given by (Equation 19). Therefore, the area S of the rectangular region can be calculated by (Equation 20).

【0103】[0103]

【数18】 [Equation 18]

【0104】[0104]

【数19】 [Formula 19]

【0105】[0105]

【数19】 [Formula 19]

【0106】ただし、最遠の点の座標(xmax,ymax)
である。
However, the coordinates of the farthest point (xmax, ymax)
Is.

【0107】[0107]

【数20】 [Equation 20]

【0108】面積演算処理について、図25のフローチ
ャートに従って説明する。 ステップ1:欠陥形状判定処理から、欠けおよび突起と
して通知された特徴コード列を注目コード列とする。 ステップ2:注目コード列の始点と終点と最遠の点の座
標から、矩形領域の面積値を算出する。 ステップ3:求めた面積値が許容値(sc)を越えた場
合には、欠陥として登録。 ステップ4:許容値(sc)を越えなかった場合には、
登録しない。 ステップ5:欠けおよび突起の欠陥がなくなるまでステ
ップ1を繰り返す。
The area calculation processing will be described with reference to the flowchart of FIG. Step 1: From the defect shape determination process, the characteristic code string notified as a chip and a protrusion is set as the focused code string. Step 2: The area value of the rectangular area is calculated from the coordinates of the farthest point and the start point and end point of the focused code string. Step 3: If the obtained area value exceeds the allowable value (sc), it is registered as a defect. Step 4: If the allowable value (sc) is not exceeded,
Do not register. Step 5: Repeat step 1 until there are no defects on the chip and the protrusion.

【0109】上記の面積演算処理により、欠け及び突起
は、予め使用者が設定した値と比較する事によって高精
度に比較判定することができる。また、ピンホールや銅
残りについても、同様の矩形領域で面積演算処置を行
い、デザインルール手段からの欠陥通知と統合して作業
者にレポートする事も容易に実現できる。
By the above area calculation processing, the chip and the protrusion can be compared and judged with high accuracy by comparing with the value preset by the user. Further, regarding pinholes and copper residues, it is also possible to easily perform area calculation processing in the same rectangular area and integrate it with the defect notification from the design rule means to report it to the operator.

【0110】(実施例7)以下、本発明の第7の実施例
について説明する。本発明の第7の実施例は、配線パタ
ーン検査装置において第2の比較判定手段18における
特定形状検出手段15からの特徴コードの比較判定処理
であり、特定形状検出手段15は実施例2と同様で、第
2の比較判定手段18のブロック構成図は実施例3で説
明した図9(a)と同様であり異なるのは比較判定処理
の処理内容が異なるもので異なる点を中心に説明する。
図9(a)において、特定形状検出手段15からの特徴
コード104は、FIFO161およびI/F回路16
2を介してCPU160のソフトウエア処理によって比
較判定処理が実行される。
(Embodiment 7) A seventh embodiment of the present invention will be described below. The seventh embodiment of the present invention is the comparison judgment processing of the characteristic code from the specific shape detection means 15 in the second comparison judgment means 18 in the wiring pattern inspection device, and the specific shape detection means 15 is the same as the second embodiment. The block diagram of the second comparison / determination means 18 is similar to that of FIG. 9A described in the third embodiment, and the difference is that the processing content of the comparison / determination processing is different, and the different points will be mainly described.
In FIG. 9A, the characteristic code 104 from the specific shape detecting means 15 is the FIFO 161 and the I / F circuit 16
The comparison / determination process is executed by the software process of the CPU 160 via 2.

【0111】本発明の比較判定処理は、特定形状検出手
段15で検出された特徴コードを、第2の比較判定手段
18において注目特徴点を中心として任意の許容範囲
(rs)内に対応する特徴点と順次結合し特徴コード列
データを生成するコード列化処理と、特徴コード列から
ペアコード列を消去するペアコード列消去処理と、予め
良品基板で作成した特徴コード記憶手段19からの特徴
コード列とをコード列単位で比較するコード列比較処理
から構成される。
In the comparison / determination process of the present invention, the feature code detected by the specific shape detection means 15 corresponds to the feature code corresponding to the feature code of interest in the second comparison / determination means 18 within an arbitrary allowable range (rs). A code string forming process for sequentially connecting points to generate characteristic code string data, a pair code string erasing process for erasing a pair code string from the characteristic code string, and a characteristic code from the characteristic code storage means 19 created in advance on a good board. It is composed of a code string comparison process for comparing a string with a code string unit.

【0112】本発明の第2の比較判定手段について説明
するが、コード列化処理とコード列比較処理について
は、実施例3と同じであるので説明は省略し、ペアコー
ド列消去処理について図26を用いて説明する。図26
は特徴コード列のデータの一例である。図26はコード
列化処理によって特徴コード列化されたデータである。
まず、ペアコード列になる特徴コードの組み合わせは、
特徴点701”18”と702”81”かあるが、互い
の距離が許容範囲(rp)より大きいので消去できな
い。次に特徴点703”12”と704”21”が該当
して、さらに互いの距離が許容範囲(rp)内に存在す
るので消去できる。本実施例では、コード列化処理の後
にペアコード列消去を行ったが、コード列化処理の時に
ペアコード列を連結せずに特徴コード列を生成しても同
じ結果が得られる。
The second comparison / determination means of the present invention will be described. Since the code string conversion process and the code string comparison process are the same as those in the third embodiment, the description thereof will be omitted, and the pair code string erasing process will be described with reference to FIG. Will be explained. FIG. 26
Is an example of the data of the characteristic code string. FIG. 26 shows data that has been converted into a characteristic code string by the code string conversion process.
First, the combination of feature codes that make up a pair code string is
There are feature points 701 "18" and 702 "81", but they cannot be deleted because their distances are larger than the allowable range (rp). Next, the feature points 703 "12" and 704 "21" correspond to each other, and the mutual distances are within the permissible range (rp), so that they can be deleted. In this embodiment, the pair code sequence is erased after the code sequence conversion process, but the same result can be obtained even if the characteristic code sequence is generated without concatenating the pair code sequences during the code sequence conversion process.

【0113】(実施例8)以下、本発明の第8の実施例
について、図27を参照しながら説明する。
(Embodiment 8) An eighth embodiment of the present invention will be described below with reference to FIG.

【0114】図31は本発明の第8の実施例の配線パタ
ーン検査装置における特定形状検出手段15のブロック
構成図である。図27において、201は方向コード付
与手段、801は方向コード変換手段、202は特徴抽
出手段、800は方向コード画像を示すものである。図
10の構成と異なるものは、1画素程度の量子化誤差に
よる不安定な特徴点を除去するために、注目画素の方向
コードが2つの輪郭画素の方向コードと異なる場合に、
前記注目画素の方向コードを付け変える方向コード変換
手段801を設けたものである。
FIG. 31 is a block diagram of the specific shape detecting means 15 in the wiring pattern inspection apparatus according to the eighth embodiment of the present invention. In FIG. 27, 201 is a direction code assigning unit, 801 is a direction code converting unit, 202 is a feature extracting unit, and 800 is a direction code image. Configuration different from the FIG. 10, in order to remove the unstable feature points due to the quantization error of about 1 pixel, when the direction code of the attention pixel is different from the direction code of two contour pixels,
Direction code conversion means 801 for changing the direction code of the pixel of interest is provided.

【0115】方向コード変換手段801以外は第9の実
施例と同じであるため説明は省略し、方向コード変換手
段801の具体的な処理について図28と図29を用い
て説明する。図28は、方向コード変換手段801の回
路構成図であり、802は奇数の方向コードだけを変換
する第1の方向コード変換部、803は偶数の方向コー
ドだけを変換する第2の方向コード変換部である。ま
ず、第1の方向コード変換部802の具体的処理につい
て図29を用いて説明する。図29は、第1の方向コー
ド変換部の回路構成図であり、811はラインメモリ、
812は多値の3×3走査窓、813〜820は比較
器、821は注目画素位置D0のLSB信号、823は
窓内データD0〜D8をLUT822の出力824によ
って選択するMPXである。825はMPXの出力であ
る。第1の方向コード変換部802は、方向コード画像
800を走査窓812で走査し、周辺画素D1〜D8の
方向コードを比較器813〜820およびMPX823
に出力する。比較器813〜820は、図30に示すパ
ターンに方向コードが存在し、かつ注目画素に隣接する
画素の方向コードが同一の値であるときのみに、値”
1”を出力する。図30に示すパターンは、方向コード
の変換が必要なパターンを示しているもので、黒の画素
は”1〜8”の方向コード、白の画素はそれ以外の値を
示す。MPX823の選択信号824は、比較器813
〜820の出力と注目画素位置D0のLSB信号821
(つまり、注目画素位置D0の方向コードが偶数の時に
は値”0”、奇数の時には値”1”である)を入力し、
(表14)に示すテーブルの記述されたLUT822で
MPX823の選択信号824を出力する。また、MP
X823は、選択信号824に従って(表14)の示す
ようにD0〜D8の方向コードを選択して、信号825
を出力する。また、第2の方向コード変換部も第1の方
向コード変換部と同様な処理を行うもので、異なるのは
LUT822のテーブルで(表15)に示す。
Except for the direction code conversion means 801, the description is omitted because it is the same as the ninth embodiment, and the specific processing of the direction code conversion means 801 will be explained using FIG. 28 and FIG. 29. FIG. 28 is a circuit configuration diagram of the direction code conversion means 801, where 802 is a first direction code conversion unit that converts only odd direction codes, and 803 is a second direction code conversion that converts only even direction codes. It is a department. First, the specific processing of the first direction code conversion unit 802 will be described with reference to FIG. FIG. 29 is a circuit configuration diagram of the first direction code conversion unit, where 811 is a line memory,
Reference numeral 812 is a multi-valued 3 × 3 scanning window, 813 to 820 are comparators, 821 is an LSB signal at the target pixel position D0, and 823 is an MPX that selects the in-window data D0 to D8 by the output 824 of the LUT 822. 825 is an output of MPX. The first direction code conversion unit 802 scans the direction code image 800 with the scanning window 812, and compares the direction codes of the peripheral pixels D1 to D8 with the comparators 813 to 820 and the MPX823.
Output to. The comparators 813 to 820 have the value "" only when the direction code exists in the pattern shown in FIG. 30 and the direction codes of the pixels adjacent to the pixel of interest have the same value.
1 "is output. The pattern shown in FIG. 30 shows a pattern that requires conversion of the direction code. Black pixels are" 1 to 8 "direction codes, and white pixels are other values. The selection signal 824 of the MPX 823 is the comparator 813.
~ 820 output and LSB signal 821 of the target pixel position D0
(That is, when the direction code of the target pixel position D0 is even, the value is “0”, and when the direction code is odd, the value is “1”)
The LUT 822 described in the table shown in (Table 14) outputs the selection signal 824 of the MPX 823. Also, MP
X823 selects the direction code of D0 to D8 as shown in (Table 14) according to the selection signal 824, and outputs the signal 825.
You output. Also, the second direction code conversion unit which performs the same processing as in the first direction code conversion unit shown in difference in LUT822 table (Table 15).

【0116】[0116]

【表14】 [Table 14]

【0117】[0117]

【表15】 [Table 15]

【0118】次に、方向コード変換手段801の処理例
を図31及び図32に示し、以下に説明する。図31
は、入力された方向コード画像を示しており、特に注目
すべき点830、831、832について説明する。図
32は、830、831、832の処理結果を示してい
る。特徴点830は、方向コードの変換の必要のない点
であり、(表14)のテーブルに基づき、注目画素はD
0の方向コードが選択され入力(図32(a))と出力
(図32(d))は同じ結果になる。特徴点831は、
比較器818の出力は”1”となり、MPXは注目画素
のコードとしてD7の方向コード”2”を選択し、図3
2(b)が図32(e)に変換される。特徴点832も
同様で、図32(c)が図32(f)に変換されること
になる。また、方向コードの変換を、注目画素位置の方
向コード値(奇数と偶数)によって第1の方向コード変
換部と第2の方向コード変換部に分けて処理する理由
は、方向コードが”23232323”のようになって
いる場合、1種類の方向コード変換処理で行うと”22
323233”となり入れ替わるだけとなるためであ
る。以上説明したように、本発明は方向コード変換手段
により方向コードを変換することで、量子化誤差等によ
り発生した凸凹を修正し、安定した検査が出来るもので
ある。
Next, a processing example of the direction code converting means 801 is shown in FIGS. 31 and 32, and will be described below. Figure 31
Shows an input direction code image, and points 830, 831, and 832 to be particularly noted will be described. FIG. 32 shows the processing results of 830, 831, and 832. The feature point 830 is a point that does not require conversion of the direction code, and based on the table of (Table 14), the pixel of interest is D
A direction code of 0 is selected and the input (FIG. 32 (a)) and output (FIG. 32 (d)) have the same result. The feature point 831 is
The output of the comparator 818 is "1", and MPX is the pixel of interest.
Select the direction code "2" of D7 as the code of
2 (b) is converted into FIG. 32 (e). The same applies to the feature point 832, and FIG. 32 (c) is converted into FIG. 32 (f). Further, the reason why the conversion of the direction code is divided into the first direction code conversion unit and the second direction code conversion unit according to the direction code value (odd number and even number) of the pixel position of interest is that the direction code is "23232323". Becoming like
If there is one type of direction code conversion processing, "22
323233 "only, and therefore replaced next. As described above, the present invention is to convert the direction code by the direction code conversion means, to correct the irregularities caused by the quantization error and the like, stable inspection can be It is a thing.

【0119】[0119]

【発明の効果】以上のように本発明の効果は、第1に、
ミクロ検査としてのデザインルール検査手段では信号線
の線幅など設計ルールに基づいた特徴情報の検出を行
い、マクロ検査としての特定形状検出手段では矩形パタ
ーンのコーナーなど所定の図形形状を検出することによ
り、基板上の各種パターンに適合したミクロ検査とマク
ロ検査を並行して検査するため、処理領域を分けること
なく基板に存在する多種多様な欠陥に対し見落としや誤
報のない高精度かつ高機能の配線パターン検査装置が実
現できる。
As described above, the effects of the present invention are as follows.
The design rule inspection means as the micro inspection detects the characteristic information based on the design rule such as the line width of the signal line, and the specific shape detection means as the macro inspection detects the predetermined figure shape such as the corner of the rectangular pattern. Since the micro inspection and the macro inspection adapted to various patterns on the board are inspected in parallel, high-precision and high-performance wiring that does not overlook or misreport various defects existing on the board without dividing the processing area A pattern inspection device can be realized.

【0120】第2に、特定形状検出手段において、画像
の輪郭位置にエッジの方向を表す方向コードを与え、方
向コードの変化する点を特徴点として検出し、この特徴
点の座標と方向コードの変化点を良品基板からの特徴コ
ードと比較することで局所的な処理でラージショート、
断線、欠け等のマクロな欠陥が検出でき信頼性が高く小
型の配線パターン検査装置が実現できる。
Secondly, in the specific shape detecting means, a direction code representing the direction of the edge is given to the contour position of the image, a point where the direction code changes is detected as a feature point, and the coordinates of this feature point and the direction code are detected. By comparing the change point with the feature code from the non-defective board, large shorts can be generated locally.
A macro wiring defect such as disconnection or chipping can be detected, and a highly reliable and compact wiring pattern inspection device can be realized.

【0121】第3に、第2の比較判定手段において、特
定形状検出手段からの方向コードの変化位置とコードか
らなる特徴コードを入力し、任意の範囲内に対応する特
徴コードと順次連結して特徴コード列を生成し、予め良
品基板で生成した特徴コード記憶手段からの特徴コード
列とを特徴コード列単位で比較判定することでエッジの
微細な形状変化に強い判定のできる信頼性の高い配線パ
ターン検査装置が実現できる。
Thirdly, in the second comparison / determination means, a characteristic code consisting of a change position of the direction code and the code from the specific shape detection means is inputted and sequentially connected with a corresponding characteristic code within an arbitrary range. Highly reliable wiring capable of making a strong judgment against a fine shape change of an edge by generating a characteristic code string and comparing the characteristic code string from the characteristic code storage means previously generated on a non-defective board with the characteristic code string in unit of the characteristic code string. A pattern inspection device can be realized.

【0122】第4に、第2の比較判定手段において、特
定形状検出手段からの方向コードの変化位置とコードか
らなる特徴コードを入力し、任意の範囲内に対応する特
徴コードと順次連結して特徴コード列を生成し、予め良
品基板で生成した特徴コード記憶手段からの特徴コード
列とを特徴コード列単位で比較判定する際、類似性で判
定することでエッジの微細な形状変化で欠落した特徴コ
ード等による誤判定を防止し信頼性の高い安定した判定
の出来る配線パターン検査装置を実現できる。
Fourthly, in the second comparison / determination means, the change position of the direction code from the specific shape detection means and the feature code consisting of the code are inputted and sequentially connected with the corresponding feature codes within an arbitrary range. When a characteristic code string is generated and compared with the characteristic code string from the characteristic code storage unit generated in advance on a non-defective board in the characteristic code string unit and judged, the judgment is made by the similarity and the edge is missing due to a minute shape change. It is possible to realize a wiring pattern inspecting device that can prevent erroneous determination due to a feature code and the like and can perform reliable and stable determination.

【0123】第5に、第2の比較判定手段において、特
定形状検出手段からの方向コードの変化位置とコードか
らなる特徴コードを入力し、任意の範囲内に対応する特
徴コードと順次連結して特徴コード列を生成し、予め良
品基板で生成した特徴コード記憶手段からの特徴コード
列とを特徴コード列単位で比較判定し、不一致になった
特徴コード列にショート、断線、欠け及び突起等を示す
特定の基本コード列の要素が含まれている検査し欠陥
の種類を判定することで工程管理を容易とし、更に作業
者にとって判り易くすることができる簡便で操作性の良
い配線パターン検査装置を実現できる。
Fifth, in the second comparison / determination means, a characteristic code consisting of a change position of the direction code and the code from the specific shape detection means is inputted and sequentially connected with the corresponding characteristic code within an arbitrary range. A feature code string is generated and compared with the feature code string from the feature code storage means generated in advance on a non-defective board in feature code string units, and the mismatched feature code string is checked for shorts, disconnections, chips, protrusions, etc. A simple and easy-to-operate wiring pattern inspecting device that facilitates process control by inspecting whether the element of the specific basic code string shown is included and determining the type of defect and making it easier for the operator to understand Can be realized.

【0124】第6に、第2の比較判定手段において、特
定形状検出手段からの方向コードの変化位置とコードか
らなる特徴コードを入力し、任意の範囲内に対応する特
徴コードと順次連結して特徴コード列を生成し、予め良
品基板で生成した特徴コード記憶手段からの特徴コード
列とを特徴コード列単位で比較判定し、不一致になった
特徴コード列にショート、断線、欠け及び突起等を示す
特定の基本コード列の要素が含まれている検査し欠陥
の種類を判定した後に、特徴コード列から欠陥の面積を
演算し予め設定した大きさの欠陥のみ検出することで誤
判定を防止することのできる信頼性の高い配線パターン
検査装置を実現できる。
Sixth, in the second comparison / determination means, a change position of the direction code from the specific shape detection means and a feature code consisting of the code are input, and sequentially connected with corresponding feature codes within an arbitrary range. A feature code string is generated and compared with the feature code string from the feature code storage means generated in advance on a non-defective board in feature code string units, and the mismatched feature code string is checked for shorts, disconnections, chips, protrusions, etc. Prevents erroneous determination by inspecting whether the element of the specific basic code string shown is included and determining the type of defect, then calculating the area of the defect from the feature code string and detecting only the defect of a preset size It is possible to realize a reliable wiring pattern inspecting device.

【0125】第7に、第2の比較判定手段において、特
定形状検出手段からの方向コードの変化位置とコードか
らなる特徴コードを入力し、任意の範囲内に対応する特
徴コードと順次連結して特徴コード列を生成し、予め良
品基板で生成した特徴コード記憶手段からの特徴コード
列とを特徴コード列単位で比較判定し、不一致となった
特徴コード列にエッジの微細な形状変化で発生したペア
コード列が含まれている場合は欠陥としないことによ
報を削減し安定した検査が出来る配線パターン検査装
置を実現できる。
Seventh, in the second comparison / determination means, a characteristic code consisting of a change position of the direction code and the code from the specific shape detection means is inputted, and sequentially connected with a corresponding characteristic code within an arbitrary range. A characteristic code string is generated, and the characteristic code string from the characteristic code storage means generated in advance on a non-defective board is compared and judged on a feature code string unit basis. if it contains a pair code string Ri by the fact that do not defect
The reduction was stable inspection can wiring pattern inspecting apparatus imaginary paper can be realized.

【0126】第8に、特定形状検出手段において、画像
の輪郭位置にエッジの方向を表す方向コードを与え、注
目画素に連結している2つの輪郭画素の方向コードが互
いに同一コードであり、かつ前記注目画素の方向コード
が前記2つの輪郭画素の方向コードと異なる場合に、注
目画素の方向コードを付け変えて特徴抽出する事によ
り、量子化誤差等により発生した凸凹をキャンセルする
ことで特徴点数が削減できるとともに虚報を削減し信頼
性の高い配線パターン検査装置が実現できる。
Eighth, in the specific shape detecting means, a direction code representing the direction of the edge is given to the contour position of the image, and the direction codes of the two contour pixels connected to the pixel of interest are the same code, and When the direction code of the pixel of interest is different from the direction codes of the two contour pixels, the direction code of the pixel of interest is changed to extract the feature, thereby canceling the unevenness caused by the quantization error or the like. It is possible to realize a highly reliable wiring pattern inspection device by reducing the number of false positives and false reports.

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

【図1】本発明の第1の実施例における配線パターン検
査装置のブロック結線図
FIG. 1 is a block connection diagram of a wiring pattern inspection device according to a first embodiment of the present invention.

【図2】同配線パターン検査装置におけるスルーホール
部の縞模様の2値画像を示す図
FIG. 2 is a diagram showing a binary image of a striped pattern of a through hole in the wiring pattern inspection apparatus.

【図3】同配線パターン検査装置におけるスルーホール
検出手段のブロック結線、及びその概念図
FIG. 3 is a block connection diagram of a through-hole detecting means in the wiring pattern inspection apparatus and a conceptual diagram thereof.

【図4】同配線パターン検査装置におけるスルーホール
領域抽出部のブロック結線、及びその概念図
FIG. 4 is a block connection diagram of a through hole area extraction unit in the wiring pattern inspection apparatus and a conceptual diagram thereof.

【図5】同配線パターン検査装置における膨張処理部の
走査窓の画素配置を示す図
FIG. 5 is a diagram showing a pixel arrangement of a scanning window of an expansion processing unit in the wiring pattern inspection apparatus.

【図6】同配線パターン検査装置におけるデザインルー
ル検査手段のブロック結線、及び処理例を示す図
FIG. 6 is a diagram showing a block connection and a processing example of a design rule inspection means in the wiring pattern inspection apparatus.

【図7】同配線パターン検査装置における特定形状検出
手段のブロック結線図
FIG. 7 is a block connection diagram of specific shape detection means in the wiring pattern inspection apparatus.

【図8】同配線パターン検査装置における特定形状検出
手段のコーナ識別のパターン例を示す図
FIG. 8 is a view showing an example of a pattern for corner identification of a specific shape detection means in the wiring pattern inspection device.

【図9】同配線パターン検査装置における比較判定手段
のブロック結線とその概念図
FIG. 9 is a block diagram of a comparison / determination unit in the wiring pattern inspection apparatus and a conceptual diagram thereof.

【図10】本発明の第2の実施例における同配線パター
ン検査装置の特定形状検出手段のブロック結線図
FIG. 10 is a block connection diagram of a specific shape detecting means of the wiring pattern inspecting device according to the second embodiment of the present invention.

【図11】同配線パターン検査装置における方向コード
付与手段の詳細ブロック結線、及びその概念図
FIG. 11 is a detailed block connection of a direction code assigning unit in the wiring pattern inspecting apparatus and a conceptual diagram thereof.

【図12】同配線パターン検査装置における方向コード
付与手段の処理例を示す図
FIG. 12 is a diagram showing a processing example of a direction code assigning unit in the wiring pattern inspection apparatus.

【図13】同配線パターン検査装置における特徴抽出手
段の詳細ブロック結線図
FIG. 13 is a detailed block connection diagram of a feature extraction unit in the wiring pattern inspection apparatus.

【図14】同配線パターン検査装置における特徴抽出手
段の方向コードの変化点の検出例を示す図
FIG. 14 is a diagram showing an example of detecting a change point of a direction code of a feature extracting means in the wiring pattern inspection apparatus.

【図15】本発明の第3の実施例における同配線パター
ン検査装置の特定形状検出手段のコード列化を示す概
念、および連結の手順を説明する図
FIG. 15 is a view for explaining the concept of forming a code string of the specific shape detecting means of the wiring pattern inspecting device and the connecting procedure in the third embodiment of the present invention.

【図16】同配線パターン検査装置の特定形状検出手段
のコード列化の処理フローを示す図
FIG. 16 is a diagram showing a processing flow of converting a specific shape detecting means of the wiring pattern inspecting device into a code string.

【図17】同配線パターン検査装置の特定形状検出手段
の特徴コード列比較の処理フローを示す図
FIG. 17 is a diagram showing a processing flow of comparing characteristic code strings of a specific shape detecting means of the wiring pattern inspection apparatus.

【図18】本発明の第4の実施例における特徴コード列
の整列化を示す図
FIG. 18 is a diagram showing sorting of characteristic code strings in the fourth exemplary embodiment of the present invention.

【図19】同第4の実施例におけるコード列類似比較処
理の概念図
FIG. 19 is a conceptual diagram of code string similarity comparison processing in the fourth embodiment.

【図20】同第4の実施例におけるペアコード列を示す
FIG. 20 is a diagram showing a pair code string in the fourth embodiment.

【図21】同第4の実施例における類似比較処理のフロ
ー図
FIG. 21 is a flowchart of similarity comparison processing in the fourth embodiment.

【図22】本発明第5の実施例における欠陥判定処理の
代表的な欠陥を示す図
FIG. 22 is a diagram showing a representative defect of the defect determination processing in the fifth embodiment of the present invention.

【図23】同第5の実施例における欠陥判定処理のフロ
ー図
FIG. 23 is a flow chart of defect determination processing in the fifth embodiment.

【図24】本発明第6の実施例における面積演算処理の
概念図
FIG. 24 is a conceptual diagram of area calculation processing in the sixth embodiment of the present invention.

【図25】同第6の実施例における面積演算処理のフロ
ー図
FIG. 25 is a flow chart of area calculation processing in the sixth embodiment.

【図26】本発明第7の実施例におけるペアコード列消
去処理の処理を示す図
FIG. 26 is a diagram showing processing of pair code string erasing processing in the seventh embodiment of the present invention.

【図27】本発明の第8の実施例における配線パターン
検査装置の特定形状検出手段のブロック結線図
FIG. 27 is a block connection diagram of the specific shape detection means of the wiring pattern inspection apparatus in the eighth embodiment of the present invention.

【図28】同第8の実施例における方向コード変換手段
のブロック結線図
FIG. 28 is a block connection diagram of direction code conversion means in the eighth embodiment.

【図29】同第8の実施例における第1の方向コード変
換部の詳細ブロック結線図
FIG. 29 is a detailed block connection diagram of the first direction code conversion unit in the eighth embodiment.

【図30】同第8の実施例における方向コード変換の対
象パターン例を示す図
FIG. 30 is a diagram showing an example of a target pattern for direction code conversion in the eighth embodiment.

【図31】同第8の実施例における処理例を示す図FIG. 31 is a diagram showing a processing example in the eighth embodiment.

【図32】同第8の実施例における処理の結果を示す図FIG. 32 is a diagram showing a result of processing in the eighth embodiment.

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

11 画像入力手段 12 2値化手段 13 スルーホール検出手段 14 デザインルール検査手段 15 特定形状検出手段 16 第1の比較判定手段 17 特徴情報記憶手段 18 第2の比較判定手段 19 特徴コード記憶手段 24 CCDカメラ 30 スルーホール領域抽出部 31 膨張処理部 36 座標検出部 40〜43 塗り潰し回路 44〜47 収縮回路 49 膨張回路 70 細線化処理部 71 距離変換処理部 72 特徴抽出部 73 測長回路 74 形状検出回路 76 座標検出部 90 5×5窓走査回路 91 3×3窓走査回路 92 エッジ検出回路 93 形状検出LUT 95 座標検出部 133〜134、161 FIFOメモリ 136、162 I/F回路 131 欠陥情報記憶手段 130、160 CPU 201 方向コード付与手段 202 特徴抽出手段 211 ラインメモリ 212 走査窓 213 LUT 221 ラインメモリ 222 走査窓 223 MPX 224 LUT 228 XY座標発生器 401 基準特徴コード列 402 検査特徴コード列 403〜404 特徴点 600 特徴コード列の始点 601 特徴コード列の終点 602 始点と終点を結ぶ直線 603 直線からの最遠点 701〜704 特徴点 800 方向コード画像 801 方向コード変換手段 802 第1の方向コード変換部 803 第2の方向コード変換部 811 ラインメモリ 812 多値の走査窓 813〜820 比較器 822 LUT 823 MPX 11 Image input means 12 Binarization means 13 Through-hole detection means 14 Design rule inspection means 15 Specific shape detection means 16 First comparison determination means 17 Feature Information Storage Means 18 Second comparison / determination means 19 Feature code storage means 24 CCD camera 30 Through-hole area extraction unit 31 Expansion processing unit 36 Coordinate detection unit 40-43 Filling circuit 44-47 contraction circuit 49 Expansion circuit 70 Thinning processing unit 71 Distance conversion processing unit 72 Feature Extraction Unit 73 Length measuring circuit 74 Shape detection circuit 76 Coordinate detection unit 90 5 × 5 window scanning circuit 91 3 × 3 window scanning circuit 92 Edge detection circuit 93 Shape detection LUT 95 Coordinate detection unit 133-134, 161 FIFO memory 136, 162 I / F circuit 131 Defect information storage means 130, 160 CPU 201 Direction code assigning means 202 feature extraction means 211 line memory 212 scanning window 213 LUT 221 line memory 222 scanning window 223 MPX 224 LUT 228 XY coordinate generator 401 Standard feature code string 402 inspection feature code string 403-404 characteristic points 600 Start point of feature code string 601 End point of feature code string 602 A straight line connecting the start point and the end point 603 The furthest point from the straight line 701-704 Features 800 direction code image 801 Direction code conversion means 802 First direction code conversion unit 803 Second direction code conversion unit 811 line memory 812 multi-value scanning window 813-820 Comparator 822 LUT 823 MPX

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI G06F 15/64 D 15/70 455B (72)発明者 川上 秀彦 神奈川県川崎市多摩区東三田3丁目10番 1号 松下技研株式会社内 (72)発明者 川村 秀昭 神奈川県川崎市多摩区東三田3丁目10番 1号 松下技研株式会社内 (56)参考文献 特開 平1−180404(JP,A) 特開 平3−252546(JP,A) 特開 平4−268444(JP,A) 特開 昭61−70677(JP,A) (58)調査した分野(Int.Cl.7,DB名) G01B 11/00 - 11/30 102 G01N 21/84 - 21/958 G06T 1/00 G06T 7/00 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 7 Identification symbol FI G06F 15/64 D 15/70 455B (72) Inventor Hidehiko Kawakami 3-10-1 Higashisanda, Tama-ku, Kawasaki-shi, Kanagawa Matsushita Giken Incorporated (72) Inventor Hideaki Kawamura 3-10-1 Higashisanda, Tama-ku, Kawasaki City, Kanagawa Matsushita Giken Co., Ltd. (56) Reference JP-A-1-180404 (JP, A) JP-A-3- 252546 (JP, A) JP 4-268444 (JP, A) JP 61-70677 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G01B 11/00-11 / 30 102 G01N 21/84-21/958 G06T 1/00 G06T 7/00

Claims (12)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 プリント基板から得た2値画像に対し、
線幅や線間隔を測定し設計ルールに定められた基準に違
反した位置とその種類を特徴情報として検出するデザイ
ンルール検査手段と、予め良品基板を用いてデザインル
ール検査手段からの特徴情報を記憶する特徴情報記憶手
段と、前記デザインルール検査手段により検出された特
徴情報と、前記特徴情報記憶手段からの特徴情報とを比
較し真の欠陥のみを検出する第1の比較判定手段とから
成るミクロ検査装置と 前記2値画像に対し、 画像の輪郭位置にエッジの方向を
表す方向コードを与え、方向コードの変化する点を特徴
点として検出し、前記特徴点の座標と方向コードの変化
を表すコードからなる特徴コードを検出する特定形状検
出手段と、予め良品基板を用いて特定形状検出手段から
の特徴コードを記憶する特徴コード記憶手段と、前記特
定形状検出手段により検出された特徴コードと、前記特
徴コード記憶手段からの特徴コードとを比較し真の欠陥
のみを検出する第2の比較判定手段とから成るマクロ検
査装置とを備えた配線パターン検査装置。
1. A binary image obtained from a printed circuit board,
Design rule inspection means that measures the line width and line spacing and detects the position and its type that violate the criteria set in the design rule as characteristic information, and the design rule using a good board in advance.
Information storage means for storing the characteristic information from the inspection means
And the features detected by the design rule inspection means.
The characteristic information from the characteristic information from the characteristic information storage means.
A micro inspection apparatus comprising a first comparison determination means only detects the compare and true defect, the relative binary image, giving the direction code representative of the edge orientation in the contour position of the image, changes in the direction code A specific shape detection that detects a point as a feature point and detects a feature code that is a code that represents a change in the coordinates of the feature point and the direction code.
From the specific shape detection means using the output means and the good board in advance
Characteristic code storage means for storing the characteristic code of
A macro inspection comprising a second comparison / determination means for comparing only the characteristic defect detected by the fixed shape detection means with the characteristic code from the characteristic code storage means to detect only a true defect.
Wiring pattern inspection apparatus and a査device.
【請求項2】 プリント基板から得た2値画像は、プリ
ント基板を上方からの反射照明と下方からの透過照明で
照明し、プリント基板の反射光と透過光を検知し光電変
換する画像入力手段と、前記画像入力手段からの濃淡画
像を2値画像に変換する2値化手段と、前記2値化手段
からの2値画像からスルーホールを分離抽出し、スルー
ホールを充填した画像を生成することを特徴とする請求
項1記載の配線パターン検査装置。
2. A binary image obtained from a printed board is an image input means for illuminating the printed board with reflected illumination from above and transmitted illumination from below, detecting reflected light and transmitted light of the printed board, and performing photoelectric conversion. And a binarization unit for converting the grayscale image from the image input unit into a binary image, and a through hole is separated and extracted from the binary image from the binarization unit to generate an image in which the through hole is filled. The wiring pattern inspection apparatus according to claim 1, wherein
【請求項3】 第2の比較判定手段において、特定形状
検出手段からの特徴点の座標と方向コードの変化を表す
コードからなる特徴コードを任意の許容範囲内に存在す
る他の特徴コードと順次連結して特徴コード列を生成
し、予め良品基板で生成した特徴コード記憶手段からの
特徴コード列とをコード列単位で比較判定することを特
徴とする請求項1記載の配線パターン検査装置。
3. The second comparison / determination means, in which the characteristic code, which is a code indicating the change in the coordinate of the characteristic point and the direction code from the specific shape detection means, is sequentially arranged with other characteristic codes existing within an arbitrary allowable range. 2. The wiring pattern inspection apparatus according to claim 1, wherein the characteristic code string is concatenated to generate a characteristic code string, and the characteristic code string from the characteristic code storage unit previously generated on the non-defective board is compared and judged in code string units.
【請求項4】 第2の比較判定手段において、特定形状
検出手段からの特徴点の座標と方向コードの変化を表す
コードからなる特徴コードを任意の許容範囲内に存在す
る他の特徴コードと順次連結して第1の特徴コード列を
生成し、予め良品基板で生成した特徴コード記憶手段か
らの第2の特徴コード列とをコード列単位で比較判定す
る際に、第1、第2の両者のコード列の特徴コードを順
次類似性で比較し、欠落特徴コードを補間し、欠落特徴
コードが互いの特徴コードの下位桁と上位桁が入れ替わ
った組み合わせのコードを持ち、なおかつ互いが任意の
許容範囲内に存在するコード列であるペアコード列なら
照合し、それ以外は欠陥と判定処理することを特徴とす
請求項3記載の配線パターン検査装置。
4. The second comparison / determination means includes a characteristic code, which is a code indicating a change in the coordinates of the characteristic point and the direction code from the specific shape detection means, in sequence with other characteristic codes existing within an arbitrary allowable range. When the first feature code string is concatenated to generate the first feature code string and the second feature code string from the feature code storage means previously generated on the non-defective board is compared and judged in code string units, both the first and second The feature codes of the code strings are compared in order of similarity, the missing feature codes are interpolated, and the missing feature codes replace the lower digit and the upper digit of each other.
Have different combinations of codes, and
If it is a pair code string that is a code string existing within the allowable range
The wiring pattern inspection apparatus according to claim 3 , wherein the wiring pattern inspection apparatus performs collation , and otherwise determines the defect.
【請求項5】 第2の比較判定手段において、特定形状
検出手段からの特徴点の座標と方向コードの変化を表す
コードからなる特徴コードを任意の許容範囲内に存在す
る他の特徴コードと順次連結して第1の特徴コード列を
生成し、予め良品基板で生成した特徴コード記憶手段か
らの第2の特徴コード列とをコード列単位で比較判定
し、不一致になった特徴コード列にショート、断線、欠
け、突起等を示すの特定の基本コード列の要素が含まれ
ているかを検査し、欠陥の種類を判定することを特徴と
する請求項3または4記載の配線パターン検査装置。
5. A second comparison / determination means, in which a characteristic code consisting of a code indicating a change in the coordinate of the characteristic point and the direction code from the specific shape detection means is sequentially arranged with another characteristic code existing within an arbitrary allowable range. The first characteristic code string is concatenated to generate the first characteristic code string, and the second characteristic code string from the characteristic code storage means generated in advance on the non-defective board is compared and judged for each code string, and the mismatched characteristic code string is short-circuited. 5. The wiring pattern inspection apparatus according to claim 3 , wherein the type of the defect is determined by inspecting whether an element of a specific basic code string indicating a break, a break, a protrusion, or the like is included.
【請求項6】 第2の比較判定手段において、特定形状
検出手段からの特徴点の座標と方向コードの変化を表す
コードからなる特徴コードを任意の許容範囲内に存在す
る他の特徴コードと順次連結して第1の特徴コード列を
生成し、予め良品基板で生成した特徴コード記憶手段か
らの第2の特徴コード列とをコード列単位で比較判定
し、不一致になった特徴コード列にショート、断線、欠
け、突起等を示すの特定の基本コード列の要素が含まれ
ているかを検査し、欠陥の種類を判定した後に、欠けお
よび突起については特徴コード列から欠陥面積を演算し
予め設定した大きさの欠陥のみ検出することを特徴とす
請求項3から5のいずれかに記載の配線パターン検査
装置。
6. The second comparison / determination means, in which the characteristic code, which is a code indicating the change in the coordinate of the characteristic point and the direction code from the specific shape detection means, is sequentially arranged with other characteristic codes existing within an arbitrary allowable range. The first characteristic code string is concatenated to generate the first characteristic code string, and the second characteristic code string from the characteristic code storage means generated in advance on the non-defective board is compared and judged for each code string, and the mismatched characteristic code string is short-circuited. , It is checked whether the element of a specific basic code string indicating disconnection, chipping, protrusion, etc. is included, and after determining the type of defect, the defect area is calculated from the characteristic code string for chipping and protrusion, and preset 6. The wiring pattern inspection apparatus according to claim 3, wherein only a defect having a specified size is detected.
【請求項7】 第2の比較判定手段において、特定形状
検出手段からの特徴点の座標と方向コードの変化を表す
コードからなる特徴コードを任意の許容範囲内に存在す
る他の特徴コードと順次連結して特徴コード列を生成
し、予め良品基板で生成した特徴コード記憶手段からの
特徴コード列とをコード列単位で比較判定する際に、不
一致となった特徴コード列に量子化誤差等により発生し
たペアコード列が含まれている場合は欠陥としないこと
を特徴とする請求項1から6のいずれかに記載の配線パ
ターン検査装置。
7. The second comparison / determination means, in which the characteristic code, which is a code indicating the change in the coordinates of the characteristic point and the direction code from the specific shape detection means, is sequentially arranged with other characteristic codes existing within an arbitrary allowable range. When a characteristic code string is concatenated to generate a characteristic code string and the characteristic code string from the characteristic code storage means generated in advance on a non-defective board is compared and judged on a code string unit basis, the mismatched characteristic code string may have a quantization error or the like. 7. The wiring pattern inspection device according to claim 1, wherein when the generated pair code string is included, it is not considered as a defect.
【請求項8】 特定形状検出手段において、画像の輪郭
位置にエッジの方向を表す方向コードを与える方向コー
ド付与手段と、注目画素に連結している2つの輪郭画素
の方向コードが互いに同一コードであり、かつ前記注目
画素の方向コードが前記2つの輪郭画素の方向コードと
異なる場合に、前記注目画素の方向コードを付け変える
方向コード変換手段と、方向コードの変化する点を特徴
点として前記特徴点の座標と前記特徴点の方向コードの
変化を表す特徴コードを抽出する特徴抽出手段備えたこ
とを特徴とする請求項1記載の配線パターン検査装置。
8. In the specific shape detecting means, the direction code assigning means for giving a direction code indicating an edge direction to the contour position of the image and the direction code of two contour pixels connected to the target pixel are the same code. If the direction code of the target pixel is different from the direction codes of the two contour pixels, the direction code conversion means for changing the direction code of the target pixel and the point where the direction code changes are the characteristic points. The wiring pattern inspection apparatus according to claim 1, further comprising a feature extraction unit that extracts a feature code that represents a change in a point coordinate and a direction code of the feature point.
【請求項9】 プリント基板から得た2値画像に対し、
線幅や線間隔を測定し設計ルールに定められた基準に違
反する位置とその種類を特徴情報として検出し、予め良
品基板を用いて求めた特徴情報と比較し、真の欠陥のみ
を検出するデザインルール検査と、前記2値画像に対
し、画像の輪郭位置にエッジの方向を表す方向コードを
与え、方向コードの変化する点を特徴点として検出し、
前記特徴点の座標と方向コードの変化を表すコードから
なる特徴コードを検出し、予め良品基板を用いて求めた
特徴コードと比較し、真の欠陥のみを検出する特定形状
検査とを併用することを特徴とする配線パターン検査方
法。
9. A binary image obtained from a printed circuit board,
The line width and line spacing are measured, and the position and its type that violate the criteria set in the design rules are detected as feature information, and compared with the feature information obtained in advance using a non-defective substrate, and only true defects are detected. Design rule inspection, and for the binary image, a direction code indicating the direction of the edge is added to the contour position of the image.
Given the points where the direction code changes, as feature points,
From the code that represents the change in the coordinates and direction code of the feature point
The wiring pattern inspection method is characterized in that: a specific shape inspection that detects only a true defect is performed in combination with the characteristic code that is obtained by using a non-defective substrate in advance.
【請求項10】 特定形状検査は、検出された特徴コー
ドを任意の許容範囲内に存在する他の特徴コードと順次
連結して特徴コード列を生成し、予め良品基板で生成し
た特徴コード列とをコード列単位で比較判定することを
特徴とする請求項9記載の配線パターン検査方法。
10. In the specific shape inspection, the detected feature code is sequentially connected with other feature codes existing in an arbitrary allowable range to generate a feature code string, and a feature code string previously generated on a non-defective board is used. 10. The wiring pattern inspecting method according to claim 9 , wherein the judgment is made in units of code strings.
【請求項11】 プリント基板から得た2値画像に対
し、画像の輪郭位置にエッジの方向を表す方向コードを
与え、方向コードの変化する点を特徴点として検出し、
前記特徴点の座標と方向コードの変化を表すコードから
なる特徴コードを検出する特定形状検出手段と、予め良
品基板を用いて特定形状検出手段からの特徴コードを記
憶する特徴コード記憶手段と、前記特定形状検出手段に
より検出された特徴コードと、前記特徴コード記憶手段
からの特徴コードとを比較し真の欠陥のみを検出する比
較判定手段とを備えた配線パターン検査装置
11. A binary image obtained from a printed circuit board.
Then, add the direction code that represents the direction of the edge to the outline position of the image.
Given the points where the direction code changes, as feature points,
From the code that represents the change in the coordinates and direction code of the feature point
Specific shape detecting means for detecting the feature code
The feature code from the specific shape detection means is recorded using the product board.
The characteristic code storage means to be remembered and the specific shape detection means
Feature code detected by the feature code storage means
The ratio that compares only the feature code from
A wiring pattern inspection device having a comparison and determination means .
【請求項12】 プリント基板から得た2値画像に対
し、画像の輪郭位置にエッジの方向を表す方向コードを
与え、方向コードの変化する点を特徴点として検出し、
前記特徴点の座標と方向コードの変化を表すコードから
なる特徴コードを検出し、予め良品基板を用いて求めた
特徴コードと比較し、真の欠陥のみを検出 する特定形状
検査とを備えたことを特徴とする配線パターン検査方
12. A binary image obtained from a printed circuit board
Then, add the direction code that represents the direction of the edge to the outline position of the image.
Given the points where the direction code changes, as feature points,
From the code that represents the change in the coordinates and direction code of the feature point
The following characteristic codes are detected and obtained in advance using a non-defective board.
Specific shape to detect only true defects by comparing with feature code
Wiring pattern inspection method characterized by having an inspection
Law .
JP32850093A 1993-02-03 1993-12-24 Wiring pattern inspection apparatus and method Expired - Fee Related JP3368644B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP32850093A JP3368644B2 (en) 1993-02-03 1993-12-24 Wiring pattern inspection apparatus and method
US08/305,968 US5608816A (en) 1993-12-24 1994-09-15 Apparatus for inspecting a wiring pattern according to a micro-inspection and a macro-inspection performed in parallel

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP1610893 1993-02-03
JP5-16108 1993-02-03
JP32850093A JP3368644B2 (en) 1993-02-03 1993-12-24 Wiring pattern inspection apparatus and method

Publications (2)

Publication Number Publication Date
JPH06288738A JPH06288738A (en) 1994-10-18
JP3368644B2 true JP3368644B2 (en) 2003-01-20

Family

ID=26352361

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32850093A Expired - Fee Related JP3368644B2 (en) 1993-02-03 1993-12-24 Wiring pattern inspection apparatus and method

Country Status (1)

Country Link
JP (1) JP3368644B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1230660C (en) * 2000-09-22 2005-12-07 沃思测量技术股份有限公司 Method for measuring the geometry of an object by means of a co-ordination measuring device
JP2002096018A (en) * 2000-09-22 2002-04-02 Daihatsu Motor Co Ltd Method of inspecting coating crack and method of measuring width of coating crack
KR100833740B1 (en) * 2001-12-22 2008-05-29 삼성에스디아이 주식회사 A Method for Detecting the Defects by Pattern Outline
TWI435092B (en) * 2012-02-17 2014-04-21 Wistron Corp Method and system for detecting circuit
JP2016201006A (en) * 2015-04-13 2016-12-01 富士通セミコンダクター株式会社 Layout pattern extraction method, layout pattern extraction apparatus, and program
JP7280068B2 (en) * 2019-03-12 2023-05-23 株式会社Screenホールディングス Inspection device and inspection method
CN113781420A (en) * 2021-08-31 2021-12-10 深圳市卓兴半导体科技有限公司 Scanning detection method and system for solid leakage in solid crystal process and storage medium
CN114324405B (en) * 2021-12-29 2022-11-08 安徽中科锟铻量子工业互联网有限公司 Data labeling system based on film detection

Also Published As

Publication number Publication date
JPH06288738A (en) 1994-10-18

Similar Documents

Publication Publication Date Title
US4893346A (en) Apparatus for automatically inspecting objects and identifying or recognizing known and unknown portions thereof, including defects and the like, and method
US5608816A (en) Apparatus for inspecting a wiring pattern according to a micro-inspection and a macro-inspection performed in parallel
KR940006220B1 (en) Method of and apparatus for inspectiong pattern on printed circuit board
JP3368644B2 (en) Wiring pattern inspection apparatus and method
JPH05209844A (en) Inspecting apparatus of wiring pattern
JP2768344B2 (en) Pattern inspection apparatus and inspection method thereof
JP3309530B2 (en) Wiring pattern inspection equipment
JP2710527B2 (en) Inspection equipment for periodic patterns
JPH06109446A (en) Inspection apparatus for wiring pattern
JP2737484B2 (en) Wiring pattern inspection equipment
JP2502854B2 (en) Wiring pattern inspection device
JP2002277409A (en) Inspection device for pattern of printed board
JPS6186638A (en) Pattern-defect detecting method
JP3106370B2 (en) Defect detection and type recognition of printed circuit boards using graph information
TWI786894B (en) Detection method
JP2819905B2 (en) Wiring pattern inspection equipment
JP2794924B2 (en) Wiring pattern inspection equipment
JP2523989B2 (en) Wiring pattern inspection device
JP2676990B2 (en) Wiring pattern inspection equipment
JPH10170449A (en) Method for inspecting wiring pattern and apparatus therefor
JP3210713B2 (en) Geometric pattern inspection method and apparatus using contraction, expansion and processing of an imaging pattern for identification of predetermined features and tolerances
JPH03252546A (en) Wiring pattern inspection device
JP2737467B2 (en) Wiring pattern inspection equipment
JP3199175B2 (en) Stamped character inspection method and device
JPH04138345A (en) Wiring-pattern inspecting apparatus

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071115

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081115

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091115

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091115

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101115

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111115

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees