JPH01236700A - Inspection and orientation recognition method of component lead - Google Patents

Inspection and orientation recognition method of component lead

Info

Publication number
JPH01236700A
JPH01236700A JP63064293A JP6429388A JPH01236700A JP H01236700 A JPH01236700 A JP H01236700A JP 63064293 A JP63064293 A JP 63064293A JP 6429388 A JP6429388 A JP 6429388A JP H01236700 A JPH01236700 A JP H01236700A
Authority
JP
Japan
Prior art keywords
lead
component
center position
image information
memory
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.)
Granted
Application number
JP63064293A
Other languages
Japanese (ja)
Other versions
JPH0810800B2 (en
Inventor
Kazuto Koizumi
和人 小泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63064293A priority Critical patent/JPH0810800B2/en
Publication of JPH01236700A publication Critical patent/JPH01236700A/en
Publication of JPH0810800B2 publication Critical patent/JPH0810800B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Automatic Assembly (AREA)
  • Supply And Installment Of Electrical Components (AREA)
  • Control Of Position Or Direction (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To enable the detection of a lead bending amount and the judgement of a component orientation at the same time by a line sensor camera by a method wherein a lead bending amount is detected and a center position of the whole component is computed from a lead position at the same time, and the positional deviation of the center of the component from the center of a package is computed. CONSTITUTION:A binary image information, obtained by imaging each lead side of a component 6 through a line sensor camera 6, is stored in a memory 8, a lead position and a pitch between leads are obtained from the image information of the memory 8, and a center position of a lead side is computed the position of the lead whose right and left pitches are equal to from other. Here, if a component is provided with four lead sides, a center position of the whole component and the positional deviation amount of the center position based on the lead as a datum are computed from the center position of each lead side, and the positional correction of the component is performed corresponding to the obtained positional deviation amount. And, the image of the lead side of the positionally corrected component is imaged again by the line sensor camera 6, binary image information is stored in the memory 8, and it is confirmed from the image information whether the correction is complete or not. By these processes, a lead bending inspection and an orientation judgement can be performed at the same time using the line censor camera.

Description

【発明の詳細な説明】 〔概要〕 部品のリード部の曲がり検査及び部品の姿勢認識方式に
関し、 ラインセンサ・カメラで部品の姿勢判定及びリード部が
り量の検出を行うことを目的とし、■ラインセンサ・カ
メラで部品の各リード辺を撮像し、多値画像情報を2値
化してメモリにストアし、■メモリ上の2値画像情報に
基づいてリード位置及びリード間ビッヂを求め、左右の
ピッチが等しいリード位置からリード辺の中心位置を算
出し、■4辺にリード辺が存在する部品については各リ
ード辺の中心位置から部品全体の中心位置及び位置ずれ
量を算出し、■位置ずれ量に従って部品の位置補正を行
い、■位置補正済の部品のリード辺をラインセンサ・カ
メラで撮像し、2(ii!画像情報をメモリにストアし
、当該2値画像情報に基づいて補正が完全か否を確認す
る。2辺にのみリード辺を持つ部品については、リード
辺の中心位置及びリード先端(又は付根)位置から部品
全体の中心位置および位置ずれ量を算出する9〔産業上
の利用分野〕 本発明は、近年増大しているフラット・リード・パッケ
ージ型部品のリード部の曲がり検査および部品の姿勢認
識方式に関するものである。
[Detailed Description of the Invention] [Summary] Regarding the bending inspection of the lead portion of a component and the posture recognition method of the component, the purpose of the present invention is to determine the posture of the component and detect the amount of bending of the lead portion using a line sensor/camera. A sensor camera images each lead side of the component, converts the multi-valued image information into binarized data and stores it in memory. Based on the binary image information on the memory, determines the lead position and the bit between leads, and determines the left and right pitch. Calculate the center position of the lead sides from the lead positions where the values are equal, ■ For parts with lead sides on four sides, calculate the center position and positional deviation of the entire part from the center position of each lead side, and ■ Calculate the positional deviation amount. Correct the position of the component according to For parts with lead sides on only two sides, calculate the center position and displacement amount of the entire part from the center position of the lead sides and the lead tip (or root) position.9 [Industrial Application Field] TECHNICAL FIELD The present invention relates to a method for inspecting bending of leads of flat lead package type components, which has been increasing in recent years, and for recognizing the posture of the component.

〔従来の技術〕[Conventional technology]

従来、フラット・リード・パッケージ型部品のリード部
の曲がり検査はエリア・カメラもしくはラインセンサ・
カメラで部品のリード部を撮像し、映像信号をA/D変
換し、ディジタル信号によりリード部の曲がり量を計測
する方法が採用されている。
Conventionally, bending of the leads of flat lead package type components has been inspected using area cameras or line sensors.
A method has been adopted in which the lead portion of the component is imaged with a camera, the video signal is A/D converted, and the amount of bending of the lead portion is measured using a digital signal.

[発明が解決しようとする課題〕 しかし、対象部品の微小化或いはリード部分やプリント
板パターンの微細化に伴い、十分な測定精度を得るため
には、 (a)  エリア・カメラではCCD素子の1通光たり
の構成画素数が少ないため、撮像光学系の倍率を上げて
何百回も取り込まなければならない。
[Problems to be Solved by the Invention] However, as the target parts become smaller and the lead parts and printed board patterns become smaller, in order to obtain sufficient measurement accuracy, (a) In the area camera, one of the CCD elements Because the number of pixels that pass through light is small, it is necessary to increase the magnification of the imaging optical system and capture images hundreds of times.

(6) ラインセンサ・カメラは一回の撮像で1ライン
分の画像情報しか得られないため、対象部品とラインセ
ンサ・カメラの位置ずれにより計測に誤差が生じ易く、
部品の姿勢を認識し、高精度の位置補正を行う必要があ
る。
(6) Since the line sensor/camera can only obtain image information for one line in one image capture, measurement errors are likely to occur due to misalignment between the target part and the line sensor/camera.
It is necessary to recognize the orientation of parts and perform highly accurate position correction.

などの問題があった。There were other problems.

ら)の方法においては、ラインセンサと検査対象部品が
位置ずれを起こしていると、リード間のピッチ情報が異
なったものとなってしまう。また、リード部がり検査後
、プリント板の所定のパターン上に部品を配置する場合
、部品のパッケージは製造時にかなりの歪を有している
ため、パッケージの中心位置とプリント板上パターンの
位置合わせを行っても、必ずしも正確に実装できるとは
限らない。それ故、正確な位置合わせを行うためには、
部品リード位置から部品全体(パッケージとリード)の
中心位置を求め、パッケージの中心位置との位置ずれを
補正する必要がある。
In the above method, if the line sensor and the component to be inspected are misaligned, the pitch information between the leads will be different. In addition, when placing the component on a predetermined pattern on the printed board after inspecting the lead edge, it is necessary to align the center position of the package with the pattern on the printed board because the component package has considerable distortion during manufacturing. Even if you do this, it may not always be possible to implement it accurately. Therefore, in order to perform accurate alignment,
It is necessary to find the center position of the entire component (package and leads) from the component lead position and correct the positional deviation from the center position of the package.

本発明は、この点に迄みて創作されたものであうで、ラ
インセンサ・カメラで部品の姿勢判定を行うと同時にリ
ード部がり量の検出を行うことを目的としている。
The present invention has been created in view of this point, and its object is to simultaneously determine the posture of a component using a line sensor/camera and to detect the amount of bending of a lead portion.

〔問題点を解決するための手段] 第1図(a)は本発明の第1番目の発明の原理図、第1
図(b)は第2番目の発明の原理図である。本発明は、
リード部がり量を検出し、同時にリード位置から部品全
体の中心位置を算出し、パッケージの中心との位置ずれ
量を算出するものである。第1番目の発明は、4辺にリ
ード辺を持つ部品に関するものであって、 ■ ラインセンサ・カメラで以て部品の各リード辺を撮
像し、ラインセンサ・カメラから出力される多値画像情
報を2値化し、2値画像情報をメモリにストアし、 ■ メモリ上の2値画像情報に基づいて、リード位置及
びリード間ピッチを求め、左右のピッチが等しいリード
位置からリード辺の中心位置を算出し、 ■ 4辺にリード辺が存在する部品については、各リー
ド辺の中心位置からリードを基準とした部品全体の中心
位置および位置ずれ量を算出し、■ 求めた位置ずれ量
に従って部品の位置補正を行い、 ■ 位置補正が行われた部品のリード辺を再びラインセ
ンサ・カメラで撮像し、2値画像情報をメモリにストア
し、メモリ上の当該2値画像情報に基づいて補正が完全
か否を確認することを構成要件としている。
[Means for solving the problem] FIG. 1(a) is a diagram of the principle of the first invention of the present invention;
Figure (b) is a diagram of the principle of the second invention. The present invention
The amount of lead bending is detected, and at the same time, the center position of the entire component is calculated from the lead position, and the amount of positional deviation from the center of the package is calculated. The first invention relates to a component having lead sides on four sides, and includes: (1) A line sensor/camera is used to image each lead side of the part, and the line sensor/camera outputs multi-valued image information. Binarize and store the binary image information in the memory. ■ Based on the binary image information on the memory, find the lead position and pitch between leads, and calculate the center position of the lead side from the lead position where the left and right pitches are equal. ■ For parts that have lead sides on all four sides, calculate the center position and positional deviation of the entire part based on the lead from the center position of each lead side, and ■ Calculate the positional deviation of the part according to the calculated positional deviation. After performing position correction, ■ Image the lead side of the component whose position has been corrected again using a line sensor camera, store binary image information in memory, and complete correction based on the binary image information in memory. The configuration requirement is to confirm whether or not this is the case.

第2番目の発明は、対向する2辺にのみリード辺を持つ
部品に関するものあって、リードの先端(又は付jif
i)位置を求め、各リード辺の中心位置及びリードの先
端(又は付根)位置からリードを基準とした部品全体の
中心位置および位置ずれ量を算出するものである。その
他の点については第1番目の発明と同じである。
The second invention relates to a component having lead sides only on two opposing sides, and the tip of the lead (or attached jif)
i) The position is determined, and the center position and positional deviation amount of the entire component with respect to the lead are calculated from the center position of each lead side and the tip (or root) position of the lead. The other points are the same as the first invention.

〔実施例] 第2図は本発明のシステム構成例を示すブロック図であ
る。照明部1は検査対象部品3の上方に配置され、明暗
のはっきりした像を得るため、照明部lの発光面と部品
3との間に白色の光拡散板2が設置されている。撮像部
は、カメラ・レンズ5やCCDラインセンサ・カメラ6
などを有しており、検査対象部品3の下方から撮像し、
リード部のシルエツト像を撮像する。画像処理部は、デ
ータ処理を行うマイクロプロセッサ10、CCDライン
センサ・カメラ6からのアナログ信号をマイクロプロセ
ッサ10からの制御信号に基づいてA/D変換してメモ
リ8に格納するカメラ・インタフェース7、ディジタル
化された画像情報を記憶するメモリ8、メカ・インタフ
ェース9、検査結果をCRTに出力するためのCRTコ
ントローラ11、検査結果を記憶する外部記憶装置13
および外部記憶装置コントローラ12から構成される。
[Embodiment] FIG. 2 is a block diagram showing an example of the system configuration of the present invention. The illumination section 1 is arranged above the component 3 to be inspected, and a white light diffusing plate 2 is installed between the light emitting surface of the illumination section 1 and the component 3 in order to obtain a clear image of brightness and darkness. The imaging unit includes a camera lens 5 and a CCD line sensor camera 6.
etc., the image is taken from below the part to be inspected 3,
A silhouette image of the lead section is taken. The image processing unit includes a microprocessor 10 that performs data processing, a camera interface 7 that A/D converts an analog signal from the CCD line sensor camera 6 based on a control signal from the microprocessor 10, and stores it in a memory 8. A memory 8 for storing digitized image information, a mechanical interface 9, a CRT controller 11 for outputting test results to a CRT, and an external storage device 13 for storing test results.
and an external storage device controller 12.

メカ・インタフェース9は、検査対象部品を保持し移動
させるロボット(図示せず)およびカメラを移動させる
ロボットの制御を行うためのものである。
The mechanical interface 9 is for controlling a robot (not shown) that holds and moves the parts to be inspected and a robot that moves the camera.

第3図は検査フローチャートを示す図である。FIG. 3 is a diagram showing an inspection flowchart.

以下に具体的な検査方法について説明する。先ず、検査
対象部品を検査位置(プリント板への実装位置)にセッ
トし、ラインセンサ・カメラを各リード辺の位置に移動
させる。移動が完了した蒔点て、リード部のシルエツト
像を撮像し、カメラ・インタフェースはラインセンサ・
カメラより得られるアナログ波形をA/Dコンバータで
ディジタル変換し、そのピーク値を求める。次に、求め
たピーク値の1/2もしくは1/3程度を闇値として再
びラインセンサ・カメラで撮像し、カメラ出力波と上記
闇値をコンパレータで比較しながら輝度レベルが“0°
°か°“1′′の2値画像をメモリに取り込む。
A specific inspection method will be explained below. First, the component to be inspected is set at the inspection position (the mounting position on the printed board), and the line sensor/camera is moved to the position of each lead side. Once the sowing point has been moved, a silhouette image of the lead section is taken, and the camera interface is connected to the line sensor.
The analog waveform obtained from the camera is converted into digital by an A/D converter, and its peak value is determined. Next, about 1/2 or 1/3 of the obtained peak value is set as a dark value and the image is captured again by the line sensor camera, and while comparing the camera output wave and the above dark value with a comparator, the brightness level is "0°".
Load the binary image of ° or °“1'' into the memory.

このメモリ上の2値画像情報の中でリード部分を示す輝
度レベル“0”のビット位置をカウントして位置数nを
求め、予め求めて置いた正常部品のリード部分を最適な
闇値で撮像して得た2値画像中のリード部分を示す輝度
レベル“0”の位置数Nと比較し、位置数nが値Nと掛
は離れたものであれば、闇値を変化させ、再び2値画像
を取り込み、同じ操作を繰り返す。
The number of positions n is determined by counting the bit positions of the brightness level "0" indicating the lead part in the binary image information on this memory, and the lead part of the normal component determined in advance is imaged with the optimal darkness value. Compare the number of positions N of brightness level "0" indicating the lead part in the binary image obtained by Import the value image and repeat the same operation.

位置数nがあらかじめ求めておいた値Nに充分に近けれ
ば、取り込んだ2値画像からリードのエツジ部分を示す
輝度レベルが“1″から“0′′及び“O11から“1
”の反転位置を探索し、リード位置とリード本数を求め
る。
If the number of positions n is sufficiently close to the predetermined value N, the brightness level indicating the edge portion of the lead from the captured binary image will change from "1" to "0'' and from "O11 to "1".
” search for the reversal position and find the lead position and number of leads.

リード本数が規定値と等しくなければ、リード折れ又は
位置ずれ大としてリジェクトする。規定値と等しければ
、リード部分の中心位置をリード位置とし、リード間ピ
ッチを算出し、メモリにスドアする。もし、検査対象部
品が回転していれば、ピッチは正規のものより長くなっ
ている。ここで、左右のリード間ピッチが等しい複数の
リード位置よりリード辺の中心位置を算出する。第4図
はリード部の多値画像と2値画像の例を示す。2値画像
に基づいてリード位置およびリード間ピッチが算出され
る。
If the number of leads is not equal to the specified value, it will be rejected as broken leads or large positional deviations. If it is equal to the specified value, the center position of the lead portion is set as the lead position, the inter-lead pitch is calculated, and it is stored in the memory. If the part to be inspected is rotating, the pitch will be longer than the normal one. Here, the center position of the lead side is calculated from a plurality of lead positions where the pitch between the left and right leads is equal. FIG. 4 shows an example of a multivalued image and a binary image of the lead portion. A lead position and an inter-lead pitch are calculated based on the binary image.

更に、リードが2辺しかない検査対象部品についてはカ
メラを前後に移動させ、2値画像を取り込み、リード部
を示す輝度レベル“O11の画素数をカウントすること
により、リードの先端(又は付根)部分を発見する。
Furthermore, for parts to be inspected that have only two sides of the lead, by moving the camera back and forth, capturing a binary image, and counting the number of pixels with a brightness level of "O11" that indicates the lead part, the tip (or root) of the lead can be detected. Discover the parts.

各辺に対して上記操作を行い、リード辺が4辺の部品に
ついては4辺の中心よりリードを基準とした部品全体の
中心位置および回転量を算出し、リード辺が2辺の部品
については2辺の中心とリード先端位置よりリードを基
準とした部品全体の中心位置および回転量を算出する。
Perform the above operation for each side, and for parts with four lead sides, calculate the center position and rotation amount of the entire part with the lead as a reference from the center of the four sides, and for parts with two lead sides, calculate the center position and rotation amount of the entire part with the lead as a reference. The center position and rotation amount of the entire part with the lead as a reference are calculated from the center of the two sides and the position of the lead tip.

第5図は2辺にのみリードがある部品におけるリード辺
の中心およびリード先端を示す。
FIG. 5 shows the center of the lead sides and the tips of the leads in a component that has leads on only two sides.

次に、求めた回転量より以前に求めた各辺のリード間ピ
ッチが規定範囲内か否かを判定する。規定外であればリ
ードが曲がっているわけであるからリジェクトし、規定
内であれば位置補正を施す。
Next, it is determined whether the lead-to-lead pitch on each side, which was determined earlier than the determined amount of rotation, is within a specified range. If it is outside the specifications, the lead is bent, so it is rejected, and if it is within the specifications, the position is corrected.

最後に1辺もしくは各辺について再び2値画像を取り込
み、両端のリード位置及びリード位置より補正が良好で
るか否かを判定する。第3図の検査でOKとされた部品
(例えばLSI20)は、第6図に示すように、プリン
ト板30上に載せられ、LSI20のリード部とプリン
ト板30上の接続パターンとが半田付けされる。
Finally, a binary image is captured again for one side or each side, and it is determined whether the correction is satisfactory based on the lead positions at both ends and the lead positions. A component (for example, LSI 20) that is found to be OK in the inspection shown in FIG. 3 is placed on a printed circuit board 30, as shown in FIG. Ru.

第7図は2値化スライス・レベルの設定方法を説明する
図である。同図(a)のごとく部品のリード部をライン
センサで撮像すると、透過照明であるからリード部では
光が遮断されて多値画像の場合には同図(b)のごとく
リード部が谷となる。いま、スライス・レベルを同図■
)のAのように輝度の高い所に設定すると、得られる2
値画像は同図(C)のごとくリード部を示す輝度レベル
“0″の部分が広(なる。逆に同図(b)のBのように
輝度の低い所にスライス・レベルを設定すると、得られ
る2(直両像は同図(d)のごとくリード部を示す輝度
レベル“O11の部分が狭くなる。このように、設定す
るスライス・レベルにより、実際のリード部の幅より2
値画像上でのリード部の幅が広くなったり、狭くなった
りする。本発明では、リード部の位置を求めるのに2値
画像の輝度レベルの0”の部分の中心位置を探索してい
るが、2値画像上のリード部の幅が極端に広かったり、
狭かったりすると、中心位置がばらつきやすい。このた
め、常に実際のリード幅と2値画像のリード幅を一致さ
せるようにスライス・レベルを設定する。
FIG. 7 is a diagram illustrating a method of setting a binarization slice level. When the lead part of a component is imaged with a line sensor as shown in figure (a), the light is blocked at the lead part due to transmitted illumination, and in the case of a multilevel image, the lead part becomes a valley as shown in figure (b). Become. Now, change the slice level to the same figure.■
), you can get 2 if you set it in a place with high brightness like A in
In the value image, as shown in (C) in the same figure, the part with the brightness level "0" that indicates the lead part becomes wide (conversely, if the slice level is set in a place with low brightness as shown in B in (b) in the same figure, As shown in the figure (d), the area at the brightness level "O11" that indicates the lead part is narrower in the obtained 2 (direct) image.In this way, depending on the slice level that is set, the width is 2
The width of the lead part on the value image becomes wider or narrower. In the present invention, the center position of the 0" brightness level part of the binary image is searched to find the position of the lead part, but if the width of the lead part on the binary image is extremely wide,
If it is narrow, the center position will tend to vary. Therefore, the slice level is set so that the actual lead width always matches the lead width of the binary image.

第8図はリード辺の中心位置の算出方法を説明する図で
ある。得られた2値画像から輝度レベル“′0“の部分
を探索し、輝度レベル“0゛の部分のそれぞれについて
中心位置を求め、各リード位置Ikとする。また、得ら
れた各リード位置■。
FIG. 8 is a diagram illustrating a method of calculating the center position of the lead side. The obtained binary image is searched for the part with the brightness level "'0", and the center position of each part with the brightness level "0" is determined and set as each lead position Ik.In addition, each of the obtained lead positions .

と次のリード位置1 k、、との差を取っていくと、リ
ード間ピッチP、が求められる。いま、リードN+1を
考えると、−本左側のリードとの間の距離はP 11、
−本右側のリードとの間の距離はP、%や1であり、も
しN+1が曲がっていれば、Δp、 =!p、、−p、
、、、1 は大きな値となる。従って、各リードについてこのΔP
hを計算し、規定値と比較し、曲がりの検査を行う。こ
の方法であると、部品のθずれがある程度(±10@)
あっても、もしリードが曲がっていなければ殆どΔP、
ζOとなり、回転ずれにあまり影響されない。次に、以
上の曲がり検査で曲がっていないと判定できたリード(
例えば同図でN+3)の位置■、と部品が位置ずれなく
ラインセンサに撮像された場合、そのリードがある位置
Jkとの差  。
and the next lead position 1k, ., the inter-lead pitch P can be found. Now, considering lead N+1, the distance between it and the lead on the left side is P 11,
- The distance between the lead on the right side of the book is P, % or 1, and if N+1 is bent, Δp, =! p,,-p,
, , 1 is a large value. Therefore, for each lead, this ΔP
Calculate h, compare with specified value, and inspect for bending. With this method, the θ deviation of the parts will be to some extent (±10@)
Even if there is, if the lead is not bent, almost ΔP,
ζO, and is not affected much by rotational deviation. Next, check the leads (
For example, if the part is imaged by the line sensor at position N+3) in the figure without any positional deviation, the difference between position Jk and position Jk where the lead is located.

Δdm=Jm   Im を求める。曲がっていないリードの各々についてΔd、
を求め、合計し、曲がっていないリードの本数で割って
平均位置ずれ量ΔDを求める。このΔDと部品が位置ず
れなくラインセンサに撮像された場合のリード辺の中心
位2cとの和を取れば、部品のリード辺の中心が求めら
れる。
Find Δdm=Jm Im. Δd for each unbent lead,
is calculated, summed, and divided by the number of unbent leads to determine the average positional deviation amount ΔD. The center of the lead side of the component can be found by taking the sum of this ΔD and the center position 2c of the lead side when the component is imaged by the line sensor without positional deviation.

第9図はリードから部品全体の中心位置を算出する方法
を説明する図である。先ず、4辺にリード辺がある部品
について説明する。上述の方法により部品の各リード辺
の中心位置が求まっている。
FIG. 9 is a diagram illustrating a method of calculating the center position of the entire component from the leads. First, a component having lead sides on four sides will be explained. The center position of each lead side of the component is determined by the method described above.

同図(a)のSo、Sl 、32.33は4辺ニリート
辺がある部品における各リード辺の中心位置を示してい
る。また、部品が位置ずれなしの場合の部品の中心Cの
座標も既知である。各辺の中心位置S0ないしS、を用
いて対向2辺の中心を結ぶ2本の交点を求めれば、部品
の中心位置C′が求まる。また、部品の傾きθは各線分
のX軸もしくはY軸となす角である。
So, Sl, and 32.33 in FIG. 3(a) indicate the center position of each lead side in a component having four nirito sides. Furthermore, the coordinates of the center C of the component when the component is not displaced are also known. By using the center positions S0 to S of each side to find two intersections connecting the centers of two opposing sides, the center position C' of the part can be found. Further, the inclination θ of the component is the angle formed by each line segment with the X axis or the Y axis.

次に、2辺にリード辺のある部品について説明する。上
述の方法により部品の各リード辺の中心位置が求まって
いる。同図ら)のSO,Slは2辺にリード辺がある部
品における各リード辺の中心位置を示している。また、
リード先端位置および部品が位置ずれなしの場合の部品
の中心Cの座標も既知である。So、Stを結ぶ線分と
、各リード先端位置の中心位置を通るX軸に平行な線分
との交点が部品の中心位置C′である。また、部品の傾
きθは、So、Stを結ぶ線分がY軸となす角となる。
Next, a component having lead sides on two sides will be explained. The center position of each lead side of the component is determined by the method described above. SO and SL in FIGS. 3A and 3B indicate the center position of each lead side in a component having lead sides on two sides. Also,
The lead tip position and the coordinates of the center C of the component when the component is not displaced are also known. The intersection of the line segment connecting So and St and the line segment parallel to the X-axis passing through the center position of each lead tip position is the center position C' of the component. Further, the inclination θ of the component is the angle that the line segment connecting So and St makes with the Y axis.

次に、位置ずれ量の算出について説明する。上述のC′
点の座標を(x++y+)とし、0点の座標を(x (
1+ y 6)とする。
Next, calculation of the amount of positional deviation will be explained. C′ mentioned above
Let the coordinates of the point be (x++y+), and the coordinates of the 0 point be (x (
1+y6).

今、0点を原点とする座標系を考えると、C′点の座標
はC+(X+−Xo+3’+−3’o)に変換できる。
Now, considering a coordinate system with the origin at point 0, the coordinates of point C' can be converted to C+(X+-Xo+3'+-3'o).

部品はθの傾きを有しているから、この原点を中心とし
て−θ回転させて、θ方向の位置補正を考えると、虐は
Cz(x l+ )’ z)に回転移動する。このCz
(xz、yz)の座標は、 X z=(X l−X o)cos(−θL O’+−
yo)sin(−θ)3’ z= (X I−X o)
sin(−θ)+ 0’ I−N o)cos(−〇)
となる。
Since the part has an inclination of θ, if it is rotated by -θ around the origin and the position correction in the θ direction is considered, the rotational movement will be Cz(x l+ )'z). This Cz
The coordinates of (xz, yz) are:
yo) sin(-θ)3' z= (X I-X o)
sin (-θ) + 0' I-No) cos (-〇)
becomes.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなうよに、本発明によれば、 (a)  ラインセンサ・カメラを用いているため、処
理スピードが速い。
As is clear from the above description, according to the present invention: (a) Processing speed is fast because a line sensor/camera is used.

(1))  リード部がり検査と同時に姿勢判定を行う
ため、位置ずれによる計測誤差が少ない。
(1)) Since the posture is determined at the same time as the lead bending test, there is little measurement error due to positional deviation.

(C)  エリア・カメラより1ライン当たりの画素数
□ が多いので、分解能が高く精度が良い。
(C) Since the number of pixels per line is greater than that of area cameras, the resolution and accuracy are high.

という顕著な効果を奏することが出来る。This remarkable effect can be achieved.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の原理図、第2図は本発明のシステム構
成例を示す図、第3図は検査フローチャートを示す図、
第4図はリード部の多値画像と2値画像を示す図、第5
図はリード辺の中心位置とリード先端を示す図、第6図
はLSIとプリント板を示す図、第7図は2値化スライ
ス・レベルの設定方法を説明する図、第8図はリード辺
の中心位置の算出方法を説明する図、第9図はリードが
ら部品全体の中心位置を算出する方法を説明する図であ
る。 1・・・照明部、2・・・光拡散板、3・・・検査対象
部品、4・・・リード、5・・・、、カメラ・レンズ、
6・・・CCDラインセンサ・カメラ、7・・・カメラ
・インタフェース、8・・・メモリ、9・・・メカ・イ
ンタフェース、10・・・マイクロプロセッサ、11・
・・CRTコントローラ、12川外部記憶装置コントロ
ーラ、13・・・外部記憶装置。 特許出願人   富士通株式会社 代理人弁理士  京 谷 四 部 鴫1図 リード′<f+Jj リードl?の夛イ直画イ象ヒ2(面画イ象気4−図 υ−SBの甲1じ41N乙リード尤喪62イ直イこ又ラ
イ尺、レベIし/)を艷渭り第7霞 ゛)−ド4f!Ln−I  I、  1□rl   L
yz  kt3  l−I4リード曲り       
△    η「     △     タ^リード道の
宇IU/lit/)算ム 悼)(b) 舒品金4本の千1じイ加流のりh払 煽q図
FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is a diagram showing an example of the system configuration of the present invention, and FIG. 3 is a diagram showing an inspection flowchart.
Figure 4 is a diagram showing a multivalued image and a binary image of the lead part, Figure 5
The figure shows the center position of the lead side and the lead tip, Figure 6 shows the LSI and the printed board, Figure 7 shows how to set the binarization slice level, and Figure 8 shows the lead side. FIG. 9 is a diagram illustrating a method for calculating the center position of the entire component from the lead. DESCRIPTION OF SYMBOLS 1... Illumination part, 2... Light diffusing plate, 3... Parts to be inspected, 4... Lead, 5... Camera lens,
6... CCD line sensor camera, 7... Camera interface, 8... Memory, 9... Mechanical interface, 10... Microprocessor, 11.
. . . CRT controller, 12 external storage device controller, 13 . . . external storage device. Patent Applicant Fujitsu Ltd. Representative Patent Attorney Kyotani Yotsube 1 Figure Lead'<f+Jj Lead l? The 7th part of the 7th chapter is the 7th chapter of the 7th Kasumi゛)-do 4f! Ln-I I, 1□rl L
yz kt3 l-I4 lead bend
△ η " △ Ta ^ Reed road u IU/lit/) calculation mourning) (b) 4 pieces of shishinkin 111ji karyu nori h payment fan q diagram

Claims (2)

【特許請求の範囲】[Claims] (1)ラインセンサ・カメラを使用して部品のリード部
の曲がり検査及び部品の姿勢認識を行う部品リードの検
査及び姿勢認識方式であって、  〔1〕ラインセンサ・カメラで以て部品の各リード辺
を撮像し、ラインセンサ・カメラから出力される多値画
像情報を2値化し、2値画像情報をメモリにストアし、  〔2〕メモリ上の2値画像情報に基づいて、リード位
置及びリード間ピッチを求め、左右のピッチが等しいリ
ード位置からリード辺の中心位置を算出し、  〔3〕4辺にリード辺が存在する部品については、各
リード辺の中心位置からリードを基準とした部品全体の
中心位置および位置ずれ量を算出し、  〔4〕求めた位置ずれ量に従って部品の位置補正を行
い、  〔5〕位置補正が行われた部品のリード辺を再びライ
ンセンサ・カメラで撮像し、2値画像情報をメモリにス
トアし、メモリ上の当該2値画像情報に基づいて補正が
完全か否を確認する ことを特徴とする部品リードの検査及び姿勢認識方式。
(1) A component lead inspection and posture recognition method that uses a line sensor and camera to inspect bending of the lead portion of a component and recognize the posture of the component. [2] Based on the binary image information on the memory, the lead position and Find the pitch between the leads, calculate the center position of the lead side from the lead position where the left and right pitches are equal, and [3] For parts with lead sides on four sides, use the lead as a reference from the center position of each lead side. Calculate the center position and positional deviation of the entire part, [4] Correct the position of the part according to the calculated positional deviation, and [5] Image the lead side of the part whose position has been corrected again using a line sensor camera. A component lead inspection and posture recognition method characterized in that binary image information is stored in a memory, and whether or not the correction is complete is confirmed based on the binary image information on the memory.
(2)ラインセンサ・カメラを使用して部品のリード部
の曲がり検査及び部品の姿勢認識を行う部品リードの検
査及び姿勢認識方式であって、  〔1〕ラインセンサ・カメラで以て部品の各リード辺
を撮像し、ラインセンサ・カメラから出力される多値画
像情報を2値化し、2値画像情報をメモリにストアし、  〔2〕メモリ上の2値画像情報に基づいて、リード位
置及びリード間ピッチを求め、左右のピッチが等しいリ
ード位置からリード辺の中心位置を算出し、  〔3〕対向する2辺にのみリード辺が存在する部品に
ついては、リードの先端〔又は付根〕位置を求め、各リ
ード辺の中心位置及びリードの先端〔又は付根〕位置か
らリードを基準とした部品全体の中心位置および位置ず
れ量を算出し、  〔4〕求めた位置ずれ量に従って部品の位置補正を行
い、  〔5〕位置補正が行われた部品のリード辺を再びライ
ンセンサ・カメラで撮像し、2値画像情報をメモリにス
トアし、メモリ上の当該2値画像情報に基づいて補正が
完全か否を確認する ことを特徴とする部品リードの検査及び姿勢認識方式。
(2) A component lead inspection and posture recognition method that uses a line sensor and camera to inspect bending of the lead portion of a component and recognize the posture of the component; [2] Based on the binary image information on the memory, the lead position and Find the pitch between the leads, calculate the center position of the lead side from the lead position where the left and right pitches are equal, and [3] For parts with lead sides only on two opposing sides, calculate the position of the tip [or root] of the lead. [4] Calculate the center position and positional deviation of the entire component based on the lead from the center position of each lead side and the tip (or root) position of the lead, and [4] Correct the position of the part according to the calculated positional deviation. [5] Image the lead side of the component whose position has been corrected again using the line sensor camera, store the binary image information in memory, and check whether the correction is complete based on the binary image information on the memory. A component lead inspection and posture recognition method characterized by confirming whether or not the component lead is present.
JP63064293A 1988-03-17 1988-03-17 Part lead inspection and attitude recognition method Expired - Fee Related JPH0810800B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63064293A JPH0810800B2 (en) 1988-03-17 1988-03-17 Part lead inspection and attitude recognition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63064293A JPH0810800B2 (en) 1988-03-17 1988-03-17 Part lead inspection and attitude recognition method

Publications (2)

Publication Number Publication Date
JPH01236700A true JPH01236700A (en) 1989-09-21
JPH0810800B2 JPH0810800B2 (en) 1996-01-31

Family

ID=13254044

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63064293A Expired - Fee Related JPH0810800B2 (en) 1988-03-17 1988-03-17 Part lead inspection and attitude recognition method

Country Status (1)

Country Link
JP (1) JPH0810800B2 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4892693A (en) * 1987-07-24 1990-01-09 Aluminum Company Of America Method of making filament growth composite
JPH03214699A (en) * 1990-01-18 1991-09-19 Matsushita Electric Ind Co Ltd Method of mounting electronic parts
JPH04309299A (en) * 1991-04-08 1992-10-30 Nippon Avionics Co Ltd Method and apparatus for collecting positioning information of electronic component
JP2007317972A (en) * 2006-05-29 2007-12-06 Hitachi High-Technologies Corp Paste status inspection device of electronic parts
JP2008085216A (en) * 2006-09-28 2008-04-10 Fujikura Ltd Method of aligning printed circuit board and apparatus thereof
JP2012089809A (en) * 2010-10-22 2012-05-10 Tokyo Electron Ltd Holding member posture determination device, method thereof, substrate processing device, and recording medium
CN109874235A (en) * 2017-12-01 2019-06-11 台达电子工业股份有限公司 Electronic component assembles system and method
JP2019102781A (en) * 2017-12-01 2019-06-24 台達電子工業股▲ふん▼有限公司Deltaelectronics,Inc. System and method for assembling electronic component
CN110113580A (en) * 2019-06-06 2019-08-09 天津艾思科尔科技有限公司 A kind of platform crosses the border detection system
CN111784674A (en) * 2020-07-02 2020-10-16 深圳明锐理想科技有限公司 Component detection method, component detection device, computer equipment and storage medium
US11338441B2 (en) 2017-12-01 2022-05-24 Delta Electronics, Inc. Calibration system for robot tool and calibration method for the same

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4892693A (en) * 1987-07-24 1990-01-09 Aluminum Company Of America Method of making filament growth composite
JPH03214699A (en) * 1990-01-18 1991-09-19 Matsushita Electric Ind Co Ltd Method of mounting electronic parts
JPH04309299A (en) * 1991-04-08 1992-10-30 Nippon Avionics Co Ltd Method and apparatus for collecting positioning information of electronic component
JP2007317972A (en) * 2006-05-29 2007-12-06 Hitachi High-Technologies Corp Paste status inspection device of electronic parts
JP2008085216A (en) * 2006-09-28 2008-04-10 Fujikura Ltd Method of aligning printed circuit board and apparatus thereof
JP2012089809A (en) * 2010-10-22 2012-05-10 Tokyo Electron Ltd Holding member posture determination device, method thereof, substrate processing device, and recording medium
CN109874235A (en) * 2017-12-01 2019-06-11 台达电子工业股份有限公司 Electronic component assembles system and method
JP2019102781A (en) * 2017-12-01 2019-06-24 台達電子工業股▲ふん▼有限公司Deltaelectronics,Inc. System and method for assembling electronic component
US10709048B2 (en) 2017-12-01 2020-07-07 Delta Electronics, Inc. System and method for assembling electronic components
US11338441B2 (en) 2017-12-01 2022-05-24 Delta Electronics, Inc. Calibration system for robot tool and calibration method for the same
CN110113580A (en) * 2019-06-06 2019-08-09 天津艾思科尔科技有限公司 A kind of platform crosses the border detection system
CN110113580B (en) * 2019-06-06 2024-04-09 天津艾思科尔科技有限公司 Platform crossing detection system
CN111784674A (en) * 2020-07-02 2020-10-16 深圳明锐理想科技有限公司 Component detection method, component detection device, computer equipment and storage medium

Also Published As

Publication number Publication date
JPH0810800B2 (en) 1996-01-31

Similar Documents

Publication Publication Date Title
US4450579A (en) Recognition method and apparatus
US5185811A (en) Automated visual inspection of electronic component leads prior to placement
JPH077446B2 (en) Part recognition method
JPH01236700A (en) Inspection and orientation recognition method of component lead
US7139421B1 (en) Methods and apparatuses for detecting similar features within an image
JP4707249B2 (en) Component position detection method and apparatus
JP3893191B2 (en) Calibration value measurement method for measurement imaging device
JP3823488B2 (en) IC lead float inspection device and inspection method
JP3269816B2 (en) Component mounting equipment
KR0149552B1 (en) Mounting equipment and method of electronic component
JP3114941B2 (en) Component mounting equipment
JPH0644360A (en) Visual inspection method and device for electronic part with lead
JP2686754B2 (en) Parts mounting device
JPH04338700A (en) Board mark recognition device
JP2630034B2 (en) Lead bending measuring device
JP2601232B2 (en) IC lead displacement inspection equipment
JPH0652167B2 (en) Image processing method
JPH05118819A (en) Visual recognition apparatus
JP3071414B2 (en) Image resolution setting method
JPH0814847B2 (en) Pattern inspection method
JP2836580B2 (en) Projection inspection device for semiconductor integrated circuit device
JPH03225210A (en) Parts recognizing device
JPH073330B2 (en) Lead bending inspection device
JP2803427B2 (en) Surface mount IC lead displacement inspection equipment
JP2545570B2 (en) Inclination inspection method for connecting lines by image processing

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees