JP3290034B2 - Chip component recognition method and apparatus - Google Patents

Chip component recognition method and apparatus

Info

Publication number
JP3290034B2
JP3290034B2 JP22323494A JP22323494A JP3290034B2 JP 3290034 B2 JP3290034 B2 JP 3290034B2 JP 22323494 A JP22323494 A JP 22323494A JP 22323494 A JP22323494 A JP 22323494A JP 3290034 B2 JP3290034 B2 JP 3290034B2
Authority
JP
Japan
Prior art keywords
pin
center
chip component
corner
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP22323494A
Other languages
Japanese (ja)
Other versions
JPH0818290A (en
Inventor
正信 宮本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Motor Co Ltd
Original Assignee
Yamaha Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Motor Co Ltd filed Critical Yamaha Motor Co Ltd
Priority to JP22323494A priority Critical patent/JP3290034B2/en
Publication of JPH0818290A publication Critical patent/JPH0818290A/en
Application granted granted Critical
Publication of JP3290034B2 publication Critical patent/JP3290034B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Supply And Installment Of Electrical Components (AREA)
  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、実装機の部品装着用ヘ
ッドに吸着されたチップ部品を撮像した画像から、チッ
プ部品の位置及び傾きを求めるチップ部品の認識方法及
び同装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for recognizing a chip component for obtaining the position and inclination of the chip component from an image of the chip component adsorbed on a component mounting head of a mounting machine. .

【0002】[0002]

【従来の技術】従来、プリント基板にトランジスタ等の
チップ部品を装着する実装機において、チップ部品装着
位置の補正等のため、部品装着用ヘッドに吸着されたチ
ップ部品を撮像し、その画像から、チップ部品の位置及
び傾きを求めるようにしたチップ部品の認識装置は知ら
れている。
2. Description of the Related Art Conventionally, in a mounting machine for mounting a chip component such as a transistor on a printed circuit board, a chip component adsorbed on a component mounting head is imaged in order to correct a chip component mounting position and the like. 2. Description of the Related Art A chip component recognizing apparatus that obtains the position and inclination of a chip component is known.

【0003】すなわち、上記実装機は、吸着ノズルを有
する部品装着用ヘッドにより、部品供給部からチップ部
品を吸着して、位置決めされているプリント基板上に移
送し、プリント基板に装着する作業を自動的に行うよう
になっている。この実装機に装備される認識装置は、上
記部品装着用ヘッドに吸着されたチップ部品を撮像する
CCDカメラ等の撮像手段を有するとともに、この撮像
手段により撮像されたチップ部品の画像を取り込んでこ
れを処理する画像処理手段を備えており、この画像処理
手段によりチップ部品の位置及び傾きが求められ、これ
に基づいてプリント基板に対するチップ部品装着位置の
補正等が行われるようになっている。
[0003] That is, the above mounting machine automatically picks up a chip component from a component supply unit by a component mounting head having a suction nozzle, transfers the chip component to a positioned printed board, and mounts the chip component on the printed board. It is supposed to be done. The recognition device mounted on the mounting machine has an image pickup means such as a CCD camera for picking up an image of the chip component adsorbed on the component mounting head, and captures an image of the chip component picked up by the image pickup means. The position and inclination of the chip component are obtained by this image processing means, and the correction of the mounting position of the chip component with respect to the printed circuit board is performed based on this.

【0004】上記画像処理手段によるチップ部品の認識
方法としては、上記チップ部品の画像を表した処理ウイ
ンド内をX軸方向(横方向)またはY軸方向(縦方向)
の走査線に沿って走査し、この走査によってチップ部品
のエッジ等を調べ、これに基づいてチップ部品の位置及
び傾きを求めるようにしている。
As a method of recognizing a chip component by the image processing means, a processing window representing an image of the chip component is moved in an X-axis direction (horizontal direction) or a Y-axis direction (vertical direction).
Are scanned along the scanning line, and the edge and the like of the chip component are examined by this scanning, and the position and the inclination of the chip component are obtained based on this.

【0005】上記走査に基づいてチップ部品の位置及び
傾きを求める方法は種々考えられており、例えば、画像
が長方形もしくはこれに準じた形状となるチップ部品を
認識するような場合には、処理ウインド内におけるX軸
方向またはY軸方向の平行な多数の走査線に沿ってそれ
ぞれ濃度値の変化を調べ、その濃度値変化点の位置関係
から直線部分を求めることによりチップ部品の側辺部を
検出し、その側辺部の位置、角度等のデータからチップ
部品の重心位置及び傾きを求める方法がある。
Various methods for obtaining the position and inclination of the chip component based on the above scanning have been considered. For example, in the case of recognizing a chip component whose image has a rectangular shape or a similar shape, a processing window is used. The change in density value is examined along a number of parallel scanning lines in the X-axis direction or the Y-axis direction, and a side portion of the chip component is detected by obtaining a straight line portion from the positional relationship of the density value change points. Then, there is a method of calculating the position and inclination of the center of gravity of the chip component from data such as the position and angle of the side portion.

【0006】また、例えば特開平4−332199号公
報に示されるように、四方側辺部に多数のリードを有す
るチップ部品を認識するような場合に、処理ウインド内
におけるX軸方向またはY軸方向の走査線のうちで同一
側辺部にあるリード列を横切る走査線を抽出し、この走
査線に沿った濃度値のデータに基づいてリード列の中心
を求め、このようにして各側辺部について調べたリード
列の中心から、チップ部品の重心位置及び傾きを求める
ようにした方法も知られている。
For example, as disclosed in Japanese Patent Application Laid-Open No. 4-332199, when a chip component having a large number of leads on four sides is recognized, an X-axis direction or a Y-axis direction in a processing window is required. Of the scan lines crossing the lead row on the same side, the center of the lead row is obtained based on the density value data along this scan line, and thus each side is A method is also known in which the position of the center of gravity and the inclination of the chip component are obtained from the center of the lead row that has been examined.

【0007】[0007]

【発明が解決しようとする課題】上記のように、X軸方
向またはY軸方向の走査線による走査に基づいてチップ
部品の重心位置及び傾きを求める従来の方法では、極小
チップ部品を認識する場合のようにチップ部品の画像が
極めて小さい場合に、誤差が生じ易く、精度を高めるこ
とが難しい。
As described above, according to the conventional method for obtaining the position and inclination of the center of gravity of a chip component based on scanning by a scanning line in the X-axis direction or the Y-axis direction, when a very small chip component is recognized. In the case where the image of the chip component is extremely small as described above, an error is likely to occur, and it is difficult to increase the accuracy.

【0008】具体的に説明すると、上記の2つの方法の
うちの前者の方法によると、チップ部品の画像が小さい
場合に、X軸方向またはY軸方向の走査に基づいて求め
る直線成分の精度が充分に得られにくく、このため、チ
ップ部品の側辺部の検出とそれに基づく重心位置及び傾
きの算出に誤差が生じ易くなる。また、後者の特開平4
−332199号公報に示された方法によると、画面上
においてリードが小さい場合に、リード列を横切るよう
な走査線を抽出することが容易でなく、かつ抽出走査線
の位置にばらつきが生じ易く、これにより測定値がばら
ついて誤差が生じ易くなる。
More specifically, according to the former of the above two methods, when the image of the chip component is small, the accuracy of the linear component obtained based on the scanning in the X-axis direction or the Y-axis direction is small. Therefore, it is difficult to obtain the chip component sufficiently, so that an error easily occurs in the detection of the side portion of the chip component and the calculation of the position of the center of gravity and the inclination based on the detection. In addition, Japanese Patent Laid-Open No.
According to the method disclosed in JP-A-332199, it is not easy to extract a scanning line that crosses a lead row when the lead is small on the screen, and the position of the extracted scanning line is apt to vary. As a result, measured values vary, and errors tend to occur.

【0009】本発明は、上記の事情に鑑み、チップ部品
の画像が小さい場合でも、容易に、かつ高精度にチップ
部品の位置等を求めることができるチップ部品の認識方
法及び同装置を提供することを目的とする。
The present invention has been made in view of the above circumstances, and provides a chip component recognition method and apparatus which can easily and accurately determine the position of a chip component even when the image of the chip component is small. The purpose is to:

【0010】[0010]

【課題を解決するための手段】請求項1に係る発明は、
実装機の部品装着用ヘッドに吸着されたチップ部品を撮
像した後、その画像を処理ウインド内に表わし、この処
理ウインド内の走査に基づき、チップ部品の位置及び傾
きを求めるチップ部品の認識方法であって、上記処理ウ
インド内を走査する走査線を、処理ウインドのX軸方向
及びY軸方向に対して傾斜した方向に設定し、この走査
線を平行移動させつつ走査線上の画像データを判別し
て、上記走査線がチップ部品のコーナー部の頂点を挟む
2辺を横切ったときにその2辺上の各位置を、濃度値と
所定の閾値とを比較して検出することによりチップ部品
のコーナー部を検出し、このコーナー部の検出データに
基づき、チップ部品の位置及び傾きを求めるようにした
ものである。なお、上記走査線はX軸方向及びY軸方向
に対して45°に設定することが好ましい。
The invention according to claim 1 is
After imaging the chip component adsorbed on the component mounting head of the mounting machine, the image is displayed in the processing window, and based on the scanning in the processing window, the chip component recognition method for determining the position and inclination of the chip component is performed. A scanning line for scanning the inside of the processing window is set in a direction inclined with respect to the X-axis direction and the Y-axis direction of the processing window, and image data on the scanning line is determined while moving the scanning line in parallel. When the scanning line crosses two sides sandwiching the apex of the corner of the chip component, each position on the two sides is detected by comparing the density value with a predetermined threshold value, thereby detecting the corner of the chip component. The position and the inclination of the chip component are determined based on the detected data of the corner portion. Preferably, the scanning line is set at 45 ° with respect to the X-axis direction and the Y-axis direction.

【0011】請求項2に係る発明は、前記チップ部品の
コーナー部の検出を、前記走査線がチップ部品のコーナ
ー部の頂点を挟む2辺を横切ったときにその2辺上の各
位置を検出することに加えて、前記2辺上の各位置より
チップ部品の中心側であって、前記走査線の方向に垂直
な方向における2位置の画像データを判別することによ
り行うようにしたものである。
According to a second aspect of the present invention, the corner part of the chip component is detected by detecting each position on the two sides when the scanning line crosses two sides sandwiching the vertex of the corner part of the chip part. In addition to this, image data at two positions in the direction perpendicular to the direction of the scanning line on the center side of the chip component from each position on the two sides is determined. .

【0012】請求項3に係る発明は、請求項1または2
の方法において、画像が長方形もしくはこれに準じる形
状となるチップ部品を認識対象とし、上記コーナー部の
検出をチップ部品の上記処理ウインド上における4つの
コーナー部における左上コーナー部及び右下コーナー部
に対する走査線の方向を右上がり斜めに設定し、左下コ
ーナー部及び右上コーナー部に対する走査線の方向を右
下がり斜めに設定して順次行なうようにし、チップ部品
の位置及び傾きを求める処理としては、各コーナー部の
前記2位置の検出データのうち、チップ部品の上側にあ
る一側辺部とこれとは反対側の側辺部とにおける各左側
の検出データに基づいて左側辺部プロフィール測定ライ
ンと、各右側の検出データに基づいて右側辺部プロフィ
ール測定ラインとを求め、求めたこれら左、右側辺部プ
ロフィール測定ラインの中心点同士を結ぶ中心線と、こ
の中心線の中心点とから、チップ部品の重心及び傾きを
求めるか、或いは、各コーナー部の前記2位置の検出デ
ータのうち、チップ部品の左側にある一側辺部とこれと
は反対側の側辺部とにおける各上側の検出データに基づ
いて上側辺部プロフィール測定ラインと、各下側の検出
データに基づいて下側辺部プロフィール測定ラインとを
求め、求めたこれら上、下側辺部プロフィール測定ライ
ンの中心点同士を結ぶ中心線と、この中心線の中心点と
から、チップ部品の重心及び傾きを求めるようにしたも
のである。
The invention according to claim 3 is the invention according to claim 1 or 2
In the method of (1), a chip component whose image is a rectangle or a shape similar thereto is to be recognized, and the detection of the corner portion is performed by scanning the chip component with respect to the upper left corner portion and the lower right corner portion of the four corners on the processing window. The direction of the line is set obliquely upward to the right, and the scanning line direction for the lower left corner and the upper right corner is set obliquely to the lower right, so that the scanning is performed sequentially. The left side profile measurement line based on the left side detection data of one side part on the upper side of the chip component and the opposite side part of the detection data at the two positions of the part, A right side profile measurement line is obtained based on the right side detection data, and the obtained left and right side profile measurement lines are obtained. The center of gravity and the inclination of the chip component are determined from the center line connecting the center points of the chip components and the center point of the center line, or the detection data of the two positions at each corner is located on the left side of the chip component. An upper side profile measurement line based on each upper side detection data at a certain one side and an opposite side side, and a lower side profile measurement line based on each lower side detection data. The center of gravity and inclination of the chip component are obtained from the obtained center line connecting the center points of the upper and lower side profile measurement lines and the center point of this center line.

【0013】請求項4に係る発明は、請求項1または2
の方法において、画像が長方形もしくはこれに準じる形
状となるチップ部品を認識対象とし、上記コーナー部の
検出をチップ部品の上記処理ウインド上における4つの
コーナー部における左上コーナー部及び右下コーナー部
に対する走査線の方向を右上がり斜めに設定し、左下コ
ーナー部及び右上コーナー部に対する走査線の方向を右
下がり斜めに設定して順次行なうようにし、チップ部品
の位置及び傾きを求める処理としては、各コーナー部の
前記2位置の検出データのうち、チップ部品の上側にあ
る一側辺部とこれとは反対側の側辺部とにおける各左側
の検出データに基づいて左側辺部プロフィール測定ライ
ンと、各右側の検出データに基づいて右側辺部プロフィ
ール測定ラインとを求め、上記左、右側辺部プロフィー
ル測定ライン上でそれぞれの中心点より上下両側に所定
量だけオフセットした2点ずつの特定点を求める処理
と、上記左、右側辺部プロフィール測定ラインと交差し
てそれぞれの上側の特定点を通る直線と、それぞれの下
側の特定点を通る直線とを設定して、これら両直線上の
両側エッジ点の中点を求め、この各中点に基づいてチッ
プ部品の重心及び傾きを求めるか、或いは、各コーナー
部の前記2位置の検出データのうち、チップ部品の左側
にある一側辺部とこれとは反対側の側辺部とにおける各
上側の検出データに基づいて上側辺部プロフィール測定
ラインと、各下側の検出データに基づいて下側辺部プロ
フィール測定ラインとを求め、上記上、下側辺部プロフ
ィール測定ライン上でそれぞれの中心点より左右両側に
所定量だけオフセットした2点ずつの特定点を求める処
理と、上記上、下側辺部プロフィール測定ラインと交差
してそれぞれの左側の特定点を通る直線と、それぞれの
右側の特定点を通る直線とを設定して、これら両直線上
の両側エッジ点の中点を求め、この各中点に基づいてチ
ップ部品の重心及び傾きを求めるようにしたものであ
る。
[0013] The invention according to claim 4 is the invention according to claim 1 or 2.
In the method of (1), a chip component whose image is a rectangle or a shape similar thereto is to be recognized, and the detection of the corner portion is performed by scanning the chip component with respect to the upper left corner portion and the lower right corner portion of the four corners on the processing window. The direction of the line is set obliquely upward to the right, and the scanning line direction for the lower left corner and the upper right corner is set obliquely to the lower right, so that the scanning is performed sequentially. The left side profile measurement line based on the left side detection data of one side part on the upper side of the chip component and the opposite side part of the detection data at the two positions of the part, The right side profile measurement line and the right side profile measurement line are obtained based on the detection data on the right side. A process of obtaining two specific points offset by a predetermined amount on the upper and lower sides from the respective center points, and a straight line that intersects the left and right side profile measurement lines and passes through each upper specific point, A straight line passing through each lower specific point is set, the midpoint of both side edge points on these straight lines is obtained, and the center of gravity and inclination of the chip component are obtained based on each midpoint, or Among the detection data at the two positions of the corner portion, an upper side profile measurement line based on each upper side detection data at one side portion on the left side of the chip component and the opposite side portion, A lower side profile measurement line is obtained based on the detection data of each lower side, and two points offset by a predetermined amount to the left and right sides from the respective center points on the upper and lower side profile measurement lines are obtained. A process for obtaining a fixed point, a straight line passing through the upper and lower side profile measurement lines and passing through each left specific point, and a straight line passing through each right specific point are set, and on both these straight lines Of the two side edge points are obtained, and the center of gravity and the inclination of the chip component are obtained based on the respective midpoints.

【0014】請求項5に係る発明は、請求項1または2
の方法において、上下両側辺部に複数のピンを有するチ
ップ部品を認識対象とする場合は、上記コーナー部の検
出をチップ部品の上側辺部におけるピン列の左端ピンの
外側コーナー部及び下側辺部におけるピン列の右端ピン
の外側コーナー部に対する走査線の方向を右上がり斜め
に設定し、チップ部品の上側辺部におけるピン列の右端
ピンの外側コーナー部及び下側辺部におけるピン列の左
端ピンの外側コーナー部に対する走査線の方向を右下が
り斜めに設定して行うようにし、チップ部品の位置及び
傾きを求める処理としては、上記上側辺部における右端
ピンの外側コーナー部の上記2位置の検出データのうち
の右側にある検出データと左端ピンの外側コーナー部の
上記2位置の検出データのうちの左側にある検出データ
とに基づいて上側のピン列方向のプロフィール測定ライ
ンを求め、求められた上側のピン列方向のプロフィール
測定ライン上の左右端の各ピンの中心点の位置を求める
とともに、上記下側辺部における右端ピンの外側コーナ
ー部の上記2位置の検出データのうちの右側にある検出
データと左端ピンの外側コーナー部の上記2位置の検出
データのうちの左側にある検出データとに基づいて下側
のピン列方向のプロフィール測定ラインを求め、求めら
れた下側のピン列方向のプロフィール測定ライン上の左
右端の各ピンの中心点の位置を求める処理と、上側左端
と上側右端における各ピンの中心点に対応する各ピンの
エッジ点の位置を求めて、この各ピンのエッジ点に基づ
いて上側辺部におけるピン列の中心を求めるとともに、
下側左端と下側右端における各ピンの中心点に対応する
各ピンのエッジ点の位置を求めて、この各ピンのエッジ
点に基づいて下側辺部におけるピン列の中心を求める処
理と、これら上側辺部におけるピン列の中心と下側辺部
におけるピン列の中心との中点とこれら2つのピン列中
心を結ぶ直線の傾きとを、チップ部品の重心及び傾きと
して求める処理とを行い、一方、左右両側辺部に複数の
ピンを有するチップ部品を認識対象とする場合は、上記
コーナー部の検出をチップ部品の左側辺部におけるピン
列の上端ピンの外側コーナー部及び右側辺部におけるピ
ン列の下端ピンの外側コーナー部に対する走査線の方向
を右上がり斜めに設定し、チップ部品の左側辺部におけ
るピン列の下端ピンの外側コーナー部及び右側辺部にお
けるピン列の上端ピンの外側コーナー部に対する走査線
の方向を右下がり斜めに設定して行うようにし、チップ
部品の位置及び傾きを求める処理としては、上記左側辺
部における下端ピンの外側コーナー部の上記2位置の検
出データのうちの下側にある検出データと上端ピンの外
側コーナー部の上記2位置の検出データのうちの上側に
ある検出データとに基づいて左側のピン列方向のプロフ
ィール測定ラインを求め、求められた左側のピン列方向
のプロフィール測定ライン上の上下端の各ピンの中心点
の位置を求めるとともに、上記右側辺部における下端ピ
ンの外側コーナー部の上記2位置の検出データのうちの
下側にある検出データと上端ピンの外側コーナー部の上
記2位置の検出データのうちの上側にある検出データと
に基づいて右側のピン列方向のプロフィール測定ライン
を求め、求められた右側のピン列方向のプロフィール測
定ライン上の上下端の各ピンの中心点の位置を求める処
理と、左側上端と左側下端における各ピンの中心点に対
応する各ピンのエッジ点の位置を求めて、この各ピンの
エッジ点に基づいて左側辺部におけるピン列の中心を求
めるとともに、右側上端と右側下端における各ピンの中
心点に対応する各ピンのエッジ点の位置を求めて、この
各ピンのエッジ点に基づいて右側辺部におけるピン列の
中心を求める処理と、これら左側辺部におけるピン列の
中心と右側辺部におけるピン列の中心との中点とこれら
2つのピン列中心を結ぶ直線の傾きとを、チップ部品の
重心及び傾きとして求める処理とを行うようにしたもの
である。
The invention according to claim 5 is the invention according to claim 1 or 2
In the method described above, when a chip component having a plurality of pins on both upper and lower side portions is to be recognized, the detection of the corner portion is performed by detecting the outer corner portion and the lower side portion of the left end pin of the pin row in the upper side portion of the chip component. The direction of the scanning line with respect to the outer corner of the right end pin of the pin row in the part is set obliquely upward to the right, and the outer edge of the right end pin of the pin row on the upper side of the chip component and the left end of the pin row on the lower side The direction of the scanning line with respect to the outer corner portion of the pin is set to be inclined downward and to the right, and the processing for obtaining the position and inclination of the chip component includes the above two positions of the outer corner portion of the right end pin in the upper side portion. Upper side based on the detection data on the right side of the detection data and the detection data on the left side of the above two positions of the detection data at the outer corner of the left end pin. Find the profile measurement line in the pin row direction, find the position of the center point of each pin on the left and right ends on the profile measurement line in the upper pin row direction, and find the outer corner of the right end pin in the lower side. The lower pin row direction profile measurement is performed based on the detection data on the right side of the detection data at the two positions and the detection data on the left side of the detection data at the outer corner of the left end pin at the two positions. The process of obtaining the line, obtaining the position of the center point of each pin on the left and right ends on the obtained lower pin row direction profile measurement line, and the process of obtaining each pin corresponding to the center point of each pin at the upper left end and upper right end Of the pin row in the upper side based on the edge point of each pin,
A process of obtaining the position of the edge point of each pin corresponding to the center point of each pin at the lower left end and the lower right end, and obtaining the center of the pin row in the lower side based on the edge point of each pin, A process of calculating the center of the center of the pin row on the upper side and the center of the pin row on the lower side and the inclination of a straight line connecting the centers of the two pin rows as the center of gravity and the inclination of the chip component is performed. On the other hand, when a chip component having a plurality of pins on both left and right side portions is to be recognized, the detection of the corner portion is performed at the outer corner portion and the right side portion of the upper end pin of the pin row on the left side portion of the chip component. The direction of the scanning line with respect to the outer corners of the lower end pins of the pin row is set obliquely upward and to the right, and the outer corners of the lower end pins of the pin row on the left side and the upper ends of the pin rows on the right side of the chip component The direction of the scanning line with respect to the outer corner portion of the pin is set obliquely to the lower right, and the processing for obtaining the position and the inclination of the chip component includes the two positions of the outer corner portion of the lower end pin on the left side portion. A left side pin row direction profile measurement line is determined based on the lower detection data of the detection data and the upper detection data of the two positions at the outer corners of the upper end pin. The position of the center point of each of the upper and lower pins on the profile measurement line in the direction of the left pin row is determined, and the lower side of the detection data of the two positions of the outer corners of the lower pin on the right side In the pin row direction on the right side based on the detection data at A process for determining the center point of each pin at the upper and lower ends on the profile measurement line in the direction of the pin row on the right side, and a process corresponding to the center point of each pin at the upper left and lower left ends. The position of the edge point of the pin is determined, the center of the pin row on the left side is determined based on the edge point of each pin, and the edge point of each pin corresponding to the center point of each pin at the upper right end and the lower right end And the process of calculating the center of the pin row on the right side based on the edge point of each pin, and the midpoint between the center of the pin row on the left side and the center of the pin row on the right side And the inclination of a straight line connecting the centers of these two pin rows are obtained as the center of gravity and the inclination of the chip component.

【0015】請求項6に係る発明は、請求項1または2
の方法において、少なくとも上下の一方である一側辺部
に複数のピンを有するチップ部品を認識対象とする場合
は、上記コーナー部の検出をチップ部品の上記一側辺部
におけるピン列の左端ピンの外側コーナー部に対する走
査線の方向を右上がり斜めまたは右下がり斜めに設定
し、右端ピンの外側コーナー部に対する走査線の方向を
右下がり斜めまたは右上がり斜めに設定して行うように
し、チップ部品の位置及び傾きを求める処理としては、
上記側辺部における右端ピンの外側コーナー部の上記2
位置の検出データのうちの右側にある検出データと左端
ピンの外側コーナー部の上記2位置の検出データのうち
の左側にある検出データとに基づいてピン列方向のプロ
フィール測定ラインを求め、求められたピン列方向のプ
ロフィール測定ライン上の左右端の各ピンの中心点の位
置を求め、この各ピンの中心点に対応する各ピンのエッ
ジ点の位置を求める処理と、この各ピンのエッジ点の配
置に基づいてチップ部品の傾きを求める処理と、上記各
ピンのエッジ点に基づいて一側辺部側のエッジにおける
ピン列の中心を求め、この一側辺部のエッジにおけるピ
ン列の中心と上記チップ部品の傾きとに基づいて求めた
中心線上の濃度値のプロフィールから、この中心線上の
他側辺部側のエッジ点を検出し、上記一側辺部のエッジ
におけるピン列の中心と上記中心線上の他側辺部側のエ
ッジ点とからチップ部品の重心を求める処理とを行い、
一方、少なくとも左右の一方である一側辺部に複数のピ
ンを有するチップ部品を認識対象とする場合は、上記コ
ーナー部の検出をチップ部品の上記一側辺部におけるピ
ン列の上端ピンの外側コーナー部に対する走査線の方向
を右上がり斜めまたは右下がり斜めに設定し、下端ピン
の外側コーナー部に対する走査線の方向を右下がり斜め
または右上がり斜めに設定して行うようにし、チップ部
品の位置及び傾きを求める処理としては、上記側辺部に
おける下端ピンの外側コーナー部の上記2位置の検出デ
ータのうちの下側にある検出データと上端ピンの外側コ
ーナー部の上記2位置の検出データのうちの上側にある
検出データとに基づいてピン列方向のプロフィール測定
ラインを求め、求められたピン列方向のプロフィール測
定ライン上の上下端の各ピンの中心点の位置を求め、こ
の各ピンの中心点に対応する各ピンのエッジ点の位置を
求める処理と、この各ピンのエッジ点の配置に基づいて
チップ部品の傾きを求める処理と、上記各ピンのエッジ
点に基づいて一側辺部側のエッジにおけるピン列の中心
を求め、この一側辺部のエッジにおけるピン列の中心と
上記チップ部品の傾きとに基づいて求めた中心線上の濃
度値のプロフィールから、この中心線上の他側辺部側の
エッジ点を検出し、上記一側辺部のエッジにおけるピン
列の中心と上記中心線上の他側辺部側のエッジ点とから
チップ部品の重心を求める処理とを行うようにしたもの
である。
The invention according to claim 6 is the invention according to claim 1 or 2
In the method, when a chip component having a plurality of pins on at least one of the upper and lower one side portions is to be recognized, the detection of the corner portion is performed by detecting the left end pin of the pin row in the one side portion of the chip component. The direction of the scanning line with respect to the outer corner portion of the right side pin is set to be diagonally upward or diagonally right, and the direction of the scanning line with respect to the outer corner portion of the right end pin is set to be diagonally right or diagonally right. The process for determining the position and inclination of
The above 2 of the outer corner portion of the right end pin in the side portion
The profile measurement line in the pin row direction is determined based on the detection data on the right side of the position detection data and the detection data on the left side of the two position detection data at the outer corner of the left end pin. Processing of determining the position of the center point of each pin on the left and right ends on the profile measurement line in the direction of the pin row, and determining the position of the edge point of each pin corresponding to the center point of each pin; A process of obtaining the inclination of the chip component based on the arrangement of the pins, and a process of obtaining the center of the pin array at the edge on one side based on the edge point of each pin, and obtaining the center of the pin array at the edge of the one side. From the profile of the density value on the center line obtained based on the inclination of the chip component and the inclination of the chip component, an edge point on the other side on the center line is detected, and the pin row at the edge of the one side is detected. From an edge point of the heart and the other side portion side of the center line performs a process of obtaining the centroid of the chip component,
On the other hand, when a chip component having a plurality of pins on at least one of the left and right sides is to be recognized, the detection of the corner portion is performed outside the upper end pin of the pin row in the one side portion of the chip component. The direction of the scanning line with respect to the corner portion is set to be diagonally upward or diagonally right, and the direction of the scanning line with respect to the outer corner portion of the lower end pin is set to be diagonally diagonally right or diagonally right. And the process of obtaining the inclination include the detection data at the lower side of the detection data at the outer corners of the lower end pin and the detection data at the two positions at the outer corners of the upper end pin in the side edges. The profile measurement line in the pin row direction is obtained based on the detection data on the upper side of the A process of obtaining the position of the center point of each pin, and obtaining a position of an edge point of each pin corresponding to the center point of each pin, and a process of obtaining the inclination of the chip component based on the arrangement of the edge points of each pin And the center of the pin array at the edge on one side based on the edge point of each pin, and the center of the pin array at the edge of the one side and the inclination of the chip component. From the density value profile on the center line, the edge point on the other side on the center line is detected, and the center of the pin row at the edge on the one side and the edge point on the other side on the center line are detected. Thus, the processing for obtaining the center of gravity of the chip component is performed.

【0016】請求項7に係る発明のチップ部品の認識装
置は、実装機の部品装着用ヘッドに吸着されたチップ部
品を撮像する撮像手段と、この撮像手段により撮像され
たチップ部品の画像を記憶する画像記憶手段と、この画
像記憶手段から画像を読み出し、この画像を表す処理ウ
インド内を走査するとともにそれに基づく演算処理を行
う処理手段とを備え、この処理手段は、上記処理ウイン
ド内を走査する走査線を処理ウインドのX軸方向及びY
軸方向に対して傾斜した方向に設定し、この走査線を平
行移動させつつ走査線上の画像の濃度値を判別して、走
査線がチップ部品のコーナー部の頂点を挟む2辺を横切
ることによって上記濃度値が変化した2辺上の各位置
を、その濃度値と所定の閾値とを比較して検出するコー
ナー部検出手段と、このコーナー部の検出データに基づ
いてチップ部品の重心位置及び傾きを算出する演算手段
とを有するものである。
According to a seventh aspect of the present invention, there is provided an apparatus for recognizing a chip component, comprising: an image pickup device for picking up an image of a chip component adsorbed on a component mounting head of a mounting machine; and an image of the chip component picked up by the image pickup device. Image reading means, and an image reading means for reading out the image from the image storing means, scanning the processing window representing the image, and performing an arithmetic processing based on the image. The processing means scans the processing window. Scan lines are processed in the X-axis direction and Y direction of the window.
By setting the direction inclined with respect to the axial direction, determining the density value of the image on the scanning line while moving the scanning line in parallel, the scanning line crosses two sides sandwiching the vertex of the corner of the chip component. A corner detecting means for detecting each position on the two sides where the density value has changed by comparing the density value with a predetermined threshold value; and a center of gravity and inclination of the chip component based on the detected data of the corner. And calculating means for calculating.

【0017】[0017]

【作用】上記請求項1に係る発明の方法によると、上記
処理ウインドのX軸方向及びY軸方向に対して傾斜した
方向の走査により、処理ウインド内の画像におけるチッ
プ部品のコーナー部が容易に、かつ確実に検出される。
そして、このコーナー部の検出に基づき、チップ部品の
重心位置及び傾きを精度良く求めることが可能となる。
とくに、走査線をX軸方向及びY軸方向に対して45°
に設定すれば、走査線の設定及びこの走査線に沿った走
査も容易である。また、チップ部品のコーナー部の検出
は、上記請求項2のように、前記走査線がチップ部品の
コーナー部の頂点を挟む2辺を横切ったときにその2辺
上の各位置を検出することに加えて、前記2辺上の各位
置よりチップ部品の中心側であって、前記走査線の方向
に垂直な方向における2位置の画像データを判別するよ
うにしてもよい。このようにした場合には、ノイズによ
る誤検出の防止を図り得る。
According to the method of the present invention, the corner of the chip component in the image in the processing window can be easily formed by scanning the processing window in a direction inclined with respect to the X-axis direction and the Y-axis direction. , And is reliably detected.
Then, based on the detection of the corner portion, the position and inclination of the center of gravity of the chip component can be accurately obtained.
Particularly, the scanning line is set at 45 ° with respect to the X-axis direction and the Y-axis direction.
, Setting of the scanning line and scanning along the scanning line are also easy. Further, in the detection of the corner part of the chip part, when the scanning line crosses two sides sandwiching the vertex of the corner part of the chip part, each position on the two sides is detected. In addition, image data at two positions in the direction perpendicular to the direction of the scanning line on the center side of the chip component from the positions on the two sides may be determined. In this case, erroneous detection due to noise can be prevented.

【0018】上記請求項3に係る発明の方法によると、
画像が長方形もしくはこれに準じる形状となるチップ部
品を認識対象とする場合に、上記のような斜め方向の走
査によってチップ部品の4つのコーナー部が検出され、
その検出データに基づき、左右もしくは上下の側辺部に
おいて側辺に沿った方向のプロフィール測定ラインが適
正に定められる。そして、このプロフィール測定ライン
に沿ったプロフィールに基づいて両側辺部における中心
点が求められ、この両側辺部の中心点から求められる中
心線とこの中心線上のプロフィールとに基づき、チップ
部品の重心及び傾きが求められる。この場合に、上記プ
ロフィール測定ラインが適正に定められることに伴い、
上記のようにして求められるチップ部品の重心及び傾き
の精度も高められる。
According to the method of the third aspect of the present invention,
When a chip component whose image has a rectangular shape or a similar shape is to be recognized, four corners of the chip component are detected by oblique scanning as described above,
Based on the detection data, the profile measurement line in the direction along the side at the left, right, upper, or lower side is properly determined. Then, the center points at both sides are obtained based on the profile along the profile measurement line, and the center of gravity of the chip component and the center line obtained from the center points obtained from the center points at both sides are obtained. A slope is required. In this case, with the profile measurement line being properly defined,
The accuracy of the center of gravity and the inclination of the chip component obtained as described above is also enhanced.

【0019】上記請求項4に係る発明の方法によって
も、左右もしくは上下の側辺部において側辺に沿った方
向のプロフィール測定ラインが適正に定められる。そし
て、このプロフィール測定ライン上の特定点を通る2本
の直線が設定され、その各直線上の中点から、チップ部
品の重心及び傾きが求められることにより、例えば一側
辺部の中間部に凹みがあるような部品でも、上記重心等
が精度良く求められる。
According to the method of the fourth aspect of the present invention, the profile measurement line in the direction along the side at the left or right or upper or lower side is properly determined. Then, two straight lines passing through a specific point on this profile measurement line are set, and the center of gravity and the inclination of the chip component are obtained from the midpoint on each straight line. Even for a component having a dent, the center of gravity and the like are required to be obtained with high accuracy.

【0020】上記請求項5に係る発明の方法によると、
両側辺部に複数のピンを有するチップ部品を認識対象と
する場合に、上記のような斜め方向の走査によってチッ
プ部品の両側辺部におけるピン列の両端の外側コーナー
部が検出され、その検出データに基づき、上記両側辺部
においてピン列方向のプロフィール測定ラインが適正に
定められる。そして、このプロフィール測定ラインに沿
ったプロフィールからこのライン上の各ピンの中心点の
位置が求められ、さらにこの各中心点に対応する各ピン
のエッジ点の位置、両側辺部におけるピン列の中心点の
位置、チップ部品の重心位置及び傾きが順次求められ
る。この場合に、上記プロフィール測定ラインが適正に
定められることに伴い、上記のようにして求められるチ
ップ部品の重心及び傾きの精度も高められる。
According to the method of the fifth aspect of the present invention,
When a chip component having a plurality of pins on both side portions is to be recognized, the outer corner portions at both ends of the pin row on both side portions of the chip component are detected by the oblique scanning as described above, and the detection data is obtained. Based on the above, profile measurement lines in the pin row direction are appropriately determined at the both side portions. Then, the position of the center point of each pin on this line is determined from the profile along this profile measurement line, and the position of the edge point of each pin corresponding to each center point, the center of the pin row on both sides The position of the point, the position of the center of gravity of the chip component, and the inclination are sequentially obtained. In this case, as the profile measurement line is properly determined, the accuracy of the center of gravity and the inclination of the chip component obtained as described above is also increased.

【0021】上記請求項6に係る発明の方法によると、
少なくとも一側辺部に複数のピンを有するチップ部品を
認識対象とする場合に、上記のような斜め方向の走査に
よって上記一側辺部におけるピン列の両端の外側コーナ
ー部が検出され、その検出データに基づき、この側辺部
におけるピン列方向のプロフィール測定ラインが適正に
定められる。そして、このプロフィール測定ラインに沿
ったプロフィールからこのライン上の各ピンの中心点の
位置が求められ、さらにこの各中心点に対応する各ピン
のエッジ点の位置、チップ部品の傾き、一側辺部側のエ
ッジにおけるピン列の中心点の位置、これに対応する他
側辺部側のエッジ点の位置、重心位置が順次求められ
る。この場合に、上記プロフィール測定ラインが適正に
定められることに伴い、上記のようにして求められるチ
ップ部品の重心及び傾きの精度も高められる。
According to the method of the invention according to claim 6,
In the case where a chip component having a plurality of pins on at least one side is to be recognized, the outer corners at both ends of the pin row in the one side are detected by the oblique scanning as described above. Based on the data, the profile measurement line in the pin row direction at this side is properly determined. Then, the position of the center point of each pin on this line is determined from the profile along this profile measurement line, and the position of the edge point of each pin corresponding to each center point, the inclination of the chip component, one side The position of the center point of the pin row at the edge on the side, the position of the corresponding edge point on the other side, and the position of the center of gravity are sequentially obtained. In this case, as the profile measurement line is properly determined, the accuracy of the center of gravity and the inclination of the chip component obtained as described above is also increased.

【0022】上記請求項7に係る発明の装置によると、
上記コーナー部検出手段及び演算手段を含む処理手段に
より、上記画像記憶手段からチップ部品の画像が読み出
されるとともに、この画像につき、斜め方向の走査によ
るコーナー部の検出とその検出データに基づくチップ部
品の重心位置及び傾きの検出とが自動的に行われる。
According to the device of the invention according to claim 7,
An image of the chip part is read from the image storage means by the processing means including the corner part detection means and the arithmetic means, and the corner part is detected from the image by oblique scanning and the chip part is determined based on the detection data. The detection of the position of the center of gravity and the inclination is automatically performed.

【0023】[0023]

【実施例】本発明の実施例を図面に基づいて説明する。An embodiment of the present invention will be described with reference to the drawings.

【0024】図1はチップ部品の認識装置の一実施例を
示している。この図において、1は実装機に装備された
部品装着用ヘッドであって、図外の部品供給部及びプリ
ント基板に対して相対的に移動可能となっており、この
部品装着用ヘッドには吸着ノズル1aが昇降及び回転可
能に設けられている。そして、上記吸着ノズル1aによ
り部品供給部からチップ部品2を吸着した後、上記部品
装着用ヘッド1がプリント基板上に移動し、プリント基
板の所定装着位置にチップ部品2を装着するようになっ
ている。
FIG. 1 shows an embodiment of a chip component recognition apparatus. In this figure, reference numeral 1 denotes a component mounting head mounted on a mounting machine, which is relatively movable with respect to a component supply unit and a printed board (not shown). The nozzle 1a is provided so as to be able to move up and down and rotate. Then, after sucking the chip component 2 from the component supply unit by the suction nozzle 1a, the component mounting head 1 moves onto the printed board, and mounts the chip component 2 at a predetermined mounting position on the printed board. I have.

【0025】また、3は撮像手段としてのCCDカメラ
であって、実装機の所定位置に設置されており、上記部
品装着用ヘッド1がチップ部品吸着後にこのカメラ3上
に移動し、このカメラ3による撮像が行われてからプリ
ント基板へのチップ部品2の装着が行われるようになっ
ている。上記カメラ3は、上記吸着ノズル1aに吸着さ
れたチップ部品2を下方から撮像するものであり、図1
に示す実施例ではこのカメラ3の両側にランプ4を配置
して、反射照明により撮像を行うようになっている。な
お、チップ部品によっては上方に照明手段を配置して透
過照明により撮像を行うようにしてもよく、反射照明と
透過照明とを使い分けるようにしてもよい。
Reference numeral 3 denotes a CCD camera as an image pickup means, which is installed at a predetermined position of the mounting machine, and the component mounting head 1 moves onto the camera 3 after the chip components are sucked, and the camera 3 After that, the mounting of the chip component 2 on the printed circuit board is performed. The camera 3 images the chip component 2 sucked by the suction nozzle 1a from below.
In the embodiment shown in FIG. 1, lamps 4 are arranged on both sides of the camera 3, and an image is taken by reflected illumination. Depending on the chip component, an illuminating means may be arranged above and imaging may be performed by transmitted illumination, or reflected illumination and transmitted illumination may be selectively used.

【0026】また、実装機には、上記部品装着用ヘッド
1の作動等を制御する実装機コントローラ5が設けられ
るとともに、上記カメラ3により撮像されたチップ部品
2の画像を処理する画像処理ユニット10が設けられて
いる。上記実装機コントローラ5には、上記部品装着用
ヘッド1に吸着されるチップ部品2についての各種デー
タを記憶する部品データ記憶部6が設けられている。
The mounting machine is provided with a mounting machine controller 5 for controlling the operation of the component mounting head 1 and the like, and an image processing unit 10 for processing an image of the chip component 2 captured by the camera 3. Is provided. The mounter controller 5 is provided with a component data storage unit 6 for storing various data on the chip components 2 sucked by the component mounting head 1.

【0027】上記画像処理ユニット10には、上記カメ
ラ3からの映像をアナログ・デジタル変換して取り込む
A/D変換部11と、このA/D変換部11を経た画像
を記憶する画像メモリ(画像記憶手段)12と、この画
像メモリ12から読み出した画像を処理する処理手段1
3と、この処理手段13と上記実装機コントローラ10
との間で情報の受け渡しを行うデュアルポートメモリ1
4とを有している。
The image processing unit 10 includes an A / D converter 11 for converting an image from the camera 3 into an analog-to-digital signal, and an image memory (an image memory) for storing an image having passed through the A / D converter 11. Storage means) 12 and processing means 1 for processing an image read from the image memory 12
3, the processing means 13 and the mounting machine controller 10
Memory 1 that exchanges information with the
And 4.

【0028】上記処理手段13は、上記画像メモリ12
から画像を読み出し、この画像を表す処理ウインド内を
走査するとともにそれに基づく演算処理を行うものであ
って、とくに次のようなコーナー部検出手段15及び演
算手段16を含んでいる。
The processing means 13 comprises the image memory 12
An image is read out of the processing window, and a processing window representing the image is scanned and an arithmetic processing based on the image is performed. The image processing apparatus includes, in particular, a corner detection unit 15 and an arithmetic unit 16 as described below.

【0029】コーナー部検出手段15は、上記処理ウイ
ンド内を走査する走査線を処理ウインドのX軸方向及び
Y軸方向に対して傾斜した方向に設定し、この走査線を
平行移動させつつ走査線上の画像の濃度値を判別して、
走査線がチップ部品のコーナー部を横切ることによって
上記濃度値が変化した位置を検出するようになってい
る。上記走査線の傾斜角度は、吸着ノズル1aに吸着さ
れる際のチップ部品の角度ずれ(チップ部品の傾き)の
範囲の限界よりも大きくし、望ましくは走査を容易にす
るために処理ウインドのX軸方向及びY軸方向に対して
45°とする。また、演算手段16は、コーナー部検出
手段15によるコーナー部の検出データに基づいてチッ
プ部品の重心位置及び傾きを算出するようになってい
る。
The corner detecting means 15 sets a scanning line for scanning the inside of the processing window in a direction inclined with respect to the X-axis direction and the Y-axis direction of the processing window, and moves the scanning line in parallel with the scanning line. Determine the density value of the image of
The position at which the density value changes when the scanning line crosses the corner of the chip component is detected. The inclination angle of the scanning line is set to be larger than the limit of the range of the angle deviation (the inclination of the chip component) of the chip component when it is sucked by the suction nozzle 1a. 45 ° with respect to the axial direction and the Y-axis direction. The calculating means 16 calculates the position and inclination of the center of gravity of the chip component based on the detected data of the corner by the corner detecting means 15.

【0030】そして、上記処理手段により求められたチ
ップ部品の重心位置及び傾きのデータは、デュアルポー
トメモリ14を介して実装機コントローラ5に送られ、
実装機コントローラ5により、上記重心位置のノズル中
心に対するずれ及び上記傾きに応じ、プリント基板に対
するチップ部品の装着位置及び角度が補正されるように
なっている。
Then, the data of the position of the center of gravity and the inclination of the chip component obtained by the processing means are sent to the mounting machine controller 5 via the dual port memory 14, and
The mounting machine controller 5 corrects the mounting position and angle of the chip component with respect to the printed circuit board in accordance with the deviation of the center of gravity from the nozzle center and the inclination.

【0031】なお、上記コーナー部検出手段15及び演
算手段16を含む処理手段13は、具体的には後述する
各種認識方法(認識方法第1例乃至第4例)のプログラ
ムを有し、撮像されるチップ部品2の種類に応じていず
れかの方法のプログラムを選択し、その方法を実行する
ようになっている。
The processing means 13 including the corner detecting means 15 and the calculating means 16 has programs for various recognition methods (first to fourth examples of recognition methods) which will be described later. Depending on the type of the chip component 2, a program of one of the methods is selected and the method is executed.

【0032】ここで、認識対象となるチップ部品の数例
を図2乃至図6によって説明しておく。
Here, several examples of chip components to be recognized will be described with reference to FIGS.

【0033】図2(a)(b)はチップ抵抗2A及びそ
の画像を示し、このチップ抵抗2Aは両側辺部に電極2
1を有する角ブロック状のものである。このチップ抵抗
2Aを撮像するときは反射照明、透過照明のいずれによ
ってもよく、反射照明の場合は図2(b)に実線で示す
電極部分が明るい画像となり、透過照明の場合は上記電
極部分と本体部分(破線で示す)の全体が暗い画像とな
る。図3はタンタルコンデンサ2Bの画像を示し、この
タンタルコンデンサ2Bも両側辺部に電極22を有して
上記チップ抵抗2Aと形状が近似しており、撮像は反射
照明、透過照明のいずれによってもよい。図4はアルミ
コンデンサ2Cの画像を示し、このアルミコンデンサ2
Cは底部の中央部両側に電極23を有しており、撮像は
反射照明によるものとし、その画像は実線で示すように
なる。
FIGS. 2A and 2B show a chip resistor 2A and an image thereof. The chip resistor 2A has electrodes 2 on both sides.
1 is a square block shape. When imaging the chip resistor 2A, either reflection illumination or transmission illumination may be used. In the case of reflection illumination, the electrode portion shown by a solid line in FIG. 2B becomes a bright image. The whole main body (shown by a broken line) becomes a dark image. FIG. 3 shows an image of the tantalum capacitor 2B. The tantalum capacitor 2B also has electrodes 22 on both sides and has a shape similar to that of the chip resistor 2A. Imaging may be performed by either reflection illumination or transmission illumination. . FIG. 4 shows an image of the aluminum capacitor 2C.
C has electrodes 23 on both sides at the center of the bottom. The image is taken by reflection illumination, and the image is shown by a solid line.

【0034】これらのチップ部品2A,2B,2Cは、
画像が長方形もしくはこれに準じた形状となり、後述の
認識方法第1例または認識方法第2例の認識対象とな
る。なお、このほかに、例えばカラー抵抗のような円筒
形状等のものでも撮像した画像が長方形もしくはこれに
準じた形状であれば認識方法第1例または認識方法第2
例の認識対象となる。
These chip parts 2A, 2B, 2C are:
The image becomes a rectangle or a shape similar to the rectangle, and becomes a recognition target in a first example of the recognition method or a second example of the recognition method described later. In addition to this, for example, the first example of the recognition method or the second example of the recognition method as long as the captured image is a rectangle or a shape similar thereto even in a cylindrical shape such as a color resistor or the like.
Become an example recognition target.

【0035】また、図5(a)(b)はミニトランジス
タ2D及びその画像を示し、このミニトランジスタ2D
は両側辺部に複数個ずつ(図では2個ずつ)のピン24
を有しており、後述の認識方法第3例の認識対象とな
る。このミニトランジスタ2Dの撮像は反射照明による
ものとし、実線で示すピン24部分が明るい画像とな
る。
FIGS. 5A and 5B show a mini-transistor 2D and an image thereof.
Is a plurality (two in the figure) of pins 24 on both sides.
And is a recognition target of a third example of a recognition method described later. The imaging of the mini-transistor 2D is based on reflected illumination, and the pin 24 indicated by a solid line becomes a bright image.

【0036】図6はパワートランジスタ2Eの画像を示
し、このパワートランジスタ2Eは一側辺部に3個のピ
ン25、他側辺部に1個のピン26を有しており、後述
の認識方法第4例の認識対象となる。このパワートラン
ジスタ2Eの撮像は反射照明によるものとし、実線で示
すピン25,26等が明るい画像となる。
FIG. 6 shows an image of the power transistor 2E. The power transistor 2E has three pins 25 on one side and one pin 26 on the other side. This is the recognition target of the fourth example. The imaging of the power transistor 2E is based on reflected illumination, and the pins 25, 26 and the like indicated by solid lines become bright images.

【0037】次に、上記の認識装置によるチップ部品の
認識方法の各種具体例を説明する。なお、以下の説明の
中で、濃度値に関しては反射照明を用いるものとして述
べるが、透過照明を用いる場合は、濃度値の大小(明
暗)を逆に考えればよい。
Next, various specific examples of the method for recognizing chip components by the above-described recognition device will be described. In the following description, it is assumed that the reflection value is used for the density value, but when the transmission illumination is used, the magnitude of the density value (bright and dark) may be considered in reverse.

【0038】(1) 認識方法第1例 図7は、上記チップ抵抗2A、タンタルコンデンサ2
B、アルミコンデンサ2C、カラー抵抗等の、画像が長
方形もしくはこれに準じる形状となるチップ部品を認識
対象とする場合に適する認識方法第1例をフローチャー
トで示している。この方法を、図8〜図13を参照しつ
つ説明する。
(1) First Example of Recognition Method FIG. 7 shows the chip resistor 2A and the tantalum capacitor 2 described above.
The flowchart shows a first example of a recognition method suitable for a case where a chip component such as B, an aluminum capacitor 2C, and a color resistor, whose image has a rectangular shape or a similar shape, is to be recognized. This method will be described with reference to FIGS.

【0039】先ずステップS1では、チップ部品の画像
を表した処理ウインド30内の複数箇所の濃度値に基づ
き、コーナー部検出のための閾値を設定する。具体的に
は、図8に示すように、多数の画素31を含む処理ウイ
ンド30内を数画素おきに走査して濃度値を調べ、例え
ば縦横5画素ずつの区画ごとに1つずつの画素(斜線を
付した部分)について濃度値を調べる。そして、これら
の画素の濃度値の中から最大値Dmax と最小値Dmin と
を選出し、この最大値Dmax よりも小さくて最小値Dmi
n よりも大きい適当な値、例えばDmin+(Dmax−Dmi
n)・1/2を閾値とする。
First, in step S1, a threshold value for detecting a corner portion is set based on the density values at a plurality of locations in the processing window 30 representing the image of the chip component. Specifically, as shown in FIG. 8, the processing window 30 including a large number of pixels 31 is scanned every few pixels to check the density value, and, for example, one pixel for each section of 5 pixels vertically and horizontally ( Check the density value for the hatched area). A maximum value Dmax and a minimum value Dmin are selected from the density values of these pixels, and a minimum value Dmi smaller than the maximum value Dmax is selected.
a suitable value greater than n, for example Dmin + (Dmax-Dmi
n) · 1/2 is set as a threshold value.

【0040】次にステップS2で、X軸,Y軸に対して
45°傾斜した走査線Lsによる走査でチップ部品2の
各コーナー部を検出する。すなわち、図9,図10に示
すように、先ずチップ部品2の左上コーナー部を検出す
るときには、左下がりの斜め45°に走査線を設定し
て、上記処理ウインドの左上隅から中央部へ向けて走査
線を順次平行移動させつつ、走査線上の画素の濃度値と
上記閾値との比較を行うことにより、走査線がチップ部
品のコーナー部を横切ったときにその位置を検出する。
Next, in step S2, each corner of the chip component 2 is detected by scanning with the scanning line Ls inclined at 45 ° with respect to the X axis and the Y axis. That is, as shown in FIGS. 9 and 10, when the upper left corner of the chip component 2 is first detected, a scanning line is set at an oblique angle of 45 ° to the lower left, and is directed from the upper left corner to the center of the processing window. By comparing the density value of the pixel on the scanning line with the threshold value while sequentially moving the scanning line in parallel, the position of the scanning line when the scanning line crosses a corner of the chip component is detected.

【0041】具体的には、対象画素の濃度値が閾値以上
で、かつ走査方向に垂直でチップ部品の中心側にある画
素の濃度値も閾値以上となることが最初に見つかった点
NW1と、対象画素の濃度値が再び閾値以下となる直前
の点NW2とを求める。この場合に、走査方向に垂直で
チップ部品の中心側にある画素の濃度値も閾値以上とな
るという条件を加えているのは、ノイズによる誤検出を
防止するためである。上記2点NW1,NW2は、コー
ナー部の頂点を挾む2辺を上記走査線が横切る点であ
り、これをコーナー候補点と呼ぶこととする。
More specifically, a point NW1 where it is first found that the density value of the target pixel is equal to or higher than the threshold value and the density value of the pixel perpendicular to the scanning direction and located on the center side of the chip component is equal to or higher than the threshold value; A point NW2 immediately before the density value of the target pixel becomes the threshold value or less again is obtained. In this case, the condition that the density value of the pixel perpendicular to the scanning direction and on the center side of the chip component is also equal to or greater than the threshold value is to prevent erroneous detection due to noise. The two points NW1 and NW2 are points at which the scanning line crosses two sides sandwiching the vertex of the corner, and these are referred to as corner candidate points.

【0042】他のコーナー部についても同様にして2点
ずつ、コーナー候補点を見つける。ただし、左下コーナ
ー部を検出するときには右下がり斜め45°の走査線L
sを処理ウインド30の左下隅から中央部へ向けて平行
移動させ、右上コーナー部を検出するときには右下がり
斜め45°の走査線Lsを処理ウインド30の右上隅か
ら中央部へ向けて平行移動させ、右下コーナー部を検出
するときには左下がり斜め45°の走査線Lsを処理ウ
インド30の右下隅から中央部へ向けて平行移動させ
る。
Similarly, for each of the other corner portions, two candidate corner points are found. However, when the lower left corner is detected, the scanning line L that is slanted 45 ° to the lower right
s is translated from the lower left corner of the processing window 30 toward the center, and when the upper right corner is detected, the scanning line Ls inclined downward at an angle of 45 ° is translated from the upper right corner of the processing window 30 toward the center. When the lower right corner is detected, the scanning line Ls inclined downward at an angle of 45 ° is moved in parallel from the lower right corner of the processing window 30 toward the center.

【0043】このようにして、図11(a)に示すよう
に都合8点のコーナー候補点NW1,NW2,SW1,
SW2,NE1,NE2,SE1,SE2を求め、この
各コーナー候補点の座標(NW1x,NW1y)(NW
2x,NW2y)(SW1x,SW1y)(SW2x,
SW2y)(NE1x,NE1y)(NE2x,NE2
y)(SE1x,SE1y)(SE2x,SE2y)を
記憶する。
In this way, as shown in FIG. 11A, eight convenient corner candidate points NW1, NW2, SW1,
SW2, NE1, NE2, SE1, SE2 are obtained, and the coordinates (NW1x, NW1y) (NW1
2x, NW2y) (SW1x, SW1y) (SW2x,
SW2y) (NE1x, NE1y) (NE2x, NE2
y) (SE1x, SE1y) (SE2x, SE2y) are stored.

【0044】コーナー部の検出が終わると、その検出デ
ータに基づき、チップ部品2の重心位置及び傾きを求め
る処理を行なう。当実施例では、実装機コントローラ5
の部品データ記憶部6から読み出されるデータに基づ
き、チップ部品2の電極が左右に配置されているか上下
に配置されているかを判定し(ステップS3)、電極が
左右に配置されている場合はステップS4〜S15の各
処理を行ない、電極が上下に配置されている場合はステ
ップS16〜S27の各処理を行なう。
When the detection of the corner portion is completed, a process of obtaining the position of the center of gravity and the inclination of the chip component 2 is performed based on the detected data. In this embodiment, the mounting machine controller 5
It is determined whether the electrodes of the chip component 2 are arranged left and right or up and down based on the data read from the component data storage unit 6 (step S3). The processes in S4 to S15 are performed, and when the electrodes are arranged vertically, the processes in steps S16 to S27 are performed.

【0045】[電極左右配置の場合の処理] ステップS4では、左側電極部分(左側辺部)のプロフ
ィールを調べる。具体的には、図11(a)中に示すよ
うに、左側電極部分において、上下両側コーナー部の各
コーナー候補点のうちの2点(上辺側及び下辺側)NW
1,SW2を通るプロフィール測定ラインLA1を設定
し、例えば次のようにプロフィール測定ラインLA1の
始点STの座標(Xs,Ys)及び終点ENの座標(X
e,Ye)を定める。
[Processing for Electrode Left / Right Arrangement] In step S4, the profile of the left electrode portion (left side portion) is checked. Specifically, as shown in FIG. 11A, two points (upper side and lower side) NW of each corner candidate point of the upper and lower corners in the left electrode portion.
1, a profile measurement line LA1 passing through SW2 is set. For example, the coordinates (Xs, Ys) of the start point ST and the coordinates (Xs) of the end point EN of the profile measurement line LA1 are set as follows.
e, Ye).

【0046】[0046]

【数1】 Xs=NW1x−(SW2x−NW1x) …(1) Ys=NW1y−(SW2y−NW1y) …(2) Xe=SW2x+(SW2x−NW1x) …(3) Ye=SW2y+(SW2y−NW1y) …(4) そして、上記始点STから終点ENまでのラインLA1
上の各位置の濃度値を調べ、図12に示すような濃度値
のプロフィールをとる。
Xs = NW1x- (SW2x-NW1x) (1) Ys = NW1y- (SW2y-NW1y) (2) Xe = SW2x + (SW2x-NW1x) (3) Ye = SW2y + (SW2y-NW1y) ... (4) Then, the line LA1 from the start point ST to the end point EN
The density value at each position above is examined, and a profile of the density value as shown in FIG. 12 is obtained.

【0047】続いてステップS5では、上記プロフィー
ルから、図11(b)中に示すような左側電極部分の上
下方向の中心点b1の位置を計算する。具体的には、上
記プロフィールの中で濃度値の最大値Dmax 及び最小値
Dmin を求め、この最大値Dmax よりも小さくて最小値
Dmin よりも大きい値、例えばDmin+(Dmax−Dmin)
・1/2を閾値とする。そして、上記プロフィールの濃
度値を始点側から順に見ていって最初に閾値を越える点
を求め、この点の濃度値とその直前の点の濃度値と上記
閾値とから、直線状補間によりサブピクセル化した上側
エッジ点a1のY座標を算出する。
Subsequently, in step S5, the position of the vertical center point b1 of the left electrode portion as shown in FIG. 11B is calculated from the above profile. Specifically, a maximum value Dmax and a minimum value Dmin of the density value are obtained in the profile, and a value smaller than the maximum value Dmax and larger than the minimum value Dmin, for example, Dmin + (Dmax-Dmin)
・ Set 1/2 as the threshold value. Then, looking at the density values of the profile in order from the starting point side, first find a point that exceeds the threshold, and calculate the sub-pixel by linear interpolation from the density value of this point, the density value of the immediately preceding point, and the threshold value. The Y coordinate of the converted upper edge point a1 is calculated.

【0048】この直線状補間によるサブピクセル化は、
画素単位よりも微少な単位(サブピクセル単位)で位置
を求めるためのものであり、上記プロフィールの始点か
ら数えてi番目の点で初めて濃度値が閾値を越えた場
合、その点の濃度値をDi 、(i−1)番目の点の濃度
値をDi-1 、閾値をDthとすると(図12参照)、次式
により上側エッジ点a1のY座標(Ya)がサブピクセ
ル単位で求められる。
The sub-pixel conversion by the linear interpolation is as follows.
This is for obtaining the position in a unit smaller than the pixel unit (sub-pixel unit). When the density value exceeds the threshold value at the i-th point counted from the starting point of the profile for the first time, the density value of that point is calculated. D i, obtained in the (i-1) -th D i-1 the density value of a point, when Dth the threshold (see FIG. 12), the sub-pixels Y coordinate of the top edge point a1 (Ya) is the following formula Can be

【0049】[0049]

【数2】 Ya=Ys+i−(Di−Dth)/(Di−Di-1) …(5) さらに、上記プロフィールの濃度値を終点側から順に見
ていって、上記上側エッジ点a1のY座標の算出と同様
の手法で下側エッジ点a2のY座標を求める。そして、
上記上側エッジ点a1のY座標と下側エッジ点a2のY
座標の真中の値を左側電極部分の上下方向中心点b1の
Y座標とし、上記プロフィール始点ST、終点ENを通
る直線(プロフィール測定ラインLA1)の方程式から
上記Y座標に対応する上記中心点b1のX座標を求め
る。
[Number 2] Ya = Ys + i- (D i -Dth) / (D i -D i-1) ... (5) In addition, go look in order the density value of the profile from the end point side, the upper edge points a1 The Y coordinate of the lower edge point a2 is obtained in the same manner as the calculation of the Y coordinate of. And
The Y coordinate of the upper edge point a1 and the Y coordinate of the lower edge point a2
The middle value of the coordinates is defined as the Y coordinate of the vertical center point b1 of the left electrode portion, and the center point b1 corresponding to the Y coordinate is obtained from the equation of the straight line (profile measurement line LA1) passing through the profile start point ST and end point EN. Find the X coordinate.

【0050】次にステップS6,S7では、ステップS
4,S5と同様の処理を右側電極部分(右側辺部)につ
いて行なう。つまり、上下両側コーナー部の各コーナー
候補点のうちの2点NE2,SE1を通るプロフィール
測定ラインLA2の始点の座標(Xs,Ys)及び終点
の座標(Xe,Ye)を次のように定める。
Next, in steps S6 and S7, step S
4 and S5 are performed on the right electrode portion (right side portion). That is, the coordinates (Xs, Ys) of the start point and the coordinates (Xe, Ye) of the end point of the profile measurement line LA2 passing through the two points NE2 and SE1 of the corner candidate points at the upper and lower corners are determined as follows.

【0051】[0051]

【数3】 Xs=NE2x−(SE1x−NE2x) …(6) Ys=NE2y−(SE1y−NE2y) …(7) Xe=SE1x+(SE1x−NE2x) …(8) Ye=SE1y+(SE1y−NE2y) …(9) そして、上記始点から終点までのプロフィールをとり、
このプロフィールに基づき、上側エッジ点a3のY座標
と下側エッジ点a4のY座標とを直線状補間によりサブ
ピクセル単位で求め、右側電極部分の上下方向中心点b
2のY座標及びこれに対応した中心点b2のX座標を求
める(図11(b)参照)。
Xs = NE2x- (SE1x-NE2x) (6) Ys = NE2y- (SE1y-NE2y) (7) Xe = SE1x + (SE1x-NE2x) (8) Ye = SE1y + (SE1y-NE2y) … (9) Then, take a profile from the start point to the end point,
On the basis of this profile, the Y coordinate of the upper edge point a3 and the Y coordinate of the lower edge point a4 are obtained in subpixel units by linear interpolation, and the vertical center point b of the right electrode portion is obtained.
2 and the corresponding X coordinate of the center point b2 (see FIG. 11B).

【0052】このように左右両側電極部分の各中心点b
1,b2を求めることにより、後述のステップS13〜
S15の処理でチップ部品の重心位置及び傾きを求める
ことができるが、当実施例では、精度向上のため、ステ
ップS8〜S12で、左右各電極部分についてそれぞれ
プロフィール測定ラインを修正して、再度上下方向中心
点を算出する処理を行なっている(図11(b)及び同
(c)参照)。
As described above, each center point b of the left and right electrode portions is
By calculating 1, b2, the following steps S13 to S13
The position of the center of gravity and the inclination of the chip component can be obtained in the process of S15. However, in this embodiment, in order to improve the accuracy, in steps S8 to S12, the profile measurement line is corrected for each of the left and right electrode portions, and the vertical Processing for calculating the direction center point is performed (see FIGS. 11B and 11C).

【0053】すなわち、上記ステップS5及びステップ
S7で求めた両側電極部分の中心点b1,b2を暫定中
心点と呼ぶと、ステップS8では、上記両暫定中心点b
1,b2を通る直線LBの傾きを算出する。そして、ス
テップS9では、この直線LBに直交して上記左側電極
部分の暫定中心点b1を通る直線LC1の方程式を求
め、この直線LC1上でY座標が上記暫定中心点b1の
Y座標より電極幅分だけ小さい点を始点、電極幅分だけ
大きい点を終点としてプロフィールをとり、ステップS
10ではステップS5と同様の手法で左側電極の上下方
向の中心点c1を算出する。さらに、ステップS11で
は、上記直線LBに直交して上記右側電極部分の暫定中
心点b2を通る直線LC2の方程式を求め、この直線L
C2上でY座標が上記暫定中心点b2のY座標より電極
幅分だけ小さい点を始点、電極幅分だけ大きい点を終点
としてプロフィールをとり、ステップS12ではステッ
プS7と同様の手法で右側電極の上下方向の中心点c2
を算出する。
That is, if the center points b1 and b2 of the both-sided electrode portions obtained in steps S5 and S7 are referred to as provisional center points, in step S8 the two provisional center points b
The inclination of the straight line LB passing through the lines 1 and b2 is calculated. Then, in step S9, an equation of a straight line LC1 which is orthogonal to the straight line LB and passes through the provisional center point b1 of the left electrode portion is obtained, and the Y coordinate on this straight line LC1 is calculated based on the electrode width from the Y coordinate of the provisional center point b1. A profile is taken with a point smaller by the start point and a point larger by the electrode width as the end point, and step S
In step 10, a vertical center point c1 of the left electrode is calculated in the same manner as in step S5. Further, in step S11, an equation of a straight line LC2 orthogonal to the straight line LB and passing through the provisional center point b2 of the right electrode portion is obtained.
A profile is set on C2 with a point whose electrode is smaller than the Y coordinate of the provisional center point b2 by the electrode width as a start point and a point whose end point is larger than the Y coordinate by the electrode width in step S12. Vertical center point c2
Is calculated.

【0054】次に、ステップS13では、図11(c)
に示すような上記両側電極部分の中心点c1,c2を通
る直線(中心線)LDの方程式を求め、ステップS14
では、上記直線LD上で、線分の長さが〔(電極間距
離)+(電極幅)×2〕となり、かつ、始点STから一
方の電極部分の中心点c1までの距離と終点ENから他
方の電極部分の中心点c2までの距離とが等しくなるよ
うにプロフィールの始点ST及び終点ENを設定して、
この直線LD上のプロフィールをとる。
Next, in step S13, FIG.
An equation of a straight line (center line) LD passing through the center points c1 and c2 of the above both-side electrode portions as shown in FIG.
Then, on the straight line LD, the length of the line segment is [(inter-electrode distance) + (electrode width) × 2], and the distance from the start point ST to the center point c1 of one electrode portion and the end point EN The start point ST and the end point EN of the profile are set so that the distance to the center point c2 of the other electrode part is equal,
The profile on this straight line LD is taken.

【0055】続いてステップS15では、チップ部品の
重心位置及び傾きを算出する。具体的には、上記直線L
D上のプロフィールの中で濃度値のDmax 及び最小値D
minを求め、この最大値Dmax よりも小さくて最小値Dm
in よりも大きい値、例えばDmin+(Dmax−Dmin)・1
/2を閾値とし、前記のステップS5で行ったエッジの
Y座標の算出と同様の手法により、上記直線LD上の左
側エッジ点d1のX座標及び右側エッジ点d2のX座標
をサブピクセル単位で算出する。そして、これらのエッ
ジ点d1,d2のX座標から両者の中点のX座標を算出
し、このX座標と上記直線LDの方程式とからこの中点
のY座標を算出する。そして、この中点をチップ部品2
の重心wとするとともに、上記直線LDの方程式からそ
の勾配を算出して、この勾配をチップ部品の傾きθとす
る。
Subsequently, in step S15, the position and inclination of the center of gravity of the chip component are calculated. Specifically, the straight line L
Dmax and minimum D of the density values in the profile on D
min, and the minimum value Dm smaller than the maximum value Dmax
A value larger than in, for example, Dmin + (Dmax-Dmin) · 1
/ 2 is set as a threshold value, and the X coordinate of the left edge point d1 and the X coordinate of the right edge point d2 on the straight line LD are calculated in subpixel units by the same method as the calculation of the Y coordinate of the edge performed in step S5. calculate. Then, the X coordinate of the middle point is calculated from the X coordinates of the edge points d1 and d2, and the Y coordinate of the middle point is calculated from the X coordinate and the equation of the straight line LD. Then, this midpoint is referred to as chip component 2
And the gradient is calculated from the equation of the straight line LD, and this gradient is defined as the inclination θ of the chip component.

【0056】[電極上下配置の場合の処理] ステップS16では上側電極部分(上側辺部)のプロフ
ィールをとり、ステップS17ではこのプロフィールか
ら上側電極部分の左右方向の中心を計算し、ステップS
18では下側電極部分(下側辺部)のプロフィールをと
り、ステップS19ではこのプロフィールから下側電極
部分の左右方向の中心を計算する。これらの処理は前記
のステップS4〜S7と同様である。ただし、図13に
示すように、上側電極部分のプロフィール測定ラインL
A1は上側左右コーナー部の2点NW2,NE1を通る
ようにし、下側電極部分のプロフィール測定ラインLA
2は下側左右コーナー部の2点SW1,SE2を通るよ
うにする。つまり、上側のプロフィール測定ラインLA
1についてはその始点の座標(Xs,Ys)及び終点の
座標(Xe,Ye)を次のように定める。
[Processing for Electrode Vertical Arrangement] In step S16, a profile of the upper electrode portion (upper side) is obtained. In step S17, the center of the upper electrode portion in the left-right direction is calculated from this profile.
At 18, a profile of the lower electrode portion (lower side portion) is obtained, and at step S19, the center of the lower electrode portion in the left-right direction is calculated from this profile. These processes are the same as steps S4 to S7 described above. However, as shown in FIG. 13, the profile measurement line L of the upper electrode portion
A1 passes through two points NW2 and NE1 at the upper left and right corners, and the profile measurement line LA of the lower electrode portion
2 passes through the two points SW1 and SE2 at the lower left and right corners. That is, the upper profile measurement line LA
The coordinates (Xs, Ys) of the start point and the coordinates (Xe, Ye) of the end point of 1 are determined as follows.

【0057】[0057]

【数4】 Xs=NW2x−(NE1x−NW2x) …(10) Ys=NW2y−(NE1y−NW2y) …(11) Xe=NE1x+(NE1x−NW2x) …(12) Ye=NE1y+(NE1y−NW2y) …(13) また、下側のプロフィール測定ラインLA2については
その始点の座標(Xs,Ys)及び終点の座標(Xe,
Ye)を次のように定める。
Xs = NW2x- (NE1x-NW2x) (10) Ys = NW2y- (NE1y-NW2y) (11) Xe = NE1x + (NE1x-NW2x) ... (12) Ye = NE1y + (NE1y-NW2) (13) Further, the coordinates (Xs, Ys) of the start point and the coordinates (Xe, Xe) of the end point of the lower profile measurement line LA2 are obtained.
Ye) is determined as follows.

【0058】[0058]

【数5】 Xs=SW1x−(SE2x−SW1x) …(14) Ys=SW1y−(SE2y−SW1y) …(15) Xe=SE2x+(SE2x−SW1x) …(16) Ye=SE2y+(SE2y−SW1y) …(17) そして、各プロフィール測定ラインLA1,LA2上で
の左右方向の中心点を求める。
Xs = SW1x− (SE2x−SW1x) (14) Ys = SW1y− (SE2y−SW1y) (15) Xe = SE2x + (SE2x−SW1x) (16) Ye = SE2y + (SE2y−SW1y) (17) Then, the center point in the left-right direction on each profile measurement line LA1, LA2 is obtained.

【0059】続いて、ステップS20では上下両側電極
部分の中心点(暫定中心点)を通る直線の傾きを算出
し、ステップS21では上側電極部分のプロフィールを
とり、ステップS22では上側電極の左右方向の中心点
を計算し、ステップS23では下側電極部分のプロフィ
ールをとり、ステップS24では下側電極の左右方向の
中心点を計算する。さらに、ステップS25では上下両
側電極部分の中心点を通る直線の方程式を算出し、ステ
ップS26では上下両側電極間のプロフィールをとり、
ステップS27ではチップ部品の重心の位置及び傾きを
算出する。これらの処理は、前述の電極左右配置の場合
におけるステップS8〜S15の処理と同様(ただし左
側を上側、右側を下側と置き換える)である。
Subsequently, in step S20, the inclination of a straight line passing through the center point (temporary center point) of the upper and lower electrode portions is calculated. In step S21, the profile of the upper electrode portion is obtained. The center point is calculated. In step S23, a profile of the lower electrode portion is obtained. In step S24, the center point of the lower electrode in the left-right direction is calculated. Further, in step S25, an equation of a straight line passing through the center point of the upper and lower electrodes is calculated. In step S26, a profile between the upper and lower electrodes is obtained.
In step S27, the position and inclination of the center of gravity of the chip component are calculated. These processes are the same as the processes of steps S8 to S15 in the case of the above-described electrode left-right arrangement (however, the left side is replaced with the upper side and the right side is replaced with the lower side).

【0060】以上のような認識方法第1例によると、斜
め方向の走査によりチップ部品の四方コーナー部が容易
に、かつ確実に検出され、これに基づいて、左右もしく
は上下の側辺部において側辺に沿った方向のプロフィー
ル測定ラインLA1,LA2が適正に定められ、プロフ
ィール測定ラインLA1,LA2にばらつきを生じるこ
とがなくてプロフィール測定の精度が高められる。そし
て、このプロフィール測定ラインLA1,LA2に沿っ
たプロフィールに基づいて側辺部における中心点が求め
られ、両側の側辺部の中心点に基づいてチップ部品の重
心及び傾きが算出される。こうして、画像が長方形もし
くはこれに準じる形状となるチップ部品の重心及び傾き
が精度良く求められる。
According to the above-described first example of the recognition method, the four corners of the chip component are easily and reliably detected by scanning in the oblique direction. The profile measurement lines LA1 and LA2 in the direction along the side are properly determined, and the profile measurement lines LA1 and LA2 do not vary and the accuracy of profile measurement is increased. Then, the center point in the side portion is obtained based on the profiles along the profile measurement lines LA1 and LA2, and the center of gravity and the inclination of the chip component are calculated based on the center points of the side portions on both sides. In this way, the center of gravity and the inclination of the chip component whose image is a rectangle or a shape similar thereto can be obtained with high accuracy.

【0061】(2) 認識方法第2例 画像が長方形もしくはこれに準じる形状となるチップ部
品を認識対象とする場合に適する認識方法の他の具体例
である認識方法第2例を、図14を参照しつつ説明す
る。なお、この認識方法第2例は、上記認識方法第1例
の一部を変更したものであって、次に説明するような変
更点を除けば認識方法第1例と同様の処理を行なうの
で、フローチャートは省略する。
(2) Second Example of Recognition Method FIG. 14 shows a second example of a recognition method which is another specific example of a recognition method suitable for a case where a chip component whose image has a rectangular shape or a similar shape is to be recognized. It will be described with reference to FIG. The second example of the recognition method is a modification of the first example of the recognition method described above, and performs the same processing as that of the first example of the recognition method except for the following changes. The flowchart is omitted.

【0062】認識方法第2例においても、コーナー部検
出のための閾値を設定してから斜め45°の走査でチッ
プ部品2の四方各コーナー部を検出し、その検出データ
に基づいて両側辺部のプロフィールラインを設定し、そ
れぞれ濃度値のプロフィールをとる処理は認識方法第1
例と同様である(図7中のステップS1〜S3及びステ
ップS4〜S9,S11またはステップ16〜S21,
S23)。そして、側辺部プロフィールライン(望まし
くは前述のように修正したライン)LC1,LC2に沿
ったプロフィールに基づき、図14のようにチップ部品
の重心w及び傾きを求める。
In the second example of the recognition method as well, after setting a threshold value for detecting a corner portion, each corner of the chip component 2 is detected by scanning at an angle of 45 °, and both side portions are detected based on the detected data. The process of setting the profile lines of each and taking the profile of each density value is the first recognition method.
This is the same as the example (steps S1 to S3 and steps S4 to S9, S11 or steps 16 to S21,
S23). Then, based on the profiles along the side profile lines (preferably the lines corrected as described above) LC1 and LC2, the center of gravity w and the inclination of the chip component are obtained as shown in FIG.

【0063】すなわち、上記各ラインLC1,LC2に
沿ったプロフィールから、各ラインLC1,LC2上で
部品側辺部中心点より両側に所定量だけオフセットした
2つずつの特定点を定める。例えば、一方(図14で左
側)のラインLC1上において、その両側(図14で上
下両側)のエッジ点a11,a12からそれぞれ部品長
さ(両エッジ点a11,a12間の長さ)の1/4の位
置に第1特定点c11及び第2特定点c12を定め、他
方(図14で右側)のラインLC2上においても同様に
両側エッジ点a21,a22からそれぞれ部品長さの1
/4の位置に第1特定点c21及び第2特定点c22を
定める。
That is, from the profile along each of the lines LC1 and LC2, two specific points which are offset by a predetermined amount on both sides from the center of the component side portion on each of the lines LC1 and LC2 are determined. For example, on one (left side in FIG. 14) line LC1, each of the edge points a11 and a12 on both sides (upper and lower sides in FIG. 14) is 1/1 of the part length (the length between both edge points a11 and a12). A first specific point c11 and a second specific point c12 are defined at the position of No. 4 and the other (right side in FIG. 14) line LC2 is similarly set to a part length of 1 from the both side edge points a21 and a22.
A first specific point c21 and a second specific point c22 are determined at the position of / 4.

【0064】次に、上記各ラインLC1,LC2と交差
して各第1特定点c11,c21を通る直線LD1及び
各第2特定点c12,c22を通る直線LD2を設定し
て、この2つの直線LD1,LD2に沿ってそれぞれプ
ロフィールをとり、その各プロフィールから、一方の直
線LD1上における両エッジ点d11,d21の中点で
ある第1中点d3と、他方の直線LD2上における両エ
ッジ点d12,d22の中点である第2中点d4とを求
める。そして、この第1,第2中点d3,d4の中点を
計算してこれを重心wとするとともに、第1,第2中点
d3,d4を通る直線(もしくはこれと直交する直線)
の勾配を計算してこれをチップ部品の傾きとする。
Next, a straight line LD1 crossing each of the lines LC1 and LC2 and passing through the first specific points c11 and c21 and a straight line LD2 passing through each of the second specific points c12 and c22 are set. Profiles are respectively taken along LD1 and LD2, and from each profile, a first midpoint d3 which is a midpoint between the two edge points d11 and d21 on one straight line LD1, and both edge points d12 on the other straight line LD2. , D22 and a second midpoint d4. Then, a midpoint between the first and second midpoints d3 and d4 is calculated and used as the center of gravity w, and a straight line passing through the first and second midpoints d3 and d4 (or a straight line orthogonal to this).
Is calculated, and this is defined as the inclination of the chip component.

【0065】このような認識方法第2例によると、画像
が長方形もしくはこれに準じる形状となるチップ部品2
の重心及び傾きが精度良く求められ、とくにこの種の部
品のうちでも、図3に示すタンタルコンデンサ2Bのよ
うに一側辺部の電極の中間部に凹み28等を有するよう
な部品を認識対象とする場合に効果的である。つまり、
タンタルコンデンサ2Bの場合、前記の認識方法第1例
のように中心線LDを求めてこの中心線LDから重心w
を算出すると、中心線LDが上記凹み28を通ることに
より誤差を生じるが、認識方法第2例によると、上記2
直線LD1,LD2が凹み28を避けた位置を通り、こ
の2直線LD1,LD2上の上記各中点d3,d4から
重心wが求められるため、上記凹み28等の存在によっ
て誤差を生じるようなことがない。
According to such a second example of the recognition method, according to the chip component 2 whose image is a rectangle or a shape similar thereto,
The center of gravity and inclination of are determined with high accuracy. In particular, among components of this type, a component having a depression 28 or the like in the middle of one side electrode, such as a tantalum capacitor 2B shown in FIG. It is effective when That is,
In the case of the tantalum capacitor 2B, the center line LD is obtained as in the first example of the recognition method described above, and the center of gravity w is calculated from the center line LD.
Is calculated, an error occurs when the center line LD passes through the recess 28, but according to the second example of the recognition method, the error
Since the straight lines LD1 and LD2 pass through the position avoiding the recess 28, and the center of gravity w is obtained from the respective middle points d3 and d4 on the two straight lines LD1 and LD2, an error may occur due to the presence of the recess 28 or the like. There is no.

【0066】(3) 認識方法第3例 図15は、上記ミニトランジスタ2D等の、両側辺部
(左右側辺部もしくは上下側辺部)に複数本ずつのリー
ドピンが配設されているチップ部品を認識対象とする場
合に適する認識方法第3例をフローチャートで示してい
る。この方法を、図16を参照しつつ説明する。
(3) Third Example of Recognition Method FIG. 15 shows a chip component in which a plurality of lead pins are disposed on both sides (left and right sides or upper and lower sides) of the mini-transistor 2D and the like. Is shown in the form of a flowchart in a third example of a recognition method suitable for a case where is a recognition target. This method will be described with reference to FIG.

【0067】先ずステップS101では、上記第1例に
おけるステップS1とほぼ同様にしてコーナー部検出の
ための閾値を設定する。具体的には、チップ部品の画像
を表した処理ウインド内を数画素おきに走査し、例えば
縦横2画素ずつの区画ごとに1つずつの画素について濃
度値を調べ、これらの画素の濃度値の中から最大値Dma
x と最小値Dmin とを選出して、例えばDmin+(Dmax
−Dmin)・1/2を閾値とする。
First, in step S101, a threshold value for detecting a corner portion is set in substantially the same manner as in step S1 in the first example. Specifically, the inside of the processing window representing the image of the chip component is scanned every few pixels, and for example, the density value of each pixel is checked for each of the two vertical and horizontal pixels, and the density values of these pixels are checked. Medium to maximum value Dma
x and the minimum value Dmin are selected, for example, Dmin + (Dmax
−Dmin) · 1/2 is set as the threshold value.

【0068】次にステップS102では、上記第1例に
おけるステップS2と同様の方法で四方各コーナー部を
検出する。すなわち、図16(a)に示すように、X
軸,Y軸に対して45°傾斜した走査線Lsによる走査
で、チップ部品2Dの両側のピン列においてそれぞれ各
両端のピンの外側コーナー部を検出し、これらのコーナ
ー部について2点ずつ、都合8点のコーナー候補点NW
1,NW2,SW1,SW2,NE1,NE2,SE
1,SE2を求め、この各コーナー候補点の座標を記憶
する。
Next, in step S102, four corners are detected in the same manner as in step S2 in the first example. That is, as shown in FIG.
By scanning with the scanning line Ls inclined at 45 ° with respect to the axis and the Y axis, the outer corners of the pins at both ends of each of the pin rows on both sides of the chip component 2D are detected. Eight corner candidate points NW
1, NW2, SW1, SW2, NE1, NE2, SE
1, SE2 is obtained, and the coordinates of each corner candidate point are stored.

【0069】コーナー部の検出が終わると、その検出デ
ータに基づき、チップ部品の重心位置及び傾きを求める
処理を行なう。この場合に、実装機コントローラ5の部
品データ記憶部6から読み出されるデータに基づき、チ
ップ部品2Dの電極が左右に配置されているか上下に配
置されているかを判定し(ステップS103)、電極が
左右に配置されている場合はステップS104〜S11
2の各処理を行ない、電極が上下に配置されている場合
はステップS113〜S121の各処理を行なう。
When the detection of the corner portion is completed, a process for obtaining the position and inclination of the center of gravity of the chip component is performed based on the detected data. In this case, based on the data read from the component data storage unit 6 of the mounter controller 5, it is determined whether the electrodes of the chip component 2D are arranged left and right or up and down (step S103). If it is arranged in step S104 to S11
2 are performed, and when the electrodes are arranged vertically, the processes of steps S113 to S121 are performed.

【0070】[電極左右配置の場合の処理] ステップS104では、左辺側のプロフィールを求め
る。つまり、プロフィール測定ラインLA1が上下のコ
ーナー候補点NW1,SW2を通るように、その始点S
T及び終点ENの座標を前記の(1)〜(4)式により設定し
(図16(a)参照)、このラインLA1に沿った濃度
値のプロフィールをとる。
[Processing for Left-Right Electrode Arrangement] In step S104, a profile on the left side is obtained. In other words, the starting point S is set so that the profile measurement line LA1 passes through the upper and lower corner candidate points NW1 and SW2.
The coordinates of T and the end point EN are set by the above equations (1) to (4) (see FIG. 16A), and a profile of density values along this line LA1 is obtained.

【0071】次にステップS105では、上記プロフィ
ールに基づいて、左辺の各ピンの中心を計算する。具体
的には、上記プロフィールにおける濃度値の最大値Dma
x よりも小さくて最小値Dmin よりも大きい値、例えば
Dmin+(Dmax−Dmin)・1/3を閾値とし、この閾
値と濃度値との比較に基づき、上記各ピンについてそれ
ぞれ上下両エッジ点を直線状補間によりサブピクセル単
位で算出し、その中点の座標を各ピンの中心点e1,e
2の位置として求める(図16(b)参照)。
Next, in step S105, the center of each pin on the left side is calculated based on the profile. Specifically, the maximum value Dma of the density value in the above profile
A value smaller than x and larger than the minimum value Dmin, for example, Dmin + (Dmax-Dmin)) / 3 is set as a threshold. Is calculated in subpixel units by shape interpolation, and the coordinates of the midpoint are calculated as the center points e1 and e of the respective pins.
2 (see FIG. 16B).

【0072】ステップS106では、図16(b)中に
示すような各ピンの左側エッジ点f1,f2を算出す
る。具体的には、上記プロフィール測定ラインLA1と
直交し、かつ上記中心点e1,e2を通る直線LE1,
LE2の方程式を求め、その直線LE1,LE2上でX
座標が各ピンの中心点e1,e2のX座標よりもチップ
部品横方向長さの1/4だけ小さい点及び大きい点を始
点及び終点としてプロフィールをとる。そして、このプ
ロフィールにおける濃度値の最大値Dmax よりも小さく
て最小値Dmin よりも大きい値を閾値とし、この閾値と
濃度値との比較に基づき、直線状補間を用いて上記各ピ
ンの左側エッジ点f1,f2の座標をサブピクセル単位
で求める。この際、画面上のピンが小さい場合に、部品
重心位置及び傾きの演算のためのデータ数を増加させて
精度を高めるため、上記閾値を複数種類設定し、例えば
Dmin+(Dmax−Dmin)・1/3,Dmin+(Dmax−
Dmin)・1/2,Dmin+(Dmax−Dmin)・2/3の
3種類の閾値を設定して、それぞれにつき各ピンの左側
エッジ座標を求めることが好ましい。
In step S106, left edge points f1 and f2 of each pin as shown in FIG. 16B are calculated. Specifically, a straight line LE1, orthogonal to the profile measurement line LA1, and passing through the center points e1, e2.
The equation of LE2 is obtained, and X on the straight lines LE1 and LE2.
Profiles are taken with points whose coordinates are smaller and larger than the X-coordinates of the center points e1 and e2 of the pins by 4 of the lateral length of the chip component as start and end points. Then, a value smaller than the maximum value Dmax and larger than the minimum value Dmin of the density value in this profile is set as a threshold value, and based on a comparison between the threshold value and the density value, the left edge point of each of the above pins is determined using linear interpolation. The coordinates of f1 and f2 are obtained in sub-pixel units. At this time, when the number of pins on the screen is small, in order to increase the number of data for calculating the position and inclination of the component center of gravity and increase the accuracy, a plurality of thresholds are set, for example, Dmin + (Dmax−Dmin) · 1 / 3, Dmin + (Dmax-
It is preferable to set three types of thresholds, ie, Dmin) ・, Dmin + (Dmax−Dmin) ・ 、, and obtain the left edge coordinates of each pin for each.

【0073】ステップS107では、左辺ピン列の中心
点g1の位置を計算する。具体的には、上記各ピンの左
側エッジ点f1,f2の座標からこれらの中心点g1の
座標を求め、この際、上記のように各ピンの左側エッジ
点f1,f2が3種類の閾値についてそれぞれ求められ
ている場合は、その3種類についてそれぞれ中心点g1
の座標を求める。
In step S107, the position of the center point g1 of the pin array on the left side is calculated. Specifically, the coordinates of the center point g1 are obtained from the coordinates of the left edge points f1 and f2 of each pin. At this time, the left edge points f1 and f2 of each pin are If each is obtained, the center point g1 for each of the three types is obtained.
Find the coordinates of.

【0074】また、ステップS108〜S111では、
ステップS104〜S107と同様の処理により、右辺
側の上下のコーナー候補点NE2,SE1を通るプロフ
ィール測定ラインLA2に沿ったプロフィールをとり、
このプロフィールから右辺各ピンの中心点e3,e4を
計算し、これらの中心点e3,e4に対応した右辺各ピ
ンの右側エッジ点f3,f4を検出し、これらのエッジ
点f3,f4に基づいて右辺ピン列の中心点g2を計算
する。
In steps S108 to S111,
By the same processing as steps S104 to S107, a profile is taken along the profile measurement line LA2 passing through the upper and lower corner candidate points NE2 and SE1 on the right side,
The center points e3 and e4 of the right side pins are calculated from this profile, the right edge points f3 and f4 of the right side pins corresponding to the center points e3 and e4 are detected, and based on these edge points f3 and f4. The center point g2 of the right side pin row is calculated.

【0075】ステップS112では、チップ部品の重心
位置w及び傾きを算出する。具体的には、左辺ピン列の
中心点g1と右辺ピン列の中心点g2とからこれらの中
点を求めるとともに、両ピン列の中心点g1,g2を通
る直線LGの方程式からその傾きを求め、これらをチッ
プ部品の重心w及び傾きとする。この際、左辺ピン列の
中心点g1と右辺ピン列の中心点g2とがそれぞれ上記
のように3種類求められている場合は、その3種類の各
々につき中点を求めてこれらを平均したものを重心wと
し、また、3種類の各々につき両ピン列の中心点g1,
g2を通る直線LGの傾きを求めてその平均値をチップ
部品の傾きとする。
In step S112, the position of the center of gravity w and the inclination of the chip component are calculated. Specifically, the midpoints of these are determined from the center point g1 of the left-side pin row and the center point g2 of the right-side pin row, and the slope thereof is calculated from the equation of a straight line LG passing through the center points g1 and g2 of both pin rows. These are the center of gravity w and the inclination of the chip component. At this time, when the three types of center point g1 of the left side pin row and the center point g2 of the right side pin row are obtained as described above, the center point is obtained for each of the three types, and these are averaged. Is the center of gravity w, and the center points g1,
The inclination of the straight line LG passing through g2 is obtained, and the average value is defined as the inclination of the chip component.

【0076】[電極上下配置の場合の処理] ステップS113〜S116では、上辺側の左右のコー
ナー候補点を通るプロフィール測定ラインに沿ったプロ
フィールをとり、このプロフィールから上辺各ピンの中
心点を計算し、これらの中心点に対応した上辺各ピンの
上側エッジ点を検出し、これらのエッジ点に基づいて上
辺ピン列の中心点を計算する。また、ステップS117
〜S120では、下辺側の左右のコーナー候補点を通る
プロフィール測定ラインに沿ったプロフィールをとり、
このプロフィールから下辺各ピンの中心点を計算し、こ
れらの中心点に対応した下辺各ピンの下側エッジ点を検
出し、これらのエッジ点に基づいて下辺ピン列の中心点
を計算する。そして、ステップS121では、上記上辺
ピン列の中心点と下辺ピン列の中心点とに基づいてチッ
プ部品の重心位置及び傾きを算出する。これらステップ
S113〜S121の処理は、電極左右配置の場合の処
理における左辺を上辺に、右辺を下辺に置き換えれば、
上記ステップS104〜S112と同様である。
[Processing for Electrode Vertical Arrangement] In steps S113 to S116, a profile is taken along a profile measurement line passing through the left and right corner candidate points on the upper side, and the center point of each upper side pin is calculated from this profile. , And detects the upper edge points of the upper pins corresponding to these center points, and calculates the center point of the upper pin row based on these edge points. Step S117
In S120, a profile is taken along the profile measurement line passing through the left and right corner candidate points on the lower side,
The center point of each lower side pin is calculated from the profile, the lower edge point of each lower side pin corresponding to these center points is detected, and the center point of the lower side pin row is calculated based on these edge points. In step S121, the center of gravity and the inclination of the chip component are calculated based on the center point of the upper pin row and the center point of the lower pin row. The processing in steps S113 to S121 is performed by replacing the left side with the upper side and the right side with the lower side in the processing in the case of the electrode left-right arrangement.
This is the same as steps S104 to S112.

【0077】以上のような認識方法第3例によると、斜
め方向の走査により左右もしくは上下の側辺部における
両端のピンのコーナー部が容易に、かつ確実に検出さ
れ、これに基づいて、ピン列を横切る方向のプロフィー
ル測定ラインLA1,LA2が適正に定められ、プロフ
ィール測定ラインLA1,LA2にばらつきを生じるこ
とがなくてプロフィール測定の精度が高められる。そし
て、このプロフィール測定ラインLA1,LA2に沿っ
たプロフィールからこのライン上における各ピンの中心
点が求められ、さらに各ピンのエッジ点、ピン列中心点
が順次求められ、両側ピン列中心点からチップ部品の重
心及び傾きが算出される。こうして、ミニトランジスタ
2D等のチップ部品の重心及び傾きが精度良く求められ
る。
According to the third example of the recognition method as described above, the corners of the pins at both ends in the left and right or upper and lower sides are easily and reliably detected by oblique scanning, and based on this, the pin The profile measurement lines LA1 and LA2 in the direction traversing the columns are properly determined, and the profile measurement lines LA1 and LA2 do not vary and the accuracy of profile measurement is increased. From the profiles along the profile measurement lines LA1 and LA2, the center point of each pin on this line is obtained, and the edge point of each pin and the pin row center point are sequentially obtained. The center of gravity and inclination of the part are calculated. In this way, the center of gravity and the inclination of the chip component such as the mini-transistor 2D can be obtained with high accuracy.

【0078】(4) 認識方法第4例 図17及び図18は、少なくとも一側辺部に複数のピン
を有するチップ部品を認識対象とし、とくに上記パワー
トランジスタ2E等の、片側の側辺部と反対側の側辺部
とでピンの個数、配置が異なるチップ部品を認識対象と
する場合に適する認識方法第4例をフローチャートで示
しており、この方法を、図19を参照しつつ説明する。
(4) Fourth Example of Recognition Method FIGS. 17 and 18 show a case in which a chip component having a plurality of pins on at least one side is to be recognized, and in particular, one side of the power transistor 2E and the like. A fourth example of a recognition method suitable for a case where a chip component having a different number of pins and an arrangement of pins on an opposite side portion is set as a recognition target is shown in a flowchart, and this method will be described with reference to FIG.

【0079】先ずステップS201では、上記第1例に
おけるステップS1と同様にしてコーナー部検出のため
の閾値を設定する。
First, in step S201, a threshold value for detecting a corner portion is set in the same manner as in step S1 in the first example.

【0080】それから、コーナー部を検出し、これに基
づいてチップ部品の重心位置及び傾きを求める処理を行
うが、本例では、これらの処理に先立って、電極が左右
に配置されているか上下に配置されているかを判定し
(ステップS202)、電極が左右に配置されている場
合は左右両辺うちのいずれの側のピン数が多いかを判定
し(ステップS203)、電極が上下に配置されている
場合は上下両辺うちのいずれの側のピン数が多いかを判
定する(ステップS204)。そして、電極が左右配置
で左辺側のピン数が多い場合には、ステップS205の
コーナー部検出処理及びそれに基づくステップS206
〜S212の各処理を行い、電極が左右配置で右辺側の
ピン数が多い場合には、ステップS213のコーナー部
検出処理及びそれに基づくステップS214〜S220
の各処理を行う。また、電極が上下配置で上辺側のピン
数が多い場合には、ステップS221のコーナー部検出
処理及びそれに基づくステップS222〜S228の各
処理を行い、電極が上下配置で下辺側のピン数が多い場
合には、ステップS229のコーナー部検出処理及びそ
れに基づくステップS230〜S236の各処理を行
う。
Then, the corner portion is detected, and processing for obtaining the position of the center of gravity and the inclination of the chip component is performed based on the corner part. In this example, prior to these processings, the electrodes are arranged on the left or right or up and down. It is determined whether the electrodes are arranged (step S202). If the electrodes are arranged on the left and right, it is determined whether the number of pins on either side of the left or right side is large (step S203), and the electrodes are arranged vertically. If yes, it is determined which of the upper and lower sides has the larger number of pins (step S204). If the electrodes are arranged in the left and right direction and the number of pins on the left side is large, the corner portion detection process of step S205 and the step S206
Steps S212 to S212 are performed, and when the electrodes are arranged in the left and right direction and the number of pins on the right side is large, the corner part detection processing in step S213 and steps S214 to S220 based thereon are performed.
Are performed. When the electrodes are arranged vertically and the number of pins on the upper side is large, the corner portion detection processing of step S221 and the respective processing of steps S222 to S228 based thereon are performed, and the electrodes are arranged vertically and the number of pins on the lower side is large. In this case, the corner portion detection process in step S229 and the processes in steps S230 to S236 based thereon are performed.

【0081】[電極左右配置で左辺側のピン数が多い場
合の処理] ステップS205では、コーナー部検出の処理として、
図19(a)に示すように、X軸,Y軸に対して45°
傾斜した走査線Lsによる走査で、左辺のピン列の上下
両端のピンの外側コーナー部を検出し、これらのコーナ
ー部の各コーナー候補点NW1,NW2,SW1,SW
2を求める。
[Processing when the number of pins on the left side is large in electrode left-right arrangement] In step S205, the process of corner detection is as follows.
As shown in FIG. 19A, 45 ° with respect to the X axis and the Y axis.
The outer corners of the pins at the upper and lower ends of the pin row on the left side are detected by scanning with the inclined scanning line Ls, and the corner candidate points NW1, NW2, SW1, SW of these corners are detected.
Ask for 2.

【0082】次にステップS206では、左辺部分につ
いて、上記コーナー部検出に基づいて設定したプロフィ
ール測定ラインLAに沿って濃度値のプロフィールをと
る。つまり、プロフィール測定ラインLAが上下のコー
ナー候補点NW1,SW2を通るように、その始点ST
及び終点ENの座標を前記の(1)〜(4)式により設定し
(図19(a)参照)、このラインLAに沿ったプロフ
ィールをとる。
Next, in step S206, the profile of the density value is obtained for the left side along the profile measurement line LA set based on the above-mentioned corner detection. That is, the start point ST is set so that the profile measurement line LA passes through the upper and lower corner candidate points NW1 and SW2.
And the coordinates of the end point EN are set by the above equations (1) to (4) (see FIG. 19A), and a profile is taken along the line LA.

【0083】ステップS207では、上記プロフィール
に基づいて、左辺の各ピンの中心点h1,h2,h3の
位置を計算する。具体的には、上記プロフィールにおけ
る濃度値の最大値Dmax よりも小さくて最小値Dmin よ
りも大きい値、例えばDmin+(Dmax−Dmin)・1/
3を閾値とし、この閾値と濃度値との比較に基づき、上
記各ピンについてそれぞれ上下両エッジを直線状補間に
よりサブピクセル単位で求め、その中点の座標を各ピン
の中心点h1,h2,h3の位置として求める(図19
(b)参照)。
In step S207, the position of the center point h1, h2, h3 of each pin on the left side is calculated based on the profile. Specifically, a value smaller than the maximum value Dmax and larger than the minimum value Dmin of the density value in the profile, for example, Dmin + (Dmax-Dmin)) 1 /
3 as a threshold value, based on a comparison between the threshold value and the density value, the upper and lower edges of each of the pins are obtained in sub-pixel units by linear interpolation, and the coordinates of the center point are defined as the center points h1, h2, and h2 of the pins. h3 (FIG. 19)
(B)).

【0084】ステップS208では、図19(b)中に
示すような各ピンの左側エッジ点i1,i2,i3を算
出する。具体的には、上記プロフィール測定ラインLA
と直交し、かつ上記中心点h1,h2,h3を通る直線
LH1,LH2,LH3の方程式を求め、その直線LH
1,LH2,LH3上でX座標が各ピンの中心点h1,
h2,h3のX座標よりもチップ部品横方向長さの1/
2だけ小さい点及び大きい点を始点及び終点としたライ
ン上でプロフィールをとる。そして、このプロフィール
における濃度値の最大値Dmax よりも小さくて最小値D
min よりも大きい値、例えばDmin+(Dmax−Dmin)
・1/2を閾値とし、この閾値と濃度値との比較に基づ
き、上記各ピンの左側エッジ点i1,i2,i3を、直
線状補間を用いてサブピクセル単位で算出する。
In step S208, the left edge points i1, i2, i3 of each pin as shown in FIG. 19B are calculated. Specifically, the profile measurement line LA
And the equations of straight lines LH1, LH2, LH3 passing through the center points h1, h2, h3 are obtained, and the straight line LH
1, LH2, LH3, the X coordinate is the center point h1,
1 / one of the horizontal length of the chip component than the X coordinate of h2 and h3
The profile is taken on a line starting and ending with a point smaller and larger by two. Then, the minimum value D is smaller than the maximum value Dmax of the density value in this profile.
A value larger than min, for example, Dmin + (Dmax-Dmin)
Using 1/2 as a threshold value, based on a comparison between the threshold value and the density value, the left edge points i1, i2, and i3 of the respective pins are calculated in sub-pixel units using linear interpolation.

【0085】ステップS209では、上記各ピンの左側
エッジ点i1,i2,i3の配置に基づき、チップ部品
の傾きを算出する。具体的には、上記各エッジ点i1,
i2,i3のうちの2点の組合せの全て(図19に示す
例ではi1とi2、i1とi3、i2とi3の各組合
せ)についてそれぞれ、2点を通る直線に直交する直線
の傾きを求め、これを平均した値をチップ部品の傾きと
する。
In step S209, the inclination of the chip component is calculated based on the arrangement of the left edge points i1, i2 and i3 of the respective pins. Specifically, each of the edge points i1,
For all combinations of two points out of i2 and i3 (in the example shown in FIG. 19, each combination of i1 and i2, i1 and i3, and i2 and i3), the slope of a straight line orthogonal to a straight line passing through the two points is obtained. The average value is defined as the inclination of the chip component.

【0086】ステップS210では、上記各左側エッジ
点i1,i2,i3に基づいて左辺ピン列の中心点j1
を計算し、つまり、これらのエッジ点i1,i2,i3
の座標の中心(平均値)をピン列の中心点j1の座標と
する。
In step S210, the center point j1 of the left side pin row is determined based on the left side edge points i1, i2, i3.
, Ie, these edge points i1, i2, i3
Are the coordinates of the center point j1 of the pin row.

【0087】ステップS211では、上記傾きと上記左
辺ピン列の中心点j1とから求められる中心線の方向の
プロフィールに基づいて右辺のピンの右側エッジ点j2
を検出する(図19(c)参照)。具体的には、左辺の
ピン列の中心点j1を通り、傾きが上記チップ部品の傾
きと等しい直線(中心線)LJの方程式を求め、その直
線LJ上でX座標が左辺ピン列の中心点j1のX座標よ
りもチップ部品横方向長さの3/2だけ大きい点を始点
ST、左辺ピン列の中心点j1を終点ENとしてプロフ
ィールをとる。そして、このプロフィールにおける濃度
値の最大値Dmax よりも小さくて最小値Dmin よりも大
きい値、例えばDmin+(Dmax−Dmin)・1/2を閾
値とし、この閾値と濃度値との比較に基づき、上記直線
上における右辺ピンの右側エッジ点j2を直線状補間に
よりサブピクセル単位で求める。
In step S211, the right edge point j2 of the right side pin is determined based on the profile of the direction of the center line obtained from the inclination and the center point j1 of the left side pin row.
Is detected (see FIG. 19C). Specifically, an equation of a straight line (center line) LJ which passes through the center point j1 of the pin array on the left side and has the same inclination as the inclination of the chip component is obtained, and the X coordinate on the straight line LJ is the center point of the pin array on the left side. A profile is taken with a point larger than the X coordinate of j1 by 3/2 of the horizontal length of the chip component as a start point ST and a center point j1 of the left side pin row as an end point EN. Then, a value smaller than the maximum value Dmax and larger than the minimum value Dmin, for example, Dmin + (Dmax-Dmin) ・ of the density value in this profile is set as a threshold value, and based on a comparison between the threshold value and the density value, The right edge point j2 of the right side pin on the straight line is obtained for each sub-pixel by linear interpolation.

【0088】ステップS212では、上記ステップS2
10で求めた左辺ピン列の中心点j1と上記ステップS
211で求めた右辺ピンの右側エッジ点j2との中点
を、チップ部品の重心wとして算出する。
In step S212, step S2
10 and the center point j1 of the left side pin row
The midpoint between the right edge pin j2 and the right edge point j2 of the right pin determined in 211 is calculated as the center of gravity w of the chip component.

【0089】[電極左右配置で右辺側のピン数が多い場
合の処理] ステップS213では、斜め45°の走査で、右辺のピ
ン列の上下両端のピンの外側コーナー部を検出し、ステ
ップS214では上記コーナー部検出に基づいて右辺側
のプロフィールをとり、ステップS215では上記プロ
フィールから右辺各ピンの中心点の位置を計算し、ステ
ップS216では上記各中心点に対応した各ピンの右側
エッジ点の位置を検出する。さらに、ステップS217
では上記各右側エッジ点の配置からチップ部品の傾きを
算出し、ステップS218では上記各右側エッジ点から
右辺ピン列の中心点の位置を計算し、ステップS219
では左辺のピンの左側エッジ点を検出し、ステップS2
20では上記右辺ピン列の中心点と左辺のピンの左側エ
ッジ点とからチップ部品の重心の位置を算出する。
[Processing when the Number of Pins on the Right Side is Large in Electrode Left-Right Arrangement] In step S213, the outer corners of the pins at the upper and lower ends of the pin array on the right side are detected by oblique scanning at 45 °. The profile on the right side is obtained based on the corner detection, and the position of the center point of each pin on the right side is calculated from the profile in step S215, and the position of the right edge point of each pin corresponding to the center point is calculated in step S216. Is detected. Further, step S217
Then, the inclination of the chip component is calculated from the arrangement of the respective right edge points. In step S218, the position of the center point of the right side pin row is calculated from the respective right edge points.
In step S2, the left edge point of the left pin is detected.
In step 20, the position of the center of gravity of the chip component is calculated from the center point of the right side pin row and the left edge point of the left side pin.

【0090】これらステップS213〜S220の処理
は、左辺側のピン数が多い場合の処理における左辺、右
辺を置き換えれば、上記ステップS205〜S212と
同様である。
The processes in steps S213 to S220 are the same as steps S205 to S212 described above, except that the left side and right side in the process when the number of pins on the left side is large are replaced.

【0091】[電極上下配置で上辺側のピン数が多い場
合の処理] ステップS221では、斜め45°の走査で、上辺のピ
ン列の左右両端のピンの外側コーナー部を検出し、ステ
ップS222では上記コーナー部検出に基づいて上辺側
のプロフィールをとり、ステップS223では上記プロ
フィールから上辺各ピンの中心点の位置を計算し、ステ
ップS224では上記各中心点に対応した各ピンの上側
エッジ点の位置を検出する。さらに、ステップS225
では上記各上側エッジ点の配置からチップ部品の傾きを
算出し、ステップS226では上記各上側エッジ点から
上辺ピン列の中心点の位置を計算し、ステップS227
では下辺のピンの下側エッジ点を検出し、ステップS2
28では上記上辺ピン列の中心点と下辺のピンの下側エ
ッジ点とからチップ部品の重心の位置を算出する。
[Processing when the number of pins on the upper side is large in electrode vertical arrangement] In step S221, the outer corners of the pins at the left and right ends of the upper side pin row are detected by oblique scanning at 45 °. The profile of the upper side is obtained based on the corner detection, the position of the center point of each pin on the upper side is calculated from the profile in step S223, and the position of the upper edge point of each pin corresponding to each center point is calculated in step S224. Is detected. Further, step S225
Then, the inclination of the chip component is calculated from the arrangement of the respective upper edge points. In step S226, the position of the center point of the upper side pin row is calculated from the respective upper edge points.
In step S2, the lower edge point of the lower pin is detected.
In step 28, the position of the center of gravity of the chip component is calculated from the center point of the upper pin row and the lower edge point of the lower pin.

【0092】これらステップS221〜S228の処理
は、電極左右配置で左辺側のピン数が多い場合の処理に
おける左辺を上辺に、右辺を下辺に置き換えれば、上記
ステップS205〜S212と同様である。
The processes of steps S221 to S228 are the same as steps S205 to S212 described above, except that the left side is replaced by the upper side and the right side is replaced by the lower side in the processing when the number of pins on the left side is large in the left-right electrode arrangement.

【0093】[電極上下配置で下辺側のピン数が多い場
合の処理] ステップS229では、斜め45°の走査で、下辺のピ
ン列の左右両端のピンの外側コーナー部を検出し、ステ
ップS230では上記コーナー部検出に基づいて下辺側
のプロフィールをとり、ステップS231では上記プロ
フィールから下辺各ピンの中心点の位置を計算し、ステ
ップS232では上記各中心点に対応した各ピンの下側
エッジ点の位置を検出する。さらに、ステップS233
では上記各下側エッジ点の配置からチップ部品の傾きを
算出し、ステップS234では上記各下側エッジ点から
下辺ピン列の中心点の位置を計算し、ステップS235
では上辺のピンの上側エッジ点を検出し、ステップS2
36では上記下辺ピン列の中心点と上辺のピンの上側エ
ッジ点とからチップ部品の重心の位置を算出する。
[Processing when the number of pins on the lower side is large due to the vertical arrangement of the electrodes] In step S229, the outer corners of the pins on the left and right ends of the lower row of pins are detected by oblique scanning at 45 °. The profile of the lower side is obtained based on the corner detection, the position of the center point of each lower side pin is calculated from the profile in step S231, and the lower edge point of each pin corresponding to the respective center point is calculated in step S232. Detect the position. Further, step S233
Then, the inclination of the chip component is calculated from the arrangement of the lower edge points. In step S234, the position of the center point of the lower pin row is calculated from the lower edge points.
In step S2, the upper edge point of the upper pin is detected.
At 36, the position of the center of gravity of the chip component is calculated from the center point of the lower pin row and the upper edge point of the upper pin.

【0094】これらステップS229〜S236の処理
は、電極左右配置で左辺側のピン数が多い場合の処理に
おける左辺を下辺に、右辺を上辺に置き換えれば、上記
ステップS205〜S212と同様である。
The processing in steps S229 to S236 is the same as the processing in steps S205 to S212 except that the left side is replaced with the lower side and the right side is replaced with the upper side in the processing when the number of pins on the left side is large in the left-right electrode arrangement.

【0095】以上のような認識方法第4例によると、斜
め方向の走査によりピン数の多い側辺部における両端の
ピンのコーナー部が容易に、かつ確実に検出され、これ
に基づいて、この側辺部のピン列を横切る方向のプロフ
ィール測定ラインLAが適正に定められ、プロフィール
測定ラインにばらつきを生じることがなくてプロフィー
ル測定の精度が高められる。そして、このプロフィール
測定ラインに沿ったプロフィールからこのライン上にお
ける各ピンの中心点が求められ、さらに各ピンのエッジ
点が求められ、これらのエッジ点の配置からチップ部品
の傾きが求められるとともに、この側辺部エッジ側にお
けるピン列中心点、中心線上の反対側の側辺部のエッジ
点、チップ部品の重心が順次求められる。こうして、パ
ワートランジスタ2E等のチップ部品の重心及び傾きが
精度良く求められることとなる。
According to the fourth example of the recognition method described above, the corners of the pins at both ends in the side portion having a large number of pins are easily and reliably detected by scanning in the oblique direction. The profile measurement line LA in the direction crossing the pin array on the side portion is properly determined, and the profile measurement line is not varied and the accuracy of the profile measurement is increased. Then, the center point of each pin on this line is determined from the profile along the profile measurement line, the edge points of each pin are further determined, and the inclination of the chip component is determined from the arrangement of these edge points, The pin row center point on the side edge, the edge point on the opposite side on the center line, and the center of gravity of the chip component are sequentially obtained. Thus, the center of gravity and the inclination of the chip component such as the power transistor 2E can be obtained with high accuracy.

【0096】(5)その他 コーナー部の判別の他の例 上記各具体例に示すような認識方法の中で、斜め45°
の走査でコーナー部の検出を行う処理として、前述の図
10に示す例では、対象画素の濃度が閾値以上で、か
つ、これより中心側の画素の濃度も閾値以上であること
をコーナー候補点の条件としているが、大きいノイズが
存在する場合等の誤判定を確実に防止するため、次に述
べるような追跡を用いた手法でコーナー候補点を判別す
ることがより一層好ましい。
(5) Others Other Examples of Discriminating Corners Among the recognition methods shown in the above-described specific examples, an angle of 45 ° is used.
In the example shown in FIG. 10 described above, the process of detecting a corner portion by the scanning of the corner candidate point indicates that the density of the target pixel is equal to or higher than the threshold value and the density of the pixel on the center side is higher than the threshold value. However, in order to reliably prevent an erroneous determination when a large noise exists, it is more preferable to determine a corner candidate point by a method using tracking as described below.

【0097】この手法を、図20に示すようなチップ部
品20のピン201,202のコーナー候補点NW,N
E,SW,SEを判別する場合を例にとって説明する。
This method is applied to the corner candidate points NW and N of the pins 201 and 202 of the chip component 20 as shown in FIG.
A case where E, SW, and SE are determined will be described as an example.

【0098】ピン201の左上コーナー部を検出する場
合、斜め45°の走査で判別対象点(濃度が閾値を越え
る画素)が見つかると、先ず第1条件として、図21に
示すような対象点の周囲の各画素(右上から反時計回り
に順に「1」「2」「3」「4」「5」「6」「7」
「0」とする)のうちで「2」「3」「4」の画素の濃
度値が閾値以下であることを調べる。この条件が成立す
ると、次に上記対象点を起点として上辺部の追跡を行
う。具体的には、その右側の「1」「0」「7」の3画
素をこの順に調べ、濃度が閾値を越えていればその画素
に起点を移して再びその右側の3画素を調べ、このよう
な追跡処理を、上記3画素(「1」「0」「7」)の濃
度がすべて閾値以下となるまで繰り返す。従って、上記
判別対象点が正しいコーナー候補点NWであれば、この
対象点からピン201の上辺部右端まで追跡が行われる
こととなる。
In the case of detecting the upper left corner of the pin 201, when a determination target point (a pixel whose density exceeds the threshold value) is found by scanning at an angle of 45 °, first, as a first condition, the target point as shown in FIG. Surrounding pixels ("1", "2", "3", "4", "5", "6", "7"
It is checked that the density values of the pixels “2”, “3”, and “4” among the pixels “0”) are equal to or smaller than the threshold value. When this condition is satisfied, the upper side is tracked starting from the target point. Specifically, the three pixels “1”, “0”, and “7” on the right side are examined in this order. If the density exceeds the threshold, the starting point is moved to the pixel and the three pixels on the right side are examined again. Such tracking processing is repeated until the density of all of the three pixels (“1”, “0”, “7”) becomes equal to or less than the threshold. Therefore, if the discrimination target point is a correct corner candidate point NW, tracking is performed from this target point to the right end of the upper side of the pin 201.

【0099】そして、判別の第2条件として、この追跡
の繰り返し回数とライブラリデータで与えられるピン幅
相当値とを比較して両者の偏差が所定の許容範囲にある
という条件が成立するか否かを調べ、これが成立すれ
ば、上記判別対象点をコーナー候補点NWとする。な
お、上記第1条件が成立しないときや、第1条件が成立
しても上記第2条件が成立しないときには、上記斜め4
5°の走査を引き続き行って、他の判別対象点を探す。
Then, as a second condition for determination, the number of repetitions of the tracking is compared with the pin width equivalent value given by the library data, and it is determined whether or not the condition that the deviation between the two is within a predetermined allowable range is satisfied. Is checked, and if this is satisfied, the above-mentioned determination target point is set as a corner candidate point NW. Note that when the first condition is not satisfied, or when the second condition is not satisfied even if the first condition is satisfied,
The scanning at 5 ° is continuously performed to search for another determination target point.

【0100】また、ピン201の右上コーナー部を検出
する場合には、判別対象点の周囲の各画素のうちで
「0」「1」「2」の画素の濃度値が閾値以下であるこ
とを第1条件とし、この条件が成立すると、起点の左側
の「3」「4」「5」の3画素をこの順に調べるように
して、その3画素の濃度が閾値以下となるまで追跡を繰
り返す。ピン202の左下コーナー部を検出する場合に
は、判別対象点の周囲の各画素のうちで「4」「5」
「6」の画素の濃度値が閾値以下であることを第1条件
とし、この条件が成立すると、起点の右側の「7」
「0」「1」の3画素をこの順に調べるようにして、そ
の3画素の濃度が閾値以下となるまで追跡を繰り返す。
ピン202の右下コーナー部を検出する場合には、判別
対象点の周囲の各画素のうちで「6」「7」「0」の画
素の濃度値が閾値以下であることを第1条件とし、この
条件が成立すると、起点の左側の「5」「4」「3」の
3画素をこの順に調べるようにして、その3画素の濃度
が閾値以下となるまで追跡を繰り返す。
When the upper right corner of the pin 201 is detected, it is determined that the density values of the pixels “0”, “1”, and “2” among the pixels around the determination target point are equal to or smaller than the threshold value. As a first condition, when this condition is satisfied, the three pixels "3", "4", and "5" on the left side of the starting point are examined in this order, and tracking is repeated until the density of the three pixels becomes equal to or less than the threshold. When detecting the lower left corner of the pin 202, “4” and “5” are selected from the pixels around the determination target point.
The first condition is that the density value of the pixel “6” is equal to or less than the threshold value, and when this condition is satisfied, “7” on the right side of the starting point
The three pixels “0” and “1” are examined in this order, and the tracking is repeated until the density of the three pixels becomes equal to or less than the threshold.
When the lower right corner of the pin 202 is detected, the first condition is that the density values of the pixels “6”, “7”, and “0” among the pixels around the determination target point are equal to or less than the threshold value. When this condition is satisfied, the three pixels "5", "4", and "3" on the left side of the starting point are examined in this order, and tracking is repeated until the density of the three pixels becomes equal to or less than the threshold.

【0101】そして、これら右上コーナー部、左下コー
ナー部、右下コーナー部の各場合でも、追跡の繰り返し
回数とピン幅相当値との偏差が所定の許容範囲にあれ
ば、判別対象点をコーナー候補点NE,SW,SEとす
る。
In each of the upper right corner, lower left corner, and lower right corner, if the deviation between the number of times of repetition of tracking and the pin width equivalent value is within a predetermined allowable range, the point to be determined is a corner candidate. Points NE, SW, and SE are assumed.

【0102】このようなコーナー部判別の手法による
と、仮に判別対象点がノイズであった場合には、上記繰
り返し回数がピン幅相当値より小さくて上記偏差が許容
範囲外となるので、ノイズによる誤判定を確実に防止す
ることができる。また、仮に判別対象点が上記チップ部
品20の本体200のコーナー部NW′,NE′,S
W′,SE′であった場合には上記繰り返し回数が大き
くなることで上記偏差が許容範囲外にとなるため、図2
0に示すような部品20でもピン201,202のコー
ナー部と本体200のコーナー部とを混同することがな
く、正確にコーナー部の判別を行うことができる。
According to such a corner portion discrimination method, if the discrimination target point is noise, the number of repetitions is smaller than the pin width equivalent value and the deviation falls outside the allowable range. Erroneous determination can be reliably prevented. Also, if the determination target point is a corner portion NW ', NE', S of the main body 200 of the chip component 20,
In the case of W ′ and SE ′, the deviation becomes outside the allowable range due to the increase in the number of repetitions.
Even with the component 20 shown as 0, the corners of the pins 201 and 202 and the corners of the main body 200 are not confused, and the corners can be accurately determined.

【0103】プロフィールに基づくエッジ点計算の手
法の他の例 上記認識方法の各具体例の中には、プロフィールに基づ
きエッジ点を補間によりサブピクセル単位で計算する処
理があり、この処理として、具体例の説明の中では一次
元補間(図12及び前記の(5)式参照)を行っているが、
計算の精度を高めるため、次に説明するような二次元的
な補間を行うことがより一層望ましい。本例の二次元的
な補間の手法を、図22のようなy=ax+b(a<
1)で表される直線上でプロフィールをとって最初に閾
値を超える点の座標を求める場合について説明する。
Another Example of Method of Calculating Edge Points Based on Profiles Among the specific examples of the above-described recognition methods, there is a process of calculating edge points in sub-pixel units by interpolation based on a profile. In the description of the example, one-dimensional interpolation (see FIG. 12 and the above equation (5)) is performed.
In order to increase the accuracy of the calculation, it is even more desirable to perform two-dimensional interpolation as described below. The two-dimensional interpolation method of the present example is described as y = ax + b (a <
A case will be described in which a profile is taken on the straight line represented by 1) and coordinates of a point exceeding the threshold value are first obtained.

【0104】先ず、プロフィール段階においてx座標が
整数値の各点の濃度値を求めて行く場合に、一次元的手
法によるとy方向の補間を行わない値(x座標に対する
値に最も近い整数値のy座標の位置の濃度値、図22中
の黒丸印の濃度値)が順に一次元配列に格納されるが、
本例の手法では、y座標の値を少数(図22中の×印)
で考える。そして、位置x0での濃度値F(x0)を
First, in the profile stage, when calculating the density value at each point where the x coordinate is an integer, a value that does not perform interpolation in the y direction according to the one-dimensional method (the integer value closest to the value for the x coordinate) , The density value at the position of the y-coordinate, and the density value indicated by a black circle in FIG. 22) are sequentially stored in a one-dimensional array.
In the method of the present example, the value of the y coordinate is set to a small number (x in FIG. 22).
Think at. Then, the density value F (x 0 ) at the position x 0 is

【0105】[0105]

【数6】 F(x0)=F(x0,〔ax0+b〕){1−(ax0−〔ax0〕)} +F(x0,〔ax0+b〕+1)(ax0−〔ax0〕) として、順に一次元配列に格納する。ただし、この式に
おいて、〔ax0+b〕、〔ax0〕はそれぞれax0
b、ax0の値を超えない最大の整数を表す。また、F
(x0,〔ax0+b〕)、F(x0,〔ax0+b〕+
1)はそれぞれ(x0,〔ax0+b〕)、(x0,〔a
0+b〕+1)の各座標位置の画素の濃度値である。
F (x 0 ) = F (x 0 , [ax 0 + b]) {1− (ax 0 − [ax 0 ])} + F (x 0 , [ax 0 + b] +1) (ax 0 − [Ax 0 ]) are sequentially stored in a one-dimensional array. However, in this equation, [ax 0 + b] and [ax 0 ] are respectively ax 0 +
b, representing the maximum integer that does not exceed the value of ax 0. Also, F
(X 0 , [ax 0 + b]), F (x 0 , [ax 0 + b] +
1) are (x 0 , [ax 0 + b]), (x 0 , [a
x 0 + b] +1) is the density value of the pixel at each coordinate position.

【0106】次に、この一次元配列を順に見てゆき、i
番目の要素diで始めて閾値θを超えたとすると、その
座標(x1,y1)を次のように求める。
Next, this one-dimensional array is sequentially examined, and i
Th first time When exceeding the threshold value θ in element d i, obtains the coordinates (x 1, y 1) as follows.

【0107】[0107]

【数7】 x1=xs+i−(di−θ)/(di−di-1) y1=ax1+b ただし、xsはプロフィールの始点のx座標である。Equation 7] x 1 = x s + i- ( d i -θ) / (d i -d i-1) y 1 = ax 1 + b However, x s is the x coordinate of the start point of the profile.

【0108】このように本例の手法では、プロフィール
段階での補間を含めた二次元的な補間を行っているの
で、プロフィールからエッジ点をサブピクセル単位で求
める処理を、より高精度に行うことができる。
As described above, in the method of the present embodiment, since the two-dimensional interpolation including the interpolation at the profile stage is performed, the process of obtaining the edge points from the profile in subpixel units can be performed with higher accuracy. Can be.

【0109】プロフィール測定ラインの始点、終点の
設定の仕方の他の例 認識方法第1例におけるステップS4,S6,のS1
6,S18処理でのプロフィール測定ラインの測定ライ
ンの始点、終点の設定の仕方としては、前記の(1)〜(4)
式に代えて
Another example of setting the start point and end point of profile measurement line S1 of steps S4, S6 in the first example of the recognition method
6, The setting method of the start point and the end point of the measurement line of the profile measurement line in the S18 processing is as described in the above (1) to (4).
Instead of the expression

【0110】[0110]

【数8】 Xs=NW2x−(SW1x−NW2x)+offset Ys=NW2y−(SW1y−NW2y) Xe=SW1x+(SW1x−NW2x)+offset Ye=SW1y+(SW1y−NW2y) とし、前記の(6)〜(9)式に代えてXs = NW2x- (SW1x-NW2x) + offset Ys = NW2y- (SW1y-NW2y) Xe = SW1x + (SW1x-NW2x) + offset Ye = SW1y + (SW1y-NW2y); ) Instead of

【0111】[0111]

【数9】 Xs=NE1x−(SE2x−NE1x)−offset Ys=NE1y−(SE2y−NE1y) Xe=SE2x+(SE2x−NE1x)−offset Ye=SE2y+(SE2y−NE1y) とし、前記の(10)〜(13)式に代えてXs = NE1x- (SE2x-NE1x) -offset Ys = NE1y- (SE2y-NE1y) Xe = SE2x + (SE2x-NE1x) -offset Ye = SE2y + (SE2y-NE1y); Instead of equation (13)

【0112】[0112]

【数10】 Xs=NW1x−(NE2x−NW2x) Ys=NW1y−(NE2y−NW1y)+offset Xe=NE2x+(NE2x−NW1x) Ye=NE2y+(NE2y−NW1y)+offset とし、前記の(14)〜(17)式に代えてXs = NW1x- (NE2x-NW2x) Ys = NW1y- (NE2y-NW1y) + offset Xe = NE2x + (NE2x-NW1x) Ye = NE2y + (NE2y-NW1y) + offset of (NE2y-NW1y) + offset ) Instead of

【0113】[0113]

【数11】 Xs=SW2x−(SE1x−SW2x) Ys=SW2y−(SE1y−SW2y)−offset Xe=SE1x+(SE1x−SW2x) Ye=SE1y+(SE1y−SW2y)−offset としてもよい。ただし、offsetはライブラリデー
タに登録されている値である。
Xs = SW2x− (SE1x−SW2x) Ys = SW2y− (SE1y−SW2y) −offset Xe = SE1x + (SE1x−SW2x) Ye = SE1y + (SE1y−SW2y) −offset. Here, offset is a value registered in the library data.

【0114】[0114]

【発明の効果】以上説明したように、本発明は、チップ
部品の画像を表した上記処理ウインド内を走査する走査
線を、処理ウインドのX軸方向及びY軸方向に対して傾
斜した方向に設定し、とくに望ましくは45°に設定
し、この走査線を平行移動させつつ走査線に沿った斜め
方向の走査を行うことによりチップ部品のコーナー部を
検出し、その検出データに基づいてチップ部品の位置及
び傾きを求めるようにしている。このため、チップ部品
の画像が小さい場合でも、上記コーナー部を容易に、か
つ確実に検出することができ、それに基づいてチップ部
品の位置及び傾きを精度良く求めることができる。
As described above, according to the present invention, the scanning line for scanning the inside of the processing window representing the image of the chip component is inclined in the directions inclined with respect to the X-axis direction and the Y-axis direction of the processing window. Is set, particularly preferably set to 45 °, and a corner of the chip component is detected by performing an oblique scanning along the scanning line while moving the scanning line in parallel, and based on the detection data, The position and inclination of are determined. For this reason, even when the image of the chip component is small, the corner can be easily and reliably detected, and the position and inclination of the chip component can be accurately obtained based on the corner.

【0115】この方法において、画像が長方形もしくは
これに準じる形状となるチップ部品を認識対象とする場
合は、斜め方向の走査によるコーナー部の検出をチップ
部品の4つのコーナー部について順次行ない、その検出
データに基づいて設定した側辺部プロフィール測定ライ
ンに沿う濃度値のプロフィールから両側辺部におけるチ
ップ部品の中心点を求め、この2つの側辺部中心点を通
る中心線上の両側エッジ点の中点及び上記中心線の傾き
とを、チップ部品の重心及び傾きとして求めるようにす
ることにより、この種のチップ部品の位置及び傾きを精
度良く求めることができる。あるいは、上記側辺部プロ
フィール測定ラインと交差して特定点を通る2本の直線
を設定して、各直線上の両側エッジ点の中点を求め、そ
の中点に基づき、チップ部品の重心及び傾きとして求め
るようにすることによっても、精度を高めることができ
る。
In this method, when a chip component whose image has a rectangular shape or a similar shape is to be recognized, corner portions are detected by oblique scanning in order at four corner portions of the chip component, and the detection is performed. From the profile of the density value along the side profile measurement line set based on the data, the center point of the chip component on both sides is determined, and the midpoint of both side edge points on the center line passing through the two side center points By calculating the inclination of the center line and the center of gravity and inclination of the chip component, the position and inclination of this type of chip component can be obtained with high accuracy. Alternatively, two straight lines that intersect with the side profile measurement line and pass through a specific point are set, the midpoint of both side edge points on each straight line is obtained, and the center of gravity of the chip component and Accuracy can also be improved by obtaining the inclination.

【0116】また、両側辺部に複数のピンを有するチッ
プ部品を認識対象とする場合は、斜め方向の走査による
コーナー部の検出をチップ部品の両側辺部におけるピン
列の両端の外側コーナー部について行い、その検出デー
タに基づいて設定したプロフィール測定ラインに沿う濃
度値のプロフィールから両側辺部における各ピンの中心
点の位置を求め、この各ピンの中心点に対応する各ピン
のエッジ点をもとめ、これらのエッジ点に基づいて両側
辺部におけるピン列の中心を求め、この2つのピン列中
心の中点とこの2つのピン列中心を結ぶ直線の傾きと
を、チップ部品の重心及び傾きとして求めるようにする
ことにより、この種のチップ部品の位置及び傾きを精度
良く求めることができる。
When a chip component having a plurality of pins on both sides is to be recognized, the detection of a corner portion by oblique scanning is performed for the outer corners at both ends of the pin row on both sides of the chip component. From the profile of the density value along the profile measurement line set based on the detected data, the position of the center point of each pin on both sides is obtained, and the edge point of each pin corresponding to the center point of each pin is obtained. Based on these edge points, the centers of the pin rows on both sides are determined, and the center of the two pin rows and the slope of the straight line connecting the centers of the two pin rows are defined as the center of gravity and the slope of the chip component. By calculating, the position and inclination of this kind of chip component can be obtained with high accuracy.

【0117】また、少なくとも一側辺部に複数のピンを
有するチップ部品を認識対象とする場合は、斜め方向の
走査によるコーナー部の検出をチップ部品の一側辺部に
おけるピン列の両端の外側コーナー部について行い、そ
の検出データに基づいて設定したプロフィール測定ライ
ンに沿う濃度値のプロフィールから一側辺部における各
ピンの中心点の位置を求め、これに対応する各ピンのエ
ッジ点の位置を求め、これらのエッジ点に基づいて、チ
ップ部品の傾きを求めるとともに、一側辺部側のエッジ
におけるピン列の中心点とこれに対応する他側辺部側の
エッジ点を求め、チップ部品の重心を求めるようにする
ことにより、この種のチップ部品の位置及び傾きを精度
良く求めることができる。
When a chip component having a plurality of pins on at least one side is to be recognized, the detection of a corner by scanning in an oblique direction is performed outside the both ends of the pin row on one side of the chip component. The position of the center point of each pin on one side is obtained from the profile of the density value along the profile measurement line set based on the detection data, and the position of the corresponding edge point of each pin is determined for the corner. Then, based on these edge points, the inclination of the chip component is determined, and the center point of the pin row at one side edge and the corresponding edge point on the other side are determined to obtain the chip component. By determining the center of gravity, the position and inclination of this type of chip component can be accurately determined.

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

【図1】本発明のチップ部品の認識装置の一実施例を示
す概略図である。
FIG. 1 is a schematic view showing an embodiment of a chip component recognition apparatus according to the present invention.

【図2】(a)はチップ部品の具体例であるチップ抵抗
の斜視図であり、(b)はこのチップ抵抗の画像を示す
図である。
FIG. 2A is a perspective view of a chip resistor as a specific example of a chip component, and FIG. 2B is a diagram showing an image of the chip resistor.

【図3】チップ部品の具体例としてのタンタルコンデン
サの画像を示す図である。
FIG. 3 is a diagram showing an image of a tantalum capacitor as a specific example of a chip component.

【図4】チップ部品の具体例としてのアルミコンデンサ
の画像を示す図である。
FIG. 4 is a view showing an image of an aluminum capacitor as a specific example of a chip component.

【図5】(a)はチップ部品の具体例であるミニトラン
ジスタの斜視図であり、(b)はこのミニトランジスタ
の画像を示す図である。
FIG. 5A is a perspective view of a mini-transistor which is a specific example of a chip component, and FIG. 5B is a view showing an image of the mini-transistor.

【図6】チップ部品の具体例としてのパワートランジス
タの画像を示す図である。
FIG. 6 is a diagram showing an image of a power transistor as a specific example of a chip component.

【図7】認識方法第1例を示すフローチャートである。FIG. 7 is a flowchart illustrating a first example of a recognition method.

【図8】処理ウインドを示す説明図である。FIG. 8 is an explanatory diagram showing a processing window.

【図9】処理ウインド内を斜め方向に走査する手法の具
体例を示す説明図である。
FIG. 9 is an explanatory diagram showing a specific example of a method of scanning the inside of a processing window in an oblique direction.

【図10】コーナー部の検出の仕方の具体例を示す説明
図である。
FIG. 10 is an explanatory diagram showing a specific example of how to detect a corner portion.

【図11】(a)(b)(c)は上記認識方法第1例で
順次行われる処理を示す説明図である。
FIGS. 11 (a), (b) and (c) are explanatory diagrams showing processing performed sequentially in the first example of the recognition method.

【図12】濃度値のプロフィールおよびサブピクセル化
の仕方を示す説明図である。
FIG. 12 is an explanatory diagram showing a profile of a density value and a method of subpixel formation.

【図13】上記認識方法第1例において電極上下配置の
場合のプロフィール測定ラインを示す説明図である。
FIG. 13 is an explanatory diagram showing profile measurement lines in a case where electrodes are vertically arranged in the first example of the recognition method.

【図14】認識方法第2例の概略を示す説明図である。FIG. 14 is an explanatory diagram schematically showing a second example of the recognition method.

【図15】認識方法第3例を示すフローチャートであ
る。
FIG. 15 is a flowchart illustrating a third example of the recognition method.

【図16】(a)(b)は上記認識方法第3例で順次行
われる処理を示す説明図である。
FIGS. 16 (a) and (b) are explanatory views showing processing sequentially performed in the third example of the recognition method.

【図17】認識方法第4例を示すフローチャートの一部
分である。
FIG. 17 is a part of a flowchart showing a fourth example of the recognition method.

【図18】認識方法第4例を示すフローチャートの他の
部分である。
FIG. 18 is another part of the flowchart showing the fourth example of the recognition method.

【図19】(a)(b)(c)は上記認識方法第4例で
順次行われる処理を示す説明図である。
FIGS. 19 (a), (b) and (c) are explanatory views showing processing sequentially performed in the fourth example of the recognition method.

【図20】コーナー部の判別の他の例を示す説明図であ
る。
FIG. 20 is an explanatory diagram showing another example of determining a corner portion.

【図21】図20に示す例において用いる追跡の仕方を
示す説明図である。
FIG. 21 is an explanatory diagram showing a tracking method used in the example shown in FIG. 20;

【図22】プロフィールに基づくエッジ点計算の手法の
他の例を示す説明図である。
FIG. 22 is an explanatory diagram showing another example of a method of calculating an edge point based on a profile.

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

1 部品装着用ヘッド 2 チップ部品 3 カメラ 10 画像処理ユニット 12 画像メモリ 13 処理手段 14 コーナー部検出手段 15 演算手段 DESCRIPTION OF SYMBOLS 1 Component mounting head 2 Chip component 3 Camera 10 Image processing unit 12 Image memory 13 Processing means 14 Corner detection means 15 Calculation means

Claims (7)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 実装機の部品装着用ヘッドに吸着された
チップ部品を撮像した後、その画像を処理ウインド内に
表わし、この処理ウインド内の走査に基づき、チップ部
品の位置及び傾きを求めるチップ部品の認識方法であっ
て、上記処理ウインド内を走査する走査線を、処理ウイ
ンドのX軸方向及びY軸方向に対して傾斜した方向に設
定し、この走査線を平行移動させつつ走査線上の画像デ
ータを判別して、上記走査線がチップ部品のコーナー部
の頂点を挟む2辺を横切ったときにその2辺上の各位置
、濃度値と所定の閾値とを比較して検出することによ
りチップ部品のコーナー部を検出し、このコーナー部の
検出データに基づき、チップ部品の位置及び傾きを求め
ることを特徴とするチップ部品の認識方法。
An image of a chip component picked up by a component mounting head of a mounting machine is taken, the image is displayed in a processing window, and a position and a tilt of the chip component are determined based on scanning in the processing window. In the method for recognizing parts, a scanning line for scanning inside the processing window is set in a direction inclined with respect to the X-axis direction and the Y-axis direction of the processing window, and the scanning line is moved in parallel with the scanning line. The image data is determined, and the above scanning line is located at the corner of the chip component.
When the two sides sandwiching the vertex are crossed , each position on the two sides is detected by comparing the density value with a predetermined threshold value to detect a corner of the chip component, and the detected data of the corner is detected. A chip component recognition method, wherein a position and a tilt of the chip component are obtained based on the following.
【請求項2】 前記チップ部品のコーナー部の検出を、
前記走査線がチップ部品のコーナー部の頂点を挟む2辺
を横切ったときにその2辺上の各位置を検出することに
加えて、前記2辺上の各位置よりチップ部品の中心側で
あって、前記走査線の方向に垂直な方向における2位置
の画像データを判別することにより行うことを特徴とす
る請求項1記載のチップ部品の認識方法。
2. A method for detecting a corner portion of the chip component, comprising :
Two sides where the scanning line sandwiches the apex of the corner of the chip component
To detect each position on the two sides when crossing
In addition, at the center side of the chip component from each position on the two sides
And two positions in a direction perpendicular to the direction of the scanning line.
2. The method according to claim 1, wherein the recognition is performed by determining the image data .
【請求項3】 画像が長方形もしくはこれに準じる形状
となるチップ部品を認識対象とし、上記コーナー部の検
出をチップ部品の上記処理ウインド上における4つのコ
ーナー部における左上コーナー部及び右下コーナー部に
対する走査線の方向を右上がり斜めに設定し、左下コー
ナー部及び右上コーナー部に対する走査線の方向を右下
がり斜めに設定して順次行なうようにし、 チップ部品の位置及び傾きを求める処理としては、各コ
ーナー部の前記2位置の検出データのうち、チップ部品
上側にある一側辺部とこれとは反対側の側辺部とに
ける各左側の検出データに基づいて左側辺部プロフィー
ル測定ラインと、各右側の検出データに基づいて右側辺
部プロフィール測定ラインとを求め、求めたこれら左、
右側辺部プロフィール測定ラインの中心点同士を結ぶ中
心線と、この中心線の中心点とから、チップ部品の重心
及び傾きを求めるか、或いは、各コーナー部の前記2位
置の検出データのうち、チップ部品の左側にある一側辺
部とこれとは反対側の側辺部とにおける各上側の検出デ
ータに基づいて上側辺部プロフィール測定ラインと、各
下側の検出データに基づいて下側辺部プロフィール測定
ラインとを求め、求めたこれら上、下側辺部プロフィー
ル測定ラインの中心点同士を結ぶ中心線と、この中心線
の中心点とから、チップ部品の重心及び傾きを求める
とを特徴とする請求項1または2記載のチップ部品の認
識方法。
Wherein the image is a recognition target chip components to be rectangular or analogous thereto shape, upper left corner definitive detection of the corner portions to the four corners on the processing window of the chip component and the lower-right corner To
Set the scanning line direction to the upper right and diagonally
The direction of the scanning line to the corner and upper right corner is lower right
To carry out sequentially set to gully obliquely, as the position and the process of obtaining the inclination of the chip components, each co
Among the detected data of the two positions of the Na portion, Contact to the side portion opposite to the one side portion on the upper side of the chip component and this
The left side profile measurement line based on each left detection data and the right side profile based on each right detection data
Section profile measurement line and these left,
Connects the center points of the profile measurement lines on the right side
From the core wire and the center point of this center line, the center of gravity of the chip component
And inclination, or the second place in each corner
Among the detected data location, and the upper side portion profile measuring line and one side portion on the left side of the chip component and which on the basis of the above the detection data definitive in the side portion opposite to each
Lower side profile measurement based on lower side detection data
The line and the calculated upper and lower side profile
And the center line connecting the center points of the measurement lines.
The method for recognizing a chip component according to claim 1 or 2, wherein the center of gravity and the inclination of the chip component are obtained from the center point of (1).
【請求項4】 画像が長方形もしくはこれに準じる形状
となるチップ部品を認識対象とし、上記コーナー部の検
出をチップ部品の上記処理ウインド上における4つのコ
ーナー部における左上コーナー部及び右下コーナー部に
対する走査線の方向を右上がり斜めに設定し、左下コー
ナー部及び右上コーナー部に対する走査線の方向を右下
がり斜めに設定して順次行なうようにし、 チップ部品の位置及び傾きを求める処理としては、各コ
ーナー部の前記2位置の検出データのうち、チップ部品
上側にある一側辺部とこれとは反対側の側辺部とに
ける各左側の検出データに基づいて左側辺部プロフィー
ル測定ラインと、各右側の検出データに基づいて右側辺
部プロフィール測定ラインとを求め、上記左、右側辺部
プロフィール測定ライン上でそれぞれの中心点より上下
両側に所定量だけオフセットした2点ずつの特定点を求
める処理と、上記左、右側辺部プロフィール測定ライン
と交差してそれぞれの上側の特定点を通る直線と、それ
ぞれの下側の特定点を通る直線とを設定して、これら両
直線上の両側エッジ点の中点を求め、この各中点に基づ
いてチップ部品の重心及び傾きを求めるか、或いは、各
コーナー部の前記2位置の検出データのうち、チップ部
品の左側にある一側辺部とこれとは反対側の側辺部とに
おける各上側の検出データに基づいて上側辺部プロフィ
ール測定ラインと、各下側の検出データに基づいて下側
辺部プロフィール測定ラインとを求め、上記上、下側辺
部プロフィール測定ライン上でそれぞれの中心点より左
右両側に所定量だけオフセットした2点ずつの特定点を
求める処理と、上記上、下側辺部プロフィール測定ライ
ンと交差してそれぞれの左側の特定点を通る直線と、そ
れぞれの右側の特定点を通る直線とを設定して、これら
両直線上の両側エッジ点の中点を求め、この各中点に基
づいてチップ部品の重心及び傾きを求めることを特徴と
する請求項1または2記載のチップ部品の認識方法。
Wherein the image is a recognition target chip components to be rectangular or analogous thereto shape, upper left corner definitive detection of the corner portions to the four corners on the processing window of the chip component and the lower-right corner To
Set the scanning line direction to the upper right and diagonally
The direction of the scanning line to the corner and upper right corner is lower right
To carry out sequentially set to gully obliquely, as the position and the process of obtaining the inclination of the chip components, each co
Among the detected data of the two positions of the Na portion, Contact to the side portion opposite to the one side portion on the upper side of the chip component and this
The left side profile measurement line based on each left detection data and the right side profile based on each right detection data
Seeking a part profile measuring line, a process of determining the specific point of the left and the right side portion profile on the measurement line by two points offset by a predetermined amount in the vertical <br/> sides than the respective center points, the left , a straight line passing through the specific points of the respective upper and intersects the right side portion profile measurement line, it
Set a straight line that passes through the specific point below each, and
The midpoint of both side edge points on the straight line is obtained, and the center of gravity and the inclination of the chip component are obtained based on each midpoint , or
Of the detection data at the two positions of the corner portion, the tip portion
One side on the left side of the product and the opposite side
Upper side profile based on the upper detection data
Based on the measurement line and the detection data of each lower side.
Find the side profile measurement line and the upper and lower sides
Left of each center point on the section profile measurement line
Two specific points offset by a predetermined amount on both right sides
Process and the top and bottom side profile measurement lines
A straight line that crosses the
Set a straight line passing through the specific point on the right side of each
Find the midpoint of both side edge points on both straight lines, and
3. The method for recognizing a chip component according to claim 1, wherein the center of gravity and the inclination of the chip component are obtained based on the obtained value.
【請求項5】 上下両側辺部に複数のピンを有するチッ
プ部品を認識対象とする場合は、上記コーナー部の検出
をチップ部品の側辺部におけるピン列のピンの外
側コーナー部及び下側辺部におけるピン列の右端ピンの
外側コーナー部に対する走査線の方向を右上がり斜めに
設定し、チップ部品の上側辺部におけるピン列の右端ピ
ンの外側コーナー部及び下側辺部におけるピン列の左端
ピンの外側コーナー部に対する走査線の方向を右下がり
斜めに設定して行うようにし、チップ部品の位置及び傾
きを求める処理としては、上記側辺部における右端ピ
ンの外側コーナー部の上記2位置の検出データのうちの
右側にある検出データと左端ピンの外側コーナー部の上
記2位置の検出データのうちの左側にある検出データと
に基づいて上側のピン列方向のプロフィール測定ライン
を求め、求められた上側のピン列方向のプロフィール測
定ライン上の左右端の各ピンの中心点の位置を求める
ともに、上記下側辺部における右端ピンの外側コーナー
部の上記2位置の検出データのうちの右側にある検出デ
ータと左端ピンの外側コーナー部の上記2位置の検出デ
ータのうちの左側にある検出データとに基づいて下側の
ピン列方向のプロフィール測定ラインを求め、求められ
た下側のピン列方向のプロフィール測定ライン上の左右
端の各ピンの中心点の位置を求める処理と、上側左端と
上側右端における各ピンの中心点に対応する各ピンのエ
ッジ点の位置を求め、この各ピンのエッジ点に基づい
側辺部におけるピン列の中心を求めるとともに、下
側左端と下側右端における各ピンの中心点に対応する各
ピンのエッジ点の位置を求めて、この各ピンのエッジ点
に基づいて下側辺部におけるピン列の中心を求める処理
と、これら上側辺部におけるピン列の中心と下側辺部に
おけるピン列の中心との中点とこれら2つのピン列中心
を結ぶ直線の傾きとを、チップ部品の重心及び傾きとし
て求める処理とを行い、 一方、左右両側辺部に複数のピンを有するチップ部品を
認識対象とする場合は、上記コーナー部の検出をチップ
部品の左側辺部におけるピン列の上端ピンの外側コーナ
ー部及び右側辺部におけるピン列の下端ピンの外側コー
ナー部に対する走査線の方向を右上がり斜めに設定し、
チップ部品の左側辺部におけるピン列の下端ピンの外側
コーナー部及び右側辺部におけるピン列の上端ピンの外
側コーナー部に対する走査線の方向を右下がり斜めに設
定して行うようにし、チップ部品 の位置及び傾きを求め
る処理としては、上記左側辺部における下端ピンの外側
コーナー部の上記2位置の検出データのうちの下側にあ
る検出データと上端ピンの外側コーナー部の上記2位置
の検出データのうちの上側にある検出データとに基づい
て左側のピン列方向のプロフィール測定ラインを求め、
求められた左側のピン列方向のプロフィール測定ライン
上の上下端の各ピンの中心点の位置を求めるとともに、
上記右側辺部における下端ピンの外側コーナー部の上記
2位置の検出データのうちの下側にある検出データと上
端ピンの外側コーナー部の上記2位置の検出データのう
ちの上側にある検出データとに基づいて右側のピン列方
向のプロフィール測定ラインを求め、求められた右側の
ピン列方向のプロフィール測定ライン上の上下端の各ピ
ンの中心点の位置を求める処理と、左側上端と左側下端
における各ピンの中心点に対応する各ピンのエッジ点の
位置を求めて、この各ピンのエッジ点に基づいて左側辺
部におけるピン列の中心を求めるとともに、右側上端と
右側下端における各ピンの中心点に対応する各ピンのエ
ッジ点の位置を求めて、この各ピンのエッジ点に基づい
て右側辺部におけるピン列の中心を求める処理と、これ
ら左側辺部におけるピン列の中心と右側辺部におけるピ
ン列の中心との中点とこれら2つのピン列中心を結ぶ直
線の傾きとを、チップ部品の重心及び傾きとして求める
処理とを行う ことを特徴とする請求項1または2記載の
チップ部品の認識方法。
5. When to be recognized a chip component having a plurality of pins on both upper and lower sides sides, the outer corner of the left end pin of the pin array of the detection of the corner portion of the upper side portion of the chip component and The rightmost pin of the pin row on the lower side
The direction of the scanning line with respect to the outer corners
And set the right end pin of the pin row on the upper side of the chip component.
Left end of pin row at outer corner and lower side of pin
Lower scan line direction to outer corner of pin
To perform set obliquely, as the position and obtains the inclination processing of the chip component, the right end in the upper side portion Pi
Of the detected data at the above two positions at the outer corner of the
Above the detection data on the right and the outer corner of the left pin
The detection data on the left side of the detection data at the two positions
Then, the profile measurement line in the upper pin row direction is obtained based on the above, and the position of the center point of each of the right and left ends of the pin on the obtained upper pin row direction profile measurement line is obtained.
Both are the outer corners of the right end pin on the lower side
Of the detection data at the right side of the detection data at the above two positions.
Data of the above two positions at the outer corners of the data and the left end pin.
Data based on the detection data on the left side of the
Find the profile measurement line in the pin row direction,
Left and right on the profile measurement line in the lower pin row direction
Processing to determine the position of the center point of each pin at the end,
Seeking the position of the edge point of each pin corresponding to the center point of each pin in the upper right end portions to determine the center of the pin array in the upper side portion on the basis of the edge point of each pin, the lower
Corresponding to the center point of each pin at the left side and the bottom right side
Find the position of the edge point of the pin, and find the edge point of each pin
Of Finding the Center of the Pin Row in the Lower Side Based on
And the center of the pin row and the lower side of these upper sides.
A slope of a straight line connecting the middle point and the two pin rows center and the center of definitive pin rows, performs a process of determining a centroid and the inclination of the chip component, on the other hand, a chip having a plurality of pins on the left and right both side portions Parts
If the target is to be recognized, use the chip to detect the corner
Outer corner of the top pin of the pin row on the left side of the part
The outer core of the pin row at the
The scanning line direction to the corner
Outside the lower end pin of the pin row on the left side of the chip component
Outside the upper end pin of the pin row at the corner and right side
Set the scanning line to the right corner
And determine the position and inclination of the chip component.
The process is performed outside the lower end pin on the left side.
On the lower side of the detection data of the above two positions of the corner,
Detection data and the above two positions of the outer corner of the upper end pin
Based on the upper detection data of the detection data of
To find the profile measurement line in the left pin row direction,
Determined profile measurement line in left pin row direction
Find the position of the center point of each pin at the top and bottom,
The outer corner of the lower end pin on the right side
Upper and lower detection data of two positions
The detection data at the above two positions at the outer corners of the end pin
The pin array on the right side based on the detection data on the upper side
Direction profile measurement line, and find the right side
Upper and lower pins on the profile measurement line in the pin row direction
Process to determine the position of the center point of the
Of the edge point of each pin corresponding to the center point of each pin in
Find the position, and based on the edge point of each pin, the left side
Find the center of the pin row in the
The edge of each pin corresponding to the center point of each pin at the lower right corner
The edge point of each pin
Processing to find the center of the pin row on the right side
The center of the pin row on the left side and the pin on the right side.
A straight line connecting the center of the pin row and the center of these two pin rows
Find the slope of the line as the center of gravity and slope of the chip component
3. The method for recognizing a chip component according to claim 1, wherein the process is performed .
【請求項6】 少なくとも上下の一方である一側辺部に
複数のピンを有するチップ部品を認識対象とする場合
は、上記コーナー部の検出をチップ部品の上記一側辺部
におけるピン列のピンの外側コーナー部に対する走
査線の方向を右上がり斜めまたは右下がり斜めに設定
し、右端ピンの外側コーナー部に対する走査線の方向を
右下がり斜めまたは右上がり斜めに設定して行うように
し、チップ部品の位置及び傾きを求める処理としては、
上記側辺部における右端ピンの外側コーナー部の上記2
位置の検出データのうちの右側にある検出データと左端
ピンの外側コーナー部の上記2位置の検出データのうち
の左側にある検出データとに基づいてピン列方向のプロ
フィール測定ラインを求め、求められたピン列方向のプ
ロフィール測定ライン上の左右端の各ピンの中心点の位
置を求め、この各ピンの中心点に対応する各ピンのエッ
ジ点の位置を求める処理と、この各ピンのエッジ点の配
置に基づいてチップ部品の傾きを求める処理と、上記各
ピンのエッジ点に基づいて一側辺部側のエッジにおける
ピン列の中心を求め、この一側辺部のエッジにおけるピ
ン列の中心と上記チップ部品の傾きとに基づいて求めた
中心線上の濃度値のプロフィールから、この中心線上の
他側辺部側のエッジ点を検出し、上記一側辺部のエッジ
におけるピン列の中心と上記中心線上の他側辺部側のエ
ッジ点とからチップ部品の重心を求める処理とを行い、 一方、少なくとも左右の一方である一側辺部に複数のピ
ンを有するチップ部品を認識対象とする場合は、上記コ
ーナー部の検出をチップ部品の上記一側辺部におけるピ
ン列の上端ピンの外側コーナー部に対する走査線の方向
を右上がり斜めまたは右下がり斜めに設定し、下端ピン
の外側コーナー部に対する走査線の方向を右下がり斜め
または右上がり斜めに設定して行うようにし、チップ部
品の位置及び傾きを求める処理としては、上記側辺部に
おける下端ピンの外側コーナー部の上記2位置の検出デ
ータのうちの下側にある検出データと上端ピンの外側コ
ーナー部の上記2位置の検出データのうちの上側にある
検出データとに基づいてピン列方向のプロフィール測定
ラインを求め、求められたピン列方向のプロフィール測
定ライン上の上下端の各ピンの中心点の位置を求め、こ
の各ピンの中心点に対応する各ピンのエッジ点の位置を
求める処理と、この各ピンのエッジ点の配置に基づいて
チップ部品の傾きを求める処理と、上記各ピンのエッジ
点に基づいて一側辺部側のエッジにおけるピン列の中心
を求め、この一側辺部のエッジにおけるピン列の中心と
上記チップ部品の傾きとに基づいて求めた中心線上の濃
度値のプロフィールから、この中心線上の他側辺部側の
エッジ点を検出し、上記一側辺部のエッジにおけるピン
列の中心と上記中心線上の他側辺部側のエッジ点とから
チップ部品の重心を求める処理とを行う ことを特徴とす
る請求項1または2記載のチップ部品の認識方法。
6. A case in which a chip component having a plurality of pins on at least one of the upper and lower sides is to be recognized.
It is run against the detection of the corner portion on the outer corner of the left end pin of the pin array on the one side portion of the chip component
Set the direction of the check line to diagonally upward or diagonally right
And, the direction of the scan lines against the outer corner portion of the right end pin
The processing is performed by setting the angle to the lower right or the upper right .
The above 2 of the outer corner portion of the right end pin in the side portion
Among the position detection data, the detection data on the right side and the left end
Of the detection data at the above two positions at the outer corner of the pin,
The profile measurement line in the pin row direction is obtained based on the detection data on the left side of the above, the position of the center point of each pin on the left and right ends on the obtained profile measurement line in the pin row direction is obtained, and the center of each pin is obtained. A process of obtaining the position of the edge point of each pin corresponding to the point; a process of obtaining the inclination of the chip component based on the arrangement of the edge point of each pin; From the density profile on the center line obtained based on the center of the pin array at the edge of one side and the inclination of the chip component, the other side on the center line is obtained. detecting an edge point parts side performs the processing for obtaining the center and the center line of the center of gravity of the chip components from an edge point of the other side portion of the pin rows at the edge of the one side portion, while at least A plurality of pins on one side portion which is one of the right
If the chip component with the
Detection of the tip part at the one side of the chip component.
Scan line direction with respect to the outer corners of the top row of pins
Is set to diagonally upward or diagonally downward,
The direction of the scanning line with respect to the outer corner of
Or, perform the operation by setting the angle to the upper right.
The process for determining the position and inclination of the product
Detection data of the above two positions at the outer corners of the lower end pin
Data on the lower side of the data and the outer
Above the detection data at the above two positions
Pin row direction profile measurement based on detected data
Find the line and measure the profile in the direction of the pin row.
Find the positions of the center points of the upper and lower pins on the
The position of the edge point of each pin corresponding to the center point of each pin
Based on the desired process and the location of the edge points for each pin
Processing to determine the inclination of chip components and the edge of each pin
Center of pin row at one side edge based on point
And the center of the pin row at this one side edge
The darkness on the center line obtained based on the inclination of the chip component
From the profile of the degree value, the other side on this center line
An edge point is detected, and a pin at the edge of the one side portion is detected.
From the center of the row and the edge point on the other side on the center line
3. The method for recognizing a chip component according to claim 1 , further comprising: performing a process of obtaining a center of gravity of the chip component.
【請求項7】 実装機の部品装着用ヘッドに吸着された
チップ部品を撮像する撮像手段と、この撮像手段により
撮像されたチップ部品の画像を記憶する画像記憶手段
と、この画像記憶手段から画像を読み出し、この画像を
表す処理ウインド内を走査するとともにそれに基づく演
算処理を行う処理手段とを備え、この処理手段は、上記
処理ウインド内を走査する走査線を処理ウインドのX軸
方向及びY軸方向に対して傾斜した方向に設定し、この
走査線を平行移動させつつ走査線上の画像の濃度値を判
別して、走査線がチップ部品のコーナー部の頂点を挟む
2辺を横切ることによって上記濃度値が変化した2辺上
の各位置を、その濃度値と所定の閾値とを比較して検出
するコーナー部検出手段と、このコーナー部の検出デー
タに基づいてチップ部品の重心位置及び傾きを算出する
演算手段とを有することを特徴とするチップ部品の認識
装置。
7. An image pickup means for picking up an image of a chip component adsorbed on a component mounting head of a mounting machine, an image storage means for storing an image of the chip component picked up by the image pickup means, and an image from the image storage means. And processing means for scanning the processing window representing the image and performing arithmetic processing based on the scanning line. The processing means scans the processing window for the X-axis direction and the Y-axis direction of the processing window. The scanning line is set to be inclined with respect to the direction, the scanning line is moved in parallel, the density value of the image on the scanning line is determined, and the scanning line sandwiches the vertex of the corner of the chip component
On the two sides where the density value changes by crossing the two sides
Each position of the corner detecting means for detecting and comparing the density value and a predetermined threshold value, it has a calculating means for calculating the centroid position and inclination of the chip component on the basis of the detection data of the corner portion An apparatus for recognizing chip components.
JP22323494A 1994-04-26 1994-09-19 Chip component recognition method and apparatus Expired - Fee Related JP3290034B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22323494A JP3290034B2 (en) 1994-04-26 1994-09-19 Chip component recognition method and apparatus

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP6-88691 1994-04-26
JP8869194 1994-04-26
JP22323494A JP3290034B2 (en) 1994-04-26 1994-09-19 Chip component recognition method and apparatus

Publications (2)

Publication Number Publication Date
JPH0818290A JPH0818290A (en) 1996-01-19
JP3290034B2 true JP3290034B2 (en) 2002-06-10

Family

ID=26430047

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22323494A Expired - Fee Related JP3290034B2 (en) 1994-04-26 1994-09-19 Chip component recognition method and apparatus

Country Status (1)

Country Link
JP (1) JP3290034B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4793109B2 (en) * 2005-12-05 2011-10-12 株式会社安川電機 Object detection method and robot

Also Published As

Publication number Publication date
JPH0818290A (en) 1996-01-19

Similar Documents

Publication Publication Date Title
US8175337B2 (en) Apparatus and method of measuring distance using structured light
JP3164003B2 (en) Mounted parts inspection device
JP4707249B2 (en) Component position detection method and apparatus
JPH08136235A (en) Method for detecting pattern
JP3290034B2 (en) Chip component recognition method and apparatus
JPH09128547A (en) Device for inspecting mounted parts
JP3115974B2 (en) Chip component recognition method and apparatus
US7027637B2 (en) Adaptive threshold determination for ball grid array component modeling
WO1997037378A1 (en) Visual inspection device for wafer bump and height measuring device
JP3621450B2 (en) Component recognition method
JP4566686B2 (en) Method and apparatus for determining shape of object
JP2004252827A (en) Lane recognition device
WO2019188194A1 (en) Method for determining center of pattern on lens marker, device for same, program for causing computer to execute said determination method, and recording medium for program
JP3774224B2 (en) Component recognition method
JP3808887B2 (en) Component recognition device
JP2516844B2 (en) Parts detection method and device
JPH11190611A (en) Three-dimensional measuring method and three-dimensional measuring processor using this method
JP3608923B2 (en) Meander follower for defect inspection apparatus and defect inspection apparatus
JPH08234226A (en) Image processor for production of liquid crystal substrate
JP2710685B2 (en) Defect detection method by visual inspection
JP4150262B2 (en) Component recognition method and apparatus
JP2897439B2 (en) Corner position detection method
JP2981383B2 (en) Position detection method
JPH09229642A (en) Method for inspecting appearance of electronic part
JP3307131B2 (en) Tilt detection method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20110322

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120322

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees