Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3079640B2 - Contour detection method - Google Patents
[go: Go Back, main page]

JP3079640B2 - Contour detection method - Google Patents

Contour detection method

Info

Publication number
JP3079640B2
JP3079640B2 JP03137663A JP13766391A JP3079640B2 JP 3079640 B2 JP3079640 B2 JP 3079640B2 JP 03137663 A JP03137663 A JP 03137663A JP 13766391 A JP13766391 A JP 13766391A JP 3079640 B2 JP3079640 B2 JP 3079640B2
Authority
JP
Japan
Prior art keywords
contour
point
boundary
search
image 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.)
Expired - Fee Related
Application number
JP03137663A
Other languages
Japanese (ja)
Other versions
JPH04362788A (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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP03137663A priority Critical patent/JP3079640B2/en
Publication of JPH04362788A publication Critical patent/JPH04362788A/en
Application granted granted Critical
Publication of JP3079640B2 publication Critical patent/JP3079640B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Processing Or Creating Images (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、電子部品実装装置にお
いて、電子部品の位置検出を非接触で高速に行う視覚認
識装置における画像処理方法で、電子部品をビデオカメ
ラなどの撮像装置で撮像して得た画像の外形の輪郭線を
検出する方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method in a visual recognition device for detecting the position of an electronic component in a non-contact manner at a high speed in an electronic component mounting apparatus. And a method for detecting an outline of an outer shape of an image obtained by the method.

【0002】[0002]

【従来の技術】近年、電子部品実装分野では電子部品を
高速かつ正確に回路基板に装着する技術が必要とされて
いる。このため、電子部品をビデオカメラなどで撮像
し、その映像信号をデジタル化した画像パターンを高速
に処理して、電子部品の位置検出を非接触で高速に行う
デジタル画像処理技術が活用される傾向にある。従来、
デジタル画像処理技術を活用した位置検出方法として
は、画像パターンが外部と接する境界点を検出すること
により、境界点のつらなりである輪郭線を検出し、この
輪郭線が形成する図形の重心を電子部品の中心とする位
置検出方法などが用いられてきた。従来の、画像パター
ンの境界点を検出する方法を、図5を用いて説明する。
図5において、50は電子部品の画像パターン、51は
画像パターン中の穴、52は境界点探索の始点で電子部
品を吸着しているノズル53の回転中心である。図5
(a)において、始点から開始して左方向54に探索を
行い、境界点55を検出する。そして境界点55より、
隣接する境界点を次々と検出することで輪郭線56を得
る。次に、得られた輪郭線56が画像パターンの外形に
相当する輪郭線であるかどうかの判定を、輪郭線を構成
する画素の境界点の数があらかじめ定められている境界
点数Ndよりも多いかどうかによって行う。境界点の数
があらかじめ定められている境界点数Ndよりも多けれ
ば、輪郭線56が画像パターン50の外形に相当する輪
郭線であると判断する。判定の基準となる境界点数Nd
は、処理対象物の外周寸法に基づいて、たとえば、外周
寸法の4分の1ほどに定められるのが普通である。
2. Description of the Related Art In recent years, in the field of electronic component mounting, a technique for mounting electronic components on a circuit board at high speed and accurately has been required. For this reason, digital image processing technology that captures electronic components with a video camera or the like, processes image signals obtained by digitizing the video signals at high speed, and performs non-contact and high-speed position detection of electronic components tends to be used. It is in. Conventionally,
As a position detection method utilizing digital image processing technology, a boundary point where the image pattern is in contact with the outside is detected to detect a contour line that is a series of the boundary points, and the center of gravity of the figure formed by the contour line is electronically determined. A method of detecting the position of the center of a component has been used. A conventional method for detecting a boundary point between image patterns will be described with reference to FIG.
In FIG. 5, reference numeral 50 denotes an image pattern of an electronic component, 51 denotes a hole in the image pattern, and 52 denotes a rotation center of a nozzle 53 which is sucking the electronic component at a starting point of a boundary point search. FIG.
In (a), the search is performed in the left direction 54 starting from the start point, and the boundary point 55 is detected. And from the boundary point 55,
Contour lines 56 are obtained by detecting adjacent boundary points one after another. Next, it is determined whether or not the obtained outline 56 is an outline corresponding to the outer shape of the image pattern, by determining that the number of boundary points of pixels constituting the outline is larger than a predetermined number Nd of boundary points. Depending on whether or not. If the number of boundary points is larger than the predetermined number Nd of boundary points, it is determined that the outline 56 is an outline corresponding to the outer shape of the image pattern 50. Number of boundary points Nd as a reference for judgment
Is usually set to, for example, about one-fourth of the outer peripheral dimension based on the outer peripheral dimension of the processing object.

【0003】図5(b)では、輪郭線56を構成する境
界点の数があらかじめ定められている境界点数Ndより
も少ないため、境界点検出をやり直した場合を説明して
いる。この時の探索方向は、最初の探索方向54と異な
る方向57を選び、境界点58を検出し、そこから隣接
する境界点を次々と検出して、輪郭線59を得、輪郭線
59を構成する境界点の数をあらかじめ定められている
境界点数Ndと比較する。その結果、輪郭線59を構成
する境界点の数があらかじめ定められている境界点数N
dよりも多いので、輪郭線59が画像パターン50の外
形に相当する正しい輪郭線であると判断する。
FIG. 5B illustrates a case where the number of boundary points constituting the outline 56 is smaller than a predetermined number Nd of boundary points, and thus the detection of boundary points is performed again. As the search direction at this time, a direction 57 different from the first search direction 54 is selected, a boundary point 58 is detected, adjacent boundary points are detected one after another to obtain a contour 59, and the contour 59 is formed. The number of boundary points to be performed is compared with a predetermined number Nd of boundary points. As a result, the number of boundary points constituting the contour line 59 is set to a predetermined number N of boundary points.
Since it is larger than d, it is determined that the outline 59 is a correct outline corresponding to the outer shape of the image pattern 50.

【0004】[0004]

【発明が解決しようとする課題】前述した従来技術によ
る輪郭線検出方法では、輪郭線を構成する境界点の数が
あらかじめ定められている境界点数Ndより大きけれ
ば、対象物の外形の輪郭線を検出したと判断するので、
たとえば、図5(c)に示すように、電子部品の形状の
不具合や撮像時の照明の不具合など、何らかの原因で穴
51の周長が少し長くなった場合、境界点数Ndの定め
方によってはこれを外形輪郭線と誤認する場合がある。
In the above-described conventional method for detecting a contour line, if the number of boundary points forming the contour line is larger than a predetermined number Nd of boundary points, the contour line of the outer shape of the object is determined. Since it is determined that it has been detected,
For example, as shown in FIG. 5C, when the circumference of the hole 51 becomes slightly longer for some reason, such as a defect in the shape of an electronic component or a defect in illumination at the time of imaging, depending on how the boundary point number Nd is determined. This may be mistaken for an outline.

【0005】本発明は、上記従来の課題を解決し、高速
かつ信頼性の高い輪郭線検出方法を提供することを目的
とする。
An object of the present invention is to solve the above-mentioned conventional problems and to provide a high-speed and highly reliable contour detection method.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に本発明の輪郭線検出方法では、従来方法と同様に処理
対象となる電子部品の画像パターン内部の点を境界点探
索の始点とし、検出した輪郭線に外接する長方形を作
り、その内側に上記探索の始点が含まれている場合のみ
輪郭線が正しく検出されたと判定する。
In order to achieve the above object, in the method of detecting a contour line according to the present invention, a point inside an image pattern of an electronic component to be processed is set as a starting point of a boundary point search as in the conventional method. A rectangle circumscribing the detected contour is created, and it is determined that the contour has been correctly detected only when the search start point is included inside the rectangle.

【0007】[0007]

【作用】本発明は前記の方法により、空洞部を含んだ画
像パターンに対しても、処理対象物の外形に相当する輪
郭線を正確に検出することができる。
According to the present invention, the contour line corresponding to the outer shape of the object to be processed can be accurately detected even for an image pattern including a cavity by the above method.

【0008】[0008]

【実施例】本発明の一実施例を図1と図2を用いて説明
する。図1は本発明の一実施例の概要を示すフローチャ
ートであり、図2は本発明の一実施例の概要を示すブロ
ック図である。第1工程は、画像パターン入力工程であ
る。電子部品10が照明手段11を備えた装着ノズル1
2に吸着されて保持されている。電子部品10をビデオ
カメラなどの撮像手段13で撮像して得られる映像信号
を、映像信号デジタル化手段14でデジタル化し画像パ
ターンとして画像パターン記憶手段15に入力する。第
2工程は、境界点探索方向決定工程である。画像パター
ンの内部の1点を始点として画像パターンの境界を探索
する第1の方向を定める工程で、中央処理手段16が境
界点探索方向記憶手段17に初期値を設定する。第3工
程は、境界点探索工程である。画像パターンの内部の1
点を始点として、第2工程で決定された方向に画像パタ
ーンの境界を探索する工程である。境界点探索手段18
が、境界点探索方向記憶手段17より探索方向を読みだ
し、その方向に探索を行う。探索が完了すれば、境界点
探索手段18は、中央処理手段16に探索した境界点の
位置を通知する。第4工程は、輪郭線検出工程である。
前記第3工程で得られた画像パターンの境界上の1点を
第2の始点として、輪郭線検出手段19が隣接する境界
点を次々と検出し、境界点の集合である輪郭線を検出す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a flowchart showing an outline of an embodiment of the present invention, and FIG. 2 is a block diagram showing an outline of an embodiment of the present invention. The first step is an image pattern input step. Mounting nozzle 1 in which electronic component 10 is provided with illumination means 11
2 and is held. A video signal obtained by imaging the electronic component 10 with an imaging unit 13 such as a video camera is digitized by a video signal digitizing unit 14 and input to an image pattern storage unit 15 as an image pattern. The second step is a boundary point search direction determining step. In a step of determining a first direction for searching for a boundary of the image pattern starting from one point inside the image pattern, the central processing unit 16 sets an initial value in the boundary point search direction storage unit 17. The third step is a boundary point search step. 1 inside the image pattern
This is a step of searching for a boundary of the image pattern in the direction determined in the second step with the point as a starting point. Boundary point searching means 18
Reads the search direction from the boundary point search direction storage means 17 and searches in that direction. When the search is completed, the boundary point searching unit 18 notifies the central processing unit 16 of the position of the searched boundary point. The fourth step is a contour detection step.
With one point on the boundary of the image pattern obtained in the third step as a second starting point, the contour line detecting means 19 successively detects adjacent boundary points, and detects a contour line which is a set of boundary points. .

【0009】第5工程は、輪郭線正誤判定工程である。
第4工程により検出された輪郭線が、対象物の外形に相
当する輪郭線であるかを判定する。第4工程の輪郭線検
出工程で、前記画像パターンの境界点を検出する際に、
境界点の最大・最小座標(Xmin,Ymin)および
(Xmax,Ymax)を求めて中央処理手段16に格
納しておく。この2点は、検出した輪郭線に外接する長
方形を表している。第3工程の境界点探索工程の第1の
始点が前記長方形領域に含まれていれば、正しい輪郭線
が検出されたと判定する。第1の始点が前記長方形領域
に含まれていなければ、正しい輪郭線が検出されなかっ
たと判定する。第6工程は、境界点探索方向変更工程で
ある。前記第5工程で正しい輪郭線が検出されなかった
と判定された場合に、境界点検出方向を変えて、処理を
前記第3工程に戻すものである。第3工程の第1の始点
は変更せずに、探索方向のみ変更する。以上の処理によ
り求めた画像パターンの輪郭線より、さらに、画像パタ
ーンの中心位置および傾きを算出し、上位コントローラ
20へ前記中心位置および傾きを送出する。
The fifth step is a contour right / wrong judgment step.
It is determined whether the contour detected in the fourth step is a contour corresponding to the outer shape of the object. When detecting a boundary point of the image pattern in the contour detection step of the fourth step,
The maximum and minimum coordinates (Xmin, Ymin) and (Xmax, Ymax) of the boundary point are obtained and stored in the central processing unit 16. These two points represent a rectangle circumscribing the detected contour. If the first start point of the boundary point search step of the third step is included in the rectangular area, it is determined that a correct contour line has been detected. If the first start point is not included in the rectangular area, it is determined that a correct contour has not been detected. The sixth step is a boundary point search direction changing step. If it is determined in the fifth step that a correct contour line has not been detected, the process returns to the third step by changing the boundary point detection direction. Only the search direction is changed without changing the first starting point of the third step. The center position and the inclination of the image pattern are further calculated from the outline of the image pattern obtained by the above processing, and the center position and the inclination are sent to the host controller 20.

【0010】次に、本発明の具体的な実施例として、穴
あき電子部品の外形に相当する輪郭線を検出する方法に
ついて図3と図4を用いて説明する。図3において、2
1は穴あき電子部品の画像パターン、22は穴、23は
探索工程の第1の始点で電子部品を吸着しているノズル
12の回転中心である。図3(a)において、探索方向
24を左にとって探索し、画像パターン21の境界上の
1点25を検出する。次に図3(b)において、点25
を始点として、画像パターンを右に見る方向26へと進
みながら隣接する境界点を次々と検出し、境界点の集合
である輪郭線を検出する。図3(c)は、輪郭線検出が
完了した状態を示している。点25を始点として開始し
た輪郭線検出が点25に戻ってきたので輪郭線検出処理
を完了させる。ここで、境界点の最大・最小座標(Xm
in,Ymin)28および(Xmax,Ymax)2
9が同時に求まっており、この2点の座標は輪郭線に外
接する長方形27を表している。図3(c)では、探索
工程の第1の始点23が前記長方形領域に含まれていな
いので、中央処理手段16は正しい輪郭線が検出されて
いないと判定しリトライ処理へと進む。図4はリトライ
処理を示した図である。図4において、図3と同一箇所
は同一番号を付し説明は省略する。
Next, as a specific embodiment of the present invention, a method for detecting a contour line corresponding to the outer shape of a perforated electronic component will be described with reference to FIGS. In FIG. 3, 2
1 is an image pattern of a perforated electronic component, 22 is a hole, and 23 is a rotation center of the nozzle 12 which is sucking the electronic component at a first starting point of the search process. In FIG. 3A, the search is performed with the search direction 24 set to the left, and one point 25 on the boundary of the image pattern 21 is detected. Next, in FIG.
, The boundary points adjacent to each other are successively detected while proceeding in the direction 26 in which the image pattern is viewed rightward, and a contour line, which is a set of boundary points, is detected. FIG. 3C shows a state in which the outline detection has been completed. Since the outline detection started from the point 25 has returned to the point 25, the outline detection processing is completed. Here, the maximum / minimum coordinates (Xm
in, Ymin) 28 and (Xmax, Ymax) 2
9 are determined at the same time, and the coordinates of these two points represent a rectangle 27 circumscribing the contour. In FIG. 3C, since the first starting point 23 of the search step is not included in the rectangular area, the central processing unit 16 determines that the correct contour has not been detected, and proceeds to the retry processing. FIG. 4 illustrates the retry processing. 4, the same parts as those in FIG. 3 are denoted by the same reference numerals, and description thereof will be omitted.

【0011】図4(a)において、まず探索方向である
が、図3(a)での探索方向24を時計回りに90度回
転させて上向きの30の方向にとり、画像パターン21
の境界上の1点31を検出する。
In FIG. 4 (a), the search direction is first turned. The search direction 24 in FIG.
Point 31 on the boundary of is detected.

【0012】次に図4(b)において、点31を始点と
して画像パターンを右に見る方向32へと進みながら隣
接する境界点を次々と検出し、境界点の集合である輪郭
線を検出する。
Next, in FIG. 4B, adjacent boundary points are detected one after another while proceeding in the direction 32 in which the image pattern is viewed rightward from the point 31 as a starting point, and a contour line which is a set of boundary points is detected. .

【0013】図4(c)は、輪郭線検出が完了した状態
を示している。点31を始点として開始した輪郭線検出
が、点31に戻ってきたので輪郭線検出処理を完了させ
る。ここで、境界点の最大・最小座標(Xmin,Ym
in)34および(Xmax,Ymax)35が同時に
求まっており、この2点の座標は輪郭線に外接する長方
形33を表している。図4(c)では、探索工程の始点
23が長方形33に含まれており、リトライ処理によっ
て正しい輪郭線が検出されていることがわかる。もし始
点23が長方形33に含まれていなければ探索方向を変
えて、正しい輪郭線が検出されるまでリトライがくり返
される。
FIG. 4C shows a state in which the detection of the outline has been completed. Since the outline detection started from the point 31 has returned to the point 31, the outline detection processing is completed. Here, the maximum and minimum coordinates (Xmin, Ym) of the boundary point
in) 34 and (Xmax, Ymax) 35 are determined at the same time, and the coordinates of these two points represent a rectangle 33 circumscribing the contour. In FIG. 4C, the starting point 23 of the search step is included in the rectangle 33, and it can be seen that the correct contour is detected by the retry processing. If the starting point 23 is not included in the rectangle 33, the search direction is changed and retries are repeated until a correct contour is detected.

【0014】[0014]

【発明の効果】以上の説明で明らかなように本発明の輪
郭線検出方法によれば、画像パターン中の空洞部の影響
を受けることなく、正確に対象物の輪郭線を検出するこ
とが可能であるので、電子部品の形状や照明の不具合に
影響される可能性が減少し、より信頼性の高い輪郭線検
出ひいては信頼性の高い位置検出が可能となる。
As is apparent from the above description, according to the contour detection method of the present invention, it is possible to accurately detect the contour of the object without being affected by the cavity in the image pattern. Therefore, the possibility of being affected by the shape of the electronic component or a defect in the illumination is reduced, and more reliable contour detection and, therefore, more reliable position detection can be performed.

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

【図1】本発明の一実施例の概要を示すフローチャートFIG. 1 is a flowchart showing an outline of an embodiment of the present invention.

【図2】本発明の一実施例の概要を示すブロック図FIG. 2 is a block diagram showing an outline of an embodiment of the present invention.

【図3】本発明の輪郭線検出方法を説明する図FIG. 3 is a diagram illustrating a contour detection method according to the present invention.

【図4】本発明の輪郭線検出方法を説明する図FIG. 4 is a view for explaining a contour detection method according to the present invention;

【図5】従来の輪郭線検出方法を説明する図FIG. 5 is a diagram illustrating a conventional contour detection method.

フロントページの続き (72)発明者 清水 隆 大阪府門真市大字門真1006番地 松下電 器産業株式会社内 (56)参考文献 特開 昭63−101979(JP,A) 特開 昭60−237582(JP,A) 特開 平2−110777(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 1/00 G06T 7/00 - 7/60 G06T 9/20 G06T 11/80 Continuation of front page (72) Inventor Takashi Shimizu 1006 Kazuma Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Industrial Co., Ltd. (56) References JP-A-63-101979 (JP, A) JP-A-60-237582 (JP) , A) JP-A-2-110777 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06T 1/00 G06T 7 /00-7/60 G06T 9/20 G06T 11/80

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】認識対象物のデジタル化した画像パターン
を得る第1工程と、次の第3工程における探索方向を定
める第2工程と、画像パターン内にある所定の第1の始
点から上記探索方向に探索してこの画像の輪郭線上の1
点を検出する第3工程と、上記第3工程で得られた輪郭
線上の1点を始点とした探索を行ってひとまわりの輪郭
線を得る第4工程と、上記第4工程で得た輪郭線に外接
する長方形を作り上記第1の始点がその中にある場合は
この輪郭線は正しいものであると判定しそうでない場合
はこの輪郭線は正しくないと判定する第5工程と、上記
第5工程で輪郭線が正しくないと判定された場合探索の
方向を変更して処理を第3工程に戻す第6工程とを備え
た輪郭線検出方法。
1. A first step of obtaining a digitized image pattern of a recognition target, a second step of determining a search direction in a next third step, and the search from a predetermined first start point in the image pattern. Search in the direction to find 1
A third step of detecting points, a fourth step of performing a search with one point on the contour obtained in the third step as a start point, and obtaining a contour around the contour, and a contour obtained in the fourth step. A fifth step of making a rectangle circumscribing the line and determining that the contour is not correct if the first starting point is within the rectangle; otherwise, determining that the contour is not correct; A step of changing the direction of the search when the contour is determined to be incorrect in the step and returning the processing to the third step.
JP03137663A 1991-06-10 1991-06-10 Contour detection method Expired - Fee Related JP3079640B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03137663A JP3079640B2 (en) 1991-06-10 1991-06-10 Contour detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03137663A JP3079640B2 (en) 1991-06-10 1991-06-10 Contour detection method

Publications (2)

Publication Number Publication Date
JPH04362788A JPH04362788A (en) 1992-12-15
JP3079640B2 true JP3079640B2 (en) 2000-08-21

Family

ID=15203911

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03137663A Expired - Fee Related JP3079640B2 (en) 1991-06-10 1991-06-10 Contour detection method

Country Status (1)

Country Link
JP (1) JP3079640B2 (en)

Also Published As

Publication number Publication date
JPH04362788A (en) 1992-12-15

Similar Documents

Publication Publication Date Title
JP3079640B2 (en) Contour detection method
JPH08136235A (en) Pattern detection method
JP2003086919A (en) Pattern inspection equipment
JPH06243253A (en) Circular object matter detecting device
JP3098847B2 (en) Component recognition method
JP2985380B2 (en) Electronic component position detection method
JP2001174221A (en) Component position detection method and device
JP3119688B2 (en) Tilt detection method
JP2897439B2 (en) Corner position detection method
JP2904228B2 (en) Pattern recognition method
JP3342582B2 (en) Image recognition method
JP2871036B2 (en) Image processing device
JP3235392B2 (en) Rotation angle detection method for target pattern
JPH095022A (en) Pattern position detecting method and apparatus by image recognition
JP2855913B2 (en) Pattern recognition method
JPH08166355A (en) Defect inspection apparatus
JPH0727563B2 (en) Pattern detection method
JPH0155630B2 (en)
JP3191373B2 (en) Pattern recognition method
JPH06160040A (en) Lead end detection method
JP2587482B2 (en) Pattern matching method
JP2001183119A (en) Pattern inspection equipment
JP2974788B2 (en) Pattern position detection method
JP2000099724A (en) Image data recognition method and apparatus
JPH05296725A (en) Position detection method

Legal Events

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