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
JP3170912B2 - Image contour tracking method - Google Patents
[go: Go Back, main page]

JP3170912B2 - Image contour tracking method - Google Patents

Image contour tracking method

Info

Publication number
JP3170912B2
JP3170912B2 JP31308892A JP31308892A JP3170912B2 JP 3170912 B2 JP3170912 B2 JP 3170912B2 JP 31308892 A JP31308892 A JP 31308892A JP 31308892 A JP31308892 A JP 31308892A JP 3170912 B2 JP3170912 B2 JP 3170912B2
Authority
JP
Japan
Prior art keywords
image
boundary
background
contour
tracking
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
JP31308892A
Other languages
Japanese (ja)
Other versions
JPH06160053A (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 JP31308892A priority Critical patent/JP3170912B2/en
Publication of JPH06160053A publication Critical patent/JPH06160053A/en
Application granted granted Critical
Publication of JP3170912B2 publication Critical patent/JP3170912B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Image Analysis (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 contour tracking method for extracting a characteristic point of an image by eliminating an adverse effect of a noise region existing at a periphery of a camera field of view.

【0002】[0002]

【従来の技術】検査対象物の位置や形状などを求める画
像の輪郭追跡方法は、カメラにより検査対象物を観察し
てその画像を取り込み、視野内においてこの画像と背景
の境界を追跡して画像の特徴点を抽出し、この特徴点の
位置から検査対象物の形状、位置、重心位置などを求め
るようになっている。次に従来の輪郭追跡方法を説明す
る。
2. Description of the Related Art A contour tracing method of an image for obtaining a position, a shape, and the like of an inspection object is performed by observing the inspection object with a camera, capturing the image, and tracking a boundary between the image and the background in a visual field. Are extracted, and the shape, position, center of gravity, etc. of the inspection object are determined from the positions of the characteristic points. Next, a conventional contour tracking method will be described.

【0003】図6はカメラの視野1の内部に取り込まれ
た検査対象物2の画像2aを示している。この検査対象
物2は視野1よりも大きく、一部のみが視野1の内部に
入り、大部分は視野1からはみ出している。また視野1
の周縁にはノイズ領域3が存在する。さて視野1内の適
当な位置(例えば視野1のセンター)にスタート点4を
設定する。そして図中矢印にて示すようにこのスタート
点4から予め定められた方向(本実施例では上方向)に
走査して輝度の切替り点5すなわち検査対象物2の画像
2aと背景の境界を検出し、この切替り点5から予め定
められた方向(本実施例では反時計方向)に蛇行しなが
ら輪郭を追跡することにより、検査対象物2の画像2a
の特徴点(変曲点)Kを抽出する。
FIG. 6 shows an image 2a of the inspection object 2 captured inside the field of view 1 of the camera. The inspection object 2 is larger than the visual field 1, only a part of the inspection object 2 enters the visual field 1, and most of the inspection object 2 protrudes from the visual field 1. Also field of view 1
There is a noise region 3 on the periphery of. A start point 4 is set at an appropriate position in the visual field 1 (for example, at the center of the visual field 1). Then, as shown by an arrow in the figure, scanning is performed from this start point 4 in a predetermined direction (upward in this embodiment) to switch the luminance switching point 5, that is, the boundary between the image 2a of the inspection object 2 and the background. By detecting and tracing the contour while meandering in a predetermined direction (counterclockwise in this embodiment) from the switching point 5, the image 2a of the inspection object 2 is obtained.
The feature point (inflection point) K is extracted.

【0004】[0004]

【発明が解決しようとする課題】図6に示した例では、
画像2aの特徴点Kを抽出することができた。しかしな
がら従来方法では特徴点を抽出できない場合がある。図
7はこのような場合を示している。図示するようにカメ
ラに取り込まれた画像2aはかなり傾斜している。この
場合、スタート点4から所定の方向に輪郭追跡を行った
場合、ポイント6においてノイズ領域3の内部に迷い込
んでしまい、図中矢印にて示すように輪郭の追跡が不可
能になってしまうため、いつまでたっても特徴点Kを抽
出できないという問題点があった。また図6に示す場合
でも、破線矢印で示すように切替り点5から時計方向に
輪郭を追跡するよう追跡方向を設定すると、ポイント7
においてノイズ領域3に迷い込んでしまい、いつまでた
っても特徴点Kを抽出することができない。このような
問題点は、スタート点の位置設定や追跡方向(時計方向
か反時計方向か)や追跡距離の設定が不適当な場合に生
じやすい。したがって従来方法では、カメラの視野に取
り込まれる検査対象物の画像の向きを予想したうえで、
スタート点や追跡方向や追跡距離を設定せねばならず、
ソフトの設計が面倒であるという問題点があった。
In the example shown in FIG.
The feature point K of the image 2a was able to be extracted. However, there are cases where the feature points cannot be extracted by the conventional method. FIG. 7 shows such a case. As shown, the image 2a captured by the camera is considerably inclined. In this case, if the contour tracking is performed in a predetermined direction from the start point 4, the user gets lost in the noise area 3 at the point 6, and the tracking of the contour becomes impossible as shown by the arrow in the figure. However, there is a problem that the feature point K cannot be extracted forever. Also, in the case shown in FIG. 6, if the tracking direction is set so as to trace the contour in the clockwise direction from the switching point 5 as shown by the dashed arrow, the point 7
In this case, the user gets lost in the noise region 3 and the feature point K cannot be extracted forever. Such a problem is likely to occur when the setting of the position of the start point, the tracking direction (clockwise or counterclockwise), and the setting of the tracking distance are inappropriate. Therefore, in the conventional method, after predicting the orientation of the image of the inspection object captured in the field of view of the camera,
You have to set the starting point, tracking direction and tracking distance,
There was a problem that software design was troublesome.

【0005】そこで本発明は、カメラの視野からはみ出
す大きな検査対象物の画像の特徴点を確実に抽出するこ
とができる画像の輪郭追跡方法を提供することを目的と
する。
SUMMARY OF THE INVENTION It is an object of the present invention to provide an image contour tracing method capable of reliably extracting a feature point of an image of a large object to be inspected that protrudes from the field of view of a camera.

【0006】[0006]

【課題を解決するための手段】このために本発明は、視
野の周縁に存在するノイズ領域の内方に疑似輪郭を設定
し、この疑似輪郭内において検査対象物の画像と背景の
境界を追跡してその特徴点を抽出するにあたり、予め設
定されたスタート点から所定の方向に走査して画像と背
景の境界を検出すると、以後はこの境界を追跡してい
き、疑似輪郭に達すると、以後は疑似輪郭と画像の境界
を追跡し、再度画像と背景の境界に達すると、以後は再
び画像と背景の境界を追跡するようにしている。またこ
の疑似輪郭を画像の背景と同色若しくは同輝度とするこ
とにより、疑似輪郭がこの背景の中で見えないようにし
ている。
According to the present invention, a pseudo contour is set inside a noise region existing at the periphery of a visual field, and the boundary between the image of the inspection object and the background is traced within the pseudo contour. and per to extract the feature points, previously set
Scan in the specified direction from the specified start point and
Once the boundary of the landscape is detected,
When the pseudo contour is reached, the boundary between the pseudo contour and the image
And once again reaches the boundary between the image and the background,
And the border between the image and the background . In addition, the pseudo outline is made the same color or the same luminance as the background of the image so that the pseudo outline is not visible in the background.

【0007】[0007]

【作用】上記構成によれば、疑似輪郭内において輪郭追
跡が行われ、ノイズ領域に迷い込むことはないので、検
査対象物の画像の特徴点を確実に抽出できる。
According to the above configuration, the contour is traced within the pseudo contour, and the noise does not get lost, so that the characteristic points of the image of the inspection object can be reliably extracted.

【0008】[0008]

【実施例】次に、図面を参照しながら本発明の実施例を
説明する。
Next, an embodiment of the present invention will be described with reference to the drawings.

【0009】図1は電子部品実装装置の斜視図である。
本実施例では、電子部品実装装置によりプリント基板に
電子部品を搭載する際に、電子部品の品種確認や位置ず
れ検出のために行われる電子部品の画像の輪郭追跡寸法
を例にとり説明する。ロータリーヘッド11には、電子
部品2を真空吸着するノズル12を有するヘッド13が
その円周方向に沿って多数個設けられている。ロータリ
ーヘッド11は駆動部14に駆動されて矢印方向に回転
する。ロータリーヘッド11の背後には、パーツフィー
ダ15が載置されたテーブル16が設置されており、ま
たその前部にはプリント基板17が載置されたXYテー
ブル18が設けられている。またヘッド13の移動路の
下方には、ノズル12に真空吸着された電子部品2を観
察するカメラ19が設けられている。
FIG. 1 is a perspective view of an electronic component mounting apparatus.
In the present embodiment, a description will be given of an example of an outline tracking dimension of an image of an electronic component, which is used for checking the type of the electronic component and detecting a position shift when the electronic component is mounted on a printed board by an electronic component mounting apparatus. The rotary head 11 is provided with a plurality of heads 13 having nozzles 12 for vacuum-sucking the electronic components 2 along a circumferential direction thereof. The rotary head 11 is driven by the drive unit 14 and rotates in the direction of the arrow. A table 16 on which a parts feeder 15 is mounted is provided behind the rotary head 11, and an XY table 18 on which a printed circuit board 17 is mounted is provided in front of the table 16. A camera 19 for observing the electronic component 2 vacuum-adsorbed to the nozzle 12 is provided below the moving path of the head 13.

【0010】ロータリーヘッド11が矢印方向に回転す
ることにより、ヘッド13は移動するが、パーツフィー
ダ15の真上においてノズル12が上下動作をすること
により、パーツフィーダ15の電子部品2を真空吸着し
てピックアップする。次にヘッド13がカメラ19の上
方まで移動してくると、カメラ19により電子部品2を
観察し、後述する輪郭追跡により電子部品2の特徴点を
検出し、この検出結果にしたがって、電子部品2の品種
確認や位置ずれ量の演算がコンピュータ(図外)により
行われる。次にヘッド13がプリント基板17の上方へ
移動してくると、ノズル12は再度上下動作を行い、電
子部品2をプリント基板17に搭載する。
When the rotary head 11 rotates in the direction of the arrow, the head 13 moves. However, when the nozzle 12 moves up and down just above the parts feeder 15, the electronic components 2 of the parts feeder 15 are sucked by vacuum. Pick up. Next, when the head 13 moves above the camera 19, the electronic component 2 is observed by the camera 19, and a characteristic point of the electronic component 2 is detected by contour tracing described later. The type confirmation and the calculation of the displacement are performed by a computer (not shown). Next, when the head 13 moves above the printed board 17, the nozzle 12 moves up and down again, and the electronic component 2 is mounted on the printed board 17.

【0011】図2は電気回路のブロック図である。カメ
ラ19に取り込まれた2値の明暗画像データはフレーム
メモリ8に入力される。例えば画像は明るく、その値は
「1」、背景は暗く、その値は「0」である。このフレ
ームメモリ8には疑似輪郭の書込部9と画像認識部10
が接続されている。次に輪郭追跡方法を説明する。
FIG. 2 is a block diagram of the electric circuit. The binary light / dark image data captured by the camera 19 is input to the frame memory 8. For example, the image is bright, its value is “1”, the background is dark, and its value is “0”. The frame memory 8 has a pseudo contour writing unit 9 and an image recognition unit 10.
Is connected. Next, the contour tracking method will be described.

【0012】図3はカメラ19の視野1に取り込まれた
電子部品2の画像2aを示している。上述したように視
野1の周縁にはノイズ領域3が存在する。そこでこのノ
イズ領域3の内方に視野1と相似形の疑似輪郭23を設
定する。疑似輪郭23は背景と同色若しくは同一輝度
(本実施例では「黒」)で書込まれており、したがって
画像2aの中ではこの疑似輪郭23は見えるが、背景の
中では見えない。また電子部品2は視野1よりも大き
く、視野1の外部へはみ出しているが、傾斜することな
く正しい姿勢で視野1に取り込まれている。
FIG. 3 shows an image 2 a of the electronic component 2 captured in the field of view 1 of the camera 19. As described above, the noise region 3 exists at the periphery of the visual field 1. Therefore, a pseudo contour 23 similar to the visual field 1 is set inside the noise area 3. The pseudo outline 23 is written with the same color or the same luminance as the background ("black" in the present embodiment). Therefore, the pseudo outline 23 is visible in the image 2a, but is not visible in the background. Although the electronic component 2 is larger than the visual field 1 and protrudes outside the visual field 1, it is taken into the visual field 1 in a correct posture without being inclined.

【0013】さて、予め設定されたスタート点4から所
定の方向(本実施例では上方向)に走査するが、ポイン
ト24において画像2aと背景の境界を検出すると、所
定の方向(本実施例では反時計方向)へ画像2aと背景
境界を追跡していく。そして特徴点Kを通過した後、
ポイント25において疑似輪郭23に達すると、以後は
この疑似輪郭23と画像2aとの境界を追跡し、ポイン
ト26でターンした後、画像2aと背景の境界(ポイン
ト27)に再度達すると、上述のように背景の中では疑
似輪郭23は見えないので反時計方向へ向きを変え、矢
印で示すように以後は再び画像2aと背景の境界を追跡
て原位置(ポイント24)の方へ戻る。このようにし
て特徴点Kを含む境界を追跡することにより特徴点Kを
抽出する。
Now, scanning is performed in a predetermined direction (upward in the present embodiment) from a preset start point 4. When a boundary between the image 2a and the background is detected at a point 24, the scanning is performed in a predetermined direction (in the present embodiment). Image 2a and background in the counterclockwise direction)
Keep track of the boundaries. And after passing the feature point K,
When the pseudo contour 23 is reached at the point 25, the boundary between the pseudo contour 23 and the image 2a is tracked. After turning at the point 26, when the boundary between the image 2a and the background (point 27) is reached again , It changed the direction because in the background false contour 23 does not appear in the counterclockwise direction as, arrow
Follow the border between the image 2a and the background again as indicated by the mark.
And return to the original position (point 24). By tracking the boundary including the feature point K in this way, the feature point K is extracted.

【0014】このようにノイズ領域3の内方に疑似輪郭
23を設定することにより、ノイズ領域3に迷い込むこ
とはなく、特徴点Kを確実に抽出できる。図4はこのよ
うな輪郭追跡のフローチャートである。なおターニング
ポイント25、26、27も特徴点であるが、疑似輪郭
23上で抽出された特徴点は不要であるので無視する。
このような無視処理はソフト的に簡単に行える。
By setting the pseudo contour 23 inside the noise region 3 in this manner, the feature point K can be reliably extracted without getting lost in the noise region 3. FIG. 4 is a flowchart of such contour tracking. The turning points 25, 26, and 27 are also feature points, but feature points extracted on the pseudo contour 23 are unnecessary and are ignored.
Such an ignoring process can be easily performed by software.

【0015】図5は画像2aが傾斜している場合を示し
ている。この場合も、ポイント28から23と画像2a
との境界を追跡し、またポイント29、30においてタ
ーンした後、ポイント31において原位置の方へ向きを
変え、特徴点Kを含む追跡ができるので、特徴点Kを確
実に抽出できる。
FIG. 5 shows a case where the image 2a is inclined. Also in this case, points 28 to 23 and image 2a
After turning at points 29 and 30 and turning at the point 31 toward the original position and tracking including the feature point K, the feature point K can be reliably extracted.

【0016】[0016]

【発明の効果】以上説明したように本発明は、視野の周
囲に存在するノイズ領域の内方に疑似輪郭を設定し、こ
の疑似輪郭内において画像と背景の境界を追跡してその
特徴点を抽出するようにしているので、視野の周縁に存
在するノイズ領域の悪影響を排除し、特徴点を確実に抽
出できる。また疑似輪郭からはみ出して境界を追跡して
ノイズ領域に迷い込むことはないので、スタート点や走
査方向を自由に設定することができる。
As described above, according to the present invention, a pseudo contour is set inside a noise region existing around the visual field, and the boundary between the image and the background is tracked in the pseudo contour to determine the characteristic points. Since the extraction is performed, the adverse effect of the noise region existing at the periphery of the visual field is eliminated, and the feature points can be reliably extracted. In addition, the start point and the scanning direction can be freely set since the boundary does not protrude from the pseudo contour and does not get lost in the noise area.

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

【図1】本発明の一実施例の電子部品実装装置の斜視図FIG. 1 is a perspective view of an electronic component mounting apparatus according to an embodiment of the present invention.

【図2】本発明の一実施例の電気回路のブロック図FIG. 2 is a block diagram of an electric circuit according to one embodiment of the present invention.

【図3】本発明の一実施例の画像図FIG. 3 is an image diagram of one embodiment of the present invention.

【図4】本発明の一実施例のフローチャートFIG. 4 is a flowchart of an embodiment of the present invention.

【図5】本発明の一実施例の画像図FIG. 5 is an image diagram of one embodiment of the present invention.

【図6】従来の画像図FIG. 6 is a conventional image diagram.

【図7】従来の画像図FIG. 7 is a conventional image diagram.

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

1 視野 2 電子部品 2a 画像 3 ノイズ領域 19 カメラ 23 疑似輪郭 1 field of view 2 electronic components 2a image 3 noise area 19 camera 23 pseudo contour

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】カメラの視野よりも大きい検査対象物の画
像をカメラに取り込み、この視野内においてこの画像と
背景の境界を追跡してこの画像の特徴点を抽出する画像
の輪郭追跡方法であって、 前記視野の周縁に存在するノイズ領域の内方に疑似輪郭
を設定し、この疑似輪郭内において前記画像と背景の境
界を追跡してその特徴点を抽出するにあたり、予め設定
されたスタート点から所定の方向に走査して画像と背景
の境界を検出すると、以後はこの境界を追跡していき、
疑似輪郭に達すると、以後は疑似輪郭と画像の境界を追
跡し、再度画像と背景の境界に達すると、以後は再び画
像と背景の境界を追跡するようにしたことを特徴とする
画像の輪郭追跡方法。
An image contour tracking method for capturing an image of an inspection object larger than a field of view of a camera into a camera, tracking a boundary between the image and a background within the field of view, and extracting a feature point of the image. Te, set the false contour inwardly of the noise region present in the periphery of the field of view, per to extract the feature point tracking boundary of the image and the background within the pseudo contour, preset
Image and background by scanning in a predetermined direction from the specified start point
Once the boundary of is detected, it will follow this boundary,
When the pseudo contour is reached, the boundary between the pseudo contour and the image is added.
Traces and reaches the boundary between the image and the background again.
An image contour tracking method, wherein a boundary between an image and a background is tracked .
【請求項2】前記疑似輪郭を前記画像の背景と同色若し
くは同輝度とすることを特徴とする前記請求項1記載の
画像の輪郭追跡方法。
2. The method according to claim 1, wherein the pseudo contour has the same color or the same brightness as the background of the image.
JP31308892A 1992-11-24 1992-11-24 Image contour tracking method Expired - Fee Related JP3170912B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31308892A JP3170912B2 (en) 1992-11-24 1992-11-24 Image contour tracking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31308892A JP3170912B2 (en) 1992-11-24 1992-11-24 Image contour tracking method

Publications (2)

Publication Number Publication Date
JPH06160053A JPH06160053A (en) 1994-06-07
JP3170912B2 true JP3170912B2 (en) 2001-05-28

Family

ID=18037036

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31308892A Expired - Fee Related JP3170912B2 (en) 1992-11-24 1992-11-24 Image contour tracking method

Country Status (1)

Country Link
JP (1) JP3170912B2 (en)

Also Published As

Publication number Publication date
JPH06160053A (en) 1994-06-07

Similar Documents

Publication Publication Date Title
US6748104B1 (en) Methods and apparatus for machine vision inspection using single and multiple templates or patterns
US8438480B2 (en) System and method for tracking an input device using a display screen in captured frames of image data
CN103902953B (en) A kind of screen detecting system and method
CN114187253A (en) Circuit board part installation detection method
JP3170912B2 (en) Image contour tracking method
JP3269170B2 (en) Electronic component position detection method
JP3098847B2 (en) Component recognition method
JP2001024321A (en) Method for generating inspection data
JPH02251714A (en) Method for inspecting polarity of mounted polar part and visual inspection method for mounting board
JP2004363262A (en) Device and method for processing picked-up image of electronic-part mounting machine
JP2985380B2 (en) Electronic component position detection method
JP3235392B2 (en) Rotation angle detection method for target pattern
JP4365619B2 (en) Edge detection device, component recognition device, edge detection method, and component recognition method
JPH0760459B2 (en) Corner detector
GB2440951A (en) Edge detection for checking component position on a circuit board
JP2959042B2 (en) Image pattern extraction method
JP6735139B2 (en) Card reading device and reading method
JPH1091721A (en) Container number reader
JP2783513B2 (en) Electronic component mounting equipment
JPH01265142A (en) Detecting method for electrode part of electronic parts
Koezuka et al. High-Seed 3-D Vision System Using Range And Intensity Images Covering A Wide Area
JPH05296725A (en) Position detection method
JP2971793B2 (en) Position detection device
JP2734573B2 (en) Illumination device for ceramic substrate mark recognition
KR0177656B1 (en) Method for producing nozzle threshold value by an image processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080323

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090323

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100323

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees