JP2689064B2 - Measuring method of hole position - Google Patents
Measuring method of hole positionInfo
- Publication number
- JP2689064B2 JP2689064B2 JP6797793A JP6797793A JP2689064B2 JP 2689064 B2 JP2689064 B2 JP 2689064B2 JP 6797793 A JP6797793 A JP 6797793A JP 6797793 A JP6797793 A JP 6797793A JP 2689064 B2 JP2689064 B2 JP 2689064B2
- Authority
- JP
- Japan
- Prior art keywords
- hole
- circular hole
- ellipse
- coordinates
- center
- 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
Links
Landscapes
- Image Analysis (AREA)
- Length Measuring Devices By Optical Means (AREA)
- Length Measuring Devices With Unspecified Measuring Means (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、ワークに形成した円形
孔を撮像し、撮像手段の画面上の円形孔の画像データに
基いて円形孔の中心位置を計測する、孔位置の計測方法
に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a hole position measuring method for picking up an image of a circular hole formed in a work and measuring the center position of the circular hole based on image data of the circular hole on the screen of an image pickup means. .
【0002】[0002]
【従来の技術】従来、この種の計測方法においては、画
面上を水平x軸方向に走査して円形孔の像の孔縁に合致
するx軸方向2箇所の孔縁点の座標を求めることを垂直
y軸方向に位置をずらしながら繰返し、x軸方向2箇所
の孔縁点の中点のx座標を平均化して円形孔の中心のx
座標を求め、また、画面上をy軸方向に走査してy軸方
向2箇所の孔縁点の座標を求めることをx軸方向に位置
をずらしながら繰返し、y軸方向2箇所の孔縁点の中点
のy座標を平均化して円形孔の中心のy座標を求めるよ
うにしている。ところで、円形孔の像の孔縁にノイズ等
による凹凸が現われて孔縁が連続した曲線にならないこ
とがあり、この場合には走査データに凹凸による誤差が
取り込まれて、計測精度が悪くなる。かかる不具合を解
消するため、特開昭56−155804号公報により、
上記の如くして算定された中心位置を中心とする所定径
の基準円に対する各孔縁点のずれ量を求め、このずれ量
の各孔縁点毎の変化を調べてその連続性から正常な像で
あるか否かを判別し、変化が不連続な孔縁点を走査デー
タから削除して、中心位置を求めるようにしたものも知
られている。2. Description of the Related Art Conventionally, in this type of measuring method, the coordinates of two hole edge points in the x-axis direction which match the hole edges of the image of the circular hole are obtained by scanning the screen in the horizontal x-axis direction. Is repeated while shifting the position in the vertical y-axis direction, and the x-coordinates of the midpoints of the two hole edge points in the x-axis direction are averaged to determine the x-axis of the center of the circular hole.
Obtaining the coordinates and scanning the screen in the y-axis direction to obtain the coordinates of the hole edge points at the two points in the y-axis direction are repeated while shifting the position in the x-axis direction. The y-coordinates of the center points are averaged to find the y-coordinate of the center of the circular hole. By the way, the unevenness due to noise or the like may appear on the edge of the image of the circular hole and the hole edge does not form a continuous curve. In this case, an error due to the unevenness is incorporated into the scan data, and the measurement accuracy deteriorates. In order to solve such a problem, according to Japanese Patent Laid-Open No. 56-155804,
The deviation amount of each hole edge point with respect to the reference circle of the predetermined diameter centered on the center position calculated as described above is obtained, and the change of this deviation amount at each hole edge point is examined to determine the normality from its continuity. It is also known to determine whether the image is an image and delete the hole edge point having a discontinuous change from the scan data to obtain the center position.
【0003】[0003]
【発明が解決しようとする課題】上記の如く基準円に対
するずれ量の変化の連続性を調べるためには、画面上を
微小ピッチで走査して多数の孔縁点の座標を検出記憶し
ておく必要があり、データ処理が煩雑になる不具合があ
る。また、ワークが撮像手段の光軸に対し傾むくと、円
形孔の像が楕円となり、円形孔の像が円になることを想
定して中心位置を求める上記の方法では計測誤差を生じ
易くなる。本発明は、以上の点に鑑み、比較的少数の孔
縁点の座標を用いて孔位置を高精度で計測し得るように
した方法を提供することをその目的としている。As described above, in order to check the continuity of the change in the shift amount with respect to the reference circle, the screen is scanned at a fine pitch to detect and store the coordinates of many hole edge points. It is necessary and there is a problem that data processing becomes complicated. Further, when the work is tilted with respect to the optical axis of the image pickup means, a measurement error is likely to occur in the above method for determining the center position on the assumption that the image of the circular hole becomes an ellipse and the image of the circular hole becomes a circle. . In view of the above points, an object of the present invention is to provide a method capable of measuring a hole position with high accuracy by using coordinates of a relatively small number of hole edge points.
【0004】[0004]
【課題を解決するための手段】上記目的を達成すべく、
本願発明は、ワークに形成した円形孔を撮像し、撮像手
段の画面上の円形孔の像の孔縁に合致する周方向複数箇
所の孔縁点の座標に基いて円形孔の中心位置を計測する
方法において、これら孔縁点の座標から画面上の円形孔
の像を表わす回帰楕円を求めて、この回帰楕円に対する
各孔縁点のずれ量を算出し、これら孔縁点のずれ量のう
ちの最大ずれ量が所定値以上のときは、最大ずれ量の孔
縁点を削除した残りの孔縁点の座標から回帰楕円を求め
ることを最大ずれ量が所定値未満になるまで繰返して、
最大ずれ量が所定値未満になる回帰楕円を円形孔に対応
する画面上の目標楕円として求め、この目標楕円の中心
座標から円形孔の中心位置を算定することを特徴とす
る。In order to achieve the above object,
The present invention images a circular hole formed in a workpiece and measures the center position of the circular hole based on the coordinates of a plurality of hole edge points in the circumferential direction that match the hole edge of the image of the circular hole on the screen of the image pickup means. In this method, the regression ellipse that represents the image of the circular hole on the screen is obtained from the coordinates of these hole edge points, the deviation amount of each hole edge point with respect to this regression ellipse is calculated, and the deviation amount of these hole edge points is calculated. When the maximum deviation amount of is greater than or equal to the predetermined value, the regression ellipse is repeatedly obtained from the coordinates of the remaining hole edge points after deleting the hole edge points of the maximum deviation amount until the maximum deviation amount becomes less than the predetermined value.
It is characterized in that a regression ellipse whose maximum deviation amount is less than a predetermined value is obtained as a target ellipse on the screen corresponding to the circular hole, and the center position of the circular hole is calculated from the center coordinates of this target ellipse.
【0005】[0005]
【作用】回帰楕円を求めることにより円形孔の像が円で
あれば円、楕円であれば楕円として円形孔の像が近似さ
れる。そして、凹凸等が現われる異常な像の部分に位置
する孔縁点は回帰楕円に対するずれ量が大きくなるた
め、回帰楕円を繰返し求める過程で削除され、最終的に
円形孔の正常な像に対応する目標楕円が求められる。
尚、円形孔の像の孔縁に大きな凹凸が現われた場合、こ
の凹凸部分に位置する孔縁点を含む状態で回帰楕円を求
め初めたのでは、目標楕円に到達するまでに要する回帰
楕円の演算回数が増加するため、最初の回帰楕円を求め
る前に、前記各孔縁点が円形孔の画像重心を基準にして
画面上に設定される所定の環状エリア内に存するか否か
を判別して、エリア外に存する孔縁点、即ち、正常な像
から大きく逸脱している孔縁点を削除しておくことが望
ましい。また、ワークが3次元的に変位する可能性があ
る場合には、光軸が互に斜交するように配置した2個の
撮像手段により円形孔を撮像し、一方の撮像手段の画面
上の前記目標楕円の中心座標と他方の撮像手段の画面上
の前記目標楕円の中心座標とから三角測量の原理で空間
座標系における円形孔の中心位置を算定する。ところ
で、回帰楕円の演算を繰返して目標楕円を求める過程
で、希ではあるが正常な像の部分の孔縁点のずれ量が異
常な像の部分の孔縁点のずれ量を上回って前者の孔縁点
が削除され、目標楕円が円形孔の正常な像にマッチング
しなくなることがある。この場合、前記両撮像手段の画
面上の前記両目標楕円の中心座標から算定される空間座
標系における円形孔の中心位置と、両目標楕円上の点で
あって該両点が円形孔の孔縁上の共通点に対応するもの
の座標から算定される空間座標系における該共通点の位
置とから円形孔の中心と該共通点との間の距離を求める
と、目標楕円が円形孔の正常な像にマッチングしていれ
ば、この距離は円形孔の半径に等しくなるが、マッチン
グしていなければこの距離は円形孔の半径から大きくず
れる。かくて、この距離と円形孔の半径とを比較して、
その差が許容範囲内のときに前記中心位置を円形孔の正
規の中心位置として決定することにより、正常な像にマ
ッチングしていない目標楕円の中心座標に基いて円形孔
の中心位置を誤って決定することを防止できる。By calculating the regression ellipse, the image of the circular hole is approximated as a circle if the image of the circular hole is a circle and as an ellipse if the image of the circular hole is an ellipse. Then, since the hole edge points located in the abnormal image portion where irregularities etc. appear have a large deviation amount with respect to the regression ellipse, they are deleted in the process of repeatedly obtaining the regression ellipse, and finally correspond to the normal image of the circular hole. The target ellipse is sought.
If large irregularities appear on the hole edge of the image of the circular hole, if a regression ellipse is begun in a state including the hole edge points located in this uneven portion, the regression ellipse required to reach the target ellipse Since the number of calculations increases, before determining the first regression ellipse, it is determined whether or not each hole edge point exists within a predetermined annular area set on the screen based on the image center of gravity of the circular hole. Therefore, it is desirable to delete the hole edge points existing outside the area, that is, the hole edge points that largely deviate from the normal image. Further, when the work may be displaced three-dimensionally, the circular holes are imaged by two image pickup means arranged so that the optical axes are oblique to each other, and the image is displayed on the screen of one image pickup means. From the center coordinates of the target ellipse and the center coordinates of the target ellipse on the screen of the other imaging means, the center position of the circular hole in the spatial coordinate system is calculated by the principle of triangulation. By the way, in the process of calculating the target ellipse by repeating the calculation of the regression ellipse, the deviation amount of the hole edge point in the part of the normal image, which is rare, exceeds the deviation amount of the hole edge point of the abnormal image part, The hole edge may be deleted and the target ellipse may no longer match the normal image of the circular hole. In this case, the center position of the circular hole in the spatial coordinate system calculated from the center coordinates of the two target ellipses on the screens of both imaging means and the points on the two target ellipses, both of which are circular holes. When the distance between the center of the circular hole and the common point is calculated from the position of the common point in the spatial coordinate system calculated from the coordinates of the points corresponding to the common point on the edge, the target ellipse is the normal circular hole. If the image is matched, this distance will be equal to the radius of the circular hole, but if not matched, the distance will deviate significantly from the radius of the circular hole. Thus, comparing this distance with the radius of the circular hole,
By determining the center position as the normal center position of the circular hole when the difference is within the allowable range, the center position of the circular hole is erroneously determined based on the center coordinates of the target ellipse that does not match the normal image. Can prevent making decisions.
【0006】[0006]
【実施例】図1は自動車車体等のワークaに基準孔とし
て形成した所定径の円形孔bの中心位置を計測する装置
の概要を示しており、該装置は、ワークaを照射するス
ポット光源1と、ワークaを撮像する第1と第2の1対
のカメラ21、22と、該両カメラ21、22からの画像信
号を入力するコンピュータ3とで構成されている。スポ
ット光源1と両カメラ21、22はロボット等の動作端に
取付けられる図示しない支持枠に所要の位置関係で搭載
され、ワークaの孔形成箇所に対向する所定の測定位置
に移動セットされる。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows the outline of an apparatus for measuring the center position of a circular hole b having a predetermined diameter formed as a reference hole in a work a such as an automobile body. 1, a pair of first and second cameras 2 1 and 2 2 for imaging the work a, and a computer 3 for inputting image signals from the cameras 2 1 and 2 2 . The spot light source 1 and both cameras 2 1 and 2 2 are mounted in a supporting frame (not shown) attached to the operating end of a robot or the like in a required positional relationship, and are moved and set to a predetermined measuring position facing the hole forming portion of the work a. It
【0007】両カメラ21、22は、夫々の光軸01、02
が水平面上で図2に示す如く斜交するように配置されて
おり、該水平面上の互いに直交する座標軸をX軸とZ
軸、該水平面に直交する座標軸をY軸、光軸01、02の
交点を原点0とする空間座標系における円形孔bの中心
位置を両カメラ21、22の画面上における円形孔の像の
中心座標から三角測量の原理で算定するようにした。こ
れを詳述するに、各カメラ21、22の画面上に、図3
(a)(b)に示す如く、前記原点0に対応する中心点
を原点として水平のx軸と垂直のy軸をとると、画面の
x軸座標値とy軸座標値は空間座標系における各カメラ
21、22の投影面Q1、Q2上での原点0からの水平距離
と垂直距離を表わすことになり、円形孔bの中心点Mを
考えると、第1カメラ21の投影面Q1への点Mの投影点
M1が第1カメラ21の画面上の中心点になって、点M1
の原点0からの水平距離と垂直距離は第1カメラ21の
画面上の点M1のx軸座標値x1とy軸座標値y1にな
り、同様に第2カメラ22の投影面Q2への点Mの投影点
M2が第2カメラ22の画面上の中心点になって、点M2
の原点0からの水平距離と垂直距離は第2カメラ22の
画面上の点M2のx軸座標値x2とy軸座標値y2にな
る。そして、点Mに対する第1カメラ21の視線のX−
Z座標面への投影線e1の方程式をx1から求めると共
に、点Mに対する第2カメラ22の視線のX−Z座標面
への投影線e2の方程式をx2から求め、両投影線の交点
として空間座標系における点MのX軸座標値とZ軸座標
値とを算定し、次に両カメラの一方例えば第1カメラ2
1を基準にしてその投影面Q1に平行な前記交点を含む面
と第1カメラ21との間の距離を求め、この距離と、第
1カメラ21とその投影面Q1の間の距離との比をy1に
乗算して点MのY軸座標値を算定する。Both cameras 2 1 , 2 2 have their optical axes 0 1 , 0 2 respectively.
Are arranged so as to cross each other on the horizontal plane as shown in FIG. 2, and the coordinate axes orthogonal to each other on the horizontal plane are the X axis and the Z axis.
Axis, the coordinate axis orthogonal to the horizontal plane is the Y axis, and the center position of the circular hole b in the spatial coordinate system with the origin 0 at the intersection of the optical axes 0 1 and 0 2 is the circular hole on the screen of both cameras 2 1 and 2 2. It was calculated from the center coordinates of the image by the principle of triangulation. To explain this in detail, on the screen of each camera 2 1 , 2 2 ,
As shown in (a) and (b), when the horizontal x-axis and the vertical y-axis are taken with the center point corresponding to the origin 0 as the origin, the x-axis coordinate value and the y-axis coordinate value of the screen are in the spatial coordinate system. The horizontal and vertical distances from the origin 0 on the projection planes Q 1 and Q 2 of the cameras 2 1 and 2 2 are represented, and considering the center point M of the circular hole b, the first camera 2 1 projection surface projection point M 1 of the point M to Q 1 is turned to the center point of the first camera 2 1 screen, the point M 1
The horizontal and vertical distances from the origin 0 of the first camera 2 1 become the x-axis coordinate value x 1 and the y-axis coordinate value y 1 of the point M 1 on the screen of the first camera 2 1 , and similarly the projection plane of the second camera 2 2 The projection point M 2 of the point M on Q 2 becomes the center point on the screen of the second camera 2 2 , and the point M 2
The horizontal distance and the vertical distance from the origin 0 of the point are the x-axis coordinate value x 2 and the y-axis coordinate value y 2 of the point M 2 on the screen of the second camera 2 2 . Then, X- of the line of sight of the first camera 2 1 with respect to the point M
The equation of the projection line e 1 to Z coordinate plane with determined from x 1, equation for a projection line e 2 to X-Z coordinate plane of the second camera 2 2 sight for point M from x 2, both projection The X-axis coordinate value and the Z-axis coordinate value of the point M in the spatial coordinate system are calculated as the intersections of the lines, and then one of the two cameras, for example, the first camera 2
1 based on the calculated distance between the surface and the first camera 2 1 including the intersection parallel to the projection plane Q 1, this distance a, the first camera 2 1 and between the projection plane Q 1 The Y-axis coordinate value of the point M is calculated by multiplying y 1 by the ratio with the distance.
【0008】各カメラ21、22の画面における円形孔b
の像の中心点M1、M2の座標は、円形孔の像の孔縁に合
致する周方向複数箇所の孔縁点の座標から算定される。
本実施例では、先ず円形孔bの画像重心Gを求め、この
重心Gに関してy軸方向に対称な2本のx軸走査線と交
差する4箇所の孔縁点と、重心Gに関してx軸
方向に対称な2本のy軸走査線と交差する4箇所の孔縁
点との計8箇所の孔縁点をピックアップしてそ
の座標を検出し、これら孔縁点の座標から各画面上の円
形孔bの像の中心点M1、M2の座標を算定するものとし
た。A circular hole b on the screen of each camera 2 1 , 2 2.
The coordinates of the center points M 1 and M 2 of the image of 1 are calculated from the coordinates of the hole edge points at a plurality of circumferential positions that match the hole edges of the image of the circular hole.
In the present embodiment, first, the image center of gravity G of the circular hole b is obtained, four hole edge points intersecting with two x-axis scanning lines symmetrical with respect to the center of gravity G in the y-axis direction, and the center of gravity G in the x-axis direction. A total of eight hole edge points including four hole edge points intersecting the two y-axis scanning lines symmetrical to each other are picked up and their coordinates are detected, and the circles on each screen are detected from the coordinates of these hole edge points. The coordinates of the center points M 1 and M 2 of the image of the hole b were calculated.
【0009】ところで、円形孔bの像の孔縁にはノイズ
等による凹凸が現われることがあり、ピックアップした
孔縁点にこのような異常な像の部分に位置する点が含ま
れることを考慮して、以下の手順で中心点M1、M2の座
標を算定するようにした。By the way, considering that the hole edge of the image of the circular hole b may appear uneven due to noise and the like, and the picked-up hole edge point includes a point located in such an abnormal image portion. Then, the coordinates of the center points M 1 and M 2 are calculated by the following procedure.
【0010】先ず、各カメラ21、22の画面上に、円形
孔の像が正常であればその孔縁がエリア内に入るよう
に、上記した円形孔bの画像重心Gを中心にして所定の
環状エリアを設定する。ここで、第1カメラ21はワー
クaに正対するように配置されるため、その画面上の円
形孔bの像は図3(a)に示す如くほぼ円形になり、一
方、第2カメラ22はワークaを斜めから撮像するよう
に配置されるため、その画面上の円形孔bの像は図3
(b)に示す如く楕円形になり、更に、ワークaの遠近
方向の変位による画像の縮小拡大を考慮して、第1カメ
ラ21の画面には図3(a)に仮想線で示す如く円形の
環状エリアを設定し、一方、第2カメラ22の画面には
図3(b)に仮想線で示す如く楕円形の環状エリアを設
定する。そして、各カメラ21、22の画面上の孔縁点の
うち環状エリア外に存する孔縁点は異常な像の部分に位
置する点であると判断して削除する。図3の例では、第
2カメラ21の画面上のの点が削除される。First, if the image of the circular hole is normal on the screens of the cameras 2 1 and 2 2 so that the edge of the hole is within the area, the image center of gravity G of the circular hole b is centered. Set a predetermined ring area. Here, since the first camera 2 1 is arranged so as to face the work a, the image of the circular hole b on the screen becomes substantially circular as shown in FIG. 3A, while the second camera 2 1 2 is arranged so as to image the workpiece a at an angle, the image of the circular hole b on the screen is shown in FIG.
As shown in (b), it becomes elliptical, and in consideration of the reduction and enlargement of the image due to the displacement of the work a in the perspective direction, the screen of the first camera 2 1 is as shown by the phantom line in FIG. A circular ring-shaped area is set, while an elliptical ring-shaped area is set on the screen of the second camera 2 2 as shown by an imaginary line in FIG. Then, among the hole edge points on the screens of the cameras 2 1 and 2 2 , the hole edge points existing outside the annular area are judged to be points located in the abnormal image portion and are deleted. In the example of FIG. 3, points on the screen of the second camera 2 1 are deleted.
【0011】次に、残った孔縁点の座標から画面上の円
形孔bの像を表わす回帰楕円を求める。これを第2カメ
ラ22の画面を例にして説明する。この画面上のの孔
縁点は異常な像の部分からピックアップされており、上
記した環状エリア内に存していても、図4にS′で示す
回帰楕円に対しの孔縁点のずれ量δが大きくなる。そ
こで、回帰楕円に対する各孔縁点のずれ量を回帰楕円の
中心と孔縁点を結ぶ直線上における回帰楕円の交点と孔
縁点との間の距離として算出し、これら孔縁点のずれ量
のうちの最大ずれ量が所定値以上のときは、最大ずれ量
の孔縁点、即ちの孔縁点を削除し、残りの孔縁点の座
標から再度回帰楕円を求める。図示の例では再度求めた
S″の回帰楕円に各孔縁点が合致し、この回帰楕円S″
は円形孔bの正常な像に正確に対応する目標楕円にな
る。尚、2度目に求めた回帰楕円に対する孔縁点の最大
ずれ量が所定値以上のときは、最大ずれ量の孔縁点を削
除して再度回帰楕円を求め、この処理を最大ずれ量が所
定値未満になるまで繰返して目標楕円を求める。ところ
で、孔縁点の数が少なくなると回帰楕円を正確に求めら
れなくなり、そのため孔縁点の数が5個以下になったと
きは計測不能としてその旨を表示する。Next, a regression ellipse representing the image of the circular hole b on the screen is obtained from the coordinates of the remaining hole edge points. This will be described by taking the screen of the second camera 2 2 as an example. The hole edge point on this screen is picked up from the abnormal image portion, and even if it exists in the above-mentioned annular area, the deviation amount of the hole edge point with respect to the regression ellipse shown by S ′ in FIG. δ becomes large. Therefore, the deviation amount of each hole edge point with respect to the regression ellipse is calculated as the distance between the intersection point of the regression ellipse and the hole edge point on the straight line connecting the center of the regression ellipse and the hole edge point, and the deviation amount of these hole edge points. If the maximum displacement amount of the above is greater than or equal to the predetermined value, the hole edge point having the maximum displacement amount, that is, the hole edge point is deleted, and the regression ellipse is obtained again from the coordinates of the remaining hole edge points. In the example shown in the figure, each hole edge point matches the regression ellipse of S ″ obtained again, and this regression ellipse S ″
Is a target ellipse that corresponds exactly to the normal image of the circular hole b. If the maximum deviation amount of the hole edge point with respect to the regression ellipse obtained for the second time is equal to or greater than the predetermined value, the hole edge point with the maximum deviation amount is deleted to obtain the regression ellipse again, and this processing is performed with the maximum deviation amount of the predetermined value. The target ellipse is repeatedly obtained until it becomes less than the value. By the way, when the number of hole edge points becomes small, the regression ellipse cannot be accurately obtained. Therefore, when the number of hole edge points becomes 5 or less, the fact that measurement is impossible is displayed.
【0012】図5(a)のS1は第1カメラ21の画面上
の円形孔の正常な像に対応する目標楕円(像が円であれ
ば円になる)、図5(b)のS2は第2カメラ21の画面
上の円形孔の正常な像に対応する目標楕円であり、第1
カメラ21の画面上の目標楕円S1の中心点M1の座標
(x1、y1)と第2カメラ22の画面上の目標楕円S2の
中心点M2の座標(x2、y2)とから上記の如く空間座
標系における円形孔bの中心点Mの位置を算定する。[0012] S 1 is (a circle if the image is a circle) target ellipse corresponding to the normal image of the circular holes in the first camera 2 1 of the screen of FIG. 5 (a), 5 (b), S 2 is a target ellipse corresponding to a normal image of the circular hole on the screen of the second camera 2 1 ,
Camera 2 1 on the screen of the target ellipse S 1 of the center point M 1 of the coordinates (x 1, y 1) and the second camera 2 2 on the screen of the target ellipse S 2 of the center point M 2 coordinates (x 2, y 2 ) and the position of the center point M of the circular hole b in the spatial coordinate system as described above.
【0013】尚、希ではあるが回帰楕円を繰返し求める
過程で正常な像の部分に位置する孔縁点が削除され、目
標楕円が正常な像に対応しなくなることがある。ところ
で、図5(c)に示す円形孔bの孔縁上の点Nの空間座
標系における位置を、第1カメラ21の画面上で求めた
目標楕円S1上の対応点N1の座標と第2カメラ22の画
面上で求めた目標楕円S2の対応点N2の座標とから三角
測量の原理で算定して、空間座標系における前記中心点
Mからの点Nの距離Lを求めれば、両目標楕円S1、S2
が正常な像にマッチングしている限りこの距離は円形孔
bの半径に等しくなる。Although rare, in the process of repeatedly obtaining the regression ellipse, the hole edge point located in the normal image portion may be deleted, and the target ellipse may not correspond to the normal image. By the way, the position of the point N on the hole edge of the circular hole b shown in FIG. 5C in the spatial coordinate system is the coordinate of the corresponding point N 1 on the target ellipse S 1 obtained on the screen of the first camera 2 1. And the coordinates of the corresponding point N 2 of the target ellipse S 2 obtained on the screen of the second camera 2 2 are calculated by the principle of triangulation, and the distance L of the point N from the center point M in the spatial coordinate system is calculated. If obtained, both target ellipses S 1 , S 2
This distance is equal to the radius of the circular hole b as long as is matched with the normal image.
【0014】そこで、この距離と円形孔bの半径とを比
較して、その差が許容範囲内のときに、上記の如く算定
された中心点Mの位置を円形孔bの正規の中心位置とし
て決定し、許容範囲外のときは計測不能としてその旨を
表示するようにした。Therefore, this distance is compared with the radius of the circular hole b, and when the difference is within the allowable range, the position of the center point M calculated as described above is set as the normal center position of the circular hole b. It was decided, and when it was outside the allowable range, it was displayed that it was impossible to measure.
【0015】尚、円形孔bの孔縁上の点の空間座標を求
めるには、第1カメラ21側の目標楕円S1上と第2カメ
ラ22側の目標楕円S2上とで円形孔bの孔縁上の共通点
に対応する点をピックアップする必要があるが、両カメ
ラ21、22の光軸01、02がX−Z座標面上に位置する
ため、各カメラ21、22の画面上のx軸座標軸と目標楕
円S1、S2との交点は円形孔bの孔縁とX−Z座標面と
の交点に対応する点となり、また、目標楕円S1、S2の
y軸方向の上下の端点は円形孔bの孔縁のY軸方向の上
下の端点に対応する点となり、両目標楕円S1、S2上の
これら何れかの点の座標から空間座標系における円形孔
bの孔縁上の点の位置を算定できる。図5に示す例で
は、両目標楕円S1、S2のy軸方向下端点N1、N2の座
標から空間座標系における円形孔bのY軸方向下端点N
の位置を算定している。また、点Mや点Nの空間座標系
におけるY軸座標値は、第1カメラ21を基準にして点
M1や点N1のy軸座標値から算定できると共に、第2カ
メラ22を基準にして点M2や点N2のy軸座標値からも
算定でき、第1カメラ21を基準にしてY軸座標値を算
定した点Mと点Nとの間の距離と、第2カメラ22を基
準にしてY軸座標値を算定した点Mと点Nとの間の距離
とを夫々円形孔bの半径と比較して、良否判定を行うこ
とが望ましい。[0015] Incidentally, in order to determine the spatial coordinates of a point on the hole edge of the circular hole b, circular in the first camera 2 1 side of the target ellipse S 1 and on the second camera 2 2 side target ellipse S 2 above It is necessary to pick up a point corresponding to the common point on the edge of the hole b, but since the optical axes 0 1 and 0 2 of both cameras 2 1 and 2 2 are located on the XZ coordinate plane, each camera 2 1 , 2 2 is located. The intersections of the x-axis coordinate axes on the screens 2 1 and 2 2 and the target ellipses S 1 and S 2 correspond to the intersections of the hole edges of the circular hole b and the XZ coordinate plane, and the target ellipse S 1 The upper and lower end points of 1 , S 2 in the y-axis direction correspond to the upper and lower end points of the edge of the circular hole b in the Y-axis direction, and the coordinates of any of these points on both target ellipses S 1 , S 2 From this, the position of the point on the edge of the circular hole b in the spatial coordinate system can be calculated. In the example shown in FIG. 5, the Y-axis lower end point N of the circular hole b in the spatial coordinate system is calculated from the coordinates of the y-axis lower end points N 1 and N 2 of both target ellipses S 1 and S 2.
The position of is calculated. Further, the Y-axis coordinate values of the points M and N in the spatial coordinate system can be calculated from the y-axis coordinate values of the points M 1 and N 1 with the first camera 2 1 as a reference, and the second camera 2 2 It can also be calculated from the y-axis coordinate values of the points M 2 and N 2 with reference to the distance between the point M and the point N whose Y-axis coordinate values have been calculated with reference to the first camera 2 1 , and the second It is desirable to compare the distance between the point M and the point N, the Y-axis coordinate values of which are calculated with the camera 2 2 as a reference, with the radius of the circular hole b to make a pass / fail judgment.
【0016】[0016]
【発明の効果】以上の説明から明らかなように、本発明
によれば、円形孔の像の孔縁上の比較的少数の孔縁点の
座標から円形孔の正常な像に対応する回帰楕円を求め
て、円形孔の中心位置を正確に計測でき、多数の孔縁点
の座標を検出記憶する必要がある従来技術に比しデータ
処理が容易になると共に、計測精度が向上する効果を有
する。As is apparent from the above description, according to the present invention, a regression ellipse corresponding to a normal image of a circular hole is obtained from the coordinates of a relatively small number of hole edge points on the hole edge of the image of the circular hole. In addition to being able to accurately measure the center position of the circular hole, the data processing is easier and the measurement accuracy is improved as compared with the conventional technology in which the coordinates of a large number of hole edge points need to be detected and stored. .
【図1】 本発明方法の実施に用いる計測装置の概要を
示す斜視図FIG. 1 is a perspective view showing the outline of a measuring device used for carrying out the method of the present invention.
【図2】 その要部の平面図FIG. 2 is a plan view of the main part.
【図3】 (a)(b)各カメラの画面を示す図3A and 3B are diagrams showing screens of respective cameras.
【図4】 回帰楕円と各孔縁点との関係を示す図FIG. 4 is a diagram showing a relationship between a regression ellipse and each hole edge point.
【図5】 (a)(b)各カメラの画面上で求められる
目標楕円を示す図、(c)目標楕円から算定される空間
座標系における円形孔の中心と孔縁上の点とを示す図5A and 5B are diagrams showing a target ellipse obtained on the screen of each camera, and FIG. 5C is a diagram showing a center of a circular hole and points on a hole edge in a spatial coordinate system calculated from the target ellipse. Figure
a ワーク b 円形孔 21、22 カメラ(撮像手段) 〜 孔縁
点 G 画像重心 S′、S″ 回帰楕円 S1、S2 目標楕円 M1、M2 目標
楕円の中心点 M 円形孔の中心点 N1、N2 目標楕円上
の対応点 N 円形孔の孔縁上の共通点a workpiece b circular hole 2 1, 2 2 camera (imaging means) ~ Anaenten G image centroid S ', S "regression ellipse S 1, S 2 target ellipse M 1, M 2 target ellipse center point M circular hole Center point N 1 , N 2 Corresponding point on target ellipse N Common point on the edge of circular hole
Claims (4)
手段の画面上の円形孔の像の孔縁に合致する周方向複数
箇所の孔縁点の座標に基いて円形孔の中心位置を計測す
る方法において、これら孔縁点の座標から画面上の円形
孔の像を表わす回帰楕円を求めて、この回帰楕円に対す
る各孔縁点のずれ量を算出し、これら孔縁点のずれ量の
うちの最大ずれ量が所定値以上のときは、最大ずれ量の
孔縁点を削除した残りの孔縁点の座標から回帰楕円を求
めることを最大ずれ量が所定値未満になるまで繰返し
て、最大ずれ量が所定値未満になる回帰楕円を円形孔に
対応する画面上の目標楕円として求め、この目標楕円の
中心座標から円形孔の中心位置を算定することを特徴と
する孔位置の計測方法。1. A circular hole formed in a work is imaged, and the center position of the circular hole is determined based on the coordinates of a plurality of hole edge points in the circumferential direction that match the hole edge of the image of the circular hole on the screen of the image pickup means. In the measuring method, a regression ellipse that represents an image of a circular hole on the screen is obtained from the coordinates of these hole edge points, the deviation amount of each hole edge point with respect to this regression ellipse is calculated, and the deviation amount of these hole edge points is calculated. If the maximum amount of deviation is greater than or equal to the predetermined value, the regression ellipse is repeatedly obtained from the coordinates of the remaining hole edge points after deleting the hole edge points of the maximum amount of deviation until the maximum deviation amount is less than the predetermined value. A method for measuring a hole position, characterized in that a regression ellipse whose maximum deviation amount is less than a predetermined value is obtained as a target ellipse on the screen corresponding to the circular hole, and the center position of the circular hole is calculated from the center coordinates of the target ellipse. .
縁点が円形孔の画像重心を基準にして画面上に設定され
る所定の環状エリア内に存するか否かを判別して、エリ
ア外に存する孔縁点を削除しておくことを特徴とする請
求項1に記載の孔位置の計測方法。2. Before determining the first regression ellipse, it is determined whether or not each of the hole edge points exists within a predetermined annular area set on the screen based on the image centroid of the circular hole, The hole position measuring method according to claim 1, wherein the hole edge points existing outside the area are deleted.
の撮像手段により円形孔を撮像し、一方の撮像手段の画
面上の前記目標楕円の中心座標と他方の撮像手段の画面
上の前記目標楕円の中心座標とから空間座標系における
円形孔の中心位置を算定することを特徴とする請求項1
又は2に記載の孔位置の計測方法。3. A circular hole is imaged by two imaging means arranged so that their optical axes are oblique to each other, and the center coordinates of the target ellipse on the screen of one imaging means and the screen of the other imaging means. The center position of the circular hole in the spatial coordinate system is calculated from the center coordinates of the target ellipse above.
Alternatively, the hole position measuring method described in 2).
円の中心座標から算定される空間座標系における円形孔
の中心位置と、両目標楕円上の点であって該両点が円形
孔の孔縁上の共通点に対応するものの座標から算定され
る空間座標系における該共通点の位置とから円形孔の中
心と該共通点との間の距離を求め、この距離と円形孔の
半径とを比較して、その差が許容範囲内のときに前記中
心位置を円形孔の正規の中心位置として決定することを
特徴とする請求項3に記載の孔位置の計測方法。4. The center position of the circular hole in the spatial coordinate system calculated from the center coordinates of the two target ellipses on the screens of the both imaging means, and the points on the two target ellipses, both of which are circular holes. The distance between the center of the circular hole and the common point is obtained from the position of the common point in the spatial coordinate system calculated from the coordinates of the points corresponding to the common point on the hole edge, and this distance and the radius of the circular hole are calculated. The hole position measuring method according to claim 3, wherein the center position is determined as a normal center position of the circular hole when the difference is within an allowable range.
Priority Applications (5)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6797793A JP2689064B2 (en) | 1993-03-26 | 1993-03-26 | Measuring method of hole position |
| GB9325513A GB2276446B (en) | 1993-03-26 | 1993-12-14 | Method of measuring the position of a hole |
| DE4407285A DE4407285C2 (en) | 1993-03-26 | 1994-03-04 | Procedure for measuring the position of a hole |
| FR9403475A FR2703146B1 (en) | 1993-03-26 | 1994-03-24 | Method for measuring the position of a hole. |
| US08/405,450 US5771309A (en) | 1993-03-26 | 1995-03-16 | Method for measuring position of hole |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6797793A JP2689064B2 (en) | 1993-03-26 | 1993-03-26 | Measuring method of hole position |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH06281410A JPH06281410A (en) | 1994-10-07 |
| JP2689064B2 true JP2689064B2 (en) | 1997-12-10 |
Family
ID=13360562
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6797793A Expired - Fee Related JP2689064B2 (en) | 1993-03-26 | 1993-03-26 | Measuring method of hole position |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2689064B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103557760A (en) * | 2013-10-21 | 2014-02-05 | 沈阳黎明航空发动机(集团)有限责任公司 | Method for detecting space small-diameter inclined hole position degree on thin-wall curved surface |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5684550B2 (en) * | 2010-12-03 | 2015-03-11 | 株式会社日立ハイテクノロジーズ | Pattern matching apparatus and semiconductor inspection system using the same |
| JP7382953B2 (en) * | 2018-10-24 | 2023-11-17 | 住友重機械工業株式会社 | Crane system, crane positioning device, and crane positioning method |
-
1993
- 1993-03-26 JP JP6797793A patent/JP2689064B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103557760A (en) * | 2013-10-21 | 2014-02-05 | 沈阳黎明航空发动机(集团)有限责任公司 | Method for detecting space small-diameter inclined hole position degree on thin-wall curved surface |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH06281410A (en) | 1994-10-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3511450B2 (en) | Position calibration method for optical measuring device | |
| US5771309A (en) | Method for measuring position of hole | |
| CN111462253A (en) | Three-dimensional calibration board, system and calibration method suitable for laser 3D vision | |
| JP2907386B1 (en) | Continuous unloader relative position measuring device | |
| JP2018522240A (en) | Method for measuring artifacts | |
| US4755047A (en) | Photometric stereoscopic shape measuring method | |
| JP2689064B2 (en) | Measuring method of hole position | |
| EP1555509A1 (en) | Method and device for determining a coordinate system for an object being measured | |
| JP3095463B2 (en) | 3D measurement method | |
| JP2689070B2 (en) | Measuring method of hole position | |
| JPH09275126A (en) | Wafer bump appearance inspection device and height measurement device | |
| JP3758763B2 (en) | Method for optical measurement of hole position | |
| JP2913370B2 (en) | Optical position measurement method | |
| JP3409875B2 (en) | How to measure hole position | |
| JP2718249B2 (en) | Robot displacement detection device | |
| JP4890904B2 (en) | Component position detection method and apparatus | |
| JP3779118B2 (en) | Method for detecting displacement of camera in imaging apparatus, method for detecting tilt of camera in imaging apparatus, and method for correcting movement amount of camera in imaging apparatus | |
| JPH06258022A (en) | Measuring method of hole position | |
| JPH08110206A (en) | Position and orientation detection method and position and orientation detection device | |
| JPH10105718A (en) | Optical measurement of hole position | |
| JPH0996506A (en) | Position adjustment method using three-dimensional visual sensor and three-dimensional image recognition device | |
| JPH10105721A (en) | Image position detection method | |
| JPH10105720A (en) | Optical measurement of hole position | |
| JP3318882B2 (en) | Optical measuring device and measuring method | |
| JP3013255B2 (en) | Shape measurement method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 11 Free format text: PAYMENT UNTIL: 20080829 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090829 Year of fee payment: 12 |
|
| LAPS | Cancellation because of no payment of annual fees |