JPH09232797A - IC component position detector - Google Patents
IC component position detectorInfo
- Publication number
- JPH09232797A JPH09232797A JP8040114A JP4011496A JPH09232797A JP H09232797 A JPH09232797 A JP H09232797A JP 8040114 A JP8040114 A JP 8040114A JP 4011496 A JP4011496 A JP 4011496A JP H09232797 A JPH09232797 A JP H09232797A
- Authority
- JP
- Japan
- Prior art keywords
- component
- image
- lead
- light
- inspection area
- 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
Links
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Supply And Installment Of Electrical Components (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
(57)【要約】
【課題】 基板に実装されているIC部品の位置を精度
よく検出するようにする。
【解決手段】 投光部1が検査領域に対して異なる仰角
で青色光と赤色光とを、IC部品50が実装されている
基板20に投光する。撮像部2がその投光部1が投光し
た光の検査領域からの反射光を撮像してその画像データ
を生成し、画像メモリ35に格納する。リード位置検出
部34は、画像メモリ34から検査領域の画像データ
を、基準画像メモリ35から基準IC部品のリード部分
の基準画像を読みだし、それぞれを2値化パラメータテ
ーブル33に基づき、青色と赤色の抽出画像を生成し、
この生成した抽出した抽出画像を比較して基板上に実装
されているIC部品のリードの位置を検出する。IC位
置検出部36は、リード位置検出部34が検出したリー
ド位置からIC部品50の位置を検出する。
(57) Abstract: The position of an IC component mounted on a board is accurately detected. A light projecting unit (1) projects blue light and red light at different elevation angles with respect to an inspection area onto a substrate (20) on which an IC component (50) is mounted. The imaging unit 2 images the reflected light from the inspection area of the light projected by the light projecting unit 1, generates image data thereof, and stores it in the image memory 35. The lead position detection unit 34 reads the image data of the inspection area from the image memory 34 and the reference image of the lead portion of the reference IC component from the reference image memory 35, and reads each of them in blue and red based on the binarized parameter table 33. Generate an extracted image of
The position of the lead of the IC component mounted on the board is detected by comparing the generated extracted images. The IC position detector 36 detects the position of the IC component 50 from the lead position detected by the lead position detector 34.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、カメラ等が撮像し
て得た画像データに基づき、IC部品位置を検出するI
C部品位置検出装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention detects an IC component position based on image data obtained by a camera or the like.
The present invention relates to a C component position detection device.
【0002】[0002]
【従来の技術】従来のIC部品位置検出装置は、単色1
光源でなるIC部品のリード部分の基準画像をあらかじ
め登録しておき、この基準画像とIC部品が実装された
基板の検査領域の画像データとをパターンマッチングし
て、リード部分の位置を検出し、さらに検出されたリー
ドの位置からIC部品の中心位置および大きさ等の情報
を得るようしている。2. Description of the Related Art A conventional IC component position detecting device is a monochromatic 1
A reference image of the lead portion of the IC component which is the light source is registered in advance, and the reference image and the image data of the inspection area of the board on which the IC component is mounted are pattern-matched to detect the position of the lead portion, Further, information such as the center position and size of the IC component is obtained from the detected lead position.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、このよ
うな従来のIC部品位置検出装置では、単色1光源でな
る基準画像と検査領域の画像データとをパターンマッチ
ングするので、単に単色形状のみでパターンマッチング
することになる。However, in such a conventional IC component position detecting apparatus, since the reference image consisting of one monochromatic light source and the image data of the inspection area are pattern-matched, the pattern matching is performed only with the monochromatic shape. Will be done.
【0004】従って、IC部品のリード部分と似た形状
を有するIC部品以外の部品が検査領域に混じっている
場合には、パターンマッチングする際、このIC部品以
外の部品と基準画像とが一致してしまい、このため、精
度よくIC部品位置を検出することができないという問
題点があった。Therefore, when a part other than the IC part having a shape similar to that of the lead part of the IC part is mixed in the inspection area, the parts other than the IC part and the reference image match when pattern matching is performed. Therefore, there is a problem that the IC component position cannot be detected accurately.
【0005】そこで、本発明は、上述の問題点に鑑み、
検査領域の画像データにIC部品以外の映像が混じって
いる場合でも、IC部品の位置を精度よく検出するIC
部品位置検出装置を提供することを目的とする。In view of the above problems, the present invention has been made in view of the above problems.
An IC that accurately detects the position of an IC component even when a video image other than the IC component is mixed in the image data of the inspection area
An object is to provide a component position detecting device.
【0006】[0006]
【課題を解決するための手段】上述の目的を達成するた
め、請求項1記載の発明は、IC部品が実装されている
基板の検査領域での画像データに基づき、上記IC部品
の位置を検出するIC部品位置検出装置において、上記
検査領域に対して異なる仰角の2色光を投光する投光手
段と、この投光手段が投光した2色光の検査領域での反
射光を撮像して上記検査領域の画像データを生成する撮
像手段と、上記検査領域の画像データと基準となるIC
部品のリード部分の基準画像とを比較し、上記基板上に
実装されているIC部品のリードの位置を検出するリー
ド位置検出手段とを具備することを特徴とする。To achieve the above object, the invention according to claim 1 detects the position of the IC component based on image data in an inspection area of a substrate on which the IC component is mounted. In the IC component position detecting device, the projecting means for projecting two-color light of different elevation angles to the inspection area and the reflected light in the inspection area of the two-color light projected by the projecting means are imaged. Imaging means for generating image data of the inspection area, and image data of the inspection area and a reference IC
And a lead position detecting means for detecting the position of the lead of the IC component mounted on the substrate by comparing with a reference image of the lead portion of the component.
【0007】請求項2記載の発明は、請求項1記載の発
明において、IC部品位置検出装置上記2色光が、青色
光と赤色光でなることを特徴とする。According to a second aspect of the present invention, in the first aspect of the invention, the IC component position detecting device is characterized in that the two color lights are blue light and red light.
【0008】請求項3記載の発明は、請求項1記載の発
明において、上記リード位置検出手段が、上記基準IC
部品のリード部分の基準画像および上記検査領域の画像
データから、上記各光色ごとの抽出画像を生成する抽出
画像生成手段と、この抽出画像生成手段で生成された上
記基準画像および上記検査領域の抽出画像の一致率を算
出する一致率算出手段と、この一致率算出手段で算出さ
れた上記基準画像および上記検査領域の抽出画像の一致
率より、リード位置の判定値を算出する判定値算出手段
と、この判定値算出手段で算出された判定値に基づき、
上記検査領域中に実装されていIC部品のリード位置を
特定する特定手段とを有することを特徴とす。According to a third aspect of the present invention, in the first aspect of the invention, the lead position detecting means is the reference IC.
Extraction image generating means for generating an extraction image for each of the light colors from the reference image of the lead portion of the part and the image data of the inspection area, and the reference image and the inspection area of the inspection image generated by the extraction image generating means A coincidence rate calculating means for calculating the coincidence rate of the extracted image, and a judgment value calculating means for calculating a judgment value of the lead position from the coincidence rate of the reference image and the extracted image of the inspection area calculated by the coincidence rate calculating means. And, based on the judgment value calculated by this judgment value calculating means,
It is characterized in that it has a specifying means for specifying the lead position of the IC component mounted in the inspection area.
【0009】請求項4記載の発明は、請求項3記載の発
明において、各光色ごとの一致率X(x,y)が、X
(x,y)=m/α、ただし、(x,y)が位置、αが
上記基準IC部品の抽出画像における各光色ごとの画素
数、mが上記基準IC部品の抽出画像と上記検査対象領
域の抽出画像との各光源色ごとの一致する画素数、で算
出されることを特徴とする。According to a fourth aspect of the invention, in the invention according to the third aspect, the coincidence rate X (x, y) for each light color is X.
(X, y) = m / α, where (x, y) is the position, α is the number of pixels for each light color in the extracted image of the reference IC component, and m is the extracted image of the reference IC component and the inspection It is characterized in that it is calculated by the number of matching pixels for each light source color with the extracted image of the target area.
【0010】請求項5記載の発明は、請求項3または4
記載の発明において、上記判定値が、F(x,y)=M
in{X(x,y),Y(x,y)}、ただし、X
(x,y)が位置(x,y)での1の色についての一致
率、Y(x,y)が、他の1の色についての一致率で算
出されることを特徴とする。[0010] The invention according to claim 5 is the invention according to claim 3 or 4.
In the described invention, the determination value is F (x, y) = M
in {X (x, y), Y (x, y)}, where X
It is characterized in that (x, y) is calculated with the matching rate for one color at the position (x, y), and Y (x, y) is calculated with the matching rate for the other one color.
【0011】請求項6記載の発明は、請求項2記載の発
明において、上記特定手段が、上記判定値が最も大きい
値を有する箇所をIC部品のリード位置とすることを特
徴とする。According to a sixth aspect of the present invention, in the second aspect of the invention, the specifying means sets a portion having the largest determination value as a lead position of the IC component.
【0012】本発明によれば、検査領域に対して異なる
仰角の2色光からの反射光を撮像して得た画像データ
は、IC部品のリード部分が2色に描写されるため、こ
の2色に描写された基準IC部品のリード部分の基準画
像と検査領域の画像データとを比較し、基板上に実装さ
れているIC部品のリードの位置を検出する。According to the present invention, the image data obtained by picking up the reflected light from the two-color light of different elevation angles with respect to the inspection area shows the lead part of the IC component in two colors. The reference image of the lead portion of the reference IC component depicted in (1) is compared with the image data of the inspection area, and the position of the lead of the IC component mounted on the board is detected.
【0013】[0013]
【発明の実施の形態】以下、本発明に係るIC部品位置
検出装置の実施形態を図面を参照して説明する。BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of an IC component position detecting device according to the present invention will be described below with reference to the drawings.
【0014】図1は本発明に係るIC部品位置検出装置
の一実施形態を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of an IC component position detecting device according to the present invention.
【0015】この実施形態のIC部品位置検出装置は、
投光部1と、撮像部2と、制御処理部3とから構成され
ている。The IC component position detecting device of this embodiment is
It is composed of a light projecting unit 1, an imaging unit 2, and a control processing unit 3.
【0016】投光部1は、カラーハイライト照明するも
のであって、図2に示すように、基板20の検査領域の
中心Oから見た仰角が小さい青色の円環状光源11(以
下、青色光源という)と、仰角が大きい赤色の円環状光
源12(以下、赤色光源という)とを備えている。The light projecting section 1 is for performing a color highlight illumination, and as shown in FIG. 2, a blue annular light source 11 (hereinafter, blue color) having a small elevation angle when viewed from the center O of the inspection area of the substrate 20. And a red annular light source 12 (hereinafter, referred to as a red light source) having a large elevation angle.
【0017】撮像部2は、例えばカラーテレビカメラが
用いられ、図2に示すように、検査領域の真上位置に配
置され、投光部1で照射された赤色光および青色光が検
査領域で反射された光を受光し、この受光した反射光を
カラー信号に変換し、制御処理部3に出力するように構
成されている。As the image pickup section 2, for example, a color television camera is used, which is arranged right above the inspection area as shown in FIG. 2 and the red light and the blue light emitted by the light projecting section 1 are in the inspection area. It is configured to receive the reflected light, convert the received reflected light into a color signal, and output the color signal to the control processing unit 3.
【0018】ここで、図3(a)に示すようなIC部品
50の本体502から延びているリード501の受光例
を説明する。Now, an example of receiving light from the lead 501 extending from the main body 502 of the IC component 50 as shown in FIG. 3A will be described.
【0019】このIC部品50のリード501からの受
光内容は、図3(b)に示すように、リード501の中
央部、すなわち急斜面をなす箇所が青色の反射光を受光
し(以下、この受光した領域を青色反射領域Aとい
う)、青色反射領域を挟んで急斜面でない箇所である両
端部が赤色の反射光を受光する(以下、この受光した領
域を赤色反射領域という)。As shown in FIG. 3B, the light received from the lead 501 of the IC component 50 receives blue reflected light at the central portion of the lead 501, that is, a portion having a steep slope (hereinafter, this received light is received). The region which is defined as blue reflection region A) and the both ends which are not steep slopes sandwiching the blue reflection region receive red reflected light (hereinafter, this received region is referred to as red reflection region).
【0020】このように、青色反射領域Aと赤色反射領
域Bとが分離して撮像されるのは、青色光源11と赤色
光源12との仰角が異なるからである。つまり、撮像部
2が受ける検査領域からの反射光には、急斜面からの反
射光と、そうでない箇所からの反射光からなり、急斜面
からの反射光が、仰角が小さい青色光源11の反射光の
みでなり、また、急斜面でない箇所からの反射光が、仰
角が大きい赤色光源12の反射光のみでなるからであ
る。The reason why the blue reflection area A and the red reflection area B are imaged separately is that the blue light source 11 and the red light source 12 have different elevation angles. That is, the reflected light from the inspection area received by the imaging unit 2 includes reflected light from the steep slope and reflected light from a portion other than the steep slope, and the reflected light from the steep slope is only the reflected light of the blue light source 11 having a small elevation angle. This is also because the reflected light from the part that is not the steep slope is only the reflected light of the red light source 12 having a large elevation angle.
【0021】制御処理部3は、図1に示すように、A/
D変換部31,画像メモリ32,2値化パラメータテー
ブル33,リード位置検出部34,基準画像メモリ3
5,IC位置検出部36,出力部37および基準画像入
力部38から主に構成されている。The control processing unit 3, as shown in FIG.
D conversion unit 31, image memory 32, binarization parameter table 33, read position detection unit 34, reference image memory 3
5, an IC position detector 36, an output unit 37, and a reference image input unit 38.
【0022】ここで、A/D変換部31は、撮像部2か
ら受けたアナログ信号でなる赤色光および青色光のカラ
ー信号をデジタル信号に変換して画像データを出力する
ように構成されている。Here, the A / D conversion unit 31 is configured to convert the color signals of red light and blue light, which are analog signals received from the image pickup unit 2, into digital signals and output image data. .
【0023】画像メモリ32は、A/D変換部31から
の被検査対象基板20の画像データを格納するものであ
る。当然、この画像データにはIC部品の画像データを
含んでいる。The image memory 32 stores the image data of the inspected substrate 20 from the A / D converter 31. Of course, this image data includes image data of IC parts.
【0024】2値化パラメータテーブル33は、被検査
対象基板20の画像データから、検査に使用される後述
する抽出画像を生成する際の基準となる情報(以下、2
値化情報という)を格納するものである。The binarization parameter table 33 is information (hereinafter, referred to as 2) which is a reference when generating an extraction image, which will be described later, used from the image data of the substrate 20 to be inspected.
(Valued information) is stored.
【0025】リード位置検出部34は、2値化パラメー
タテーブル33内の2値化情報を参照し、画像メモリ3
2に格納されている被検査対象基板20の画像データか
ら、検査に使用される抽出画像を生成するように構成さ
れている。The lead position detecting section 34 refers to the binarization information in the binarization parameter table 33, and the image memory 3
2 is configured to generate an extracted image used for inspection from the image data of the substrate 20 to be inspected stored in 2.
【0026】上述した抽出画像には、画像データ中の青
色反射領域Aから抽出した画像(以下、青色抽出画像1
aという)と、赤色反射領域Bから抽出した画像(以
下、赤色抽出画像1bという)とを有している。The extracted image is the image extracted from the blue reflection area A in the image data (hereinafter, the blue extracted image 1
a)) and an image extracted from the red reflection area B (hereinafter referred to as red extraction image 1b).
【0027】ここで、リード位置検出部34が抽出する
抽出画像の例を、基板20上に実装されているQFP
(Quad Flat Package)のIC部品の場合を用いて具体的
に説明する。Here, an example of the extracted image extracted by the lead position detector 34 is a QFP mounted on the board 20.
A specific description will be given using the case of (Quad Flat Package) IC parts.
【0028】基板20上に実装されているQFPのIC
部品50の画像データは、図4(a)に示すように、リ
ード501には、本体502から上下左右にそれぞれ5
本でており、各リード501は、上述したような青色反
射領域Aと赤色反射領域Bとが形成されるようになる。QFP IC mounted on the board 20
As shown in FIG. 4A, the image data of the component 50 is displayed on the lead 501 from the main body 502 in the vertical and horizontal directions, respectively.
In this way, each lead 501 is formed with the blue reflection area A and the red reflection area B as described above.
【0029】従って、リード位置検出部34により、2
値化パラメータテーブル33内の2値化情報に基づき、
青色反射領域Aと赤色反射領域Bとから抽出された抽出
画像は、図4(b)および(c)に示すような青色抽出
画像1aと赤色抽出画像1bとをなす。Therefore, the lead position detector 34 detects
Based on the binarization information in the binarization parameter table 33,
The extracted images extracted from the blue reflection area A and the red reflection area B form a blue extraction image 1a and a red extraction image 1b as shown in FIGS. 4B and 4C.
【0030】また、リード位置検出部34は、基準画像
メモリ34に格納されている後述する基準画像から、上
述したと同様にして青色抽出画像と赤色抽出画像とから
なる抽出画像(以下、基準抽出画像という)を形成し、
この基準抽出画像と抽出画像をマッチング処理すること
で、後述するようにして、被検査対象基板に実装されて
いるIC部品のリードの形状および位置を検出するよう
に構成されている。Further, the lead position detecting section 34 extracts an extracted image composed of a blue extracted image and a red extracted image from the reference image stored in the reference image memory 34, which will be described later, in the same manner as described above (hereinafter referred to as reference extraction). Image)
By performing a matching process on the reference extracted image and the extracted image, the shape and position of the lead of the IC component mounted on the inspected substrate is detected as described later.
【0031】基準画像メモリ35は、被検査対象基板上
に実装されているIC部品のリードの形状を特定するた
めの基準画像が格納されているものである。The reference image memory 35 stores a reference image for specifying the shape of the lead of the IC component mounted on the substrate to be inspected.
【0032】ここで、基準画像および基準抽出画像につ
いて、上述したQFPのIC部品を例にあげて説明す
る。Here, the reference image and the reference extraction image will be described by taking the above-mentioned QFP IC component as an example.
【0033】このQFPのIC部品の基準画像は、基板
20に実装されているQFPのIC部品50を検査する
ための基準となる画像データであって、図5に示すよう
に、検査に適した3本のリード501を表しており、各
リード501には、中央に青色反射領域2Aとその青色
反射領域2Aの両側に赤色反射領域2Bがある。The reference image of the QFP IC component is image data that serves as a reference for inspecting the QFP IC component 50 mounted on the substrate 20, and is suitable for the inspection as shown in FIG. Three leads 501 are shown, and each lead 501 has a blue reflection area 2A in the center and a red reflection area 2B on both sides of the blue reflection area 2A.
【0034】そして、青色反射領域2Aと赤色反射領域
2Bとをリード位置検出部34により、2値化処理され
ると、それぞれ青色抽出画像2aと赤色抽出画像2bと
が生成される。Then, when the blue reflection area 2A and the red reflection area 2B are binarized by the lead position detecting section 34, a blue extraction image 2a and a red extraction image 2b are respectively generated.
【0035】なお、この基準となる画像データは、基準
となるQFPのIC部品を、上述のようにして撮像して
得た画像データから形成される。The reference image data is formed from the image data obtained by imaging the reference QFP IC component as described above.
【0036】IC位置検出部36は、リード位置検出部
35により特定された、被検査対象基板上に実装されて
いるIC部品のリード形状および位置から、後述するよ
うにして実装IC部品の位置および大きさを検出するよ
うに構成されている。The IC position detection unit 36 determines the position of the mounted IC component and the position of the mounted IC component as described later from the lead shape and position of the IC component mounted on the inspected substrate specified by the lead position detection unit 35. It is configured to detect the size.
【0037】出力部37は、実装IC部品のリードの形
状および位置、並びに、被検査対象ICの位置および大
きさを外部記憶装置、例えば補助ディスク装置(図示せ
ず)に出力するように構成されている。The output section 37 is configured to output the shape and position of the lead of the mounted IC component and the position and size of the IC to be inspected to an external storage device such as an auxiliary disk device (not shown). ing.
【0038】基準画像入力部38は、必要がある場合に
は基準画像を基準画像メモリに34に入力するように構
成されている。The reference image input section 38 is configured to input the reference image to the reference image memory 34 when necessary.
【0039】次に、リード位置検出部34が被検査対象
基板上に実装されたIC部品のリードの形状および位置
を検出する処理を、図6を参照して説明する。Next, a process in which the lead position detecting section 34 detects the shape and position of the lead of the IC component mounted on the substrate to be inspected will be described with reference to FIG.
【0040】リード位置検出部34は、画像メモリ32
から被検査対象基板20の画像データと、基準画像メモ
リ35から基準画像とを読み出し、これらの画像データ
と基準画像とを2値化パラメータテーブルに基づき、青
色抽出画像1aおよび赤色抽出画像1bでなる抽出画像
と、基準青色抽出画像2aおよび基準赤色抽出画像2a
でなる基準抽出画像を形成する。The lead position detecting section 34 includes the image memory 32.
The image data of the substrate 20 to be inspected is read from the reference image memory 35 and the reference image is read from the reference image memory 35. The image data and the reference image are the blue extracted image 1a and the red extracted image 1b based on the binarization parameter table. Extracted image and reference blue extracted image 2a and reference red extracted image 2a
To form a reference extraction image.
【0041】次に、リード位置検出部34は、図6
(a)に示すように、リード501から見て本体502
が右側にあるような基準画像から生成された青色基準抽
出画像2aおよび赤色基準抽出画像2bで、検査対象領
域の検査開始位置から、順次、所定箇所(x,y)ごと
に、抽出画像の青色抽出画像1aと基準抽出画像の基準
青色抽出画像2aとの一致率:Blue(x,y)と、
抽出画像の赤色抽出画像1bと基準抽出画像の基準赤色
抽出画像2bとの一致率:Red(x,y)とを測定
し、さらに、これらの一致率に基づき、リード位置の存
在を判定する判定値を、下記の式(1)で算出する。Next, the lead position detecting section 34 is operated as shown in FIG.
As shown in (a), the main body 502 viewed from the lead 501.
In the blue reference extraction image 2a and the red reference extraction image 2b generated from the reference image on the right side of the reference image, the blue of the extraction image is sequentially extracted from the inspection start position of the inspection target area at predetermined positions (x, y). Matching rate between the extracted image 1a and the reference blue extracted image 2a of the reference extracted image: Blue (x, y),
A determination is made by measuring the matching rate: Red (x, y) between the red extracted image 1b of the extracted image and the reference red extracted image 2b of the reference extracted image, and further determining the presence of the lead position based on these matching rates. The value is calculated by the following formula (1).
【0042】 F(x,y)=Min{Red(x,y),Blue(x,y)} (1)F (x, y) = Min {Red (x, y), Blue (x, y)} (1)
【0043】リード位置検出部34は、検査終了位置ま
での上記判定値を算出すると、算出した判定値の中か
ら、所定の基準値より高い判定値のものを選択し、その
位置(x,y)をリード501の位置とする。When the lead position detecting section 34 calculates the above judgment value up to the inspection end position, the lead position detecting section 34 selects a judgment value higher than a predetermined reference value from the calculated judgment values, and selects the position (x, y). ) Is the position of the lead 501.
【0044】以上の処理で、リード位置検出部34は、
図6(b)に示すように、検査対象領域の中から一方向
のリードの位置が確定する。Through the above processing, the lead position detecting section 34
As shown in FIG. 6B, the position of the lead in one direction is determined from the inspection target area.
【0045】その後、リード位置検出部34は、基準画
像を90度回転させた場合(図6(c)の参照),1
80度回転させた場合(図6(c)の参照)および2
70度回転させた場合(図6(c)の参照)を、順
次、上述と同様にして、赤色の一致率と青色の一致率と
を測定し、それらに基づく判定値を算出し、この判定値
に基づき、各方向のリードの位置が確定する。After that, the lead position detecting section 34 rotates the reference image by 90 degrees (see FIG. 6C), 1
When rotated by 80 degrees (see FIG. 6 (c)) and 2
In the case of rotating by 70 degrees (see FIG. 6C), the red matching rate and the blue matching rate are sequentially measured in the same manner as described above, and the determination value based on them is calculated, and this determination is performed. The position of the lead in each direction is determined based on the value.
【0046】最終的には、リード位置検出部34は、図
6(d)に示すように、リードの位置と方向を判明す
る。Finally, the lead position detector 34 determines the lead position and direction as shown in FIG. 6 (d).
【0047】ここで、式(1)について説明すると、こ
の式から算出される判定値は、赤色の一致率および青色
の一致率のうち、一致率の低いものを選ぶようになって
いる。Here, the formula (1) will be described. As the judgment value calculated from this formula, one having a low matching rate is selected from the matching rate of red and the matching rate of blue.
【0048】その理由は、例えば図4に示すようなQF
P形状のIC部品では、同じ形状のリードであるが、そ
の向きが異なるものも有るので、検査対象領域全体をサ
ーチ中には、この方向性の異なるリードの箇所での赤色
の一致率または青色の一致率が低くなり、赤色または青
色の一致率のみで、正しい方向性を持ったリードを特定
できない場合が想定されるからである。The reason is, for example, the QF as shown in FIG.
Some P-shaped IC parts have the same shape, but some of them have different directions. Therefore, during the search of the entire inspection target area, the red matching rate or the blue matching rate at the position of the lead having a different direction. This is because it is assumed that the lead having the correct directionality cannot be identified only by the red or blue match rate.
【0049】従って、リードの方向と位置とを正確に判
定するために、各箇所での赤色の一致率と青色の一致率
のうち、低い一致率を各箇所での上記判定値とする。Therefore, in order to accurately determine the direction and position of the lead, the lower matching rate of the red matching rate and the blue matching rate at each location is set as the determination value at each location.
【0050】ここで、一致率の算出方法を図7を参照し
て説明する。Here, a method of calculating the matching rate will be described with reference to FIG.
【0051】仮に、図7(a)に示す赤色抽出画像1b
(参照)の占める画素数をβとし、また、図7(b)
に示す基準赤色抽出画像2b(参照)の画素数をαと
し、さらに、これらβとαとが互いに一致する画素数を
mとすると(図7(c)参照)、この基準赤色抽出画像
2bの一致率:Red(x,y)は,図7(a)と図7
(b)とが一致する画素数mを、基準赤色抽出画像2b
の画素数αで除算した値、つまり、Red(x,y)=
m/αとなる。Assuming that the red extracted image 1b shown in FIG.
The number of pixels occupied by (reference) is β, and FIG.
When the number of pixels of the reference red extracted image 2b (reference) shown in FIG. 2 is α and the number of pixels where β and α match each other is m (see FIG. 7C), the reference red extracted image 2b of Concordance rate: Red (x, y) is shown in FIG.
The number of pixels m that matches (b) is calculated as the reference red extracted image 2b.
Value divided by the number of pixels α of, that is, Red (x, y) =
m / α.
【0052】なお、青色のものについても同様であるの
で説明を省略する。Since the same applies to blue ones, a description thereof will be omitted.
【0053】続いて、IC位置検出部36のIC部品の
位置大きさを測定する処理を、図9を参照して説明す
る。Next, the process of measuring the position size of the IC component of the IC position detector 36 will be described with reference to FIG.
【0054】仮に、図8(a)に示すように、リード位
置検出部34が検査領域中に2個のIC部品50のリー
ド501の位置と方向を検出したとすると、IC位置検
出部36は、この情報に基づき、リードの向きに着目
し、図8(b)に示すように、面積が最小になる上下左
右のリード501で囲まれた領域90a,90bを抽出
する。なお、領域90a,90b内部のリード501
は、すべて同一のIC部品のものとする。Assuming that the lead position detector 34 detects the positions and directions of the leads 501 of the two IC components 50 in the inspection area, as shown in FIG. Based on this information, paying attention to the direction of the leads, as shown in FIG. 8B, the regions 90a and 90b surrounded by the leads 501 on the top, bottom, left, and right that have the smallest area are extracted. Note that the leads 501 inside the regions 90a and 90b
Are all the same IC parts.
【0055】次に、IC位置検出部36は、抽出した領
域90a,90bをもとにして、その領域90a,90
bの中心O1 ,O2 を算出するとともに、上記領域90
a,90bに含まれるリード201で形成される内接矩
形91a,91bの大きさ(面積)算出し、算出したO
1 ,O2 をそれぞれのIC部品50の位置とし、また、
内接矩形91a,91bを部品の大きさとする。Next, the IC position detector 36 determines the areas 90a and 90b based on the extracted areas 90a and 90b.
The centers O1 and O2 of b are calculated, and the area 90
The size (area) of the inscribed rectangles 91a and 91b formed by the leads 201 included in a and 90b is calculated, and the calculated O
1 and O2 are the positions of the respective IC parts 50, and
The inscribed rectangles 91a and 91b have the size of the component.
【0056】次に、この実施形態のIC部品検出装置の
動作を、図9のフローチャートを参照して説明する。Next, the operation of the IC component detecting apparatus of this embodiment will be described with reference to the flowchart of FIG.
【0057】基板20上に実装されているIC部品50
の位置を検査するに先立って、検査に必要な基準画像を
基準画像入力部38を介して基準画像メモリ35にロー
ドする(ステップ110)。IC component 50 mounted on substrate 20
Prior to inspecting the position of, the reference image required for the inspection is loaded into the reference image memory 35 via the reference image input unit 38 (step 110).
【0058】IC部品検出装置は、撮像部2が基板20
上の検査領域を撮像し、その画像データを画像メモリ3
2に格納させる(ステップ120)。In the IC component detecting device, the image pickup section 2 has the substrate 20.
The upper inspection area is imaged and the image data is stored in the image memory 3
2 (step 120).
【0059】次に、リード位置検出部34は、画像メモ
リ32に格納されている画像データを読みだし、この読
みだした画像データを、2値化パラメータテーブル33
を参照して青色抽出画像1aと赤色抽出画像1bとに分
離抽出する(ステップ130)。Next, the read position detecting section 34 reads out the image data stored in the image memory 32, and the read-out image data is stored in the binarization parameter table 33.
, And the blue extracted image 1a and the red extracted image 1b are separated and extracted (step 130).
【0060】続いて、リード位置検出部34は、基準画
像メモリ35から基準画像を読みだし、この読みだした
基準画像を、2値化パラメータテーブル33を参照して
基準青色画像2aと基準赤色画像2bとに分離抽出する
(ステップ140)。Subsequently, the lead position detecting section 34 reads the reference image from the reference image memory 35, and refers to the read reference image by referring to the binarization parameter table 33, the reference blue image 2a and the reference red image. 2b and extracted separately (step 140).
【0061】リード位置検出部34は、基準画像から基
準青色画像2aと基準赤色画像2bとを分離抽出する
と、検査対象領域の検査開始位置から順次、リード50
1の存在を判定するための上述した判定値を算出してい
く。リード位置検出部34は、検査終了位置の箇所の判
定値を算出すると、最も大きい判定値を有する箇所を特
定し、一方向のリードの位置と方向を特定する(ステッ
プ150)。When the lead position detecting section 34 separates and extracts the reference blue image 2a and the reference red image 2b from the reference image, the lead 50 is sequentially read from the inspection start position of the inspection target area.
The above-described determination value for determining the presence of 1 is calculated. When the lead position detection unit 34 calculates the determination value of the location of the inspection end position, it identifies the location having the largest determination value and identifies the lead position and direction in one direction (step 150).
【0062】次に、リード位置検出部34は、すべての
方向について、リードの位置と方向を調べたか否かを判
断する(ステップ160)。リード位置検出部34は、
すべての方向について調べたと判断した場合には(ステ
ップ160;Y)、IC部品のリード501を抽出し
(ステップ170)、この抽出したIC部品の位置と大
きさを計算し(ステップ180)、処理を終了する。一
方、リード位置検出部34は、すべての方向について調
べたと判断しない場合には(ステップ160;N)、基
準画像を90度回転し、ステップ150に処理を戻し、
上述したと同様な処理を行う。Next, the lead position detector 34 determines whether or not the lead position and direction have been checked for all directions (step 160). The lead position detector 34
If it is determined that all the directions have been examined (step 160; Y), the IC component lead 501 is extracted (step 170), the position and size of the extracted IC component are calculated (step 180), and the processing is performed. To finish. On the other hand, when the lead position detection unit 34 does not determine that all directions have been checked (step 160; N), the reference image is rotated 90 degrees, and the process returns to step 150.
The same processing as described above is performed.
【0063】この実施形態のIC部品位置検出装置で
は、検査対象領域に対して仰角がそれぞれ異なる青色お
よび赤色円筒光源11,12からの反射光を撮像して得
た画像データは、IC部品50のリード部分501が2
色に描写される。この2色に描写された検査領域の画像
データと基準IC部品の基準データとを比較して基板上
に実装されているIC部品50のリード501の位置を
検出するため、IC部品のリード部分と似た形状を有す
るIC部品が混じっている場合でも、検査対象のIC部
品50の位置を精度よく検出することができる。In the IC component position detecting apparatus of this embodiment, the image data obtained by capturing the reflected light from the blue and red cylindrical light sources 11 and 12 having different elevation angles with respect to the inspection area is obtained by the IC component 50. 2 lead parts 501
Pictured in color. In order to detect the position of the lead 501 of the IC component 50 mounted on the substrate by comparing the image data of the inspection area drawn in two colors with the reference data of the reference IC component, the lead portion of the IC component is detected. Even if IC components having similar shapes are mixed, the position of the IC component 50 to be inspected can be accurately detected.
【0064】[0064]
【発明の効果】以上本発明によれば、検査領域に対して
異なる仰角の2色光からの反射光を撮像して得た画像デ
ータは、IC部品のリード部分が2色に描写される。そ
して、この2色に描写された基準IC部品のリード部分
の基準画像と検査領域の画像データとをパターンマッチ
ングするため、IC部品のリード部分と似た形状を有す
るIC部品以外の部品が検査領域に混じっている場合で
も、このIC部品以外の映像と基準画像とが一致するこ
とがなくなり、精度よくIC部品位置を検出することが
できる。As described above, according to the present invention, the lead portion of the IC component is depicted in two colors in the image data obtained by capturing the reflected light from the two-color light of different elevation angles with respect to the inspection area. Then, since the reference image of the lead portion of the reference IC component drawn in these two colors and the image data of the inspection area are pattern-matched, components other than the IC component having a shape similar to the lead portion of the IC component are the inspection area. Even when the IC component is mixed with, the image other than the IC component and the reference image do not match, and the IC component position can be accurately detected.
【図1】本発明に係るIC部品位置検出装置の一実施形
態を示すブロック図。FIG. 1 is a block diagram showing an embodiment of an IC component position detection device according to the present invention.
【図2】図1中の投光部と撮像部との配置を示す説明
図。FIG. 2 is an explanatory view showing the arrangement of a light projecting unit and an image capturing unit in FIG.
【図3】図1中の撮像部が撮像する画像データの一例を
説明する説明図。FIG. 3 is an explanatory diagram illustrating an example of image data captured by an image capturing section in FIG. 1.
【図4】図1中のリード位置検出部が抽出する青色抽出
画像と赤色抽出画像とを、QFPのIC部品を例に取り
説明する説明図。FIG. 4 is an explanatory diagram illustrating a blue extracted image and a red extracted image extracted by a lead position detection unit in FIG. 1 by taking an IC component of QFP as an example.
【図5】QFPのIC部品の基準画像とこの基準画像か
ら生成される基準青色抽出画像およ基準赤色抽出画像を
説明する説明図。FIG. 5 is an explanatory diagram illustrating a reference image of a QFP IC component and a reference blue extracted image and a reference red extracted image generated from the reference image.
【図6】図1中のリード位置検出部がIC部品のリード
位置と方向を特定する仕方を説明する説明図。FIG. 6 is an explanatory view for explaining how the lead position detection unit in FIG. 1 specifies a lead position and a direction of an IC component.
【図7】赤色および青色の一致率の算出方法を説明する
説明図。FIG. 7 is an explanatory diagram illustrating a method of calculating the matching rate of red and blue.
【図8】図1中のIC位置検出部がIC部品の位置と大
きさを算出するための説明図。FIG. 8 is an explanatory diagram for the IC position detection unit in FIG. 1 to calculate the position and size of IC components.
【図9】この実施形態のIC部品位置検出装置の処理動
作を示すフローチャート。FIG. 9 is a flowchart showing the processing operation of the IC component position detection device of this embodiment.
1 投光部 2 撮像部 3 制御部 11 青色光源 12 赤色光源 20 基板 31 A/D変換部 32 画像メモリ 33 2値化パラメータテーブル 34 リード位置検出部 35 基準画像メモリ 36 IC位置検出部 37 出力部 38 基準画像入力部 50 IC部品 501 リード 502 IC部品の本体 A 青色反射領域 B 赤色反射領域 1a 青色抽出画像 1b 赤色抽出画像 2a 青色基準抽出画像 2b 赤色基準抽出画像 DESCRIPTION OF SYMBOLS 1 Light projecting section 2 Imaging section 3 Control section 11 Blue light source 12 Red light source 20 Substrate 31 A / D conversion section 32 Image memory 33 Binarization parameter table 34 Lead position detection section 35 Reference image memory 36 IC position detection section 37 Output section 38 Reference image input unit 50 IC component 501 Lead 502 Main body of IC component A Blue reflection area B Red reflection area 1a Blue extraction image 1b Red extraction image 2a Blue reference extraction image 2b Red reference extraction image
Claims (6)
域での画像データに基づき、上記IC部品の位置を検出
するIC部品位置検出装置において、 上記検査領域に対して異なる仰角の2色光を投光する投
光手段と、 この投光手段が投光した2色光の検査領域での反射光を
撮像して上記検査領域の画像データを生成する撮像手段
と、 上記検査領域の画像データと基準となるIC部品のリー
ド部分の基準画像とを比較し、上記基板上に実装されて
いるIC部品のリードの位置を検出するリード位置検出
手段と、 を具備することを特徴とするIC部品位置検出装置。1. An IC component position detection device for detecting the position of the IC component based on image data in the inspection region of a board on which the IC component is mounted, wherein two color lights of different elevation angles are supplied to the inspection region. Projecting means for projecting light, imaging means for imaging reflected light of the two-color light projected by the projecting means in the inspection area to generate image data of the inspection area, image data of the inspection area and a reference And a lead position detecting means for detecting the position of the lead of the IC component mounted on the board by comparing the reference image of the lead portion of the IC component. apparatus.
とを特徴とする請求項1記載のIC部品位置検出装置。2. The IC component position detecting device according to claim 1, wherein the two color lights are blue light and red light.
査領域の画像データから、上記各光色ごとの抽出画像を
生成する抽出画像生成手段と、 この抽出画像生成手段で生成された上記基準画像および
上記検査領域の抽出画像の一致率を算出する一致率算出
手段と、 この一致率算出手段で算出された上記基準画像および上
記検査領域の抽出画像の一致率より、リード位置の判定
値を算出する判定値算出手段と、 この判定値算出手段で算出された判定値に基づき、上記
検査領域中に実装されていIC部品のリード位置を特定
する特定手段と、 を有することを特徴とす請求項1記載のIC部品位置検
出装置。3. The extracted image generation means for generating the extracted image for each of the light colors from the reference image of the lead portion of the reference IC component and the image data of the inspection area, and the extraction means. A coincidence rate calculating means for calculating the coincidence rate of the reference image and the extracted image of the inspection area generated by the image generating means, and the coincidence of the reference image and the extracted image of the inspection area calculated by the coincidence rate calculating means. Determination value calculating means for calculating the determination value of the lead position based on the ratio; and specifying means for specifying the lead position of the IC component mounted in the inspection area based on the determination value calculated by the determination value calculating means. The IC component position detection device according to claim 1, further comprising:
出画像における各光色ごとの画素数、mが上記基準IC
部品の抽出画像と上記検査対象領域の抽出画像との各光
源色ごとの一致する画素数、 で算出されることを特徴とする請求項3記載のIC部品
位置検出装置。4. The coincidence rate X (x, y) for each light color is: X (x, y) = m / α where (x, y) is the position and α is in the extracted image of the reference IC component. The number of pixels for each light color, m is the reference IC
The IC component position detecting device according to claim 3, wherein the number of matching pixels for each light source color of the extracted image of the component and the extracted image of the inspection target region is calculated.
いての一致率、Y(x,y)が、他の1の色についての
一致率、で算出されることを特徴とする請求項3または
4記載のIC部品位置検出装置。5. The judgment value is: F (x, y) = Min {X (x, y), Y (x, y)} where X (x, y) is at position (x, y). 5. The IC component position detecting device according to claim 3, wherein the coincidence rate for one color, Y (x, y), is calculated by the coincidence rate for another color.
い値を有する箇所をIC部品のリード位置とすることを
特徴とする請求項2記載のIC部品位置検出装置。6. The IC component position detecting device according to claim 2, wherein the specifying means sets a portion having the largest determination value as a lead position of the IC component.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8040114A JPH09232797A (en) | 1996-02-27 | 1996-02-27 | IC component position detector |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8040114A JPH09232797A (en) | 1996-02-27 | 1996-02-27 | IC component position detector |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH09232797A true JPH09232797A (en) | 1997-09-05 |
Family
ID=12571826
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8040114A Withdrawn JPH09232797A (en) | 1996-02-27 | 1996-02-27 | IC component position detector |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH09232797A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006349555A (en) * | 2005-06-17 | 2006-12-28 | Daido Steel Co Ltd | Marking area detector |
| JP2007064801A (en) * | 2005-08-31 | 2007-03-15 | Daiichi Jitsugyo Viswill Co Ltd | Illumination device and visual inspection apparatus equipped with the same |
| JP2007142717A (en) * | 2005-11-17 | 2007-06-07 | Keyence Corp | Image processor |
| JP2009122037A (en) * | 2007-11-16 | 2009-06-04 | Tsubakimoto Chain Co | Appearance inspecting device of chains and appearance inspecting method using it |
-
1996
- 1996-02-27 JP JP8040114A patent/JPH09232797A/en not_active Withdrawn
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006349555A (en) * | 2005-06-17 | 2006-12-28 | Daido Steel Co Ltd | Marking area detector |
| JP2007064801A (en) * | 2005-08-31 | 2007-03-15 | Daiichi Jitsugyo Viswill Co Ltd | Illumination device and visual inspection apparatus equipped with the same |
| JP2007142717A (en) * | 2005-11-17 | 2007-06-07 | Keyence Corp | Image processor |
| JP2009122037A (en) * | 2007-11-16 | 2009-06-04 | Tsubakimoto Chain Co | Appearance inspecting device of chains and appearance inspecting method using it |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2824552B2 (en) | System and method for automatic optical inspection | |
| JPH07111998B2 (en) | Wire bonding inspection device | |
| JPH11160247A (en) | Appearance inspection method and apparatus | |
| JPH10311713A (en) | Bonding wire inspection method and apparatus | |
| JPH09232797A (en) | IC component position detector | |
| JPH08247736A (en) | Mounting board inspection equipment | |
| JPH0658731A (en) | Pattern inspecting apparatus | |
| JP3241050B2 (en) | Semiconductor visual inspection equipment | |
| JP3427248B2 (en) | Foreign object detection method | |
| JP3187252B2 (en) | Pattern outline inspection device | |
| JP2002250700A (en) | Method and device for inspecting pattern | |
| JPH10104076A (en) | Method and system for inspecting mixture of foreign matter | |
| JP4090775B2 (en) | Appearance inspection method and appearance inspection apparatus for electronic circuit components, and method for manufacturing electronic circuit components | |
| JPH1114323A (en) | Pattern inspection method and pattern inspection device | |
| JPH10247669A (en) | Bonding wire inspection apparatus and method | |
| JPS6354680A (en) | Position detector | |
| JP2596158B2 (en) | Component recognition device | |
| JPH05332746A (en) | Recognizing device of solder paste form | |
| JPH0982739A (en) | Inspecting device of bonding wire | |
| JPH0749935B2 (en) | Object recognition device | |
| JP3757471B2 (en) | Wire bonding inspection method | |
| JPH05335390A (en) | Inspection apparatus of bonding wire | |
| JP3057830U (en) | Detector for metal plating of solder points on integrated circuit boards | |
| JPH0989797A (en) | Mounting board inspection equipment | |
| JPH0926313A (en) | Object recognition method in electronic component mounting board appearance inspection device |
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: 20030506 |