JPH05256788A - Inspecting apparatus of external appearance of electronic component - Google Patents

Inspecting apparatus of external appearance of electronic component

Info

Publication number
JPH05256788A
JPH05256788A JP4053752A JP5375292A JPH05256788A JP H05256788 A JPH05256788 A JP H05256788A JP 4053752 A JP4053752 A JP 4053752A JP 5375292 A JP5375292 A JP 5375292A JP H05256788 A JPH05256788 A JP H05256788A
Authority
JP
Japan
Prior art keywords
contour
electronic component
main body
point
coordinates
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
JP4053752A
Other languages
Japanese (ja)
Inventor
Toshimichi Shimizu
利通 清水
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.)
Taiyo Yuden Co Ltd
Original Assignee
Taiyo Yuden Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taiyo Yuden Co Ltd filed Critical Taiyo Yuden Co Ltd
Priority to JP4053752A priority Critical patent/JPH05256788A/en
Publication of JPH05256788A publication Critical patent/JPH05256788A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To obtain an inspecting apparatus of external appearance of an electronic component which can determine properly whether the shape of the end part of a main body is good or bad. CONSTITUTION:An inspecting apparatus of external appearance which determine the appropriateness of the external appearance on the basis of a pattern P corresponding to the contour of an electronic component with leads is provided with a sampling means 4a which sets as a reference point the intermediate position between a parallel line A drawn at a position a little higher than the upper edge of the contour Pa of a lead and a parallel line At passing the vertex of the contour Pb of a main body and determines the contour coordinates of points a1 to a5 of intersection of a plurality of parallel lines A1 to A5 drawn at equal intervals through the reference point and above and below it and of the contour Pb of the main body, and with a function calculating means 4b which determines an approximation function equation from the sampled contour coordinates. Moreover, a boundary-point calculating means 4c which determines a point f1 of intersection of a straight line F1 or a curve obtained from the determined function equation and of the upper edge of the contour Pa of the lead, a comparing means 4e which compares the determined boundary point f1 with a reference boundary point, and a determining means 4j which determines the appropriateness of the external appearance on the basis of the result of comparison, are provided.

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 apparatus for visually inspecting an electronic component with a lead, and in particular, inspecting a shape of an end portion of a main body by image recognition.

【0002】[0002]

【従来の技術】この種の外観検査装置は、検査対象とな
る電子部品の2次元画像を撮像するカメラと、画像デ−
タを記憶する画像メモリと、マイクロコンピュ−タを使
用した画像判定手段とから構成されており、例えば図6
に示すように回転対称形を成す本体Caの両端部にリ−
ドCbを同軸上に有するインダクタやコンデンサ等にお
ける外観検査、特にリ−ドCbとの境界部分における塗
装形状の良否を判定している。
2. Description of the Related Art A visual inspection apparatus of this type includes a camera for taking a two-dimensional image of an electronic component to be inspected and an image data.
It is composed of an image memory for storing the data and an image judging means using a microcomputer, for example, as shown in FIG.
As shown in FIG.
The appearance of an inductor, a capacitor or the like having the coaxial cable Cb on the same axis is inspected, and in particular, the quality of the coating shape at the boundary with the lead Cb is judged.

【0003】ここで、上記画像判定手段における従来の
判定方法について説明する。まず、部品Cの輪郭と一致
する図6のようなパタ−ンを抽出し、次に左右のリ−ド
Cbの幅dL ,dR よりも本体Caの径が所定値αだけ
増加したところのX座標から両位置間の長さLを求め、
次に求められた長さLを基準長さと比較し、長さLが許
容範囲内で一致している場合には良品、また一致してい
ない場合には不良品の判定を行なっている。
Now, a conventional determination method in the image determining means will be described. First, a pattern as shown in FIG. 6 which coincides with the contour of the part C is extracted, and then X where the diameter of the main body Ca is increased by a predetermined value α from the widths dL and dR of the left and right leads Cb. Find the length L between both positions from the coordinates,
Next, the length L thus obtained is compared with a reference length, and if the lengths L match within an allowable range, a non-defective product is determined, and if they do not match, a defective product is determined.

【0004】[0004]

【発明が解決しようとする課題】しかし従来の判定方法
では上記長さLを形状良否の目安としているため、図7
の左側に示すようにdL +αよりも小さな突起部Ccが
端部に存在する場合や、また同図の右側に示すようにd
R +αよりも細長い膨出部Cdが端部に存在する場合に
は、本体Caの端部形状が不良であるにも拘らず、求め
られた長さLが基準長さと許容範囲内で一致して結果的
に良品と誤って判定されてしまう難点がある。
However, in the conventional determination method, the length L is used as a guide for the quality of the shape.
When there is a protrusion Cc smaller than dL + α at the end as shown on the left side of FIG.
When the bulging portion Cd that is narrower than R + α is present at the end portion, the obtained length L matches the reference length within the allowable range, although the end portion shape of the main body Ca is defective. As a result, there is a drawback that the product is erroneously determined to be a good product.

【0005】本発明は上記事情に鑑みてなされたもの
で、その目的とするところは、本体端部の形状良否を適
正に判定することができる電子部品の外観検査装置を提
供することにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an appearance inspection apparatus for an electronic component, which can appropriately determine the quality of the shape of the end portion of the main body.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、請求項1では、本体両端部に同軸上にリ−ドを有す
る電子部品の2次元画像を撮像器で撮像し、電子部品の
輪郭に相当するパタ−ンに基づいて電子部品の外観良否
を判定する電子部品の外観検査装置において、リ−ド輪
郭の上縁から僅かに高い位置に引かれた平行線と本体輪
郭の頂点を通る平行線との中間位置を基点とし、該基点
及びその上下に等間隔で引かれた複数の平行線と本体輪
郭との交点の輪郭座標を求めるサンプリング手段と、サ
ンプリングされた輪郭座標から近似関数式を求める関数
算出手段と、求められた関数式から得られる直線または
曲線とリ−ド輪郭の上縁との交点を求める境界点算出手
段と、求められた境界点を基準境界点と比較する比較手
段と、比較結果に基づいて外観良否を判定する判定手段
とを設けている。
In order to achieve the above object, according to claim 1, a two-dimensional image of an electronic component having coaxial leads on both ends of the main body is imaged by an image pickup device, and the contour of the electronic component is obtained. In a visual inspection apparatus for electronic components that determines the quality of appearance of electronic components based on a pattern corresponding to the above, a parallel line drawn slightly higher than the upper edge of the lead contour and the apex of the main body contour are passed. Sampling means for determining the contour coordinates of the intersections of the body contour with a plurality of parallel lines drawn at equal intervals above and below the base point as a base point, and an approximate function formula from the sampled contour coordinates And a boundary point calculating means for obtaining an intersection of a straight line or a curve obtained from the obtained functional expression and the upper edge of the lead contour, and comparing the obtained boundary point with a reference boundary point. Based on the means and comparison results It is provided with determining means for determining appearance quality and are.

【0007】また、請求項2では、請求項1記載の電子
部品の外観検査装置に、リ−ド輪郭の上縁を通る平行線
と本体輪郭の頂点を通る平行線との中間位置を基点と
し、該基点及びその上下に等間隔で引かれた複数の平行
線と本体輪郭との交点の輪郭座標を求める第2のサンプ
リング手段と、サンプリングされた輪郭座標から近似関
数式を求める第2の関数算出手段と、求められた関数式
の定数を基準定数と比較する第2の比較手段とを設けて
いる。
According to a second aspect of the present invention, in the visual inspection apparatus for an electronic component according to the first aspect, an intermediate position between a parallel line passing through an upper edge of the lead contour and a parallel line passing through an apex of the main body contour is used as a base point. Second sampling means for obtaining contour coordinates of the base point and intersections of a plurality of parallel lines drawn at equal intervals above and below the body contour and the body contour, and second function for obtaining an approximate function formula from the sampled contour coordinates The calculating means and the second comparing means for comparing the obtained constant of the functional expression with the reference constant are provided.

【0008】[0008]

【作用】請求項1記載の外観検査装置では、電子部品の
輪郭に相当するパタ−ンに基づき、まず、リ−ド輪郭の
上縁から僅かに高い位置に引かれた平行線と本体輪郭の
頂点を通る平行線との中間位置を基点とし、該基点及び
その上下に等間隔で引かれた複数の平行線と本体輪郭と
の交点の輪郭座標が求められる。次いで、これら輪郭座
標から近似関数式が求められ、該関数式から得られる直
線または曲線とリ−ド輪郭の上縁との交点(境界点)が
求められる。次いで、この境界点が良品を測定して得ら
れた基準境界点と比較され、該比較結果に基づいて外観
良否が判定される。
In the appearance inspection apparatus according to the first aspect of the present invention, based on the pattern corresponding to the contour of the electronic component, first, the parallel lines and the main body contour drawn at a position slightly higher than the upper edge of the lead contour are drawn. The contour coordinates of the intersection of the main body contour and the base line and a plurality of parallel lines drawn at equal intervals above and below the base point are obtained with the intermediate position between the parallel lines passing through the vertices as the base point. Next, an approximate function formula is obtained from these contour coordinates, and an intersection (boundary point) between the straight line or curve obtained from the function formula and the upper edge of the lead contour is obtained. Next, this boundary point is compared with a reference boundary point obtained by measuring a non-defective product, and the appearance quality is judged based on the comparison result.

【0009】請求項2記載の外観検査装置では、上記と
は別に、電子部品の輪郭に相当するパタ−ンに基づき、
リ−ド輪郭の上縁を通る平行線と本体輪郭の頂点を通る
平行線との中間位置を基点とし、該基点及びその上下に
等間隔で引かれた複数の平行線と本体輪郭との交点の輪
郭座標が求められる。次いで、これら輪郭座標から近似
関数式が求められ、該関数式の定数が良品を測定して得
られた基準定数と比較され、該比較結果に基づいて外観
良否が判定される。本検査装置では、外観良否の判定が
上記境界点位置の比較と合わせて2重にチェックされ
る。
In addition to the above, the appearance inspection apparatus according to claim 2 is based on a pattern corresponding to the contour of the electronic component,
A midpoint between a parallel line passing through the upper edge of the lead contour and a parallel line passing through the apex of the body contour is used as a base point, and the intersection points between the base line and a plurality of parallel lines drawn at equal intervals above and below the body contour. The contour coordinates of are obtained. Next, an approximate function formula is obtained from these contour coordinates, the constant of the function formula is compared with a reference constant obtained by measuring a non-defective product, and the appearance quality is judged based on the comparison result. In this inspection apparatus, the determination of the appearance quality is double checked together with the comparison of the boundary point positions.

【0010】[0010]

【実施例】図1には本発明を適用した外観検査装置の構
成を示してある。同図において、Cはインダクタやコン
デンサ等のリ−ド付き部品、1は部品Cを下方から照明
する照明器、2は部品Cの2次元画像を撮像するカメ
ラ、3が画像デ−タを記憶する画像メモリ、4はマイク
ロコンピュ−タを使用した画像判定手段である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows the structure of a visual inspection apparatus to which the present invention is applied. In the figure, C is a component with a lead such as an inductor and a capacitor, 1 is an illuminator for illuminating the component C from below, 2 is a camera for capturing a two-dimensional image of the component C, and 3 is image data. The image memory 4 is an image determination means using a microcomputer.

【0011】下方からの照明を受ける部品Cはその上方
に位置するカメラ2で撮像され、該画像デ−タは画像メ
モリ3に記憶される。
The component C that receives illumination from below is imaged by the camera 2 located above it, and the image data is stored in the image memory 3.

【0012】画像判定手段4は、第1のサンプリング部
4aと、第1の関数算出部4bと、境界点算出部4c
と、基準境界点メモリ4dと、第1の比較部4eと、第
2のサンプリング部4fと、第2の関数算出部4gと、
基準定数メモリ4hと、第2の比較部4iと、判定部4
jとから構成され、画像メモリ3から抽出された部品輪
郭に相当するパタ−ンに基づき、図2のフロ−チャ−ト
に示した手順で外観形状の良否判定を行なう。
The image judging means 4 includes a first sampling section 4a, a first function calculating section 4b, and a boundary point calculating section 4c.
A reference boundary point memory 4d, a first comparing section 4e, a second sampling section 4f, a second function calculating section 4g,
Reference constant memory 4h, second comparison unit 4i, and determination unit 4
Based on the pattern corresponding to the part contour extracted from the image memory 3, the quality of the outer shape is determined by the procedure shown in the flowchart of FIG.

【0013】まず、パタ−ンPのリ−ド輪郭Paの上縁
よりΔdだけ高い位置に平行線Aを、また本体輪郭Pb
の頂点を通る位置に平行線Atを夫々設定する(図2の
ST1及び図3参照)。Δdは僅かな値であって部品の
サイズに合わせて適宜設定される。
First, a parallel line A is formed at a position higher by Δd than the upper edge of the lead contour Pa of the pattern P, and the main body contour Pb.
The parallel lines At are set at positions passing through the vertices of (see ST1 of FIG. 2 and FIG. 3). Δd is a small value and is set appropriately according to the size of the component.

【0014】次に、平行線A,Atの中間位置を基点と
し、該基点及びその上下に等間隔でA1乃至A5の平行
線を設定する(図2のST2及び図3参照)。本実施例
の平行線A,Atの間には、その間隔の20%と35%
と50%と65%と80%の位置に平行線A1乃至A5
が設定されている。
Next, the intermediate position of the parallel lines A and At is set as a base point, and parallel lines A1 to A5 are set at equal intervals above and below the base point (see ST2 and FIG. 3 in FIG. 2). Between the parallel lines A and At of the present embodiment, 20% and 35% of the space is provided.
And parallel lines A1 to A5 at the positions of 50%, 65% and 80%
Is set.

【0015】次に、各平行線A1乃至A5と本体輪郭P
bとの交点a1乃至a5の輪郭座標(Xa1,Ya
1)、(Xa2,Ya2)、(Xa3,Ya3)、(X
a4,Ya4)、(Xa5,Ya5)を求める(図2の
ST3及び図3参照)。
Next, the parallel lines A1 to A5 and the main body contour P
contour coordinates (Xa1, Ya) of intersection points a1 to a5 with b
1), (Xa2, Ya2), (Xa3, Ya3), (X
a4, Ya4), (Xa5, Ya5) are obtained (see ST3 of FIG. 2 and FIG. 3).

【0016】次に、サンプリングされた5つの交点a1
乃至a5の輪郭座標から、これら輪郭座標に沿う直線関
数式、ここでは該関数式の傾き及び切片を下記式に基づ
いて算出する(図2のST4)。
Next, the five sampled intersection points a1
From the contour coordinates a to a5, the linear function equations along these contour coordinates, here the slopes and intercepts of the functional equations, are calculated based on the following equations (ST4 in FIG. 2).

【0017】直線関数の傾き=2/5(−Xa1−1/
2Xa2+1/2Xa4+Xa5) 直線関数の切片=1/5(Xa1+Xa2+Xa3+X
a4+Xa5) 次に、上記の直線関数式からパタ−ン上に得られる直線
F1とリ−ド輪郭Paの上縁との交点f1の座標(Xf
1,Yf1)を求める(図2のST5及び図4参照)。
この交点f1は部品Cにおけるリ−ドCbと本体Ca
(外装)との計算上の境界点である。
Slope of linear function = 2/5 (-Xa1-1 /
2Xa2 + 1 / 2Xa4 + Xa5) intercept of linear function = 1/5 (Xa1 + Xa2 + Xa3 + X
a4 + Xa5) Next, the coordinates (Xf) of the intersection point f1 of the straight line F1 obtained on the pattern from the above linear function equation and the upper edge of the lead contour Pa.
1, Yf1) (see ST5 in FIG. 2 and FIG. 4).
This intersection f1 is the lead Cb and the body Ca of the component C.
It is a boundary point calculated from (exterior).

【0018】次に、求められた境界点f1の座標(Xf
1,Yf1)を、良品を測定して得た基準境界点の座標
と比較する(図2のST6参照)。
Next, the coordinates (Xf
1, Yf1) is compared with the coordinates of the reference boundary point obtained by measuring the non-defective product (see ST6 in FIG. 2).

【0019】上記ST1乃至ST6の処理は、図3及び
図4に示した部品Cの左側の輪郭に対してのみならず、
部品Cの右側の輪郭に対しても同様に行なわれる。
The processes of ST1 to ST6 are not limited to the left contour of the part C shown in FIGS.
The same applies to the right contour of the part C.

【0020】求められた境界点f1が基準境界点と許容
範囲内で一致すると判断された場合には、続いてパタ−
ンPのリ−ド輪郭Paの上縁を通る位置に平行線Bを、
また本体輪郭Pbの頂点を通る位置に平行線Btを夫々
設定する(図2のST7及び図5参照)。
If it is judged that the obtained boundary point f1 matches the reference boundary point within the allowable range, then the pattern is continued.
A parallel line B at a position passing through the upper edge of the lead contour Pa of
Further, parallel lines Bt are set at positions passing through the vertices of the main body contour Pb (see ST7 of FIG. 2 and FIG. 5).

【0021】次に、平行線B,Btの中間位置を基点と
し、該基点及びその上下に等間隔でB1乃至B5の平行
線を設定する(図2のST8及び図5参照)。本実施例
の平行線B,Btの間には、その間隔の20%と35%
と50%と65%と80%の位置に平行線B1乃至B5
が設定されている。
Next, with the intermediate position between the parallel lines B and Bt as a base point, parallel lines B1 to B5 are set at equal intervals above and below the base point (see ST8 and FIG. 5 in FIG. 2). Between the parallel lines B and Bt of the present embodiment, 20% and 35% of the space is provided.
And parallel lines B1 to B5 at the positions of 50%, 65% and 80%
Is set.

【0022】次に、各平行線B1乃至B5と本体輪郭P
bとの交点b1乃至b5の輪郭座標(Xb1,Yb
1)、(Xb2,Yb2)、(Xb3,Yb3)、(X
b4,Yb4)、(Xb5,Yb5)を求める(図2の
ST9及び図5参照)。
Next, the parallel lines B1 to B5 and the main body contour P
Contour coordinates (Xb1, Yb) of intersection points b1 to b5 with b
1), (Xb2, Yb2), (Xb3, Yb3), (X
b4, Yb4) and (Xb5, Yb5) are obtained (see ST9 of FIG. 2 and FIG. 5).

【0023】次に、サンプリングされた5つの交点b1
乃至b5の輪郭座標から、これら輪郭座標に沿う直線関
数式、ここでは該関数式の傾き及び切片を下記式に基づ
いて算出する(図2のST10)。
Next, five sampled intersections b1
From the contour coordinates b5 to b5, the linear function equations along these contour coordinates, here, the slopes and intercepts of the functional equations are calculated based on the following equations (ST10 in FIG. 2).

【0024】直線関数の傾き=2/5(−Xb1−1/
2Xb2+1/2Xb4+Xb5) 直線関数の切片=1/5(Xb1+Xb2+Xb3+X
b4+Xb5) 次に、求められた直線関数式の傾き及び切片を、良品を
測定して得た直線関数の基準傾き及び基準切片と夫々比
較する(図2のST11参照)。
Slope of linear function = 2/5 (-Xb1-1 /
2Xb2 + 1 / 2Xb4 + Xb5) Linear function intercept = 1/5 (Xb1 + Xb2 + Xb3 + X
b4 + Xb5) Next, the slope and the intercept of the obtained linear function formula are respectively compared with the reference slope and the reference intercept of the linear function obtained by measuring the non-defective product (see ST11 in FIG. 2).

【0025】求められた傾き及び切片が基準傾き及び基
準切片と夫々許容範囲内で一致すると判断された場合に
は、良品の判定が下される(図2のST12参照)。ま
た、上記ST6またはST11で許容範囲内で一致しな
いと判断された場合には、不良品の判定が下される(図
2のST13参照)。
When it is judged that the obtained inclination and intercept agree with the reference inclination and the reference intercept, respectively, within the allowable range, a non-defective product is determined (see ST12 in FIG. 2). If it is determined in ST6 or ST11 that they do not match within the allowable range, a defective product is determined (see ST13 in FIG. 2).

【0026】図2のフロ−チャ−トでは省略したが、部
品Cの右側の輪郭に対しても上記ST1乃至ST11の
処理、実際には平行線A,At,A1乃至A5を右側の
輪郭に対しても兼用できるのでST3乃至ST11の処
理が同様に行なわれる。
Although omitted in the flow chart of FIG. 2, the processing of ST1 to ST11 is performed on the right contour of the part C, and in fact, the parallel lines A, At, and A1 to A5 are changed to the right contour. Since it can be used for both, the processes of ST3 to ST11 are similarly performed.

【0027】このように本実施例では、本体輪郭Pbを
サンプリングして得られた5つの交点a1乃至a5の座
標から該輪郭座標に沿う直線関数式を得て、該直線関数
式の線分F1とリ−ド輪郭Paの上縁との交点f1から
部品Cにおけるリ−ドCbと本体Caとの境界点を求め
てこれを基準境界点と比較するようにしているので、本
体Caの端部に図7に示すような突起部Ccや膨出部C
dが存在するような場合でも、求められた直線関数式に
よって端部形状を的確に捕らえてその形状良否を適正に
判定することができる。
As described above, in the present embodiment, the linear function formula along the contour coordinates is obtained from the coordinates of the five intersection points a1 to a5 obtained by sampling the main body contour Pb, and the line segment F1 of the linear function formula is obtained. Since the boundary point between the lead Cb and the main body Ca in the part C is obtained from the intersection f1 between the upper edge of the main body Ca and the upper edge of the lead contour Pa, this is compared with the reference boundary point. The protrusion Cc and the bulge C as shown in FIG.
Even if d is present, it is possible to accurately grasp the end shape by the obtained linear function formula and appropriately judge the quality of the end shape.

【0028】また、本体輪郭Pbの別位置を更にサンプ
リングして得られた5つの交点b1乃至b5の座標から
該輪郭座標に沿う直線関数式を得て、該直線関数式の傾
き及び切片を基準傾き及び基準切片と夫々比較するよう
にしているので、最初のサンプリングで得られた交点a
1乃至a5の夫々の間に微細な形状変化があるような場
合でも、ここで求められた傾き及び切片から該形状変化
を的確に捕らえて端部形状を2重にチェックすることが
でき、判定をより高い精度で実施することができる。
Further, a linear function equation along the contour coordinates is obtained from the coordinates of the five intersections b1 to b5 obtained by further sampling another position of the main body contour Pb, and the slope and intercept of the linear function equation are used as a reference. Since the slope and the reference intercept are compared respectively, the intersection point a obtained in the first sampling
Even if there is a minute shape change between each of 1 to a5, the end shape can be double checked by accurately grasping the shape change from the inclination and the intercept obtained here. Can be performed with higher accuracy.

【0029】尚、上記実施例における輪郭座標のサンプ
リング数は適宜増減可能であり、またサンプリングされ
た輪郭座標から求められる関数式は曲線関数式であって
もよく、後者の判定に曲線関数式を利用する場合には該
曲線関数式の定数夫々を基準定数と比較するようにする
とよい。また、後者の判定には最小二乗近似法によって
得られる5次式を利用することもでき、該式の定数夫々
を基準定数と比較するようにすれば同様の判定を行なう
ことができる。
The number of contour coordinate samplings in the above embodiment can be increased or decreased as appropriate, and the function formula obtained from the sampled contour coordinates may be a curve function formula. When used, each constant of the curve function formula may be compared with a reference constant. Further, a quintic equation obtained by the least-squares approximation method can be used for the latter determination, and the same determination can be performed by comparing each constant of the equation with a reference constant.

【0030】[0030]

【発明の効果】以上詳述したように、請求項1記載の外
観検査装置によれば、本体輪郭をサンプリングして得ら
れた複数の交点の座標から該輪郭座標に沿う関数式を得
て、該関数式から得られる直線または曲線とリ−ド輪郭
の上縁との交点から部品におけるリ−ドと本体との境界
点を求めてこれを基準境界点と比較するようにしている
ので、本体端部に小さな突起部や細長い膨出部が存在す
るような場合でも、求められた関数式によって端部形状
を的確に捕らえてその形状良否を適正に判定することが
できる。
As described in detail above, according to the appearance inspection apparatus of the first aspect, a functional expression along the contour coordinates is obtained from the coordinates of a plurality of intersections obtained by sampling the body contour, Since the boundary point between the lead and the body in the part is determined from the intersection of the straight line or curve obtained from the functional expression and the upper edge of the lead contour, this is compared with the reference boundary point. Even when there is a small protrusion or an elongated bulge at the end, the shape of the end can be accurately grasped by the obtained functional expression and the quality of the shape can be appropriately determined.

【0031】また、請求項2記載の外観検査装置によれ
ば、本体輪郭の別位置を更にサンプリングして得られた
複数の交点の座標から該輪郭座標に沿う関数式を得て、
該関数式の定数を基準定数と比較するようにしているの
で、最初のサンプリングで得られた交点夫々の間に微細
な形状変化があるような場合でも、求められた関数式の
定数から該形状変化を的確に捕らえて端部形状を2重に
チェックすることができ、判定をより高い精度で実施す
ることができる。
Further, according to the appearance inspection apparatus of the second aspect, a functional expression along the contour coordinates is obtained from the coordinates of a plurality of intersections obtained by further sampling different positions of the body contour,
Since the constant of the functional expression is compared with the reference constant, even if there is a minute change in shape between the intersections obtained in the first sampling, the shape of the shape can be calculated from the constant of the obtained functional expression. The change can be accurately captured to double-check the end shape, and the determination can be performed with higher accuracy.

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

【図1】本発明を適用した外観検査装置の構成図FIG. 1 is a configuration diagram of an appearance inspection device to which the present invention is applied.

【図2】判定方法を示すフロ−チャ−トFIG. 2 is a flow chart showing a determination method.

【図3】サンプリングの手順を示すパタ−ン図FIG. 3 is a pattern diagram showing a sampling procedure.

【図4】境界点を求める手順を示すパタ−ン図FIG. 4 is a pattern diagram showing a procedure for obtaining a boundary point.

【図5】サンプリングの手順を示すパタ−ン図FIG. 5 is a pattern diagram showing a sampling procedure.

【図6】従来の判定方法を示す部品平面図FIG. 6 is a component plan view showing a conventional determination method.

【図7】従来の判定方法における不具合を示す部品上面
FIG. 7 is a top view of a component showing a defect in the conventional determination method.

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

C…部品、Ca…本体、Cb…リ−ド、2…カメラ、3
…画像メモリ、4…画像判定手段、4a…第1のサンプ
リング部、4b…第1の関数算出部、4c…境界点算出
部、4e…第1の比較部、4f…第2のサンプリング
部、4g…第2の関数算出部、4i…第2の比較部、4
j…判定部、P…パタ−ン、Pa…リ−ド輪郭、Pb…
本体輪郭、A,At,A1〜A5…平行線、a1〜a5
…交点、F1…直線、f1…境界点、B,Bt,B1〜
B5…平行線、b1〜b5…交点。
C ... parts, Ca ... main body, Cb ... lead, 2 ... camera, 3
... image memory, 4 ... image determining means, 4a ... first sampling section, 4b ... first function calculating section, 4c ... boundary point calculating section, 4e ... first comparing section, 4f ... second sampling section, 4g ... 2nd function calculation part, 4i ... 2nd comparison part, 4
j ... Judgment part, P ... Pattern, Pa ... Lead contour, Pb ...
Body outline, A, At, A1 to A5 ... Parallel lines, a1 to a5
... intersection, F1 ... straight line, f1 ... boundary point, B, Bt, B1 ...
B5 ... parallel lines, b1 to b5 ... intersections.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 本体両端部に同軸上にリ−ドを有する電
子部品の2次元画像を撮像器で撮像し、電子部品の輪郭
に相当するパタ−ンに基づいて電子部品の外観良否を判
定する電子部品の外観検査装置において、 リ−ド輪郭の上縁から僅かに高い位置に引かれた平行線
と本体輪郭の頂点を通る平行線との中間位置を基点と
し、該基点及びその上下に等間隔で引かれた複数の平行
線と本体輪郭との交点の輪郭座標を求めるサンプリング
手段と、 サンプリングされた輪郭座標から近似関数式を求める関
数算出手段と、 求められた関数式から得られる直線または曲線とリ−ド
輪郭の上縁との交点を求める境界点算出手段と、 求められた境界点を基準境界点と比較する比較手段と、 比較結果に基づいて外観良否を判定する判定手段とを設
けた、 ことを特徴とする電子部品の外観検査装置。
1. A two-dimensional image of an electronic component having coaxial leads on both ends of a main body is picked up by an image pickup device, and the quality of appearance of the electronic component is judged based on a pattern corresponding to the contour of the electronic component. In the appearance inspection device for electronic parts, the intermediate point between the parallel line drawn at a slightly higher position from the upper edge of the lead contour and the parallel line passing through the apex of the main body contour is set as the base point, and Sampling means for obtaining contour coordinates of intersections of a plurality of parallel lines drawn at equal intervals and the body contour, function calculating means for obtaining an approximate function formula from the sampled contour coordinates, and straight line obtained from the obtained function formula Or a boundary point calculating means for obtaining an intersection between the curve and the upper edge of the lead contour, a comparing means for comparing the obtained boundary point with a reference boundary point, and a judging means for judging the appearance quality based on the comparison result. Provided that A visual inspection device for electronic parts.
【請求項2】 リ−ド輪郭の上縁を通る平行線と本体輪
郭の頂点を通る平行線との中間位置を基点とし、該基点
及びその上下に等間隔で引かれた複数の平行線と本体輪
郭との交点の輪郭座標を求める第2のサンプリング手段
と、 サンプリングされた輪郭座標から近似関数式を求める第
2の関数算出手段と、 求められた関数式の定数を基準定数と比較する第2の比
較手段とを設けた、 ことを特徴とする請求項1記載の電子部品の外観検査装
置。
2. An intermediate position between a parallel line passing through the upper edge of the lead contour and a parallel line passing through the apex of the main body contour is set as a base point, and a plurality of parallel lines drawn at equal intervals above and below the base point. Second sampling means for obtaining the contour coordinates of the intersection with the body contour, second function calculating means for obtaining an approximate function formula from the sampled contour coordinates, and first comparing the constant of the obtained function formula with a reference constant. 2. The appearance inspection apparatus for an electronic component according to claim 1, further comprising: a second comparison unit.
JP4053752A 1992-03-12 1992-03-12 Inspecting apparatus of external appearance of electronic component Withdrawn JPH05256788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4053752A JPH05256788A (en) 1992-03-12 1992-03-12 Inspecting apparatus of external appearance of electronic component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4053752A JPH05256788A (en) 1992-03-12 1992-03-12 Inspecting apparatus of external appearance of electronic component

Publications (1)

Publication Number Publication Date
JPH05256788A true JPH05256788A (en) 1993-10-05

Family

ID=12951547

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4053752A Withdrawn JPH05256788A (en) 1992-03-12 1992-03-12 Inspecting apparatus of external appearance of electronic component

Country Status (1)

Country Link
JP (1) JPH05256788A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012234255A (en) * 2011-04-28 2012-11-29 Suzuki Motor Corp Image processing device and image processing method
JP2016085126A (en) * 2014-10-27 2016-05-19 有限会社ナンカ Inspection device for electronic assembly

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012234255A (en) * 2011-04-28 2012-11-29 Suzuki Motor Corp Image processing device and image processing method
JP2016085126A (en) * 2014-10-27 2016-05-19 有限会社ナンカ Inspection device for electronic assembly

Similar Documents

Publication Publication Date Title
JP2824552B2 (en) System and method for automatic optical inspection
US7245387B2 (en) Three-dimensional measuring instrument
US5138180A (en) Wire bonding inspecting apparatus utilizing a controlling means for shifting from one inspected area to another
JPH0828402B2 (en) System and method for inspection and alignment of semiconductor chips and conductor lead frames
JP3311135B2 (en) Inspection range recognition method
US6577758B1 (en) Image position detection technique in which input parameters can be easily determined
JPH05256788A (en) Inspecting apparatus of external appearance of electronic component
KR100303130B1 (en) Automatic teaching device and method using printed circuit board image processing
JP2930746B2 (en) Parts inspection equipment
CN106643483B (en) Workpiece inspection method and device
JPH08204096A (en) Method of lead visual inspection of semiconductor device and inspector
JPH033941B2 (en)
JPS62115591A (en) Recognition method for pattern position
JPH0429007A (en) Optical inspection device
JP3694198B2 (en) Pattern alignment method
JP2747396B2 (en) Appearance inspection equipment for electronic components
JP3106370B2 (en) Defect detection and type recognition of printed circuit boards using graph information
JP3590809B2 (en) How to measure overlay error
JPH0653700A (en) Circuit board inspecting apparatus
JP3534817B2 (en) Automatic lighting setting method and device
JPH01180438A (en) Surface defect inspection instrument
JPH07333168A (en) Pattern appearance inspection device
JP5096940B2 (en) Inspection method and apparatus for printed wiring board
KR100326256B1 (en) Method for searching aligned pattern in wire bonding
JP2814394B2 (en) Electronic component appearance inspection method

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: 19990518