JP3367449B2 - Electronic component appearance inspection method, appearance inspection apparatus, and recording medium storing a program for causing a computer to execute the appearance inspection process - Google Patents

Electronic component appearance inspection method, appearance inspection apparatus, and recording medium storing a program for causing a computer to execute the appearance inspection process

Info

Publication number
JP3367449B2
JP3367449B2 JP06273399A JP6273399A JP3367449B2 JP 3367449 B2 JP3367449 B2 JP 3367449B2 JP 06273399 A JP06273399 A JP 06273399A JP 6273399 A JP6273399 A JP 6273399A JP 3367449 B2 JP3367449 B2 JP 3367449B2
Authority
JP
Japan
Prior art keywords
void candidate
area
void
region
value
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 - Lifetime
Application number
JP06273399A
Other languages
Japanese (ja)
Other versions
JP2000258137A (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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP06273399A priority Critical patent/JP3367449B2/en
Publication of JP2000258137A publication Critical patent/JP2000258137A/en
Application granted granted Critical
Publication of JP3367449B2 publication Critical patent/JP3367449B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime 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 Processing (AREA)
  • Image Analysis (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は電子部品の外観検査
方法、外観検査装置及び外観検査処理をコンピュータに
実現させるためのプログラムを記録した記録媒体に関
し、特に、電子部品のパッケージ等の表面にできた欠陥
を外観から検査するための、電子部品の外観検査方法、
外観検査装置及び外観検査処理をコンピュータに実現さ
せるためのプログラムを記録した記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a visual inspection method for an electronic component, a visual inspection apparatus, and a recording medium having a program for causing a computer to implement the visual inspection processing. Appearance inspection method of electronic parts for inspecting the appearance defects
The present invention relates to a visual inspection device and a recording medium in which a program for causing a computer to perform visual inspection processing is recorded.

【0002】[0002]

【従来の技術】従来より、電子部品の外観検査方法とし
て、電子部品のパッケージ表面にできた小さな穴(以
下、ボイドとする)等の製造工程上の欠陥を自動的に検
出する検査方法や検査装置がある。
2. Description of the Related Art Conventionally, as a visual inspection method for electronic components, an inspection method or inspection for automatically detecting defects in the manufacturing process such as small holes (hereinafter referred to as voids) formed on the package surface of electronic components. There is a device.

【0003】第1従来例の検査方法として、特開平5−
280958号公報には、検査対象の表面を撮影した画
像を、複数の単位領域に分割し、これら各単位領域にお
ける濃淡レベルの平均値で二値化処理し、撮影画像の反
射率が小さい領域の形状から、欠陥の有無を判定する方
法が開示されており、当該公報記載の技術を第1従来例
として説明する。
As an inspection method of the first conventional example, Japanese Patent Laid-Open No.
In Japanese Patent No. 280958, an image obtained by photographing a surface of an inspection target is divided into a plurality of unit areas, and binarization processing is performed with an average value of a gray level in each of the unit areas. A method for determining the presence / absence of a defect from the shape is disclosed, and the technique described in the publication will be described as a first conventional example.

【0004】図11は第1従来例の欠陥検査装置のブロ
ック構成図である。
FIG. 11 is a block diagram of the defect inspection apparatus of the first conventional example.

【0005】図11において、レーザー光源20から出
射した走査ビームは検査対象10の表面に照射される。
この反射光は受光器28へ導かれ、画像信号a1,a2
として出力される。画像信号a1,a2は加算手段3
2、A/D変換手段34、濃度変換手段36、微分フィ
ルタ38を経て欠陥の輪郭を強調した信号a5として出
力される。この信号a5は欠陥アドレス検出手段40に
よって欠陥アドレス信号Adが求められる一方、信号a
5は2値化処理手段42で2値化処理され、欠陥領域抽
出手段48で欠陥アドレスAdを基準として欠陥領域を
抽出して欠陥画像信号A2として出力される。
In FIG. 11, the scanning beam emitted from the laser light source 20 is applied to the surface of the inspection object 10.
This reflected light is guided to the light receiver 28, and the image signals a1, a2
Is output as. The image signals a1 and a2 are added by the addition means 3
2, the A / D conversion means 34, the density conversion means 36, and the differential filter 38 to output the signal a5 in which the contour of the defect is emphasized. This signal a5 is obtained by the defective address detecting means 40 as the defective address signal Ad, while the signal a5 is obtained.
5 is binarized by the binarization processing means 42, and the defect area extraction means 48 extracts the defect area with reference to the defect address Ad and outputs it as the defect image signal A2.

【0006】この欠陥の判定方法としては、検査対象1
0の微分画像に基づいて欠陥のアドレスを求め、2値化
処理手段42において、微分画像全体の濃淡レベル分布
から求められた第1の閾値TH1と、注目画素の近傍領
域の濃淡レベル平均値から得られた第2の閾値TH2と
から、TH3=TH1−k(TH1−TH2)として第
3の閾値TH3を求め、欠陥領域抽出手段48におい
て、閾値TH3より濃淡レベルが小さい画素の位置に対
応する検査対象10の表面に欠陥があると判断してい
た。
As a method of determining this defect, the inspection target 1
The address of the defect is obtained based on the differential image of 0, and in the binarization processing means 42, from the first threshold value TH1 obtained from the gray level distribution of the entire differential image and the gray level average value of the neighboring region of the pixel of interest. From the obtained second threshold value TH2, TH3 = TH1-k (TH1-TH2) is set to obtain a third threshold value TH3, and in the defect area extraction means 48, the third threshold value TH3 corresponds to the position of the pixel whose gray level is smaller than the threshold value TH3. It was determined that the surface of the inspection target 10 had a defect.

【0007】図12は図11の検査装置における各領域
の概念図である。
FIG. 12 is a conceptual diagram of each area in the inspection apparatus of FIG.

【0008】図12は図11における検査対象10を、
より具体的な電子部品2に置換した例を示したものであ
る。受光器28の撮影画像は、電子部品2のパッケージ
2aと端子2bの一部の領域を含んでいる。この内、パ
ッケージ2aのみを含む領域が検査対象領域Rtとな
る。撮影画像として撮影されたパッケージ2aの画像に
は、パッケージ2aにできた欠陥であるボイドBと、パ
ッケージ2a表面又は反射光によって生じたむらPとが
含まれている、図13は図11の欠陥検査装置における
濃淡レベルL及び二値化レベルLs−座標C特性線図で
ある。図13は図12中のXII−XII線に沿ってレ
ベルを見たものであり、撮影画像の濃淡レベルLの左側
のなだらかな凹部はむらPを、右側の急激な凹部はボイ
ドBをそれぞれ示す。
FIG. 12 shows the inspection object 10 in FIG.
This is an example in which a more specific electronic component 2 is replaced. The captured image of the light receiver 28 includes a partial area of the package 2a of the electronic component 2 and the terminal 2b. Of these, the region including only the package 2a is the inspection target region Rt. The image of the package 2a captured as the captured image includes the void B which is a defect formed in the package 2a and the unevenness P caused by the surface of the package 2a or reflected light. FIG. 13 shows the defect inspection of FIG. It is a light / dark level L and a binarization level Ls-coordinate C characteristic diagram in an apparatus. FIG. 13 is a view of the level taken along the line XII-XII in FIG. 12, in which a gentle concave portion on the left side of the light and shade level L of the photographed image shows unevenness P, and a sharp concave portion on the right side shows a void B, respectively. .

【0009】ボイドBはピーク幅が狭く、濃淡レベルL
が急激に変化するのに対し、むらPはボイドBに比べピ
ーク幅が広く、濃淡レベルLが徐々に変化する。
The void B has a narrow peak width, and the gray level L
, The peak width of the unevenness P is wider than that of the void B, and the gray level L gradually changes.

【0010】図13中、濃淡レベルLが二値化レベルL
sより大きい領域がボイドBがなく正常と判定される領
域、濃淡レベルLが二値化レベルLsより小さい領域が
「ボイドBが存在する」と判定される領域である。
In FIG. 13, the gray level L is the binarization level L.
A region larger than s is a region without void B and is determined to be normal, and a region with a gray level L smaller than the binarization level Ls is a region with "void B".

【0011】図13から明かな通り、むらPでは、濃淡
レベルLが広い範囲に亙って少し低下しているが、濃淡
レベルLの平均値として求められる二値化レベルLsも
なだらかに低下している。
As is clear from FIG. 13, in the unevenness P, the light and shade level L slightly decreases over a wide range, but the binarization level Ls obtained as the average value of the light and shade level L also gently decreases. ing.

【0012】又、第2従来例の欠陥検査方法として、よ
り単純な処理方法として、パッケージ2a表面を撮影し
た画像を、この画像全体に亙って一定の二値化レベルで
二値化処理し、撮影画像の反射率が小さい、濃淡レベル
がこの二値化レベルより小さい領域の面積が予め設定し
た値以上の場合に、「ボイドBが存在する」と判定する
方法がある。
As the defect inspection method of the second conventional example, as a simpler processing method, an image of the surface of the package 2a is binarized at a constant binarization level over the entire image. There is a method of determining that "the void B exists" when the area of the region where the reflectance of the captured image is small and the gray level is smaller than the binarization level is a preset value or more.

【0013】図14は第2従来例の欠陥検査装置におけ
る濃淡レベルL及び二値化レベルLs−座標C特性線図
である。図14は図13と同様に図12に示すパッケー
ジ2aの撮影画像に対応したものであり、図14から明
かな通り、二値化レベルLsは全領域に亙って一定であ
る。
FIG. 14 is a characteristic diagram of the lightness level L and the binarization level Ls-coordinate C in the defect inspection apparatus of the second conventional example. Similar to FIG. 13, FIG. 14 corresponds to the captured image of the package 2a shown in FIG. 12, and as is clear from FIG. 14, the binarization level Ls is constant over the entire area.

【0014】このようにして、従来の欠陥検査方法及び
装置は、電子部品のパッケージ表面のボイド等の欠陥の
有無を判定していた。
In this way, the conventional defect inspection method and apparatus have determined the presence or absence of defects such as voids on the package surface of electronic components.

【0015】[0015]

【発明が解決しようとする課題】しかしながら、従来の
欠陥検査方法及び装置には、以下のような問題があっ
た。
However, the conventional defect inspection method and apparatus have the following problems.

【0016】検査対象として電子部品2を用いた場合、
パッケージ2aの画像信号a1,a2においては、図1
3,図14に示すように、パッケージ2a表面に照射さ
れる照射光源1の光強度が方向や場所により異なってい
たり、パッケージ2aの樹脂成分や表面状態が均一でな
かったり、パッケージ2aの金型等から付着するしみ等
によって、表面の反射率が部分的に異なる場合がしばし
ばあり、このような場合は、撮影領域の一部において、
パッケージ2aの画像信号a1,a2の濃淡レベルLが
他の部分と全体的に異なる、むらPが発生し易くなる。
When the electronic component 2 is used as an inspection target,
The image signals a1 and a2 of the package 2a are as shown in FIG.
3, as shown in FIG. 14, the light intensity of the irradiation light source 1 that irradiates the surface of the package 2a is different depending on the direction and place, the resin component of the package 2a and the surface state are not uniform, and the mold of the package 2a is Often, the reflectance of the surface is partially different due to stains etc. adhering from etc., in such a case, in a part of the shooting area,
The unevenness P is likely to occur, in which the gray level L of the image signals a1 and a2 of the package 2a is totally different from other portions.

【0017】よって、このむらPとボイドBとの濃淡画
像の濃淡レベルがほぼ同じ場合には、むらPも二値化処
理後に、濃淡レベルLが二値化レベルLsより小さい領
域と判定されてしまうので、パッケージ2aにボイドが
ないにも拘らず、「ボイドBが存在する」と誤判定し易
い問題があった。
Accordingly, when the unevenness P and the void B have the same gradation level in the gradation image, it is judged that the gradation level L is smaller than the binarization level Ls after the binarization process. Therefore, although there is no void in the package 2a, there is a problem that it is easy to erroneously determine that "void B exists".

【0018】又、第1従来例の欠陥検査装置では、複数
の単位領域毎に濃淡レベルLの平均値を求めるために、
各画素とその画素を取り囲む多数の画素の情報に基づ
き、空間フィルタリング処理していたので、処理データ
量が膨大となり、検査時間が長く掛かる問題と、捺印文
字付近では捺印文字の濃淡値が大きいために単位領域内
の濃淡レベルの平均値が高くなり、二値化レベルが高く
設定されてしまい正常な検査ができない問題があった。
Further, in the defect inspection apparatus of the first conventional example, in order to obtain the average value of the gray level L for each of a plurality of unit areas,
Spatial filtering processing was performed based on the information of each pixel and a large number of pixels surrounding the pixel, resulting in an enormous amount of data to be processed, a long inspection time, and a large shade value of the stamp character near the stamp character. In addition, the average value of the light and shade levels in the unit area becomes high, and the binarization level is set to be high, so that there is a problem that normal inspection cannot be performed.

【0019】又、第2従来例の欠陥検査装置では、図1
4に示すように、単純に検査対象領域Rt全体に亙って
一定の二値化レベルLsで二値化処理していたが、この
方法では、図14のむらP付近では、濃淡レベルLが全
体的に低下するので、このむらP付近で「ボイドBが存
在する」と誤判定する問題があった。
Further, in the defect inspection apparatus of the second conventional example, FIG.
As shown in FIG. 4, the binarization processing is simply performed at the constant binarization level Ls over the entire inspection target region Rt. However, in this method, the gray level L is entirely in the vicinity of the unevenness P in FIG. Therefore, there is a problem that it is erroneously determined that “void B exists” near the unevenness P.

【0020】ここにおいて本発明は、電子部品のパッケ
ージの撮影画像に含まれるむら等の影響を受けず、真の
欠陥のみを確実に判別できる、電子部品の外観検査方
法、外観検査装置及び外観検査処理をコンピュータに実
現させるためのプログラムを記録した記録媒体を提供す
る。
In the present invention, the appearance inspection method, the appearance inspection apparatus, and the appearance inspection of the electronic component, which can surely discriminate only the true defect without being affected by the unevenness included in the photographed image of the package of the electronic component, etc. A recording medium for recording a program for causing a computer to realize a process is provided.

【0021】[0021]

【課題を解決するための手段】前記課題を解決するた
め、本発明は次の新規な特徴的手法及び手段を採用す
る。
In order to solve the above problems, the present invention employs the following novel characteristic methods and means.

【0022】本発明の電子部品の外観検査方法の特徴
は、検査対象物(図2の102)の表面を撮影して座標
(図2のC)毎の濃淡レベル(図4のL)を求め、濃淡
レベル(L)が予め設定された値(図4のLs)より小
さい座標(C)の連続した領域(図5のRl1〜Rl
3)のうち面積が予め設定された値より大きい領域(図
5のRl2,Rl3)をボイド候補領域(図6(a)の
Rc2,図6(b)のRc3)として求め、ボイド候補
領域(Rc2,Rc3)を周囲に広げてボイド候補拡張
領域(図7(a)のRe2,図7(b)のRe3)を求
め、ボイド候補拡張領域(Re2,Re3)毎のそれぞ
れの濃淡レベル(L)の度数の分布の特徴値(図9のV
c2,Vc3)を求め、特徴値(Vc2,Vc3)が一
定範囲外の場合に当該ボイド候補領域(Rc2,Rc
3)内に欠陥が存在すると判定することにある。
The feature of the appearance inspection method for electronic parts of the present invention is that the surface of the inspection object (102 in FIG. 2) is photographed to obtain the gray level (L in FIG. 4) for each coordinate (C in FIG. 2). , A continuous area (R11 to Rl in FIG. 5) of coordinates (C) in which the gray level (L) is smaller than a preset value (Ls in FIG. 4).
Areas (Rl2 and Rl3 in FIG. 5) whose area is larger than a preset value among 3) are obtained as void candidate areas (Rc2 in FIG. 6A and Rc3 in FIG. 6B), and the void candidate area ( Rc2, Rc3) are spread around to obtain void candidate expansion regions (Re2 in FIG. 7A, Re3 in FIG. 7B), and each gray level (L) for each void candidate expansion region (Re2, Re3). ) Frequency distribution characteristic value (V in FIG. 9)
c2, Vc3), and if the feature value (Vc2, Vc3) is outside a certain range, the void candidate region (Rc2, Rc)
It is to determine that there is a defect in 3).

【0023】本発明の電子部品の外観検査装置の特徴
は、検査対象物(図2の102)の表面を撮影して座標
(図2のC)毎の濃淡レベル(図4のL)を求める撮像
手段(図1の103〜105)と、濃淡レベル(L)が
予め設定された値(図4のLs)より小さい座標(C)
の連続した領域(図5のRl1〜Rl3)のうち面積が
予め設定された値より大きい領域(図5のRl2,Rl
3)をボイド候補領域(図6(a)のRc2,図6
(b)のRc3)として求めるボイド候補領域抽出手段
(図1の106〜108)と、ボイド候補領域(Rc
2,Rc3)を、周囲に広げてボイド候補拡張領域(図
7(a)のRe2,図7(b)のRe3)を求めるボイ
ド候補領域拡張手段(図1の109)と、ボイド候補拡
張領域(Re2,Re3)毎の濃淡レベル(L)の度数
の分布の特徴値(図9のVc2,Vc3)を求める特徴
値算出手段(図1の110)と、特徴値(Vc2,Vc
3)が一定範囲外の場合に当該ボイド候補領域(Rc
2,Rc3)内に欠陥が存在すると判定する判定手段
(図1の111〜112)とを具備することにある。
The feature of the appearance inspection apparatus for electronic parts of the present invention is that the surface of the inspection object (102 in FIG. 2) is photographed and the gray level (L in FIG. 4) is obtained for each coordinate (C in FIG. 2). Coordinates (C) where the image pickup means (103 to 105 in FIG. 1) and the gray level (L) are smaller than a preset value (Ls in FIG. 4).
Of the continuous areas (Rl1 to Rl3 in FIG. 5) whose area is larger than a preset value (Rl2 and Rl in FIG. 5).
3) is a void candidate region (Rc2 in FIG. 6A, FIG.
The void candidate area extraction means (106 to 108 in FIG. 1) to be obtained as Rc3 in (b) and the void candidate area (Rc).
2, Rc3) is expanded to the surroundings to obtain a void candidate expansion region (Re2 in FIG. 7A, Re3 in FIG. 7B), and a void candidate expansion region (109 in FIG. 1). A characteristic value calculation means (110 in FIG. 1) for obtaining a characteristic value (Vc2, Vc3 in FIG. 9) of the frequency distribution of the light and shade level (L) for each (Re2, Re3), and a characteristic value (Vc2, Vc).
3) is outside a certain range, the void candidate region (Rc
2, Rc3) is provided with a determination unit (111 to 112 in FIG. 1) for determining that a defect exists.

【0024】本発明の電子部品の外観検査処理をコンピ
ュータに実現させるためのプログラムを記録した記録媒
体の特徴は、検査対象物(図2の102)の表面を撮影
して、座標(図2のC)毎の濃淡レベル(図4のL)を
求め、濃淡レベル(L)が予め設定された値(図4のL
s)より小さい連続した領域(図5のRl1〜Rl3)
のうち面積が予め設定された値より大きい領域(図5の
Rl2,Rl3)をボイド候補領域(図6(a)のRc
2,図6(b)のRc3)として求め、ボイド候補領域
(Rc2,Rc3)を周囲に広げてボイド候補拡張領域
(図7(a)のRe2,図7(b)のRe3)を求め、
ボイド候補拡張領域(Re2,Re3)毎の濃淡レベル
(L)の度数の分布の特徴値(図9のVc2,Vc3)
を求め、特徴値(Vc2,Vc3)が一定範囲外の場合
に、当該ボイド候補領域(Rc2,Rc3)内に欠陥が
存在すると判定することにある。
The characteristic of the recording medium in which the program for causing the computer to realize the appearance inspection processing of the electronic component of the present invention is recorded is that the surface of the inspection object (102 in FIG. 2) is photographed and the coordinates (in FIG. The lightness level (L in FIG. 4) for each C) is obtained, and the lightness level (L) is a preset value (L in FIG. 4).
s) a smaller continuous region (R11 to R13 in FIG. 5)
Regions (Rl2, Rl3 in FIG. 5) whose area is larger than a preset value are void candidate regions (Rc in FIG. 6A).
2, Rc3 in FIG. 6B), and the void candidate regions (Rc2, Rc3) are spread to the periphery to obtain void candidate expansion regions (Re2 in FIG. 7A, Re3 in FIG. 7B).
Characteristic value of frequency distribution of light and shade level (L) for each void candidate extended region (Re2, Re3) (Vc2, Vc3 in FIG. 9)
When the feature values (Vc2, Vc3) are out of a certain range, it is determined that a defect exists in the void candidate region (Rc2, Rc3).

【0025】このような手法及び手段を採用したことに
より、本発明の電子部品の外観検査方法、外観検査装置
及び外観検査処理をコンピュータに実現させるためのプ
ログラムを記録した記録媒体は、最初にボイド候補領域
を抽出し、次いでこれらボイド候補領域内の各座標にお
ける濃淡レベルの度数の分布から特徴値を求め、この特
徴値に基づいてボイドの有無を判定するので、むら等に
よる影響を排除して、ボイド等の欠陥の有無を確実に判
定できる。
By adopting such a method and means, the recording medium on which the program for causing the computer to implement the appearance inspection method, appearance inspection device and appearance inspection process of the electronic component of the present invention is first void. The candidate area is extracted, then the feature value is obtained from the distribution of the frequency of the gray level at each coordinate in these void candidate areas, and the presence or absence of voids is determined based on this feature value, so the effect of unevenness is eliminated. The presence or absence of defects such as voids can be reliably determined.

【0026】[0026]

【発明の実施の形態】図1は本発明の第1の実施の形態
の電子部品の外観検査装置のブロック構成図である。
FIG. 1 is a block diagram of a visual inspection apparatus for electronic parts according to a first embodiment of the present invention.

【0027】照射光源101は、照射光を照射する。The irradiation light source 101 emits irradiation light.

【0028】電子部品102は、照射光源101からの
照射光を、表面の反射率に応じて反射する。
The electronic component 102 reflects the irradiation light from the irradiation light source 101 according to the reflectance of the surface.

【0029】CCDカメラ103は、電子部品102か
らの反射光を一定領域に亙って撮像し、アナログ画像信
号Saとして出力する。
The CCD camera 103 images the reflected light from the electronic component 102 over a certain area and outputs it as an analog image signal Sa.

【0030】CCDカメラ103からのアナログ画像信
号Saは、A/D変換手段104によりA/D変換さ
れ、ディジタル濃淡画像データDbとして出力される。
The analog image signal Sa from the CCD camera 103 is A / D converted by the A / D conversion means 104 and output as digital grayscale image data Db.

【0031】濃淡画像データ記憶手段105は、ディジ
タル濃淡画像データDbを内部に一旦格納する。
The grayscale image data storage means 105 temporarily stores the digital grayscale image data Db therein.

【0032】二値化手段106は、濃淡画像データ記憶
手段105からディジタル濃淡画像データDbを読み出
し、各座標C(図2)毎に、濃淡レベルL(図4)が内
部に予め設定された二値化レベルLs(図4)以下であ
れば当該座標Cを“1”レベルに、逆の場合は“0”レ
ベルにした二値化画像データDcを生成し出力する。
The binarization means 106 reads out the digital grayscale image data Db from the grayscale image data storage means 105, and the grayscale level L (FIG. 4) is preset inside for each coordinate C (FIG. 2). Binarized image data Dc in which the coordinate C is set to the "1" level if the value is equal to or lower than the level Ls (FIG. 4) and "0" in the opposite case is generated and output.

【0033】ラベル付け手段107は、二値化画像デー
タDcが供給され、二値化画像データDcの“1”レベ
ルが連続する各領域をそれぞれラベル付け領域Rl1〜
Rl3(図5)とし、ラベル付け領域Rl1〜Rl3の
ラベル名とその面積とを一組として、ラベルデータDd
として出力する。
The labeling means 107 is supplied with the binarized image data Dc, and labels the respective regions in which the "1" level of the binarized image data Dc is continuous with the labeling regions R11 to R11.
Rl3 (FIG. 5), and the label data Dd as a set of the label names and the areas of the labeling areas Rl1 to Rl3.
Output as.

【0034】ボイド候補領域抽出手段108は、ラベル
データDdが供給され、各ラベル付け領域Rl1〜Rl
3(図5)の内、内部に予め設定した面積よりも面積が
大きいラベル付け領域Rl2,Rl3(図5)のみをそ
れぞれボイド候補領域Rc2,Rc3(図6(a),
(b))とし、ボイド候補ラベルデータDeとして出力
する。
The label candidate data Rd is supplied to the void candidate area extracting means 108, and the labeling areas Rl1 to Rl are supplied.
3 (FIG. 5), only the labeling areas Rl2, Rl3 (FIG. 5) having an area larger than the area preset inside are void candidate areas Rc2, Rc3 (FIG. 6 (a),
(B)) and output as void candidate label data De.

【0035】ボイド候補領域拡張手段109は、ボイド
候補ラベルデータDeが表す各ボイド候補領域Rc2,
Rc3(図6(a),(b))をそれぞれ一定範囲だけ
周囲に拡張してそれぞれボイド候補拡張領域Re2,R
e3(図7(a),(b))とし、ボイド候補領域拡張
データDfとして出力する。
The void candidate area expanding means 109 is provided for each void candidate area Rc2 represented by the void candidate label data De.
Rc3 (FIGS. 6 (a) and 6 (b)) is expanded to the surroundings by a predetermined range, and void candidate expansion regions Re2 and R2 are generated.
e3 (FIGS. 7A and 7B), and output as void candidate area expansion data Df.

【0036】ヒストグラム算出手段110は、ディジタ
ル濃淡画像データDbとボイド候補領域拡張データDf
が供給され、ボイド候補領域拡張データDfが表す各ボ
イド候補拡張領域Re2,Re3(図7(a),
(b))毎に、ディジタル濃淡画像データDbが表す濃
淡レベルL(図4)の度数の分布を例えばヒストグラム
表記して求め、各ボイド候補拡張領域Re2,Re3毎
にヒストグラムデータDgとして出力する。
The histogram calculating means 110 is used for the digital grayscale image data Db and the void candidate area expansion data Df.
Is supplied to each of the void candidate expansion regions Re2 and Re3 (FIG. 7 (a),
For each (b)), the distribution of the frequency of the gray level L (FIG. 4) represented by the digital gray image data Db is obtained by, for example, a histogram notation, and is output as histogram data Dg for each void candidate extended region Re2, Re3.

【0037】特徴値算出手段111は、ヒストグラムデ
ータDgが表す各ボイド候補拡張領域Re2,Re3
(図7(a),(b))毎に各ヒストグラム(図8
(a),(b))に基づいてそれぞれ後述の特徴値Vc
2,Vc3(図9)を算出し、特徴値データDhとして
出力する。
The feature value calculating means 111 is used for each of the void candidate expansion regions Re2 and Re3 represented by the histogram data Dg.
Each histogram (see FIGS. 8A and 8B) (see FIGS. 8A and 8B)
Based on (a) and (b), a feature value Vc described later is obtained.
2, Vc3 (FIG. 9) is calculated and output as feature value data Dh.

【0038】判定手段112は、特徴値データDhが表
す各特徴値Vc2,Vc3(図9)と、内部に予め設定
された値とを比較し、各特徴値Vc2,Vc3の少なく
とも1つが、内部に予め設定された一定範囲内にない場
合は、当該ボイド候補拡張領域Re2,Re3内に「ボ
イドBが存在する」と判定し、判定信号Siを出力す
る。
The judging means 112 compares each of the characteristic values Vc2 and Vc3 (FIG. 9) represented by the characteristic value data Dh with an internally preset value, and at least one of the characteristic values Vc2 and Vc3 is an internal value. If it is not within the predetermined range set in advance, it is determined that “void B exists” in the void candidate expansion regions Re2 and Re3, and the determination signal Si is output.

【0039】図2は図1の電子部品の外観検査装置にお
ける各領域の概念図である。
FIG. 2 is a conceptual diagram of each area in the appearance inspection apparatus for electronic parts of FIG.

【0040】図2において、図1のCCDカメラ103
の撮影画像は、電子部品102のパッケージ102aと
端子102bの一部の領域を含んでいる。この内、パッ
ケージ102aのみを含む領域が検査対象領域Rtとな
る。撮影画像として撮影されたパッケージ102aの画
像には、パッケージ102aにできた欠陥であるボイド
Bと、パッケージ102a表面又は反射光によって生じ
たむらPとが含まれている、図3は図1の電子部品の外
観検査装置における検査処理フローチャートである。
Referring to FIG. 2, the CCD camera 103 shown in FIG.
The photographed image includes a partial area of the package 102a of the electronic component 102 and the terminal 102b. Of these, the region including only the package 102a is the inspection target region Rt. The image of the package 102a captured as a captured image includes a void B which is a defect formed in the package 102a and the unevenness P caused by the surface of the package 102a or reflected light. FIG. 3 illustrates the electronic component of FIG. 3 is an inspection process flowchart in the appearance inspection apparatus of FIG.

【0041】図1の照射光源101から出射した照射光
は、パッケージ102a(図2)表面で反射され、CC
Dカメラ103へ入射した光は、A/D変換手段104
によってアナログ/ディジタル変換され、各座標C(図
2)における濃淡レベルL(図4)を示すディジタル濃
淡画像データDbとして濃淡画像データ記憶手段105
に一旦蓄積される(ステップS301)。
Irradiation light emitted from the irradiation light source 101 of FIG. 1 is reflected on the surface of the package 102a (FIG. 2), and CC
The light incident on the D camera 103 is converted into A / D conversion means 104.
The grayscale image data storage means 105 is converted to digital grayscale image data Db which is analog-to-digital converted by the digital signal and indicates the grayscale level L (FIG. 4) at each coordinate C (FIG. 2).
Is temporarily stored in (step S301).

【0042】図1の第1の二値化手段106は、濃淡画
像データ記憶手段105に蓄積されたディジタル濃淡画
像データDbを読み出す(ステップS302)。
The first binarizing means 106 of FIG. 1 reads the digital grayscale image data Db stored in the grayscale image data storage means 105 (step S302).

【0043】図1の第1の二値化手段106は、各座標
C(図2)毎に、ディジタル濃淡画像データDbが示す
濃淡レベルL(図4)を、予め内部に設定された二値化
レベルLs(図4)と比較し、濃淡レベルLが二値化レ
ベルLsより低い座標Cを“1”レベルとし、逆の座標
Cを“0”レベルとした第1の二値化画像データDcと
して出力する(ステップS303)。
The first binarizing means 106 shown in FIG. 1 sets the gray level L (FIG. 4) indicated by the digital gray-scale image data Db for each coordinate C (FIG. 2) in advance as a binary value. First binarized image data in which the coordinate C whose gray level L is lower than the binarization level Ls as compared with the binarization level Ls (FIG. 4) is set to the “1” level and the opposite coordinate C is set to the “0” level. It is output as Dc (step S303).

【0044】図1のラベル付け手段107は、第1の二
値化画像データDcが表す、“1”レベルの連続する領
域をそれぞれラベル付け領域Rl1〜Rl3(図5)と
し、これら各ラベル付け領域Rl1〜Rl3のラベル名
と面積とを一組としてラベルデータDdとして出力する
(ステップS304)。
The labeling means 107 of FIG. 1 sets the continuous areas of the "1" level represented by the first binarized image data Dc as the labeling areas Rl1 to Rl3 (FIG. 5), respectively. The label names and areas of the regions R11 to R13 are output as label data Dd as a set (step S304).

【0045】図1のボイド候補領域抽出手段108は、
ラベルデータDdが表す、各ラベル付け領域Rl1〜R
l3(図5)の内、予め内部に設定された面積より大き
いラベル付け領域Rl2,Rl3のみをそれぞれボイド
候補領域Rc2,Rc3(図6(a),(b))とし、
ボイド候補領域データDeとして出力する(ステップS
305)。
The void candidate area extraction means 108 of FIG.
Each labeling area R11 to R represented by the label data Dd
Among the l3 (FIG. 5), only the labeling regions Rl2 and Rl3 which are larger than the area set in advance as the void candidate regions Rc2 and Rc3 (FIGS. 6 (a) and (b)),
The data is output as void candidate area data De (step S
305).

【0046】図1のボイド候補領域拡張手段109は、
ボイド候補領域データDeが表す、各ボイド候補領域R
c2,Rc3(図6(a),(b))をそれぞれ一定範
囲だけ周囲に拡張して、各ボイド候補拡張領域Re2,
Re3(図7(a),(b))を表すボイド候補領域拡
張データDfとして出力する(ステップS306)。
The void candidate area expanding means 109 shown in FIG.
Each void candidate area R represented by the void candidate area data De
c2 and Rc3 (FIGS. 6 (a) and 6 (b)) are each expanded to the surroundings by a certain range, and each void candidate expansion region Re2
The void candidate area expansion data Df representing Re3 (FIGS. 7A and 7B) is output (step S306).

【0047】図1のヒストグラム算出手段110は、ボ
イド候補領域拡張データDfが表す各ボイド候補拡張領
域Re2,Re3(図7(a),(b))毎に、各座標
C(図2)毎の濃淡レベルL(図4)の度数の分布をヒ
ストグラム(図8(a),(b))として表し、ヒスト
グラムデータDgとして出力する(ステップS30
7)。
The histogram calculating means 110 of FIG. 1 is arranged for each coordinate C (FIG. 2) for each void candidate expansion area Re2, Re3 (FIGS. 7A, 7B) represented by the void candidate area expansion data Df. The distribution of the frequency of the light and shade level L (FIG. 4) is represented as a histogram (FIGS. 8A and 8B) and output as histogram data Dg (step S30).
7).

【0048】図1の特徴値算出手段111は、ヒストグ
ラムデータDgが供給され、各ボイド候補拡張領域Re
2,Re3(図7(a),(b))毎に、各ヒストグラ
ム(図8(a),(b))の後述する特徴値Vc2,V
c3(図9)を求め、特徴値データDhとして出力する
(ステップS308)。
The histogram value Dg is supplied to the feature value calculation means 111 of FIG. 1, and each void candidate expansion region Re is supplied.
2, Re3 (FIGS. 7A and 7B), the feature values Vc2 and V, which will be described later, of each histogram (FIGS. 8A and 8B).
c3 (FIG. 9) is obtained and output as feature value data Dh (step S308).

【0049】図1の判定手段112は、各ボイド候補拡
張領域Re2,Re3(図7(a),(b))毎に、ラ
ベルデータDgが表す各ボイド候補拡張領域Re2,R
e3のそれぞれの特徴値Vc2,Vc3(図9)と、予
め内部に設定された値とを比較し、各特徴値Vc2,V
c3が予め設定された値の範囲内に存在しない場合に、
当該ボイド候補拡張領域Re2,Re3内に欠陥が存在
すると判断して判定信号Sjを出力する(ステップS3
09)。
The determination means 112 of FIG. 1 determines the void candidate extension areas Re2, R indicated by the label data Dg for each of the void candidate extension areas Re2, Re3 (FIGS. 7A and 7B).
The characteristic values Vc2 and Vc3 (FIG. 9) of e3 are compared with the values set in advance, and the characteristic values Vc2 and Vc are compared.
If c3 does not exist within the preset value range,
It is determined that there is a defect in the void candidate extension regions Re2 and Re3, and the determination signal Sj is output (step S3).
09).

【0050】図4は図1の電子部品の外観検査装置にお
ける濃淡レベルL及び二値化レベルLs−座標C特性線
図である。
FIG. 4 is a characteristic diagram of the lightness level L and the binarization level Ls-coordinate C in the appearance inspection apparatus for electronic parts of FIG.

【0051】図4は、図2中のII−II線に沿ってレ
ベルを見たものであり、左側のなだらかな凹部はむらP
によるもの、右側の急激な凹部はボイドBによるもので
ある。
FIG. 4 is a view of the level seen along the line II-II in FIG. 2, in which the gentle concave portion on the left side is uneven P.
The sharp recess on the right side is due to the void B.

【0052】図4中、濃淡レベルLが二値化レベルLs
より小さい領域がラベル付け領域Rl1,Rl2とな
る。
In FIG. 4, the gray level L is the binarization level Ls.
The smaller areas are labeled areas R11 and R12.

【0053】図5は図1の電子部品の外観検査装置にお
けるラベル付け領域Rl1〜Rl3の概念図である。図
5に示すように、二値化手段106で二値化処理された
二値化画像データDcにおいて、各ラベル付け領域Rl
1〜Rl3にはそれぞれラベルが付与されてラベル付け
領域Rl1〜Rl3とされており、各ラベル付け領域R
l1〜Rl3の面積はそれぞれ、4,14,13であ
る。
FIG. 5 is a conceptual diagram of the labeling areas R11 to R13 in the appearance inspection apparatus for electronic parts of FIG. As shown in FIG. 5, in the binarized image data Dc binarized by the binarization means 106, each labeling area Rl
1 to Rl3 are labeled respectively to form labeling areas Rl1 to Rl3.
The areas of 11 to Rl3 are 4, 14, and 13, respectively.

【0054】図6は図1の電子部品の外観検査装置にお
けるラベル付け候補領域Rc2,Rc3の概念図であ
る。
FIG. 6 is a conceptual diagram of the labeling candidate regions Rc2, Rc3 in the electronic component appearance inspection apparatus of FIG.

【0055】ボイド候補領域抽出手段108は、(予め
内部に設定された面積)=6の場合、この6より大き
い、図5のラベル付け領域Rl2,Rl3のみがそれぞ
れボイド候補領域Rc2,Rc3となり、ボイド候補領
域データDeとして出力される。
When the area (previously set area) = 6, the void candidate area extracting means 108 has only the labeling areas R12 and R13 in FIG. 5 which are larger than 6 as the void candidate areas Rc2 and Rc3, respectively. It is output as void candidate area data De.

【0056】図7(a)は図1の電子部品の外観検査装
置におけるボイド候補拡張領域Re2の概念図、図7
(b)は図1の電子部品の外観検査装置におけるボイド
候補拡張領域Re3の概念図である。
FIG. 7A is a conceptual diagram of the void candidate expansion area Re2 in the appearance inspection apparatus for electronic parts of FIG.
(B) is a conceptual diagram of a void candidate expansion region Re3 in the electronic component appearance inspection apparatus of FIG. 1.

【0057】ボイド候補領域拡張手段109では、各ボ
イド候補領域Rc2,Rc3内の各座標Cを中心として
周囲に2画素拡張して、それぞれボイド候補拡張領域R
e2,Re3を生成している。
The void candidate area expanding means 109 expands the surrounding two pixels around each coordinate C in each of the void candidate areas Rc2, Rc3, and expands the void candidate expanding area R respectively.
e2 and Re3 are generated.

【0058】この拡張方法としては、各座標Cを中心と
する(3×3)サイズの最大化フィルタを拡張する画素
の数だけ処理する方法や、各座標Cを中心とする(5×
5)サイズの最大化フィルタを1回処理して2画素分広
げる方法等が考えられるが、本発明ではこの拡張方法を
限定しない。
As the extension method, a maximizing filter of size (3 × 3) centered on each coordinate C is processed by the number of pixels to be extended, or each coordinate C is centered (5 ×).
5) A method in which the size maximizing filter is processed once and expanded by two pixels can be considered, but the present invention does not limit this expansion method.

【0059】図8(a)は図1の電子部品の外観検査装
置におけるボイド候補拡張領域Re2内の濃淡レベルL
のヒストグラム、図8(b)は図1の電子部品の外観検
査装置におけるボイド候補拡張領域Re3内の濃淡レベ
ルLのヒストグラムである。
FIG. 8A is a light and shade level L in the void candidate expansion region Re2 in the electronic component appearance inspection apparatus of FIG.
8B is a histogram of the light and shade level L in the void candidate expansion region Re3 in the electronic component appearance inspection apparatus of FIG.

【0060】ボイドBが存在する場合にはボイド候補領
域Rc2,Rc3(図6(a),(b))の外周付近で
濃淡レベルLが急激に変化するが、ボイドBが存在しな
い場合は濃淡レベルLは急激に変化しない。よって、こ
れらボイド候補領域Rc2,Rc3を一定範囲だけ周囲
へ拡張してボイド候補拡張領域Re2,Re3(図7
(a),(b))とし、これらボイド候補拡張領域Re
2,Re3の各座標Cにおける濃淡レベルLの変化の分
布をヒストグラムとして表記すれば、ボイドB部分とむ
らP部分とではヒストグラム上の濃淡レベルLの分布が
明らかに異なるので、この分布から特徴値Vc2,Vc
3(図9)を求めれば、両者を区別できるようになる。
When the void B exists, the gray level L changes abruptly near the outer periphery of the void candidate regions Rc2, Rc3 (FIGS. 6A and 6B), but when the void B does not exist, the gray level L changes. Level L does not change rapidly. Therefore, the void candidate regions Rc2, Rc3 are expanded to the surroundings by a certain range, and the void candidate expansion regions Re2, Re3 (see FIG.
(A), (b)), and these void candidate expansion regions Re
If the distribution of the change in the lightness level L at each coordinate C of 2 and Re3 is expressed as a histogram, the distribution of the lightness level L on the histogram is clearly different between the void B portion and the unevenness P portion. Vc2, Vc
If 3 (FIG. 9) is obtained, both can be distinguished.

【0061】図8(a)のヒストグラムでは、ボイドB
を含むボイド候補拡張領域Re2内の濃淡レベルLは、
ボイドBとボイドB以外の部分にはっきり別れるので、
ボイドBによる濃淡レベルLとボイドB以外の濃淡レベ
ルLに分布し、ヒストグラムにはピークが2ヶ所でき
る。
In the histogram of FIG. 8A, the void B
The gray level L in the void candidate expansion region Re2 including
Since it is clearly divided into the void B and the part other than the void B,
There are two peaks in the histogram, which are distributed in the lightness level L due to the void B and the lightness level L other than the void B.

【0062】逆に図8(b)のヒストグラムでは、むら
Pを含むボイド候補拡張領域Re3内の濃淡レベルL
は、濃淡レベルLが急激に変化する領域がないので、濃
淡レベルLは狭い範囲に分布し、ヒストグラムのピーク
は1ヶ所になる。
On the contrary, in the histogram of FIG. 8B, the gray level L in the void candidate expansion region Re3 including the unevenness P
, There is no region where the gray level L changes abruptly, so the gray level L is distributed in a narrow range, and the histogram has only one peak.

【0063】特徴値算出手段111で求める特徴値Vc
2,Vc3の例としては、ヒストグラムの濃淡レベルL
の度数のピークの数、ヒストグラムの濃淡レベルLの度
数の分散値S、ヒストグラムの濃淡レベルLの度数の標
準偏差、ヒストグラムの濃淡レベルLの度数の微分値の
最大値等がある。
Characteristic value Vc obtained by the characteristic value calculation means 111
2 and Vc3, the gray level L of the histogram
There are the number of peaks of the frequency, the variance value S of the frequency of the gray level L of the histogram, the standard deviation of the frequency of the gray level L of the histogram, the maximum value of the differential value of the frequency of the gray level L of the histogram, and the like.

【0064】特徴値Vc2,Vc3がヒストグラムの濃
淡レベルLの度数のピークの数である場合は、濃淡レベ
ルLの最小値から最大値へ向かって、或いは逆向きに、
ある濃淡レベルLの度数を隣接する濃淡レベルLの度数
と比較していき、度数が増加から減少へ変化する個所の
数を計数すれば、ピーク数が求まる。
When the characteristic values Vc2 and Vc3 are the number of peaks of the frequency of the light and shade level L of the histogram, from the minimum value to the maximum value of the light and shade level L, or in the opposite direction,
The peak number can be obtained by comparing the frequency of a certain gray level L with the frequency of the adjacent gray level L and counting the number of points where the frequency changes from increasing to decreasing.

【0065】従って、判定手段112では、ピークが2
ヶ所ある場合には、当該ボイド候補拡張領域Re2(図
7(a))内にボイドBが存在すると判定できる。
Therefore, in the judging means 112, the peak is 2
If there is a void, it can be determined that the void B exists in the void candidate expansion region Re2 (FIG. 7A).

【0066】尚、ピーク数を求める前にヒストグラムの
濃淡レベルLを平滑化しておけば、ヒストグラムデータ
において狭い濃淡レベルLの範囲でノイズ成分による小
さなピークをピークの数として計数しなくなるので、ピ
ークの数を高い精度で求められる。
If the lightness level L of the histogram is smoothed before obtaining the number of peaks, small peaks due to noise components will not be counted as the number of peaks in the narrow lightness level L range of the histogram data. The number is required with high accuracy.

【0067】次に、特徴値Vc2,Vc3がヒストグラ
ムの濃淡レベルLの度数の分散値Sである場合は、分散
値Sは(式1)から求められる。
Next, when the characteristic values Vc2 and Vc3 are the variance value S of the frequencies of the gray level L of the histogram, the variance value S is obtained from (Equation 1).

【0068】 XLはヒストグラムの濃淡レベルLにおける度数、XA
はヒストグラム中の全ての濃淡レベルLの度数の平均
値、Nはヒストグラムの横軸の最大値、即ち濃淡レベル
Lの階調である。
[0068] XL is the frequency at the gray level L of the histogram, XA
Is the average value of the frequencies of all the light and shade levels L in the histogram, and N is the maximum value on the horizontal axis of the histogram, that is, the gradation of the light and shade level L.

【0069】ボイドBが存在するボイド候補拡張領域R
e2では、図8(a)に示すように濃淡レベルLの度数
は、ボイドBとボイドB以外の2つのピークに分散して
分布するので、ヒストグラムの分散値Sは大きくなる。
Void candidate expansion region R in which void B exists
At e2, as shown in FIG. 8A, the frequency of the light and shade level L is distributed over the void B and the two peaks other than the void B, so the variance value S of the histogram becomes large.

【0070】むらPが存在するボイド候補拡張領域Re
3では、図8(b)に示すように濃淡レベルLの度数
は、1つのピークに集中して分布するので、ヒストグラ
ムの分散値Sは小さくなる。
Void candidate expansion region Re in which unevenness P exists
In FIG. 3, the frequencies of the light and shade level L are concentrated and distributed in one peak as shown in FIG. 8B, so that the variance value S of the histogram becomes small.

【0071】よって、判定手段112に、ボイドBによ
る分散値SとむらPによる分散値Sとの間に閾値を予め
設定しておけば、分散値Sが閾値より大きい場合にはボ
イドBが当該ボイド候補拡張領域Re2(図7(a))
内に存在すると判定できる。
Therefore, if the threshold value is set in advance in the determination means 112 between the dispersion value S due to the void B and the dispersion value S due to the unevenness P, the void B is detected when the dispersion value S is larger than the threshold value. Void candidate extended area Re2 (Fig. 7 (a))
It can be determined to exist inside.

【0072】更に、特徴値Vc2,Vc3として、分散
値Sの平方根である標準偏差を代わりに用いても分散値
Sと同様である。
Further, as the characteristic values Vc2 and Vc3, the standard deviation, which is the square root of the variance value S, is used instead, which is the same as the variance value S.

【0073】次に、特徴値Vc2,Vc3がヒストグラ
ムの濃淡レベルLの度数の微分値の最大値である場合
は、これら最大値は、ヒストグラム(図8(a),
(b))の濃淡レベルLの度数をそれぞれ微分して、濃
淡レベルLの度数の変化量である微分値をそれぞれ求め
てから、これら微分値の最大値を検索すれば求まる。
Next, when the characteristic values Vc2 and Vc3 are the maximum values of the differential value of the frequency of the grayscale level L of the histogram, these maximum values are determined by the histogram (FIG. 8A,
It can be obtained by differentiating each frequency of the light and shade level L in (b)) to obtain each differential value which is the change amount of the frequency of the light and shade level L, and then searching the maximum value of these differential values.

【0074】ボイドBが存在する場合は、ボイドB領域
の周辺で濃淡レベルLが急激に変化するので、ヒストグ
ラムの濃淡レベルLの度数の微分値は、むらPの場合よ
りも大きくなる。
When the void B exists, the lightness level L changes abruptly around the void B area, and therefore the differential value of the frequency of the lightness level L in the histogram becomes larger than in the case of the unevenness P.

【0075】よって、判定手段112に、ボイドBによ
る微分値の最大値とむらPによる微分値の最大値との間
に閾値を予め設定しておけば、微分値の最大値が閾値よ
り大きいボイド候補領域Re2内にボイドBが存在する
と判別できる。
Therefore, if a threshold value is set in advance in the judging means 112 between the maximum value of the differential value by the void B and the maximum value of the differential value by the unevenness P, the maximum value of the differential value is larger than the threshold value. It can be determined that the void B exists in the candidate region Re2.

【0076】この微分濃淡レベルLiは、ヒストグラム
における算出対象の濃淡レベルLの度数とその周囲の濃
淡レベルLの度数との差の最大値、又はそれぞれの度数
の差の絶対値の総和等から求められる。但し本発明で
は、微分濃淡レベルLiを求める方法を限定しない。
This differential gray level Li is obtained from the maximum value of the difference between the frequency of the gray level L to be calculated in the histogram and the frequency of the surrounding gray level L, or the sum of the absolute values of the differences of each frequency. To be However, the present invention does not limit the method of obtaining the differential gray level Li.

【0077】以上のように、本実施の形態では、(1)
ボイドが存在する可能性のあるボイド候補領域を抽出
し、(2)これら各ボイド候補領域をそれぞれ拡張して
各ボイド候補拡張領域を求め、(3)各ボイド候補拡張
領における濃淡レベルの度数の分布を求め、(4)この
度数の分布の特徴値が一定範囲外の場合にボイドが存在
すると判別するようにしたので、むらの影響を排除し
て、ボイドの有無を確実に検出でき、誤判定を大幅に低
減できる。
As described above, in the present embodiment, (1)
A void candidate region in which a void may exist is extracted, (2) each void candidate region is expanded to obtain each void candidate expansion region, and (3) the density level frequency in each void candidate expansion region is calculated. The distribution was obtained, and (4) the feature value of this frequency distribution was determined to be present when there was a void, so the effect of unevenness could be eliminated, and the presence or absence of voids could be reliably detected. The judgment can be reduced significantly.

【0078】次に、本実施の形態の変形例を説明する。Next, a modified example of this embodiment will be described.

【0079】第1の変形例として、図1のラベル付け手
段107において、図2の検査対象領域Rtの一部に、
ボイド候補領域Rc2,Rc3から除外されるマスク領
域を設定しても良い。
As a first modification, in the labeling means 107 of FIG. 1, a part of the inspection target area Rt of FIG.
A mask area excluded from the void candidate areas Rc2 and Rc3 may be set.

【0080】第2の変形例として、図1のラベル付け手
段107が各ラベル付け領域Rl1〜Rl3の面積を算
出し、ボイド候補領域抽出手段108が各ラベル付け領
域Rl1〜Rl3の面積からボイド候補領域Rc2,R
c3を抽出するのに代えて、ラベル付け手段107が各
ラベル付け領域Rl1〜Rl3の外周上の最も離れた2
点間の距離を算出し、ボイド候補領域抽出手段108に
おいてこの距離が予め設定された閾値以上と判定された
ラベル付け領域Rl2,Rl3のみを、それぞれボイド
候補領域Rc2,Rc3として抽出しても良い。
As a second modification, the labeling means 107 in FIG. 1 calculates the areas of the labeling areas Rl1 to Rl3, and the void candidate area extracting means 108 calculates the void candidates from the areas of the labeling areas Rl1 to Rl3. Region Rc2, R
Instead of extracting c3, the labeling means 107 causes the most distant 2 on the outer circumference of each of the labeling areas R11 to R13.
It is also possible to calculate the distance between the points and extract only the labeling regions R12 and R13 whose void candidate region extracting means 108 has determined that this distance is equal to or greater than a preset threshold value as the void candidate regions Rc2 and Rc3, respectively. .

【0081】第3の変形例として、図1のラベル付け手
段107が各ラベル付け領域Rl1,Rl2の面積を算
出し、ボイド候補領域抽出手段108において各ラベル
付け領域Rl1,Rl2の面積からボイドの有無を判定
するのに代えて、ラベル付け手段107が、各ラベル付
け領域Rl1〜Rl3の面積と、各ラベル付け領域Rl
1〜Rl3の外周上の最も離れた2点間の距離との両方
を算出し、ボイド候補領域抽出手段108にはこれら面
積と距離の両方について、予め閾値をそれぞれ設定して
おき、何れか一方がそれぞれの閾値より大きいラベル付
け領域Rl2,Rl3のみを、それぞれボイド候補領域
Rc2,Rc3として抽出しても良い。
As a third modification, the labeling means 107 of FIG. 1 calculates the areas of the labeling areas Rl1 and Rl2, and the void candidate area extracting means 108 calculates the voids from the areas of the labeling areas Rl1 and Rl2. Instead of determining the presence or absence, the labeling means 107 causes the labeling areas Rl1 to Rl3 to have areas and the labeling areas Rl.
1 to Rl3 and both of the distances between the most distant points on the outer circumference are calculated, and the void candidate region extracting means 108 sets thresholds for both the area and the distance in advance, and either one of them is set. Only the labeling regions R12 and R13 that are larger than the respective thresholds may be extracted as the void candidate regions Rc2 and Rc3, respectively.

【0082】又、二値化手段106を用いて二値化処理
するのに代えて、ヒストグラム算出手段110で求めた
ヒストグラムから二値化レベルLsを求めて二値化処理
しても良い。この方法としては、モード法やヒストグラ
ムの度数がピークになる濃淡レベルLから予め決められ
たオフセット値を引いて求める方法等があるが、本発明
では二値化処理方法を限定しない。
Further, instead of performing the binarization processing by using the binarization means 106, the binarization level Ls may be obtained from the histogram obtained by the histogram calculation means 110 and the binarization processing may be performed. Examples of this method include a modal method and a method of subtracting a predetermined offset value from the gray level L at which the frequency of the histogram peaks, but the present invention does not limit the binarization processing method.

【0083】又、特徴値算出手段111で求められる特
徴値Vc2,Vc3として、ヒストグラムの度数のピー
クの数、分散値S又は標準偏差、微分値の最大値を組み
合わせて、ボイドBの有無を判別しても良い。
Further, as the characteristic values Vc2 and Vc3 obtained by the characteristic value calculating means 111, the presence or absence of the void B is determined by combining the number of peaks of the histogram frequency, the variance value S or the standard deviation, and the maximum value of the differential value. You may.

【0084】又、ボイド候補領域拡張手段109におい
て、ボイド候補領域Rc2,Rc3毎に外接矩形を求
め、その外接矩形を一定範囲だけ広げた矩形領域をそれ
ぞれボイド候補拡張領域Re2,Re3としても良い。
Further, the void candidate area expanding means 109 may obtain a circumscribed rectangle for each of the void candidate areas Rc2 and Rc3, and the rectangular areas obtained by expanding the circumscribed rectangle by a certain range may be used as the void candidate expanded areas Re2 and Re3, respectively.

【0085】図10は本発明の第2の実施の形態の電子
部品の外観検査装置のブロック構成図である。本実施の
形態は、図1の第1の実施の形態の電子部品の外観検査
装置を、特にコンピュータ上に構成する場合に適した実
施の形態を説明している。
FIG. 10 is a block diagram of the appearance inspection apparatus for electronic parts according to the second embodiment of the present invention. The present embodiment describes an embodiment suitable for a case where the electronic component appearance inspection apparatus according to the first embodiment of FIG. 1 is configured especially on a computer.

【0086】本実施の形態の電子部品の外観検査装置
は、入力部201と、CPU202と、メモリ203
と、照射光源204aと、CCDカメラ204bと、A
/Dコンバータ204cと、表示処理部205と、表示
部206と、外部記憶装置207と、インターフェース
部208と、バス209とから構成される。
The appearance inspecting apparatus for electronic parts according to the present embodiment includes an input section 201, a CPU 202, and a memory 203.
, Irradiation light source 204a, CCD camera 204b, A
The A / D converter 204c, the display processing unit 205, the display unit 206, the external storage device 207, the interface unit 208, and the bus 209 are included.

【0087】入力部201は、各種操作キー等からな
る、キーボードやリモコン等の操作手段であり、次のC
PU202へ各種指示を付与する。この手段は、特にコ
ンピュータにおいては、アルファニューメリックキーボ
ードや専用の入力装置・マウス・リモコン等で実現され
る。
The input section 201 is an operation means such as a keyboard and a remote controller which is composed of various operation keys and the like.
Various instructions are given to the PU 202. This means is realized by an alphanumeric keyboard, a dedicated input device, a mouse, a remote controller, etc., especially in a computer.

【0088】CPU202は、マイクロコンピュータ等
からなり、内蔵され又は外部から供給されるプログラム
等により動作し各部を制御する。
The CPU 202 is composed of a microcomputer or the like, and operates by a program or the like which is built in or supplied from the outside and controls each unit.

【0089】メモリ203は、RAM等のメモリから構
成され、CPU202の制御により各種データを格納す
る。この手段は、特にコンピュータにおいては、RAM
やフラッシュメモリやハードディスク等の各種記録媒体
で実現される。
The memory 203 is composed of a memory such as a RAM and stores various data under the control of the CPU 202. This means, especially in computers, RAM
It is realized by various recording media such as a flash memory and a hard disk.

【0090】照射光源204aは、照射光を照射する。The irradiation light source 204a emits irradiation light.

【0091】CCDカメラ204bは、電子部品102
からの反射光を一定領域に亙って撮像し、アナログ画像
信号Saとして出力する。
The CCD camera 204b is the electronic component 102.
The reflected light from is imaged over a certain area and output as an analog image signal Sa.

【0092】A/Dコンバータ204cは、CCDカメ
ラ204bからのアナログ画像信号Saをアナログ/デ
ィジタル変換し、ディジタル濃淡画像データDbとして
バス209へ出力する。
The A / D converter 204c performs analog / digital conversion on the analog image signal Sa from the CCD camera 204b and outputs it to the bus 209 as digital grayscale image data Db.

【0093】表示処理部205は、バス209に接続さ
れ、バス209を介して送られてきた画像データを表示
信号Sdpへ変換出力する。
The display processing unit 205 is connected to the bus 209 and converts the image data sent via the bus 209 into a display signal Sdp and outputs it.

【0094】表示部206はディスプレイ装置やモニタ
等の映像表示手段であり、表示信号Sdpを映像として
表示する。この手段は、特にコンピュータにおいては、
各種ディスプレイ装置等で実現される。
The display unit 206 is an image display means such as a display device or a monitor, and displays the display signal Sdp as an image. This means, especially in computers,
It is realized by various display devices.

【0095】外部記憶装置207は、CPU202の各
種処理プログラムや、メモリ203に格納されているの
と同様なデータ等が格納されている記憶媒体であり、C
PU202の制御により各種データが書き込まれ読み出
される。この手段は、特にコンピュータにおいては、R
AMやフラッシュメモリやハードディスク等の各種記録
媒体で実現される。
The external storage device 207 is a storage medium that stores various processing programs of the CPU 202, data similar to that stored in the memory 203, and the like.
Various data are written and read under the control of the PU 202. This means, especially in computers,
It is realized by various recording media such as AM, flash memory, and hard disk.

【0096】インターフェース部208は、CPU20
2と接続された外部とのインターフェースである。
The interface unit 208 includes the CPU 20.
It is an interface with the outside that is connected to 2.

【0097】バス209は、入力部201,CPU20
2,メモリ203,A/Dコンバータ204c、表示処
理部205,外部記憶装置207,インターフェース部
208を相互に接続する。
The bus 209 includes an input unit 201 and a CPU 20.
2, the memory 203, the A / D converter 204c, the display processing unit 205, the external storage device 207, and the interface unit 208 are mutually connected.

【0098】本発明の第2の実施の形態の電子部品の外
観検査方法は、第1の実施の形態の電子部品の外観検査
方法と同様である。
The appearance inspection method for electronic parts according to the second embodiment of the present invention is the same as the appearance inspection method for electronic parts according to the first embodiment.

【0099】次に本発明の第2の実施の形態の電子部品
の外観検査処理をコンピュータに実現させるためのプロ
グラムを記録した記録媒体を説明する。
Next, a recording medium recording a program for causing a computer to implement the appearance inspection processing for electronic parts according to the second embodiment of the present invention will be described.

【0100】第1の実施の形態の電子部品の外観検査方
法及び電子部品の外観検査装置では、電子部品の外観検
査処理をコンピュータに実現させるためのプログラム
を、専用の外観検査装置の制御プログラムとして内蔵し
ているが、本実施の形態では汎用のコンピュータ装置等
においてソフトウェアプログラム等で同様の処理を実現
している。
In the appearance inspection method for an electronic component and the appearance inspection device for an electronic component according to the first embodiment, a program for causing a computer to implement the appearance inspection process for an electronic component is used as a control program for a dedicated appearance inspection device. Although built-in, in the present embodiment, similar processing is realized by a software program or the like in a general-purpose computer device or the like.

【0101】このソフトウェアプログラムの記録媒体と
して、メモリカード・フロッピー(登録商標)ディスク
・ハードディスク・CD−ROM・DVD−RAM等の
外部記録装置207に格納しても良いし、データ記憶部
203上に当該プログラム専用の格納領域を設けて外部
記録装置207から読み込んだプログラムを格納してお
いても良い。
As a recording medium of this software program, it may be stored in an external recording device 207 such as a memory card, a floppy (registered trademark) disk, a hard disk, a CD-ROM, a DVD-RAM, or in the data storage section 203. A storage area dedicated to the program may be provided to store the program read from the external recording device 207.

【0102】その他の構成や処理フローチャートは前記
第1の実施の形態の電子部品の外観検査方法、外観検査
装置及び外観検査処理方法をコンピュータに実現させる
ためのプログラムを記録した記録媒体と同様である。
Other configurations and processing flowcharts are the same as those of the recording medium in which the program for causing the computer to implement the appearance inspection method, the appearance inspection device, and the appearance inspection processing method for the electronic component according to the first embodiment. .

【0103】尚、前記各実施の形態では、CCDカメラ
103,204bの撮影画像の画素毎に二値化処理した
が、処理を高速化するために複数の画素をまとめて二値
化処理しても構わない。
In each of the above embodiments, the binarization processing is performed for each pixel of the images captured by the CCD cameras 103 and 204b. However, in order to speed up the processing, a plurality of pixels are collectively binarized. I don't mind.

【0104】[0104]

【発明の効果】以上のような手法及び手段を採用したこ
とにより、本発明の電子部品の外観検査方法、外観検査
装置及び外観検査処理をコンピュータに実現させるため
のプログラムを記録した記録媒体は、次のような効果を
発揮する。
By adopting the above-mentioned methods and means, a recording medium recording a program for causing a computer to implement the appearance inspecting method, appearance inspecting apparatus and appearance inspecting apparatus for electronic parts according to the present invention, It has the following effects.

【0105】第1点として、最初にボイド候補領域を見
つけてから、次に各ボイド候補領域を周囲に拡張してそ
れぞれボイド候補拡張領域を求め、次いで各ボイド候補
拡張領域における濃淡レベルの度数の分布の特徴値から
ボイド領域とむら領域とを判別するので、むらをボイド
と誤判定することが大幅に低減され、検査精度を大幅に
向上できる利点がある。
As a first point, first, a void candidate area is found, then each void candidate area is expanded to the surrounding area to obtain a void candidate expanded area, and then the density level frequency in each void candidate expanded area is calculated. Since the void area and the nonuniformity area are discriminated from the characteristic value of the distribution, there is an advantage that the misjudgment of the nonuniformity as the void is significantly reduced and the inspection accuracy can be greatly improved.

【0106】第2点として、ボイド候補領域のみを抽出
し、これらボイド候補領域の特徴値を算出するだけで良
いので、検査処理を大幅に高速化できる利点がある。
As a second point, it is sufficient to extract only the void candidate regions and calculate the feature values of these void candidate regions, which has the advantage of significantly speeding up the inspection process.

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

【図1】本発明の第1の実施の形態の電子部品の外観検
査装置のブロック構成図である。
FIG. 1 is a block configuration diagram of an appearance inspection apparatus for electronic parts according to a first embodiment of the present invention.

【図2】図1の電子部品の外観検査装置における各領域
の概念図である。
FIG. 2 is a conceptual diagram of each area in the electronic component appearance inspection apparatus of FIG.

【図3】図1の電子部品の外観検査装置における検査処
理フローチャートである。
FIG. 3 is an inspection processing flowchart in the appearance inspection apparatus for electronic parts of FIG.

【図4】図1の電子部品の外観検査装置における濃淡レ
ベルL及び二値化レベルLs−座標C特性線図である。
FIG. 4 is a characteristic diagram of a lightness level L and a binarization level Ls-coordinate C in the appearance inspection apparatus for electronic parts of FIG.

【図5】図1の電子部品の外観検査装置におけるラベル
付け領域Rl1〜Rl3の概念図である。
5 is a conceptual diagram of labeling regions Rl1 to Rl3 in the appearance inspection apparatus for electronic components of FIG.

【図6】(a)は図1の電子部品の外観検査装置におけ
るボイド候補領域Rc2の概念図、(b)は図1の電子
部品の外観検査装置におけるボイド候補領域Rc3の概
念図である。
6A is a conceptual diagram of a void candidate region Rc2 in the electronic component appearance inspection device of FIG. 1, and FIG. 6B is a conceptual diagram of a void candidate region Rc3 in the electronic component appearance inspection device of FIG.

【図7】(a)は図1の電子部品の外観検査装置におけ
るボイド候補拡張領域Re2の概念図、(b)は図1の
電子部品の外観検査装置におけるボイド候補拡張領域R
e3の概念図である。
7A is a conceptual diagram of a void candidate extension region Re2 in the electronic component appearance inspection apparatus of FIG. 1, and FIG. 7B is a void candidate extension area R in the electronic component appearance inspection apparatus of FIG.
It is a conceptual diagram of e3.

【図8】(a)は図1の電子部品の外観検査装置におけ
るボイド候補拡張領域Re2における濃淡レベルLのヒ
ストグラム、(b)は図1の電子部品の外観検査装置に
おけるボイド候補拡張領域Re3における濃淡レベルL
のヒストグラムである。
8A is a histogram of a gray level L in a void candidate expansion region Re2 in the electronic component appearance inspection apparatus of FIG. 1, and FIG. 8B is a void candidate extension area Re3 in the electronic component appearance inspection apparatus of FIG. Gray level L
Is a histogram of.

【図9】図1の電子部品の外観検査装置におけるボイド
Bの判定概念図である。
FIG. 9 is a conceptual diagram for determining a void B in the electronic component appearance inspection apparatus of FIG. 1.

【図10】本発明の第2の実施の形態の電子部品の外観
検査装置のブロック構成図である。
FIG. 10 is a block configuration diagram of an appearance inspection device for electronic parts according to a second embodiment of the present invention.

【図11】第1従来例の欠陥検査装置のブロック構成図
である。
FIG. 11 is a block configuration diagram of a defect inspection apparatus of a first conventional example.

【図12】図11の欠陥検査装置における各領域の概念
図である。
12 is a conceptual diagram of each area in the defect inspection apparatus of FIG.

【図13】図11の欠陥検査装置における濃淡レベルL
及び二値化レベルLs−座標C特性線図である。
13 is a gray level L in the defect inspection apparatus of FIG.
3 is a characteristic diagram of a binarization level Ls and a coordinate C. FIG.

【図14】第2従来例の欠陥検査装置における濃淡レベ
ルL及び二値化レベルLs−座標C特性線図である。
FIG. 14 is a characteristic diagram of a lightness level L and a binarization level Ls-coordinate C in a defect inspection apparatus of a second conventional example.

【符号の簡単な説明】[Simple explanation of symbols]

2 電子部品 2a パッケージ 2b 端子 10 検査対象 20 レーザー光源 28 受光器 32 加算手段 34 A/D変換手段 36 濃度変換手段 38 微分フィルタ 40 欠陥アドレス検出手段 42 2値化処理手段 48 欠陥領域抽出手段 101 照射光源 102 電子部品 102a パッケージ 102b 端子 103 CCDカメラ 104 A/D変換手段 105 濃淡画像データ記憶手段 106 二値化手段 107 ラベル付け手段 108 ボイド候補領域抽出手段 109 ボイド候補領域拡張手段 110 ヒストグラム算出手段 111 特徴値算出手段 112 判定手段 201 入力部 202 CPU 203 メモリ 204a 照射光源 204b CCDカメラ 204c A/Dコンバータ 205 表示処理部 206 表示部 207 外部記憶装置 208 インターフェース部 209 バス 2 electronic components 2a package 2b terminal 10 inspection target 20 laser light source 28 Light receiver 32 addition means 34 A / D conversion means 36 Density conversion means 38 Differential filter 40 defective address detecting means 42 Binarization processing means 48 defective area extracting means 101 Irradiation light source 102 electronic components 102a package 102b terminal 103 CCD camera 104 A / D conversion means 105 grayscale image data storage means 106 binarization means 107 labeling means 108 Void candidate area extraction means 109 Void candidate area expansion means 110 Histogram calculation means 111 Feature value calculation means 112 determination means 201 Input section 202 CPU 203 memory 204a irradiation light source 204b CCD camera 204c A / D converter 205 display processing unit 206 display 207 External storage device 208 Interface part 209 bus

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G01B 11/00 - 11/30 102 G01N 21/84 - 21/958 G06T 7/00 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields investigated (Int.Cl. 7 , DB name) G01B 11/00-11/30 102 G01N 21/84-21/958 G06T 7/00

Claims (24)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 検査対象物の表面を撮影して座標毎の濃
淡レベルを求め、 前記濃淡レベルが予め設定された値より小さい座標の連
続した領域のうち面積が予め設定された値より大きい領
域をボイド候補領域として求め、 前記ボイド候補領域を周囲に広げてボイド候補拡張領域
を求め、 前記ボイド候補拡張領域毎の前記濃淡レベルの度数の分
布の特徴値を求め、 前記特徴値が一定範囲外の場合に当該ボイド候補領域内
に欠陥が存在すると判定することを特徴とする電子部品
の外観検査方法。
1. A surface area of an object to be inspected is photographed to obtain a gray level for each coordinate, and an area having a larger area than a preset value in a continuous area of coordinates in which the gray level is smaller than a preset value. Is obtained as a void candidate region, the void candidate region is expanded to obtain a void candidate extended region, the feature value of the distribution of the frequency of the gray level for each of the void candidate extended regions is obtained, and the feature value is outside a certain range. In this case, it is determined that there is a defect in the void candidate area in this case.
【請求項2】 前記特徴値は、前記ボイド候補拡張領域
毎の前記濃淡レベルの度数の分布におけるピークの数で
あることを特徴とする請求項1記載の電子部品の外観検
査方法。
2. The appearance inspection method for an electronic component according to claim 1, wherein the characteristic value is the number of peaks in the distribution of the frequency of the gray level for each of the void candidate expansion regions.
【請求項3】 前記特徴値は、前記ボイド候補拡張領域
毎の前記濃淡レベルの度数の分布における分散値である
ことを特徴とする請求項1記載の電子部品の外観検査方
法。
3. The appearance inspection method for an electronic component according to claim 1, wherein the feature value is a variance value in a frequency distribution of the gray level for each of the void candidate expansion regions.
【請求項4】 前記特徴値は、前記ボイド候補拡張領域
毎の前記濃淡レベルの度数の分布における標準偏差であ
ることを特徴とする請求項1記載の電子部品の外観検査
方法。
4. The appearance inspection method for an electronic component according to claim 1, wherein the feature value is a standard deviation in a frequency distribution of the gray level for each of the void candidate expansion regions.
【請求項5】 前記特徴値は、前記ボイド候補拡張領域
毎の前記濃淡レベルの度数の微分値の最大値であること
を特徴とする請求項1記載の電子部品の外観検査方法。
5. The appearance inspection method for an electronic component according to claim 1, wherein the feature value is a maximum value of a differential value of a frequency of the gray level for each of the void candidate expansion regions.
【請求項6】 前記撮影した画像の領域内に、前記ボイ
ド候補領域から除外される領域が設定されることを特徴
とする請求項1〜5の何れかに記載の電子部品の外観検
査方法。
6. The appearance inspection method for an electronic component according to claim 1, wherein a region excluded from the void candidate region is set in a region of the photographed image.
【請求項7】 前記濃淡レベルが予め設定された値より
小さい座標の連続した領域のうち面積が予め設定された
値より大きい領域をボイド候補領域として求めるのに代
えて、 前記濃淡レベルが予め設定された値より小さい座標の連
続した領域のうち外周上の最も離れた二点間の距離が予
め設定された値より大きい領域をボイド候補領域として
求めることを特徴とする請求項1〜6の何れかに記載の
電子部品の外観検査方法。
7. The gray level is preset instead of obtaining an area having a larger area than a preset value among consecutive areas having coordinates whose gray level is smaller than a preset value, as a void candidate area. 7. A void candidate area is defined as an area in which a distance between two farthest points on the outer circumference is larger than a preset value among continuous areas having coordinates smaller than the specified value. A method for inspecting the appearance of electronic parts as described in (1).
【請求項8】 前記ボイド候補領域を周囲に広げてボイ
ド候補拡張領域を求めるのに代えて、 前記ボイド候補領域に外接する矩形状の領域を周囲に広
げてボイド候補拡張領域を求めることを特徴とする請求
項1〜6の何れかに記載の電子部品の外観検査方法。
8. A void candidate expansion region is obtained by expanding a rectangular region circumscribing the void candidate region to the periphery instead of expanding the void candidate region to the periphery to obtain the void candidate expansion region. The appearance inspection method for an electronic component according to any one of claims 1 to 6.
【請求項9】 検査対象物の表面を撮影して座標毎に濃
淡レベルを求める撮像手段と、 前記濃淡レベルが予め設定された値より小さい座標の連
続した領域のうち面積が予め設定された値より大きい領
域をボイド候補領域として求めるボイド候補領域抽出手
段と、 前記ボイド候補領域を周囲に広げてボイド候補拡張領域
を求めるボイド候補領域拡張手段と、 前記ボイド候補拡張領域毎の前記濃淡レベルの度数の分
布の特徴値を求める特徴値算出手段と、 前記特徴値が一定範囲外の場合に当該ボイド候補領域内
に欠陥が存在すると判定する判定手段とを具備すること
を特徴とする電子部品の外観検査装置。
9. An image pickup means for photographing a surface of an inspection object to obtain a gray level for each coordinate, and an area having a preset value in a continuous region of coordinates in which the gray level is smaller than a preset value. A void candidate area extracting unit that obtains a larger area as a void candidate area, a void candidate area expanding unit that spreads the void candidate area around to obtain a void candidate expanded area, and a frequency of the gray level for each void candidate expanded area. The appearance of the electronic component, which comprises: a feature value calculation unit that obtains a feature value of the distribution of the distribution; and a determination unit that determines that a defect exists in the void candidate region when the feature value is outside a certain range. Inspection device.
【請求項10】 前記特徴値は、前記ボイド候補拡張領
域毎の前記濃淡レベルの度数の分布におけるピークの数
であることを特徴とする請求項9記載の電子部品の外観
検査装置。
10. The appearance inspection apparatus for an electronic component according to claim 9, wherein the characteristic value is the number of peaks in the distribution of the frequency of the gray level for each of the void candidate expansion regions.
【請求項11】 前記特徴値は、前記ボイド候補拡張領
域毎の前記濃淡レベルの度数の分布における分散値であ
ることを特徴とする請求項9記載の電子部品の外観検査
装置。
11. The appearance inspection apparatus for an electronic component according to claim 9, wherein the feature value is a variance value in a frequency distribution of the gray level for each of the void candidate expansion regions.
【請求項12】 前記特徴値は、前記ボイド候補拡張領
域毎の前記濃淡レベルの度数の分布における標準偏差で
あることを特徴とする請求項9記載の電子部品の外観検
査装置。
12. The appearance inspection apparatus for an electronic component according to claim 9, wherein the characteristic value is a standard deviation in a frequency distribution of the gray level for each of the void candidate expansion regions.
【請求項13】 前記特徴値は、前記ボイド候補拡張領
域毎の前記濃淡レベルの度数の微分値の最大値であるこ
とを特徴とする請求項9記載の電子部品の外観検査装
置。
13. The appearance inspection apparatus for an electronic component according to claim 9, wherein the characteristic value is a maximum value of a differential value of the frequency of the gray level for each of the void candidate expansion regions.
【請求項14】 前記撮影した画像の領域内に、前記ボ
イド候補領域から除外される領域が設定されることを特
徴とする請求項9〜13の何れかに記載の電子部品の外
観検査装置。
14. The appearance inspection apparatus for an electronic component according to claim 9, wherein a region excluded from the void candidate region is set in a region of the photographed image.
【請求項15】 前記ボイド候補領域抽出手段は、前記
濃淡レベルが予め設定された値より小さい座標の連続し
た領域のうち面積が予め設定された値より大きい領域を
ボイド候補領域として求めるのに代えて、 前記濃淡レベルが予め設定された値より小さい座標の連
続した領域のうち外周上の最も離れた二点間の距離が予
め設定された値より大きい領域をボイド候補領域として
求めることを特徴とする請求項9〜14の何れかに記載
の電子部品の外観検査装置。
15. The void candidate area extracting means may be configured to obtain, as a void candidate area, an area having an area larger than a preset value among continuous areas having coordinates whose gray level is smaller than a preset value. In the continuous region of the coordinates where the gray level is smaller than a preset value, a region where the distance between the two most distant points on the outer circumference is larger than a preset value is obtained as a void candidate region. The visual inspection device for an electronic component according to any one of claims 9 to 14.
【請求項16】 前記ボイド候補領域抽出手段は、前記
ボイド候補領域を周囲に広げてボイド候補拡張領域を求
めるのに代えて、 前記ボイド候補領域に外接する矩形状の領域を周囲に広
げてボイド候補拡張領域を求めることを特徴とする請求
項9〜14の何れかに記載の電子部品の外観検査装置。
16. The void candidate area extracting means expands the void candidate area to the periphery to obtain a void candidate expansion area, and instead expands a rectangular area circumscribing the void candidate area to the void. The appearance inspection apparatus for an electronic component according to any one of claims 9 to 14, wherein a candidate extended area is obtained.
【請求項17】 検査対象物の表面を撮影して、座標毎
の濃淡レベルを求め、 前記濃淡レベルが予め設定された値より小さい座標の連
続した領域のうち面積が予め設定された値より大きい領
域をボイド候補領域として求め、 前記ボイド候補領域を周囲に広げてボイド候補拡張領域
を求め、 前記ボイド候補拡張領域毎の前記濃淡レベルの度数の分
布の特徴値を求め、前記特徴値が一定値以上の場合に当
該ボイド候補領域内に欠陥が存在すると判定することを
特徴とする電子部品の外観検査処理をコンピュータに実
現させるためのプログラムを記録した記録媒体。
17. A surface of an inspection object is photographed to obtain a gray level for each coordinate, and the area is larger than a preset value in a continuous region of coordinates where the gray level is smaller than a preset value. Obtain a region as a void candidate region, obtain a void candidate extended region by expanding the void candidate region to the surroundings, obtain the characteristic value of the distribution of the frequency of the gray level for each void candidate extended region, and the characteristic value is a constant value. A recording medium recording a program for causing a computer to implement a visual inspection process for an electronic component, which is characterized by determining that a defect exists in the void candidate area in the above case.
【請求項18】 前記特徴値は、前記ボイド候補拡張領
域毎の前記濃淡レベルの度数の分布におけるピークの数
であることを特徴とする請求項17記載の電子部品の外
観検査処理をコンピュータに実現させるためのプログラ
ムを記録した記録媒体。
18. The computer implements the appearance inspection process for an electronic component according to claim 17, wherein the characteristic value is the number of peaks in the distribution of the frequency of the gray level for each of the void candidate expansion regions. A recording medium on which a program for recording is recorded.
【請求項19】 前記特徴値は、前記ボイド候補拡張領
域毎の前記濃淡レベルの度数の分布における分散値であ
ることを特徴とする請求項17記載の電子部品の外観検
査処理をコンピュータに実現させるためのプログラムを
記録した記録媒体。
19. The computer is made to implement the appearance inspection process of an electronic component according to claim 17, wherein the characteristic value is a dispersion value in a distribution of frequencies of the gray level for each of the void candidate expansion regions. A recording medium on which a program for recording is recorded.
【請求項20】 前記特徴値は、前記ボイド候補拡張領
域毎の前記濃淡レベルの度数の分布における標準偏差で
あることを特徴とする請求項17記載の電子部品の外観
検査処理をコンピュータに実現させるためのプログラム
を記録した記録媒体。
20. The computer is made to implement the appearance inspection process for an electronic component according to claim 17, wherein the characteristic value is a standard deviation in a frequency distribution of the gray level for each of the void candidate expansion regions. A recording medium on which a program for recording is recorded.
【請求項21】 前記特徴値は、前記ボイド候補拡張領
域毎の前記濃淡レベルの度数の微分値の最大値であるこ
とを特徴とする請求項17記載の電子部品の外観検査処
理をコンピュータに実現させるためのプログラムを記録
した記録媒体。
21. The appearance inspection process of an electronic component according to claim 17, wherein the characteristic value is a maximum value of a differential value of the frequency of the gray level for each of the void candidate expansion regions. A recording medium on which a program for recording is recorded.
【請求項22】 前記撮影した画像の領域内に、前記ボ
イド候補領域から除外される領域が設定されることを特
徴とする請求項17〜21の何れかに記載の電子部品の
外観検査処理をコンピュータに実現させるためのプログ
ラムを記録した記録媒体。
22. The appearance inspection process for an electronic component according to claim 17, wherein a region excluded from the void candidate region is set in a region of the photographed image. A recording medium recording a program to be realized by a computer.
【請求項23】 前記濃淡レベルが予め設定された値よ
り小さい座標の連続した領域のうち面積が予め設定され
た値より大きい領域をボイド候補領域として求めるのに
代えて、 前記濃淡レベルが予め設定された値より小さい座標の連
続した領域のうち外周上の最も離れた二点間の距離が予
め設定された値より大きい領域をボイド候補領域として
求めることを特徴とする請求項17〜22の何れかに記
載の電子部品の外観検査処理をコンピュータに実現させ
るためのプログラムを記録した記録媒体。
23. Instead of obtaining, as a void candidate region, a region whose area is larger than a preset value among continuous regions whose coordinates are smaller than a preset value, the gray level is preset. 23. Among the continuous regions having coordinates smaller than the specified value, a region in which the distance between the two most distant points on the outer circumference is larger than a preset value is obtained as a void candidate region. A recording medium having recorded therein a program for causing a computer to implement the appearance inspection process of the electronic component described in 1.
【請求項24】 前記ボイド候補領域を周囲に広げてボ
イド候補拡張領域を求めるのに代えて、 前記ボイド候補領域に外接する矩形状の領域を周囲に広
げてボイド候補拡張領域を求めることを特徴とする請求
項17〜22の何れかに記載の電子部品の外観検査処理
をコンピュータに実現させるためのプログラムを記録し
た記録媒体。
24. Instead of expanding the void candidate area to obtain a void candidate expansion area, a rectangular area circumscribing the void candidate area is expanded to obtain a void candidate expansion area. A recording medium recording a program for causing a computer to implement the appearance inspection process for an electronic component according to any one of claims 17 to 22.
JP06273399A 1999-03-10 1999-03-10 Electronic component appearance inspection method, appearance inspection apparatus, and recording medium storing a program for causing a computer to execute the appearance inspection process Expired - Lifetime JP3367449B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06273399A JP3367449B2 (en) 1999-03-10 1999-03-10 Electronic component appearance inspection method, appearance inspection apparatus, and recording medium storing a program for causing a computer to execute the appearance inspection process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06273399A JP3367449B2 (en) 1999-03-10 1999-03-10 Electronic component appearance inspection method, appearance inspection apparatus, and recording medium storing a program for causing a computer to execute the appearance inspection process

Publications (2)

Publication Number Publication Date
JP2000258137A JP2000258137A (en) 2000-09-22
JP3367449B2 true JP3367449B2 (en) 2003-01-14

Family

ID=13208882

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06273399A Expired - Lifetime JP3367449B2 (en) 1999-03-10 1999-03-10 Electronic component appearance inspection method, appearance inspection apparatus, and recording medium storing a program for causing a computer to execute the appearance inspection process

Country Status (1)

Country Link
JP (1) JP3367449B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5087899B2 (en) * 2006-10-10 2012-12-05 富士ゼロックス株式会社 Image inspection apparatus, image inspection apparatus system, and image inspection program.
JP2008249413A (en) * 2007-03-29 2008-10-16 Fujinon Corp Defect detection method and device
TWI724594B (en) * 2019-10-29 2021-04-11 鑑微科技股份有限公司 Apparatus for three-dimensional measurement
JP7361613B2 (en) * 2020-01-08 2023-10-16 キヤノンメディカルシステムズ株式会社 Winding inspection method, winding inspection device, and manufacturing method of superconducting coil device
CN117132602B (en) * 2023-10-27 2024-01-02 湖南三昌泵业有限公司 Visual inspection method for defects of centrifugal pump impeller

Also Published As

Publication number Publication date
JP2000258137A (en) 2000-09-22

Similar Documents

Publication Publication Date Title
CN111179243A (en) Small-size chip crack detection method and system based on computer vision
CN105139386B (en) A kind of image processing method of fast automatic detecting electric connector solder joint defective work
CN115908269A (en) Visual defect detection method and device, storage medium and computer equipment
JP2008175588A (en) Visual examination device
CN113298776A (en) Method for detecting appearance defects of metal closed water pump impeller
CN111539980A (en) Multi-target tracking method based on visible light
JPH03160349A (en) Device for detecting crack
JP3189588B2 (en) Surface defect inspection equipment
JP3367449B2 (en) Electronic component appearance inspection method, appearance inspection apparatus, and recording medium storing a program for causing a computer to execute the appearance inspection process
JP2018048979A (en) Surface property inspection apparatus, surface property insection method, and program
JP3412366B2 (en) Coating smoothness inspection device
JP3107071B2 (en) Electronic component appearance inspection method, appearance inspection apparatus, and recording medium storing a program for causing a computer to execute the appearance inspection process
JP4887540B2 (en) Vehicle periphery monitoring device, vehicle, vehicle periphery monitoring program, and vehicle periphery monitoring method
JPH0961138A (en) Crack extraction apparatus
JP3367450B2 (en) Electronic component appearance inspection method, appearance inspection apparatus, and recording medium storing a program for causing a computer to execute the appearance inspection process
JPH06308256A (en) Cloudy fog detecting method
CN112329572B (en) Rapid static living body detection method and device based on frame and flash point
JP2001028059A (en) Method and device for color unevenness inspection
JPH04147045A (en) Surface inspection device
JPH0718812B2 (en) Foreign object detection method
JPH0624014B2 (en) Gray image processing method
JPH0217832B2 (en)
JP6618438B2 (en) Foreground region extraction apparatus, method, and program
JP2004037134A (en) Method and apparatus for inspecting metal mask
JP2005128635A (en) Image processing apparatus

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20021008

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

Free format text: PAYMENT UNTIL: 20071108

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081108

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20081108

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091108

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20091108

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101108

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111108

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20111108

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121108

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20121108

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20131108

Year of fee payment: 11

EXPY Cancellation because of completion of term