JP2821044B2 - Setting method and setting device for binarization threshold - Google Patents

Setting method and setting device for binarization threshold

Info

Publication number
JP2821044B2
JP2821044B2 JP3202556A JP20255691A JP2821044B2 JP 2821044 B2 JP2821044 B2 JP 2821044B2 JP 3202556 A JP3202556 A JP 3202556A JP 20255691 A JP20255691 A JP 20255691A JP 2821044 B2 JP2821044 B2 JP 2821044B2
Authority
JP
Japan
Prior art keywords
signal
hole
substrate
light
image
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
JP3202556A
Other languages
Japanese (ja)
Other versions
JPH0520445A (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.)
Screen Holdings Co Ltd
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Screen Holdings Co Ltd
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 Screen Holdings Co Ltd, Dainippon Screen Manufacturing Co Ltd filed Critical Screen Holdings Co Ltd
Priority to JP3202556A priority Critical patent/JP2821044B2/en
Publication of JPH0520445A publication Critical patent/JPH0520445A/en
Application granted granted Critical
Publication of JP2821044B2 publication Critical patent/JP2821044B2/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)
  • Facsimile Image Signal Circuits (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 method and apparatus for setting a threshold for binarizing an image to be processed, which is used, for example, in a wiring pattern inspection of a printed circuit board.

【0002】[0002]

【従来の技術】画像処理において、階調値を有する濃淡
画像(多値画像)を二値化する処理は、画像中の対象を
背景から抽出する代表的な方法である。この二値化処理
においては、適切な2値化閾値の決定法が特に重要であ
る。2値化閾値の決定についてはこれまで数多くの手法
が提案されてきている。例えば濃淡画像の有する画素の
数を各階調値ごとに度数分布として求め、この度数を極
小とする階調値を2値化閾値として決定するなどの手法
が採られる。
2. Description of the Related Art In image processing, a process of binarizing a grayscale image (multi-valued image) having a gradation value is a typical method of extracting an object in an image from a background. In this binarization process, a method of determining an appropriate binarization threshold is particularly important. Many methods have been proposed for determining the binarization threshold. For example, a method is employed in which the number of pixels included in the grayscale image is obtained as a frequency distribution for each gradation value, and the gradation value that minimizes the frequency is determined as a binarization threshold.

【0003】図8(a)はその例を示したものであり、
プリント基板の配線パターン検査において、基板から反
射された光の強度を8ビットの階調値を有する信号に変
換し、画素の階調値に対する度数分布を調べたもの(ヒ
ストグラム)である。階調値の高い側に生じている山は
反射強度の高い配線パターンの存在を示し、低い側に生
じている山は反射強度の低いスルーホール(貫通孔)
び基材の存在を示している。そして配線パターンを2値
化したデータを得たい場合には、反射強度の度数の小さ
な階調値T1 が2値化閾値として採用される。
FIG. 8 (a) shows an example thereof.
In the inspection of a wiring pattern of a printed circuit board, the intensity of light reflected from the board is converted into a signal having an 8-bit gradation value, and the frequency distribution for the gradation value of the pixel is examined (histogram). Mountain occurring on the high side of the gradation value indicates the presence of a high wiring pattern reflection strength, low mountain occurring on the side is low reflection intensity through holes (through holes)
And the presence of a substrate . And when it is desired wiring pattern to obtain a binarized data small tone value T 1 of the frequency of the reflected intensity is employed as a binarization threshold.

【0004】[0004]

【発明が解決しようとする課題】しかし、後述するよう
に、基板の貫通孔を透過する光をも用いて配線パターン
検査を行なうため、基板はガラス等の透光性のステージ
上に載置されて検査されることが多い。このような場合
には、基板からのみならず、基板が載置されていない部
分で、あるいは基板の有する貫通孔を介して、ステージ
によって光が反射される場合がある。
However, as will be described later, since the wiring pattern inspection is performed using light transmitted through the through holes of the substrate, the substrate is mounted on a transparent stage such as glass. Are often inspected. In such a case, light may be reflected by the stage not only from the substrate, but also at a portion where the substrate is not mounted, or through a through hole of the substrate.

【0005】このステージによる反射は、配線パターン
程ではないが、ある程度の強度の反射光を生成するの
で、図8(b)のように、図8(a)のカーブに寄生し
た山が観察される(破線は図8(a)のカーブを示
す)。すると反射強度の度数が小さい階調値はT2 とな
り、本来2値化閾値として設定すべき階調値T1 よりも
大きくなって、基板上の配線パターンのイメージの2値
化を最適化することができないという問題点があった。
[0005] The reflection by this stage generates reflected light of a certain intensity, although not as much as that of the wiring pattern. Therefore, as shown in FIG. 8B, a mountain which is parasitic on the curve of FIG. 8A is observed. (The broken line shows the curve of FIG. 8A). Then gradation value frequency is less reflective intensity T 2, and the larger than the gradation value T 1 to be originally set as the binarization threshold, to optimize the binary image of the wiring pattern on the substrate There was a problem that it was not possible.

【0006】この発明は上記問題点を解決するためにな
されたもので、基板が載置されていない部分で、あるい
は貫通孔を介して、ステージが反射する光が及ぼすヒス
トグラムへの影響を排除し、最適な2値化閾値を得るこ
とができる2値化閾値の設定方法及び設定装置を得るこ
とを目的とする。
The present invention has been made to solve the above problem, and eliminates the influence of light reflected by a stage on a histogram at a portion where a substrate is not mounted or through a through hole. It is an object of the present invention to obtain a method and an apparatus for setting a binarization threshold that can obtain an optimal binarization threshold.

【0007】[0007]

【課題を解決するための手段】この発明にかかる2値化
閾値の設定方法は、(a)第1及び第2の主面及び貫通
孔を有し、比較的反射率が低く、遮光性を有する基板で
あって、更に前記第1の主面において比較的反射率の高
いパターンを有する基板をステージ上に載置し、(b)
前記基板を光学的に読み取ることによって、前記第1主
並びに前記ステージのうち前記基板の載置されていな
い領域及び前記貫通孔のイメージを示す基板信号と、前
記領域及び前記貫通孔のイメージを示すホール信号とを
得る。そして(c)前記基板信号のうち前記領域及び前
記貫通孔のイメージを前記ホール信号によりマスク処理
した補正信号を得て、(d)前記補正信号から前記第1
主面の反射強度に関するヒストグラムを作成し、(e)
前記ヒストグラムの形状に基づいて、前記基板信号を2
値化して前記パターンを識別する2値化閾値を設定す
る。
According to the present invention, there is provided a method for setting a binarization threshold value comprising the steps of: (a) having first and second main surfaces and a through hole, having a relatively low reflectance, and providing a light shielding property; A substrate having a pattern having a relatively high reflectance on the first main surface, the substrate being placed on a stage, and (b)
By optically reading the substrate, of the first main surface and the stage, the substrate is not placed.
Board signal showing the area and the image of the through hole ,
Obtaining a Hall signal indicating the image of the serial area and the through hole. And (c) the area and the front of the substrate signal.
Serial image of the through-hole to obtain a correction signal Lima disk treated by the Hall signal, the first from; (d) the correction signal
A histogram relating to the reflection intensity of the main surface is created, and (e)
Based on the shape of the histogram ,
A binarization threshold for identifying the pattern by the value conversion is set.

【0008】望ましくは、前記ステージは透光性であっ
て、前記(b)においては、(b−1)第1の光源から
前記第1の主面に第1の光を照射し、(b−2)前記領
域及び前記貫通孔を介して前記ステージによって、また
前記第1の主面によって反射された前記第1の光の反射
光を受光して、(b−3)前記反射光の強度を電気信号
に変換して前記基板信号を得る。一方、(b−4)第2
の光源から前記第2の主面に第2の光を照射し、(b−
5)前記貫通孔または前記領域を介して透過する前記第
2の光の透過光を受光して、(b−6)前記透過光の強
度を電気信号に変換して前記ホール信号を得る。
Preferably, the stage is translucent, and in (b), (b-1) irradiating the first main surface with first light from a first light source; -2) The above territory
Receiving reflected light of the first light reflected by the stage through the area and the through hole and by the first main surface; and (b-3) intensity of the reflected light. Is converted into an electric signal to obtain the substrate signal. On the other hand, (b-4) second
Irradiating the second main surface with the second light from the light source of (b-
5) receiving the transmitted light of the second light transmitted through the through hole or the region, and (b-6) converting the intensity of the transmitted light into an electric signal to obtain the hole signal.

【0009】あるいは前記(b)において、(b−7)
光源から前記第1の主面に光を照射し、(b−8)前記
領域及び前記貫通孔を介して前記ステージによって、ま
前記第1の主面によって反射された反射光を受光し
て、(b−9)前記反射光の強度を電気信号に変換して
前記基板信号を得る。そして(b−10)前記基板信号
を閾値で弁別して前記ホール信号を得る。
Alternatively, in the above (b), (b-7)
Light is irradiated to the first main surface from the light source, (b-8) wherein
The stage through the area and the through-hole,
Was by receiving the reflected light reflected by the first major surface to obtain the substrate signal into an electric signal the intensity of the reflected light (b-9). (B-10) The hall signal is obtained by discriminating the substrate signal with a threshold value.

【0010】また、望ましくは前記(c)において、
(c−1)前記ホール信号を2値化して、前記貫通孔及
び前記領域を指定する2値化ホール信号を得て、(c−
2)前記基板信号のうち、前記2値化ホール信号によっ
て指定された前記貫通孔及び前記領域に対応する部分を
所定の値に設定して前記補正信号を得る。
Preferably, in the above (c),
(C-1) binarizing the hall signal to obtain a binarized hall signal designating the through hole and the area;
2) The portion corresponding to the through-hole and the area specified by the binarized Hall signal in the substrate signal is set to a predetermined value to obtain the correction signal.

【0011】さらに望ましくは、前記(c−1)に先立
って、(c−3)前記ホール信号を2次元的に展開して
ホールイメージを得て、(c−4)前記ホールイメージ
を拡大して拡大ホールイメージを得る。そして(c−
5)前記拡大ホールイメージに対応した信号を改めて前
記ホール信号とする。
More preferably, prior to (c-1), (c-3) two-dimensionally expanding the hole signal to obtain a hole image, and (c-4) expanding the hole image. To get an enlarged hall image. And (c-
5) A signal corresponding to the enlarged hall image is used as the hall signal again.

【0012】この発明にかかる2値化閾値の設定装置
は、貫通孔及びパターンを有する基板をその上に載置す
るステージと、前記基板を光学的に読み取る読取手段
と、前記読取手段によって得られた前記基板及び前記ス
テージのうち前記基板の載置されていない領域のイメー
ジと、前記貫通孔及び前記領域とをそれぞれ電気信号に
変換して基板信号、ホール信号を得る変換手段と、前記
基板信号のうち前記領域及び前記貫通孔のイメージを前
ホール信号によりマスク処理した補正信号を得る演算
手段と、前記補正信号からヒストグラムを作成するヒス
トグラム作成手段と、前記ヒストグラムの形状に基づい
て、前記基板信号を2値化して前記パターンを識別する
2値化閾値を設定する閾値設定手段と、を備える。
[0012] setting device binarization threshold according to the present invention comprises a stage for mounting a substrate having a through hole and a pattern thereon, reading means for reading said substrate to optically obtained by said reading means the substrate and the vinegar
An image of a region that is not placed in the substrate of stage, the through hole and the substrate signal by converting said region into respective electrical signals, and converting means for obtaining a Hall signal, the <br/> substrate signal The image of the area and the through hole
Calculating means for obtaining a serial correction signal Lima disk treated by the Hall signal, a histogram creating means for creating a histogram from said correction signal, based on the shape of the histogram
Te, and a threshold setting means for setting a binarization threshold to identify the pattern by binarizing the substrate signal.

【0013】[0013]

【作用】この発明においては、ホールイメージによって
基板イメージをマスク処理して補正イメージを生成す
る。
According to the present invention, a corrected image is generated by masking a substrate image with a hole image.

【0014】この補正イメージを用いてヒストグラムを
作成することで、ステージの反射する光がない場合と殆
んど等しい2値化閾値を求めることができる。
By creating a histogram using this corrected image, it is possible to obtain a binarization threshold almost equal to the case where there is no light reflected from the stage.

【0015】[0015]

【実施例】【Example】

A.基板イメージとホールイメージの生成 図2は本発明の一実施例において用いられる光学式の配
線パターン読取装置100の概略図である。
A. FIG. 2 is a schematic diagram of an optical wiring pattern reading device 100 used in an embodiment of the present invention.

【0016】読取装置100は、検査対象となる基板2
0を載置する透性のステージ15、赤色LED11
1,112,113からなる第1の光源110、赤外L
ED120(第2の光源)、レンズ系140、コールド
ミラー150、反射光用イメージセンサ161、及び透
過光用イメージセンサ162を備えている。
The reading device 100 includes a substrate 2 to be inspected.
0 is placed translucency of stage 15, the red LED11
A first light source 110 comprising infrared rays L,
An ED 120 (second light source), a lens system 140, a cold mirror 150, an image sensor 161 for reflected light, and an image sensor 162 for transmitted light are provided.

【0017】ステージ15は、ステージ15と平行な面
内において互いに直交する2方向に移動するので、その
上に載置した基板20の上面の全体を読み取ることがで
きる。
Since the stage 15 moves in two directions perpendicular to each other in a plane parallel to the stage 15, the entire upper surface of the substrate 20 placed thereon can be read.

【0018】第1の光源110から照射された光は基板
20の第1の主面に形成された配線パターン22、基材
21で反射されてレンズ系140を通ってコールドミラ
ー150に達する。コールドミラー150は赤外光を透
過させるが赤色光を透過させないので、基板20の第1
の主面側で反射された光は更にコールドミラー150で
反射され、反射光LRとして反射光用イメージセンサ1
61に入る。反射光用イメージセンサ161は反射光L
Rの強度を電気的な信号である基板信号PS0に変換す
る。
Light emitted from the first light source 110 is reflected by the wiring pattern 22 and the base material 21 formed on the first main surface of the substrate 20 and reaches the cold mirror 150 through the lens system 140. The cold mirror 150 transmits infrared light but does not transmit red light .
The light reflected on the main surface side is further reflected by the cold mirror 150, and is used as the reflected light LR as the reflected light image sensor 1.
Enter 61. The reflected light image sensor 161 has the reflected light L
Converting the intensity of the R in the substrate signal PS 0 is an electrical signal.

【0019】一方、基板20の第2の主面側に位置する
第2の光源120から照射された光はステージ15の裏
面15aから表面15bを通り、基板20の備えるスル
ーホール25(貫通孔)を介して、あるいは基板20の
載置されていない領域(図示しない)から、レンズ系1
40に至る。この光は赤外光であり、コールドミラー1
50を透過して透過光LTとなって透過光用イメージセ
ンサ162に入る。透過光用イメージセンサ162は、
透過光LTの強度を電気的な信号であるホール信号HS
0 に変換する。基板信号PS0 、ホール信号HS0 はそ
れぞれ配線パターン22、スルーホール25の検出に用
いられる。
Meanwhile, light emitted from <br/> second light source 120 located at the second main surface side of the substrate 20 passes through the back surface 15 a or al surface 15 b of the stage 15 comprises a substrate 20 The lens system 1 is inserted through a through hole 25 (through hole) or from an area (not shown) where the substrate 20 is not mounted.
Reaches 40. This light is infrared light.
The transmitted light 50 passes through the transmitted light LT and enters the transmitted light image sensor 162. The transmitted light image sensor 162 includes:
The intensity of the transmitted light LT is converted into a Hall signal HS which is an electrical signal.
Convert to 0 . The board signal PS 0 and the hole signal HS 0 are used for detecting the wiring pattern 22 and the through hole 25, respectively.

【0020】B.補正イメージの生成 図1は本発明の一実施例において用いられるパターン2
値化処理部200のブロック図である。パターン2値化
処理部200では、読取装置100から得られた基板信
号PS0 、ホール信号HS0 に基づいて、基板のイメー
ジを最適な2値化閾値を用いて2値化した信号PISを
生成する。信号PISは、その後目的によってパターン
切れ検査等に供される。
B. FIG. 1 shows a pattern 2 used in an embodiment of the present invention.
FIG. 3 is a block diagram of a value processing unit 200; The pattern binarization processing unit 200 generates a signal PIS obtained by binarizing the image of the substrate using an optimal binarization threshold based on the substrate signal PS 0 and the hall signal HS 0 obtained from the reading device 100. I do. The signal PIS is thereafter subjected to a pattern break inspection or the like depending on the purpose.

【0021】A/D変換部210,220はそれぞれ基
板信号PS0 、ホール信号HS0 をA/D変換して、例
えば8ビット(=256)の階調値を有するディジタル
信号であるディジタル化基板信号PS、ディジタル化ホ
ール信号HSを得る。
The A / D converter 210 and 220 respectively substrate signal PS 0, and a Hall signal HS 0 converted A / D, digitize substrate is a digital signal having a tone value of the example 8 bits (= 256) A signal PS and a digitized hall signal HS are obtained.

【0022】基板信号PSはマスク処理部230及び2
値化回路270へと送られる。2値化回路270では、
後述するようにして得られる最適な2値化閾値Tで基板
信号PSを2値化して、信号PISを生成する。
The substrate signal PS is supplied to the mask processing units 230 and 2
It is sent to the value conversion circuit 270. In the binarization circuit 270,
The signal PIS is generated by binarizing the substrate signal PS with an optimal binarization threshold T obtained as described later.

【0023】ホール信号HSは2値化処理部240にお
いて2値化され、2値化されたホール信号HISとな
る。この信号HISはマスク処理部230へと送られ、
基板信号PSの作るイメージPIのうちのホール部H
(図3参照)を指定し、非ホール部NHと区別する。基
板信号PSのうちホール部Hに対応する部分を所定の値
に設定することにより補正信号CSが得られ、信号CS
はヒストグラム作成部250へと送られる。
The hall signal HS is sent to a binarization processing unit 240.
And a binarized Hall signal HIS is obtained.
You. This signal HIS is sent to the mask processing unit 230,
Of the image PI created by the substrate signal PSERulePart H
(See Fig. 3)And distinguished from non-hole area NHI do. Base
Board signal PSChihoRulePart HThe part corresponding to
, A correction signal CS is obtained.
Is sent to the histogram creation unit 250.

【0024】ヒストグラム作成部250では、補正信号
CSから階調値ごとの画素の度数をプロットしてヒスト
グラムGを作成する。2値化閾値設定部260ではヒス
トグラムGを元に、例えば度数が最小となる階調値Tを
求め、2値化閾値とする。
The histogram creating section 250 creates a histogram G by plotting the frequency of pixels for each gradation value from the correction signal CS. The binarization threshold setting unit 260 obtains, for example, a gradation value T at which the frequency becomes the minimum based on the histogram G, and sets it as a binarization threshold.

【0025】以下、更に詳しく処理部230,240の
動作を説明する。まず、2値化処理部240において
は、ある閾値THh を用いてホール信号HSを2値化す
る。閾値THh 以上の値を有する領域をホール部Hであ
ると判断し、それ以外の部分を非ホール部NHであると
判断する(ホール部Hはスルーホール25に対応する部
分のみならず、基板20が載置されないステージ上の領
域も含まれる。)。図3はAA′線において読みとられ
たホール信号HSと、基板20の関係を示す。なお、一
般にプリント基板20にスルーホール25を形成する
と、その内壁における光の反射などに起因してホール信
号HSはエッジ部分Eにおいて傾斜を有している。その
結果、図3に示すように、ホール部Hは必ずしもスルー
ホール25と正しく対応するとは限らず、やや小さめと
なる。このような事情に対応するための改良については
後述する。
Hereinafter, the operation of the processing units 230 and 240 will be described in more detail. First, the binarization processing unit 240 binarizes the Hall signal HS with a certain threshold TH h. A region having a value greater than the threshold TH h is determined that the hole portion H, to determine the other portions to be non-hole portions NH (hole portion H is not only part corresponding to the through hole 25, the substrate The area on the stage on which 20 is not placed is also included.) FIG. 3 shows the relationship between the Hall signal HS read on the line AA ′ and the substrate 20. Generally, when the through hole 25 is formed in the printed circuit board 20, the hole signal HS has an inclination at the edge portion E due to light reflection on the inner wall thereof. As a result, as shown in FIG. 3, the hole portion H does not always correspond exactly to the through hole 25, and is slightly smaller. Improvements to cope with such circumstances will be described later.

【0026】図4は基板信号PSと基板20の関係を、
図3と同様にして示したものである。スルーホール25
の位置に対応して、従来の技術で説明したステージによ
る光の反射に起因する反射信号RFが存在する。このよ
うな反射信号RFは第1の光源に対するステージ表面1
5b、裏面15aによるものであるから、ステージ15
上に遮光するものがない領域、つまりホール部Hである
と判断された領域において生じるものである。よって、
注目している場所がホール部Hであるか非ホール部NH
であるかの情報を有している信号HISで、反射信号R
Fの生じる領域をマスクすることができる。
FIG. 4 shows the relationship between the substrate signal PS and the substrate 20.
This is shown in the same manner as FIG. Through hole 25
Corresponding to the position, there is a reflection signal RF resulting from the reflection of light by the stage described in the related art. Such a reflection signal RF is applied to the stage surface 1 for the first light source.
5b and the back surface 15a, the stage 15
This occurs in an area where there is no light shielding above, that is, an area determined to be the hole H. Therefore,
The place of interest is Hall H or non-Hall NH
Is a signal HIS having information on whether the reflected signal R
The region where F occurs can be masked.

【0027】具体的には例えばマスク処理部230にお
いて、基板信号PSと、ホール信号HISの反転信号の
論理積をとればよい。このような場合には、マスク処理
部230は図5に示すように、AND回路231を備え
るだけで構成することができる。補正信号CSのうち、
ホール部Hに対応する信号の値は“0”となり、反射信
号RFの影響を抑えた、配線パターン22を示す信号を
得ることができる。
More specifically, for example, in the mask processing section 230, the logical product of the substrate signal PS and the inverted signal of the Hall signal HIS may be obtained. In such a case, the mask processing unit 230 can be configured only by including the AND circuit 231 as shown in FIG. Of the correction signal CS,
The value of the signal corresponding to the hole portion H is “0”, and a signal indicating the wiring pattern 22 with the influence of the reflection signal RF suppressed can be obtained.

【0028】補正信号CSにおいてホール部Hに対応す
る信号の値は“0”に限られず、後に生成するヒストグ
ラムGから2値化閾値Tを決定するのが容易となるよう
な他の値をとるようにすることもできる。この場合に
は、ホール信号HISが“1”(ホール部Hに対応す
る)の時のみ所定の値(階調値に対応する)を出力し、
“0”(非ホール部NHに対応する)の時には基板信号
PSを出力するようなマルチプレクサを用いてマスク処
理部230を構成することができる。
In the correction signal CS, the value of the signal corresponding to the hole H is not limited to "0", but takes another value that makes it easy to determine the binarization threshold T from the histogram G generated later. You can also do so. In this case, a predetermined value (corresponding to the gradation value) is output only when the hall signal HIS is "1" (corresponding to the hall portion H),
When it is “0” (corresponding to the non-hole portion NH), the mask processing section 230 can be configured using a multiplexer that outputs the substrate signal PS.

【0029】 C.ヒストグラムの生成と2値化閾値の設定 図6に補正信号CSのホール部Hでの値をT3 に設定し
た場合の反射強度のヒストグラムGを示す。このような
ヒストグラムGは反射強度の度数の分布を、階調値毎に
カウントしていくことで得られる。ホール部Hでの階調
値がT3 に設定されたため、ヒストグラムGは階調値T
3 においてピークを有するが、階調値T3 を充分小さく
抑えておけば階調値T1 付近でのヒストグラムの形状に
は影響が現われず、従って図8(a)に示したような理
想的な形状のヒストグラムに対して設定される階調値
(2値化閾値)T1 と殆んど等しい階調値T1 ′(図
6)を、パターンを識別する2値化閾値として設定する
ことができる。
C. Generation of Histogram and Setting of Binarization Threshold FIG. 6 shows a histogram G of the reflection intensity when the value of the correction signal CS at the hole H is set to T 3 . Such a histogram G is obtained by counting the frequency distribution of the reflection intensity for each gradation value. Since the gradation value at the hole H is set to T 3 , the histogram G has the gradation value T
3 has a peak, but if the gradation value T 3 is kept sufficiently small, the shape of the histogram in the vicinity of the gradation value T 1 will not be affected, and therefore the ideal shape as shown in FIG. A tone value T 1 ′ (FIG. 6) which is almost equal to the tone value (binary threshold value) T 1 set for a histogram having a simple shape is set as a binary threshold value for identifying a pattern . Can be.

【0030】D.変形例 (1)「B.補正イメージの生成」で述べたように、ホ
ール部Hは実際のスルーホール25よりも小さく設定さ
れることがあり、図4に示すエッジE付近で反射信号R
Fが大きい場合にはこれをマスクすることができず問題
となる。これに対処するには、ホール部Hのイメージ
(ホールイメージ)HIを拡大処理した後にマスク処理
部230における処理を行なえばよい。
D. Modifications (1) As described in “B. Generation of Corrected Image”, the hole H may be set smaller than the actual through-hole 25, and the reflection signal R near the edge E shown in FIG.
When F is large, it cannot be masked, which causes a problem. In order to cope with this, the processing in the mask processing section 230 may be performed after the image (hole image) HI of the hole H is enlarged.

【0031】具体的には、2値化されたホール信号HI
Sをシフトレジスタを用いて一旦2次元的に展開してホ
ールイメージHIを得た後、これに拡大処理を施して拡
大ホールイメージを生成し、これに対応する拡大ホール
信号をマスク処理部230に供すればよい。
Specifically, the binarized Hall signal HI
S is once expanded two-dimensionally using a shift register to obtain a hole image HI, and then subjected to an enlargement process to generate an enlarged hole image. The corresponding enlarged hole signal is transmitted to the mask processing unit 230. I just need to provide.

【0032】この場合、拡大ホールイメージは少なくと
も実際のスルーホール25が占める領域を覆うように拡
大処理されるが、拡大ホールイメージはパターンに対応
する領域の一部を多少覆ってもこの発明の効果は損なわ
れない。2値化閾値はヒストグラムGにおいて反射強度
の度数の低い階調値が選ばれるので、配線パターン22
のように反射強度が高く、またその度数も大きい領域が
多少減り、図6の階調値T3 において示されるピークが
多少高くなっても、2値化閾値の設定には殆んど影響が
ないためである。
In this case, the enlarged hole image is enlarged so as to cover at least the area occupied by the actual through hole 25. Even if the enlarged hole image slightly covers a part of the area corresponding to the pattern, the effect of the present invention can be obtained. Is not compromised. As the binarization threshold value, a gradation value having a low frequency of reflection intensity in the histogram G is selected.
Reflection intensity is high as, also its power is large area somewhat reduces, also peaks is somewhat higher shown in the gradation value T 3 in FIG. 6, is little effect on the setting of the binarization threshold Because there is no.

【0033】(2)この発明は必ずしも第2の光源を必
要とするものではなく、第1の光源のみでもその効果を
得ることができる。
(2) The present invention does not necessarily require the second light source, and the effect can be obtained only with the first light source.

【0034】図7に示すように基板信号PSに2つの閾
値TH1 ,TH2 を設定し、閾値TH1 以上の値を与え
る領域のうち、閾値TH2 未満の値を与える領域をホー
ル部Hとすることができるので、第2の光源を用いなく
ても2値化されたホール信号HISを得ることができ
る。これをマスク処理部230における処理に供すれば
よい。
As shown in FIG. 7, two threshold values TH 1 and TH 2 are set in the substrate signal PS, and a region giving a value less than the threshold value TH 2 among the regions giving a value not less than the threshold value TH 1 is a hole portion H. Therefore, the binarized Hall signal HIS can be obtained without using the second light source. This may be used for processing in the mask processing unit 230.

【0035】あるいは基板信号PSを一旦仮に2値化し
て2値化信号を求め、これを2次元的に展開したイメー
ジ(パターンイメージ)PIにおいて円形を呈する領域
を探査し、その領域をホール部Hとして求めてもよい。
このような探査の方法は、例えば本出願人による特開昭
63−15374号公報に掲載されている。この後再度
2値化閾値を決定して基板信号PSを2値化し直せばよ
い。
Alternatively, the substrate signal PS is temporarily binarized to obtain a binarized signal, a circular area is searched for in an image (pattern image) PI obtained by two-dimensionally developing the signal, and the area is defined as a hole H May be obtained as
Such an exploration method is disclosed in, for example, Japanese Patent Application Laid-Open No. 63-15374 by the present applicant. After that, the binarization threshold may be determined again and the substrate signal PS may be binarized again.

【0036】[0036]

【発明の効果】以上に説明したようにこの発明の2値化
閾値の設定方法によれば、ホ−ル信号が基板信号をマス
クして補正信号を生成し、この補正信号に基づいて第1
主面の反射強度に関するヒストグラムを作成する。そし
てこのヒストグラムからパターンを識別する2値化閾値
を設定するので、パターンが設けられた基板の第1の主
面のイメージを2値化する際、基板が載置されていない
領域から、あるいは貫通孔を介してステージが反射する
光の影響を除去することができる。
As described above, according to the method for setting the binarization threshold value of the present invention, the hall signal masks the substrate signal to generate a correction signal, and the first signal is generated based on the correction signal.
A histogram relating to the reflection intensity of the main surface is created. Then, since a binarization threshold for identifying a pattern is set from the histogram, when binarizing the image of the first main surface of the substrate on which the pattern is provided, the binarization threshold is set from an area where the substrate is not placed or through the area. The effect of light reflected by the stage through the hole can be eliminated.

【0037】また、この発明の2値化閾値の設定装置に
よれば、上記2値化閾値の設定方法を実行することがで
きる。
Further, according to the binarization threshold setting device of the present invention, the above-described binarization threshold setting method can be executed.

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

【図1】この発明の一実施例に用いるパターン2値化処
理部200のブロック図である。
FIG. 1 is a block diagram of a pattern binarization processing unit 200 used in one embodiment of the present invention.

【図2】この発明の一実施例に用いる光学式の配線パタ
ーン読取装置100の概略図である。
FIG. 2 is a schematic view of an optical wiring pattern reader 100 used in one embodiment of the present invention.

【図3】ホール信号HSとスルーホール25との関係を
示す図である。
FIG. 3 is a diagram illustrating a relationship between a hall signal HS and a through hole 25;

【図4】基板信号PSとステージからの反射による反射
信号RFとの関係を示す図である。
FIG. 4 is a diagram showing a relationship between a substrate signal PS and a reflected signal RF due to reflection from a stage.

【図5】マスク処理部230の構成を示す回路図であ
る。
FIG. 5 is a circuit diagram showing a configuration of a mask processing unit 230.

【図6】ヒストグラムGを示す図である。FIG. 6 is a diagram showing a histogram G;

【図7】この発明の他の実施例を示す説明図である。FIG. 7 is an explanatory view showing another embodiment of the present invention.

【図8】従来の技術を示す説明図である。FIG. 8 is an explanatory diagram showing a conventional technique.

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

15 ステージ 20 プリント基板 22 配線パターン 25 スルーホール(貫通孔) 110 第1の光源 120 第2の光源 210,220 A/D変換部 230 マスク処理部 240 2値化処理部 250 ヒストグラム作成部 260 2値化閾値設定部 PS0 基板信号 PS ディジタル化基板信号 PI パターンイメージ HS0 ホール信号 HS ディジタル化ホール信号 HIS 2値化されたホール信号 HI ホールイメージ CS 補正信号 G ヒストグラム T 2値化閾値Reference Signs List 15 stage 20 printed circuit board 22 wiring pattern 25 through hole (through hole) 110 first light source 120 second light source 210, 220 A / D conversion unit 230 mask processing unit 240 binarization processing unit 250 histogram creation unit 260 binary Digitized threshold value setting unit PS 0 substrate signal PS digitized substrate signal PI pattern image HS 0 hall signal HS digitized hall signal HIS binarized hall signal HI hall image CS correction signal G histogram T binarization threshold

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI H04N 1/403 H04N 1/40 103A (58)調査した分野(Int.Cl.6,DB名) G06T 7/00 G06T 1/00 G06T 5/00 H04N 1/40 G01B 11/00 G01N 21/88──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 6 identification code FI H04N 1/403 H04N 1/40 103A (58) Fields investigated (Int.Cl. 6 , DB name) G06T 7/00 G06T 1 / 00 G06T 5/00 H04N 1/40 G01B 11/00 G01N 21/88

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 (a)第1及び第2の主面及び貫通孔を
有し、比較的反射率が低く、遮光性を有する基板であっ
て、更に前記第1の主面において比較的反射率の高いパ
ターンを有する基板をステージ上に載置する工程と、 (b)前記基板を光学的に読み取ることによって、前記
第1主面並びに前記ステージのうち前記基板の載置され
ていない領域及び前記貫通孔のイメージを示す基板信号
と、前記領域及び前記貫通孔のイメージを示すホール信
号とを得る工程と、 (c)前記基板信号のうち前記領域及び前記貫通孔のイ
メージを前記ホール信号によりマスク処理した補正信号
を得る工程と、 (d)前記補正信号から前記第1主面の反射強度に関す
るヒストグラムを作成する工程と、 (e)前記ヒストグラムの形状に基づいて、前記基板信
号を2値化して前記パターンを識別する、2値化閾値を
設定する工程と、 を備える2値化閾値の設定方法。
(A) a substrate having first and second main surfaces and a through hole, having a relatively low reflectance, and having a light-shielding property, and further having a relatively light-reflecting surface on the first main surface; Placing a substrate having a pattern with a high rate on a stage; and (b) optically reading the substrate to place the substrate on the first main surface and the stage.
A substrate signal showing an image of non region and the through-hole, a step of obtaining a Hall signal indicating the image of the previous SL area and the through hole, of the region and the through-hole of the (c) the substrate signal I
Obtaining a correction signal was Lima disk treated by the Hall signal image, (d) a step of creating a histogram of reflection intensity of the first major surface from said correction signal, the shape of (e) the histogram based on the identifying binary to the pattern of the substrate signal, setting the binarization threshold comprising a step of setting a binarization threshold, the.
【請求項2】 請求項1記載の方法において、 前記ステージは透光性であって、 前記工程(b)は、 (b−1)第1の光源から前記第1の主面に第1の光を
照射する工程と、 (b−2)前記領域及び前記貫通孔を介して前記ステー
ジによって、また前記第1の主面によって反射された前
記第1の光の反射光を受光する工程と、 (b−3)前記反射光の強度を電気信号に変換して前記
基板信号を得る工程と、 (b−4)第2の光源から前記第2の主面に第2の光を
照射する工程と、 (b−5)前記貫通孔または前記領域を介して透過する
前記第2の光の透過光を受光する工程と、 (b−6)前記透過光の強度を電気信号に変換して前記
ホール信号を得る工程と、 を備える2値化閾値の設定方法。
2. The method according to claim 1, wherein said stage is translucent, and said step (b) comprises the steps of: (b-1) placing a first light source on said first main surface from a first light source; Irradiating light; and (b-2) the stay through the region and the through hole.
Receiving the reflected light of the first light reflected by the first main surface by the laser beam; and (b-3) converting the intensity of the reflected light into an electric signal to obtain the substrate signal. (B-4) irradiating the second main surface with second light from a second light source; and (b-5) transmitting the second light through the through hole or the region. (B-6) a step of converting the intensity of the transmitted light into an electric signal to obtain the Hall signal;
【請求項3】 請求項1記載の方法において、 前記工程(b)は、 (b−7)光源から前記第1の主面に光を照射する工程
と、 (b−8)前記領域及び前記貫通孔を介して前記ステー
ジによって、また前記第1の主面によって反射された反
射光を受光する工程と、 (b−9)前記反射光の強度を電気信号に変換して前記
基板信号を得る工程と、 (b−10)前記基板信号を所定の閾値で弁別して前記
ホール信号を得る工程と、 を備える2値化閾値の設定方法。
3. A method according to claim 1 wherein step (b) includes the step of irradiating light to the first major surface from (b-7) light source, (b-8) the region and the The stay through the through hole
By di, and the step of receiving the reflected light reflected by the first major surface, and a step of obtaining the substrate signal into an electric signal the intensity of the reflected light (b-9), (b- And 10) obtaining the Hall signal by discriminating the substrate signal with a predetermined threshold value.
【請求項4】 請求項1記載の方法において、 前記工程(c)は、 (c−1)前記ホール信号を2値化して、前記貫通孔及
び前記領域を指定する2値化ホール信号を得る工程と、 (c−2)前記基板信号のうち、前記2値化ホール信号
によって指定された前記貫通孔及び前記領域に対応する
部分を所定の値に設定して前記補正信号を得る工程と、 を備える2値化閾値の設定方法。
4. The method according to claim 1, wherein the step (c) comprises: (c-1) binarizing the hall signal to obtain a binarized hall signal designating the through hole and the area. (C-2) obtaining the correction signal by setting a portion of the substrate signal corresponding to the through hole and the region specified by the binarized hole signal to a predetermined value; A method for setting a binarization threshold comprising:
【請求項5】 請求項4記載の方法において、 前記工程(c)は、前記工程(c−1)に先立って、 (c−3)前記ホール信号を2次元的に展開してホール
イメージを得る工程と、 (c−4)前記ホールイメージを拡大して拡大ホールイ
メージを得る工程と、 (c−5)前記拡大ホールイメージに対応した信号を改
めて前記ホール信号とする工程と、 を更に備える2値化閾値の設定方法。
5. The method according to claim 4, wherein in the step (c), prior to the step (c-1), (c-3) developing the hole signal two-dimensionally to form a hole image. (C-4) a step of enlarging the hole image to obtain an enlarged hole image; and (c-5) a step of newly converting a signal corresponding to the enlarged hole image into the hole signal. How to set the binarization threshold.
【請求項6】 貫通孔及びパターンを有する基板をその
上に載置するステージと、 前記基板を光学的に読み取る読取手段と、 前記読取手段によって得られた前記基板及び前記ステー
ジのうち前記基板の載置されていない領域のイメージ
と、前記貫通孔及び前記領域とをそれぞれ電気信号に変
換して基板信号、ホール信号を得る変換手段と、 前記基板信号のうち前記領域及び前記貫通孔のイメージ
前記ホール信号によりマスク処理した補正信号を得る
演算手段と、 前記補正信号からヒストグラムを作成するヒストグラム
作成手段と、 前記ヒストグラムから、前記基板信号を2値化して前記
パターンを識別する2値化閾値を設定する閾値設定手段
と、 を備える2値化閾値の設定装置。
6. A stage on which a substrate having a through hole and a pattern is mounted, reading means for optically reading the substrate, the substrate and the stay obtained by the reading means.
An image of a region that is not placed in the substrate of di, the through hole and the front Symbol area and the substrate signal into an electric signal, respectively, and converting means for obtaining a Hall signal, among the substrate signal the Image of area and through hole
Calculating means for obtaining a correction signal Lima disk treated by the Hall signal, the histogram creating means for creating a histogram from the correction signal, from the histogram, the binarizes the substrate signal
Binarization threshold setting device comprising a threshold value setting means for setting a binarization threshold to identify the pattern.
JP3202556A 1991-07-16 1991-07-16 Setting method and setting device for binarization threshold Expired - Fee Related JP2821044B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3202556A JP2821044B2 (en) 1991-07-16 1991-07-16 Setting method and setting device for binarization threshold

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3202556A JP2821044B2 (en) 1991-07-16 1991-07-16 Setting method and setting device for binarization threshold

Publications (2)

Publication Number Publication Date
JPH0520445A JPH0520445A (en) 1993-01-29
JP2821044B2 true JP2821044B2 (en) 1998-11-05

Family

ID=16459459

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3202556A Expired - Fee Related JP2821044B2 (en) 1991-07-16 1991-07-16 Setting method and setting device for binarization threshold

Country Status (1)

Country Link
JP (1) JP2821044B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE60039487D1 (en) 1999-11-12 2008-08-28 Noritsu Koki Co Ltd Apparatus for reading images from a photographic film
JP2002032736A (en) * 2000-07-17 2002-01-31 Dainippon Printing Co Ltd Method and device for defect inspection

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6125194A (en) * 1984-07-13 1986-02-04 株式会社 アスキ− Display controller
JPS6229737A (en) * 1985-07-31 1987-02-07 Toyota Motor Corp Air-fuel ratio controller for internal-combustion engine
JPH076924B2 (en) * 1989-03-31 1995-01-30 大日本スクリーン製造株式会社 Printed circuit board pattern inspection method

Also Published As

Publication number Publication date
JPH0520445A (en) 1993-01-29

Similar Documents

Publication Publication Date Title
CA1252216A (en) Apparatus for automatically inspecting objects and identifying or recognizing known and unknown portions thereof, including defects and the like and method
JPS6229737B2 (en)
JP3279868B2 (en) Defect inspection method and device for inspected pattern
JP2821044B2 (en) Setting method and setting device for binarization threshold
JPH10284359A (en) Device and method for recognizing wafer
JP2821047B2 (en) Setting method of binarization threshold
JP2587600B2 (en) Printed wiring board and printed wiring board inspection equipment
JPH06129992A (en) Inspection device for periodic pattern
JP3260425B2 (en) Pattern edge line estimation method and pattern inspection device
JPH11316179A (en) Method and device for testing crushing of glass plate image pickup method for glass test, and image signal processing method used the method
JP2940821B1 (en) Barcode reading method and barcode reader
JP2000046748A (en) Method and apparatus for inspecting conductor pattern and production of multilayered substrate
JPH07146253A (en) Tester for adhesive polarizing film
JP2968106B2 (en) Via hole inspection equipment
JP3517100B2 (en) Pattern inspection apparatus and pattern inspection method
JPH0526821A (en) Visual inspecting device
JP2003344304A (en) Equipment and method for visual inspection
JPH06203141A (en) Wiring pattern inspecting device
JPS6326508A (en) Inspection device for packaging component
JPH087155B2 (en) Wiring pattern inspection device
JPH03179242A (en) Method and apparatus for inspecting surface
JP2000294139A (en) Method and device for detecting defect of periodic pattern
JPH05164700A (en) Method for inspecting work surface
JP2674320B2 (en) Minimum pattern interval inspection device
JPH0815173A (en) Character and symbol inspection apparatus

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20080828

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees