JPH0949715A - Method and apparatus for visual inspection of semiconductor package - Google Patents

Method and apparatus for visual inspection of semiconductor package

Info

Publication number
JPH0949715A
JPH0949715A JP7200860A JP20086095A JPH0949715A JP H0949715 A JPH0949715 A JP H0949715A JP 7200860 A JP7200860 A JP 7200860A JP 20086095 A JP20086095 A JP 20086095A JP H0949715 A JPH0949715 A JP H0949715A
Authority
JP
Japan
Prior art keywords
lead
semiconductor package
tip
root
resolution
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.)
Pending
Application number
JP7200860A
Other languages
Japanese (ja)
Inventor
Tetsuya Shirakawa
哲也 白川
Masayasu Akaiwa
正康 赤岩
Takashi Okabe
隆史 岡部
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP7200860A priority Critical patent/JPH0949715A/en
Publication of JPH0949715A publication Critical patent/JPH0949715A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Supply And Installment Of Electrical Components (AREA)
  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Testing Or Measuring Of Semiconductors Or The Like (AREA)

Abstract

(57)【要約】 【課題】本発明の目的は、ガルウィング型リードの半導
体パッケージにおけるリード長を撮像した光学画像に基
づいて高精度に測定できるようにした。 【構成】本発明は、半導体パッケージの周囲に配列され
たガルウィング型リードにおいて、上面から撮像した光
学画像から、リードの先端部及び根元部における2種類
の分解能Pt,Pb及びカメラ中心位置座標(X0,Y
0)を用いて各リード長を算出することにある。
(57) Abstract: An object of the present invention is to enable highly accurate measurement of a lead length in a gull wing type lead semiconductor package based on an optical image taken. According to the present invention, in a gull wing type lead arranged around a semiconductor package, two types of resolutions Pt, Pb and a camera center position coordinate (X0 , Y
0) is used to calculate each lead length.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、特に、周囲に各列毎に
突設されたリードとして、ガルウィング型に形成された
ガルウィング型半導体パッケージのリード検査に好敵
な、半導体ICパッケージあるいはそれに類似する電子
部品等から突出したリードの外観を検査する半導体パッ
ケージの外観検査方法及びその装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention particularly relates to a semiconductor IC package or a semiconductor IC package which is suitable for lead inspection of a gull wing type semiconductor package formed in a gull wing type as leads protruding in each row around the semiconductor IC package. The present invention relates to a semiconductor package appearance inspection method and apparatus for inspecting the appearance of a lead protruding from an electronic component or the like.

【0002】[0002]

【従来の技術】半導体パッケージの外観検査の内、例え
ば半導体パッケージのリード形状を検査したり、リード
表面を検査したりする第1の従来技術としては、そのリ
ードを撮像して2値化し、その2値化した白黒画像によ
り検査することが主に行われている。また、製品の検査
等のために画像を取り込んで視覚認識を行う第2の従来
技術としては、特開平3−204085号公報に記載の
画像記憶装置が挙げられる。この第2の従来技術は、高
解像度カメラから得られた画像を複数の画像メモリに分
散して高解像の画像を記憶するものであるが、多品種、
多項目、かつ高速の検査を目的としたものではない。ま
た、半導体パッケージの外観検査の内、半導体パッケー
ジのリード自体の検査、即ちリード曲がりやリード浮き
量を検査する第3の従来技術としては、特願平1−92
271号公報記載の「ICリード検査装置」や特願平2
−134130号公報記載の「光学検査装置」、特願昭
63−257816号公報記載の「リード検査装置」等
がある。
2. Description of the Related Art Among the visual inspections of semiconductor packages, the first conventional technique for inspecting, for example, the lead shape of a semiconductor package or the surface of a lead is to image the lead and binarize it. Inspection is mainly performed using a binarized black-and-white image. An image storage device described in Japanese Patent Application Laid-Open No. 3-204085 is a second conventional technique for visual recognition by capturing an image for product inspection or the like. The second prior art is for distributing images obtained from a high-resolution camera in a plurality of image memories and storing high-resolution images.
It is not intended for multi-item, high-speed inspection. In addition, as a third conventional technique for inspecting the leads themselves of the semiconductor package, that is, a lead bending amount and a lead floating amount in the visual inspection of the semiconductor package, Japanese Patent Application No. 1-92 is available.
"IC lead inspection device" and Japanese Patent Application No.
-134130 publication, "optical inspection device", Japanese Patent Application No. 63-257816 "lead inspection device" and the like.

【0003】[0003]

【発明が解決しようとする課題】半導体ICパッケージ
あるいは他の電子部品等の製造においては、品質保証の
ために製造後に、リード形状検査、モールド形状検査、
リード表面検査、モールド表面検査、マーク検査、リー
ド間異物検査等の外観検査を必要としている。これらの
検査は、半導体ICパッケージあるいは他の電子部品等
の品種が多く、また検査項目も多いため、品種毎及び検
査項目毎に外観検査装置を設置して行われている。とこ
ろで、リードも含めて半導体パッケージは立体形状(3
次元形状)を有しており、この半導体パッケージを例え
ば撮像カメラ等の撮像手段で撮像した場合、平面の2次
元形状は画像信号として忠実にとらえることができる
が、高さ形状に応じて画像信号として誤差が生じること
になる。しかしながら、上記従来技術の何れにおいて
も、撮像手段から得られる画像信号に基づいて、3次元
形状を有する半導体パッケージにおける例えばリード長
さを正確に測定して高信頼性で検査できるようにするこ
とについて、十分考慮されていなかった。
In the production of semiconductor IC packages or other electronic parts, lead shape inspection, mold shape inspection,
Appearance inspection such as lead surface inspection, mold surface inspection, mark inspection, inter-lead foreign substance inspection is required. These inspections are carried out by installing a visual inspection device for each product type and each inspection item because there are many product types such as semiconductor IC packages and other electronic parts and many inspection items. By the way, the semiconductor package including the leads has a three-dimensional shape (3
When the semiconductor package is imaged by an image pickup means such as an image pickup camera, the two-dimensional shape of the plane can be faithfully captured as an image signal, but the image signal is changed according to the height shape. As a result, an error will occur. However, in any of the above-mentioned conventional techniques, it is possible to accurately measure, for example, the lead length in a semiconductor package having a three-dimensional shape based on an image signal obtained from the image pickup means so that the inspection can be performed with high reliability. , Was not considered enough.

【0004】本発明の目的は、上記従来技術の課題を解
決すべく、高さの変化に応じた補正を施すことによって
撮像手段で撮像する画像信号から3次元形状を有するリ
ードを含めた半導体パッケージの形状を正確に算出して
高信頼性でもって検査できるようにした半導体パッケー
ジの外観検査方法及びその装置を提供することにある。
また本発明の目的は、半導体パッケージの内、リード部
について高信頼性でもって検査できるようにした半導体
パッケージの外観検査方法及びその装置を提供すること
にある。また本発明の目的は、ガルウィング型半導体パ
ッケージのリード部について高信頼性でもって検査でき
るようにした半導体パッケージの外観検査方法及びその
装置を提供することにある。
In order to solve the above-mentioned problems of the prior art, an object of the present invention is to provide a semiconductor package including leads having a three-dimensional shape from an image signal picked up by an image pickup means by performing a correction according to a change in height. It is an object of the present invention to provide a semiconductor package appearance inspection method and apparatus capable of accurately calculating the shape and performing inspection with high reliability.
It is another object of the present invention to provide a semiconductor package appearance inspection method and apparatus capable of inspecting a lead portion in a semiconductor package with high reliability. Another object of the present invention is to provide a semiconductor package appearance inspection method and apparatus capable of inspecting a lead portion of a gull wing type semiconductor package with high reliability.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、所定の検査位置に設置された半導体パッ
ケージの少なくともリード部を照明し、この照明された
半導体パッケージの少なくともリード部からの反射光ま
たは透過光に基づく光像を撮像光学系で撮像してリード
部の画像信号を検出し、この検出されたリード部の画像
信号から得られるリード部の先端部及び根元部の位置座
標に対してリードの先端部における分解能とリードの根
元部における分解能との相違に基づく補正を施して、こ
の補正が施されたリード部の先端部及び根元部の位置座
標に基づいて、判定基準値と比較してリードの良否を判
定することを特徴とする半導体パッケージの外観検査方
法である。また本発明は、所定の検査位置に設置された
半導体パッケージの少なくともリード部を照明し、この
照明された半導体パッケージの少なくともリード部から
の反射光または透過光に基づく光像を撮像光学系で撮像
してリード部の画像信号を検出し、この検出されたリー
ド部の画像信号からリード部の先端部及び根元部の位置
座標を算出し、この算出されたリードの先端部及び根元
部の位置座標と、リード部の先端部における分解能とリ
ードの根元部における分解能との相違に基づく補正が施
された判定基準値とを比較してリードの良否を判定する
ことを特徴とする半導体パッケージの外観検査方法であ
る。
In order to achieve the above object, the present invention illuminates at least a lead portion of a semiconductor package installed at a predetermined inspection position, and from at least the lead portion of the illuminated semiconductor package. The optical image based on the reflected light or transmitted light of is detected by the image pickup optical system to detect the image signal of the lead part, and the position coordinates of the tip part and the root part of the lead part obtained from the detected image signal of the lead part Is corrected based on the difference between the resolution at the tip of the lead and the resolution at the root of the lead, and the determination reference value is based on the position coordinates of the tip and the root of the corrected lead. Is a method for inspecting the appearance of a semiconductor package, characterized in that the quality of the leads is determined by comparing with. Further, according to the present invention, at least the lead portion of the semiconductor package installed at a predetermined inspection position is illuminated, and an optical image based on reflected light or transmitted light from at least the lead portion of the illuminated semiconductor package is imaged by an imaging optical system. Then, the image signal of the lead portion is detected, the position coordinates of the tip portion and the root portion of the lead portion are calculated from the detected image signal of the lead portion, and the calculated position coordinates of the tip portion and the root portion of the lead are calculated. And the appearance inspection of the semiconductor package, which determines the quality of the lead by comparing the resolution at the tip of the lead portion and the determination reference value corrected based on the difference between the resolution at the root portion of the lead portion. Is the way.

【0006】また本発明は、前記半導体パッケージの外
観検査方法において、前記半導体パッケージの種類に応
じて前記リードの先端部における分解能とリードの根元
部における分解能との相違が変化することを特徴とす
る。また本発明は、前記半導体パッケージの外観検査方
法において、前記半導体パッケージの種類に応じて前記
判定基準を変えることを特徴とする。また本発明は、前
記半導体パッケージの外観検査方法において、前記半導
体パッケージがガルウィング型であることを特徴とす
る。また本発明は、前記半導体パッケージの外観検査方
法において、前記照明光はリング状の照明光であること
を特徴とする。また本発明は、所定の検査位置に設置さ
れた半導体パッケージの少なくともリード部を照明する
照明光学系と、該照明光学系で照明された半導体パッケ
ージの少なくともリード部からの反射光または透過光に
基づく光像を撮像してリード部の画像信号を検出する撮
像光学系と、該撮像光学系で検出されたリード部の画像
信号から得られるリード部の先端部及び根元部の位置座
標に対してリードの先端部における分解能とリードの根
元部における分解能との相違に基づく補正を施して、こ
の補正が施されたリード部の先端部及び根元部の位置座
標に基づいて、判定基準値と比較してリードの良否を判
定する画像処理装置とを備えたことを特徴とする半導体
パッケージの外観検査装置である。
Further, according to the present invention, in the appearance inspection method for a semiconductor package, the difference between the resolution at the tip of the lead and the resolution at the root of the lead changes depending on the type of the semiconductor package. . Further, the present invention is characterized in that, in the semiconductor package appearance inspection method, the determination standard is changed according to the type of the semiconductor package. Further, according to the present invention, in the appearance inspection method for a semiconductor package, the semiconductor package is a gull wing type. Further, according to the present invention, in the appearance inspection method for a semiconductor package, the illumination light is ring-shaped illumination light. Further, the present invention is based on an illumination optical system that illuminates at least the lead portion of a semiconductor package installed at a predetermined inspection position, and reflected light or transmitted light from at least the lead portion of the semiconductor package illuminated by the illumination optical system. An imaging optical system that captures an optical image to detect the image signal of the lead portion, and a lead for the position coordinates of the tip portion and the root portion of the lead portion obtained from the image signal of the lead portion detected by the imaging optical system. Correction based on the difference between the resolution at the tip of the lead and the resolution at the root of the lead, and based on the position coordinates of the tip and the root of the lead that have been corrected, compared with the determination reference value. An appearance inspection device for a semiconductor package, comprising: an image processing device for determining whether a lead is good or bad.

【0007】また本発明は、所定の検査位置に設置され
た半導体パッケージの少なくともリード部を照明する照
明光学系と、該照明光学系で照明された半導体パッケー
ジの少なくともリード部からの反射光または透過光に基
づく光像を撮像してリード部の画像信号を検出する撮像
光学系と、該撮像光学系で検出されたリード部の画像信
号からリード部の先端部及び根元部の位置座標を算出
し、この算出されたリードの先端部及び根元部の位置座
標と、リード部の先端部における分解能とリードの根元
部における分解能の相違に基づく補正が施された判定基
準値とを比較してリードの良否を判定する画像処理装置
とを備えたことを特徴とする半導体パッケージの外観検
査装置である。また本発明は、前記半導体パッケージの
外観検査装置における前記画像処理装置において、前記
半導体パッケージの種類に応じて前記リードの先端部に
おける分解能とリードの根元部における分解能との相違
を変化させて補正するように構成したことを特徴とす
る。また本発明は、前記半導体パッケージの外観検査装
置における前記画像処理装置において、前記半導体パッ
ケージの種類に応じて前記判定基準を変えるように構成
したことを特徴とする。また本発明は、前記半導体パッ
ケージの外観検査装置における前記画像処理装置におい
て、種類に応じて用意された処理プログラムの中からガ
ルウィング型に適応する処理プログラムを選択するよう
に構成したことを特徴とする。また本発明は、前記半導
体パッケージの外観検査装置において、前記照明光学系
は、リング状の照明光学系で構成したことを特徴とす
る。
Further, according to the present invention, an illumination optical system for illuminating at least a lead portion of a semiconductor package installed at a predetermined inspection position, and a light reflected or transmitted from at least a lead portion of the semiconductor package illuminated by the illumination optical system. An imaging optical system that captures an optical image based on light to detect an image signal of the lead portion, and position coordinates of the tip portion and the root portion of the lead portion are calculated from the image signal of the lead portion detected by the imaging optical system. , The calculated position coordinates of the tip portion and the root portion of the lead are compared with the judgment reference value corrected based on the difference in the resolution at the tip portion of the lead portion and the resolution at the root portion of the lead. An appearance inspection device for a semiconductor package, comprising: an image processing device for determining acceptability. Further, according to the present invention, in the image processing apparatus in the appearance inspection apparatus for the semiconductor package, the difference between the resolution at the tip portion of the lead and the resolution at the root portion of the lead is changed and corrected according to the type of the semiconductor package. It is characterized in that it is configured as follows. Further, the present invention is characterized in that, in the image processing apparatus in the appearance inspection apparatus for the semiconductor package, the determination standard is changed according to the type of the semiconductor package. Further, the present invention is characterized in that, in the image processing apparatus in the appearance inspection apparatus for semiconductor packages, a processing program adapted to the gull-wing type is selected from processing programs prepared according to types. . Further, the present invention is characterized in that, in the semiconductor package appearance inspection device, the illumination optical system is configured by a ring-shaped illumination optical system.

【0008】また本発明は、周囲もしくは両側部におの
おの配列され、かつ先端部が各列毎にガルウィング型形
状を有する半導体パッケージの外観検査方法であって、
所定の検査位置に搭載された半導体パッケージを照明し
た時、照明された半導体パッケージのリードを撮像し、
その撮像した各々の列における各リード長をリード先端
部の分解能、リード根元部の分解能及びカメラ中心位置
から算出することを特徴とする。また本発明は、半導体
パッケージのリード長計測において、1本分のリード長
を測定して基準のリード長値とし、その他の隣合うリー
ド長は前記基準のリード長値との差分から計測すること
を特徴とする。
Further, the present invention is a method for inspecting the appearance of a semiconductor package, which is arranged on the periphery or on both sides, and has a gull wing type shape at each end of each row.
When the semiconductor package mounted at a predetermined inspection position is illuminated, the leads of the illuminated semiconductor package are imaged,
Each lead length in each imaged row is calculated from the resolution of the lead tip portion, the resolution of the lead root portion, and the camera center position. Further, in the present invention, in measuring the lead length of a semiconductor package, one lead length is measured and set as a reference lead length value, and other adjacent lead lengths are measured from a difference from the reference lead length value. Is characterized by.

【0009】[0009]

【作用】前記構成により、3次元形状を有する半導体パ
ッケージを撮像手段で撮像して画像信号を検出した際、
例えばリード部の先端部と根元部との間において高さが
変化することによって生じる上記画像信号(画像デー
タ)における分解能の相違を補正することによって半導
体パッケージの例えばリードを高精度に検査することが
できる。また前記構成により、多数の種類を有する半導
体パッケージに対して、共通した処理によって半導体パ
ッケージの例えばリードを高精度に検査することができ
る。また前記構成により、ガルウィング型半導体パッケ
ージにおけるリードの形状を高信頼度で検査することが
できる。
With the above structure, when the semiconductor package having a three-dimensional shape is picked up by the image pickup means and the image signal is detected,
For example, it is possible to inspect a lead of a semiconductor package with high accuracy by correcting a difference in resolution in the image signal (image data) caused by a change in height between a tip portion and a root portion of the lead portion. it can. Further, with the above configuration, it is possible to inspect, for example, the leads of the semiconductor package with high accuracy by the common processing for the semiconductor packages having many types. Further, with the above configuration, the shape of the lead in the gull wing type semiconductor package can be inspected with high reliability.

【0010】[0010]

【実施例】本発明の実施例を、図1乃至図8を用いて説
明する。半導体パッケージとしては、大別すると、ガル
ウィング型とJリード型とがある。ガルウィング型に
は、周囲4方向にリードを有するQFP(Quad Flat Pa
ckage)と両側にリードを有するSOP(Small Outline
Package)とがある。またJリード型には、周囲4方向
にリードを有するQFJ(Quad Flat J lead Package)
と両側にリードを有するSOJ(Small Outline J lead
Package)とがある。ところで、ガルウィング型におい
ても、QFP(Quad Flat Package)とSOP(Small O
utline Package)とでは各種寸法が異なると共に、同じ
QFPでもパッケージ寸法、リード幅、リード長さ、ピ
ン数等が異なる複数の種類があり、また同じSOPにお
いても同様にパッケージ寸法、リード幅、リード長さ、
ピン数等が異なる複数の種類がある。
Embodiments of the present invention will be described with reference to FIGS. The semiconductor packages are roughly classified into a gull wing type and a J lead type. The gull wing type has a QFP (Quad Flat Pa
ckage) and SOP (Small Outline) with leads on both sides
Package). The J lead type has QFJ (Quad Flat J lead Package) with leads in 4 directions.
And SOJ (Small Outline J lead with lead on both sides
Package). By the way, even in the gull wing type, QFP (Quad Flat Package) and SOP (Small O
utline Package), there are different types of package, lead width, lead length, number of pins, etc. even for the same QFP. Also, for the same SOP, package size, lead width, lead length are similar. Well,
There are several types with different numbers of pins.

【0011】図1(a)及び(b)において、1は被検
査対象である半導体パッケージの内のガルウィング型
(特にQFPを示す。しかしSOPであっても良い。)
であり、2a〜2dはそのガルウィング型の半導体パッ
ケージ1のリードである。各リード2a〜2dは半導体
パッケージの周囲に配列されており、その先端部(実装
面)がガルウィング型をなしている。3は半導体パッケ
ージ1を照明するためのリング状の照明装置であり、図
示のように半導体パッケージ1を吸着ヘッド28に搭載
してリード2a〜2dを検査する時、その各リード2a
〜2dに対してリング状の照明によって一様照明するよ
う構成している。4は照明された半導体パッケージ1と
対向する位置に配置された撮像カメラである。29は、
リード部の背景を暗くする背景板であり、リング状照明
装置3で照明された光を正反射させて側方へ放射させて
撮像カメラ4の視野へは入らず、真っ暗にするためのも
のである。なお、撮像カメラ4は、リードの表面からの
反射光を検出(撮像)しているが、それはリードの表面
状態(表面の汚れや傷)も検査したいためである。従っ
て、リードの長さ、リード幅、リードのピッチを算出す
るだけでは、透過光(通過光)を撮像カメラ4で撮像
(検出)しても良い。即ち、背景板29で正反射したリ
ード間を透過した透過光を撮像カメラ4で撮像して画像
信号(画像データ)を得ても良い。
In FIGS. 1A and 1B, reference numeral 1 denotes a gull-wing type (particularly QFP, which may be a SOP) of a semiconductor package to be inspected.
2a to 2d are leads of the gull wing type semiconductor package 1. The leads 2a to 2d are arranged around the semiconductor package, and the tips (mounting surfaces) thereof are gull-wing type. Reference numeral 3 is a ring-shaped illuminating device for illuminating the semiconductor package 1, and when the semiconductor package 1 is mounted on the suction head 28 and the leads 2a to 2d are inspected as shown in the figure, the respective leads 2a.
It is configured to uniformly illuminate ~ 2d with ring-shaped illumination. Reference numeral 4 is an image pickup camera arranged at a position facing the illuminated semiconductor package 1. 29 is
It is a background plate that darkens the background of the lead portion, and is for making the light illuminated by the ring-shaped lighting device 3 specularly reflected and radiated to the side so that it does not enter the visual field of the imaging camera 4 and becomes completely dark. is there. The imaging camera 4 detects (images) the reflected light from the surface of the lead because it is desired to inspect the surface condition of the lead (dirt or scratch on the surface). Therefore, the transmitted light (passed light) may be imaged (detected) by the imaging camera 4 only by calculating the lead length, the lead width, and the lead pitch. That is, the transmitted light transmitted between the leads specularly reflected by the background plate 29 may be imaged by the imaging camera 4 to obtain an image signal (image data).

【0012】5は撮像カメラ4によって撮像された画像
データを処理用のディジタル画像信号に変換するA/D
変換手段である。6はA/D変換手段5で変換された撮
像内容(ディジタル画像信号)を記録する画像メモリで
ある。7は画像メモリ6から取り出された撮像内容(デ
ィジタル画像信号)に基づき、半導体パッケージ1のリ
ード2a〜2dを各列毎に検査する画像処理手段(CP
U)であり、画像処理手段(CPU)7がその検査結果
を信号9として図示しない下位手段に送信する。即ち、
画像処理装置21は、これら画像メモリ6及び画像処理
手段(CPU)7を有し、更にディスプレイ等の表示装
置22、キーボード23及びディスク24等から構成さ
れる入力手段、及び検査判定基準値のデーダも含めて各
種データを記憶して格納する外部記憶装置25を備え、
バスで接続している。また上記吸着ヘッド28に搭載さ
れるのは、ガルウィング型の半導体パッケージ1に限ら
れるわけではなく、Jリード型も搭載されることにな
る。そこで、画像処理装置21における画像処理も当
然、ガルウィング型とJリード型とで異なるため、上記
吸着ヘッド28に搭載される半導体パッケージの型式
(次に説明する種類も含む。)を認識し、この認識され
た型式(種類も含む。)の情報が画像処理装置21に入
力される。この型式については、上記入力手段23、2
4を用いて入力しても良い。
Reference numeral 5 is an A / D for converting the image data picked up by the image pickup camera 4 into a digital image signal for processing.
Conversion means. Reference numeral 6 denotes an image memory for recording the imaged content (digital image signal) converted by the A / D conversion means 5. An image processing means (CP) 7 inspects the leads 2a to 2d of the semiconductor package 1 for each column based on the imaged content (digital image signal) taken out from the image memory 6.
U), and the image processing means (CPU) 7 transmits the inspection result as a signal 9 to a lower means (not shown). That is,
The image processing device 21 has the image memory 6 and the image processing means (CPU) 7, and further includes a display device 22 such as a display, an input means including a keyboard 23, a disk 24 and the like, and an inspection determination reference value data. An external storage device 25 for storing and storing various data including
Connected by bus. Further, the suction head 28 is not limited to being mounted on the gull wing type semiconductor package 1, but a J lead type is also mounted. Therefore, since the image processing in the image processing device 21 is naturally different between the gull wing type and the J lead type, the type of the semiconductor package mounted on the suction head 28 (including the types described below) is recognized, and this Information of the recognized type (including type) is input to the image processing device 21. For this type, the input means 23, 2
You may input it using 4.

【0013】また検査判定基準値についても、ガルウィ
ング型においても、QFP(Quad Flat Package)とS
OP(Small Outline Package)とでは異なると共に、
同じQFPでもパッケージ寸法、リード幅、リード長
さ、ピン数等が異なる複数の種類があり、また同じSO
Pにおいても同様にパッケージ寸法、リード幅、リード
長さ、ピン数等が異なる複数の種類があり、各々異なる
ことになる。従って、ガルウィング型の半導体パッケー
ジにおいてパッケージ寸法、リード幅、リード長さ、ピ
ン数等が異なる様々な種類に応じて、検査判定基準値
(特にリード長に関する検査判定基準値)のデータを上
記入力手段23、24を用いて、外部記憶装置25に記
憶して格納しておくことが必要となる。ガルウィング型
リードの半導体パッケージ1では、そのリード部が曲げ
られているため、リング状の照明装置3からの光軸(光
束)のうち、光軸(光束)8bはリード先端部根元部に
当たると、その光が光束8b’として反射し、撮像カメ
ラ4に入射し、その部分の画像濃度が明るくなる。しか
し、光軸(光束)8aはリードの曲がった部分に当たる
と、その光が光束8a’のように側方に反射して撮像カ
メラ4に入らないので、その部分では撮像カメラ4で撮
像したとき画像濃度が暗くなる。
As for the inspection judgment reference value, the QFP (Quad Flat Package) and S
Different from OP (Small Outline Package),
Even with the same QFP, there are several types with different package dimensions, lead width, lead length, number of pins, etc.
Similarly, in P, there are a plurality of types having different package dimensions, lead widths, lead lengths, pin numbers, etc., which are different from each other. Therefore, in the gull wing type semiconductor package, the data of the inspection determination reference value (in particular, the inspection determination reference value related to the lead length) is input according to various types having different package dimensions, lead widths, lead lengths, pin numbers, etc. It is necessary to use 23 and 24 to store and store in the external storage device 25. In the gull-wing type semiconductor package 1, since the lead portion is bent, when the optical axis (light flux) 8b of the optical axis (light flux) from the ring-shaped lighting device 3 hits the root of the lead tip, The light is reflected as a light flux 8b 'and enters the imaging camera 4, and the image density of that portion becomes bright. However, when the optical axis (light flux) 8a hits the bent portion of the lead, the light is reflected sideways like the light flux 8a 'and does not enter the imaging camera 4, so that when imaging with the imaging camera 4 at that portion. The image density becomes dark.

【0014】従って、撮像カメラ4で撮像すると、半導
体パッケージ1におけるリード部の撮像データは、図2
に示すようになる。即ち、画像メモリ6に取り込まれた
撮像データは、各リード2a〜2dの画像12の先端部
13a及び根元部13cでは明るくなり、リード部の曲
がった部分13bでは暗くなる。また、図3に示すよう
に撮像カメラ4で撮像した時、ガルウィング型のリード
2a〜2dでは先端位置と根元部で撮像カメラ4からの
距離Dt、Dbが異なることになる。一方、撮像カメラ
4が撮像する画像の分解能は、撮像カメラ4からの距離
により決定される。従って、撮像カメラ4からの距離の
長い先端部ではリード部が画像上で小さく見えて分解能
Ptは大きくなり、撮像カメラ4からの距離の短い根元
部ではリード部が画像上で大きく見えて分解能Pbは小
さくなる。
Therefore, when the image pickup camera 4 takes an image, the image pickup data of the lead portion in the semiconductor package 1 is as shown in FIG.
It becomes as shown in. That is, the imaging data captured in the image memory 6 becomes bright at the tip portion 13a and the root portion 13c of the image 12 of each of the leads 2a to 2d and becomes dark at the bent portion 13b of the lead portion. Further, as shown in FIG. 3, when the image pickup camera 4 takes an image, the distances Dt and Db from the image pickup camera 4 are different between the tip positions and the roots of the gull wing type leads 2a to 2d. On the other hand, the resolution of the image captured by the imaging camera 4 is determined by the distance from the imaging camera 4. Therefore, the lead portion looks small on the image and the resolution Pt becomes large at the tip portion having a long distance from the imaging camera 4, and the lead portion looks large on the image at the root portion having a short distance from the imaging camera 4 and the resolution Pb. Becomes smaller.

【0015】そこで、本発明において、画像処理手段
(CPU)7が、半導体パッケージ1の撮像データのう
ち、リードの先端部及び根元部の位置を検出した後、あ
らかじめ求めた先端部及び根元部の分解能Pt,Pbと
カメラ中心位置座標(X0,Y0)から各リード長を算
出する。
Therefore, in the present invention, after the image processing means (CPU) 7 detects the positions of the tip and the root of the lead in the image pickup data of the semiconductor package 1, the tip and the root of the lead which are obtained in advance are detected. Each lead length is calculated from the resolutions Pt, Pb and the camera center position coordinates (X0, Y0).

【0016】次に、画像処理手段(CPU)7による処
理動作を図4(a)(b)に示すフローチャートに従っ
て説明する。まず同図(a)について説明する。スター
トする前に、吸着ヘッド28に搭載される半導体パッケ
ージの型式(種類も含む。)を認識し、この認識された
型式(種類も含む。)の情報が画像処理装置21に入力
される。従って、以後この入力された半導体パッケージ
の型式(種類も含む。)に応じた画像処理プログラム
(画像処理装置21内のメモリに記憶されている。)に
基づいて画像処理(リード長の検査処理)が行われる。
即ち、検査時には、画像入力ステップ41において、撮
像カメラ4によって半導体パッケージ1を撮像してA/
D変換手段5で変換された図2に示す撮像データ(画像
データ)が画像処理装置21に入力される。次に画像メ
モリ記憶ステップ42において、入力された図2に示す
撮像データ(画像データ)を画像メモリ6に記憶させ
る。次にリード先端部位置検出ステップ43において、
画像処理手段(CPU)7は上記画像メモリ6に記憶さ
れた撮像データ(画像データ)から得られる各リード部
2a〜2dの濃淡画像12に基づいて、図2に示すよう
に、画面上での各リード先端部の位置座標(Xt1,Y
t1),(Xt4,Yt4)・・・を算出する。次にリード根
元部位置検出ステップ44において、画像処理手段(C
PU)7は上記画像メモリ6に記憶された撮像データ
(画像データ)から得られる各リード部2a〜2dの濃
淡画像12に基づいて、図2に示すように、画面上での
各リード根元部の位置座標(Xb1,Yb1),(Xb
4,Yb4)・・・を算出する。次にカメラ中心からの検出
点までの距離算出ステップ45において、画像処理手段
(CPU)7は、図2に示すように、画面上におけるカ
メラ中心位置座標(画面の中心位置座標)(X0,Y
0)から上記算出された各リード先端部の位置座標(X
t1,Yt1),(Xt4,Yt4)・・・までの長さMt1
,Mt4 ・・・と画面上におけるカメラ中心位置座標(画
面の中心位置座標)(X0,Y0)から上記算出された
各リード根元部の位置座標(Xb1,Yb1),(Xb
4,Yb4)・・・までの長さMb1 ,Mb4 ・・・とを次に示
す(数1)式に基づいて算出する。 Mt1 =Xt1 −X0,Mt4 =Xt4 −X0・・・・・・・・ Mb1 =Xb1 −X0,Mb4 =Xb4 −X0・・・・・・・・ (数1) 次にリード長算出ステップ46において、画像処理手段
(CPU)7は、図5に示すように、算出された先端部
の長さMt1 〜Mt16、根元部の長さMb1 〜Mb16
と、例えば外部記憶装置25に記憶格納されている先端
部の分解能Pt、根元部の分解能Pbとにより次に示す
(数2)式に基づいて補正してリード長L1 〜L16を算
出する。
Next, the processing operation by the image processing means (CPU) 7 will be described with reference to the flow charts shown in FIGS. First, FIG. 3A will be described. Before starting, the type (including type) of the semiconductor package mounted on the suction head 28 is recognized, and information on the recognized type (including type) is input to the image processing device 21. Therefore, thereafter, the image processing (lead length inspection processing) is performed based on the image processing program (stored in the memory in the image processing device 21) according to the inputted type (including type) of the semiconductor package. Is done.
That is, at the time of inspection, in the image input step 41, the image pickup camera 4 images the semiconductor package 1 and A / A
The image pickup data (image data) shown in FIG. 2 converted by the D conversion unit 5 is input to the image processing device 21. Next, in the image memory storing step 42, the input image pickup data (image data) shown in FIG. 2 is stored in the image memory 6. Next, in the lead tip position detecting step 43,
The image processing means (CPU) 7 displays on the screen as shown in FIG. 2 based on the grayscale image 12 of each of the lead portions 2a to 2d obtained from the image pickup data (image data) stored in the image memory 6. Position coordinates of each lead tip (Xt1, Y
t1), (Xt4, Yt4) ... Are calculated. Next, in the lead root position detecting step 44, the image processing means (C
PU) 7 is based on the grayscale image 12 of each of the lead portions 2a to 2d obtained from the imaging data (image data) stored in the image memory 6, and as shown in FIG. Position coordinates (Xb1, Yb1), (Xb
4, Yb4) ... is calculated. Next, in step 45 of calculating the distance from the camera center to the detection point, the image processing means (CPU) 7 causes the camera center position coordinates (screen center position coordinates) (X0, Y) on the screen as shown in FIG.
0) position coordinates (X) of each lead tip calculated above.
t1, Yt1), (Xt4, Yt4) ... to length Mt1
, Mt4 ... And the position coordinates (Xb1, Yb1), (Xb) of each lead root calculated above from the camera center position coordinates (screen center position coordinates) (X0, Y0) on the screen.
4, Yb4) ... to lengths Mb1, Mb4, ... And are calculated based on the following equation (1). Mt1 = Xt1−X0, Mt4 = Xt4−X0 ... Mb1 = Xb1−X0, Mb4 = Xb4−X0 ... (Equation 1) Next, in the lead length calculation step 46. As shown in FIG. 5, the image processing means (CPU) 7 calculates the calculated lengths Mt1 to Mt16 of the tip portion and the lengths Mb1 to Mb16 of the root portion.
Then, for example, the lead lengths L1 to L16 are calculated by correction using the resolution Pt of the tip portion and the resolution Pb of the root portion stored and stored in the external storage device 25 based on the following equation (2).

【0017】 L1 =Pt・Mt1 −Pb・Mb1, L4 =Pt・Mt4 −Pb・Mb4,・・・・・・・・ (数2) このように全てのリードについてリード長を、(数2)
式に基づいて算出する必要は必ずしもない。即ち、半導
体パッケージの辺を代表とする1本のリードについて、
リード長L1 を(数2)式に基づいて算出して、これを
基準のリード長とすれば良い。そして、隣接するリード
についてのリード長L2 は、上記基準のリード長L1 と
の差分ΔL2 =(Mt2 −Mt1 )から算出すればよ
い。このようにすることにより、(数2)式に基づく補
正処理を著しく少なくすることができる。次に判定基準
値との比較による各リード長の検査ステップ47におい
て、画像処理手段(CPU)7は、例えば、外部記憶装
置25に記憶格納された判定基準値の中から最初に入力
された半導体パッケージの型式(種類も含む。)に応じ
た判定基準値を選択し、この選択された許容範囲を含む
判定基準値と上記算出されたリード長L1 〜L16とを比
較してリード長が良品か否かを判定し、その結果31を
出力する。
L1 = Pt.multidot.Mt1 -Pb.Mb1, L4 = Pt.multidot.Mt4 -Pb.Mb4, ... (Equation 2) Thus, the lead lengths of all the leads are represented by (Equation 2).
It is not always necessary to calculate based on the formula. That is, regarding one lead represented by the side of the semiconductor package,
The lead length L1 may be calculated based on the equation (2) and used as the reference lead length. Then, the lead length L2 of the adjacent lead may be calculated from the difference .DELTA.L2 = (Mt2-Mt1) from the reference lead length L1. By doing so, the correction process based on the equation (2) can be significantly reduced. Next, in the step 47 of inspecting each lead length by comparison with the judgment reference value, the image processing means (CPU) 7, for example, the semiconductor input first from the judgment reference values stored and stored in the external storage device 25. Select the judgment reference value according to the package type (including the type), compare the judgment reference value including the selected allowable range with the calculated lead lengths L1 to L16, and confirm that the lead length is acceptable. It is determined whether or not, and the result 31 is output.

【0018】次に図4(b)について説明する。図4
(a)と相違するのは、図4(a)においてはリード長
算出ステップ46において、上記(数2)式により、算
出された先端部の長さMt1 〜Mt16、及び根元部の長
さMb1 〜Mb16に対して、先端部の分解能Ptと根元
部の分解能Pbとによる相違に基づく補正を施してリー
ド長L1 〜L16を算出するようにしたが、図4(b)に
おいては判定基準値の先端部の長さRt及び根元部の長
さRbに対して、先端部の分解能Ptと根元部の分解能
Pbとによる相違に基づく補正を施して判定基準値を定
めた場合を示す。即ち、図4(b)におけるステップ4
1〜45は、図4(a)に示す場合と同様である。図4
(b)における判定基準値との比較による各リード長の
検査ステップ47’においては、画像処理手段(CP
U)7は、例えば、外部記憶装置25に記憶格納された
判定基準値の中から最初に入力された半導体パッケージ
の型式(種類も含む。)に応じた判定基準値を選択して
上記の如く、選択された判定基準値の先端部の長さRt
及び根元部の長さRbに対して、先端部の分解能Ptと
根元部の分解能Pbとによる相違に基づく補正を施して
定められた判定基準値と、ステップ45において算出さ
れたリードの先端部の長さMt1 〜Mt16及び根元部の
長さMb1 〜Mb16とを許容範囲を考慮して比較してリ
ード長が良品か否かを判定し、その結果31を出力す
る。
Next, FIG. 4B will be described. FIG.
4A is different from FIG. 4A in the lead length calculating step 46 in FIG. 4A, the lengths Mt1 to Mt16 of the tip end portion and the length Mb1 of the root portion calculated by the equation (2). .About.Mb16 is corrected based on the difference between the resolution Pt of the tip portion and the resolution Pb of the root portion to calculate the lead lengths L1 to L16. In FIG. The case where the determination reference value is set by correcting the length Rt of the tip portion and the length Rb of the root portion based on the difference between the resolution Pt of the tip portion and the resolution Pb of the root portion is shown. That is, step 4 in FIG.
1 to 45 are the same as the case shown in FIG. FIG.
In the inspection step 47 ′ of each lead length by comparison with the judgment reference value in (b), the image processing means (CP
U) 7 selects the judgment reference value according to the type (including the kind) of the semiconductor package input first from the judgment reference values stored and stored in the external storage device 25, as described above. , The length Rt of the tip of the selected judgment reference value
And the length Rb of the root portion, the determination reference value determined by performing correction based on the difference between the resolution Pt of the tip portion and the resolution Pb of the root portion, and the tip portion of the lead calculated in step 45. The lengths Mt1 to Mt16 and the root lengths Mb1 to Mb16 are compared in consideration of the allowable range to determine whether or not the lead length is non-defective, and the result 31 is output.

【0019】以上説明したように、図4(a)に示す画
像処理でも、図4(b)に示す画像処理によっても、ガ
ルウィング型リードから撮像される光学画像において生
じる先端部の分解能Ptと根元部の分解能Pbとによる
相違に基づく判定基準値も含めてリード長への補正が施
されて、正確にリード長の検査を行うことができる。次
に、リード長Lの算出において、使用する上記2種類の
分解能Pt,Pb及びカメラ中心位置座標(X0,Y
0)を、予め算出して、例えば外部記憶装置25に記憶
格納しておく方法について説明する。まず、上述のため
に使用する治具61の形状について説明する。即ち、治
具61は、図6のように半導体パッケージ1と似た形状
となっており、エッジを検出しやすいように全体にレイ
デント処理をし、治具61を黒くし、エッジを取る面A
を削り、金属部をむき出しにして濃淡画像信号が得られ
るように構成した。即ち、治具61の端は、高さをガル
ウィング型のリードの表面に合わせた面62と面63と
からなる2段構造とし、高さの違いにより面62の外形
エッジ64から分解能Pbを、面63の外形エッジ65
から分解能Ptを画像処理手段(CPU)7により算出
できるように構成した。
As described above, both the image processing shown in FIG. 4 (a) and the image processing shown in FIG. 4 (b) cause the resolution Pt and the root of the tip portion generated in the optical image picked up from the gull-wing type lead. The lead length is corrected including the determination reference value based on the difference from the resolution Pb of the part, so that the lead length can be accurately inspected. Next, in the calculation of the lead length L, the above two types of resolutions Pt and Pb to be used and the camera center position coordinates (X0, Y
A method of calculating 0) in advance and storing and storing it in the external storage device 25 will be described. First, the shape of the jig 61 used for the above will be described. That is, the jig 61 has a shape similar to that of the semiconductor package 1 as shown in FIG. 6, and the whole of the jig 61 is subjected to the raydent process so that the edge can be easily detected, the jig 61 is blackened, and the edge A
Was shaved and the metal portion was exposed to obtain a grayscale image signal. That is, the end of the jig 61 has a two-step structure including a surface 62 and a surface 63 whose height is matched with the surface of a gull wing type lead, and the resolution Pb from the outer edge 64 of the surface 62 depends on the height difference. Outline 63 of surface 63
From the above, the resolution Pt can be calculated by the image processing means (CPU) 7.

【0020】次に、図6に示す治具61を用いてリード
の先端部における分解能Pt及びリードの根元部におけ
る分解能Pbを、予め算出して、例えば外部記憶装置2
5に記憶格納しておく方法について図7(a)に示すフ
ローチャートに従って説明する。まず、上記治具61を
吸着ヘッド28に搭載し、画像入力ステップ71におい
て、撮像カメラ4によって治具61を撮像してA/D変
換手段5で変換された撮像データ(画像データ)が画像
処理装置21に入力される。次に画像メモリ記憶ステッ
プ72において、入力された撮像データ(画像データ)
を画像メモリ6に記憶させる。次に治具外形エッジ検出
ステップ73において、画像処理手段(CPU)7は、
上記画像メモリ6に記憶された図7(b)に示す治具6
1における面63の外形エッジ64及び面62の外形エ
ッジ65を示す濃淡撮像データ(濃淡画像データ)を読
み出して、隣接した画素のディジタル画像信号の差をと
る微分処理を施すことによって図7(b)に×で示す外
形エッジの座標を検出(算出)する。次に最小2乗法に
よる直線近似ステップ74において、画像処理手段(C
PU)7は、図7(c)に示すように、各外形エッジ6
4、65に対して最小2乗法による直線近似をして直線
を抽出する。次に直線交点算出ステップ75において、
画像処理手段(CPU)7は、抽出された直線の交点座
標を算出する。次に1辺長さMjt,Mjb算出ステッ
プ76において、画像処理手段(CPU)7は、図7
(d)に示す各外形エッジに対応した直線間の1辺の長
さ(画面上での直線間の距離)Mjt,Mjbを算出す
る。
Next, the resolution Pt at the tip of the lead and the resolution Pb at the base of the lead are calculated in advance by using the jig 61 shown in FIG.
A method of storing and storing the data in No. 5 will be described with reference to the flowchart shown in FIG. First, the jig 61 is mounted on the suction head 28, and in the image input step 71, the image of the jig 61 is picked up by the image pickup camera 4 and the image pickup data (image data) converted by the A / D conversion means 5 is subjected to image processing. It is input to the device 21. Next, in the image memory storing step 72, the input imaging data (image data)
Are stored in the image memory 6. Next, in the jig outer edge detection step 73, the image processing means (CPU) 7
The jig 6 shown in FIG. 7B stored in the image memory 6
7B by reading out the grayscale imaging data (grayscale image data) showing the outer edge 64 of the surface 63 and the outer edge 65 of the surface 62 in FIG. 1 and applying the differential processing to obtain the difference between the digital image signals of the adjacent pixels. ) To detect (calculate) the coordinates of the outer edge indicated by x. Next, in the linear approximation step 74 by the method of least squares, the image processing means (C
PU) 7, as shown in FIG.
A straight line is extracted by performing a linear approximation by the method of least squares with respect to 4, 65. Next, in the straight line intersection calculation step 75,
The image processing means (CPU) 7 calculates the intersection coordinates of the extracted straight line. Next, in the one side length Mjt, Mjb calculation step 76, the image processing means (CPU) 7 operates as shown in FIG.
The length of one side between straight lines (distance between straight lines on the screen) Mjt, Mjb corresponding to each contour edge shown in (d) is calculated.

【0021】一方、画像処理装置21の外部記憶装置2
5には、顕微鏡等を用いて実測された治具61における
外形エッジ64の間の寸法Ljt、外形エッジ65の間
の寸法Ljb、外形エッジ64と外形エッジ65との間
の寸法Lj0が入力手段23、24を用いて入力されて
記憶格納されている。従って、分割能算出ステップ77
において、画像処理手段(CPU)7は、上記算出され
た各外形エッジに対応した直線間の1辺の長さMjt,
Mjbと、上記外部記憶装置25に記憶格納されている
治具61における外形エッジ64、65の間の寸法Lj
t,Ljbとに基づいて次に示す(数3)式からリード
の先端部及び根元部における分解能Pt,Pbを算出
し、例えば上記外部記憶装置25に記憶格納されてい
る。
On the other hand, the external storage device 2 of the image processing device 21
In FIG. 5, the dimension Ljt between the outer edges 64 of the jig 61, the dimension Ljb between the outer edges 65, and the dimension Lj0 between the outer edges 64 and 65 of the jig 61 measured by using a microscope or the like are input means. It is input using 23 and 24 and is stored and stored. Therefore, the dividing ability calculation step 77
In the image processing means (CPU) 7, the length Mjt of one side between straight lines corresponding to each of the calculated outer shape edges,
Dimension Lj between Mjb and the outer edges 64 and 65 of the jig 61 stored and stored in the external storage device 25.
Based on t and Ljb, the resolutions Pt and Pb at the tip and the root of the lead are calculated from the following equation (3), and are stored and stored in the external storage device 25, for example.

【0022】 Pt=Ljt/Mjt, Pb=Ljb/Mjb (数3) 次に、カメラ中心位置座標(X0,Y0)を予め求め
て、例えば外部記憶装置25に記憶格納しておく方法を
図8に示すフローチャートに従って説明する。図7に示
すのと同様に、まず、上記治具61を吸着ヘッド28に
搭載し、画像入力ステップ81において、撮像カメラ4
によって治具61を撮像してA/D変換手段5で変換さ
れた撮像データ(画像データ)が画像処理装置21に入
力される。次に画像メモリ記憶ステップ82において、
入力された撮像データ(画像データ)を画像メモリ6に
記憶させる。次に治具外形エッジ検出ステップ83にお
いて、画像処理手段(CPU)7は、上記画像メモリ6
に記憶された図7(b)に示す治具61における面63
の外形エッジ64及び面62の外形エッジ65を示す濃
淡撮像データ(濃淡画像データ)を読み出して、隣接し
た画素のディジタル画像信号の差をとる微分処理を施す
ことによって図8(b)に×で示す外形エッジの座標を
検出(算出)し、各外形エッジ64、65に対して最小
2乗法による直線近似をして直線の座標Xjt,Xjb
を抽出する。次に治具先端長算出ステップ84におい
て、画像処理手段(CPU)7は、図8(c)に示すよ
うに、画面上における抽出された直線の座標Xjt,X
jbから直線間の長さ(先端長)Mj0=(Xjt−X
jb)を算出する(X軸方向のみ示す。)。次にカメラ
中心位置算出ステップ85において、画像処理手段(C
PU)7は、カメラ中心位置(X0,Y0)を、予め図
8(d)に示すように、上記算出された直線間の長さ
(先端長)Mj0と、上記外部記憶装置25に記憶格納
されている治具61における外形エッジ64と外形エッ
ジ65との間の寸法Lj0とに基づいて次に示す(数
4)式(X座標のみを示す。Y座標についても同様であ
る。)に基づいて算出して、例えば外部記憶装置25に
記憶格納しておく。
Pt = Ljt / Mjt, Pb = Ljb / Mjb (Equation 3) Next, a method of previously obtaining the camera center position coordinates (X0, Y0) and storing and storing them in, for example, the external storage device 25 is shown in FIG. It will be described according to the flowchart shown in FIG. Similar to that shown in FIG. 7, first, the jig 61 is mounted on the suction head 28, and in the image input step 81, the imaging camera 4
Imaging data (image data) converted by the A / D conversion means 5 by the jig 61 is input to the image processing device 21. Next, in the image memory storing step 82,
The input imaging data (image data) is stored in the image memory 6. Next, in jig outer edge detection step 83, the image processing means (CPU) 7 causes the image memory 6 to operate.
The surface 63 of the jig 61 shown in FIG.
8B is read by reading out the grayscale image pickup data (grayscale image data) showing the outer edge 64 of the surface 62 and the outer edge 65 of the surface 62, and applying a differentiating process to obtain the difference between the digital image signals of the adjacent pixels. The coordinates of the outline edges shown are detected (calculated), and the outline edges 64 and 65 are approximated to a straight line by the method of least squares, and the coordinates Xjt and Xjb of the straight lines are calculated.
To extract. Next, in the jig tip length calculating step 84, the image processing means (CPU) 7 causes the coordinates Xjt, X of the extracted straight line on the screen as shown in FIG. 8C.
Length between jb and straight line (tip length) Mj0 = (Xjt−X
jb) is calculated (only the X-axis direction is shown). Next, in the camera center position calculation step 85, the image processing means (C
The PU) 7 stores the camera center position (X0, Y0) in the external storage device 25 and the calculated length between the straight lines (tip length) Mj0 as shown in FIG. 8D in advance. Based on the dimension Lj0 between the outer shape edge 64 and the outer shape edge 65 of the jig 61, the following formula (4) (only the X coordinate is shown. The same applies to the Y coordinate). It is calculated and stored in the external storage device 25, for example.

【0023】 Lj0=Pt(Xjt−X0)−Pb(Xjb−X0) =Pt・C−Pb・(C−Mj0) C=(Lj0−Pb・Mj0)/(Pt−Pb) X0=Xjt−C (数4) 以上2種類の分解能Pt,Pb及びカメラ中心位置座標
(X0,Y0)を、予め算出して、例えば外部記憶装置
25に記憶格納しておく方法について説明したが、カメ
ラ中心位置座標(X0,Y0)は、撮像カメラ4が撮像
した画面の中心位置座標と対応することから、撮像カメ
ラ4が撮像した画面の中心位置座標としても良いことは
明らかである。また2種類の分解能Pt,Pbについて
は、図3に示すように、撮像カメラ4からリードの先端
部の表面までの距離Dtとリードの根元部の表面までの
距離Dbによって決まってくる関係を有し、この距離D
t,Dbについては既知の値であることからして、分解
能Pt,Pbは定まることになる。そこで、定まった分
解能Pt,Pbを画像処理装置21の入力手段23、2
4で入力して例えば外部記憶装置25に記憶格納してお
けばよい。また上記距離Dt,Dbを、画像処理装置2
1の入力手段23、24で入力し、この入力された距離
Dt,Dbに基づいて、2種類の分解能Pt,Pbを画
像処理手段(CPU)7において演算して求めて例えば
外部記憶装置25に記憶格納しておけばよい。
Lj0 = Pt (Xjt-X0) -Pb (Xjb-X0) = Pt.C-Pb. (C-Mj0) C = (Lj0-Pb.Mj0) / (Pt-Pb) X0 = Xjt-C (Formula 4) The method of calculating the two types of resolutions Pt, Pb and the camera center position coordinates (X0, Y0) in advance and storing and storing them in the external storage device 25 has been described. Since (X0, Y0) corresponds to the center position coordinates of the screen imaged by the imaging camera 4, it is clear that it may be the center position coordinates of the screen imaged by the imaging camera 4. As shown in FIG. 3, the two types of resolutions Pt and Pb have a relationship determined by the distance Dt from the imaging camera 4 to the surface of the tip of the lead and the distance Db to the surface of the root of the lead. And this distance D
Since t and Db are known values, the resolutions Pt and Pb are determined. Therefore, the determined resolutions Pt and Pb are input means 23 and 2 of the image processing device 21.
It may be input at 4 and stored and stored in the external storage device 25, for example. In addition, the distances Dt and Db are set to the image processing device 2
The image processing means (CPU) 7 calculates the two types of resolutions Pt and Pb based on the input distances Dt and Db, and inputs them to the external storage device 25, for example. It should be stored in memory.

【0024】[0024]

【発明の効果】本発明によれば、所定の検査位置に搭載
されたガルウィング型リードの半導体パッケージを照明
して該半導体パッケージのリードを撮像し、その撮像し
た各々の列における各リードのガルウィング型リードの
画像データから、各リード長さを高精度に測定すること
ができ、その結果所望のリード長さを有するガルウィン
グ型リードの半導体パッケージを高信頼度で検査するこ
とができる効果を奏する。
According to the present invention, the gull-wing type semiconductor package mounted at a predetermined inspection position is illuminated to image the leads of the semiconductor package, and the gull-wing type of each lead in each imaged row is picked up. Each lead length can be accurately measured from the lead image data, and as a result, a gull wing type semiconductor package having a desired lead length can be inspected with high reliability.

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

【図1】本発明に係るガルウィング型リードの半導体パ
ッケージの外観検査装置の一実施例を示し、(a)はそ
の全体構成を示す図で、(b)はガルウィング型リード
の半導体パッケージを示す平面図である。
FIG. 1 shows an embodiment of an appearance inspection apparatus for a gull wing type lead semiconductor package according to the present invention, FIG. 1 (a) is a diagram showing the entire structure, and FIG. 1 (b) is a plan view showing a gull wing type lead semiconductor package. It is a figure.

【図2】図1に示す撮像カメラでガルウィング型リード
の半導体パッケージを撮像して画像メモリに記憶させた
撮像データ(画像データ)を示す図である。
FIG. 2 is a diagram showing imaging data (image data) obtained by imaging a gull-wing type semiconductor package with the imaging camera shown in FIG. 1 and storing it in an image memory.

【図3】被検査対象物であるガルウィング型リードと撮
像カメラの位置関係を示す図である。
FIG. 3 is a diagram showing a positional relationship between a gull wing type lead which is an inspection object and an imaging camera.

【図4】本発明に係る画像処理手段(CPU)によって
ガルウィング型リードにおけるリード長さの良否を判定
して検査する方法の二つの実施例を示すフローチャート
である。
FIG. 4 is a flowchart showing two embodiments of a method for determining and inspecting the lead length of a gull wing type lead by the image processing means (CPU) according to the present invention.

【図5】図4に示すフローチャートにおいて各リード長
を算出するために各リードの先端部及び根元部の解像度
と撮像データ(画像データ)に基づく各リードの先端部
及び根元部の位置関係とを説明するための図である。
FIG. 5 shows the resolution of the tip and the root of each lead and the positional relationship between the tip and the root of each lead based on imaging data (image data) in order to calculate the lead length in the flowchart shown in FIG. It is a figure for explaining.

【図6】本発明に係る画像処理手段(CPU)によって
各リード長を算出するために必要なデータを事前にとる
計測治具を示す図である。
FIG. 6 is a diagram showing a measuring jig for acquiring in advance data required for calculating each lead length by the image processing means (CPU) according to the present invention.

【図7】本発明に係る画像処理手段(CPU)によって
各リード長を算出するために必要な分解能を算出するた
めのフローチャートを示す図である。
FIG. 7 is a diagram showing a flowchart for calculating the resolution necessary for calculating each lead length by the image processing means (CPU) according to the present invention.

【図8】本発明に係る画像処理手段(CPU)によって
各リード長を算出するために必要なカメラ中心位置を算
出ためのフローチャートを示す図である。
FIG. 8 is a diagram showing a flowchart for calculating a camera center position necessary for calculating each lead length by the image processing means (CPU) according to the present invention.

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

1…半導体パッケージ(被検査物)、2a〜2d…リー
ド 3…リング状の照明装置、4…撮像カメラ、5…A/D
変換手段 6…画像メモリ、7…画像処理手段(CPU)、21…
画像処理装置 22…ディスプレイ(表示手段)、23…キーボード
(入力手段) 24…ディスク(入力手段)
DESCRIPTION OF SYMBOLS 1 ... Semiconductor package (inspection object), 2a-2d ... Leads 3 ... Ring-shaped illumination device, 4 ... Imaging camera, 5 ... A / D
Conversion means 6 ... Image memory, 7 ... Image processing means (CPU), 21 ...
Image processing device 22 ... Display (display means), 23 ... Keyboard (input means) 24 ... Disk (input means)

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】所定の検査位置に設置された半導体パッケ
ージの少なくともリード部を照明し、 この照明された半導体パッケージの少なくともリード部
からの反射光または透過光に基づく光像を撮像光学系で
撮像してリード部の画像信号を検出し、 この検出されたリード部の画像信号から得られるリード
部の先端部及び根元部の位置座標に対してリードの先端
部における分解能とリードの根元部における分解能との
相違に基づく補正を施して、この補正が施されたリード
部の先端部及び根元部の位置座標に基づいて、判定基準
値と比較してリードの良否を判定することを特徴とする
半導体パッケージの外観検査方法。
1. An illumination optical system for illuminating at least a lead portion of a semiconductor package installed at a predetermined inspection position, and capturing an optical image based on reflected light or transmitted light from at least the lead portion of the illuminated semiconductor package with an imaging optical system. Then, the image signal of the lead portion is detected, and the resolution at the tip portion of the lead and the resolution at the root portion of the lead with respect to the position coordinates of the tip portion and the root portion of the lead portion obtained from the detected image signal of the lead portion. A semiconductor device characterized in that the quality of the lead is judged by comparing with a judgment reference value based on the position coordinates of the tip and the root of the lead part after the correction. Package visual inspection method.
【請求項2】所定の検査位置に設置された半導体パッケ
ージの少なくともリード部を照明し、 この照明された半導体パッケージの少なくともリード部
からの反射光または透過光に基づく光像を撮像光学系で
撮像してリード部の画像信号を検出し、 この検出されたリード部の画像信号からリード部の先端
部及び根元部の位置座標を算出し、この算出されたリー
ドの先端部及び根元部の位置座標と、リード部の先端部
における分解能とリードの根元部における分解能との相
違に基づく補正が施された判定基準値とを比較してリー
ドの良否を判定することを特徴とする半導体パッケージ
の外観検査方法。
2. A semiconductor package installed at a predetermined inspection position is illuminated with at least a lead portion, and an optical image based on reflected light or transmitted light from at least the lead portion of the illuminated semiconductor package is picked up by an image pickup optical system. Then, the image signal of the lead portion is detected, the position coordinates of the tip and the root of the lead portion are calculated from the detected image signal of the lead portion, and the calculated position coordinates of the tip and the root of the lead are calculated. And the appearance inspection of the semiconductor package, which determines the quality of the lead by comparing the resolution at the tip of the lead portion and the determination reference value corrected based on the difference between the resolution at the root portion of the lead portion. Method.
【請求項3】前記半導体パッケージの種類に応じて前記
リードの先端部における分解能とリードの根元部におけ
る分解能との相違が変化することを特徴とする請求項1
または2記載の半導体パッケージの外観検査方法。
3. The difference between the resolution at the tip of the lead and the resolution at the root of the lead changes depending on the type of the semiconductor package.
Alternatively, the semiconductor package appearance inspection method according to the item 2.
【請求項4】前記半導体パッケージの種類に応じて前記
判定基準を変えることを特徴とする請求項1または2記
載の半導体パッケージの外観検査方法。
4. The method for inspecting the appearance of a semiconductor package according to claim 1, wherein the determination standard is changed according to the type of the semiconductor package.
【請求項5】前記半導体パッケージがガルウィング型で
あることを特徴とする請求項1または2記載の半導体パ
ッケージの外観検査方法。
5. The appearance inspection method for a semiconductor package according to claim 1, wherein the semiconductor package is a gull wing type.
【請求項6】前記照明光はリング状の照明光であること
を特徴とする請求項1または2記載の半導体パッケージ
の外観検査方法。
6. The semiconductor package appearance inspection method according to claim 1, wherein the illumination light is ring-shaped illumination light.
【請求項7】所定の検査位置に設置された半導体パッケ
ージの少なくともリード部を照明する照明光学系と、 該照明光学系で照明された半導体パッケージの少なくと
もリード部からの反射光または透過光に基づく光像を撮
像してリード部の画像信号を検出する撮像光学系と、 該撮像光学系で検出されたリード部の画像信号から得ら
れるリード部の先端部及び根元部の位置座標に対してリ
ードの先端部における分解能とリードの根元部における
分解能との相違に基づく補正を施して、この補正が施さ
れたリード部の先端部及び根元部の位置座標に基づい
て、判定基準値と比較してリードの良否を判定する画像
処理装置とを備えたことを特徴とする半導体パッケージ
の外観検査装置。
7. An illumination optical system for illuminating at least a lead portion of a semiconductor package installed at a predetermined inspection position, and a reflected light or a transmitted light from at least the lead portion of the semiconductor package illuminated by the illumination optical system. An imaging optical system that captures an optical image to detect the image signal of the lead portion, and a lead for the position coordinates of the tip and the root of the lead portion obtained from the image signal of the lead portion detected by the imaging optical system. Correction based on the difference between the resolution at the tip of the lead and the resolution at the root of the lead, and based on the position coordinates of the tip and the root of the lead that have been corrected, compared with the determination reference value. An appearance inspection device for a semiconductor package, comprising: an image processing device for determining the quality of a lead.
【請求項8】所定の検査位置に設置された半導体パッケ
ージの少なくともリード部を照明する照明光学系と、 該照明光学系で照明された半導体パッケージの少なくと
もリード部からの反射光または透過光に基づく光像を撮
像してリード部の画像信号を検出する撮像光学系と、 該撮像光学系で検出されたリード部の画像信号からリー
ド部の先端部及び根元部の位置座標を算出し、この算出
されたリードの先端部及び根元部の位置座標と、リード
部の先端部における分解能とリードの根元部における分
解能の相違に基づく補正が施された判定基準値とを比較
してリードの良否を判定する画像処理装置とを備えたこ
とを特徴とする半導体パッケージの外観検査装置。
8. An illumination optical system for illuminating at least a lead portion of a semiconductor package installed at a predetermined inspection position, and a reflected light or a transmitted light from at least the lead portion of the semiconductor package illuminated by the illumination optical system. An imaging optical system that captures an optical image to detect the image signal of the lead portion, and the position coordinates of the tip and the root portion of the lead portion are calculated from the image signal of the lead portion detected by the imaging optical system. The quality of the lead is judged by comparing the position coordinates of the tip and the root of the lead, and the reference value corrected based on the difference between the resolution at the tip of the lead and the resolution at the root of the lead. And an image processing device for controlling the appearance of a semiconductor package.
【請求項9】前記画像処理装置において、前記半導体パ
ッケージの種類に応じて前記リードの先端部における分
解能とリードの根元部における分解能との相違を変化さ
せて補正するように構成したことを特徴とする請求項7
または8記載の半導体パッケージの外観検査装置。
9. The image processing apparatus is configured to change and correct the difference between the resolution at the tip of the lead and the resolution at the root of the lead according to the type of the semiconductor package. Claim 7
Alternatively, the semiconductor package visual inspection apparatus according to the item 8.
【請求項10】前記画像処理装置において、前記半導体
パッケージの種類に応じて前記判定基準を変えるように
構成したことを特徴とする請求項7または8記載の半導
体パッケージの外観検査装置。
10. The appearance inspection apparatus for a semiconductor package according to claim 7, wherein the image processing apparatus is configured to change the determination standard according to the type of the semiconductor package.
【請求項11】前記画像処理装置において、種類に応じ
て用意された処理プログラムの中からガルウィング型に
適応する処理プログラムを選択するように構成したこと
を特徴とする請求項7または8記載の半導体パッケージ
の外観検査装置。
11. The semiconductor device according to claim 7, wherein the image processing apparatus is configured to select a processing program adapted to the gull-wing type from processing programs prepared according to types. Package visual inspection device.
【請求項12】前記照明光学系は、リング状の照明光学
系で構成したことを特徴とする請求項7または8記載の
半導体パッケージの外観検査装置。
12. The appearance inspection apparatus for a semiconductor package according to claim 7, wherein the illumination optical system is a ring-shaped illumination optical system.
JP7200860A 1995-08-07 1995-08-07 Method and apparatus for visual inspection of semiconductor package Pending JPH0949715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7200860A JPH0949715A (en) 1995-08-07 1995-08-07 Method and apparatus for visual inspection of semiconductor package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7200860A JPH0949715A (en) 1995-08-07 1995-08-07 Method and apparatus for visual inspection of semiconductor package

Publications (1)

Publication Number Publication Date
JPH0949715A true JPH0949715A (en) 1997-02-18

Family

ID=16431432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7200860A Pending JPH0949715A (en) 1995-08-07 1995-08-07 Method and apparatus for visual inspection of semiconductor package

Country Status (1)

Country Link
JP (1) JPH0949715A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009170536A (en) * 2008-01-11 2009-07-30 Fuji Mach Mfg Co Ltd Electrical circuit component height direction information acquisition method and system
CN112509935A (en) * 2019-09-13 2021-03-16 株式会社东芝 Semiconductor inspection device and inspection method for semiconductor device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009170536A (en) * 2008-01-11 2009-07-30 Fuji Mach Mfg Co Ltd Electrical circuit component height direction information acquisition method and system
CN112509935A (en) * 2019-09-13 2021-03-16 株式会社东芝 Semiconductor inspection device and inspection method for semiconductor device
CN112509935B (en) * 2019-09-13 2023-11-21 株式会社东芝 Semiconductor inspection device and inspection method of semiconductor device

Similar Documents

Publication Publication Date Title
US7026832B2 (en) Probe mark reading device and probe mark reading method
US5652658A (en) Grid array inspection system and method
JPH09504401A (en) Method and apparatus for ball bond inspection system
JPS58215541A (en) Automatic optical inspection method
JPH07111998B2 (en) Wire bonding inspection device
JP2010091361A (en) Method and device for inspecting image
JPH0949715A (en) Method and apparatus for visual inspection of semiconductor package
JPH095255A (en) Defect inspection method and apparatus, and manufacturing method of element for thin film magnetic head
JPH07312382A (en) Probe device
JP4357666B2 (en) Pattern inspection method and apparatus
JPS61193007A (en) Inspection method for rod-shaped objects
JP3447538B2 (en) Pattern inspection method
JPH0372203A (en) Checking method of outer appearance of soldering part
JP2929828B2 (en) IC lead inspection method and device
JPH07104136B2 (en) Terminal tilt detection method
JPH0968415A (en) Soldering method to printed circuit board, its inspection method and its apparatus
CN120198629A (en) Line scanning laser 3D camera data processing method
JP3043530B2 (en) Dot pattern inspection equipment
US20070217675A1 (en) Z-axis optical detection of mechanical feature height
JPS61252653A (en) Inspecting method for lead frame
JP3400797B2 (en) Circuit pattern defect inspection method and apparatus
JP2545570B2 (en) Inclination inspection method for connecting lines by image processing
JP3480643B2 (en) Pattern inspection method
JP3351313B2 (en) Shape inspection method and device
JP3171949B2 (en) Wire bonding inspection method