JPH11281334A - Device for inspecting part - Google Patents

Device for inspecting part

Info

Publication number
JPH11281334A
JPH11281334A JP10081189A JP8118998A JPH11281334A JP H11281334 A JPH11281334 A JP H11281334A JP 10081189 A JP10081189 A JP 10081189A JP 8118998 A JP8118998 A JP 8118998A JP H11281334 A JPH11281334 A JP H11281334A
Authority
JP
Japan
Prior art keywords
light amount
inspected
comparison data
luminance
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.)
Withdrawn
Application number
JP10081189A
Other languages
Japanese (ja)
Inventor
Takehiko Sonoda
健彦 園田
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.)
VANGUARD SYSTEMS KK
Original Assignee
VANGUARD SYSTEMS KK
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 VANGUARD SYSTEMS KK filed Critical VANGUARD SYSTEMS KK
Priority to JP10081189A priority Critical patent/JPH11281334A/en
Publication of JPH11281334A publication Critical patent/JPH11281334A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a part inspecting device for always obtaining proper contrast of an image according to the reflectance of the light of a body to be checked and the reflectance of the light of the background or the like. SOLUTION: This distribution histogram for each luminance of picture elements in the area under consideration of the image for the part to be inspected of a body to be inspected is generated. A luminance threshold value Lmax is decided so that the distribution of the picture elements can be the maximum value at the both sides. A difference T-B between a mean value T of luminance higher than a threshold value and a mean value B of luminance lower than the threshold value is obtained as contrast data D. The light quantity of an illuminating means when the contrast data D can be the maximum value is used as an optical condition.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、半導体素子や他の
電子部品などを光学的に検査する部品検査装置に係わ
り、特に被検査体の照明光量を最適に設定できるように
した部品検査装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a component inspection apparatus for optically inspecting semiconductor devices and other electronic components, and more particularly to a component inspection apparatus capable of optimally setting the amount of illumination of an object to be inspected. .

【0002】[0002]

【従来の技術】半導体素子やその他の電子部品の端子の
揃い状態や素子に印刷されまたは刻印されたマークなど
の検査のために、光学式の部品検査装置が使用される。
この部品検査装置では、電子部品などの被検査体を照明
する照明手段と、照明された被検査体の像を撮影する撮
影手段と、撮影した画像を表示する表示手段とが設けら
れ、この表示手段に表示された画像に基づいて被検査体
のたとえば端子の不揃いその他の検査が行われる。
2. Description of the Related Art An optical component inspection apparatus is used to inspect the alignment of terminals of semiconductor devices and other electronic components, and the marks printed or imprinted on the devices.
In this component inspection apparatus, there are provided illumination means for illuminating an inspection object such as an electronic component, imaging means for capturing an image of the illuminated inspection object, and display means for displaying the captured image. Based on the image displayed on the means, the inspected object is inspected, for example, for uneven terminals and other inspections.

【0003】[0003]

【発明が解決しようとする課題】しかし、前記撮影手段
により撮影された画像を画像処理手段により画像処理し
て例えば被検査体である電子部品の端子の揃い具合など
を検査する場合に、照明の光量が多すぎたり少な過ぎる
と、端子などの被検査部と、背景とのコントラストが不
明瞭になり、その結果、画像処理データを正確に得るこ
とができず、高精度な検査が不可能になる。
However, when the image photographed by the photographing means is image-processed by the image processing means to inspect, for example, the arrangement of the terminals of the electronic component which is the object to be inspected, the lighting of the illumination is required. If the amount of light is too large or too small, the contrast between the part to be inspected, such as a terminal, and the background becomes unclear, and as a result, accurate image processing data cannot be obtained, making high-precision inspection impossible. Become.

【0004】本発明は上記従来の課題を解決するもので
あり、被検査体の光の反射率およびその背景の光の反射
率などに応じて常に適切な画像のコントラストが得られ
るようにした部品検査装置を提供することを目的として
いる。
The present invention has been made to solve the above-mentioned conventional problems, and is a component capable of always obtaining an appropriate image contrast in accordance with the reflectance of light of an object to be inspected and the reflectance of light in the background thereof. It is intended to provide an inspection device.

【0005】[0005]

【課題を解決するための手段】本発明の部品検査装置
は、被検査体を照明するものでかつ光量を調整可能な照
明手段と、前記照明手段の光量を調整する光量調整手段
と、前記被検査体の像を撮影する撮影手段と、前記撮影
手段により撮影された画像を処理する画像処理手段とを
有し、前記画像処理手段では、前記撮影手段により撮影
された画像のうち輝度の高い画素群と輝度の低い画素群
とを対比した対比データを生成し、前記光量調整手段に
より照明手段の光量を変化させながら、異なる光量に対
応した前記対比データを生成し、かつ前記対比データの
うちの最適なものを選択して、この対比データが得られ
たときの光量を最適な光量設定情報として保持すること
を特徴とするものである。
According to the present invention, there is provided a component inspecting apparatus for illuminating an object to be inspected and capable of adjusting the amount of light, light amount adjusting means for adjusting the amount of light of the illuminating means, and A photographing unit for photographing an image of the inspection object; and an image processing unit for processing an image photographed by the photographing unit. The image processing unit includes a pixel having a high luminance in an image photographed by the photographing unit. Generating comparison data comparing a group and a pixel group with low luminance, while changing the light amount of the illumination means by the light amount adjustment means, generating the comparison data corresponding to different light amounts, and among the comparison data It is characterized in that an optimum light amount is selected and the light amount when the comparison data is obtained is held as optimum light amount setting information.

【0006】本発明では、画像処理手段において、輝度
の高い画素群と輝度の低い画素群とを対比して、その対
比状態が最適になるように照明手段での光量を調整して
いる。したがって、撮影手段により撮影された画像のコ
ントラストが最適になり、その後の検査のための画像処
理を確実に行えるようになる。
According to the present invention, in the image processing means, a group of pixels having a high luminance and a group of pixels having a low luminance are compared, and the amount of light in the illuminating means is adjusted so that the state of comparison is optimized. Therefore, the contrast of the image photographed by the photographing means is optimized, and image processing for the subsequent inspection can be performed reliably.

【0007】なお、照明手段による光量の変化は段階的
であってもよいし、連続的であってもよい。
[0007] The change in the amount of light by the illuminating means may be stepwise or continuous.

【0008】例えば、前記画像処理手段では、被検査体
の像に相当する輝度の高い画素群の平均輝度と、画像の
背景に相当する輝度の低い画素群の平均輝度との差を求
め、この差を各光量ごとの対比データとする。
For example, the image processing means finds a difference between the average luminance of a high-luminance pixel group corresponding to the image of the inspected object and the average luminance of a low-luminance pixel group corresponding to the background of the image. The difference is used as comparison data for each light amount.

【0009】上記の最適な対比データの求め方は、種々
考えられるが、例えば、前記差が最大値となる対比デー
タを最適なものとする。あるいは前記差が所定値以上に
なったときに所定値以上のデータのいずれかを選択して
最適な対比データとしてもよい。
There are various methods for obtaining the optimum comparison data. For example, the comparison data having the maximum difference is determined as the optimum one. Alternatively, when the difference becomes equal to or more than a predetermined value, any of data having a value equal to or more than a predetermined value may be selected as optimal comparison data.

【0010】また、対比データは、前記のように輝度の
高い画素群の平均輝度と、輝度の低い画素群の平均輝度
の差ではなく、輝度の高い画素群の画素数の分布がピー
クとなる輝度の値と、輝度の低い画素群の画素数の分布
がピークとなる輝度の値との差であってもよい。
The peak of the comparison data is not the difference between the average luminance of the pixel group with high luminance and the average luminance of the pixel group with low luminance, but the distribution of the number of pixels of the pixel group with high luminance. The difference between the luminance value and the luminance value at which the distribution of the number of pixels of the low-luminance pixel group has a peak may be used.

【0011】また、被検査体に複数箇所の被検査部があ
る場合、前記画像処理手段では、被検査体の複数箇所の
被検査部の対比データを各光量ごとに求め、その平均値
を計算し、この平均値を各光量での対比データとするこ
とができる。
When the inspected object has a plurality of inspected portions, the image processing means obtains comparison data of the inspected portions at the inspected object for each light amount, and calculates an average value thereof. The average value can be used as comparison data for each light amount.

【0012】この処理を行うと、複数箇所の被検査部の
コントラストが良好になる光量設定を簡単にかつ短時間
に設定できるようになる。
By performing this processing, it is possible to easily and quickly set the light amount at which the contrast of a plurality of inspected portions becomes good.

【0013】なお、以下のように個々の被検査部に近接
する照明手段の光量を最適に設定して、個々の被検査部
の画像のコントラストが各々最適になるように設定する
ことができる。
It is to be noted that, as described below, it is possible to set the light amount of the illuminating means adjacent to each of the inspected portions to be optimum so that the contrast of the image of each of the inspected portions becomes optimum.

【0014】すなわち、複数の被検査部を有する被検査
体のうちの1個所の被検査部に近接する照明手段の光量
を変化させながら、前記画像処理手段において、前記1
個所の被検査部に関する対比データを生成するとともに
この対比データのうちの最適なものを選択してこの対比
データが得られたときの光量を前記被検査部に対応する
最適な光量設定情報とし、次に他の1個所の被検査部に
近接する照明手段の光量を変化させながら前記他の1個
所の被検査部に関する最適な光量設定情報を同様にして
求め、全ての被検査部に関する最適な光量設定情報が得
られた後に、前記光量設定情報に基づいて全ての被検査
部に近接する照明手段で同時に照明し、全ての照明手段
の光量を下げながら、全ての被検査部に対応する異なる
光量ごとの対比データの平均値を求め、この平均値が最
適な対比データとなったときを、各照明手段の最適な光
量設定条件として保持することが可能である。
That is, while changing the light amount of the illuminating means which is close to one of the inspected parts of the inspected body having the plurality of inspected parts,
Generate the comparison data for the part to be inspected and select the most appropriate one of the comparison data and set the light amount when the comparison data is obtained as the optimal light amount setting information corresponding to the inspected part, Next, while changing the light amount of the illuminating means adjacent to the other one inspected portion, the optimum light amount setting information for the other one inspected portion is similarly obtained, and the optimum light amount setting information for all the inspected portions is obtained. After the light quantity setting information is obtained, the light sources are simultaneously illuminated by the illumination means close to all the inspected parts based on the light quantity setting information, and while the light quantities of all the illumination means are reduced, the different light quantities corresponding to all the inspected parts are obtained. The average value of the comparison data for each light amount is obtained, and the time when this average value becomes the optimum comparison data can be held as the optimum light amount setting condition of each lighting unit.

【0015】さらに、上記において、複数箇所の被検査
部の対比データの平均値を算出するとき、いずれか1個
所の被検査部の対比データにおける、被検査体の像に相
当する輝度の高い画素群の平均輝度と、画像の背景に相
当する輝度の低い画素群の平均輝度との差が閾値以下の
ときには、この対比データを最適なデータとして使用し
ないことが好ましい。
Further, in the above, when calculating an average value of comparison data of a plurality of inspected portions, a pixel having a high luminance corresponding to an image of the inspected object in comparison data of any one of the inspected portions. When the difference between the average luminance of the group and the average luminance of the low-luminance pixel group corresponding to the background of the image is equal to or smaller than the threshold value, it is preferable that this comparison data is not used as optimal data.

【0016】このようにすると、対比データの平均値が
最適であっても、いずれかの個所のデータがあまりにも
最適でない場合に、そのデータを無視することができ
る。
In this way, even if the average value of the comparison data is optimal, if the data at any point is not too optimal, the data can be ignored.

【0017】次に、最高輝度となる画素の数が所定値以
上であったときには、そのときの対比データを使用しな
いことが好ましい。
Next, when the number of pixels having the highest luminance is equal to or more than a predetermined value, it is preferable not to use the comparison data at that time.

【0018】これは、CCDカメラなどの撮影手段の入
力信号が飽和しているときであり、このデータを無視す
ることにより、過剰コントラストの発生を防止できる。
This is when the input signal of the photographing means such as a CCD camera is saturated. By ignoring this data, the occurrence of excessive contrast can be prevented.

【0019】[0019]

【発明の実施の形態】図1は本発明の部品検査装置の全
体の構造を示すブロック図、図2は照明手段の平面図、
図3は照明手段の斜視図である。図1に示す部品検査装
置は、照明手段1と、照明手段1により照明された被検
査体(ワーク)Wの像を撮影するCCDカメラなどの撮
影手段2と、前記照明手段1の光量を調整する光量調整
手段3と、前記撮影手段2により撮影された画像を処理
する画像処理手段(画像処理装置)4とを有している。
前記光量調整手段3は画像処理手段4によって制御され
る。
FIG. 1 is a block diagram showing the entire structure of a component inspection apparatus according to the present invention, FIG.
FIG. 3 is a perspective view of the lighting means. A component inspection apparatus shown in FIG. 1 includes an illumination unit 1, a photographing unit 2 such as a CCD camera for photographing an image of an inspection object (work) W illuminated by the illumination unit 1, and a light amount of the illumination unit 1. And an image processing means (image processing device) 4 for processing an image photographed by the photographing means 2.
The light amount adjusting means 3 is controlled by an image processing means 4.

【0020】また前記撮影手段2により撮影されて画像
処理装置4により処理される画像は、表示手段(ディス
プレイ装置)5に表示される。また、符号6は、画像処
理手段4であるコンピュータを操作する入力装置であ
る。図2および図3に示すように、照明手段1は、箱状
のケース10を有し、このケース10には、前記光量調
整手段3に接続するためのコネクタ11が設けられてい
る。
An image photographed by the photographing means 2 and processed by the image processing device 4 is displayed on a display means (display device) 5. Reference numeral 6 denotes an input device for operating a computer serving as the image processing means 4. As shown in FIGS. 2 and 3, the lighting means 1 has a box-shaped case 10, and the case 10 is provided with a connector 11 for connecting to the light amount adjusting means 3.

【0021】ケース10には、上下に貫通する窓12が
形成されている。図3に示す状態からケース10を下げ
てケース10で被検査体Wを覆うようにすると、ケース
10の上方から前記窓12を通して、その下に位置する
被検査体Wを見ることができる。前記撮影手段2は、窓
12の上方から被検査体Wに対向している。
The case 10 has a window 12 penetrating vertically. When the case 10 is lowered from the state shown in FIG. 3 so as to cover the test object W with the case 10, the test object W located thereunder can be seen through the window 12 from above the case 10. The photographing unit 2 faces the inspection object W from above the window 12.

【0022】照明手段1の前記ケース10内には、上段
の照明体13、中段の照明体14、および下段の照明体
15が設けられている。上段の照明体13は、被検査体
Wに対して真上から光を与えるものであり、窓12の周
囲に13a,13b,13c,13dで示すように4個
所設けられている。中段の照明体14は、被検査体Wに
45度斜め上方から光を与えるものであり、窓12の周
囲に14a,14b,14c,14dで示すように4個
所設けられている。下段の照明体15は、被検査体Wの
側方にて垂直に設けられ、被検査体Wに側方から水平に
光が与えられる。この下段の照明体15は、窓12の周
囲に15a,15b,15c,15dに示すように4個
所設けられている。
In the case 10 of the illuminating means 1, an upper illuminator 13, a middle illuminator 14, and a lower illuminator 15 are provided. The upper illuminating body 13 gives light to the inspected object W from directly above, and is provided at four locations around the window 12 as shown by 13a, 13b, 13c, and 13d. The middle illuminating body 14 applies light to the inspected body W obliquely from above by 45 degrees, and is provided at four locations around the window 12 as shown by 14a, 14b, 14c, and 14d. The lower illuminating body 15 is provided vertically on the side of the inspected object W, and the light is given to the inspected object W horizontally from the side. The lower illuminating body 15 is provided at four locations around the window 12 as shown by 15a, 15b, 15c, and 15d.

【0023】図2と図3に示す被検査体Wは、半導体素
子(IC)であり、その4方向に端子W1,W2,W
3,W4が突設している。この実施の形態では、照明体
13a,14a,15aが、端子W1に近接し、照明体
13b,14b,15bが、端子W2に近接し、照明体
13c,14c,15cが、端子W3に近接し、照明体
13d,14d,15dが、端子W4に近接している。
さらに、被検査体Wの上面にはもう1個所の被検査部と
してマークWaが印刷され、または刻印されて設けられ
ている。
The device under test W shown in FIGS. 2 and 3 is a semiconductor device (IC) and has terminals W1, W2, W in four directions.
3, W4 protrude. In this embodiment, the lighting bodies 13a, 14a, and 15a approach the terminal W1, the lighting bodies 13b, 14b, and 15b approach the terminal W2, and the lighting bodies 13c, 14c, and 15c approach the terminal W3. And the lighting bodies 13d, 14d, and 15d are close to the terminal W4.
Further, a mark Wa is printed or engraved on the upper surface of the inspected object W as another inspected portion.

【0024】次に上記部品検査装置での照明輝度の調整
方法を説明する。図5は、前記照明輝度の調整方法を説
明するためのフローチャートである。被検査体Wは照明
手段1のケース10に開口する窓12を通して、撮影手
段2により撮影され、その画像が表示手段5に表示され
るとともに、画像処理手段4により画像処理される。
Next, a description will be given of a method of adjusting the illumination luminance in the above-described component inspection apparatus. FIG. 5 is a flowchart for explaining the method of adjusting the illumination luminance. The inspected object W is photographed by the photographing means 2 through the window 12 opened in the case 10 of the lighting means 1, and its image is displayed on the display means 5 and image-processed by the image processing means 4.

【0025】この画像処理では、図5のST1(ステッ
プ1)に示すように、撮影手段2により撮影された画像
の中で注目領域が設定される。この注目領域は図2に示
している。図2では、注目領域を,,,,で
示している。画像処理では、画像のうち、前記注目領域
,,,、にウインドウを設定する。前記注目
領域は、端子W1、は端子W2、は端子W3、
は端子W4、はマークWaの部分である。
In this image processing, an attention area is set in the image photographed by the photographing means 2 as shown in ST1 (step 1) of FIG. This attention area is shown in FIG. In FIG. 2, the attention areas are indicated by,,,. In the image processing, windows are set in the regions of interest,. The noted area includes a terminal W1, a terminal W2, a terminal W3,
Denotes a terminal W4, and denotes a mark Wa portion.

【0026】まず、ST2において、光量調整手段3に
よって照明手段1の各照明体の光量が設定される。ST
3では、この光量のときの被検査体Wの撮影画像のうち
の前記注目領域,,,,が同時にまたは個別
に画像処理手段4に取り込まれる。ST4では、注目領
域について輝度ヒストグラムが計測され、このヒストグ
ラムにより高い輝度と低い輝度との差が対比データとし
て保持される。次にST5では、光量調整手段3により
照明手段1の各照明体の光量の全変更が完了したか否か
監視され、完了していないときには、ST2で照明の光
量が変更され、ST3とST4が繰り返される。ST5
において、全ての光量の条件でのヒストグラムの計測と
対比データの保持が完了したと判断されたときには、S
T6において、各データが比較されて最適な光量の条件
が求められる。ST7では、最適な条件に基づいて照明
手段1の照明光量が設定される。
First, in ST 2, the light amount of each illuminating body of the illuminating means 1 is set by the light amount adjusting means 3. ST
At 3, the noted areas of the photographed image of the inspection object W at this light amount are taken into the image processing means 4 simultaneously or individually. In ST4, a luminance histogram is measured for the attention area, and the difference between the high luminance and the low luminance is stored as comparison data in the histogram. Next, in ST5, the light amount adjusting means 3 monitors whether or not all changes in the light amount of each illuminating body of the illuminating means 1 have been completed. If not, the light amount of illumination is changed in ST2, and ST3 and ST4 are executed. Repeated. ST5
In S, when it is determined that the measurement of the histogram and the holding of the comparison data under all light quantity conditions are completed,
At T6, the respective data are compared to determine an optimal light amount condition. In ST7, the illumination light amount of the illumination means 1 is set based on the optimal conditions.

【0027】その後は、被検査体Wに対して最適化され
た条件で照明が行われ、その照明に基づいて撮影手段2
で撮影された画像が処理され、例えば各端子の不揃いが
あるか否か、またはマークWaが確実に印されているか
などの判別が行われる。上記の同じ被検査体Wの検査を
行っている間、照明手段1の光量を常に同じに設定して
おいてもよいし、あるいは図5に示すフローを常に行
い、または間欠的に行って、必要に応じて照明条件を変
更してもよい。
Thereafter, illumination is performed on the object to be inspected W under the optimized conditions.
Is processed, and it is determined, for example, whether or not there is an irregularity in each terminal, or whether or not the mark Wa is reliably marked. While the same inspection object W is being inspected, the light amount of the illumination means 1 may always be set to the same value, or the flow shown in FIG. 5 may be always performed, or may be performed intermittently. The lighting conditions may be changed as needed.

【0028】次に、前記照明輝度の調整方法の詳細を説
明する。 (ST4;輝度ヒストグラム計測)画像処理手段4で
は、撮影手段2により撮影された画像のうちの1つの注
目領域での輝度と画素数との関係から図4に示すような
分布を求める。輝度は、8ビット(256階調)の2次
元データに変換され、各輝度ごとに画素の分布数を求
め、ヒストグラムを生成する。図4はそのヒストグラム
の一例を示している。
Next, the method of adjusting the illumination luminance will be described in detail. (ST4: Luminance Histogram Measurement) The image processing means 4 obtains a distribution as shown in FIG. 4 from the relationship between the luminance and the number of pixels in one region of interest in the image photographed by the photographing means 2. The luminance is converted into 8-bit (256 gradations) two-dimensional data, the number of pixel distributions is determined for each luminance, and a histogram is generated. FIG. 4 shows an example of the histogram.

【0029】次に図4に示すヒストグラムから輝度閾値
Lmaxを求める。図4に示すヒストグラムにおいて、
いずれかの輝度を閾値Lとして画素分布を2つのグルー
プに分けたときに、2つのグループの画素数の分散が最
大となるときの閾値Lmaxを求める。すなわち閾値L
よりも輝度の低い画素の累積数と、閾値Lよりも輝度の
高い画素の累積数がともに最も多くなるLの値をLma
xとする。上記輝度閾値Lmaxよりも輝度の高い領域
の画素群は、例えば被検査体Wの端子により光が反射さ
れ、またはマークWaによって光が反射された被検査部
の像に対応しており、前記輝度閾値Lmaxよりも輝度
の低い領域の画素群は、前記端子の背景、またはマーク
Waの周囲の背景の像に対応している。
Next, a luminance threshold value Lmax is obtained from the histogram shown in FIG. In the histogram shown in FIG.
When one of the luminances is set as the threshold L and the pixel distribution is divided into two groups, a threshold Lmax at which the variance of the number of pixels in the two groups is maximized is determined. That is, the threshold L
The value of L at which the cumulative number of pixels with lower luminance than the threshold value and the cumulative number of pixels with higher luminance than the threshold value L are the largest is Lma.
x. The pixel group in a region where the luminance is higher than the luminance threshold Lmax corresponds to, for example, an image of a portion to be inspected in which light is reflected by a terminal of the inspected object W or light is reflected by a mark Wa. The pixel group in a region whose luminance is lower than the threshold value Lmax corresponds to the background image of the terminal or the background image around the mark Wa.

【0030】次に、図4に示すヒストグラムから輝度閾
値Lmaxよりも高い領域にある画素の輝度の合計(累
計)からその輝度の平均値を求め、この平均値を平均輝
度Tとする。同様に、輝度閾値Lmaxよりも低い領域
にある画素の輝度の合計(累計)からその輝度の平均値
を求め、この平均値を平均輝度Bとする。前記平均輝度
の差D=T−Bをそれぞれの注目領域の対比データとす
る。
Next, from the histogram shown in FIG. 4, an average value of the luminance is obtained from the total (cumulative) luminance of the pixels in the region higher than the luminance threshold Lmax, and this average value is set as the average luminance T. Similarly, an average value of the luminance is obtained from the sum (accumulated) of the luminance of the pixels in the area lower than the luminance threshold Lmax, and this average value is set as the average luminance B. The difference D = T−B of the average luminance is set as comparison data of each attention area.

【0031】(ST6;最適化条件)前記対比データ
(平均輝度の差D=T−B)が所定値以上のときに、最
良のデータとする。この実施の形態では、画像処理手段
4において、対比データDが最大値のときに、被検査部
と背景とのコントラストが最良であると判断する。な
お、図4において、輝度が高い領域の画素数のピークP
tが現れているときの輝度と、輝度が低い領域の画素数
の分布のピークPbが現れているときの輝度との差を前
記対比データとして用いてもよい。
(ST6: Optimization Condition) When the comparison data (difference in average luminance D = T−B) is equal to or larger than a predetermined value, the data is determined as the best data. In this embodiment, when the comparison data D has the maximum value, the image processing unit 4 determines that the contrast between the inspected portion and the background is the best. It should be noted that in FIG.
The difference between the luminance when t appears and the luminance when the peak Pb of the distribution of the number of pixels in the low luminance area appears may be used as the comparison data.

【0032】また、図4に示すヒストグラムにおいて、
最も輝度の高い(図4では255階調)画素数が全体に
占める率を最高輝度占有率Rとし、この最高輝度占有率
Rが所定値(例えば10%)以上のときは、CCDカメ
ラなどの撮影手段2の光入力が飽和状態であると判断す
る。
In the histogram shown in FIG.
The ratio of the number of pixels having the highest luminance (255 gradations in FIG. 4) to the whole is defined as the maximum luminance occupancy R. When the maximum luminance occupancy R is equal to or more than a predetermined value (for example, 10%), a CCD camera or the like is used. It is determined that the light input of the photographing means 2 is in a saturated state.

【0033】(全照明体の一括調整)図4に示すヒスト
グラムに基づいて照明手段1の各照明体の光量を調整す
る方法として、全注目領域,,,,のコント
ラストが平均的に最良になるように、全照明体の光量を
一括で調整する方法がある。この方法は、例えば全照明
体を一旦消灯し、最初に上段の照明体13(13a,1
3b,13c,13d)の光量を同時に段階的に多くし
ていく。照明体の光量が例えば5ビット(32段階)で
設定可能なときには、上段の全ての照明体13の光量を
1段ごと、2段ごと、3段ごと、または4段ごとに多く
していく。そして、上段の全ての照明体13で設定され
る光量ごとに、それぞれの注目領域,,,,
別に図4に示すヒストグラムから対比データ(平均輝度
の差D=T−B)を求め、注目領域,,,,
の各対比データDの平均値Daを求める。こときに、い
ずれかの注目領域において、前記対比データDがきわめ
て小さく、閾値CTよりも小さい場合には、このデータ
を無視する。
(Batch adjustment of all illuminating bodies) As a method of adjusting the light amount of each illuminating body of the illuminating means 1 based on the histogram shown in FIG. 4, the contrast of all the attention areas,. As described above, there is a method of adjusting the light amounts of all the illuminators at once. In this method, for example, all the illuminating bodies are temporarily turned off, and the illuminating body 13 (13a, 1
3b, 13c and 13d) are gradually increased at the same time. When the light quantity of the illuminating body can be set at, for example, 5 bits (32 steps), the light quantity of all the upper illuminating bodies 13 is increased by one step, two steps, three steps, or four steps. Then, for each light amount set by all the lighting bodies 13 in the upper stage, the respective attention areas,.
Separately, comparison data (difference in average luminance D = T−B) is obtained from the histogram shown in FIG.
The average value Da of each comparison data D is obtained. At this time, if the comparison data D is extremely small and is smaller than the threshold value CT in any one of the attention areas, this data is ignored.

【0034】前記評価を、上段の照明体13の光量を段
階的に多くしていきながらそれぞれの光量について行
い、次に、上段の照明体13を消灯し、中段の照明体1
4(14a,14b,14c,14d)を全て同時に点
灯し、全ての中段の照明体14の光量を前記のように所
定の段階で多くしていく。次に、上段の照明体13と中
段の照明体14を消灯し、下段の全ての照明体15(1
5a,15b,15c,15d)を点灯し、全ての下段
の照明体15の光量を同時に所定の段階で多くしてい
く。
The above evaluation is performed for each light amount while increasing the light amount of the upper illuminating body 13 stepwise. Next, the upper illuminating body 13 is turned off, and the middle illuminating body 1 is turned off.
4 (14a, 14b, 14c, 14d) are all turned on at the same time, and the light quantity of all the middle illuminators 14 is increased in a predetermined stage as described above. Next, the upper illuminating body 13 and the middle illuminating body 14 are turned off, and all the lower illuminating bodies 15 (1
5a, 15b, 15c, 15d) are turned on, and the light amounts of all lower illuminating bodies 15 are simultaneously increased in a predetermined stage.

【0035】前記下段、中段、上段の照明体によりそれ
ぞれの光量で照明されたときの全ての場合に関し、前記
対比データDの平均値Daを求める。ただし、使用する
平均値Daは、以下の条件を満たすものに限る。 条件1:全ての注目領域の対比データDのうち前記の閾
値CT以下のものがないこと、 条件2:全ての注目領域の対比データDのうち、前記の
最高輝度占有率Rが所定値以下であること、
The average value Da of the comparison data D is obtained for all cases when the lower, middle, and upper illuminators illuminate with respective light amounts. However, the average value Da used is limited to those satisfying the following conditions. Condition 1: There is no comparison data D of all the attention areas that is equal to or less than the threshold CT. Condition 2: Among the comparison data D of all attention areas, the maximum luminance occupancy R is equal to or less than a predetermined value. There is,

【0036】前記の条件にあてはまる対比データを使用
したそれぞれの光量での平均値Daのうちの最大値Da
maxを最適な光量の設定条件とする。画像処理手段4
では、最大値Damaxが得られたときに点灯した照明
体およびそのときの光量を最適な光量の設定条件として
記憶し、前記被検査体Wに対しては、この最適条件の光
量となるように照明手段1で照明し、撮影手段2で撮影
した画像を処理して、端子W1,W2,W3,W4の不
揃いや曲がり、またはマークWaの不良などの検査が行
われる。
The maximum value Da of the average values Da at the respective light amounts using the comparison data satisfying the above conditions.
max is set as an optimum light amount setting condition. Image processing means 4
Then, the illuminating body illuminated when the maximum value Damax is obtained and the light amount at that time are stored as optimum light amount setting conditions, and the light amount under the optimum condition is set for the inspection object W. The image illuminated by the illuminating means 1 and the image captured by the imaging means 2 are processed to inspect the terminals W1, W2, W3, W4 for irregularity or bending, or a defect of the mark Wa.

【0037】なお、前記では、上段の照明体のみを光量
レベルを変えて点灯し、次に中段の照明体のみを光量レ
ベルを変えて点灯し、その後に下段の照明体のみを光量
レベルを変えて点灯しているが、全ての段のまたは2段
の照明体を点灯し、その光量をランダムに変えて、それ
ぞれの光量で前記平均値Daを求め、その最大値Dam
axを最良の対比データとして使用してもよい。なお、
照明体の光量を段階的に多くする代わりに、光量を連続
的に多くしていき、所定の間隔を開けた光量ごとに対比
データを作成してもよい。
In the above description, only the upper illuminator is turned on with the light level changed, then only the middle illuminator is turned on with the light level changed, and then only the lower illuminator is changed in light level. Is turned on, but all or two stages of lighting bodies are turned on, the light amount is randomly changed, and the average value Da is obtained for each light amount, and the maximum value Dam is obtained.
ax may be used as the best contrast data. In addition,
Instead of increasing the amount of light of the illuminating body stepwise, the amount of light may be increased continuously, and comparison data may be created for each amount of light at predetermined intervals.

【0038】(各照明体の個別調整)また、各注目領域
,,,,への照明光量を個別に設定して、調
整を行うことが可能である。まず、端子W1が存在する
注目領域に近接する照明体13a,14a,15a以
外の照明体を消灯した状態で、前記照明体13aのみの
光量を段階的に多くしていき、次に、照明体14aのみ
の光量を段階的に変化させて点灯し、次に照明体15a
のみの光量を段階的に(または連続的に)変化させて点
灯する。それぞれの照明体のそれぞれの光量につき、図
4に示すヒストグラムから対比データ(平均輝度の差D
=T−B)を求めるが、この対比データでは、前記条件
2を満たすもののみを使用する。そして注目領域にお
いて前記対比データDが最大値となったものを、その注
目領域での最適な光量条件とする。
(Individual Adjustment of Each Illuminating Object) It is also possible to individually set and adjust the amount of illumination light to each of the attention areas,. First, in a state where the illuminating bodies other than the illuminating bodies 13a, 14a, and 15a close to the attention area where the terminal W1 exists are turned off, the light amount of only the illuminating body 13a is gradually increased. The light is turned on by changing the light amount of only 14a stepwise, and then the illuminating body 15a
Lighting is performed by changing only the light amount in a stepwise (or continuous) manner. For each light amount of each illuminator, comparison data (difference in average luminance D
= T−B), but in this comparison data, only those satisfying the above condition 2 are used. Then, the data having the maximum value of the comparison data D in the attention area is set as the optimum light amount condition in the attention area.

【0039】上記と同様に、端子W2,W3,W4の注
目領域,,に近接する全ての照明について個別に
照明体の光量を変化させて、各領域ごとに、最適な対比
データすなわち対比データDの最大値を求める。全ての
端子W1,W2,W3,W4について最適な対比データ
が得られたら、各照明体を前記最適な対比データが得ら
れたときの光量で全て同時に点灯する。全ての照明体を
点灯させると、被検査体Wに対して照明過剰となる。よ
って、全ての照明体の光量を1レベルずつ下げながら
(または連続的に下げながら)、消灯に至るまで、全て
の光量ごとにマークWaを含めた各注目領域,,
,,の対比データの平均値Daを算出する。そし
て、前記平均値の最大値Damaxが得られたときを、
最良の光量設定条件とする。
In the same manner as described above, the amount of light of the illuminating body is individually changed for all the illuminations in the vicinity of the attention areas of the terminals W2, W3, and W4, and the optimum comparison data, that is, the comparison data D Find the maximum value of. When the optimum contrast data is obtained for all the terminals W1, W2, W3, and W4, all the illuminators are turned on at the same time with the light amount at which the optimum comparison data was obtained. When all the illuminators are turned on, the subject W is over-illuminated. Therefore, while reducing the light amounts of all the illuminating objects by one level (or continuously decreasing them), each attention area including the mark Wa for every light amount until the light is turned off.
,,, Are calculated. Then, when the maximum value Damax of the average value is obtained,
The best light amount setting condition is used.

【0040】[0040]

【発明の効果】以上のように、本発明では、部品検査装
置において最適な照明条件を算出することができる。適
正な条件で被検査体が照明されることにより、画像処理
を用いた部品などの検査を最適に行えるようになる。
As described above, according to the present invention, an optimum illumination condition can be calculated in the component inspection apparatus. By illuminating the object to be inspected under appropriate conditions, it becomes possible to optimally inspect parts and the like using image processing.

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

【図1】本発明の部品検査装置の全体構成を示すブロッ
ク図、
FIG. 1 is a block diagram showing the overall configuration of a component inspection apparatus according to the present invention;

【図2】照明手段の平面図、FIG. 2 is a plan view of a lighting unit,

【図3】照明手段の斜視図、FIG. 3 is a perspective view of a lighting unit,

【図4】輝度ヒストグラムを説明する線図、FIG. 4 is a diagram illustrating a luminance histogram;

【図5】照明手段の輝度設定手順を示すフローチャー
ト、
FIG. 5 is a flowchart showing a procedure for setting the luminance of the lighting unit;

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

1 照明手段 2 撮影手段 3 光量調整手段 4 画像処理手段 5 表示手段 10 ケース 12 窓 13 上段の照明体 14 中段の照明体 15 下段の照明体 W 被検査体 DESCRIPTION OF SYMBOLS 1 Illumination means 2 Imaging means 3 Light quantity adjustment means 4 Image processing means 5 Display means 10 Case 12 Window 13 Upper illuminator 14 Middle illuminator 15 Lower illuminator W Inspection object

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 被検査体を照明するものでかつ光量を調
整可能な照明手段と、前記照明手段の光量を調整する光
量調整手段と、前記被検査体の像を撮影する撮影手段
と、前記撮影手段により撮影された画像を処理する画像
処理手段とを有し、前記画像処理手段では、前記撮影手
段により撮影された画像のうち輝度の高い画素群と輝度
の低い画素群とを対比した対比データを生成し、前記光
量調整手段により照明手段の光量を変化させながら、異
なる光量に対応した前記対比データを生成し、かつ前記
対比データのうちの最適なものを選択して、この対比デ
ータが得られたときの光量を最適な光量設定情報として
保持することを特徴とする部品検査装置。
An illumination unit configured to illuminate an object to be inspected and to adjust a light amount; a light amount adjustment unit to adjust a light amount of the illumination unit; a photographing unit to photograph an image of the object to be inspected; Image processing means for processing an image photographed by the photographing means, wherein the image processing means contrasts a high-luminance pixel group and a low-luminance pixel group in the image photographed by the photographing means. Data is generated, while changing the light amount of the illumination means by the light amount adjusting means, the comparison data corresponding to different light amounts is generated, and an optimum one of the comparison data is selected, and the comparison data is selected. A component inspection apparatus characterized in that the obtained light amount is held as optimal light amount setting information.
【請求項2】 前記画像処理手段では、被検査体の像に
相当する輝度の高い画素群の平均輝度と、画像の背景に
相当する輝度の低い画素群の平均輝度と、の差を求め、
この差を各光量ごとの対比データとする請求項1記載の
部品検査装置。
2. The image processing means calculates a difference between an average luminance of a high-luminance pixel group corresponding to an image of an object to be inspected and an average luminance of a low-luminance pixel group corresponding to an image background.
2. The component inspection apparatus according to claim 1, wherein the difference is used as comparison data for each light amount.
【請求項3】 前記差が最大値となる対比データを最適
なものとする請求項2記載の部品検査装置。
3. The component inspection apparatus according to claim 2, wherein the comparison data having the maximum difference is optimized.
【請求項4】 前記画像処理手段では、被検査体の複数
箇所の被検査部の対比データを各光量ごとに求め、その
平均値を計算し、この平均値を各光量での対比データと
する請求項2または3記載の部品検査装置。
4. The image processing means obtains comparison data of a plurality of parts to be inspected on an object to be inspected for each light amount, calculates an average value thereof, and uses the average value as comparison data at each light amount. The component inspection apparatus according to claim 2.
【請求項5】 複数の被検査部を有する被検査体のうち
の1個所の被検査部に近接する照明手段の光量を変化さ
せながら、前記画像処理手段において、前記1個所の被
検査部に関する対比データを生成するとともにこの対比
データのうちの最適なものを選択してこの対比データが
得られたときの光量を前記被検査部に対応する最適な光
量設定情報とし、次に他の1個所の被検査部に近接する
照明手段の光量を変化させながら前記他の1個所の被検
査部に関する最適な光量設定情報を同様にして求め、全
ての被検査部に関する最適な光量設定情報が得られた後
に、前記光量設定情報に基づいて全ての被検査部に近接
する照明手段で同時に照明し、全ての照明手段の光量を
下げながら、全ての被検査部に対応する異なる光量ごと
の対比データの平均値を求め、この平均値が最適な対比
データとなったときを、各照明手段の最適な光量設定条
件として保持する請求項2または3記載の部品検査装
置。
5. The image processing device according to claim 1, wherein the light amount of the illumination means which is close to one of the inspected portions of the inspected object having the plurality of inspected portions is changed. Generate the comparison data, select the most appropriate one of the comparison data, and set the light amount when the comparison data is obtained as the optimum light amount setting information corresponding to the inspected portion. While changing the light amount of the illuminating means close to the part to be inspected, the optimum light amount setting information for the other one part to be inspected is similarly obtained, and the optimum light amount setting information for all the parts to be inspected can be obtained. After that, based on the light amount setting information, the illumination units adjacent to all the inspection units are simultaneously illuminated, and while reducing the light amounts of all the illumination units, the comparison data of the different light amounts corresponding to all the inspection units are reduced. average 4. The component inspection apparatus according to claim 2, wherein a value is obtained, and a time when the average value becomes optimum comparison data is held as an optimum light amount setting condition of each lighting unit.
【請求項6】 複数箇所の被検査部の対比データの平均
値を算出するとき、いずれか1個所の被検査部の対比デ
ータにおける、被検査体の像に相当する輝度の高い画素
群の平均輝度と、画像の背景に相当する輝度の低い画素
群の平均輝度と、の差が閾値以下のときには、この対比
データを最適なデータとして使用しない請求項4または
5記載の部品検査装置。
6. When calculating an average value of comparison data of a plurality of inspected portions, an average of a group of pixels having high luminance corresponding to an image of the inspected object in comparison data of any one of the inspected portions. The component inspection apparatus according to claim 4, wherein the comparison data is not used as optimal data when a difference between the luminance and an average luminance of a low-luminance pixel group corresponding to a background of the image is equal to or smaller than a threshold.
【請求項7】 最高輝度となる画素の数が所定値以上で
あったときには、そのときの対比データを使用しない請
求項1ないし6のいずれかに記載の部品検査装置。
7. The component inspection apparatus according to claim 1, wherein when the number of pixels having the highest luminance is equal to or more than a predetermined value, the comparison data at that time is not used.
JP10081189A 1998-03-27 1998-03-27 Device for inspecting part Withdrawn JPH11281334A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10081189A JPH11281334A (en) 1998-03-27 1998-03-27 Device for inspecting part

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10081189A JPH11281334A (en) 1998-03-27 1998-03-27 Device for inspecting part

Publications (1)

Publication Number Publication Date
JPH11281334A true JPH11281334A (en) 1999-10-15

Family

ID=13739532

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10081189A Withdrawn JPH11281334A (en) 1998-03-27 1998-03-27 Device for inspecting part

Country Status (1)

Country Link
JP (1) JPH11281334A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008089524A (en) * 2006-10-05 2008-04-17 Meidensha Corp Wear measurement device for trolley wire
JP2008122198A (en) * 2006-11-10 2008-05-29 Omron Corp Sight sensor and illumination setting method
JP2009216515A (en) * 2008-03-10 2009-09-24 Tokyo Electron Ltd Defect inspection method, program, and computer storage medium
JP2011215037A (en) * 2010-03-31 2011-10-27 Panasonic Electric Works Sunx Co Ltd Displacement sensor
KR20190101857A (en) * 2018-02-23 2019-09-02 오므론 가부시키가이샤 Visual inspection device and illumination condition setting method of visual inspection device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008089524A (en) * 2006-10-05 2008-04-17 Meidensha Corp Wear measurement device for trolley wire
WO2008044389A1 (en) * 2006-10-05 2008-04-17 Meidensha Corporation Trolley wire wear measuring device
US8071967B2 (en) 2006-10-05 2011-12-06 Meidensha Corporation Trolley wire wear measuring device using binary operated images
JP2008122198A (en) * 2006-11-10 2008-05-29 Omron Corp Sight sensor and illumination setting method
JP2009216515A (en) * 2008-03-10 2009-09-24 Tokyo Electron Ltd Defect inspection method, program, and computer storage medium
JP2011215037A (en) * 2010-03-31 2011-10-27 Panasonic Electric Works Sunx Co Ltd Displacement sensor
KR20190101857A (en) * 2018-02-23 2019-09-02 오므론 가부시키가이샤 Visual inspection device and illumination condition setting method of visual inspection device
US10805552B2 (en) 2018-02-23 2020-10-13 Omron Corporation Visual inspection device and illumination condition setting method of visual inspection device

Similar Documents

Publication Publication Date Title
US7978903B2 (en) Defect detecting method and defect detecting device
KR100841497B1 (en) Method for inspecting unevenness, manufacturing method for display panel and apparatus for inspecting unevenness
JP4150390B2 (en) Appearance inspection method and appearance inspection apparatus
JP2007172397A (en) Edge gradient detection method, stain defect detection method, edge gradient detection device and stain defect detection device
KR100734935B1 (en) Area segmentation of an image
JPH04158238A (en) Inspecting method of liquid crystal panel
JPH11281334A (en) Device for inspecting part
JP3366802B2 (en) Unevenness inspection method and apparatus
EP1314974A1 (en) Method of inspecting curved surface and device for inspecting printed circuit board
JPH0793535A (en) Picture correction processing method
JP2000304520A (en) Shape measuring apparatus and shape measuring method of solder fillet
JP3038176B2 (en) Inspection equipment by pattern matching
JPH08105722A (en) Illuminator for inspecting device external appearance and device external appearance automatic inspecting apparatus using the illuminator
JP3363103B2 (en) Appearance inspection device
US20040109602A1 (en) Method and apparatus for inspecting a bump electrode
JPH1062134A (en) Illumination adjustment method for recognition inspection
JPH0618240A (en) Pattern edge line estimating system and pattern inspection equipment
JPH08159984A (en) Pattern irregularity inspecting apparatus
JP4084257B2 (en) Printed circuit board inspection equipment
JP2004219072A (en) Method and apparatus for detecting streak defect of screen
JP3941403B2 (en) Image density unevenness detection method and inspection apparatus
JP3721847B2 (en) How to detect solder balls
WO2024116952A1 (en) Defect image processing device
JPH07301513A (en) Device for recognizing object
JP3912063B2 (en) Detection method of image shading unevenness

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050607