JPS61122788A - Leading position detector of electronic parts - Google Patents

Leading position detector of electronic parts

Info

Publication number
JPS61122788A
JPS61122788A JP59244777A JP24477784A JPS61122788A JP S61122788 A JPS61122788 A JP S61122788A JP 59244777 A JP59244777 A JP 59244777A JP 24477784 A JP24477784 A JP 24477784A JP S61122788 A JPS61122788 A JP S61122788A
Authority
JP
Japan
Prior art keywords
circuit
standard
reference point
search area
pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP59244777A
Other languages
Japanese (ja)
Inventor
Kazumasa Okumura
一正 奥村
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP59244777A priority Critical patent/JPS61122788A/en
Publication of JPS61122788A publication Critical patent/JPS61122788A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To determine the position of an electronic parts easily by previously storing a standard position from a reference point in an area including only a specific pattern, calculating the reference point from projection data obtained by image pickup and setting the area from the stored value. CONSTITUTION:An output from an image pickup device 1 is inputted to a projecting circuit 11 through a binary-coding circuit 2 to obtain projection data 21, 22 in the (x) and (y) directions. A reference point calculating circuit 12 calculates a reference point A to be an end point from the projection data 21, 22. A standard distance (r) and a standard angle have been registered in a standard distance/angle storing circuit 14 so that a lead to be detected is included and other leads are not included and a search area setting circuit 13 reads out the standard distance (r) and angle to set a search area 23. In the area 23, a pattern matching circuit 4 matches data read out from a standard pattern storage circuit 3 with its corresponding pattern to detect a position representing the 1st lead.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、電子部品をプリント基板に実装する場合等に
利用される電子部品リード位置検出装置に関するLので
ある。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an electronic component lead position detection device used when electronic components are mounted on a printed circuit board.

従来の技術 近年、電子機器に用いられるプリント基板に高密度実装
するため多リードで小型の電子部品が使われるようにな
り、それらを高精度に位置決めできる電子部品リード位
置検出装置が重要視されてきた。
Conventional technology In recent years, small electronic components with multiple leads have been used for high-density mounting on printed circuit boards used in electronic devices, and electronic component lead position detection devices that can position them with high precision have become important. Ta.

以下、図面を参照しながら、上述したような従来の電子
部品リード位置検出装置について説明を行なう。
Hereinafter, the conventional electronic component lead position detection device as described above will be explained with reference to the drawings.

第4図は従来の電子部品位置検出装置の構成を示すもの
である。第1図において、(1)は撮像装置、(2)は
撮像装置(1)で撮像された映像を2値化する2値化回
路、(3)は標準パターンを記憶する標準パターン記憶
回路、(4)はパターンマツチング回路、(5)は対象
物の電子部品である。
FIG. 4 shows the configuration of a conventional electronic component position detection device. In FIG. 1, (1) is an imaging device, (2) is a binarization circuit that binarizes the video imaged by the imaging device (1), (3) is a standard pattern storage circuit that stores a standard pattern, (4) is a pattern matching circuit, and (5) is an electronic component of the object.

以上のように構成された電子部品位置検出装置について
、以下その動作について説明する。
The operation of the electronic component position detection device configured as described above will be described below.

まず、撮像装置fl)が電子部品(5)を撮像する。撮
像された映像信号は2値化回路(2)へ入力され、2値
化信号に交換される。2値化信号はパターンマツチング
回路(4)に入力され、あらかじめ記憶されている電子
部品(5+の部分的な標準パターンとパターンマツチン
グを行ない、電子部品(5)の位置を検出し出力する。
First, the imaging device fl) images the electronic component (5). The captured video signal is input to the binarization circuit (2) and exchanged into a binarized signal. The binarized signal is input to a pattern matching circuit (4), which performs pattern matching with a pre-stored partial standard pattern of electronic components (5+) to detect and output the position of the electronic component (5). .

この様子を更に第5図で説明する。This situation will be further explained with reference to FIG.

撮像装置(1)で撮像され2値化回路(2)で2値化さ
れた撮像画面が(6)のようになっているとき、標準パ
ターン(7)で撮像画面(6)の左上から右下まで1画
素毎に一致度を測定していくと、(8)の個所が最もよ
く一致度が高くなり、その座標が電子部品(5)を代表
する位置として検出し出力する。
When the image capture screen captured by the image capture device (1) and binarized by the binarization circuit (2) looks like (6), the standard pattern (7) is used to move from the top left of the image capture screen (6) to the right. When the degree of coincidence is measured pixel by pixel all the way to the bottom, the degree of coincidence is highest at point (8), and its coordinates are detected and output as a position representative of electronic component (5).

発明が解決しようとする間頂点 従来のような構成では、例えばフラットパックージエO
のようにリードが多くあるような電子部品の場合は、同
じ形状のパターンが複数個存在することになり、かなら
ずしも一致度の最も高い点が認識点とはならず、そのう
ちの特定の1リードの位置を検出することは困難である
という欠点を有していた。
While the invention seeks to solve the problem in conventional configurations, e.g.
In the case of electronic components with many leads, such as the one shown in the figure, there will be multiple patterns with the same shape, and the point with the highest degree of matching will not necessarily be the recognition point. It has the disadvantage that it is difficult to detect the position.

発明の構成 本発明は、撮像装置、撮像装置で撮像した電子部品リー
ドの映像を2値化する回路、前記2値化回路の信号の白
又は黒の部分をX方向及びy方向に投影し投影データを
作成する投影回路、前記投影データから撮像画面上のあ
る点を基準点として算出する基準点算出回路、基準点か
らサーチエリアまでの標準的な距離と角度を記憶する標
準距離角度記憶回路、前記基準点算出回路と標準距離角
度記憶回路からサーチエリアを設定するサーチエリア設
定回路、標準パターンを記憶する標準パターン記憶回路
および前記サーチエリア設定回路のサーチエリア内にお
いて前記標準パターンによりパターンマツチングを行う
パターンマツチング回路からなるものである。
Structure of the Invention The present invention provides an imaging device, a circuit that binarizes an image of an electronic component lead imaged by the imaging device, and a projection device that projects a white or black portion of a signal from the binarization circuit in the X direction and the y direction. a projection circuit that creates data; a reference point calculation circuit that calculates a certain point on the imaging screen as a reference point from the projection data; a standard distance and angle storage circuit that stores a standard distance and angle from the reference point to the search area; A search area setting circuit that sets a search area from the reference point calculation circuit and the standard distance angle storage circuit, a standard pattern storage circuit that stores the standard pattern, and pattern matching using the standard pattern within the search area of the search area setting circuit. It consists of a pattern matching circuit that performs

作用 本発明は、従来の2値化回路とパターンマツチング回路
間に、2値化信号をX方向への投影データQυとy方向
への投影データ(至)が作られる投影回路、投影データ
Qυ、■の端点から基準点A点の座標を算出する基準点
算出回路、あらかじめ検出したいリードを含み、他のリ
ードは含まないよう標準的な距離rと角度θを登録した
標準距離角度記憶回路、および前記基準点算出回路と標
準距離角度記憶回路からサーチエリアを設定するサーチ
エリア設定回路を設け、標準パターンを記憶する標準パ
ターン記憶回路の標準パターンによりサーチエリア内に
おいてパターンマツチングを行い、同一形状のリードパ
ターンのうち一つのリード位置を検出することができる
Operation The present invention provides a projection circuit and a projection data Qυ for creating projection data Qυ of a binarized signal in the A reference point calculation circuit that calculates the coordinates of the reference point A from the end points of , ■, a standard distance and angle storage circuit that registers a standard distance r and angle θ so that it includes the lead to be detected in advance and excludes other leads; A search area setting circuit is provided to set a search area from the reference point calculation circuit and the standard distance angle storage circuit, and pattern matching is performed within the search area using the standard pattern of the standard pattern storage circuit that stores the standard pattern, and the same shape The position of one of the lead patterns can be detected.

実施例 第1図は本発明の電子部品位置検出装置の一実図 施例の構成をブロック °  °−で示す。Example Figure 1 is an actual diagram of the electronic component position detection device of the present invention. The configuration of the example is shown by blocks °°-.

図において、第4図、第5図と同一符号は同一部品、同
一部分を示す。
In the figure, the same reference numerals as in FIGS. 4 and 5 indicate the same parts and parts.

αυはX方向及びy゛方向2値化データを投影する投影
回路、α2は投影データがら撮像画面内のある基準点を
算出する基準点算出回路、α1はパターンマツチングを
行なうサーチエリアを設定するサーチエリア設定回路、
Iは基準点からサーチエリアまでの標準的な距離と角度
を記憶している標準距離角度記憶回路、を示す。
αυ is a projection circuit that projects binary data in the X direction and y′ direction, α2 is a reference point calculation circuit that calculates a certain reference point within the imaging screen from the projection data, and α1 is a search area for pattern matching. Search area setting circuit,
I indicates a standard distance and angle storage circuit that stores standard distances and angles from the reference point to the search area.

本発明の電子部品リード位置検出装置の動作について説
明する。まず撮像装置(1)で電子部品(5)が撮像さ
れる。撮像された映像は2値化回路(2)で2値化され
、2値化信号が投影回路αυへ入力される。
The operation of the electronic component lead position detection device of the present invention will be explained. First, the electronic component (5) is imaged by the imaging device (1). The captured video is binarized by a binarization circuit (2), and the binarized signal is input to the projection circuit αυ.

投影回路αυでは第2図に示すようにX方向への投影デ
ータ011とy方向への投影データ(2)が作られる。
In the projection circuit αυ, as shown in FIG. 2, projection data 011 in the X direction and projection data (2) in the y direction are created.

この図で翰は撮像画の2値画像を示している。基準点算
出回路α2では、投影データc!〃と(2)の端点から
図のように基準点A点の座標を算出する。
In this figure, the wire indicates a binary image of the captured image. The reference point calculation circuit α2 calculates the projection data c! From the end points of 〃 and (2), calculate the coordinates of the reference point A as shown in the figure.

次にサーチエリア設定回路α3では、標準距離角度記憶
回路にあらかじめ検出したいリードを含み、他のリード
は含まないように登録されている標準的な距離rと角度
θを読み出して、A点を基準にサーチエリア(ハ)を設
定する。そして第3図(イ)のサーチエリア@において
第3図(ロ)に示す標準パターンでパターンマツチング
を行なうとこの電子部品の1本目のリードを代表する位
置Q4を検出することができる。
Next, the search area setting circuit α3 reads out the standard distance r and angle θ, which are registered in advance in the standard distance angle storage circuit so as to include the lead to be detected and exclude other leads, and uses the point A as a reference. Set the search area (c) to . When pattern matching is performed using the standard pattern shown in FIG. 3(B) in the search area @ of FIG. 3(A), a position Q4 representing the first lead of this electronic component can be detected.

以上のように本実施例によれば、投影データから電子部
品の基準点を検出し、その基準点を基準にして、標準的
な距離と角度から複数の同一形状を有している電子部品
のリードのうち検出したいリードのみを含むようにサー
チエリアを設定し、サーチエリア内においてパターンマ
ツチングを行なうことにより正確に電子部品のリードの
うち検出したいリードの位置を検出することができる。
As described above, according to this embodiment, a reference point of an electronic component is detected from projection data, and a plurality of electronic components having the same shape are detected from standard distances and angles based on the reference point. By setting a search area to include only the leads to be detected among the leads and performing pattern matching within the search area, it is possible to accurately detect the position of the lead to be detected among the leads of the electronic component.

なお、本実施例ではサーチエリアを固定の大きさとした
が、対象物にあわせて大きさを設定し、標準距離角度記
憶回路に登録しておいて、位置検出を行なう時にその値
を読み出してサーチエリアを設定してもよい。
In this example, the search area is set to a fixed size, but the size can be set according to the target object, registered in the standard distance and angle memory circuit, and the value can be read out and searched when performing position detection. You may also set an area.

発明の効果 本発明は、撮像装置により撮像した映像を2値化し、2
値化された信号からX方向及びy方向の投影データを作
る手段と投影データから撮像画面上の基準点を算出する
手段と基準点を基準にして標準的な距離と角度からサー
チエリアを設定する手段とサーチエリア内においてパタ
ーンマツチングする手段とにより、同一形状のリードが
複数個存在する電子部品の特定のリード位置を容易に検
出することができる実用的効果を生ずる。
Effects of the Invention The present invention binarizes an image captured by an imaging device, and
Means for creating projection data in the X direction and Y direction from the converted signal; Means for calculating a reference point on the imaging screen from the projection data; and Setting a search area from standard distances and angles based on the reference point. The means and the means for pattern matching within the search area produce a practical effect in which a specific lead position of an electronic component in which a plurality of leads of the same shape are present can be easily detected.

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

第1図は本発明の電子部品リード位置検出装置の一実施
例の構成のブロック図、第2図は投影データを説明する
図、第3図はサーチエリアを説明する図、(イ)はサー
チエリア、(ロ)は標準パターン、第4図は従来の電子
部品検出装置の構成図、第5図は従来例の説明のための
図、ピ)は撮像画面、(ロ)は標準パターン、を示す。 に撮像装置  2:2値化回路  3:標準パターン記
憶回路  4:パターンマッチング回路5:電子部品 
 6:撮像画面  7:標準パターン  8:最もよく
一致度の画素部分  11:投影回路  【2:基準点
算出回路  13:サーチエリア設定回路  14:標
準距離角度記憶回路特許出願人    松下電器産業株
式会社代理人弁理士   阿  部    功(イ) 第3図 f)        第5図
FIG. 1 is a block diagram of the configuration of an embodiment of the electronic component lead position detection device of the present invention, FIG. 2 is a diagram for explaining projection data, FIG. 3 is a diagram for explaining the search area, and (A) is a diagram for explaining the search area. area, (b) is a standard pattern, Fig. 4 is a configuration diagram of a conventional electronic component detection device, Fig. 5 is a diagram for explaining the conventional example, p) is an imaging screen, and (b) is a standard pattern. show. Imaging device 2: Binarization circuit 3: Standard pattern storage circuit 4: Pattern matching circuit 5: Electronic components
6: Imaging screen 7: Standard pattern 8: Pixel portion with the best match 11: Projection circuit [2: Reference point calculation circuit 13: Search area setting circuit 14: Standard distance and angle storage circuit Patent applicant Matsushita Electric Industrial Co., Ltd. Agent Patent attorney Isao Abe (a) Figure 3 f) Figure 5

Claims (1)

【特許請求の範囲】[Claims] 撮像装置、撮像装置で撮像した電子部品リードの映像を
2値化する回路、前記2値化回路の信号の白又は黒の部
分をx方向及びy方向に投影し投影データを作成する投
影回路、前記投影データから撮像画面上のある点を基準
点として算出する基準点算出回路、基準点からサーチエ
リアまでの標準的な距離と角度を記憶する標準距離角度
記憶回路、前記基準点算出回路と標準距離角度記憶回路
からサーチエリアを設定するサーチエリア設定回路、標
準パターンを記憶する標準パターン記憶回路および前記
サーチエリア設定回路のサーチエリア内において前記標
準パターンによりパターンマッチングを行うパターンマ
ッチング回路からなる電子部品リード位置検出装置。
an imaging device, a circuit that binarizes an image of an electronic component lead imaged by the imaging device, a projection circuit that projects the white or black portion of the signal of the binarization circuit in the x direction and the y direction to create projection data; A reference point calculation circuit that calculates a certain point on the imaging screen as a reference point from the projection data, a standard distance and angle storage circuit that stores a standard distance and angle from the reference point to the search area, and the reference point calculation circuit and standard An electronic component comprising a search area setting circuit that sets a search area from a distance and angle storage circuit, a standard pattern storage circuit that stores a standard pattern, and a pattern matching circuit that performs pattern matching using the standard pattern within the search area of the search area setting circuit. Lead position detection device.
JP59244777A 1984-11-20 1984-11-20 Leading position detector of electronic parts Pending JPS61122788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59244777A JPS61122788A (en) 1984-11-20 1984-11-20 Leading position detector of electronic parts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59244777A JPS61122788A (en) 1984-11-20 1984-11-20 Leading position detector of electronic parts

Publications (1)

Publication Number Publication Date
JPS61122788A true JPS61122788A (en) 1986-06-10

Family

ID=17123760

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59244777A Pending JPS61122788A (en) 1984-11-20 1984-11-20 Leading position detector of electronic parts

Country Status (1)

Country Link
JP (1) JPS61122788A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01111281A (en) * 1987-10-23 1989-04-27 Matsushita Electric Ind Co Ltd Parts recognizing method
JPH02118885A (en) * 1988-10-28 1990-05-07 Pfu Ltd Inspection system for smd polarity identification by picture processing
EP1481727A3 (en) * 2003-05-30 2005-01-12 Agilent Technologies Inc Feature extraction methods and systems

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01111281A (en) * 1987-10-23 1989-04-27 Matsushita Electric Ind Co Ltd Parts recognizing method
JPH02118885A (en) * 1988-10-28 1990-05-07 Pfu Ltd Inspection system for smd polarity identification by picture processing
EP1481727A3 (en) * 2003-05-30 2005-01-12 Agilent Technologies Inc Feature extraction methods and systems

Similar Documents

Publication Publication Date Title
JPH0810132B2 (en) Target pattern rotation angle detection method
JPS60152903A (en) Position measuring method
JPS61122788A (en) Leading position detector of electronic parts
JPH0810800B2 (en) Part lead inspection and attitude recognition method
JP2978866B2 (en) Dimension measurement circuit by image processing
JPH03216503A (en) Position recognizing instrument
JP2680847B2 (en) Lead flatness detector for J-lead IC package
JPH06226561A (en) Circular position recognizing device
JP3098847B2 (en) Component recognition method
JPH0794971B2 (en) Cross-section shape detection method
JPH0760459B2 (en) Corner detector
JPH05173644A (en) Three-dimensional body recording device
JPH0399250A (en) Mounting state recognizing apparatus
JPH0631552Y2 (en) Character image binarization device
JPH0851131A (en) X-ray inspecting method
JPH05332746A (en) Recognizing device of solder paste form
JPH0310110A (en) Method and apparatus for measuring height
JPH087041A (en) Character recognition method and device
JP2954498B2 (en) Method for estimating joint position of electronic components
JPS55164823A (en) Orthogonal projection image forming method of three-dimensional object
JPS61283805A (en) Apparatus for detecting two-dimensional position
JPH0410074A (en) Picture pattern inclination detecting method
JPH0511036A (en) Target tracking apparatus
JP2694819B2 (en) Lead position detector
JPH01284979A (en) Picture recognizing device