JPH01257206A - Position recognition apparatus - Google Patents

Position recognition apparatus

Info

Publication number
JPH01257206A
JPH01257206A JP63085958A JP8595888A JPH01257206A JP H01257206 A JPH01257206 A JP H01257206A JP 63085958 A JP63085958 A JP 63085958A JP 8595888 A JP8595888 A JP 8595888A JP H01257206 A JPH01257206 A JP H01257206A
Authority
JP
Japan
Prior art keywords
window
cumulative distribution
slit
recognized
processing means
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP63085958A
Other languages
Japanese (ja)
Other versions
JP2610295B2 (en
Inventor
Mitsuji Inoue
井上 三津二
Shinichi Uno
宇野 伸一
Tadanori Komatsu
小松 忠紀
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP63085958A priority Critical patent/JP2610295B2/en
Publication of JPH01257206A publication Critical patent/JPH01257206A/en
Application granted granted Critical
Publication of JP2610295B2 publication Critical patent/JP2610295B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)
  • Supply And Installment Of Electrical Components (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To enable recognition of a position of an object to be recognized at a high accuracy, by irradiating the object to be recognized with slit lights orthogonal to each other to determine the position of the center of the object being recognized from an image data obtained by taking the slit lights. CONSTITUTION:Slit lights 3a and 4a from X- and Y-axis illuminators 3 and 4 are reflected with galvanomirrors 5 and 6 and irradiated on a chip part 2 to be taken with a camera 7 above a circuit board 1. A cumulative distribution of a binary level is determined along the length of the slit lights with a first cumulative distribution processing means 13a for slit light part within an image data obtained with the device 7. Edge positions of the slit lights are determined by a window preparation means 14 from the resulting first cumulative distribution data. From the edge position thus obtained, a second window is prepared to determine an cumulative distribution of a binary level across the width of the slit lights by a second cumulative distribution processing means 13b. Moreover, edge positions of the object to be recognized are determined from the resulting second cumulative distribution data by a position computing means 5 to obtain the center position of the object being recognized from the edge positions thus obtained.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、回路基板に装着されるチップ部品等の位置を
認識するに好適な位置認識装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a position recognition device suitable for recognizing the position of a chip component or the like mounted on a circuit board.

(従来の技術) 家電機器やOA機器等の電気機器は小型化が進み、これ
に伴って各家電機器に用いられる回路基板も小型化して
いる。例えば、リード線付き回路基板に代わってチップ
化された小型の抵抗やコンデンサ等を装着可能とする回
路基板が用いられるようになっている。そして、このよ
うな装着部品の小型化による回路基板への装着は高密度
実装が要求されている。
(Prior Art) Electrical devices such as home appliances and OA equipment are becoming smaller, and along with this, the circuit boards used in each home appliance are also becoming smaller. For example, instead of circuit boards with lead wires, circuit boards to which small chipped resistors, capacitors, etc. can be attached are now being used. Due to the miniaturization of such mounting components, high-density mounting is required for mounting them on circuit boards.

かかるチップ部品等の回路基板への装着は、予め所定の
配線パターンが形成された回路基板にチップ部品を装着
装置により自動的に仮装着し、この後はんだ付は装置等
によってはんだ付けを行なって終了している。しかし、
回路基板への装置はしばしば脱落や位置ずれを生じてし
まう。このようなことがはんだ付けの後に検出された場
合、その修正に多大な労力を費やさなければならない。
To attach such chip components to a circuit board, a mounting device automatically temporarily attaches the chip components to a circuit board on which a predetermined wiring pattern has been formed in advance, and then soldering is performed by a device or the like. It's finished. but,
Devices attached to circuit boards often fall off or become misaligned. If such a thing is detected after soldering, a lot of effort will have to be spent on its correction.

このため、このような回路基板のチップ部品の脱落や位
置ずれ等の検査ははんだ付は作業の前に行なう必要があ
る。
Therefore, it is necessary to inspect the chip components of the circuit board for falling off, misalignment, etc. before soldering.

そこで、この検査は作業員によって目視によって行われ
、多くの作業員を必要としていた。そのうえ目視の検査
では複雑な回路基板上に複数のチップ部品が装着されて
いるために検査ミスが多くなるうえ、作業は一日中細か
い検査となるので、眼性疲労が生じて健康管理の面でも
問題があった。
Therefore, this inspection was performed visually by workers, which required a large number of workers. Furthermore, visual inspections often result in inspection errors because multiple chip components are mounted on a complex circuit board, and the work requires detailed inspections all day long, which causes eye strain and poses health management problems. was there.

これに対して回路基板の検査を自動化した技術があり、
これは回路基板を撮像装置によって撮像し、その得られ
た画像データを画像処理して被認識物となるチップ部品
等の装着位置を認識し、この認識結果からチップ部品の
脱落や位置ずれを検出する技術である。ところが、この
ような技術では回路基板上の配線パターン、印字文字、
多色多形状の各部品が混在する中から目的のチップ部品
等を検索或いは抽出して検査するので、誤判断がしばし
ば生じる。このため、検査精度や信頼性の面から未だ不
十分であり、特に目的のチップ部品等が通常の直方体以
外の形状をしている場合、この検査精度や信頼性が不十
分となる。
In response, there is a technology that automates the inspection of circuit boards.
This involves capturing an image of a circuit board using an imaging device, processing the resulting image data to recognize the mounting position of a chip component, etc., and detecting the dropout or misalignment of a chip component from this recognition result. It is a technology that However, with this technology, wiring patterns on circuit boards, printed characters,
Misjudgments often occur because a target chip component or the like is searched for or extracted from a mixture of multicolored and multishaped components and inspected. For this reason, it is still insufficient in terms of inspection accuracy and reliability, and especially when the target chip component or the like has a shape other than a normal rectangular parallelepiped, the inspection accuracy and reliability are insufficient.

(発明が解決しようとする問題点) 以上のように回路基板の検査を自動化した技術があるも
ののその技術は複雑な形状や色彩等に影響され、検査精
度が低く信頼性に劣るものである。
(Problems to be Solved by the Invention) As described above, although there is a technology that automates the inspection of circuit boards, the technology is affected by complex shapes, colors, etc., and the inspection accuracy is low and reliability is poor.

そこで本発明は、複雑な形状やその色彩等に影響されず
に目的とする被認識物を高精度に位置認識できる位置認
識装置を提供することを目的とする。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a position recognition device that can recognize the position of a target object with high precision without being affected by complicated shapes, colors, etc.

[発明の構成] (問題点を解決するための手段) 本発明は、被認識物に対して互いに直交する各スリット
光を照射しこれらスリット光を撮像して得られる画像デ
ータから被認識物の中心位置を認識する位置認識装置に
おいて、画像データ内における各スリット光部分に対し
てそれぞれ第1ウィンドウを設定し、これら第1ウィン
ドウ内において各スリット光の長さ方向に2値化レベル
の積算分布を求める第1積算分布処理手段と、この第1
積算分布処理手段で求められた第1積算分布データから
各スリット光のエツジ位置を求めこれらエツジ位置から
各スリット光の幅と等しいか又はこの幅よりも狭い幅を
持った第2ウィンドウを作成するウィンドウ作成手段と
、このウィンドウ作成手段で作成された各第2ウィンド
ウを画像データ内における各スリット光部分に設定しこ
れら第2ウィンドウ内において各スリット光の幅方向に
対して2値化レベルの積算分布を求める第2積算分布処
理手段と、この第2積算分布処理手段で求められた第2
積算分布データから被認識物の各エツジ位置を求めこれ
らエツジ位置から被認識物の中心位置を求める位置演算
手段とを備えて上記目的を達成しようとする位置認識装
置である。
[Structure of the Invention] (Means for Solving the Problems) The present invention irradiates the object with slit lights perpendicular to each other and images the slit lights. In a position recognition device that recognizes the center position, a first window is set for each slit light portion in the image data, and the integrated distribution of the binarization level is calculated in the length direction of each slit light within these first windows. a first cumulative distribution processing means for calculating the
The edge position of each slit light is determined from the first integrated distribution data obtained by the integrated distribution processing means, and a second window having a width equal to or narrower than the width of each slit light is created from these edge positions. A window creation means, and each second window created by this window creation means is set in each slit light portion in the image data, and the binarization level is integrated in the width direction of each slit light within these second windows. a second cumulative distribution processing means for calculating the distribution; and a second cumulative distribution processing means for calculating the distribution.
The present invention is a position recognition device that attempts to achieve the above object by including a position calculation means for determining each edge position of the object to be recognized from integrated distribution data and calculating the center position of the object from these edge positions.

(作用) このような手段を備えたことにより、画像データ内にお
ける各スリット光部分に対して第1積算分布処理手段は
第1ウィンドウを設定してスリット光の長さ方向に2値
化レベルの積算分布を求める。そして、ウィンドウ作成
手段はこの求められた第1積算分布データから各スリッ
ト光のエツジ位置を求めこれらエツジ位置から各スリッ
ト光の幅と等しいか又はこの幅よりも狭い幅を持った第
2ウィンドウを作成する。そして、第2積算分布処理手
段はこれら第2ウィンドウを画像データ内における各ス
リット光部分に設定して各スリット光の幅方向に対して
2値化レベルの積算分布を求め、さらに位置演算手段は
この第2積算分布データから被認識物の各エツジ位置を
求めこれら工ッジ位置から被認識物の中心位置を求める
〇(実施例) 以下、本発明の一実施例を図面を参照して説明する。
(Function) By having such a means, the first integrated distribution processing means sets the first window for each slit light portion in the image data and divides the binarization level in the length direction of the slit light. Find the cumulative distribution. Then, the window creation means determines the edge position of each slit light from the obtained first integrated distribution data and creates a second window having a width equal to or narrower than the width of each slit light from these edge positions. create. Then, the second integrated distribution processing means sets these second windows to each slit light portion in the image data and calculates the integrated distribution of the binarization level in the width direction of each slit light, and furthermore, the position calculation means From this second cumulative distribution data, each edge position of the object to be recognized is determined, and from these edge positions, the center position of the object to be recognized is determined. (Example) Hereinafter, an example of the present invention will be described with reference to the drawings. do.

第1図は位置認識装置の構成図である。回路基板1上に
は被認識物であるチップ部品2が装着されている。さて
、回路基板1の上方にはX軸スリット照明装置3及びY
軸スリット照明装置4がそれぞれ配置されているととも
にこれらX軸及びY軸スリット照明装置3,4のスリッ
ト光路上にそれぞれガルバノミラ−5,6が配置されて
いる。
FIG. 1 is a block diagram of a position recognition device. A chip component 2, which is an object to be recognized, is mounted on the circuit board 1. Now, above the circuit board 1 are an X-axis slit illumination device 3 and a Y-axis slit illumination device 3
Axial slit illumination devices 4 are disposed, and galvano mirrors 5 and 6 are disposed on the slit optical paths of these X-axis and Y-axis slit illumination devices 3 and 4, respectively.

従って、X軸及びY軸照明装置3.4から放射された各
スリット光3a、4aはそれぞれガルバノミラ−5,6
で反射してチップ部品2上に照射されるようになってい
る。又、回路基板1の上方には撮像装置7が配置され、
その出力画像信号が2値化回路8によって2値化されて
画像メモリ9に画像データとして記憶されるようになっ
ている。
Therefore, each slit light beam 3a, 4a emitted from the X-axis and Y-axis illumination device 3.4 is reflected by the galvanometer mirrors 5, 6, respectively.
The light is reflected and irradiated onto the chip component 2. Further, an imaging device 7 is arranged above the circuit board 1,
The output image signal is binarized by a binarization circuit 8 and stored in an image memory 9 as image data.

ところで、前記ガルバノミラ−5,6はそれぞれガルバ
ノミラ−制御回路10からの各回転角度データMXD、
MYDに基づいた駆動制御信号によって回転して各スリ
ット光3a、4aの反射方向を可変し、これによって各
スリット光3a、4a  ゛をチップ部品2のマウント
基準位置0 (ox、 oy)で互いに直交するように
照射制御されている。ここで、この回転角度データMX
D、MYDは、ガルバノミラ−5,6のX軸方向及びY
軸方向の各走査分解能をMx、My、チップ部品2の高
さデータをH1回路基板1の厚みデータをT1各ガルバ
ノミラ−5,6の各走査位置おける高さデータHと厚み
データTとのX軸及びY軸方向の各補正値をKx、Ky
、さらに撮像装置7の視野中心位置をl’x、ノy)と
すると、 M X D −(Ox −1! x ) / M x 
+ H+ T + K xMYD= (Oy  、1’
)’ )/My+H十T十Kyとなる。
By the way, the galvano mirrors 5 and 6 each receive rotation angle data MXD,
The reflection direction of each slit light beam 3a, 4a is varied by rotating according to a drive control signal based on MYD, thereby making each slit light beam 3a, 4a orthogonal to each other at the mounting reference position 0 (ox, oy) of the chip component 2. Irradiation is controlled so that Here, this rotation angle data MX
D and MYD are the X-axis direction and Y direction of the galvanometer mirrors 5 and 6.
Each scanning resolution in the axial direction is Mx, My, the height data of the chip component 2 is H1, the thickness data of the circuit board 1 is T1, the X of the height data H and thickness data T at each scanning position of each galvano mirror 5, 6 The correction values in the axis and Y-axis directions are Kx, Ky
, further, if the center position of the field of view of the imaging device 7 is l'x, noy), then M x D - (Ox -1! x ) / M x
+ H+ T + K x MYD= (Oy, 1'
)')/My+H10T0Ky.

さて、11は画像処理装置であって、この画像処理装置
11は画像メモリ9に記憶された画像データからチップ
部品2の中心位置を認識する機能を持ったものである。
Now, 11 is an image processing device, and this image processing device 11 has a function of recognizing the center position of the chip component 2 from the image data stored in the image memory 9.

具体的には主制御手段12によってそれぞれ制御される
周辺分布処理部13゜ウィンドウ作成手段14及び位置
演算手段15の各機能が備えられている。周辺分布処理
部13は第1及び第21!i算分布処理手段13g、1
3bが成っており、第1積算分布処理手段13gは画像
データ内における各スリット光部分に対してそれぞれ第
1ウィンドウWx、Wyを設定し、これら第1ウィンド
ウWxl、 Wyl内において各スリット光の長さ方向
に2値化レベルの積算分布を求める機能を持ったもので
あり、第2積算分布処理手段13bは後述するウィンド
ウ作成手段14で作成された各第2ウィンドウWx2.
 Ky2を画像データ内における各スリット光部分に設
定しこれら第2ウィンドウ内において各スリット光の幅
方向に対して2値化レベルの積算分布を求める機能をも
ったものである。ウィンドウ作成手段14は第1積算分
布処理手段13aで求められた第1積算分布データから
各スリット光のエツジ位置を求めこれらエツジ位置から
各スリット光の幅と等しい幅を持った第2ウィンドウW
x2. Ky2を作成する機能を持ったものである。そ
して、位置演算手段15はm2積算分布処理手段13b
で求められた第2積算分布データからチップ部品2のエ
ツジ位置を求めこれらエツジ位置からチップ部品2の中
心位□置を求める機能を持ったものである。なお、主制
御手段12は第2図に示す認識フローチャートのプログ
ラムに従ってこれら各手段の動作制御を行い、かつその
認識結果を表示装置16に送り、さらに撮像装置7と2
値化回路8との動作タイミングを取るタイミング信号を
タイミング回路17へ送出し、又X軸及びY軸スリット
照明装置3.4をそれぞれ動作させる光源用電源18へ
動作指令を送出する機能を有している。
Specifically, the peripheral distribution processing unit 13 has the functions of a peripheral distribution processing unit 13, a window creation unit 14, and a position calculation unit 15, which are each controlled by the main control unit 12. The peripheral distribution processing units 13 are the first and twenty-first! i calculation distribution processing means 13g, 1
3b, the first integrated distribution processing means 13g sets first windows Wx, Wy for each slit light portion in the image data, and calculates the length of each slit light within these first windows Wxl, Wyl. The second integrated distribution processing means 13b has a function of obtaining an integrated distribution of binarization levels in the horizontal direction, and the second integrated distribution processing means 13b processes each second window Wx2.
It has a function of setting Ky2 in each slit light portion in the image data and obtaining the cumulative distribution of the binarization level in the width direction of each slit light within these second windows. The window creation means 14 calculates the edge position of each slit light from the first integrated distribution data obtained by the first integrated distribution processing means 13a, and creates a second window W having a width equal to the width of each slit light from these edge positions.
x2. It has the function of creating Ky2. Then, the position calculation means 15 is the m2 integrated distribution processing means 13b.
This device has a function of determining the edge positions of the chip component 2 from the second integrated distribution data determined in step 2, and determining the center position of the chip component 2 from these edge positions. The main control means 12 controls the operation of each of these means according to the recognition flowchart program shown in FIG.
It has a function of sending a timing signal to the timing circuit 17 to determine the operation timing with the value converting circuit 8, and also sending an operation command to the light source power source 18 for operating the X-axis and Y-axis slit illumination devices 3.4, respectively. ing.

次に上記の如く構成された装置の作用について第2図に
示す認識フローチャートに従って説明する。ステップS
1において主制御手段12は光源用電源18に動作指令
を送出する。これによりX軸及びY軸スリット照明装置
3.4はそれぞれスリット光3a、4aを放射する。又
、これと同時に主制御部12はガルバノミラ−制御回路
10に回転角度データMXD、MYDを送出し、これに
よりガルバノミラ−制御回路10はこれら回転角度デー
タMXD、MYDに従って各ガルバノミラ−5,6を回
転駆動する。しかして、各スリット光3a、4aはチッ
プ部品2上のマウント基準位置0 (ox、 oy)で
互いに直交するように照射される。
Next, the operation of the apparatus configured as described above will be explained according to the recognition flowchart shown in FIG. Step S
1, the main control means 12 sends an operation command to the light source power supply 18. As a result, the X-axis and Y-axis slit illumination devices 3.4 respectively emit slit lights 3a and 4a. At the same time, the main control section 12 sends the rotation angle data MXD and MYD to the galvano mirror control circuit 10, whereby the galvano mirror control circuit 10 rotates each of the galvano mirrors 5 and 6 according to these rotation angle data MXD and MYD. Drive. Thus, the slit lights 3a and 4a are irradiated at the mounting reference position 0 (ox, oy) on the chip component 2 so as to be perpendicular to each other.

このように各スリット光3a、4aがマウント基準位置
0に照射されると、ステップs2に移って主制御部12
はタイミング回路17に動作開始指令を送出する。これ
により、撮像装置7はチップ部品2が視野内に入ってい
る絵を撮像してその画像信号を出力する。この画像信号
は2値化回路8で所定の2値化設定レベルでもって2値
化されて画像メモリ9に送られ、この画像メモリ9に画
像データとして記憶される。
When each slit light beam 3a, 4a is irradiated onto the mount reference position 0 in this way, the process moves to step s2 and the main control unit 12
sends an operation start command to the timing circuit 17. Thereby, the imaging device 7 images a picture in which the chip component 2 is within its field of view and outputs the image signal. This image signal is binarized by a binarization circuit 8 at a predetermined binarization setting level, sent to an image memory 9, and stored in this image memory 9 as image data.

このように画像データが記憶されると、次のステップs
3に移って主制御手段12は周辺分布処理部13に動作
指令を発する。さて、この周辺分布処理部13で動作指
令を受けると先ず第1積算分布処理手段13aは画像メ
モリ9に記憶された画像データを受けてこの画像データ
の各スリット光3a−,4a−の部分に対してそれぞれ
第3図に示すように第1ウィンドウWxl、 Wylを
設定する。
Once the image data is stored in this way, the next step s
3, the main control means 12 issues an operation command to the peripheral distribution processing section 13. Now, when the peripheral distribution processing unit 13 receives an operation command, first the first integrated distribution processing unit 13a receives the image data stored in the image memory 9 and processes the portions of each slit light 3a-, 4a- of this image data. The first windows Wxl and Wyl are respectively set as shown in FIG.

なお、これら第1ウィンドウWxl、 Wylの大きさ
は各スリット光3a、4aを包含するように設定されて
いる。又、2′はチップ部品2の画像となっている。こ
のように各ウィンドウWxl、 Wylを設定すると第
1積算分布処理手段13aはステップs4において各ウ
ィンドウW x l 、 W y l内の2値化レベル
の積算分布を求める。すなわち、ウィンドウW X 1
について説明すれば、このウィンドウWXI内において
スリット光3a−の長さ方向に2値化レベルを積算し、
この積算結果である積算分布データQxlを得る。一方
、ウィンドウWy1についても同様に2値化レベルの積
算を求め、その積算結果である積算分布データQylを
得る。しかして、この積算分布データQylはウィンド
ウ作成手段14に渡され、このウィンドウ作成手段14
はステップS5に移ってこれら積算分布データQxl、
Qylに対してそれぞれしきい値L1を用いて各スリッ
ト光38″、4a−のエツジ位置つまりスリット光3a
−についてはyl、 y2、スリット光4a−について
はxi、 x2をそれぞれ求める。なお、主制御手段1
2はこれらエツジ位置X1. X2、yLy2から各ス
リット光の長さ方向の中心位置XS。
Note that the sizes of these first windows Wxl and Wyl are set so as to include the respective slit lights 3a and 4a. Further, 2' is an image of the chip component 2. When each window Wxl, Wyl is set in this way, the first cumulative distribution processing means 13a calculates the cumulative distribution of the binarization level within each window Wxl, Wyl in step s4. That is, window W X 1
To explain, the binarization level is integrated in the length direction of the slit light 3a- within this window WXI,
Accumulated distribution data Qxl, which is the result of this accumulation, is obtained. On the other hand, the binarization levels are similarly integrated for window Wy1, and integrated distribution data Qyl, which is the integration result, is obtained. This integrated distribution data Qyl is then passed to the window creation means 14, and this window creation means 14
The process moves to step S5 and these integrated distribution data Qxl,
The edge position of each slit light 38'', 4a-, that is, the slit light 3a, is determined using the threshold value L1 for Qyl.
For -, yl and y2 are obtained, and for the slit light 4a-, xi and x2 are obtained, respectively. In addition, the main control means 1
2 are these edge positions X1. Center position XS in the length direction of each slit light from X2, yLy2.

s Xs −(X1+X2) / 2 Ys −(yl+y2) /2 を求め、後述するスリット光3a、4aの照射時におけ
る基準位置補正に使用する。
The value s

次にステップs6に移ってウィンドウ作成手段14はこ
れらエツジ位置yl、 y2及びxl、 x2から各ス
リット光3a−,4a−の8幅Fx、Fyっまり Fy   −l  yl−y21 F  X   =  l  xi−x2  lを演算し
求める。そして、スリット光3a″の幅ry第2ウィン
ドウWx2を作成するとともにスリット光4a−の幅F
xから第2ウィンドウWy2を作成する。なお、このと
き各ウィンドウWX2゜Wy2の長さはそれぞれ第1ウ
ィンドウW x 1 + W y 1と同一とする。そ
して、これら第2ウィンドウWx2. Wy2はそれぞ
れ主制御部12の指令によって第2ffl算分布処理手
段13bに送られる。
Next, proceeding to step s6, the window creation means 14 calculates the 8 widths Fx and Fy of each slit beam 3a-, 4a- from these edge positions yl, y2, and xl, x2, Fy -l yl-y21 F X = l xi Calculate and find −x2 l. Then, the width ry second window Wx2 of the slit light 3a'' is created, and the width F of the slit light 4a- is created.
A second window Wy2 is created from x. Note that at this time, the length of each window WX2°Wy2 is the same as that of the first window Wx1+Wy1. Then, these second windows Wx2. Wy2 is sent to the second ffl calculation distribution processing means 13b by the command of the main control section 12, respectively.

さて、この第2積算分布処理手段13bは各第2ウィン
ドウW!2. Wy2を受けると、第4図に示すように
第2ウィンドウWx2をスリット光3a=に長さ方向に
対して設定するとともに第2スリツト光Wy2をスリッ
ト光4a−の長さ方向に対して設定する。なお、第4図
において各第2ウィンドウWx2. Wy2の8幅と各
スリット光3a′。
Now, this second cumulative distribution processing means 13b processes each second window W! 2. When receiving Wy2, as shown in FIG. 4, the second window Wx2 is set in the length direction of the slit light 3a=, and the second slit light Wy2 is set in the length direction of the slit light 4a-. . In addition, in FIG. 4, each second window Wx2. 8 widths of Wy2 and each slit light 3a'.

4a−の幅とが一致していないが、これは図示上分かり
やすくするためである。そして、ステップs7に移り第
2積算分布処理手段13bは各ウィンドウWx2. W
y2における2値化レベルの積算分布を求める。なお、
この積算分布の求め方は第1積算分布処理手段13aの
処理方法と同様であるが、この手段13bでは各スリッ
ト光3a−,4a−の幅方向に対して積算を行なう。そ
こで、第2ウィンドウWy2について説明すると、この
第2ウィンドウWy2内のスリット光4a−の幅方向に
対して2値化レベルを積算してその積算分布データQx
2を求める。同様に第2ウィンドウWx2においてスリ
ット光3a−の幅方向に対して2値化レベルの積算が行
われてその積算分布データQy2を求める・このように
求められた各積算分布データQ x2. Q y2はそ
れぞれ主制御手段12の指令によって位置演算手段15
に渡される。
4a- does not match the width, but this is for the sake of clarity in the illustration. Then, the process moves to step s7, and the second integrated distribution processing means 13b processes each window Wx2. W
Find the cumulative distribution of binarization levels at y2. In addition,
The method of obtaining this integrated distribution is similar to the processing method of the first integrated distribution processing means 13a, but in this means 13b, integration is performed in the width direction of each slit beam 3a-, 4a-. Therefore, to explain the second window Wy2, the binarization level is integrated in the width direction of the slit light 4a- in this second window Wy2, and the integrated distribution data Qx
Find 2. Similarly, in the second window Wx2, the binarization levels are integrated in the width direction of the slit light 3a- to obtain integrated distribution data Qy2. Each integrated distribution data Qx2. Qy2 is calculated by the position calculation means 15 according to the command from the main control means 12.
passed to.

この位置演算手段15はステップs8においてしきい値
L2を用いてチップ部品2上面のエツジ位置ya、 y
4及びx3. x4を求め、さらにこれらエツジ位置y
3. y4及びx3. x4からチップ部品2の中心位
置Oc  (Xc、Yc)を求める。つまり、中心位置
Oc  (Xc、Yc)は、 Xc = (x3+x4) / 2 Yc鱒(y3+y4) /2 から演算し求められる。
This position calculating means 15 uses the threshold value L2 in step s8 to calculate the edge positions ya, y on the top surface of the chip component 2.
4 and x3. Find x4, and further calculate these edge positions y
3. y4 and x3. The center position Oc (Xc, Yc) of the chip component 2 is determined from x4. That is, the center position Oc (Xc, Yc) is calculated from Xc = (x3+x4) / 2 Yc trout (y3 + y4) /2.

ところで、以上の作用によりチップ部品2の中心位置O
c  (Xc、Yc)が求められるが、この中心位@O
cはチップ部品2が回転していない状態の位置を示して
いる。従って、チップ部品2が回転しているかを判断す
るために主制御手段1はステップs9において2問中心
位置を認識したかを判断し、2回認識していなければ、
今認識したチップ部品2の中心位置Ocを基準位置Oc
として記憶し、再びステップ5l−s8を実行して位置
認識を行なう。そして、ステップsllにおいて主制御
手段12は基準位置Oeと今回位置認識したチップ部品
2の中心位置との差を求め、この差と所定値dとを比較
する。この比較の結果、差が所定値dよりも小さければ
、主制御手段12は今回位置認識したチップ部品2の中
心位置を正しいチップ部品2の中心位置と認識する。と
ころが、差が所定値dよりも大きければ、ステップs1
2に移って基準位置Ocをチップ部品2の中心位置に変
更設定し、次のステップs13においてこの基準位置O
cを補正する。つまり、補正された新たな基準位置(o
x” + OY−)は ox= −Xc + (ox−Xs )oy−−Yc 
+ (oy−Ys ) となる。従って、再びステップslに戻って各スリット
光3a、4aを照射するとき、これらスリット光3ar
 4aはそれぞれこの基準位置(OX−。
By the way, due to the above action, the center position O of the chip component 2
c (Xc, Yc) is found, but this center position @O
c indicates the position where the chip component 2 is not rotating. Therefore, in order to determine whether the chip component 2 is rotating, the main control means 1 determines whether the center position has been recognized twice in step s9, and if it has not been recognized twice,
The center position Oc of the chip component 2 that has just been recognized is the reference position Oc.
, and executes steps 5l-s8 again to perform position recognition. Then, in step sll, the main control means 12 determines the difference between the reference position Oe and the center position of the chip component 2 whose position has been recognized this time, and compares this difference with a predetermined value d. As a result of this comparison, if the difference is smaller than the predetermined value d, the main control means 12 recognizes the center position of the chip component 2 whose position has been recognized this time as the correct center position of the chip component 2. However, if the difference is larger than the predetermined value d, step s1
2, the reference position Oc is changed to the center position of the chip component 2, and in the next step s13, this reference position O is changed to the center position of the chip component 2.
Correct c. In other words, the corrected new reference position (o
x” + OY−) is ox= −Xc + (ox−Xs )oy−−Yc
+ (oy-Ys). Therefore, when returning to step sl and irradiating each slit light 3a, 4a, these slit lights 3ar
4a is this reference position (OX-).

oy−)を通過するようにチップ部品2上に照射される
。そうして、再びチップ部品2の中心位置を認識して前
記差が所定値dよりも大きければ、再び新たな基準位置
(OX″、 oy’ )を求めることになる。
oy-) onto the chip component 2. Then, if the center position of the chip component 2 is recognized again and the difference is larger than the predetermined value d, a new reference position (OX'', oy') is determined again.

このように上記一実施例においては、第1ウィンドウを
設定してこのウィ′ンドウ内の2値化レベルの積算分布
を求め、このデータから各スリット光の幅を求めてスリ
ット光の幅と等しい第2ウィンドウを作成し、この第2
ウィンドウをさらに設定して2値化レベルの積算分布デ
ータを求め、そうしてこのデータからチップ部品2の各
エツジ位置を求めてその中心位置を求めるようにしたの
で、チップ部品2の上面に照射された各スリット光3a
、4aのみを抽出でき、他の部品の形状や色彩に影響さ
れず確実にチップ部品2のエツジ位置を検出できてチッ
プ部品2の中心位置を検出できる。つまり、第5図(a
)(b)に示すようなチップ部品20が装着されていた
場合、このチップ部品20の上面にスリット光21を照
射したときこのスリット光21はチップ部品20の上面
22上に照射されることはもちろんのこと、そのリード
線23の肩部分にも照射される。しかして、チップ部品
20の上面22の高さ位置とリード線23の肩部分の高
さ位置とはそれほど差が無いために照射されたスリット
光21が連続しているように認識される。ところが、本
発明装置を適用すれば、第6図に示すように第2ウィン
ドウW2がチップ部品2の上面に照射されたスリット光
21のみを包含するようになるので、確実かつ高精度に
チップ部品20のエツジ位置を求めてチップ部品20の
中心位置を求めることができる。又、リード線23の肩
部分の影響を無くすばかりでなくチップ部品20のモー
ルド接合部分に照射されたスリット光の影響も無くすこ
とかできる。
In this way, in the above embodiment, the first window is set, the cumulative distribution of the binarization level within this window is determined, and the width of each slit light is determined from this data and is equal to the width of the slit light. Create a second window and this second window
The window is further set to obtain the integrated distribution data of the binarized level, and from this data, each edge position of the chip component 2 is determined and its center position is determined. each slit light 3a
, 4a can be extracted, and the edge position of the chip component 2 can be reliably detected without being influenced by the shape or color of other components, and the center position of the chip component 2 can be detected. In other words, Fig. 5 (a
) When a chip component 20 as shown in (b) is mounted, when the top surface of this chip component 20 is irradiated with slit light 21, this slit light 21 will not be irradiated onto the top surface 22 of the chip component 20. Of course, the shoulder portion of the lead wire 23 is also irradiated. Therefore, since there is not much difference between the height position of the upper surface 22 of the chip component 20 and the height position of the shoulder portion of the lead wire 23, the irradiated slit light 21 is recognized as being continuous. However, if the device of the present invention is applied, the second window W2 will include only the slit light 21 irradiated onto the top surface of the chip component 2, as shown in FIG. The center position of the chip component 20 can be determined by determining the edge position of the chip component 20. In addition, it is possible to eliminate not only the influence of the shoulder portion of the lead wire 23 but also the influence of the slit light irradiated onto the mold joint portion of the chip component 20.

さらに基準位置と中心位置との差が所定値d以上となっ
た場合、基準位置を補正して各スリット光3a、4aを
照射するので、例えばチップ部品の回転ずれら回路基板
1がらの浮きの影響を受けずに位置認識できる。
Furthermore, when the difference between the reference position and the center position becomes more than a predetermined value d, the reference position is corrected and each slit light beam 3a, 4a is irradiated. Location can be recognized without being affected.

なおχ本発明は上記一実施例に限定されるものでなくそ
の主旨を逸脱しない範囲で変形してもよOo例えば、第
2ウィンドウを1度設定すれば、他のチップ部品の中心
位置を位置認識する際、この第2ウィンドウを目的のチ
ップ部品の基準位置へ移動させるようにすれ゛ば能率良
く位置認識ができる。又、第2ウィンドウの幅はスリッ
ト光の幅よりも狭く設定してもチップ部品2のエツジ位
置を求めることができる。
Note that the present invention is not limited to the above-mentioned embodiment, and may be modified without departing from the spirit thereof.For example, once the second window is set, the center position of the other chip components can be changed. When recognizing, if this second window is moved to the reference position of the target chip component, the position can be recognized efficiently. Further, even if the width of the second window is set narrower than the width of the slit light, the edge position of the chip component 2 can be determined.

[発明の効果] 以上詳記したように本発明によれば、複雑な形状やその
色彩等に影響されずに目的とする被認識物を高精度に位
置認識できる位置認識装置を提供できる。
[Effects of the Invention] As described in detail above, according to the present invention, it is possible to provide a position recognition device that can recognize the position of a target object with high precision without being influenced by a complicated shape or its color.

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

第1図乃至第6図は本発明に係わる位置認識装置の一実
施例を説明するための図であって、第1図は構成図、第
2図は認識フローチャート、第3図は第1ウィンドウの
作用を説明するための模式図、第4図は第2ウィンドウ
の作用を説明するための模式図、第5図及び第6図は位
置認識作用の一例を説明するための図である。 1・・・回路基板、2・・・チップ部品、3・・・X軸
スリット照明装置、4・・・Y軸スリット照明装置、5
゜6・・・ガルバノミラ−17・・・撮像装置、8・・
・2値化回路、9・・・画像メモリ、11・・・画像処
理装置、12・・・主制御手段、13・・・周辺分布処
理部、13a・・・第1積算分布処理手段、13b・・
・第2積算分布処理手段、14・・・ウィンドウ作成手
段、15・・・位置演算手段。 出願人代理人 弁理士 鈴江武彦 第3図 第4図 (a) 第5 第6図 (b) 図
1 to 6 are diagrams for explaining one embodiment of the position recognition device according to the present invention, in which FIG. 1 is a configuration diagram, FIG. 2 is a recognition flowchart, and FIG. 3 is a first window FIG. 4 is a schematic diagram for explaining the operation of the second window, and FIGS. 5 and 6 are diagrams for explaining an example of the position recognition operation. DESCRIPTION OF SYMBOLS 1... Circuit board, 2... Chip component, 3... X-axis slit lighting device, 4... Y-axis slit lighting device, 5
゜6... Galvano mirror 17... Imaging device, 8...
- Binarization circuit, 9... Image memory, 11... Image processing device, 12... Main control means, 13... Peripheral distribution processing section, 13a... First integrated distribution processing means, 13b・・・
- Second integration distribution processing means, 14...window creation means, 15...position calculation means. Applicant's agent Patent attorney Takehiko Suzue Figure 3 Figure 4 (a) Figure 5 Figure 6 (b) Figure

Claims (1)

【特許請求の範囲】[Claims] 被認識物に対して互いに直交する各スリット光を照射し
これらスリット光を撮像して得られる画像データから前
記被認識物の中心位置を認識する位置認識装置において
、前記画像データ内における前記各スリット光部分に対
してそれぞれ第1ウィンドウを設定し、これら第1ウィ
ンドウ内において前記各スリット光の長さ方向に2値化
レベルの積算分布を求める第1積算分布処理手段と、こ
の第1積算分布処理手段で求められた第1積算分布デー
タから前記各スリット光のエッジ位置を求めこれらエッ
ジ位置から前記各スリット光の幅と等しいか又はこの幅
よりも狭い幅を持った第2ウィンドウを作成するウィン
ドウ作成手段と、このウィンドウ作成手段で作成された
各第2ウィンドウを前記画像データ内における前記各ス
リット光部分に設定しこれら第2ウィンドウ内において
前記各スリット光の幅方向に対して2値化レベルの積算
分布を求める第2積算分布処理手段と、この第2積算分
布処理手段で求められた第2積算分布データから前記被
認識物の各エッジ位置を求めこれらエッジ位置から前記
被認識物の中心位置を求める位置演算手段とを具備した
ことを特徴とする位置認識装置。
In a position recognition device that recognizes the center position of the object from image data obtained by irradiating each slit light orthogonal to the object and imaging these slit lights, each of the slits in the image data a first cumulative distribution processing means that sets a first window for each light portion and calculates a cumulative distribution of binarization levels in the length direction of each of the slit lights within these first windows; The edge positions of each of the slit lights are determined from the first integrated distribution data obtained by the processing means, and a second window having a width equal to or narrower than the width of each of the slit lights is created from these edge positions. a window creation means, and each second window created by the window creation means is set in each of the slit light portions in the image data, and binarization is performed in the width direction of each of the slit lights within these second windows. a second cumulative distribution processing means for calculating the cumulative distribution of the level; and a second cumulative distribution processing means for determining the respective edge positions of the object to be recognized from the second cumulative distribution data obtained by the second cumulative distribution processing means, and from these edge positions. 1. A position recognition device comprising: position calculation means for determining a center position.
JP63085958A 1988-04-07 1988-04-07 Position recognition device Expired - Fee Related JP2610295B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63085958A JP2610295B2 (en) 1988-04-07 1988-04-07 Position recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63085958A JP2610295B2 (en) 1988-04-07 1988-04-07 Position recognition device

Publications (2)

Publication Number Publication Date
JPH01257206A true JPH01257206A (en) 1989-10-13
JP2610295B2 JP2610295B2 (en) 1997-05-14

Family

ID=13873255

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63085958A Expired - Fee Related JP2610295B2 (en) 1988-04-07 1988-04-07 Position recognition device

Country Status (1)

Country Link
JP (1) JP2610295B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5198876A (en) * 1990-11-13 1993-03-30 Matsushita Electric Industrial Co., Ltd. Method of measuring three-dimensional postion of workpiece
US5317388A (en) * 1992-06-29 1994-05-31 United Parcel Service Of America, Inc. Method and apparatus for determining the displacement of a rectangular object with respect to a reference position
JP2005300525A (en) * 2004-03-15 2005-10-27 Omron Corp Sensor device
JP2011151087A (en) * 2010-01-19 2011-08-04 Panasonic Corp Component mounting device, component detecting apparatus, and component mounting method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5198876A (en) * 1990-11-13 1993-03-30 Matsushita Electric Industrial Co., Ltd. Method of measuring three-dimensional postion of workpiece
US5317388A (en) * 1992-06-29 1994-05-31 United Parcel Service Of America, Inc. Method and apparatus for determining the displacement of a rectangular object with respect to a reference position
JP2005300525A (en) * 2004-03-15 2005-10-27 Omron Corp Sensor device
JP2011151087A (en) * 2010-01-19 2011-08-04 Panasonic Corp Component mounting device, component detecting apparatus, and component mounting method

Also Published As

Publication number Publication date
JP2610295B2 (en) 1997-05-14

Similar Documents

Publication Publication Date Title
US5134575A (en) Method of producing numerical control data for inspecting assembled printed circuit board
JPH0572961B2 (en)
JPH0346998B2 (en)
US11982522B2 (en) Three-dimensional measuring device
US4553844A (en) Configuration detecting method and system
US20030113008A1 (en) Process and device for generating test patterns when applying solder paste by a screen process on printed circuit boards
JPH01257206A (en) Position recognition apparatus
JP3148000B2 (en) Solder printing inspection method
JPH0221372A (en) Soldering check device
JP2648476B2 (en) Parts detection device
JPH02268260A (en) Solder inspecting apparatus
KR20000004289A (en) Method for setting teaching data of pcb automatic test device and apparatus thereof
JPS62115591A (en) Recognition method for pattern position
JPH0399250A (en) Mounting state recognizing apparatus
JPS62127602A (en) Parts inspecting device
JPH08128816A (en) Lead inspection method
JPH0210102A (en) Detection of positioning mark on board
JPH0399251A (en) Mounted state recognizing apparatus
JPH03195906A (en) Inspecting apparatus for soldered state
WO2025215756A1 (en) Component mounting system and generating device
JPH0367567B2 (en)
JPS63269001A (en) Method for recognizing body
JPH01193975A (en) Inspection device for printed substrate
JPH0418765B2 (en)
JPH039249A (en) Component packaging inspecting device

Legal Events

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