JPH0630413A - Image binarization circuit - Google Patents

Image binarization circuit

Info

Publication number
JPH0630413A
JPH0630413A JP4183969A JP18396992A JPH0630413A JP H0630413 A JPH0630413 A JP H0630413A JP 4183969 A JP4183969 A JP 4183969A JP 18396992 A JP18396992 A JP 18396992A JP H0630413 A JPH0630413 A JP H0630413A
Authority
JP
Japan
Prior art keywords
area
image
value
threshold value
threshold
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.)
Withdrawn
Application number
JP4183969A
Other languages
Japanese (ja)
Inventor
Giichi Kakigi
義一 柿木
Tetsuo Hizuka
哲男 肥塚
Moritoshi Ando
護俊 安藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4183969A priority Critical patent/JPH0630413A/en
Publication of JPH0630413A publication Critical patent/JPH0630413A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To improve the detection performance of a foreign matter in a free part and to properly identify the free part, a center land and a conductive part in an image binarization circuit for inspecting the wiring pattern of a printed wire board. CONSTITUTION:An area identifying means 21 outputs binarization data obtained by comparing the brightness of an image with a 1st threshold. A threshold setting means 22 sets up a 2nd threshold which is the sane value as the 1st threshold in an area other than the 1st area and sets up the 2nd threshold corresponding to the minimum measured length obtained by radially measuring a length from an optical point in the 1st area up to the end part of the 1st area in the 1st area. A comparing means 23 outputs binarization data obtained by comparing the brightness of the image with the 2nd threshold.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像2値化回路に係り、
特に印刷配線板の配線パターンの検査のための画像2値
化回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image binarization circuit,
In particular, it relates to an image binarization circuit for inspecting a wiring pattern of a printed wiring board.

【0002】印刷配線板の配線パターンの検査を行う場
合、ビデオカメラ等で得られた配線パターンの画像を、
処理を容易にするために2値化することが行われる。こ
の2値化を行う2値化回路では、配線パターン上の異物
を検出する性能が高いことが必要とされている。
When inspecting a wiring pattern of a printed wiring board, an image of the wiring pattern obtained by a video camera or the like is used.
Binarization is performed to facilitate the processing. The binarization circuit that performs this binarization is required to have high performance for detecting foreign matter on the wiring pattern.

【0003】[0003]

【従来の技術】図7は、検査対象の印刷配線板の配線パ
ターンの一例を示す。図7に示すように、印刷配線板1
の全面が導体部2となっており、中央ランド4とドーナ
ツ状の空域部3(導体が無い部分)が設けられている。
また、中央ランド4の下には、他の層との電気的接続を
するための導体が設けられている。(図示せず)。
2. Description of the Related Art FIG. 7 shows an example of a wiring pattern of a printed wiring board to be inspected. As shown in FIG. 7, the printed wiring board 1
Is a conductor portion 2, and is provided with a central land 4 and a donut-shaped air space portion 3 (a portion having no conductor).
Further, under the central land 4, conductors for electrically connecting to other layers are provided. (Not shown).

【0004】この配線パターンの外観検査では、印刷配
線板1の下から照明して印刷配線板1の上部からビデオ
カメラ等で配線パターンの画像を撮り、この画像を画像
2値化回路で2値化した画像データから、導体部2、空
域部3、中央ランド4、及び空域部の明るい異物6等の
識別を行う。
In the visual inspection of this wiring pattern, an image of the wiring pattern is taken from above the printed wiring board 1 by illuminating from below the printed wiring board 1 with a video camera, and this image is binarized by an image binarization circuit. The conductor 2, the airspace 3, the central land 4, and the bright foreign matter 6 in the airspace are identified from the converted image data.

【0005】図8は、従来のパターン検査のための画像
2値化回路における、しきい値の説明図を示す。印刷配
線板1の下から照明したときの、図7中一点鎖線i−i
線上の画像の輝度は、図8の実線のようになる。導体部
2と中央ランド4では、最も輝度が低く、空域部3で最
も輝度が高くなる。また、中央ランド4の下に設けられ
た、他の層との電気的接続をするための導体のため、空
域部3の中央ランド4の周囲には、空域部3の最も輝度
が高い部分より輝度の低い、中間輝度の部分5が存在す
る。
FIG. 8 is an explanatory diagram of threshold values in a conventional image binarization circuit for pattern inspection. When the printed wiring board 1 is illuminated from below, the alternate long and short dash line ii in FIG.
The brightness of the image on the line is as shown by the solid line in FIG. The conductor portion 2 and the central land 4 have the lowest luminance, and the air space portion 3 has the highest luminance. In addition, since the conductor is provided below the central land 4 for electrical connection with other layers, the area around the central land 4 of the air space portion 3 has a higher brightness than the portion of the air space portion 3 having the highest brightness. There is a low-brightness, mid-brightness portion 5.

【0006】導体部2、中央ランド4と空域部3とを識
別するためには、図8のしきい値7を用いて、配線パタ
ーンの画像データを2値化すればよい。しかし、このし
きい値7では、空域部の明るい異物6の検出ができな
い。
In order to distinguish the conductor portion 2, the central land 4 and the air space portion 3, the image data of the wiring pattern may be binarized using the threshold value 7 in FIG. However, with this threshold value 7, the bright foreign matter 6 in the air space cannot be detected.

【0007】このため、従来、画像の輝度の近傍平均を
求めて、これからしきい値を決める動的2値化法が用い
られている。図8の例では、図8の二点鎖線に示すよう
なしきい値8が決められる。
Therefore, conventionally, a dynamic binarization method has been used in which a neighborhood average of the brightness of an image is obtained and a threshold value is determined from this. In the example of FIG. 8, the threshold value 8 as shown by the chain double-dashed line in FIG. 8 is determined.

【0008】[0008]

【発明が解決しようとする課題】しかるに、従来の、画
像の輝度の近傍平均を求めて、これからしきい値を決め
る動的2値化法では、図7のような検査対象では空域部
3の内側でも外側でも、しきい値8のレベルがあまり変
わらず、空域部の異物6の検出率が充分でないという問
題があった。
However, in the conventional dynamic binarization method in which the neighborhood average of the brightness of the image is obtained and the threshold value is determined from this, the air space part 3 of the inspection object as shown in FIG. There was a problem that the level of the threshold value 8 did not change much both inside and outside, and the detection rate of the foreign matter 6 in the air space was insufficient.

【0009】本発明は、上記の点に鑑みてなされたもの
で、空域部の異物の検出性能が高く、且つ、空域部、中
央ランド、及び導体部を適正に識別することができる画
像2値化回路を提供することを目的とする。
The present invention has been made in view of the above points, and is a binary image that has a high foreign matter detection performance in the air space portion and can properly identify the air space portion, the central land, and the conductor portion. It is an object of the present invention to provide a conversion circuit.

【0010】[0010]

【課題を解決するための手段】請求項1の発明は、第1
の領域3と、第1の領域3に囲まれた第2の領域4のう
ち、一方の領域の画像の輝度が第1のしきい値より高
く、他方の領域の画像の輝度が第1のしきい値より低い
画像を2値化する画像2値化回路において、前記画像の
輝度を第1のしきい値と比較して得た2値化データを出
力する領域識別手段21と、第1の領域3以外では、第
1のしきい値と同一値の第2のしきい値を設定し、第1
の領域3では、第1の領域3の任意の点から第1の領域
3の端部までの距離を放射状に測長して得た最小の測長
値に応じた値である第2のしきい値を設定するしきい値
設定手段22と、前記画像の輝度を第2のしきい値と比
較して得た2値化データを出力する比較手段23とを有
する構成とする。
The invention according to claim 1 is the first
Area 3 and the second area 4 surrounded by the first area 3, the brightness of the image in one area is higher than the first threshold value and the brightness of the image in the other area is the first. In an image binarization circuit for binarizing an image lower than a threshold value, a region identification means 21 for outputting binarized data obtained by comparing the brightness of the image with a first threshold value, and a first Except for the region 3 of, the second threshold having the same value as the first threshold is set, and the first threshold is set.
In the area 3 of No. 2, the second distance, which is a value corresponding to the minimum measurement value obtained by radially measuring the distance from an arbitrary point of the first area 3 to the end of the first area 3. A threshold value setting means 22 for setting a threshold value and a comparison means 23 for outputting binarized data obtained by comparing the brightness of the image with a second threshold value are provided.

【0011】請求項2の発明は、第1の領域3と、第1
の領域3に囲まれた第2の領域4と、第1の領域3を囲
む第3の領域2とが有り、第1の領域3の画像の輝度と
第1のしきい値との高低の関係は、第2の領域4及び該
第3の領域2の画像の輝度と第1のしきい値との高低の
関係とは異なり、かつ、第1の領域3中の第2の領域4
の周囲に、第1のしきい値と第1の領域3の画像の輝度
の中間の輝度の部分5が有る画像を2値化する画像2値
化回路において、しきい値設定手段22は、最小の測長
値と、最小の測長値の測長方向と隣接する2方向の測長
値とを比較し、最小の測長値が隣接する2方向の測長値
に所定値を足した値を越えるときは、最小の測長値の関
数である第1の関数により第2のしきい値を決め、最小
の測長値が該隣接する2方向の測長値に所定値を足した
値以下のときは、最小の測長値の関数である第2の関数
により第2のしきい値を決める構成とする。
According to a second aspect of the invention, the first region 3 and the first region 3 are provided.
There is a second region 4 surrounded by the region 3 and a third region 2 surrounding the first region 3, and the brightness of the image in the first region 3 and the first threshold value are high and low. The relationship is different from the relationship between the brightness of the images in the second area 4 and the third area 2 and the first threshold value, and the second area 4 in the first area 3 is different.
In the image binarization circuit for binarizing an image having a portion 5 having an intermediate luminance between the first threshold and the luminance of the image of the first region 3 around, the threshold setting means 22 The minimum length measurement value and the length measurement direction of the minimum length measurement value and the adjacent length measurement values of two directions are compared, and the predetermined value is added to the length measurement value of the two directions where the minimum length measurement value is adjacent. When the value exceeds the value, the second threshold value is determined by the first function which is the function of the minimum length measurement value, and the minimum length measurement value is the predetermined value added to the length measurement values in the two adjacent directions. When the value is less than or equal to the value, the second threshold value is determined by the second function that is the function of the minimum length measurement value.

【0012】請求項3の発明は、第1及び第2の関数
は、区分線形関数である構成とする。
According to a third aspect of the present invention, the first and second functions are piecewise linear functions.

【0013】請求項4の発明は、第1及び第2の関数
は、ロジステック関数である構成とする。
According to a fourth aspect of the invention, the first and second functions are logistic functions.

【0014】[0014]

【作用】請求項1の発明では、第1の領域中で、第1の
領域の任意の点から第1の領域の端部までの最小距離に
応じた第2のしきい値を設定するため、第1の領域中の
異物を識別するのに適切な値の第2のしきい値を設定す
る。
According to the first aspect of the invention, in the first region, the second threshold value is set according to the minimum distance from an arbitrary point of the first region to the end of the first region. , A second threshold value that is appropriate for identifying foreign matter in the first region is set.

【0015】請求項2の発明では、第1の領域中の任意
の点で、第2の領域と第3の領域のいずれに近いかによ
って、しきい値を決める第1の関数又は第2の関数を選
択すし、適切な値の第2のしきい値を設定する。
According to the second aspect of the present invention, the first function or the second function that determines the threshold value depending on which of the second region and the third region is closer to an arbitrary point in the first region. Select a function and set a second threshold of appropriate value.

【0016】請求項3の発明では、第1の領域中の適切
な値の第2のしきい値を容易に設定することを可能とす
る。
According to the third aspect of the invention, it is possible to easily set the second threshold value having an appropriate value in the first area.

【0017】請求項4の発明では、第1の領域中の第2
のしきい値の変化を滑らかにする。このため、第2のし
きい値をより適切な値に設定することを可能とする。
According to a fourth aspect of the invention, the second area in the first area is
Smooth the change in the threshold of. Therefore, it is possible to set the second threshold value to a more appropriate value.

【0018】[0018]

【実施例】図2は本発明が適用された配線パターン検査
装置の構成図を示す。検査対象の印刷配線板1は、図7
に示す配線パターンを有するものとする。図2に示すよ
うに、検査対象の印刷配線板1を下から照明光源11で
照明し、印刷配線板1の上方からビデオカメラ12で配
線パターンの画像を撮る。この画像は画像入力回路13
でA/D変換されて、画像メモリ14に濃淡画像データ
として記憶される。
2 is a block diagram of a wiring pattern inspection apparatus to which the present invention is applied. The printed wiring board 1 to be inspected is shown in FIG.
The wiring pattern shown in FIG. As shown in FIG. 2, the printed wiring board 1 to be inspected is illuminated from below with an illumination light source 11, and an image of the wiring pattern is taken from above the printed wiring board 1 with a video camera 12. This image is the image input circuit 13
Is A / D converted in step S4 and stored in the image memory 14 as grayscale image data.

【0019】本発明の一実施例である画像2値化回路1
5では、画像メモリ14の濃淡画像データを、導体部
2、空域部3、及び空域部の異物6等を識別する2値化
データにして出力し、この2値化データが2値化画像メ
モリに記憶される。中央処理装置(CPU)17は、得
られた2値化画像データを良品の配線パターンのデータ
と比較して、検査対象の印刷配線板1の配線パターンの
良否を判定する。
An image binarization circuit 1 which is an embodiment of the present invention.
5, the grayscale image data of the image memory 14 is output as binarized data for identifying the conductor portion 2, the airspace portion 3, the foreign matter 6 in the airspace portion, and the binarized data is output. Memorized in. The central processing unit (CPU) 17 compares the obtained binary image data with the data of the non-defective wiring pattern to determine whether the wiring pattern of the printed wiring board 1 to be inspected is good or bad.

【0020】図3は本発明の一実施例の構成図を示し、
図4は本実施例におけるしきい値の説明図を示す。図3
の画像2値化回路において、領域識別手段21である比
較回路31は、第1のしきい値である固定のしきい値S
L1と配線パターンの濃淡画像データを比較して、2値
化データを出力する。
FIG. 3 shows a block diagram of an embodiment of the present invention.
FIG. 4 is an explanatory diagram of the threshold value in this embodiment. Figure 3
In the image binarization circuit, the comparison circuit 31 which is the area identifying means 21 has a fixed threshold value S which is a first threshold value.
L1 and the grayscale image data of the wiring pattern are compared and binary data is output.

【0021】図4に示すように、このしきい値SL1に
より第1の領域である空域部3と、第2の領域である中
央ランド4及び第3の領域である導体部2とを識別でき
る。従って、この2値化データは、空域部3と、中央ラ
ンド4及び導体部2とを識別する2値化データである。
As shown in FIG. 4, the threshold value SL1 enables identification of the air space portion 3 which is the first area, the central land 4 which is the second area, and the conductor portion 2 which is the third area. . Therefore, this binarized data is binarized data for identifying the air space portion 3, the central land 4, and the conductor portion 2.

【0022】しきい値設定手段22は、測長回路34と
しきい値決定回路35とよりなる。測長回路34は後述
するように、空域部3において、空域部3の任意の点か
ら空域部3の端部、即ち空域部3と導体部2の境界、又
は空域部3と中央ランド4の境界、までの距離を放射状
に測長し、最小の測長値を出力する。
The threshold setting means 22 comprises a length measuring circuit 34 and a threshold determining circuit 35. As will be described later, the length measurement circuit 34 includes, in the air space portion 3, an end portion of the air space portion 3 from an arbitrary point of the air space portion 3, that is, a boundary between the air space portion 3 and the conductor portion 2, or a space between the air space portion 3 and the central land 4. Radially measure the distance to the boundary, and output the minimum measured value.

【0023】しきい値決定回路35は第2のしきい値で
あるSL2を出力する。空域部3においては、測長回路
34が出力する最小の測長値に応じた値のしきい値SL
2を出力し、空域部3以外では、しきい値SL1と同一
値のしきい値SL2を出力する。
The threshold value determination circuit 35 outputs SL2 which is the second threshold value. In the air space section 3, a threshold value SL having a value corresponding to the minimum length measurement value output from the length measurement circuit 34.
2 is output, and the threshold value SL2 having the same value as the threshold value SL1 is output except for the air space section 3.

【0024】比較手段23である比較回路36では、し
きい値決定回路35が出力するしきい値SL2と濃淡画
像データを比較して、2値化データを出力する。この2
値化データにより、濃淡画像データの空域部3、導体部
2、中央ランド4、及び空域部3の異物6を識別するこ
とができる。
The comparison circuit 36, which is the comparison means 23, compares the threshold value SL2 output from the threshold value determination circuit 35 with the grayscale image data and outputs the binarized data. This 2
Based on the binarized data, it is possible to identify the air space portion 3, the conductor portion 2, the central land 4, and the foreign matter 6 in the air space portion 3 in the grayscale image data.

【0025】次に、本実施例の動作について説明する。
先ず、比較回路31により得られた、空域部3と、中央
ランド4及び導体部2とを識別する2値化データを、測
長回路34にて保持しておく。しきい値SL1より低い
値の部分を2値化後論理0(以下“0”と記す)、しき
い値SL1より高い値の部分を2値化後論理1(以下
“1”と記す)とすると、空域部3は“1”となり、中
央ランド4及び導体部2は“0”となる。
Next, the operation of this embodiment will be described.
First, the length measurement circuit 34 holds the binarized data obtained by the comparison circuit 31 for identifying the air space portion 3, the central land 4, and the conductor portion 2. A portion having a value lower than the threshold SL1 is referred to as a logic 0 after binarization (hereinafter referred to as "0"), and a portion having a value higher than the threshold SL1 is referred to as a logic 1 after binarization (hereinafter referred to as "1"). Then, the air space portion 3 becomes "1", and the central land 4 and the conductor portion 2 become "0".

【0026】次に、配線パターンの濃淡データについ
て、ある線上で、空域部3、導体部2、中央ランド4、
及び空域部3の異物6を識別する2値化処理を行う。こ
こでは、図7の一点鎖線i−i上での2値化処理のつい
て説明する。
Next, regarding the grayscale data of the wiring pattern, the air region 3, the conductor portion 2, the central land 4,
And binarization processing for identifying the foreign matter 6 in the airspace portion 3 is performed. Here, the binarization processing on the alternate long and short dash line i-i in FIG. 7 will be described.

【0027】2値化処理を行う点が、一点鎖線i−i上
の導体部2、又は、中央ランド4の部分にある場合(比
較回路31の出力は“0”)は、しきい値決定回路35
は、しきい値SL1と同一値のしきい値SL2を出力す
る。このため、比較回路36は“0”を出力する。従っ
て、導体部2、又は、中央ランド4の部分は2値化処理
により“0”となる。
If the point to be binarized is located on the conductor portion 2 on the alternate long and short dash line i or on the central land 4 (the output of the comparison circuit 31 is "0"), the threshold value is determined. Circuit 35
Outputs a threshold value SL2 having the same value as the threshold value SL1. Therefore, the comparison circuit 36 outputs "0". Therefore, the conductor portion 2 or the portion of the central land 4 becomes "0" by the binarization process.

【0028】次に、2値化処理を行う点が一点鎖線i−
i上の空域部3にある場合(比較回路31の出力は
“1”)について説明する。この場合、2値化処理を行
う点の位置に応じたしきい値SL2を設定し、これによ
り2値化処理を行う。
Next, the point to be binarized is the one-dot chain line i-
The case where the data is in the air space section 3 on i (the output of the comparison circuit 31 is “1”) will be described. In this case, the threshold value SL2 is set according to the position of the point at which the binarization process is performed, and the binarization process is thereby performed.

【0029】測長回路34では、2値化処理を行う点か
ら空域部3の端部である、中央ランド4との境界、又
は、導体部2との境界までの距離を、図5に示すよう
に、放射状に16方向に測長し、測長結果を出力する。
このときの最小の測長値をLCとし、LCの測長方向と
時計方向に隣接する方向の測長値をLRとし、LCの測
長方向と反時計方向に隣接する方向の測長値をLLとす
る。
In the length measurement circuit 34, the distance from the point where the binarization processing is performed to the boundary with the central land 4 or the boundary with the conductor portion 2 at the end of the air space portion 3 is shown in FIG. As described above, the length is measured in 16 directions radially, and the length measurement result is output.
The minimum length measurement value at this time is LC, the length measurement value in the direction adjacent to the length measurement direction of LC is LR, and the length measurement value in the direction adjacent to the length measurement direction of LC is counterclockwise. LL.

【0030】しきい値決定回路35では、このLC、L
R、LLを用いて、2値化処理を行う点が中央ランド4
と導体部2のいずれに近接しているかを判断し、この判
断結果により、しきい値SL2を決める第1の関数、又
は、第2の関数を選択し、選択した関数により、しきい
値SL2を決定する。
In the threshold value determining circuit 35, the LC, L
The center land 4 is the point where binarization processing is performed using R and LL.
And the conductor portion 2 are judged to be closer to each other, and a first function or a second function for determining the threshold value SL2 is selected according to the result of the judgment, and the threshold value SL2 is selected according to the selected function. To decide.

【0031】下記の条件が成立するときは、2値化処
理を行う点は、中央ランド4に近接していると判断す
る。
When the following conditions are satisfied, it is determined that the point where the binarization processing is performed is close to the central land 4.

【0032】 LL>LC+α かつ LR>LC+α −−− αは、2値化処理を行う点が、中央ランド4と導体部2
のいずれに近接しているかを正しく判定できるように、
適切な値に設定しておく。の条件が成立するときは、
しきい値SL2の値を第1の関数である下記の式で決
定する。
In LL> LC + α and LR> LC + α −−−− α, the point of performing the binarization processing is that the central land 4 and the conductor portion 2 are
So that you can correctly determine which of
Set to an appropriate value. When the condition of is satisfied,
The value of the threshold value SL2 is determined by the following equation which is the first function.

【0033】 SL2=SL1+β・(LC−W) −−− ここで、βはしきい値SL2の傾斜係数で、図4に示
す、ランド4の周辺にある中間輝度の部分5の輝度の傾
斜に等しい値とする。また、Wは空域部3の大きさに比
べて小さな固定の値で、SL2が適切な値となるように
設定する。
SL2 = SL1 + β (LC-W) ----- where β is the slope coefficient of the threshold value SL2, and is the slope of the brightness of the intermediate brightness part 5 around the land 4 shown in FIG. Equal value. Further, W is a fixed value smaller than the size of the airspace portion 3, and SL2 is set to an appropriate value.

【0034】ただし、LC<WのときはSL2=SL1
とし、SL2>SLMAXのときはSL2=SLMAX
とする。これによるLCとSL2の関係を図6(A)に
示す。この関数は、区分線型関数である。しきい値SL
2は、この区分線型関数により容易に算出することがで
きる。
However, when LC <W, SL2 = SL1
And when SL2> SLMAX, SL2 = SLMAX
And The relationship between LC and SL2 thus obtained is shown in FIG. This function is a piecewise linear function. Threshold SL
2 can be easily calculated by this piecewise linear function.

【0035】一方、条件が成立しないときは、2値化
処理を行う点は導体部2に近接していると判断し、第2
の関数である下記の式によって、しきい値SL2を決
定する。
On the other hand, when the condition is not satisfied, it is determined that the point where the binarization processing is performed is close to the conductor portion 2, and the second
The threshold value SL2 is determined by the following equation that is a function of

【0036】 SL2=SL1+γ・(LC−W) −−− ここで、γはしきい値SL2の傾斜係数で、図4に示
す、導体部2との境界付近の輝度の傾斜と等しい値とす
る。ただし、LC<WのときはSL2=SL1とし、S
L2>SLMAXのときはSL2=SLMAXとする。
図4に示すように、導体部2との境界付近の輝度の傾斜
は、中間輝度の部分5の輝度の傾斜よりも大きく、従っ
て、γ>βの関係がある。しきい値SL2は、この区分
線型関数により容易に算出することができる。
SL2 = SL1 + γ (LC-W) ----- where γ is the slope coefficient of the threshold value SL2, and is set to a value equal to the brightness slope near the boundary with the conductor portion 2 shown in FIG. . However, when LC <W, SL2 = SL1 and S
When L2> SLMAX, SL2 = SLMAX.
As shown in FIG. 4, the slope of the brightness near the boundary with the conductor portion 2 is larger than the slope of the brightness of the portion 5 having the intermediate brightness, and therefore, there is a relation of γ> β. The threshold value SL2 can be easily calculated by this zonal linear function.

【0037】上記のように、しきい値決定回路35で
は、2値化処理を行う点が中央ランド4に近接している
場合は、第1の関数である式によりしきい値SL2を
決定し、2値化処理を行う点が導体部2に近接している
場合は、第2の関数である式によりしきい値SL2を
決定する。
As described above, in the threshold value determining circuit 35, when the point to be binarized is close to the central land 4, the threshold value SL2 is determined by the equation which is the first function. When the point where the binarization processing is performed is close to the conductor portion 2, the threshold value SL2 is determined by the equation that is the second function.

【0038】しきい値決定回路35により決められたし
きい値SL2を、図4の一点鎖線で示す。図4に示すよ
うに、しきい値SL2は、空域部3の端部からの距離が
W以上の部分では、濃淡画像データの輝度より所定の値
だけ小さい値で、濃淡画像データの輝度の線に沿って平
行に設定される。また、空域部3の端部からの距離がW
以内の部分では、しきい値SL1と同一値に設定され
る。
The threshold value SL2 determined by the threshold value determining circuit 35 is shown by a chain line in FIG. As shown in FIG. 4, the threshold value SL2 is a value smaller than the brightness of the grayscale image data by a predetermined value in a portion where the distance from the end of the air space portion 3 is W or more, and the line of the brightness of the grayscale image data. Are set parallel to each other. In addition, the distance from the end of the airspace 3 is W
In the inside portion, the same value as the threshold value SL1 is set.

【0039】このため、空域部3の正常なパターンの部
分は、比較回路36による2値化で、“1”となる。一
方、空域部3の異物6の輝度は、設定したしきい値SL
2よりも低くなるため、比較回路36による2値化で、
“0”となる。従って、空域部3の異物6を、空域部3
の正常なパターンの部分と正しく識別することができ
る。
Therefore, the normal pattern portion of the air space portion 3 becomes "1" by the binarization by the comparison circuit 36. On the other hand, the brightness of the foreign matter 6 in the air space 3 is determined by the set threshold value SL.
Since it becomes lower than 2, by the binarization by the comparison circuit 36,
It becomes "0". Therefore, the foreign matter 6 in the air space part 3 is not
Can be correctly identified as a part of the normal pattern of.

【0040】上記のように、本実施例では、空域部3に
おける位置に応じて、しきい値SL2を決める第1の関
数又は第2の関数を選択して、適切な値のしきい値SL
2を設定することができるため、空域部3の異物を高い
確率で検出することができ、かつ、空域部3、中央ラン
ド4、及び導体部2を適正に識別することができる。
As described above, in the present embodiment, the first function or the second function for determining the threshold value SL2 is selected according to the position in the air space 3, and the threshold value SL having an appropriate value is selected.
Since it is possible to set 2, it is possible to detect foreign matter in the air space portion 3 with a high probability, and it is possible to properly identify the air space portion 3, the central land 4, and the conductor portion 2.

【0041】なお、しきい値SL2を決定する関数は、
図6(A)の区分線型関数に限らず、図6(B)、下記
式に示すようなロジスティック関数とすることも可能
である。
The function for determining the threshold SL2 is
The logistic function shown in FIG. 6 (B) and the following equation can be used instead of the piecewise linear function shown in FIG. 6 (A).

【0042】 y=C・(1/(1+exp((−x+A)・B))) −−− この場合、しきい値SL2の変化が滑らかになるため、
しきい値SL2を、より適切な値に設定することができ
る。
Y = C · (1 / (1 + exp ((− x + A) · B))) −−− In this case, the change of the threshold value SL2 becomes smooth,
The threshold value SL2 can be set to a more appropriate value.

【0043】[0043]

【発明の効果】上述の如く、請求項1の発明にによれ
ば、第1の領域中の異物を識別するのに適切な値の第2
のしきい値を設定することができるため、第1の領域中
の異物を高い確率で検出することができ、且つ、第1の
領域と第2の領域とを適正に識別することができる等の
特長を有する。
As described above, according to the first aspect of the invention, the second value of the value suitable for identifying the foreign matter in the first area is set.
Since the threshold value can be set, the foreign matter in the first region can be detected with high probability, and the first region and the second region can be properly discriminated. With the features of.

【0044】請求項2の発明によれば、第1の領域中の
位置に応じて、しきい値を決める第1の関数又は第2の
関数を選択して、適切な値の第2のしきい値を設定する
ことができるため、第1の領域中の異物を高い確率で検
出することができ、且つ、第1の領域、第2の領域及び
第3の領域を適正に識別することができる。
According to the second aspect of the present invention, the first function or the second function for determining the threshold value is selected in accordance with the position in the first area, and the second function having an appropriate value is selected. Since the threshold value can be set, foreign matter in the first area can be detected with high probability, and the first area, the second area, and the third area can be properly identified. it can.

【0045】請求項3の発明によれば、第1の領域中の
適切な値の第2のしきい値を容易に設定することができ
る。
According to the third aspect of the invention, it is possible to easily set the appropriate second threshold value in the first region.

【0046】請求項4の発明によれば、第1の領域中の
第2のしきい値の変化を滑らかにすることができるた
め、第2のしきい値をより適切な値に設定することがで
きる。
According to the fourth aspect of the invention, since the change of the second threshold value in the first region can be smoothed, the second threshold value should be set to a more appropriate value. You can

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

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

【図2】本発明が適用された検査装置の構成図である。FIG. 2 is a configuration diagram of an inspection apparatus to which the present invention is applied.

【図3】本発明の一実施例の構成図である。FIG. 3 is a configuration diagram of an embodiment of the present invention.

【図4】本実施例におけるしきい値の説明図である。FIG. 4 is an explanatory diagram of threshold values in the present embodiment.

【図5】測長回路における測長方法の説明図である。FIG. 5 is an explanatory diagram of a length measuring method in a length measuring circuit.

【図6】しきい値を決める関数の説明図である。FIG. 6 is an explanatory diagram of a function that determines a threshold value.

【図7】検査対象の印刷配線板の一例を示す図である。FIG. 7 is a diagram showing an example of a printed wiring board to be inspected.

【図8】従来回路におけるしきい値の説明図である。FIG. 8 is an explanatory diagram of threshold values in a conventional circuit.

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

1 印刷配線板 2 導体部 3 空域部 4 中央ランド 5 中間輝度の部分 11 照明光源 12 ビデオカメラ 13 画像入力回路 14 画像メモリ 15 画像2値化回路 16 2値化画像メモリ 17 中央処理装置(CPU) 21 領域識別手段 22 しきい値設定手段 23 比較手段 31 比較回路 34 測長回路 35 しきい値決定回路 36 比較回路 1 Printed Wiring Board 2 Conductor Part 3 Air Region Part 4 Central Land 5 Part of Intermediate Luminance 11 Illumination Light Source 12 Video Camera 13 Image Input Circuit 14 Image Memory 15 Image Binarization Circuit 16 Binary Image Memory 17 Central Processing Unit (CPU) 21 area identifying means 22 threshold setting means 23 comparing means 31 comparing circuit 34 length measuring circuit 35 threshold determining circuit 36 comparing circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 第1の領域(3)と、該第1の領域
(3)に囲まれた第2の領域(4)のうち、一方の領域
の画像の輝度が第1のしきい値より高く、他方の領域の
画像の輝度が該第1のしきい値より低い画像を2値化す
る画像2値化回路において、 該画像の輝度を該第1のしきい値と比較して得た2値化
データを出力する領域識別手段(21)と、 該第1の領域3以外では、該第1のしきい値と同一値の
第2のしきい値を設定し、該第1の領域(3)では、該
第1の領域(3)の任意の点から該第1の領域(3)の
端部までの距離を放射状に測長して得た最小の測長値に
応じた値である第2のしきい値を設定するしきい値設定
手段(22)と、 該画像の輝度を該第2のしきい値と比較して得た2値化
データを出力する比較手段(23)とを有することを特
徴とする画像2値化回路。
1. The brightness of the image in one of the first area (3) and the second area (4) surrounded by the first area (3) is a first threshold value. In an image binarization circuit for binarizing an image having a higher image brightness in the other region than the first threshold value, the image brightness is obtained by comparing the image brightness with the first threshold value. Area identification means (21) for outputting binarized data and a second threshold value which is the same value as the first threshold value except for the first area 3 is set. In the area (3), the distance from an arbitrary point of the first area (3) to the end of the first area (3) is measured in a radial direction, and the minimum length measurement value is obtained. Threshold setting means (22) for setting a second threshold value which is a value, and comparison means (22) for outputting binarized data obtained by comparing the luminance of the image with the second threshold value. 23) and An image binarization circuit characterized by:
【請求項2】 第1の領域(3)と、該第1の領域
(3)に囲まれた第2の領域(4)と、該第1の領域
(3)を囲む第3の領域(2)とが有り、該第1の領域
(3)の画像の輝度と第1のしきい値との高低の関係
は、該第2の領域(4)及び該第3の領域(2)の画像
の輝度と該第1のしきい値との高低の関係とは異なり、
かつ、該第1の領域(3)中の該第2の領域(4)の周
囲に、該第1のしきい値と該第1の領域(3)の画像の
輝度の中間の輝度の部分(5)が有る画像を2値化する
画像2値化回路において、 前記しきい値設定手段(22)は、前記最小の測長値
と、前記最小の測長値の測長方向と隣接する2方向の測
長値とを比較し、最小の測長値が該隣接する2方向の測
長値に所定値を足した値を越えるときは、最小の測長値
の関数である第1の関数により前記第2のしきい値を決
め、最小の測長値が該隣接する2方向の測長値に所定値
を足した値以下のときは、最小の測長値の関数である第
2の関数により前記第2のしきい値を決めることを特徴
とする請求項1記載の画像2値化回路。
2. A first region (3), a second region (4) surrounded by the first region (3), and a third region (which surrounds the first region (3) ( 2) and the relationship between the brightness of the image in the first area (3) and the first threshold is higher or lower than that of the second area (4) and the third area (2). Unlike the relationship between the image brightness and the first threshold value,
A portion of the first area (3) having an intermediate brightness between the first threshold value and the brightness of the image of the first area (3) around the second area (4). In the image binarization circuit for binarizing an image with (5), the threshold value setting means (22) is adjacent to the minimum length measurement value and the length measurement direction of the minimum length measurement value. If the minimum length measurement value exceeds the value obtained by adding a predetermined value to the adjacent length measurement values in the two directions, the first length measurement function that is the function of the minimum length measurement value is compared. The second threshold value is determined by a function, and when the minimum length measurement value is less than or equal to the value obtained by adding a predetermined value to the length measurement values in the two adjacent directions, the second length measurement function is the minimum length measurement value. 2. The image binarization circuit according to claim 1, wherein the second threshold value is determined by a function of.
【請求項3】 前記第1及び第2の関数は、区分線形関
数であることを特徴とする請求項2記載の画像2値化回
路。
3. The image binarization circuit according to claim 2, wherein the first and second functions are piecewise linear functions.
【請求項4】 前記第1及び第2の関数は、ロジステッ
ク関数であることを特徴とする請求項2記載の画像2値
化回路。
4. The image binarization circuit according to claim 2, wherein the first and second functions are logistic functions.
JP4183969A 1992-07-10 1992-07-10 Image binarization circuit Withdrawn JPH0630413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4183969A JPH0630413A (en) 1992-07-10 1992-07-10 Image binarization circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4183969A JPH0630413A (en) 1992-07-10 1992-07-10 Image binarization circuit

Publications (1)

Publication Number Publication Date
JPH0630413A true JPH0630413A (en) 1994-02-04

Family

ID=16144997

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4183969A Withdrawn JPH0630413A (en) 1992-07-10 1992-07-10 Image binarization circuit

Country Status (1)

Country Link
JP (1) JPH0630413A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5050376A (en) * 1990-02-08 1991-09-24 Allied-Signal Inc. Control system for diesel particulate trap regeneration system
CN114252450A (en) * 2021-11-01 2022-03-29 南京日托光伏新能源有限公司 Method for detecting circuit residues of conductive core plate of MWT photovoltaic module

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5050376A (en) * 1990-02-08 1991-09-24 Allied-Signal Inc. Control system for diesel particulate trap regeneration system
CN114252450A (en) * 2021-11-01 2022-03-29 南京日托光伏新能源有限公司 Method for detecting circuit residues of conductive core plate of MWT photovoltaic module

Similar Documents

Publication Publication Date Title
JP3279868B2 (en) Defect inspection method and device for inspected pattern
JP2624054B2 (en) Wire stripping condition inspection method
JP2005121546A (en) Defect inspection method
US6909798B1 (en) Method of erasing repeated patterns and pattern defect inspection device
KR100827906B1 (en) Substrate inspection device
JPH0630413A (en) Image binarization circuit
JP2890801B2 (en) Surface scratch inspection device
JP2007003494A (en) Inspection method of wiring pattern, and its device
JP2745778B2 (en) Wiring pattern inspection equipment
JPH08110305A (en) Method and device for inspecting appearance
JP3260425B2 (en) Pattern edge line estimation method and pattern inspection device
JPS6186638A (en) Pattern-defect detecting method
JPH04282442A (en) Pattern inspection apparatus
JP2522174B2 (en) Mounting board inspection equipment
JPH05240627A (en) Pattern inspecting device
JPH0210204A (en) Object detecting method
KR0155814B1 (en) Method for perceiving the chip of pcb
JP2710531B2 (en) Through-hole sorting equipment for printed circuit boards
JP3171949B2 (en) Wire bonding inspection method
JPH07333168A (en) Pattern appearance inspection device
JPH0448249A (en) Device and method for body inspection
JP2002202268A (en) Pattern defect detecting method and pattern defect detector
JPH05152407A (en) Method for detecting levitation of lead in soldering process
JPH0829355A (en) Appearance inspection device and method therefor
JPH03252544A (en) Wiring pattern inspection device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19991005