JP2749329B2 - Position correction device for the object to be corrected - Google Patents

Position correction device for the object to be corrected

Info

Publication number
JP2749329B2
JP2749329B2 JP63193498A JP19349888A JP2749329B2 JP 2749329 B2 JP2749329 B2 JP 2749329B2 JP 63193498 A JP63193498 A JP 63193498A JP 19349888 A JP19349888 A JP 19349888A JP 2749329 B2 JP2749329 B2 JP 2749329B2
Authority
JP
Japan
Prior art keywords
marker
corrected
image
center
gravity
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
JP63193498A
Other languages
Japanese (ja)
Other versions
JPH0246990A (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.)
Amada Co Ltd
Original Assignee
Amada 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 Amada Co Ltd filed Critical Amada Co Ltd
Priority to JP63193498A priority Critical patent/JP2749329B2/en
Publication of JPH0246990A publication Critical patent/JPH0246990A/en
Application granted granted Critical
Publication of JP2749329B2 publication Critical patent/JP2749329B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Laser Beam Processing (AREA)

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、画像処理装置を用いて例えばワークなど
の被補正物の位置を補正する被補正物の位置補正装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial application field) The present invention relates to a position correcting device for an object to be corrected, which corrects the position of the object to be corrected such as a work using an image processing device.

(従来の技術) 従来、例えばワークなどの被補正物の位置補正処理を
行なうのに、画像処理装置が用いられている。すなわ
ち、画像処理装置において、聴覚センサなどの撮像装置
で被補正物を撮像する視野内に、例えば第6図に示すご
とく、被補正物Wに設けられたマーカ情報M以外の不要
情報Nが含まれている場合には、不要情報Nを排除し、
マーカ情報Mの重心Gを検出し、この検出された重心G
を基にして位置補正を行なっていた。
2. Description of the Related Art Conventionally, an image processing apparatus has been used to perform a position correction process on an object to be corrected such as a work. That is, in the image processing apparatus, unnecessary information N other than the marker information M provided on the object to be corrected W is included in the visual field in which the object to be corrected is imaged by an imaging device such as an auditory sensor, for example, as shown in FIG. If not, the unnecessary information N is excluded,
The center of gravity G of the marker information M is detected, and the detected center of gravity G is detected.
Was performed based on the position correction.

(発明が解決しようとする課題) ところで、被補正物の位置補正を行なうのに、不要情
報Nを排除してマーカ情報Mの重心Gを検出し、この検
出された重心Gを基にして位置補正を行なうため、多大
な時間のかかるソフトウエア処理又は、専用のハードウ
エアに頼っていた。
(Problems to be Solved by the Invention) By the way, in order to correct the position of the object to be corrected, unnecessary information N is excluded, the center of gravity G of the marker information M is detected, and the position is determined based on the detected center of gravity G. In order to perform the correction, a long time is required for software processing or dedicated hardware.

例えば、“拡散→収縮”処理(収縮とは与えられた2
値画像の境界線をすべてとり除いて1画素分細める処理
であり、拡散とは逆に1画素分太める処理である。)
は、ソフトウエアによるものであり、不要情報Nの領域
の大きさによって拡散収縮回数が多くなり、処理時間が
かかるという問題があった。
For example, “diffusion → shrinkage” processing (shrinkage is given 2
This is a process of removing all the boundary lines of the value image and thinning it by one pixel. Contrary to diffusion, this is a process of thickening one pixel. )
However, there is a problem that the number of times of diffusion / shrinkage increases depending on the size of the area of the unnecessary information N and the processing time is increased.

[発明の構成] (課題を解決するための手段) 前述のごとき従来の問題に鑑みて、本発明は、被補正
物を把持して水平に移動し位置決めする位置決め装置
と、この位置決め装置を移動制御するための位置決め制
御装置と、前記被補正物に設けられたマーカを撮像する
撮像装置と、上記撮像装置によって撮像されたマーカの
画像データを画像処理して上記マーカの重心位置を演算
処理すると共にRAMに予め記憶されている正規な重心位
置と演算処理して検出された前記重心位置とを比較して
偏差量を算出し、この偏差量に基づく位置補正データを
前記位置決め制御装置へ出力する画像処理装置と、を備
えてなる被補正物の位置補正装置において、前記撮像装
置は、前記マーカを画面の1/4以上の直径を有するよう
に撮像する構成であり、前記画像処理装置は、前記撮像
装置によって撮像された前記被補正物の画像内に少なく
とも1つの領域開始点が前記マーカの領域内に含まれる
ように複数の領域開始点を適宜間隔に設定し、上記複数
の領域開始点が個々に含まれる領域の面積を演算し所定
の閾値と比較して、閾値以下の場合にはエラーとして別
個の領域開始点が含まれる領域の面積を順次演算して比
較し、閾値以上の場合にマーカの重心位置を演算する構
成としてなるものである。
[Constitution of the Invention] (Means for Solving the Problems) In view of the above-described conventional problems, the present invention provides a positioning device that grips an object to be corrected and horizontally moves and positions it, and moves the positioning device. A positioning control device for controlling; an imaging device for imaging a marker provided on the object to be corrected; and image processing of the image data of the marker imaged by the imaging device to calculate the center of gravity position of the marker A deviation amount is calculated by comparing the normal center of gravity position previously stored in the RAM with the calculated center of gravity position, and a position correction data based on the deviation amount is output to the positioning control device. An image processing device, and in the position correction device for the object to be corrected, comprising: the imaging device is configured to image the marker so as to have a diameter of 1/4 or more of the screen, the image The apparatus sets a plurality of area start points at appropriate intervals so that at least one area start point is included in the area of the marker in the image of the object to be corrected imaged by the imaging apparatus; The area start point of each of the areas is individually calculated and compared with a predetermined threshold, and when the area is equal to or smaller than the threshold, the areas of the areas including the separate area start points are sequentially calculated and compared as an error. The configuration is such that the position of the center of gravity of the marker is calculated when the value is equal to or larger than the threshold value.

(実施例) 以下、この発明の実施例を図面に基づいて詳細に説明
する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第1図にはこの発明の主要部である被補正物の位置補
正装置における構成ブロック図が示されている。第1図
において、ワークなどの被補正物Wは水平な平面内に図
示省略の駆動装置により移動自在な位置決め装置1に設
けられた複数のクランプ3で把持されている。この被補
正物Wには穴などのマーカ5が設けられている。
FIG. 1 is a block diagram showing a configuration of a device for correcting a position of an object to be corrected, which is a main part of the present invention. In FIG. 1, an object W to be corrected such as a work is held in a horizontal plane by a plurality of clamps 3 provided in a movable positioning device 1 by a driving device (not shown). The object W to be corrected is provided with a marker 5 such as a hole.

前記位置決め装置1を水平な平面内で移動制御するた
めの位置決め制御装置7が位置決め装置1の駆動装置に
接続されている。したがって、位置決め制御装置7から
制御指令により駆動装置を介して位置決め装置1が水平
な平面内で移動されて被補正物Wが所定の位置に位置決
めされることとなる。
A positioning control device 7 for controlling the movement of the positioning device 1 in a horizontal plane is connected to a driving device of the positioning device 1. Therefore, the positioning device 1 is moved in a horizontal plane via the driving device by a control command from the positioning control device 7, and the object to be corrected W is positioned at a predetermined position.

被補正物Wの上方には視覚センサなどの撮像装置9が
設置されている。この撮像装置9の直下に被補正物Wに
設けられたマーカ5がくるように位置決め装置1が位置
決めされる。前記撮像装置9には撮像装置9で撮像され
た画像データを画像処理する画像処理装置11が接続され
ている。
Above the object to be corrected W, an imaging device 9 such as a visual sensor is installed. The positioning device 1 is positioned so that the marker 5 provided on the object to be corrected W is located directly below the imaging device 9. An image processing device 11 that performs image processing on image data captured by the imaging device 9 is connected to the imaging device 9.

この画像処理装置11は、画像データをA/D変換するA/D
変換部13,画像データを格納するフレームメモリ15,中央
処理装置17(以下、CPUという)。,ROM19,RAM21およびI
/O23とで構成されている。この画像処理装置11のI/O23
は前記位置決め制御装置7に接続されている。
The image processing apparatus 11 performs A / D conversion of A / D of image data.
A conversion unit 13, a frame memory 15 for storing image data, and a central processing unit 17 (hereinafter, referred to as a CPU). , ROM19, RAM21 and I
/ O23. I / O 23 of this image processing device 11
Is connected to the positioning control device 7.

上記構成により、位置決め装置1に設けられたクラン
プ3で把持された被補正物Wを、位置決め制御装置7か
らの制御指令で位置決めした後、位置決め制御装置7か
ら画像処理装置11のI/Oへ補正指令信号を出力する。
According to the above configuration, after the object to be corrected W held by the clamp 3 provided in the positioning device 1 is positioned by the control command from the positioning control device 7, the positioning control device 7 transfers the object to the I / O of the image processing device 11. Outputs the correction command signal.

画像処理装置11はこの補正指令信号を受けて、被補正
物Wに設けられたマーカ5の上方に設置された撮像装置
9で、マーカ5の画像を取込む。撮像装置9に取込まれ
たマーカ5の画像は画像データとして画像処理装置11へ
送られ、A/D変換部13でA/D変換された後、フレームメモ
リ15に格納される。
Upon receiving the correction command signal, the image processing device 11 captures an image of the marker 5 with the imaging device 9 installed above the marker 5 provided on the object W to be corrected. The image of the marker 5 captured by the imaging device 9 is sent as image data to the image processing device 11, A / D converted by the A / D converter 13, and then stored in the frame memory 15.

この後、CPU17でマーカ5の重心位置を演算処理し検
出する。RAM21に予め記憶されている正規な重心位置
と、演算処理して検出された重心位置とをCPU17で比較
し、この偏差量をI/O23を介して、補正量である位置補
正データとして、前記位置決め制御装置7へ出力する。
位置決め制御装置7はこの位置補正データを受けて位置
め装置1を介して被補正物Wの位置補正が行なわれるこ
ととなる。
Thereafter, the CPU 17 calculates and detects the position of the center of gravity of the marker 5. The CPU 17 compares the normal center-of-gravity position stored in the RAM 21 in advance with the center-of-gravity position detected by the arithmetic processing, and the deviation amount is provided as position correction data, which is a correction amount, via the I / O 23. Output to positioning control device 7.
The positioning control device 7 receives the position correction data and performs the position correction of the object to be corrected W via the positioning device 1.

次に、マーカ5の重心位置を演算処理するアルゴリズ
ムについて説明する。なお、マーカ5の形状をここでは
穴として説明する。
Next, an algorithm for calculating the position of the center of gravity of the marker 5 will be described. Here, the shape of the marker 5 will be described as a hole here.

第2図には撮像装置9で撮像された被補正物Wの画像
が示されている。第2図において、穴5の領域抽出を行
なうにあたり、例えば9ケの領域開始点S1〜S9を設定す
る。但し、穴5が必ず領域開始点S1〜S9のどこかの点に
かかるようにする。
FIG. 2 shows an image of the object to be corrected W captured by the imaging device 9. In FIG. 2, for example, nine region start points S 1 to S 9 are set when the region of the hole 5 is extracted. However, the hole 5 must be located at any point of the region start points S 1 to S 9 .

例えば、点S1が穴5の領域の一部であれば、点S1を開
始点として、左右,上下方向に順次サーチしながら、そ
れぞれの座標をモーメント計算する。点S1を含む領域面
積が一定以上であり、画面からはみ出していなければ、
このモーメントより重心計算を行なう。
For example, the point S 1 is if the partial region of the hole 5, as a starting point the point S 1, right and left, while sequentially searched in the vertical direction and moment calculation the respective coordinates. Region area including the point S 1 is not less certain than, unless off the screen,
The center of gravity is calculated from this moment.

もし、上記論理を満足していない場合、次の検出開始
点として点S2をとり、上記理論を展開していく。点S3,S
4,…S9まで重心計算できない場合には、画像が不良であ
るとしてアラーム出力を行なう。
If you do not satisfy the above logic, taking a point S 2 as the next detection start point, continue to expand the theory. Points S 3 , S
4, ... if you can not centroid calculation to S 9, the image performs alarm output as a defective.

本アルゴリズムにおける穴5の形状の条件を述べる
と、まず第1番目として、第2図より理解されるよう
に、撮像したときに穴径は画面の1/4以上の直径をもつ
ことが必要である。換言すれば、画面内に設定した複数
の点S1〜S9の少なくとも、1ケ所に穴5がかかるように
撮像することが必要である。したがって、例えば視野範
囲が5×5mmの場合、1.25(=5/4)mm以上の直径の穴5
であることが必要である。
The condition of the shape of the hole 5 in the present algorithm is as follows. First, as understood from FIG. 2, it is necessary that the hole diameter has a diameter of 1/4 or more of the screen when the image is taken. is there. In other words, it is necessary to take an image so that at least one of the points S 1 to S 9 set in the screen has a hole 5. Therefore, for example, when the visual field range is 5 × 5 mm, the hole 5 having a diameter of 1.25 (= 5/4) mm or more is used.
It is necessary to be.

第2番目として、穴5の面積が設定閾値以上の面積を
有することである。
Second, the area of the hole 5 has an area equal to or larger than a set threshold.

第3番目として、穴5が画面からはみ出さない(フレ
ームアウト)ようにすることである。
Third, the hole 5 should not protrude from the screen (frame out).

上記第1〜第3の条件を満足しない場合にはアラーム
とし、また、左右方向にサーチする上で孤立点(1ドッ
トのみ周辺の領域と値が異なる点)を検出した場合には
ノイズとして無視するものである。
If the above first to third conditions are not satisfied, an alarm is given. If an isolated point (a point different from the surrounding area of only one dot) is detected in the left-right search, it is ignored as noise. Is what you do.

第3図には穴5の重心位置を演算処理するアルゴリズ
ムの説明図が示されている。第3図において、穴5部領
域のモーメントを高速に計算するためにラスターR毎に
穴5部のX,Y軸モーメントを計算し、穴5領域を含むラ
スター全ラインRaにおいて加算していくのである。この
全加算値が穴5部領域のモーメントとなる。
FIG. 3 is an explanatory diagram of an algorithm for calculating the position of the center of gravity of the hole 5. In FIG. 3, the X and Y axis moments of the hole 5 are calculated for each raster R in order to calculate the moment of the region of the hole 5 at high speed, and the moments are added for all the raster lines Ra including the region of the hole 5. is there. This total addition value becomes the moment in the hole 5 part region.

Jライン目のラスターRのX,Y軸モーメントMx(J),My
(J)は、穴5部領域をimin〜imaxとすると、以下のごと
く示した計算式で求まる。
X, Y axis moment Mx (J) , My of raster R of J line
(J) is obtained by the following calculation formula, assuming that the five-hole region is imin to imax.

MX(J)=lJ(imax+imin)/2 MY(J)=J・lJ lJ=imax−imin+1(領域内の個数) これにより、jmax〜jminまでのラインに穴5部領域が
かかっているときの全加算値は、 これにより、重心GX,GYは、 GX=Mx/S,GY=My/S として求まる。
Thus M X (J) = l J (imax + imin) / 2 M Y (J) = J · l J l J = imax-imin + 1 ( the number of areas), the hole 5 parts area line up jmax~jmin The total added value when hanging is Thus, the center of gravity GX, GY is GX = Mx / S, GY = My / S Is obtained as

次に、この実施例における動作を第4図に示したフロ
ーチャートを基にして説明する。
Next, the operation of this embodiment will be described with reference to the flowchart shown in FIG.

第4図において、まずステップ1でSnの検出開始点よ
り重心検出を行なう。ここで、例えばn=9と定め、n
=1から行なう。ステップS2で正常に重心が検出できた
かどうかを判断し、正常に重心が検出ができればそのま
ゝ終了する。
In FIG. 4, first, in step 1, the center of gravity is detected from the detection start point of Sn. Here, for example, n = 9, and n
= 1. In step S2, it is determined whether the center of gravity has been normally detected. If the center of gravity can be normally detected, the process ends.

正常に重心が検出できなければ、ステップS3に進む。
ステップS3ではS9まで回ったかどうか判断し、S9まで回
っていれば、ステップS4でアラーム処理が行なわれる。
S9まで回っていなければ、ステップS1の手前まで戻り、
以後n=n+1によるS2の検出開始点より重心が行なわ
れる。
If the center of gravity cannot be normally detected, the process proceeds to step S3.
Whether judged whether turned to step S3 S 9, if turned all S 9, the alarm processing is performed at step S4.
If not around to S 9, return to the front of the step S1,
The center of gravity is performed from the detection start point of S 2 by subsequent n = n + 1.

次に、マーカ5の重心位置を検出する動作を第5図に
示しフローチャートを基にして説明する。
Next, the operation for detecting the position of the center of gravity of the marker 5 will be described with reference to FIG. 5 and a flowchart.

第5図において、ステップS101でSnの点が穴5にかか
っているかどうか判断され、Snの点が穴5にかかってい
なければ、ステップS117でエラーリターンのキーを押
す。Snの点が穴5にかかっていれば、ステップ102でSn
の座標をSn=(i,j)として求める。
In FIG. 5, it is determined in step S101 whether or not the point of Sn is over the hole 5, and if the point of Sn is not over the hole 5, the error return key is pressed in step S117. If the point of Sn is over hole 5, Sn
Are determined as Sn = (i, j).

次に、iの座標に対して右方向へのサーチ(i−1)
を行なう。すなわち、ステップS103でiが画面端部に達
っしたかどうかの判断がなされ、iが画面端部に達っし
ていれば、ステップS117でエラーリターンキーを押す。
iが画面端部に達っしていなければ、ステップS104でf
(i,j)が穴5の端部かどうか判断され、f(i,j)が穴
5の端部であれば、ステップS103の手前に戻る。f(i,
j)が穴5の端部でなければ、ステップS105での点は孤
立点(ノイズ)かどうか判断される。この点が孤立点で
あれば、ステップS103の手前に戻り、この点が孤立点で
なければ、ステップS106に進み、i=iminを求める。
Next, a search to the right with respect to the coordinate of i (i-1)
Perform That is, it is determined in step S103 whether or not i has reached the end of the screen. If i has reached the end of the screen, the error return key is pressed in step S117.
If i has not reached the end of the screen, in step S104 f
It is determined whether (i, j) is the end of the hole 5, and if f (i, j) is the end of the hole 5, the process returns to the step before step S103. f (i,
If j) is not the end of the hole 5, it is determined whether the point in step S105 is an isolated point (noise). If this point is an isolated point, the process returns to before step S103. If this point is not an isolated point, the process proceeds to step S106, and i = imin is obtained.

次いで、iの座標に対して左方向へのサーチ(i+
1)を行なう。すなわち、ステップS107でiが画面端部
に達っしたかどうかの判断がなされ、iが画面端部に達
っしていれば、ステップS117でエラーリターンキーを押
す。iが画面端部に達っしていなければ、ステップS108
でf(i,j)が穴5の端部かどうか判断され、f(i,j)
が穴5の端部であれば、ステップS107の手前に戻る。f
(i,j)が穴5の端部でなければ、ステップS109でこの
点は孤立点(ノイズ)かどうか判断される。この点が孤
立点であれば、ステップS107の手前に戻り、この点が孤
立点でなければ、ステップS110に進みi=imaxを求め、
さらに、ステップS111でMX=MX+MX(J),MY=MY+MY(J)
が求められる。
Next, a search in the left direction (i +
Perform 1). That is, it is determined in step S107 whether i has reached the end of the screen. If i has reached the end of the screen, the error return key is pressed in step S117. If i has not reached the end of the screen, step S108
It is determined whether or not f (i, j) is the end of the hole 5, and f (i, j)
If is the end of the hole 5, the process returns to before step S107. f
If (i, j) is not the end of the hole 5, it is determined in step S109 whether this point is an isolated point (noise). If this point is an isolated point, the process returns to step S107. If this point is not an isolated point, the process proceeds to step S110 to obtain i = imax.
Further, in step S111, MX = MX + MX (J) , MY = MY + MY (J)
Is required.

次に、jの座標に対して上方向へのサーチ(j−1)
を行なう。すなわち、ステップS112で画面端部に達っし
たかどうかの判断がなされ、jが画面端部に達っしてい
れば、ステップS117でエラーリターンキーを押す。jが
画面端部に達していなければ、ステップS113でiを穴5
の領域の中心へ移動させる。
Next, an upward search for the coordinates of j (j-1)
Perform That is, it is determined in step S112 whether or not the screen edge has been reached. If j has reached the screen edge, the error return key is pressed in step S117. If j has not reached the end of the screen, i is inserted into hole 5 in step S113.
To the center of the area.

ステップ114でf(i,j)が穴5にかかっているかどう
かの判断がなされ、f(i,j)が穴5にかかっていれ
ば、ステッS103の手前に戻り、f(i,j)が穴5にかか
っていなければ、ステップS115に進む。ステップS115で
上述した上方向のサーチと同様に、下方向のサーチを行
なう。
In step 114, it is determined whether or not f (i, j) is in the hole 5. If f (i, j) is in the hole 5, the process returns to step S103 and f (i, j) is returned. If does not cover hole 5, the process proceeds to step S115. In step S115, a downward search is performed in the same manner as the upward search described above.

ステップS116で穴面積Sが閾値以上かどうかの判断を
行ない、穴面積Sが閾値以下であればステップS117でエ
ラーリターンキーを押す。穴面積Sが閾値上であればス
テップS118でGX=MX/S,GY=MY/Sの重心位置が求められ
る。
In step S116, it is determined whether or not the hole area S is equal to or larger than the threshold. If the hole area S is equal to or smaller than the threshold, the error return key is pressed in step S117. If the hole area S is above the threshold, the center of gravity position of GX = MX / S, GY = MY / S is determined in step S118.

重心位置が求められると、ステップS119でリターンキ
ーを押し第4図に示したフローチャートのステップS2に
進むことになる。
When the position of the center of gravity is obtained, the return key is pressed in step S119, and the process proceeds to step S2 in the flowchart shown in FIG.

このように、被補正物Wに設けられたマーカとしての
穴5の重心位置が検出される。この検出された重心位置
と、予め教示された正規な重心位置とが比較され、その
差の補正量である補正データが位置決め制御装置7へ出
力される。この補正データにより位置決め制御装置7が
制御されて位置決め装置1が移動して被補正物Wの位置
補正を高速かつ安定に、しかも短時間で行なうことがで
きる。
Thus, the position of the center of gravity of the hole 5 as a marker provided on the object to be corrected W is detected. The detected center-of-gravity position is compared with the normal center-of-gravity position taught in advance, and correction data as a correction amount of the difference is output to the positioning control device 7. The positioning control device 7 is controlled by the correction data, and the positioning device 1 moves to perform the position correction of the object W to be corrected at high speed, in a stable manner, and in a short time.

なお、この発明は前述した実施例に限定されることな
く、適宜の変更を行なうことにより、その他の態様で実
施し得るものである。また、この発明は、レーザ加工機
械や、タレットパンチプレスとレーザ加工機械の複合加
工機などに利用すると効果的である。
The present invention is not limited to the above-described embodiment, but can be embodied in other modes by making appropriate changes. Further, the present invention is effective when used in a laser processing machine or a combined processing machine of a turret punch press and a laser processing machine.

[発明の効果] 以上のごとき実施例の説明より理解されるように、要
するに本発明は、被補正物(W)を把持して水平に移動
し位置決めする位置決め装置(1)と、この位置決め装
置を移動制御するための位置決め制御装置(7)と、前
記被補正物(W)に設けられたマーカ(5)を撮像する
撮像装置(9)と、上記撮像装置(9)によって撮像さ
れたマーカ(15)の画像データを画像処理して上記マー
カ(15)の重心位置を演算処理すると共にRAM(21)に
予め記憶されている正規な重心位置と演算処理して検出
された前記重心位置とを比較して偏差量を算出し、この
偏差量に基づく位置補正データを前記位置決め制御装置
(7)へ出力する画像処理装置(11)と、を備えてなる
被補正物の位置補正装置において、前記撮像装置(9)
は、前記マーカ(5)を画面の1/4以上の直径を有する
ように撮像する構成であり、前記画像処理装置(11)
は、前記撮像装置(9)によって撮像された前記被補正
物(W)の画像内に少なくとも1つの領域開始点が前記
マーカ(5)の領域内に含まれるように複数の領域開始
点(S1〜S9)を適宜間隔に設定し、上記複数の領域開始
点(S1〜S9)が個々に含まれる領域の面積(S)を演算
し所定の閾値と比較して、閾値以下の場合にはエラーと
して別個の領域開始点が含まれる領域の面積を順次演算
して比較し、閾値以上の場合にマーカ(5)の重心位置
を演算する構成としてなるものである。
[Effects of the Invention] As can be understood from the above description of the embodiments, in brief, the present invention provides a positioning device (1) for gripping and horizontally moving and positioning an object to be corrected (W), and the positioning device Positioning control device (7) for controlling the movement of the object, an imaging device (9) for imaging a marker (5) provided on the object to be corrected (W), and a marker imaged by the imaging device (9) The image data of (15) is subjected to image processing to calculate and process the center of gravity of the marker (15), and the normal center of gravity previously stored in the RAM (21) and the center of gravity detected by the arithmetic processing. And an image processing device (11) for outputting a position correction data based on the deviation amount to the positioning control device (7). The imaging device (9)
Is configured to image the marker (5) so as to have a diameter of 1/4 or more of the screen, and the image processing device (11)
A plurality of area start points (S) such that at least one area start point is included in the area of the marker (5) in the image of the object to be corrected (W) picked up by the image pickup device (9). 1 to S 9 ) are set at appropriate intervals, the area (S) of the region including each of the plurality of region start points (S 1 to S 9 ) is individually calculated and compared with a predetermined threshold. In this case, the area of an area including a separate area start point as an error is sequentially calculated and compared, and when the area is equal to or larger than the threshold, the center of gravity of the marker (5) is calculated.

上記構成より明らかなように、本発明においては、撮
像装置9は被補正物Wに設けられたマーカ5の画面の1/
4以上の直径を有するように大きく撮像する構成であ
り、画像処理装置11は、撮像装置9によって撮像された
被補正物Wの画像内に少なくとも1つの領域開始点がマ
ーカ5の領域内に含まれるように複数の領域開始点S1
S9を適宜間隔に設定し、上記各領域開始点S1〜S9が含ま
れる領域の面積を演算し所定の閾値と比較して、閾値以
下の場合にはエラーとして別個の領域開始点が含まれる
領域の面積を順次演算し、面積が所定値以上の場合にマ
ーカ5の重心位置を演算する構成である。
As is clear from the above configuration, in the present invention, the imaging device 9 is 1/1 of the screen of the marker 5 provided on the object W to be corrected.
The image processing apparatus 11 has a configuration in which at least one area start point is included in the area of the marker 5 in the image of the object to be corrected W captured by the imaging apparatus 9. So that a plurality of area start points S 1 to
Appropriately set interval S 9, as compared with the area and calculates the predetermined threshold of each region starting point region containing the S 1 to S 9, a separate area start point as an error if the threshold value or less In this configuration, the areas of the included regions are sequentially calculated, and when the area is equal to or larger than a predetermined value, the position of the center of gravity of the marker 5 is calculated.

すなわち、本発明においては、マーカ5は画面の1/4
以上の直径を有するように比較的大きく撮像されるもの
であり、領域開始点が含まれる領域の面積を演算し、こ
の面積を所定の閾値と比較して閾値以下の場合にはエラ
ーとされるので、例えば被補正物Wにマーカ5以外の不
要情報Nが有る場合であっても、上記不要情報Nを排除
してマーカ5のみの情報によってマーカ5の重心位置を
検出することができるものである。
That is, in the present invention, the marker 5 is 1/4 of the screen.
The image is captured relatively large so as to have the above diameter, the area of the area including the area start point is calculated, and this area is compared with a predetermined threshold. Therefore, for example, even when there is unnecessary information N other than the marker 5 on the object to be corrected W, the position of the center of gravity of the marker 5 can be detected based on the information of only the marker 5 by excluding the unnecessary information N. is there.

したがって、マーカ5の重心位置の検出を正確かつ迅
速に行うことができ、延いては正規の重心位置に対する
マーカ5の重心位置の補正量が正確かつ迅速に演算でき
ることとなるものである。
Therefore, the position of the center of gravity of the marker 5 can be detected accurately and quickly, and the correction amount of the position of the center of gravity of the marker 5 with respect to the normal position of the center of gravity can be accurately and quickly calculated.

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

第1図はこの発明の被補正物の位置補正装置における構
成ブロック図、第2図は撮像装置で被補正物を撮像した
一例の画像の平面図、第3図は被補正物に設けられたマ
ーカとしての穴の重心位置を演算処理するアルゴリズム
の説明図、第4図は本実施例の動作を説明するフローチ
ャート、第5図はマーカとしての穴の重心位置を検出す
る動作を説明するフローチャートである。 第6図は従来撮像装置で被補正物を撮像した一例の画像
の平面図である。 1……位置決め装置、5……マーカ(穴) 7……位置決め制御装置、9……撮像装置 11……画像処理装置、W……被補正物
FIG. 1 is a block diagram of a configuration of a position correcting apparatus for an object to be corrected according to the present invention, FIG. 2 is a plan view of an example of an image of the object to be corrected captured by an imaging device, and FIG. FIG. 4 is an explanatory diagram of an algorithm for calculating the position of the center of gravity of a hole as a marker, FIG. 4 is a flowchart illustrating the operation of the present embodiment, and FIG. 5 is a flowchart illustrating the operation of detecting the position of the center of gravity of a hole as a marker. is there. FIG. 6 is a plan view of an example of an image of an object to be corrected captured by a conventional imaging apparatus. DESCRIPTION OF SYMBOLS 1 ... Positioning device, 5 ... Marker (hole) 7 ... Positioning control device, 9 ... Imaging device 11 ... Image processing device, W ... Corrected object

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】被補正物(W)を把持して水平に移動し位
置決めする位置決め装置(1)と、この位置決め装置を
移動制御するための位置決め制御装置(7)と、前記被
補正物(W)に設けられたマーカ(5)を撮像する撮像
装置(9)と、上記撮像装置(9)によって撮像された
マーカ(15)の画像データを画像処理して上記マーカ
(15)の重心位置を演算処理すると共にRAM(21)に予
め記憶されている正規な重心位置と演算処理して検出さ
れた前記重心位置とを比較して偏差量を算出し、この偏
差量に基づく位置補正データを前記位置決め制御装置
(7)へ出力する画像処理装置(11)と、を備えてなる
被補正物の位置補正装置において、前記撮像装置(9)
は、前記マーカ(5)を画面の1/4以上の直径を有する
ように撮像する構成であり、前記画像処理装置(11)
は、前記撮像装置(9)によって撮像された前記被補正
物(W)の画像内に少なくとも1つの領域開始点が前記
マーカ(5)の領域内に含まれるように複数の領域開始
点(S1〜S9)を適宜間隔に設定し、上記複数の領域開始
点(S1〜S9)が個々に含まれる領域の面積(S)を演算
し所定の閾値と比較して、閾値以下の場合にはエラーと
して別個の領域開始点が含まれる領域の面積を順次演算
して比較し、閾値以上の場合にマーカ(5)の重心位置
を演算する構成としてなることを特徴とする被補正物の
位置補正装置。
A positioning device (1) for gripping and horizontally moving and positioning an object to be corrected (W), a positioning control device (7) for controlling the movement of the positioning device, and the object to be corrected (W). W) An image pickup device (9) for picking up an image of a marker (5), and image data of the marker (15) picked up by the image pickup device (9) is subjected to image processing to position the center of gravity of the marker (15). And computes a deviation amount by comparing the normal center of gravity position stored in the RAM (21) in advance with the center of gravity position detected by the arithmetic processing, and calculates position correction data based on the deviation amount. An image processing device (11) that outputs the image data to the positioning control device (7).
Is configured to image the marker (5) so as to have a diameter of 1/4 or more of the screen, and the image processing device (11)
A plurality of area start points (S) such that at least one area start point is included in the area of the marker (5) in the image of the object to be corrected (W) picked up by the image pickup device (9). 1 to S 9 ) are set at appropriate intervals, the area (S) of the region including each of the plurality of region start points (S 1 to S 9 ) is individually calculated and compared with a predetermined threshold. In this case, the object to be corrected is characterized by sequentially calculating and comparing the areas of the areas including the different area start points as errors, and calculating the position of the center of gravity of the marker (5) when the area exceeds the threshold value. Position correction device.
JP63193498A 1988-08-04 1988-08-04 Position correction device for the object to be corrected Expired - Fee Related JP2749329B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63193498A JP2749329B2 (en) 1988-08-04 1988-08-04 Position correction device for the object to be corrected

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63193498A JP2749329B2 (en) 1988-08-04 1988-08-04 Position correction device for the object to be corrected

Publications (2)

Publication Number Publication Date
JPH0246990A JPH0246990A (en) 1990-02-16
JP2749329B2 true JP2749329B2 (en) 1998-05-13

Family

ID=16309047

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63193498A Expired - Fee Related JP2749329B2 (en) 1988-08-04 1988-08-04 Position correction device for the object to be corrected

Country Status (1)

Country Link
JP (1) JP2749329B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105612401B (en) * 2013-09-30 2018-02-23 独立行政法人产业技术综合研究所 Mark image processing system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6121192Y2 (en) * 1980-09-02 1986-06-25
JPH0716794B2 (en) * 1985-06-04 1995-03-01 株式会社アマダ Laser processing machine

Also Published As

Publication number Publication date
JPH0246990A (en) 1990-02-16

Similar Documents

Publication Publication Date Title
KR970007039B1 (en) Detection position correction system
US9361687B2 (en) Apparatus and method for detecting posture of camera mounted on vehicle
US20050195409A1 (en) Measuring system
JPH049332B2 (en)
US11049268B2 (en) Superimposing position correction device and superimposing position correction method
JPH08287252A (en) Screw hole position recognizing method
JP2749329B2 (en) Position correction device for the object to be corrected
US8213684B2 (en) Motion estimating device
JP3266429B2 (en) Pattern detection method
JP2006153768A (en) Position detection system and its correction method
JPH08285526A (en) Image recognition system
JP2006155400A (en) Image extraction device
JPH09128550A (en) Method and device for processing image
JPH06226561A (en) Circular position recognizing device
US20200074209A1 (en) Object recognition device
JP2000194861A (en) Method and device for recognizing image
JP4566686B2 (en) Method and apparatus for determining shape of object
JPH08293026A (en) Image recognition device
JPH0731533B2 (en) Three-dimensional coordinate transformation device
JP2000180138A (en) Calibration plate and calibration system for visual sensor utilizing it
JP3541980B2 (en) Calibration method for robot with visual sensor
JPH074737B2 (en) Clamp deviation correction device
JPH06317406A (en) Device for detecting position of article
JPH095022A (en) Pattern position detecting method and apparatus by image recognition
JP3620081B2 (en) Template matching method

Legal Events

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