JP3170987B2 - Screw hole position recognition method - Google Patents

Screw hole position recognition method

Info

Publication number
JP3170987B2
JP3170987B2 JP01828194A JP1828194A JP3170987B2 JP 3170987 B2 JP3170987 B2 JP 3170987B2 JP 01828194 A JP01828194 A JP 01828194A JP 1828194 A JP1828194 A JP 1828194A JP 3170987 B2 JP3170987 B2 JP 3170987B2
Authority
JP
Japan
Prior art keywords
contour
density
image
screw
scanning
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
JP01828194A
Other languages
Japanese (ja)
Other versions
JPH07225116A (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 JP01828194A priority Critical patent/JP3170987B2/en
Priority to US08/389,233 priority patent/US5742701A/en
Publication of JPH07225116A publication Critical patent/JPH07225116A/en
Application granted granted Critical
Publication of JP3170987B2 publication Critical patent/JP3170987B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ネジ締めロボット用視
覚認識装置の位置認識方法に関し、特に、撮像手段で撮
像された画像から、円弧形状を含む上穴と下穴の位置を
検出し、ネジ締め可否の判断を行うネジ穴位置認識方法
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a position recognition method for a visual recognition device for a screw tightening robot, and more particularly to a method for detecting the positions of an upper hole and a lower hole including an arc shape from an image picked up by an image pickup means. The present invention relates to a screw hole position recognizing method for determining whether or not a screw can be tightened.

【0002】[0002]

【従来の技術】近年、撮像装置で撮像された画像から対
象物の位置を検出する位置認識方法が、各種生産設備に
おけるロボットの視覚認識装置に広く使用されている。
2. Description of the Related Art In recent years, a position recognition method for detecting a position of an object from an image picked up by an image pickup device has been widely used for a visual recognition device of a robot in various production facilities.

【0003】上記に使用される位置認識方法の中から円
形対象物の位置を認識する場合の従来例を説明する。
A conventional example in which the position of a circular object is recognized from among the position recognition methods used above will be described.

【0004】図6は、従来の位置認識方法の原理につい
て示すもので円形対象物の中心位置を検出するための基
本構成を表す。図6において、20は対象物を撮像して
映像信号を出す撮像手段、21は前記映像信号を画像デ
ータに記憶する濃淡画像記憶手段、22は後述する輪郭
走査ウィンドによって前記濃淡画像データを走査する走
査手段、23は前記の走査データを使用して対象物の位
置を演算する位置演算手段である。
FIG. 6 shows the principle of a conventional position recognition method, and shows a basic configuration for detecting the center position of a circular object. In FIG. 6, reference numeral 20 denotes an image pickup means for picking up an image of an object to output a video signal, reference numeral 21 denotes a gray-scale image storage means for storing the video signal in image data, and reference numeral 22 scans the gray-scale image data by a contour scanning window described later. The scanning means 23 is a position calculating means for calculating the position of the object using the scanning data.

【0005】図7は輪郭走査ウィンドAを示すものであ
る。図7において、24は円形対象物の輪郭に等しい走
査輪郭で、25はこの走査輪郭に直交しこの走査輪郭の
内外の画像濃度を測定する濃度相関ラインで、輪郭走査
ウィンドAはこの濃度相関ラインを複数設けたウィンド
である。
FIG. 7 shows a contour scanning window A. In FIG. 7, reference numeral 24 denotes a scanning contour equal to the contour of the circular object, 25 denotes a density correlation line orthogonal to the scanning contour and measuring the image density inside and outside the scanning contour, and contour scanning window A denotes this density correlation line. Is provided in a plurality of windows.

【0006】位置演算手段23は濃度相関ライン25に
おいて対象物の輪郭より内側測定点の測定濃度合計値と
対象物の輪郭より外側測定点の測定濃度合計値との差の
絶対値を演算するものである。
The position calculating means 23 calculates the absolute value of the difference between the measured density total value at a measurement point inside the contour of the object and the measured density sum value at a measurement point outside the contour of the object on the density correlation line 25. It is.

【0007】撮像手段20から撮像され、濃淡画像記憶
手段21によって記憶された円形対象物の画像データを
輪郭走査ウィンドAで走査し、各濃度相関ライン25ご
とに位置演算手段23で演算し、その値が所定しきい値
より大きな濃度相関ライン25の本数が極大になる輪郭
走査ウィンドAの位置が円形対象物の位置として検出で
きる。
[0007] The image data of the circular object imaged by the image pickup means 20 and stored by the grayscale image storage means 21 are scanned by the contour scanning window A, and each density correlation line 25 is calculated by the position calculation means 23. The position of the contour scanning window A where the number of the density correlation lines 25 whose value is larger than the predetermined threshold value becomes maximum can be detected as the position of the circular object.

【0008】[0008]

【発明が解決しようとする課題】しかし、上記の従来の
方法では、図2で示すように上穴対象物6の穴が円形状
でなかった場合、上穴の位置が検出できないため、下穴
7の位置のみ検出してネジ締めを行っていたが、上下穴
が重なっているときにはネジ締め不良となったり対象物
を傷つけることがあった。
However, in the above-mentioned conventional method, if the hole of the upper hole object 6 is not circular as shown in FIG. 2, the position of the upper hole cannot be detected. Although only the position of No. 7 was detected and the screw was tightened, when the upper and lower holes overlap, screw tightening may be poor or the object may be damaged.

【0009】本発明は、上記従来の問題点を解決するも
ので、対象物の上板が円形状でなくてもその位置を検出
することを可能にし、上下穴の重なりを判断して未然に
ネジ締め不良を防ぐネジ穴位置認識方法を提供すること
を目的とする。
SUMMARY OF THE INVENTION The present invention solves the above-mentioned conventional problems, and makes it possible to detect the position of an object even if the upper plate of the object is not circular. An object of the present invention is to provide a screw hole position recognizing method for preventing screw tightening failure.

【0010】[0010]

【課題を解決するための手段】本発明のネジ穴位置認識
方法は、上記の課題を解決するために撮像手段で得られ
た対象物の画像データについて、対象物の円形状の輪郭
に直交する濃度相関ラインを複数設けた輪郭走査ウィン
ドにより画像を走査し、前記円形状の輪郭より内側測定
点の測定濃度合計値と前記円形状の輪郭より外側測定点
の測定濃度合計値との差の絶対値が所定しきい値より大
きな濃度相関ラインの本数が極大になる輪郭走査ウィン
ドの位置を対象物の位置として検出し、予め設定してい
たネジ締め可能範囲に下穴中心位置が存在するか否かで
上穴と下穴との重なり有無を判断することを特徴とする
ものである。。
According to the present invention, there is provided a method for recognizing a screw hole position, wherein image data of an object obtained by an image pickup means is orthogonal to a circular contour of the object. The image is scanned by a contour scanning window provided with a plurality of density correlation lines, and the absolute value of the difference between the measured density total value at the measurement point inside the circular contour and the measured density value outside the circular contour is measured. The position of the contour scanning window in which the number of density correlation lines whose value is larger than the predetermined threshold value is maximized is detected as the position of the object, and whether or not the pilot hole center position exists in the preset screw tightenable range. Is used to determine whether or not the upper hole and the lower hole overlap. .

【0011】[0011]

【作用】本発明のネジ穴位置認識方法は、上記した方法
によって、上下穴の位置を検出し、上下穴の重なりを判
断することができ、ネジ締め不良を未然に防ぐことがで
きる。
According to the screw hole position recognition method of the present invention, the positions of the upper and lower holes can be detected and the overlap of the upper and lower holes can be determined by the above-described method, and defective screw tightening can be prevented.

【0012】[0012]

【実施例】以下、本発明の一実施例であるネジ穴位置認
識方法について図面を参照しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A method for recognizing a screw hole position according to an embodiment of the present invention will be described below with reference to the drawings.

【0013】図1は、本発明のネジ穴位置認識方法を使
用する位置認識装置の主要部を示すブロック図である。
FIG. 1 is a block diagram showing a main part of a position recognition device using the screw hole position recognition method of the present invention.

【0014】図1において、撮像手段1が対象物を撮像
して映像信号を出し、濃淡画像記憶手段2が前記映像信
号を濃淡画像データにして記憶し、走査手段3が輪郭走
査ウィンドによって前記濃淡画像データを走査し、位置
演算手段4が前記の走査データを使用して対象物の位置
を演算する。さらに、ズレ量判断手段5で撮像手段1,
濃淡画像記憶手段2,走査手段3,位置演算手段4によ
って得られた上穴の位置と下穴の位置の重なりを判断す
る。
In FIG. 1, an image pickup means 1 picks up an image of an object and outputs a video signal, a gray-scale image storage means 2 stores the video signal as gray-scale image data, and a scanning means 3 controls the gray scale by a contour scanning window. The image data is scanned, and the position calculation means 4 calculates the position of the target object using the above-mentioned scan data. Further, the shift amount judging means 5 uses the imaging means 1 and
An overlap between the position of the upper hole and the position of the prepared hole obtained by the gray image storage means 2, the scanning means 3, and the position calculating means 4 is determined.

【0015】図2は、本実施例における濃淡画像データ
を示し、6は上穴対象物で、開放穴6aを持つ。7はネ
ジ締めを行う下穴対象物の穴である。
FIG. 2 shows grayscale image data according to the present embodiment. Reference numeral 6 denotes an upper hole object having an open hole 6a. Reference numeral 7 denotes a hole of a prepared object to be screwed.

【0016】図3は、本実施例で使用する輪郭走査ウィ
ンドAを示し、8は上穴対象物6の開放穴6aの画像の
円弧部分の直径と等しい直径を有する走査輪郭である。
9a〜9hは、走査輪郭8に直交しこの走査輪郭8の内
外の画像濃度を測定する複数の濃度相関ラインである。
FIG. 3 shows a contour scanning window A used in the present embodiment. Reference numeral 8 denotes a scanning contour having a diameter equal to the diameter of the arc portion of the image of the open hole 6a of the upper hole object 6.
Reference numerals 9a to 9h denote a plurality of density correlation lines orthogonal to the scanning contour 8 and measuring image densities inside and outside the scanning contour 8.

【0017】図4は、本実施例で使用する輪郭走査ウィ
ンドAの濃度相関ライン9a〜9hの中の9cの詳細を
示し、10cは、濃度相関ライン9cの走査輪郭位置、
11c,12c,13cは内側濃度相関ラインBを構成
する所定数の内側画像濃度測定点、14c,15c,1
6cは外側濃度相関ラインCを構成する所定数の外側画
像濃度測定点である。
FIG. 4 shows details of 9c among the density correlation lines 9a to 9h of the contour scanning window A used in this embodiment, and 10c shows a scanning contour position of the density correlation line 9c,
Reference numerals 11c, 12c and 13c denote a predetermined number of inner image density measurement points constituting the inner density correlation line B, and 14c, 15c and 1
Reference numeral 6c denotes a predetermined number of outer image density measurement points forming the outer density correlation line C.

【0018】図5は、本実施例で使用する、開放穴6a
を持つ上穴対象物6と下穴対象物の下穴7の構成を示
す。17は上穴対象物6の基準位置、18は下穴7の中
心位置である。19は、ネジの径から決まる下穴のネジ
締め可能範囲である。19は基準位置17から自由に設
定できる。
FIG. 5 shows an open hole 6a used in this embodiment.
The configuration of the upper hole object 6 and the prepared hole 7 of the prepared hole object having the following is shown. Reference numeral 17 denotes a reference position of the upper hole object 6, and reference numeral 18 denotes a center position of the lower hole 7. Reference numeral 19 denotes a screwable range of the prepared hole determined by the diameter of the screw. Reference numeral 19 can be freely set from the reference position 17.

【0019】次に、本実施例における位置認識動作を図
1〜図5に基づいて説明する。まず、図1に示す撮像手
段1で開放穴6aを含む上穴対象物6を撮像して濃淡画
像を得、濃淡画像記憶手段2に記憶させる。
Next, the position recognition operation in this embodiment will be described with reference to FIGS. First, the imaging means 1 shown in FIG. 1 images the upper hole object 6 including the open hole 6a to obtain a grayscale image, and stores the grayscale image in the grayscale image storage means 2.

【0020】この濃淡画像には、図2に示すように開放
穴6aを持つ上穴対象物6と下穴対象物の下穴7があ
る。
As shown in FIG. 2, the grayscale image includes an upper hole object 6 having an open hole 6a and a lower hole object 7 having a prepared hole object.

【0021】この場合に、開放穴6aの位置を検出する
本実施例の動作を以下に説明する。まず、図1に示す走
査手段3が、図3に示す輪郭走査ウィンドAを使用し
て、濃淡画像記憶手段2によって記憶させた濃淡画像の
左上から右方向に走査し始め、一画素移動する度に位置
演算手段が演算する。
The operation of this embodiment for detecting the position of the opening 6a in this case will be described below. First, the scanning means 3 shown in FIG. 1 starts scanning rightward from the upper left of the grayscale image stored by the grayscale image storage means 2 using the contour scanning window A shown in FIG. Is calculated by the position calculation means.

【0022】各濃度相関ラインごとに、所定数の内側画
像濃度測定点からなる内側濃度相関ラインBの測定濃度
合計値11c+12c+13cと所定数の外側画像濃度
測定点からなる外側濃度相関ラインCの測定濃度合計値
14c+15c+16cとの差の絶対値を演算し、この
絶対値が所定濃度しきい値より大きな濃度相関ラインの
本数がもっとも大きくなる前記輪郭走査ウィンドAの位
置を開放穴6aの円弧部分の位置として検出する。
For each density correlation line, the measured density total value 11c + 12c + 13c of the inner density correlation line B composed of a predetermined number of inner image density measurement points and the measured density of the outer density correlation line C composed of a predetermined number of outer image density measurement points. The absolute value of the difference from the total value 14c + 15c + 16c is calculated, and the position of the contour scanning window A where the absolute value is larger than the predetermined density threshold and the number of density correlation lines is the largest is defined as the position of the arc portion of the open hole 6a. To detect.

【0023】上記の方法で検出された位置を基準として
予め設定されていたネジ締め可能範囲に、従来方法で検
出される下穴が含まれているか否か算出する。
Based on the position detected by the above-described method, it is calculated whether or not a preset screw-fastening range includes the pilot hole detected by the conventional method.

【0024】以上によって、開放穴6aを持つ上穴対象
物6と下穴7のズレ量から重なり有無を判断できる。
As described above, it is possible to determine whether or not the upper hole object 6 having the open hole 6a and the prepared hole 7 overlap each other based on the amount of displacement.

【0025】[0025]

【発明の効果】以上説明したように本発明においては、
ネジ締めを行おうとする対象物が円形状でなくても上下
穴の位置を検出し、ネジ締め許容範囲と下穴の位置から
上下穴の重なりを判断してネジ締め不良を防ぐことがで
きる。
As described above, in the present invention,
Even if the object to be screwed is not circular, the positions of the upper and lower holes can be detected, and the overlap of the upper and lower holes can be determined based on the allowable screw tightening range and the position of the prepared hole, thereby preventing screw tightening failure.

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

【図1】本発明のネジ穴位置認識方法を使用する位置認
識装置の一実施例の構成を示すブロック図
FIG. 1 is a block diagram showing a configuration of an embodiment of a position recognition device using a screw hole position recognition method of the present invention.

【図2】本発明のネジ穴位置認識方法で使用する濃淡画
像の一例を示す図
FIG. 2 is a diagram showing an example of a grayscale image used in the screw hole position recognition method of the present invention.

【図3】本発明の実施例で使用する輪郭走査ウィンドの
構成を示す図
FIG. 3 is a diagram showing a configuration of a contour scanning window used in the embodiment of the present invention.

【図4】図3に示す輪郭走査ウィンドの一部詳細図FIG. 4 is a partial detailed view of the contour scanning window shown in FIG. 3;

【図5】本発明の一実施例の位置認識装置におけるネジ
締め可能範囲を示す図
FIG. 5 is a diagram showing a screw tightenable range in the position recognition device according to the embodiment of the present invention;

【図6】従来のネジ穴位置認識方法を使用する位置認識
装置の構成を示すブロック図
FIG. 6 is a block diagram showing a configuration of a position recognition device using a conventional screw hole position recognition method.

【図7】従来のネジ穴位置認識方法において使用する輪
郭走査ウィンドの構成を示す図
FIG. 7 is a diagram showing a configuration of a contour scanning window used in a conventional screw hole position recognition method.

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

A 輪郭走査ウィンド B 内側濃度相関ライン C 外側濃度相関ライン 1 撮像手段 2 濃淡画像記憶手段 3 輪郭走査ウィンドによる走査手段 4 位置演算手段 5 ズレ量判断手段 9a,9b,9c,9d,9e,9f,9g,9h 濃
度相関ライン 10c 走査輪郭位置 11c,12c,13c 内側画像濃度測定点 14c,15c,16c 外側画像濃度測定点 19 ネジ締め可能範囲
A Contour Scan Window B Inner Density Correlation Line C Outer Density Correlation Line 1 Imaging Means 2 Contrast Image Storage Means 3 Scanning Means by Contour Scan Window 4 Position Calculation Means 5 Deviation Amount Determination Means 9a, 9b, 9c, 9d, 9e, 9f 9g, 9h Density correlation line 10c Scanning contour position 11c, 12c, 13c Inner image density measurement point 14c, 15c, 16c Outer image density measurement point 19 Screw tightenable range

───────────────────────────────────────────────────── フロントページの続き (72)発明者 中尾 真也 大阪府門真市大字門真1006番地 松下電 器産業株式会社内 (56)参考文献 特開 昭63−124181(JP,A) 特開 昭63−234103(JP,A) 特開 平1−244077(JP,A) (58)調査した分野(Int.Cl.7,DB名) G01B 11/00 - 11/30 102 G06T 1/00 G06T 7/00 G06T 7/60 ────────────────────────────────────────────────── ─── Continued on the front page (72) Inventor Shinya Nakao 1006 Kazuma Kadoma, Kadoma, Osaka Prefecture Matsushita Electric Industrial Co., Ltd. (56) References JP-A-63-124181 (JP, A) JP-A-63- 234103 (JP, A) JP-A 1-244077 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G01B 11/00-11/30 102 G06T 1/00 G06T 7/00 G06T 7/60

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 円弧形状を含むネジ締め部の上穴より構
成されるネジ締め対象物を撮像手段で撮像して濃淡画像
を得、この濃淡画像上の円弧部分を含む円形状の輪郭に
等しい走査輪郭と、この走査輪郭に直交しこの走査輪郭
の内外の画像濃度を測定する濃度相関ラインを複数設け
た輪郭走査ウィンドによって前記濃淡画像を走査し、前
記各濃度相関ラインごとに所定数の内側画像濃度測定点
からなる内側濃度相関ラインの測定濃度合計値と所定数
の外側画像濃度測定点からなる外側濃度相関ラインの測
定濃度合計値との差の絶対値を演算し、この絶対値が所
定濃度しきい値より大きな濃度相関ラインの本数が極大
になる前記輪郭走査ウィンドの位置を上穴を有するネジ
締め対象物の基準位置として検出し、その位置よりネジ
締め可能範囲を設定して上記の方法で検出された下穴中
心位置が前記ネジ締め可能範囲に存在するか判断するこ
とを特徴とするネジ穴位置認識方法。
An image of a screw-tightened object formed by an upper hole of a screw-fastened portion including an arc shape is obtained by an imaging means to obtain a grayscale image, which is equal to a circular contour including an arc portion on the grayscale image. The grayscale image is scanned by a scanning contour and a contour scanning window provided with a plurality of density correlation lines orthogonal to the scanning contour and measuring image densities inside and outside the scanning contour. The absolute value of the difference between the measured density total value of the inner density correlation line composed of image density measurement points and the measured density total value of the outer density correlation line composed of a predetermined number of outer image density measurement points is calculated. The position of the contour scanning window at which the number of density correlation lines larger than the density threshold is maximized is detected as the reference position of the screw-tightening object having the upper hole, and the screw-fastening range is set from the position. And determining whether the center position of the pilot hole detected by the above method is within the screw tightenable range.
JP01828194A 1994-02-15 1994-02-15 Screw hole position recognition method Expired - Fee Related JP3170987B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP01828194A JP3170987B2 (en) 1994-02-15 1994-02-15 Screw hole position recognition method
US08/389,233 US5742701A (en) 1994-02-15 1995-02-15 Alignment detection apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01828194A JP3170987B2 (en) 1994-02-15 1994-02-15 Screw hole position recognition method

Publications (2)

Publication Number Publication Date
JPH07225116A JPH07225116A (en) 1995-08-22
JP3170987B2 true JP3170987B2 (en) 2001-05-28

Family

ID=11967261

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01828194A Expired - Fee Related JP3170987B2 (en) 1994-02-15 1994-02-15 Screw hole position recognition method

Country Status (1)

Country Link
JP (1) JP3170987B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08287252A (en) * 1995-04-11 1996-11-01 Matsushita Electric Ind Co Ltd Screw hole position recognizing method
CN114234796A (en) * 2021-10-26 2022-03-25 深圳市裕展精密科技有限公司 Hole detection method, hole detection device and hole detection equipment

Also Published As

Publication number Publication date
JPH07225116A (en) 1995-08-22

Similar Documents

Publication Publication Date Title
EP0124789B1 (en) Method of identifying objects
JPH07210687A (en) Shape detecting device
JPH08287252A (en) Screw hole position recognizing method
US5579415A (en) Computer implemented method of recognizing a position of an object
US6807288B2 (en) Image processing apparatus, image processing method, and recording medium recording image processing program
JP3170987B2 (en) Screw hole position recognition method
US5912985A (en) Pattern detection method
JP3170988B2 (en) Slot position recognition method
US5881167A (en) Method for position recognition
JP2995127B2 (en) How to recognize circular holes
US5570298A (en) Dot pattern-examining apparatus
US5691543A (en) Inspecting device and method for detecting minute contour defects
CN113295617A (en) Multi-target offset detection method without reference point
KR0167585B1 (en) Position recognizing method
US6240202B1 (en) Appearance inspection method for electronic parts
JP2733958B2 (en) Long sheet defect inspection equipment
JP2747396B2 (en) Appearance inspection equipment for electronic components
JP2912070B2 (en) Object position recognition method
JPH08300234A (en) Method for recognizing presence or absence of screw
JP2000194861A (en) Method and device for recognizing image
JP3384631B2 (en) Inspection device for winding state of sheet
JP2836104B2 (en) Object posture detection device
JP2738252B2 (en) Edge detection device of strip material by image
JPH07103909A (en) Method of inspecting image
JPH08272933A (en) Line recognizing method

Legal Events

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