JPH10318716A - Method and apparatus for position detection of object - Google Patents

Method and apparatus for position detection of object

Info

Publication number
JPH10318716A
JPH10318716A JP14721197A JP14721197A JPH10318716A JP H10318716 A JPH10318716 A JP H10318716A JP 14721197 A JP14721197 A JP 14721197A JP 14721197 A JP14721197 A JP 14721197A JP H10318716 A JPH10318716 A JP H10318716A
Authority
JP
Japan
Prior art keywords
plane
slit light
cross
shaped slit
angle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP14721197A
Other languages
Japanese (ja)
Inventor
Hitoshi Wakisako
仁 脇迫
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP14721197A priority Critical patent/JPH10318716A/en
Publication of JPH10318716A publication Critical patent/JPH10318716A/en
Pending legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a method and an apparatus for the position detection of an object, which are simple and whose detecting time is short. SOLUTION: Cross-shaped slit light 4 which is crossed at angles other than a right angle is irradiated vertically. The image of a rectangular parallelepiped 1 irradiated with the cross-shaped slit light 4 is fetched into an image processing means by using an imaging means 7. Positions of four points of intersection in which the cross-shaped slit light 4 is crossed with the outline of the rectangular parallelepiped 1 are found. By one measuring operation, the movement amount and the rotation amount of the rectangular parallelepiped 1 can be decided unconditionally.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、上方から見た時の
輪郭が長方形をなす物体の、平面上における位置と方向
を検出する方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for detecting the position and direction on a plane of an object having a rectangular outline when viewed from above.

【0002】[0002]

【従来の技術】従来の技術による上方から見た時の輪郭
が長方形をなす物体の、平面上における位置と方向を検
出する方法を図に基づいて説明する。図4は従来技術の
例を示す斜視図である。図において、1は検出対象であ
る直方体であり、図示しない平面に置かれていている。
直方体1は前記平面において、置かれるべき基準の位置
と方向が決められているが、前記平面上で平行移動と垂
直軸回りの回転が自由なので、実際の位置と方向が判ら
ない。このことは、例えば、ラフに位置決めされた物品
を産業用ロボットでピッキングする時に、直面する問題
である。2は長方形であり、直方体1を上方から見た時
の輪郭である。5は光源であり、直方体1の上方に固定
され、直角に交差する十字形のスリット光6を直方体1
上に照射する。7は、例えばビデオカメラのような撮像
手段であり、直方体1の上方に固定され、スリット光6
に照らされた、長方形2を撮影して、図示しない画像処
理装置に画像を送る。図5は撮像手段7で撮影した長方
形2の画像を示す説明図である。図において、R1,R
2,R3,R4は長方形2の辺と十字形スリット光6が
交差する交点である。この交点R1,R2,R3,R4
の位置を前記画像処理手段で、例えば、背景の前記平面
と長方形2の反射率の違いによって、十字形スリット光
6の反射光の強さが、不連続になる点を求めるような、
公知の手法を用いて求め、さらに図示しない計算装置に
おいて、交点R1,R2,R3,R4の位置から、長方
形2の位置と方向を算出し、直方体1の位置と方向を求
める。
2. Description of the Related Art A method for detecting the position and direction of a rectangular object on a plane according to the prior art will be described with reference to the drawings. FIG. 4 is a perspective view showing an example of the prior art. In the figure, reference numeral 1 denotes a rectangular parallelepiped to be detected, which is placed on a plane (not shown).
The reference position and direction of the rectangular parallelepiped 1 to be placed on the plane are determined. However, since the parallel movement and the rotation around the vertical axis are free on the plane, the actual position and direction are unknown. This is a problem encountered, for example, when picking roughly positioned articles with an industrial robot. Reference numeral 2 denotes a rectangle, which is an outline when the rectangular parallelepiped 1 is viewed from above. Reference numeral 5 denotes a light source, which is fixed above the rectangular parallelepiped 1 and cross-shaped slit light 6 intersecting at a right angle.
Irradiate on top. Reference numeral 7 denotes imaging means such as a video camera, which is fixed above the rectangular parallelepiped 1 and has slit light 6.
The image of the rectangle 2 illuminated by the image is taken and sent to an image processing device (not shown). FIG. 5 is an explanatory diagram showing an image of the rectangle 2 captured by the imaging unit 7. In the figure, R1, R
2, R3 and R4 are intersections where the side of the rectangle 2 and the cross-shaped slit light 6 intersect. The intersections R1, R2, R3, R4
In the image processing means, for example, a point at which the intensity of the reflected light of the cross-shaped slit light 6 becomes discontinuous due to a difference in reflectance between the plane of the background and the rectangle 2 is obtained.
The position and direction of the rectangle 2 are calculated from the positions of the intersections R1, R2, R3, and R4, and the position and direction of the rectangular parallelepiped 1 are calculated by a calculation device (not shown).

【0003】[0003]

【発明が解決しようとする課題】ところが、従来技術で
は、交点R1,R2,R3,R4の位置を求めただけで
は、長方形2の位置と方向を一意的に特定できないと言
う問題があった。図6は交点R1,R2,R3,R4の
位置を知って、長方形2の位置を求める方法を示す説明
図である。図において、Aは実際に撮影された長方形2
の画像でであり、Bはその各辺が4点R1,R2,R
3,R4を通る別の長方形である。図のように点R1,
R2,R3,R4を通る長方形の位置と方向は2個の解
が存在する。このため、長方形2の位置と方向を決定す
るためには、別の補助的な手段で長方形2がAの位置に
あるか、Bの位置にあるか判別する必要であり、検出装
置および方法が複雑になり、検出時間もかかるという問
題もあった。そこで、本発明は、簡単で、検出時間の短
い物体位置検出方法と物体位置検出装置を提供すること
を目的とする。
However, in the prior art, there is a problem that the position and direction of the rectangle 2 cannot be uniquely specified simply by obtaining the positions of the intersections R1, R2, R3, and R4. FIG. 6 is an explanatory diagram showing a method of determining the position of the rectangle 2 by knowing the positions of the intersections R1, R2, R3, and R4. In the figure, A is a rectangle 2 actually photographed.
B has four points R1, R2, R
3, another rectangle passing through R4. As shown in FIG.
There are two solutions for the position and direction of the rectangle passing through R2, R3, and R4. Therefore, in order to determine the position and the direction of the rectangle 2, it is necessary to determine whether the rectangle 2 is at the position A or B by another auxiliary means. There is also a problem that the detection becomes complicated and takes a long time. Therefore, an object of the present invention is to provide an object position detecting method and an object position detecting device which are simple and have a short detection time.

【0004】[0004]

【課題を解決するための手段】上記問題を解決するため
に、本発明は、直角以外の角度で交差する十字形スリッ
ト光を検出対象の物体に照射し、前記スリット光と、前
記物体の輪郭の4つの交点を求めて、前記物体の位置と
方向を求めるものである。また、前記物体の上方に配置
され、前記平面に垂直な方向の距離を計測する2台の距
離計測手段で、前記平面に平行な平面において、直角以
外の角度で交差する直線上を走査し、前記走査の軌跡が
前記物体の輪郭と交わる4つの交点を求めて、前記物体
の位置と方向を求めるものである。
In order to solve the above-mentioned problems, the present invention irradiates an object to be detected with a cross-shaped slit light that intersects at an angle other than a right angle, and detects the slit light and the contour of the object. Are obtained to obtain the position and direction of the object. Further, two distance measuring means arranged above the object and measuring a distance in a direction perpendicular to the plane scans a straight line intersecting at an angle other than a right angle on a plane parallel to the plane, The position and the direction of the object are obtained by obtaining four intersections where the scanning trajectory intersects the contour of the object.

【0005】[0005]

【発明の実施の形態】以下、図に基づいて本発明の実施
の形態を説明する。図1は本発明の第1の実施例を示す
斜視図である。基本的な構成は従来技術と共通するの
で、異なる部分について説明する。図において、3は光
源であり、直方体1の上方に固定され、直角以外の角度
で、交差する十字形のスリット光4を直方体1上に照射
する。撮像手段7は、十字形スリット光4に照らされ
た、長方形2を撮影して、図示しない画像処理装置に画
像を送る。図2は撮像手段7で撮影した長方形2の画像
を示す平面図である。図において、P1,P2,P3,
P4はスリット光4と長方形2の交差する点であり、Q
1,Q2,Q3,Q4は長方形2の頂点である。十字形
スリット光4の反射の強さは、長方形2とそれ以外の部
分では異なるからスリット光4の反射の強さが不連続に
なる点を求めればそこがスリット光4と長方形2の交点
P1,P2,P3,P4である。次にこの4つの交点P
1,P2,P3,P4から長方形2の位置と方向を求め
る方法を説明する。今、長方形2が基準となる位置と方
向に置かれているときの、4つの頂点をq1,q2,q
3,q4とし、それぞれの座標を次のように定める。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a perspective view showing a first embodiment of the present invention. Since the basic configuration is the same as that of the related art, different portions will be described. In the figure, reference numeral 3 denotes a light source, which is fixed above the rectangular parallelepiped 1 and irradiates the cross-shaped slit light 4 on the rectangular parallelepiped 1 at an angle other than a right angle. The imaging means 7 captures the rectangle 2 illuminated by the cross-shaped slit light 4 and sends the image to an image processing device (not shown). FIG. 2 is a plan view showing an image of the rectangle 2 taken by the image pickup means 7. In the figure, P1, P2, P3,
P4 is the intersection of the slit light 4 and the rectangle 2, and Q
1, Q2, Q3, and Q4 are vertices of the rectangle 2. Since the reflection intensity of the cross-shaped slit light 4 is different between the rectangle 2 and the other portions, a point where the reflection intensity of the slit light 4 becomes discontinuous is obtained. , P2, P3, and P4. Next, these four intersections P
A method for obtaining the position and direction of the rectangle 2 from 1, P2, P3, and P4 will be described. Now, when the rectangle 2 is placed at the reference position and direction, the four vertices are represented by q1, q2, q
3, q4, and the respective coordinates are determined as follows.

【数1】 ここで、a,bは既知の数値であり、2a,2bは長方
形4の2辺の長さとなる。次に、この長方形2が角度θ
だけ回転し、さらに(α,β)だけ平行移動したときの
長方形2の各頂点をQ1,Q2,Q3,Q4とする。移
動前と移動後の頂点の座標をそれぞれ(x,y),
(X,Y)とすると、
(Equation 1) Here, a and b are known numerical values, and 2a and 2b are the lengths of two sides of the rectangle 4. Next, this rectangle 2 has an angle θ
, And the vertices of the rectangle 2 when translated by (α, β) are Q1, Q2, Q3, and Q4. The coordinates of the vertices before and after movement are (x, y),
(X, Y)

【数2】 の関係がある。ここで、c=cosθ,s=sinθで
ある。長方形2の位置と方向を求めることは、平行移動
量α,βと回転角θを求めることである。今十字形のス
リット光4が長方形2の上に作る十字形の像のうち、1
本の直線像をy軸に取り、交差する他の直線像をy=k
xの直線とし、2本の直線像の交点を原点とする。ここ
で、kは2本の直線のなす角度によって決まる既知の定
数である。点P1は辺Q1Q2と直線y=kxとの交
点、点P2は辺Q2Q3とy軸の交点、点P3は辺Q3
Q4と直線y=kxの交点、点P4は辺Q4Q1とy軸
の交点である。式1と式2から点Q1,Q2,Q3,Q
4の座標を求めることができる。点P1,P3のx座標
をX1,X2、点P2,P4のy座標をY2,Y4とす
ると、以下の関係がある。
(Equation 2) There is a relationship. Here, c = cos θ and s = sin θ. Determining the position and direction of the rectangle 2 means determining the translation amounts α and β and the rotation angle θ. Now, of the cross-shaped images that the cross-shaped slit light 4 creates on the rectangle 2,
Take one straight line image on the y-axis, and let other intersecting straight line images be y = k
The straight line of x is set, and the intersection of the two straight line images is set as the origin. Here, k is a known constant determined by the angle between the two straight lines. Point P1 is the intersection of side Q1Q2 and straight line y = kx, point P2 is the intersection of side Q2Q3 and the y-axis, and point P3 is side Q3.
The intersection of Q4 and the straight line y = kx, point P4, is the intersection of the side Q4Q1 and the y-axis. From equations 1 and 2, points Q1, Q2, Q3, Q
4 can be obtained. Assuming that the x-coordinates of the points P1 and P3 are X1 and X2, and the y-coordinates of the points P2 and P4 are Y2 and Y4, the following relationship exists.

【数3】 (Equation 3)

【数4】 (Equation 4)

【数5】 (Equation 5)

【数6】 式3、式4から次の式が得られる。(Equation 6) The following equations are obtained from Equations 3 and 4.

【数7】 式5、式6から次の式が得られる。(Equation 7) The following equations are obtained from Equations 5 and 6.

【数8】 式3、式5から次の式が得られる。(Equation 8) The following equations are obtained from Equations 3 and 5.

【数9】 (Equation 9)

【数10】 更に式7、8を式9、10に代入すれば、α及びβを得
られる。また従来技術で示したように十字形スリット光
4が直交する場合、一方のスリットの直線がx軸に一致
する。すなわち、k=0となる。この時式8が成立せ
ず、sが一意に決まらないので解が決定できない。図3
は本発明の第2の実施例を示す平面図である。図におい
て8は、直方体1の上方にあって、一方向に走査する2
台の距離測定手段であり、それぞれの走査方向9は、直
角以外の角度で交わり、距離の測定方向は検出対象の長
方形2に垂直な方向である。距離測定手段8を走査し
て、長方形2までの距離を求め、距離の変化が不連続と
なる点を、走査方向と直方体1の交点として検出して、
その位置を求める。前記交点の位置を、図示しない計算
装置に入力して、前記第1の実施例と同様の手順で、長
方形2の位置と方向を求める。なお、本発明による検出
対象の物体は、上方から見て長方形の輪郭形状を持つ物
体であれば、何で良い。例えば、平面に開口した、長方
形の穴や凹部にも適用できる。
(Equation 10) Further, by substituting Equations 7 and 8 into Equations 9 and 10, α and β can be obtained. Further, when the cross-shaped slit light 4 is orthogonal as shown in the related art, the straight line of one slit coincides with the x-axis. That is, k = 0. At this time, Equation 8 does not hold, and s is not uniquely determined, so that a solution cannot be determined. FIG.
FIG. 4 is a plan view showing a second embodiment of the present invention. In the figure, reference numeral 8 denotes a part located above the rectangular parallelepiped 1 and scanning in one direction.
Each scanning direction 9 intersects at an angle other than a right angle, and the measuring direction of the distance is a direction perpendicular to the rectangle 2 to be detected. The distance to the rectangle 2 is obtained by scanning the distance measuring means 8, and a point at which the change in distance is discontinuous is detected as an intersection of the scanning direction and the rectangular parallelepiped 1,
Find its position. The position of the intersection is input to a calculation device (not shown), and the position and direction of the rectangle 2 are obtained in the same procedure as in the first embodiment. The object to be detected according to the present invention may be any object having a rectangular outline shape when viewed from above. For example, the present invention can be applied to a rectangular hole or a concave portion opened in a plane.

【0006】[0006]

【発明の効果】以上述べたように本発明によれば、次の
ような効果がある。 (1)十字形スリット光が、直角以外の角度で交差する
ようにしたので、簡易な装置で、長方形の平面を持つ物
体の位置と方向の検出が出来る。 (2)演算式が簡単であり、演算処理の時間が短い。
As described above, according to the present invention, the following effects can be obtained. (1) Since the cross-shaped slit lights intersect at an angle other than a right angle, the position and direction of an object having a rectangular plane can be detected with a simple device. (2) The operation formula is simple, and the operation processing time is short.

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

【図1】 本発明の第1の実施例を示す斜視図である。FIG. 1 is a perspective view showing a first embodiment of the present invention.

【図2】 本発明の第1の実施例を示す画像の平面図で
ある。
FIG. 2 is a plan view of an image showing the first embodiment of the present invention.

【図3】 本発明の第2の実施例を示す平面図である。FIG. 3 is a plan view showing a second embodiment of the present invention.

【図4】 従来技術の例を示す斜視図である。FIG. 4 is a perspective view showing an example of the prior art.

【図5】 従来技術の例を示す平面図である。FIG. 5 is a plan view showing an example of the related art.

【図6】 従来技術の例を示す平面図である。FIG. 6 is a plan view showing an example of the related art.

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

1:直方体 2:長方形 3:光源 4:十字形スリット光 5:光源 6:十字形スリット光 7:撮像手段 8:距離計測手段 9:走査方向 1: rectangular parallelepiped 2: rectangular 3: light source 4: cruciform slit light 5: light source 6: cruciform slit light 7: imaging means 8: distance measuring means 9: scanning direction

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 上方から見た時の輪郭が長方形をなす物
体の、平面上における位置と方向を検出する物体位置検
出方法において、直角以外の角度で交差する十字形スリ
ット光を、前記平面に対して垂直に照射し、前記十字形
スリット光に照らされた前記物体の画像を撮像手段を用
いて画像処理手段に取り込み、前記十字形スリット光が
前記物体の輪郭と交わる4つの交点の位置を求め、前記
4つの交点の位置から前記物体の位置と方向を求める物
体位置検出方法。
1. An object position detecting method for detecting a position and a direction on a plane of an object having a rectangular outline when viewed from above, wherein a cross-shaped slit light intersecting at an angle other than a right angle is applied to the plane. Irradiated vertically to the object, the image of the object illuminated by the cross-shaped slit light is taken into image processing means using an imaging means, and the positions of four intersections where the cross-shaped slit light intersects the contour of the object are determined. An object position detecting method for obtaining the position and direction of the object from the positions of the four intersections.
【請求項2】 上方から見た時の輪郭が長方形をなす物
体の、平面上における位置と方向を検出する物体位置検
出方法において、前記物体の上方に配置され、前記平面
に垂直な方向の距離を計測する2台の距離計測手段を、
前記平面に平行な平面内で、直角以外の角度で交差する
ように走査し、前記走査の軌跡が前記物体の輪郭と交わ
る4つの交点の位置を求め、前記4つの交点の位置から
前記物体の位置と方向を求める物体位置検出方法。
2. An object position detecting method for detecting a position and a direction on a plane of an object having a rectangular outline when viewed from above, wherein the distance is set above the object and perpendicular to the plane. Two distance measuring means for measuring
In a plane parallel to the plane, scan so as to intersect at an angle other than a right angle, determine the positions of four intersections where the trajectory of the scan intersects the contour of the object, and determine the position of the object from the positions of the four intersections. An object position detection method that determines the position and direction.
【請求項3】 上方から見た時の輪郭が長方形をなす物
体の、平面上における位置と方向を検出する物体位置検
出装置において、前記物体の上方に配置され、直角以外
の角度で交差する十字形スリット光を、前記平面に対し
て垂直に照射する光源と、前記物体の上方に配置され、
前記十字形スリット光に照らされた前記物体の画像を撮
影する撮像手段と、画像処理装置と、計算装置からなる
ことを特徴とする物体位置検出装置。
3. An object position detecting device for detecting a position and a direction on a plane of an object having a rectangular outline when viewed from above, wherein the object is disposed above the object and intersects at an angle other than a right angle. A light source for irradiating a vertical slit light with respect to the plane, and disposed above the object;
An object position detection device, comprising: an imaging unit that captures an image of the object illuminated by the cross-shaped slit light; an image processing device; and a calculation device.
【請求項4】 上方から見た時の輪郭が長方形をなす物
体の、平面上における位置と方向を検出する物体位置検
出装置において、前記物体の上方に配置され、前記平面
に垂直な方向の距離を計測し、前記平面に平行な平面内
で、直角以外の角度で交差する直線上を走査する2台の
距離計測手段と、計算装置からなることを特徴とする物
体位置検出装置。
4. An object position detecting device for detecting the position and direction of an object having a rectangular outline when viewed from above on a plane, wherein the distance is set above the object and perpendicular to the plane. An object position detecting device, comprising: two distance measuring means for scanning a straight line intersecting at an angle other than a right angle in a plane parallel to the plane, and a calculating device.
JP14721197A 1997-05-20 1997-05-20 Method and apparatus for position detection of object Pending JPH10318716A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14721197A JPH10318716A (en) 1997-05-20 1997-05-20 Method and apparatus for position detection of object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14721197A JPH10318716A (en) 1997-05-20 1997-05-20 Method and apparatus for position detection of object

Publications (1)

Publication Number Publication Date
JPH10318716A true JPH10318716A (en) 1998-12-04

Family

ID=15425090

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14721197A Pending JPH10318716A (en) 1997-05-20 1997-05-20 Method and apparatus for position detection of object

Country Status (1)

Country Link
JP (1) JPH10318716A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007178137A (en) * 2005-12-27 2007-07-12 Japan Atomic Energy Agency Device and method for measuring displacement amount of surface shape

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007178137A (en) * 2005-12-27 2007-07-12 Japan Atomic Energy Agency Device and method for measuring displacement amount of surface shape

Similar Documents

Publication Publication Date Title
JP5438475B2 (en) Gap step measurement device, gap step measurement method, and program thereof
KR20010012293A (en) Three dimensional inspection system
JP3545542B2 (en) Wafer rotation direction detection method
JPH10318716A (en) Method and apparatus for position detection of object
JP2001349710A (en) Three-dimensional measuring device
JP3984683B2 (en) Laser processing apparatus and method for measuring position of workpiece
JP4158349B2 (en) Dimension measurement method and apparatus by image processing
JP3758763B2 (en) Method for optical measurement of hole position
JP2932418B2 (en) Work position measurement method
JP2005061953A (en) Protrusion height measuring method and measuring apparatus
JP4029975B2 (en) Measuring method of shoulder arc radius of notch of semiconductor wafer
JP2000088555A (en) Inspection method for position deviation of character and figure and device thereof
JPH11126816A (en) Method for correcting and deciding coordinates of objective point on wafer
JP3013255B2 (en) Shape measurement method
JP2879357B2 (en) Shape judgment method
JPH06134585A (en) Marking system
JPH05149727A (en) Three-dimensional shape recognizing device
JPH0547901A (en) Alignment method of wafer
JPH0894318A (en) Optical position measuring method
JP2000193510A (en) Method and instrument for measuring liquid level in tank
JPH10105718A (en) Optical measurement method for hole position
JPS6180008A (en) Shape measuring apparatus
JP3491102B2 (en) Overlay measuring device
JP2001194116A (en) Height measuring apparatus
JPH11104938A (en) Image processing method and its device in sheet metal work