JPH02297047A - Pattern inspecting method for printed board - Google Patents

Pattern inspecting method for printed board

Info

Publication number
JPH02297047A
JPH02297047A JP1119056A JP11905689A JPH02297047A JP H02297047 A JPH02297047 A JP H02297047A JP 1119056 A JP1119056 A JP 1119056A JP 11905689 A JP11905689 A JP 11905689A JP H02297047 A JPH02297047 A JP H02297047A
Authority
JP
Japan
Prior art keywords
image
hole
pattern
center
enlarged
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1119056A
Other languages
Japanese (ja)
Inventor
Ryuji Kitakado
龍治 北門
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.)
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Dainippon Screen Manufacturing 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 Dainippon Screen Manufacturing Co Ltd filed Critical Dainippon Screen Manufacturing Co Ltd
Priority to JP1119056A priority Critical patent/JPH02297047A/en
Priority to US07/500,294 priority patent/US5027417A/en
Priority to EP90105916A priority patent/EP0390110B1/en
Priority to DE69032459T priority patent/DE69032459T2/en
Priority to KR1019900004291A priority patent/KR920008287B1/en
Publication of JPH02297047A publication Critical patent/JPH02297047A/en
Priority to US07/674,547 priority patent/US5150422A/en
Priority to US07/674,546 priority patent/US5144681A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate an effect caused by looseness or inclination in the edge of a through hole by expanding at least one of a pattern image and a hole image and obtaining an area where both images are superposed. CONSTITUTION:There is comparatively a little reflected light in a base B, where a signal at a level between threshold TH1 and threshold TH2(TH1<TH2) is generated. Since a land R is formed of metal such as copper, etc., there is much reflected light in this part, where a signal at a level equal to or above the threshold TH2 is generated. The signal at the same level is generated in a wiring pattern. There is little reflected light in the through hole H, where the signal at the level equal or below the threshold TH1 is generated. Usually, the edge E formed at the time of drilling exists between the through hole H and the land R. The looseness or the inclination exists in this part, where the level of the reflected light does not become a certain value particularly but is nearly between the threshold TH1 and the threshold TH2.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、プリント基板のパターン検査方法、特に配
線パターンとスルーホール(ミニバイアホールを含む)
との相対的な位置ズレの良否を判定する検査方法に関す
る。
[Detailed Description of the Invention] [Industrial Application Field] This invention relates to a method for inspecting patterns of printed circuit boards, particularly wiring patterns and through holes (including mini-via holes).
This invention relates to an inspection method for determining the quality of relative positional deviation.

〔従来の技術〕[Conventional technology]

電子部品の小形軽量化、高性能化に伴なって、プリント
基板回路のパターンも微細化、高密度化が進んでおり、
パターンの細線化、スルーホールの小径化が要求されて
いる。特に、多層基板の導通用スルーホールとしては、
過去の0.8關径から、さらに小径化された0、5mm
〜0.1關径のミニバイアホールと呼ばれるスルーホー
ルが、現在用いられている。
As electronic components become smaller, lighter, and more sophisticated, printed circuit board circuit patterns are also becoming smaller and more dense.
There is a demand for thinner patterns and smaller diameter through holes. In particular, as a through hole for conduction in a multilayer board,
0.5mm diameter is even smaller than the previous 0.8mm diameter
A through hole called a mini-via hole with a diameter of ~0.1 is currently used.

スルーホールの小径化に伴い、スルーホールのメツキ技
術、ドリル加工、信頼性検査などの各方面において新し
い技術が望まれる。
As through-holes become smaller in diameter, new technologies are needed in various areas such as through-hole plating, drilling, and reliability testing.

一般に、ドリル加工は、フォトエツチングプロセスに比
べて精度が悪く、スルーホールがパターンからずれるこ
とが多い。0.81径程度のスルーホールにおいては、
その周囲に充分大きなランドが設けられており、スルー
ホールの多少の位置ずれが起きても、基板の電気的信頼
性への影響は軽微であった。
Drilling is generally less precise than photoetching processes, and through holes often deviate from the pattern. For through holes with a diameter of about 0.81,
A sufficiently large land was provided around it, so even if the through hole was slightly misaligned, the effect on the electrical reliability of the board was minimal.

しかし、スルーホールの小径化が進むと、ランドも小さ
くなり、ドリル加工において、ランド内に確実にスルー
ホール用の穴を設ける精度が保証されなくなってきた。
However, as the diameter of through-holes has become smaller, lands have also become smaller, and the accuracy of drilling holes for through-holes in lands can no longer be guaranteed.

そのため、穴の位置ずれによるプリント基板の電気的信
頼性の低下が問題となり、スルーホールの穴の位置ずれ
検査の重要性が増大する。
Therefore, a decrease in the electrical reliability of the printed circuit board due to the misalignment of the holes becomes a problem, and the importance of inspecting the misalignment of the through-holes increases.

穴の位置ずれ検査においては、電気式検査および外観検
査の両面からのアプローチが必要となる。
Inspecting hole misalignment requires approaches from both electrical inspection and visual inspection.

外観検査においては、メツキのクラックからの漏洩光を
検出する方式の検査機が知られているが、基板の高多層
化が進むにつれて、様々な課題が指摘されている。また
、スルーホールとパターンとの相対的な位置ずれによっ
て生じるパターン切れの検査に対しては、適用できない
In visual inspection, inspection machines that detect light leaking from cracks in plating are known, but as boards become more multi-layered, various problems have been pointed out. Further, it cannot be applied to inspection of pattern breakage caused by relative positional deviation between a through hole and a pattern.

第16A図、第16B図は、ランドRとスルーホールH
との相対的位置関係を示す図である。第16A図におい
て、ランドRの中心にスルーホールHの中心0が一致し
ており、良好なパターンとなっている。第16B図にお
いては、ランドRの中心とスルーホールHの中心Oがず
れており、スルーホールHの一部が、ランドRの外側に
突出している。この突出部分の大きさは開口角θによっ
て求められる。開口角θが所定の基準より大きい時には
、そのパターン切れは不良と判定される。
Figures 16A and 16B show land R and through hole H.
It is a figure showing the relative positional relationship with. In FIG. 16A, the center 0 of the through hole H coincides with the center of the land R, resulting in a good pattern. In FIG. 16B, the center of the land R and the center O of the through hole H are shifted from each other, and a portion of the through hole H protrudes to the outside of the land R. The size of this protruding portion is determined by the aperture angle θ. When the aperture angle θ is larger than a predetermined standard, the pattern breakage is determined to be defective.

第17A図、第17B図は、配線パターンの直線部PL
とスルーホールHとの相対的位置関係を示す図である。
Figures 17A and 17B show the straight line portion PL of the wiring pattern.
3 is a diagram showing the relative positional relationship between the through hole H and the through hole H. FIG.

第17A図において直線部PLの中心線CL上にスルー
ホールの中心0が配置されており、良好なパターンとな
っている。第17B図においては、中心線CLと中心O
がずれており、スルーホールHの一部が直線部PLの外
側に突出している。この突出部分の大きさは、やはり開
口角θによって求められ、開口角θが所定の基準より大
きい時には、そのパターン切れは不良と判定される。
In FIG. 17A, the center 0 of the through hole is located on the center line CL of the straight portion PL, resulting in a good pattern. In FIG. 17B, the center line CL and the center O
is shifted, and a portion of the through hole H protrudes outside the straight portion PL. The size of this protruding portion is also determined by the aperture angle θ, and when the aperture angle θ is larger than a predetermined standard, the pattern breakage is determined to be defective.

以上のように、開口角θを求めることによって、パター
ン切れの良否を判定することができるが、従来の多くの
検査においては、拡大レンズ等を使用した目視によって
この判定を行っていた。
As described above, the quality of pattern breakage can be determined by determining the aperture angle θ, but in many conventional inspections, this determination has been made by visual inspection using a magnifying lens or the like.

また、判定の自動化を意図する際には、スルーホールや
配線パターンのイメージを正確に読み取る必要があるが
、スルーホールHの開口縁部には光学的反射特性が一定
でない、がたつきゃ、傾斜部が存在しており、スルーホ
ールやランドのイメージを正確に2値化することが困難
であった。
In addition, when aiming to automate the judgment, it is necessary to accurately read the image of the through hole or wiring pattern, but the opening edge of the through hole H has uneven optical reflection characteristics, wobbles, slopes, etc. This makes it difficult to accurately binarize images of through holes and lands.

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

以上のように、従来のプリント基板のパターン検査方法
においては、人間の目視に頼るため、検査者の主観によ
る判定基準の不統一や、検査能率が悪いという問題点が
あった。
As described above, the conventional printed circuit board pattern inspection method relies on human visual inspection, which has the problems of inconsistent judgment criteria depending on the subjectivity of the inspector and poor inspection efficiency.

また、検査の自動化を意図する技術においては、スルー
ホールの開口縁部の2値化が困難であり、正確な開口角
判定が困難であるという問題点があった。
Further, in the technology intended to automate inspection, there is a problem in that it is difficult to binarize the opening edge of a through hole, and it is difficult to accurately determine the opening angle.

〔発明の目的〕[Purpose of the invention]

この発明は、以上のような事情を考慮してなされたもの
であり、プリント基板のパターンの検査の自動化を可能
にするとともに、正確な開口角判定が行えるプリント基
板のパターン検査方法を得ることを目的とする。
The present invention has been made in consideration of the above circumstances, and aims to provide a printed circuit board pattern inspection method that enables automation of printed circuit board pattern inspection and accurate aperture angle determination. purpose.

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

この発明に係る第1の構成のプリント基板のパターン検
査方法は、プリント基板を光電走査して、画素ごとに読
取った画像データに基づいて、プリント基板上の配線パ
ターンとスルーホールとの間の相対的位置関係を判定す
る、プリント基板のパターン検査方法であって、まず、
読取った画像データに基づいて、配線パターンを示すパ
ターンイメージと、スルーホールを示すホールイメージ
とを求める。
A pattern inspection method for a printed circuit board having a first configuration according to the present invention photoelectrically scans the printed circuit board and detects the relative relationship between the wiring pattern and the through hole on the printed circuit board based on image data read for each pixel. A printed circuit board pattern inspection method for determining the positional relationship of
Based on the read image data, a pattern image showing the wiring pattern and a hole image showing the through hole are obtained.

次に、パターンイメージおよびホールイメージの少なく
とも一方に拡大処理を施して、対応する拡大パターンイ
メージおよび拡大ホールイメージの少なくとも一方を求
める。
Next, at least one of the pattern image and the hole image is subjected to an enlargement process to obtain at least one of the corresponding enlarged pattern image and enlarged hole image.

この拡大処理に対応する、拡大パターンイメージと拡大
ホールイメージとの間、拡大パターンイメージとホール
イメージとの間、およびパターンイメージと拡大ホール
イメージとの間のいずれか1つのイメージ相互間の空間
的関係に基づいて、イメージ間の重なり領域を求める。
A spatial relationship between any one of the enlarged pattern image and the enlarged hole image, between the enlarged pattern image and the hole image, and between the pattern image and the enlarged hole image, corresponding to this enlargement process. Find the overlapping area between images based on .

さらに、重なり領域の重心位置を示す第1位置と、ホー
ルイメージあるいは拡大ホールイメージの中心位置また
は重心位置を示す第2位置とを求める。
Furthermore, a first position indicating the position of the center of gravity of the overlapping region and a second position indicating the center position or the position of the center of gravity of the hole image or enlarged hole image are determined.

そして、第1位置と第2位置との間のずれ量を求め、そ
のずれ量と所定の基準距離とを比較して、相対的位置関
係を判定するものである。
Then, the amount of deviation between the first position and the second position is determined, and the amount of deviation is compared with a predetermined reference distance to determine the relative positional relationship.

また、この発明に係る第2の構成のプリント基板のパ・
ターン検査方法は、ホールイメージに第1の拡大処理を
施して第1の拡大ホールイメージを求め、ホールイメー
ジに第1の拡大処理とは拡大率の異なる第2の拡大処理
を施して第2の拡大ホールイメージを求める。
Moreover, the pattern of the printed circuit board of the second configuration according to the present invention is
The turn inspection method performs a first enlargement process on a hole image to obtain a first enlarged hole image, and performs a second enlargement process on the hole image with a different enlargement rate from the first enlargement process to obtain a second enlarged hole image. Seeking an enlarged hole image.

そして、第1の拡大ホールイメージと第2の拡大ホール
イメージとの差分に相当するリング状のイメージを求め
、拡大パターンイメージとリング状のイメージとの間の
重なり領域を求めるものである。
Then, a ring-shaped image corresponding to the difference between the first enlarged hole image and the second enlarged hole image is obtained, and an overlapping area between the enlarged pattern image and the ring-shaped image is obtained.

〔作用〕[Effect]

この発明における重なり領域は、パターンイメージおよ
びホールイメージの少なくとも一方に拡大処理を施して
、対応する拡大パターンイメージおよび拡大ホールイメ
ージの少なくとも一方を求めた後、その拡大処理に対応
する、拡大パターンイメージと拡大ホールイメージとの
間、拡大パターンイメージとホールイメージとの間、お
よびパターンイメージと拡大ホールイメージとの間のい
ずれか1つのイメージ相互間の空間的関係に基づいて、
求められるので、重なり領域の第1位置とホールイメー
ジまたは拡大ホールイメージの一方の第2位置との間の
ずれ量を求め、所定の基準距離と比較することにより、
配線パターンとスルーホールとの間の相対的位置関係が
把握される。
In the present invention, the overlapping area is formed by performing an enlargement process on at least one of a pattern image and a hole image to obtain at least one of the corresponding enlarged pattern image and enlarged hole image, and then forming an enlarged pattern image corresponding to the enlargement process. Based on the spatial relationship between any one of the enlarged hole image, the enlarged pattern image and the hole image, and the pattern image and the enlarged hole image,
Therefore, by finding the amount of deviation between the first position of the overlapping region and the second position of either the hole image or the enlarged hole image, and comparing it with a predetermined reference distance,
The relative positional relationship between the wiring pattern and the through hole is grasped.

なお、以下の説明においては、便宜的に、第1位置を重
心座標、第2位置を中心座標と称する。
In the following description, for convenience, the first position will be referred to as barycenter coordinates, and the second position will be referred to as center coordinates.

〔実施例〕〔Example〕

A、全体構成と概略動作 第2図は、この発明の一実施例を適用するパターン検査
装置の全体構成を示すブロック図である。
A. Overall configuration and general operation FIG. 2 is a block diagram showing the overall configuration of a pattern inspection apparatus to which an embodiment of the present invention is applied.

ステージ10上には、検査対象となるプリント基板】1
が配置される。プリント基板11は、ライン方向Xごと
に、そのイメージを読取装置20によって読みとられな
がら、搬送方向Yに送られる。読取装置20は、数千素
子を有するCOD複数個をライン方向Xに直列配列した
ものであり、画素ごとにプリント基板11のパターンを
読み取る。読み取られた画像データは、2値化回路21
a、21.bに送られる。2値化回路21aは、後述す
るホールイメージ原信号H1soを生成し、2値化回路
21bは後述するパターンイメージ原信号PIS  を
生成する。信号H1s  、PIS0は共に、スルーホ
ール検査回路30に入力される。
On the stage 10 is a printed circuit board to be inspected]1
is placed. The printed circuit board 11 is conveyed in the transport direction Y while its image is read by the reading device 20 in each line direction X. The reading device 20 has a plurality of CODs each having several thousand elements arranged in series in the line direction X, and reads the pattern of the printed circuit board 11 pixel by pixel. The read image data is sent to the binarization circuit 21
a, 21. sent to b. The binarization circuit 21a generates a hole image original signal H1so, which will be described later, and the binarization circuit 21b generates a pattern image original signal PIS, which will be described later. Both signals H1s and PIS0 are input to the through-hole inspection circuit 30.

スルーホール検査回路30は、後述する機能を有し、ス
ルーホールと配線パターン(ランドを含む)との相対的
位置関係を検査し、その結果を中央演算装置(MPUま
たはCPU)50に与える。
The through-hole inspection circuit 30 has a function described later, inspects the relative positional relationship between the through-hole and the wiring pattern (including lands), and provides the result to the central processing unit (MPU or CPU) 50.

MPU50は、制御系51を介して、装置全体を制御す
る。制御系51は、スルーホール検査回路30において
得られたデータのアドレスを特定するためのX−Yアド
レスなどを生成する。また、このX−Yアドレスをステ
ージ駆動系52にも与えて、ステージ10の搬送機構を
制御する。
The MPU 50 controls the entire device via a control system 51. The control system 51 generates an XY address and the like for specifying the address of data obtained in the through-hole inspection circuit 30. The XY address is also given to the stage drive system 52 to control the transport mechanism of the stage 10.

CRT60は、MPU50からの指令を受けて、各種の
演算結果、例えばホールイメージなどを表示する。キー
ボード70は、MPU50に対して種々の命令を入力す
るために用いられる。
The CRT 60 receives instructions from the MPU 50 and displays various calculation results, such as a hole image. The keyboard 70 is used to input various commands to the MPU 50.

オプション部80には、欠陥確認装置81.欠陥品除去
装置82および欠陥位置マーキング装置83などが配置
される。欠陥確認装置81は、検出された欠陥を、例え
ばCRT上に拡大して表示するための装置である。また
、欠陥品除去装置82は、欠陥を有するプリント基板1
1−を検出したら、そのプリント基板11を不良品用ト
レーなどに搬送するための装置である。また、欠陥位置
マーキング装置83は、プリント基板〕1上の欠陥部分
に直接、または、その部分に該当するシート上の点にマ
ーキングを行うための装置である。これらの装置は必要
に応じて取り付けられる。
The option section 80 includes a defect confirmation device 81. A defective product removing device 82, a defective position marking device 83, and the like are arranged. The defect confirmation device 81 is a device for enlarging and displaying a detected defect on, for example, a CRT. Moreover, the defective product removal device 82 removes the defective printed circuit board 1.
1- is detected, the device transports the printed circuit board 11 to a tray for defective products or the like. The defect position marking device 83 is a device for directly marking a defective portion on the printed circuit board 1 or at a point on the sheet corresponding to the defective portion. These devices are installed as needed.

B、読取り光学系 第3図は、第2図に示すステージ10.プリント基板1
1および読取装置20などによって構成される読取り光
学系の一例を示す図である。
B. Reading optical system FIG. 3 shows the stage 10. shown in FIG. Printed circuit board 1
1 is a diagram illustrating an example of a reading optical system configured by a reading device 1, a reading device 20, and the like.

第3図において、光源22からの光は、ハーフミラ−2
3で反射されてステージ10上のプリント基板11上に
照射される。プリント基板11上には、下地となるベー
スB、配線パターンP、スルーホールHおよびそのまわ
りのランドRが存在する。プリント基板11からの反射
光はハーフミラ−23を通過し、さらにレンズ25を介
して、読取装置20内に設けられたCCD24に入射さ
れる。CCD24は、搬送方向Yに送られるプリント基
板11上のベースB、配線パターンP、スルーホールH
,ランドRなどからの反射光を線順次に読取っていく。
In FIG. 3, the light from the light source 22 is transmitted to the half mirror 2.
3 and is irradiated onto the printed circuit board 11 on the stage 10. On the printed circuit board 11, there are a base B serving as a base, a wiring pattern P, a through hole H, and a land R around it. The reflected light from the printed circuit board 11 passes through the half mirror 23, and further enters the CCD 24 provided in the reading device 20 via the lens 25. The CCD 24 is connected to the base B, the wiring pattern P, and the through hole H on the printed circuit board 11 that is sent in the transport direction Y.
, the reflected light from lands R, etc. are read line by line.

第4A図は第3図のA−A’線において読み取られた信
号波形を示すグラフであり、第4B図は第3図の装置に
よって読取られたA−A’線付近の信号波形を合成して
得られるパターンの一例を示す図である。
Fig. 4A is a graph showing the signal waveform read on the line A-A' in Fig. 3, and Fig. 4B is a graph showing the signal waveform near the line A-A' read by the device in Fig. FIG. 3 is a diagram showing an example of a pattern obtained by

第4A図に示すように、ベースBにおいては反射光は比
較的少く、閾値THI、TH2(THI<TH2)の間
のレベルの信号が生成される。ランドRは、銅などの金
属によって形成されているので、この部分での反射光は
多く、閾値TH2以上のレベルの信号が生成される。な
お、配線パターンPにおいても、同じレベルの信号が生
成される。また、スルーホールHにおいては、反射光は
ほとんど無く、閾値THI以下のレベルの信号が生成さ
れる。さらに、通常スルーホールHとランドRとの間に
は、穴あけ時に形成されるエツジ(E口縁部)Eが存在
する。この部分にはガタつきや傾斜が存在し、この部分
での反射光レベルは、特に一定の値を取らないが、はぼ
閾値THIと閾値TH2との間にある。
As shown in FIG. 4A, there is relatively little reflected light at the base B, and a signal having a level between the threshold values THI and TH2 (THI<TH2) is generated. Since the land R is formed of metal such as copper, a lot of light is reflected at this portion, and a signal having a level equal to or higher than the threshold value TH2 is generated. Note that a signal of the same level is generated in the wiring pattern P as well. Furthermore, in the through hole H, there is almost no reflected light, and a signal with a level below the threshold value THI is generated. Furthermore, between the through hole H and the land R, there is usually an edge (E mouth edge) E formed during drilling. There are wobbles and inclinations in this part, and the reflected light level in this part does not take a particularly constant value, but is approximately between the threshold value THI and the threshold value TH2.

第4B図は、以上のようにして、読み取られたA−A’
線付近のパターンを示す図である。読取装置20からの
信号は、2値化回路21a、21bにおいて、例えば閾
値TH1,TH2をそれぞれ用いて2値化される。2値
化回路21aは、スルーホールHを示すホールイメージ
H1を生成し、2値化回路21bはランドRおよび配線
パターンPを示すパターンイメージPIを生成する。こ
の2つのイメージH1,PIが、後述する処理に必要な
信号として用いられる。ベースB、エツジEは特に2値
化されないが、エツジEは、ランドRとスルーホールH
との間の領域として認識されるので、ランドRとスルー
ホールHとの相対的位置関係を把握する際には、すきま
領域となるエツジEの処理が重要となる。
FIG. 4B shows the A-A′ read as described above.
It is a figure which shows the pattern near a line. The signal from the reading device 20 is binarized in binarization circuits 21a and 21b using, for example, threshold values TH1 and TH2, respectively. The binarization circuit 21a generates a hole image H1 indicating the through hole H, and the binarization circuit 21b generates a pattern image PI indicating the land R and the wiring pattern P. These two images H1 and PI are used as signals necessary for processing to be described later. Base B and edge E are not particularly binarized, but edge E has land R and through hole H.
Therefore, when grasping the relative positional relationship between the land R and the through hole H, processing of the edge E, which is a gap region, is important.

第5図は、読取光学系の他の例を示す図である。FIG. 5 is a diagram showing another example of the reading optical system.

光源22aからの光は、第3図に示す例と同様に、反射
光としてハーフミラ−23およびレンズ25を介して読
取装置20内のCCD24上に照射される。この例にお
いては、さらにステージ10の裏側に光源22bが備え
られており、スルーホールHを通過17た光もCCD2
4上に照射される。
Similar to the example shown in FIG. 3, the light from the light source 22a is irradiated onto the CCD 24 in the reading device 20 as reflected light via the half mirror 23 and the lens 25. In this example, a light source 22b is further provided on the back side of the stage 10, and the light passing through the through hole H is also transmitted to the CCD 2.
4.

従って、スルーホールHにおいて、信号レベルが最も高
く、ランドR1配線パターンPにおいて、信号レベルが
中程度、ベースBおよびエツジEにおいて信号レベルが
比較的低くなる。
Therefore, in the through hole H, the signal level is the highest, in the land R1 wiring pattern P, the signal level is medium, and in the base B and edge E, the signal level is relatively low.

さらに、他の例として、CCD24を2列以上用意し、
光源22aによって、ランドRおよび配線パターンPを
検出し、光源22bによってスルーホールHのみを検出
し、それらのデータを別々に後段の2値化回路に出力す
るように構成してもよい。
Furthermore, as another example, two or more rows of CCD24 are prepared,
The light source 22a may detect the land R and the wiring pattern P, the light source 22b may detect only the through hole H, and the data may be separately output to the subsequent binarization circuit.

C,スルーホール検査回路 第1A図は、第2図に示すスルーホール検査回路30の
内部構成を示すブロック図であり、第1B図は、第1A
図に示す回路で行われるプリント基板のパターン検査方
法の処理手順を示すフローチャートである。
C. Through-hole inspection circuit FIG. 1A is a block diagram showing the internal configuration of the through-hole inspection circuit 30 shown in FIG.
3 is a flowchart showing a processing procedure of a printed circuit board pattern inspection method performed using the circuit shown in the figure.

第2図の2値化回路21a、21bで生成されたホール
イメージ原信号HIS  、パターンイメ−ジ原信号P
ISoは、インターフェース31を介してノイズフィル
タ32a、32bにそれぞれ与えられる。ノイズフィル
タ32a、32bは平滑化処理などを行って、ノイズを
除去し、ホールイメージ信号HIS、パターンイメージ
信号PISをそれぞれ生成する。この処理と前述した2
値化処理とが第1B図のステップSllに対応する。
The hole image original signal HIS and the pattern image original signal P generated by the binarization circuits 21a and 21b in FIG.
ISo is provided to noise filters 32a and 32b via an interface 31, respectively. The noise filters 32a and 32b perform smoothing processing and the like to remove noise and generate a hole image signal HIS and a pattern image signal PIS, respectively. This process and the above 2
The value conversion process corresponds to step Sll in FIG. 1B.

ホールイメージ信号HISは、ホールイメージ拡大ブロ
ック33に与えられる。ホールイメージ拡大ブロック3
3では、第6図に示すように、ホールイメージ信号HI
Sに基づいて元のホールイメージHIを0段拡大した第
2の拡大ホールイメージH1とn−i段拡大した第2の
拡大ホール口 イメージHI   を生成する。なお、n>iであす、
共に正の整数とする。この拡大処理は、例えば1段拡大
するたびに元の拡大部の上下、左右及び斜め方向のそれ
ぞれ1画素を新たな拡大部とする空間フィルタによって
実行される。拡大をくり返すと元のイメージH1の欠陥
部分LPの全体像に占める割合が低下し、図形の形状が
整ったものとなる。この処理は第1B図のステップS1
2に対応する。
The hole image signal HIS is provided to the hole image enlargement block 33. Hole image enlargement block 3
3, as shown in FIG.
A second enlarged hole image H1 obtained by enlarging the original hole image HI by 0 steps and a second enlarged hole mouth image HI obtained by enlarging it by n−i steps are generated based on S. In addition, if n>i, tomorrow,
Both are positive integers. This enlarging process is performed, for example, by a spatial filter that uses one pixel in each of the upper, lower, right, left, and diagonal directions of the original enlarged portion as a new enlarged portion each time the image is enlarged by one step. As enlargement is repeated, the proportion of the defective portion LP of the original image H1 in the overall image decreases, and the shape of the figure becomes more regular. This process is performed in step S1 in FIG. 1B.
Corresponds to 2.

さらに、拡大ホールイメージH1、Hl  。Furthermore, enlarged hole images H1 and Hl.

n          11−1 の相互の差分に基づいて、第6図に示すようにリング状
イメージR1を求める。この処理は、ホールイメージ拡
大ブロック33内の排他的OR回路の入力に、第1およ
び第2の拡大ホールイメージH1,H1を示す信号を入
力することによn    n−1 って実行される。以上のようにして、リング状イメージ
R1を示すリングイメージ信号RISが生成される。第
7図は、リング状イメージR1の形状および2値化済の
信号レベル(L、H)を模式的に示す図である。なお、
段数nおよび減数iはソフト的に設定可能である。また
、この処理は、第1B図のステップ813に対応してい
る。
Based on the mutual difference between n 11-1 , a ring-shaped image R1 is obtained as shown in FIG. This process is performed by inputting signals indicating the first and second enlarged hole images H1 and H1 to the inputs of the exclusive OR circuit in the hole image enlargement block 33. As described above, the ring image signal RIS representing the ring-shaped image R1 is generated. FIG. 7 is a diagram schematically showing the shape of the ring-shaped image R1 and the binarized signal levels (L, H). In addition,
The number of stages n and the subtraction number i can be set by software. This process also corresponds to step 813 in FIG. 1B.

一方、パターンイメージ信号PISは、パターン拡大ブ
ロック34に与えられる。パターン拡大ブロック34で
は、第8図に示すように、パターンイメージ信号PIS
に基づく元のパターンイメージPIをm段拡大した拡大
パターンイメージP■ を生成する。この拡大処理にお
いても同様に、■ パターンイメージPIの欠落部分やがたつきが整形され
る。なお、段数mはソフト的に設定可能な正の整数であ
る。また、この処理は、第1B図のステップS14に対
応している。
On the other hand, the pattern image signal PIS is applied to the pattern enlargement block 34. In the pattern enlargement block 34, as shown in FIG.
An enlarged pattern image P■ is generated by enlarging the original pattern image PI based on m steps. In this enlargement process as well, (1) Missing portions and wobbles in the pattern image PI are corrected. Note that the number of stages m is a positive integer that can be set using software. Further, this process corresponds to step S14 in FIG. 1B.

さらに、ホールイメージ拡大ブロック33から入力され
たリングイメージ信号RISと、拡大パターンイメージ
PI  を示す信号とを、パターンイメージ拡大ブロッ
ク34内のアンド回路に人力して、リング状イメージR
1と拡大パターンイメージPI  との重なり領域に対
応する重なり領域■ イメージ信号WISを生成する。
Furthermore, the ring image signal RIS inputted from the hole image enlarging block 33 and the signal indicating the enlarged pattern image PI are manually inputted to the AND circuit in the pattern image enlarging block 34 to generate a ring-shaped image R.
An overlapping area (2) corresponding to an overlapping area between 1 and the enlarged pattern image PI generates an image signal WIS.

第9図は、正常なスルーホールに対応するこの重なり領
域WRを模式的に示す図である。リング状イメージR1
全体が、拡大パターンイメージPI の中に含まれてお
り、重なり領域WRとリング状イメージR1が一致して
いる。前述した第4B図に示すように、スルーホールH
と、ランドRとの間には、2値化されない領域として工
・ソジEが存在したが、ホールイメージH1の拡大処理
によってエツジEは内側から、パターンイメージPIの
拡大処理によってエツジEは外側からそれぞれ縮退して
いく。拡大段数n−i、mの相互の和を、エツジEの最
大幅に対応した所定段数以上に設定すると、第9図に示
すような拡大イメージにおいてはエツジEが認められず
、代りに重なり領域WRが生成される。なお、この処理
は第1B図のステップ815に対応している。
FIG. 9 is a diagram schematically showing this overlapping region WR corresponding to a normal through hole. Ring-shaped image R1
The entire area is included in the enlarged pattern image PI, and the overlapping region WR and ring-shaped image R1 match. As shown in FIG. 4B mentioned above, the through hole H
and the land R, there existed an area E that was not binarized, but the enlarging process of the hole image H1 caused the edge E to move from the inside, and the enlarging process of the pattern image PI moved the edge E from the outside. Each degenerates from If the mutual sum of the number of enlarged steps n-i and m is set to a predetermined number of steps or more corresponding to the maximum width of the edge E, the edge E will not be recognized in the enlarged image as shown in FIG. 9, but will instead be an overlapping area. A WR is generated. Note that this process corresponds to step 815 in FIG. 1B.

ラインデイレ−38には、ホール拡大ブロック33で生
成された第1の拡大ホールイメージH1゜が入力される
。ラインデイレ−38は、CCDの素子数に対応した画
素数を1ラインとし、例えば第10図に示すようなワー
クエリアWAの上半分48ライン分のデータをストアす
る。このデータは、1ライン分読取りが行われるたびに
、順次更新されていく。また、その中心ラインは、仮想
中心ACとして処理中のエリアを示すアドレスとして用
いられる。ラインデイレ−38は、これらのデータを含
むホール識別信号H8を生成する。
The first enlarged hole image H1° generated by the hole enlargement block 33 is input to the line delay 38. The line delay 38 has one line with the number of pixels corresponding to the number of elements of the CCD, and stores data for 48 lines in the upper half of the work area WA as shown in FIG. 10, for example. This data is sequentially updated each time one line is read. Further, the center line is used as an address indicating the area being processed as the virtual center AC. Line delay 38 generates Hall identification signal H8 containing these data.

中心判定ブロック35は、ホール識別信号H5およびホ
ール拡大ブロック33で生成されたリングイメージ信号
RISを読み取って、仮想中心ACが、実際の拡大ホー
ルイメージH1の中心となる要件を供えているかどうか
の判定を行う。そして、その結果をリング認識信号RA
Sとして重心計算ブロック36に与える。なお、この中
心判定については、後で詳述する。
The center determination block 35 reads the hole identification signal H5 and the ring image signal RIS generated by the hole enlargement block 33, and determines whether the virtual center AC meets the requirements for becoming the center of the actual enlarged hole image H1. I do. Then, the result is sent to the ring recognition signal RA.
It is given to the center of gravity calculation block 36 as S. Note that this center determination will be described in detail later.

また、中心判定ブロック35では、リングイメージ信号
RISを読み取って、仮想中心ACとリング状イメージ
R1との間の2つの交点を求め、さらにその2つの交点
の中点を求めることによって、リング状イメージR1の
中心座標(X、Yl 1)を算出する。この中心座標(X、Yl)は、重心ず
れ判定ブロック37に与えられる。
In addition, the center determination block 35 reads the ring image signal RIS, finds two points of intersection between the virtual center AC and the ring-shaped image R1, and further finds the midpoint of the two intersections, thereby generating a ring-shaped image. Calculate the center coordinates (X, Yl 1) of R1. These center coordinates (X, Yl) are given to the center of gravity shift determination block 37.

また、パターン拡大ブロック34で生成された重なり領
域イメージ信号WISは、重心計算ブロック36に入力
される。重心計算ブロック36は、信号WISに基づい
て、重なり領域WRの重心座標(X、Y)を算出し、前
記リング認識信号RASに同期して、重心ずれ判定ブロ
ック37に与える。この重心座標(X、Y、、)は、重
なり領域WR内の全画素数Nおよび各画素の座標X1゜
Y、を用いて下記式(la) 、 (lb)のように与
えられる。
Further, the overlapping area image signal WIS generated by the pattern enlargement block 34 is input to the center of gravity calculation block 36. The center of gravity calculation block 36 calculates the coordinates (X, Y) of the center of gravity of the overlapping region WR based on the signal WIS, and provides it to the center of gravity shift determination block 37 in synchronization with the ring recognition signal RAS. The center of gravity coordinates (X, Y, . . . ) are given by the following equations (la) and (lb) using the total number of pixels N in the overlapping region WR and the coordinates X1°Y of each pixel.

X −ΣX1/N    ・・・(1a)Y −ΣY、
 /N     ・・・(1b)なお、上記の各座標値
に対する原点は任意に設定できる。また、以上の一連の
処理は、第1B図のステップS16に対応している。
X - ΣX1/N ... (1a) Y - ΣY,
/N (1b) Note that the origin for each of the above coordinate values can be set arbitrarily. Furthermore, the above series of processes corresponds to step S16 in FIG. 1B.

重心ずれ判定ブロック37は、リング状イメージRIの
中心座標(X、Yl)と重なり領域W■ Rの重心座標(X、Y)とを人力され、ホールイメージ
H1と、パターンイメージPIとの相対的位置関係を以
下のように判定する。
The barycenter shift determination block 37 manually determines the center coordinates (X, Yl) of the ring-shaped image RI and the barycenter coordinates (X, Y) of the overlapping region W R, and calculates the relative center coordinates of the hole image H1 and the pattern image PI. The positional relationship is determined as follows.

まず中心座標(X、Y)と重心座標(X2゜そして所定
の判定基準距離りとの大小関係を判定する。例えば位置
関係が良好(OK)か不良(NG)かは、下記式(2a
) 、 (2b)のように示される。
First, the magnitude relationship between the center coordinates (X, Y), the center of gravity coordinates (X2°, and a predetermined judgment reference distance) is determined. For example, whether the positional relationship is good (OK) or bad (NG) can be determined using the following formula (2a
), (2b).

D>d     OK=・(2a) D≦d     NG・・・(2b) 第11図は位置ずれのある場合の重なり領域WRの例を
示す図である。位置ずれが大きいと、拡大パターンイメ
ージPI  の一部が中断し、さらにリング状イメージ
RIの一部が、拡大パターンPI  の外側に突出して
しまう。そのため、ずれ■ 量dが、所定の判定基準圧#Dよりも大きくなり、位置
関係が不良(NG)と判定される。
D>d OK=.(2a) D≦d NG...(2b) FIG. 11 is a diagram showing an example of the overlapping region WR when there is a positional shift. If the positional shift is large, a portion of the enlarged pattern image PI will be interrupted, and furthermore, a portion of the ring-shaped image RI will protrude outside the enlarged pattern PI. Therefore, the deviation amount d becomes larger than the predetermined determination reference pressure #D, and the positional relationship is determined to be poor (NG).

重心ずれ判定ブロック37はこのような良好/不良(O
K/NG)信号を重心ずれ判定信号ASとして出力する
。なお、以上の一連の処理は、第1B図のステップS1
7に対応している。
The center of gravity shift determination block 37 performs such a good/bad (O
K/NG) signal is output as a center of gravity shift determination signal AS. Note that the above series of processing is performed in step S1 in FIG. 1B.
7.

また、実際の回路構成においては、実時間処理を行うた
めに、仮想中心ACによる中心判定を行いつつ、上記の
ような重心ずれ判定を行うので、同一のホールが処理中
の各時刻で異なる複数の中心座標(X、Y)を与えられ
ることがある。
In addition, in the actual circuit configuration, in order to perform real-time processing, the center is determined based on the virtual center AC, and the center of gravity shift determination as described above is also performed. The center coordinates (X, Y) of

■1 また、異なる複数の中心座標(X、Yl)を与■ えられることにより、異なる結果を示す複数の重心ずれ
判定信号ASが与えられる場合がある。それらのデータ
に対しては、重心ずれ判定ブロック37において後で詳
述するラベリング処理を行い、そのホールに対する重心
ずれ判定信号ASを特定する。
(1) Moreover, by being given a plurality of different center coordinates (X, Yl), a plurality of center-of-gravity shift determination signals AS indicating different results may be given. These data are subjected to labeling processing, which will be described in detail later, in the center of gravity shift determination block 37, and a center of gravity shift determination signal AS for that hole is specified.

この判定信号ASは総合欠陥判定ブロック39に入力さ
れる。そこでは、その他の検査例えばスルーホールの穴
づまりを検査する別の検査回路(図示せず)からの欠陥
信号ESをも考慮して、欠陥の種類、程度などの総合的
判定が行われる。
This determination signal AS is input to the comprehensive defect determination block 39. There, a comprehensive determination of the type and degree of the defect is made in consideration of the defect signal ES from another inspection circuit (not shown) that inspects other inspections, such as inspecting clogging of through holes.

その処理結果は、欠陥ストアブロック40を介してイン
ターフェース31に与えられ、さらに図示しないパスラ
インによって外部に読み出される。
The processing result is given to the interface 31 via the defect store block 40, and further read out to the outside by a pass line (not shown).

以上のような一連の処理によって、スルーホールとパタ
ーンとの相対的位置関係が判定される。
Through the series of processes described above, the relative positional relationship between the through hole and the pattern is determined.

D、中心判定およびラベリング処理 灰に、重心ずれ判定の演算結果のアドレスを特定するた
めの処理について説明する。まず、仮想中心が、実際の
中心位置かどうかを判定する中心判定処理について説明
す゛る。この処理は第1A図に示す中心判定ブロック3
5で行われる。
D. Center Determination and Labeling Process Next, a process for specifying the address of the calculation result of center-of-gravity shift determination will be described. First, center determination processing for determining whether the virtual center is the actual center position will be explained. This process is carried out by the center determination block 3 shown in FIG. 1A.
It will be held at 5.

第12A図は、拡大ホールイメージH1と仮想中心AC
および真の中心位置RCとの位置関係を示す図であり、
第12B図は中心判定の算出原理を示す図である。
Figure 12A shows the enlarged hole image H1 and the virtual center AC.
and a diagram showing the positional relationship with the true center position RC,
FIG. 12B is a diagram showing the calculation principle of center determination.

第12A図に示すように、仮想中心ACと中心位置RC
とは、一般的には一致していない。第12B図に示すよ
うに、仮想中心ACと拡大ホールイメージH1との交点
において、仮想中心ACに垂直なラインHLを設け、仮
想中心ACより上側の面積S、と下側の面積S、との差
面積saを求めることにより、仮想中心ACと中心位置
RCとのずれが与えられる。この差面積S は、例えば
その中に含まれる画素数を計数することにより与えられ
る。
As shown in FIG. 12A, the virtual center AC and the center position RC
are not generally agreed upon. As shown in FIG. 12B, a line HL perpendicular to the virtual center AC is provided at the intersection of the virtual center AC and the enlarged hole image H1, and an area S above the virtual center AC and an area S below the virtual center AC are defined. By calculating the difference area sa, the deviation between the virtual center AC and the center position RC is given. This difference area S 2 is given, for example, by counting the number of pixels included therein.

また、第13図に示すように、仮想中心ACと中心位置
RCとの間に1画素以内のずれがあった場合の最小の差
面積の大きさを、以下の判定の基準となる面積Cとする
。中心判定の基準をC>S3とすると、仮想中心ACが
中心位置RCと、はぼ一致する時にのみ中心と判定され
るが、イメージHI  の形状にがたつきがある場合に
は、仮想中心ACと中心位置RCとが一致した時におい
ても、差面積S があまり小さくならず、中心無しとい
う判定がなされる可能性がある。従って、中心判定の基
準を20≧S 程度にし、確実に仮想中心ACの中の一
つが中心と判定されるようにする方がよい。
In addition, as shown in Fig. 13, the size of the minimum difference area when there is a deviation of one pixel or less between the virtual center AC and the center position RC is defined as the area C, which is the basis for the following judgment. do. If the criterion for center determination is C>S3, the center is determined only when the virtual center AC and the center position RC closely match, but if there is wobble in the shape of the image HI, the virtual center AC Even when the center position RC coincides with the center position RC, the difference area S 2 will not become very small, and there is a possibility that it will be determined that there is no center. Therefore, it is better to set the standard for center determination to about 20≧S to ensure that one of the virtual centers AC is determined to be the center.

次に、ラベリング処理について説明する。この処理は第
1A図に示す重心ずれ判定ブロック37で行われる。前
述した中心判定処理を行うと、例えば第14図に示すよ
うに、拡大ホールイメージHI  に対して複数の仮想
中心AC−AC3がn               
            1中心と判定されることがあ
る。仮想中心A Ci〜A Caのそれぞれについて重
心ずれ判定を行うと、前述したように中心座標(X、Y
)が異なるため、重心ずれ判定結果も異なることがある
Next, labeling processing will be explained. This process is performed in the center of gravity shift determination block 37 shown in FIG. 1A. When the center determination process described above is performed, for example, as shown in FIG. 14, a plurality of virtual centers AC-AC3 are n
It may be determined that the center is 1. When determining the center of gravity shift for each of the virtual centers A Ci to A Ca, the center coordinates (X, Y
) are different, the center of gravity shift determination results may also be different.

例えば、実際の中心位置に最も近い仮想中心AC2にお
いて、重心ずれ判定信号ASが良好(OK)となり、他
の仮想中心AC,AC3におい■ て不良(NG)となった場合について説明する。
For example, a case will be described in which the center of gravity shift determination signal AS is good (OK) at the virtual center AC2 closest to the actual center position, and bad (NG) at the other virtual centers AC and AC3.

まず、最終的に必要となるデータは、良好(OK)信号
のみであり、他の不良(NG)信号は、仮想中心AC,
AC3が真の中心位置RCからずれでいるために生成さ
れたものである。また、3つの仮想中心AC−AC3が
、同一のホールイメ一ジHIに関するラインであること
も良好/不良(OK/NG)信号と共にデータ内に示す
必要がある。
First of all, the data that is ultimately required is only the good (OK) signal, and the other bad (NG) signals are the virtual center AC,
This is generated because AC3 is deviated from the true center position RC. It is also necessary to indicate in the data, together with the OK/NG signal, that the three virtual centers AC-AC3 are lines related to the same hole image HI.

まず、仮想中心A Ctが中心と判定されたら、その開
始点Xslと終了点X。1との座標を単純平均して中心
点X。■を求める。この処理は前述した中心座標(x、
y)を求める処理と同様である。
First, when the virtual center A Ct is determined to be the center, its starting point Xsl and ending point X are determined. 1 and the center point X by simply averaging the coordinates. Find ■. This process is performed using the center coordinates (x,
This process is similar to the process for determining y).

次に、仮想中心AC2に移り、その開始点xs2’終了
点X から中心点xc2を求める。この中心点X のX
座標が、点x   x  のX座標の間にあc2   
      sl’  elれば、同一のイメージH1
に関する仮想中心ACであると判定する。そして、中心
点X。2の座標を示すデータを、中心点X。1の座標を
示すデータによって置換する。さらに、仮想中心AC3
の開始点X  終了点X。3とから求められた中心点X
s3’                      
           c3についても同様の処理を行
い、中心点X。■の座標データに置換する。このように
して、イメージH■ に関する仮想中心AC−AC3の
座標デーりは中心点X。■によって代表される。また、
それらの仮想中心AC−AC3についての判定結果(O
K/NG)は、そのうちの一つでも良好(OK)であれ
ば、イメージH1全体として良好(OK)信号を出すよ
うに、後段の回路を構成する。以上のような処理の流れ
を第15図に示す。
Next, moving to the virtual center AC2, the center point xc2 is found from the starting point xs2' and the ending point X. X of this center point
The coordinates are between the X coordinates of point x
If sl' el, the same image H1
It is determined that the virtual center AC is related to the virtual center AC. And the center point X. Data indicating the coordinates of 2 is the center point X. Replace with data indicating the coordinates of 1. Furthermore, virtual center AC3
Starting point X Ending point X. 3 and the center point X found from
s3'
The same process is performed for c3, and the center point X is obtained. Replace with the coordinate data of ■. In this way, the coordinates of the virtual center AC-AC3 regarding the image H■ are the center point X. Represented by ■. Also,
Judgment results for those virtual centers AC-AC3 (O
K/NG), the subsequent circuit is configured so that if even one of them is good (OK), a good (OK) signal is output for the image H1 as a whole. FIG. 15 shows the flow of the above processing.

E、変形例 以上説明した例においては、ホールイメージH■および
パターンイメージPIの両方に拡大処理を施したが、ホ
ールイメージH1およびパターンイメージPIのうち少
なくとも一方を拡大すれば、重なり領域WRが形成でき
、同様の重心ずれ判定処理を行うことができる。
E. Modified Example In the example described above, both the hole image H■ and the pattern image PI are enlarged, but if at least one of the hole image H1 and the pattern image PI is enlarged, an overlapping region WR is formed. , and similar center-of-gravity shift determination processing can be performed.

また、リング状イメージR1を形成するための減数iと
しては、“1“を選択すれば充分であるが、“2”以上
の数を選択してもよい。
Moreover, it is sufficient to select "1" as the subtraction number i for forming the ring-shaped image R1, but a number greater than or equal to "2" may be selected.

また、上下48ラインの画素についてワークエリアWA
としての処理を行ったが、ライン数は任意である。
In addition, the work area WA for pixels in the upper and lower 48 lines.
The number of lines is arbitrary.

さらに、所定係数にや中心判定の基準面積Cの設定を変
更して、ラベリング処理において1つでも不良(NG)
信号があれば、全体として不良(NG)と判定するよう
に構成してもよい。
Furthermore, by changing the setting of the reference area C for center determination to a predetermined coefficient, even one defect (NG) can be detected in the labeling process.
If there is a signal, the entire device may be determined to be defective (NG).

また、プリント基板にスルーホール以外の取付穴が存在
する場合、この取付穴を検査対象外として検査自体を行
なわないか、あるいは、検査しても不良(NG)と判定
しないようにできる。そのためには、取付穴の位置、形
状、大きさ等のデータを予め入力しておけばよい。
Furthermore, if there is a mounting hole other than a through hole in the printed circuit board, this mounting hole can be excluded from inspection and not inspected, or even if inspected, it can be determined not to be defective (NG). To do this, data such as the position, shape, and size of the mounting hole may be input in advance.

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

以上のように、この発明によれば、パターンイメージお
よびホールイメージの少なくとも一方に拡大処理を施し
て、両イメージの重なり領域を求めるため、スルーホー
ルの開口縁部(エツジ)におけるがたつきや傾斜による
影響を解消することができ、その重なり領域の重心位置
とホールイメージまたは拡大ホールイメージの中心位置
あるいは重心位置との間のずれ量を求め、所定の基準距
離と比較することにより、配線パターンとスルーホール
との間の相対的位置関係が把握される。
As described above, according to the present invention, at least one of the pattern image and the hole image is enlarged to find the overlapping area of the two images. By determining the amount of deviation between the center of gravity of the overlapping area and the center or center of gravity of the hole image or enlarged hole image, and comparing it with a predetermined reference distance, the wiring pattern and The relative positional relationship with the through hole is grasped.

そのため、プリント基板のパターンの検査の自動化を可
能にするとともに、正確な重心ずれ判定が行えるプリン
ト基板のパターン検査方法を得ることができる。
Therefore, it is possible to obtain a method for inspecting patterns of printed circuit boards that enables automation of inspection of patterns of printed circuit boards and allows for accurate center-of-gravity shift determination.

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

第1A図はこの発明の一実施例によるスルーホール検査
回路のブロック図、 第1B図はこの発明の一実施例によるプリント基板のパ
ターン検査方法の処理手順を示すフローチャート、 第2図はこの発明の一実施例による検査装置の全体構成
を示すブロック図、 第3図は読取り光学系の一例を示す図、第4A図は、第
3図に示す装置によって得られる信号波形を示す図、 第4B図は第4A図に示す信号波形を合成して得られる
パターンを示す図、 第5図は読取り光学系の他の例を示す図、第6図は拡大
ホールイメージを示す図、第7図はリング状イメージを
示す図、 第8図は拡大パターンイメージを示す図、第9図は重な
り領域の一例を示す図、 第10図はワークエリアを示す図、 第11図は重なり領域の他の例を示す図、第12A図は
仮想中心と中心位置および拡大ホールイメージの位置関
係を示す図、 第12B図は中心判定処理の原理を示す図、第13図は
差面積の一例を示す図、 第14図はラベリング処理の原理を示す図、第15図は
ラベリング処理の流れの一例を示す図、 第16A図はランドとスルーホールとの良好な相対的位
置関係を示す図、 第16B図はランドとスルーホールとの不良な相対的位
置関係を示す図、 第1.7 A図は配線パターンとスルーホールとの良好
な相対的位置関係を示す図、 第17B図は配線パターンとスルーホールとの不良な相
対的位置関係を示す図である。 H・・・ホール、     R・・・ランド、P・・・
配線パターン、  Hl・・・ホールイメージ、PI・
・・パターンイメージ、 Hl  ・・・第1の拡大ホールイメージ、HI ’r
l−i・・・第2の拡大ホールイメージ、PI  ・・
・拡大パターンイメージ、R1・・・リング状イメージ
、 WR・・・重なり領域、 (X、Yl)・・・中心座標(第2位置)、■ (X、Y2)・・・重心座標(第1位置)、d・・・ず
れ量、  D・・・判定基準距離、AS・・・重心ずれ
判定信号、
FIG. 1A is a block diagram of a through-hole inspection circuit according to an embodiment of the present invention, FIG. 1B is a flowchart showing the processing procedure of a printed circuit board pattern inspection method according to an embodiment of the present invention, and FIG. 2 is a block diagram of a through-hole inspection circuit according to an embodiment of the present invention. A block diagram showing the overall configuration of an inspection device according to an embodiment; FIG. 3 is a diagram showing an example of a reading optical system; FIG. 4A is a diagram showing a signal waveform obtained by the device shown in FIG. 3; FIG. 4B is a diagram showing a pattern obtained by combining the signal waveforms shown in Figure 4A, Figure 5 is a diagram showing another example of the reading optical system, Figure 6 is a diagram showing an enlarged hole image, and Figure 7 is a diagram showing a ring. 8 is a diagram showing an enlarged pattern image, FIG. 9 is a diagram showing an example of an overlapping area, FIG. 10 is a diagram showing a work area, and FIG. 11 is a diagram showing another example of an overlapping area. 12A is a diagram showing the positional relationship between the virtual center, the center position, and an enlarged hole image; FIG. 12B is a diagram showing the principle of center determination processing; FIG. 13 is a diagram showing an example of the difference area; The figure shows the principle of labeling processing, Fig. 15 shows an example of the flow of labeling processing, Fig. 16A shows a good relative positional relationship between lands and through holes, and Fig. 16B shows the land and through holes. Figure 1.7A is a diagram showing a good relative positional relationship between a wiring pattern and a through hole. Figure 17B is a diagram showing a defective relationship between a wiring pattern and a through hole. FIG. 2 is a diagram showing relative positional relationships. H...Hole, R...Land, P...
Wiring pattern, Hl...Hole image, PI...
...Pattern image, Hl ...First enlarged hole image, HI'r
l-i...Second enlarged hole image, PI...
・Enlarged pattern image, R1... Ring-shaped image, WR... Overlapping area, (X, Yl)... Center coordinates (second position), ■ (X, Y2)... Center of gravity coordinates (first position) position), d...displacement amount, D...judgment reference distance, AS...center of gravity shift judgment signal,

Claims (2)

【特許請求の範囲】[Claims] (1)プリント基板を光電走査して、画素ごとに読取っ
た画像データに基づいて、前記プリント基板上の配線パ
ターンとスルーホールとの間の相対的位置関係を判定す
る、プリント基板のパターン検査方法であって、 (a)前記画像データに基づいて、前記配線パターンを
示すパターンイメージと、前記スルーホールを示すホー
ルイメージと、を求める工程と、(b)前記パターンイ
メージおよび前記ホールイメージの少なくとも一方に拡
大処理を施して、対応する拡大パターンイメージおよび
拡大ホールイメージの少なくとも一方を求める工程と、
(c)前記拡大処理に対応する、前記拡大パターンイメ
ージと前記拡大ホールイメージとの間、前記拡大パター
ンイメージと前記ホールイメージとの間、および前記パ
ターンイメージと前記拡大ホールイメージとの間のいず
れか1つのイメージ相互間の空間的関係に基づいて、前
記イメージ間の重なり領域を求める工程と、 (d)前記重なり領域の重心位置を示す第1位置を求め
る工程と、 (e)前記ホールイメージあるいは前記拡大ホールイメ
ージの中心位置または重心位置を示す第2位置を求める
工程と、 (f)前記第1位置と前記第2位置との間のずれ量を求
める工程と、 (g)前記ずれ量と所定の基準距離とを比較して、前記
相対的位置関係を判定する工程と、を含むプリント基板
のパターン検査方法。
(1) A printed circuit board pattern inspection method in which the printed circuit board is photoelectrically scanned and the relative positional relationship between the wiring pattern and the through hole on the printed circuit board is determined based on image data read for each pixel. (a) obtaining a pattern image representing the wiring pattern and a hole image representing the through hole based on the image data; and (b) at least one of the pattern image and the hole image. performing an enlargement process to obtain at least one of a corresponding enlarged pattern image and an enlarged hole image;
(c) Any one between the enlarged pattern image and the enlarged hole image, between the enlarged pattern image and the hole image, or between the pattern image and the enlarged hole image, corresponding to the enlargement process. (d) determining a first position indicating the position of the center of gravity of the overlapping area; (e) determining the hole image or (f) determining a deviation amount between the first position and the second position; (g) determining the deviation amount; A pattern inspection method for a printed circuit board, comprising the step of determining the relative positional relationship by comparing it with a predetermined reference distance.
(2)請求項1記載のプリント基板のパターン検査方法
であって、 工程(b)が、 (b−1)ホールイメージに第1の拡大処理を施して、
第1の拡大ホールイメージを求める工程と、(b−2)
前記ホールイメージに、第1の拡大処理とは拡大率の異
なる第2の拡大処理を施して、第2の拡大ホールイメー
ジを求める工程と、(b−3)前記第1の拡大ホールイ
メージと前記第2の拡大ホールイメージとの差分に相当
するリング状のイメージを求める工程と、を含み、工程
(c)が、 (c−1)拡大パターンイメージと前記リング状のイメ
ージとの間の重なり領域を求める工程を含むプリント基
板のパターン検査方法。
(2) The printed circuit board pattern inspection method according to claim 1, wherein step (b) comprises (b-1) performing a first enlargement process on the hole image;
(b-2) obtaining a first enlarged hole image;
(b-3) performing a second enlargement process on the hole image with a different enlargement rate from the first enlargement process to obtain a second enlarged hole image; obtaining a ring-shaped image corresponding to the difference from the second enlarged hole image, and step (c) includes: (c-1) an overlapping area between the enlarged pattern image and the ring-shaped image; A printed circuit board pattern inspection method that includes the process of determining.
JP1119056A 1989-03-31 1989-05-12 Pattern inspecting method for printed board Pending JPH02297047A (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP1119056A JPH02297047A (en) 1989-05-12 1989-05-12 Pattern inspecting method for printed board
US07/500,294 US5027417A (en) 1989-03-31 1990-03-27 Method of and apparatus for inspecting conductive pattern on printed board
EP90105916A EP0390110B1 (en) 1989-03-31 1990-03-28 Method of and apparatus for inspecting conductive pattern on printed board
DE69032459T DE69032459T2 (en) 1989-03-31 1990-03-28 Method and device for examining a conductive pattern on a printed circuit board
KR1019900004291A KR920008287B1 (en) 1989-03-31 1990-03-30 Inspection method and apparatus of the conduction pattern of pcb
US07/674,547 US5150422A (en) 1989-03-31 1991-03-22 Method of and apparatus for inspecting conductive pattern on printed board
US07/674,546 US5144681A (en) 1989-03-31 1991-03-22 Method of and apparatus for inspecting conductive pattern on printed board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1119056A JPH02297047A (en) 1989-05-12 1989-05-12 Pattern inspecting method for printed board

Publications (1)

Publication Number Publication Date
JPH02297047A true JPH02297047A (en) 1990-12-07

Family

ID=14751814

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1119056A Pending JPH02297047A (en) 1989-03-31 1989-05-12 Pattern inspecting method for printed board

Country Status (1)

Country Link
JP (1) JPH02297047A (en)

Similar Documents

Publication Publication Date Title
JP3906780B2 (en) Data registration method for component code conversion table, board inspection data creation device, registration processing program, and storage medium thereof
JP2005291760A (en) Printed circuit board inspection apparatus
JP2006194607A (en) Substrate inspection device, its parameter setting method and parameter setting device
JPH05340738A (en) Method for inspecting inclination of ic
JP4454428B2 (en) Component edge detection method, component edge detection program, and inspection apparatus
JPS61243303A (en) Visual inspection system for mounted substrate
JP2007033126A (en) Substrate inspection device, parameter adjusting method thereof and parameter adjusting device
EP0488188B1 (en) Method of and apparatus for inspecting the width of a wiring line on a printed board
JPH02297047A (en) Pattern inspecting method for printed board
JP2006105777A (en) Substrate inspection device, its parameter-setting method and parameter setting device
JPH04256844A (en) Pattern inspecting method for printed board
JP3123275B2 (en) Inspection data creation method for electronic parts shortage inspection
JP2006284543A (en) Method and device for inspecting mounted circuit board
JPH02259552A (en) Method for inspecting pattern of printed board
JP2007309703A (en) Inspection method of pixel
JPH10325806A (en) Method and apparatus for inspecting external appearance
JPH04184244A (en) Method for inspecting pattern of printed circuit board
JP2000028334A (en) Method and apparatus for inspecting pattern fault
JP4389568B2 (en) Defect inspection equipment
JPH02310406A (en) Method for inspecting pattern of printed circuit board
JPH0328744A (en) Patter inspecting method for printed board
JPS63196980A (en) Device for inspecting soldering external appearance for printed circuit board
JPH10160681A (en) Pattern defect detection device and method
JP2008241298A (en) Flaw detection method
JPH02150704A (en) Object inspecting device