JPH04323503A - Image processor - Google Patents

Image processor

Info

Publication number
JPH04323503A
JPH04323503A JP11920391A JP11920391A JPH04323503A JP H04323503 A JPH04323503 A JP H04323503A JP 11920391 A JP11920391 A JP 11920391A JP 11920391 A JP11920391 A JP 11920391A JP H04323503 A JPH04323503 A JP H04323503A
Authority
JP
Japan
Prior art keywords
radius
coordinates
contour
extracted
screw hole
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
JP11920391A
Other languages
Japanese (ja)
Inventor
Katsumi Yamamoto
克己 山本
Tadashi Koyama
小山 正
Yoshitaka Sakamoto
好隆 坂本
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.)
Toyoda Koki KK
Original Assignee
Toyoda Koki KK
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 Toyoda Koki KK filed Critical Toyoda Koki KK
Priority to JP11920391A priority Critical patent/JPH04323503A/en
Publication of JPH04323503A publication Critical patent/JPH04323503A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To calculate an accurate center coordinate by photographing a material having a circular contour, and by choosing only an appropriate data from image information. CONSTITUTION:A coordinate correspondent to the contour of an image data obtained by a photographing device A is extracted by a contour coordinate extraction device B, and a three-point coordinate is extracted from the extracted coordinates correspondent to the contour by a three-point extraction device C. The radius of a circle having the three-point coordinate on the circumference is calculated by a radius calculator E. According to the calculated radius, the appropriateness of the radius of the contour for determining a center coordinate is judged by a radius appropriateness comparator F. While the extracted three points tour around the contour extracted by the contour extraction device B, the extraction of three points, the calculation of radius, and the judgement of the appropriateness of the calculated radius are repeated by a three- point shifting device D, and a center coordinate correspondent to the three-point which is judged as appropriate by the radius fitting comparator F is calculated by center coordinate calculator G. After it is verified that the extracted three points are located on the same radius as that of a circle for calculation, the three points are used for calculation process of the center coordinate, and an accurate center coordinate is thus calculated.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は円形輪郭を有する物体
を撮像し、これを画像処理して前記円形輪郭の中心座標
を求める装置に関する。ここでいう円形輪郭とはワーク
に形成されたねじ穴輪郭等、ワークの外形輪郭のみなら
ず内側の輪郭をも含むものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for capturing an image of an object having a circular contour and processing the image to determine the center coordinates of the circular contour. The circular contour here includes not only the outer contour of the workpiece but also the inner contour, such as the contour of a screw hole formed in the workpiece.

【0002】0002

【従来の技術】対象物の外形輪郭が円形である場合、あ
るいは対象物の表面にねじ穴等の円形輪郭が形成されて
いる場合に、これを撮像して画像処理して円形輪郭の中
心座標を求める装置が開発されている。この装置によっ
て対象物の中心、あるいはねじ穴等の中心座標が求めら
れ、これをロボットに指示することにより、対象物ない
しねじ穴等に対するロボット作業が可能となる。この装
置では撮像された明暗パターンから外形、ねじ穴等の輪
郭に相当する座標を抽出し、抽出された座標値を平均化
して円形輪郭の重心座標を演算し、これを円形輪郭の中
心座標としてロボット等に指示する。
[Prior Art] When the external outline of an object is circular, or when a circular outline such as a screw hole is formed on the surface of the object, this is imaged and image-processed to determine the center coordinates of the circular outline. A device has been developed to determine the This device determines the coordinates of the center of the object or the center of a screw hole, etc., and by instructing the robot to do this, the robot can work on the object, the screw hole, etc. This device extracts the coordinates corresponding to the contours of the external shape, screw holes, etc. from the imaged light-dark pattern, averages the extracted coordinate values, calculates the barycenter coordinates of the circular contour, and uses this as the center coordinates of the circular contour. Give instructions to robots, etc.

【0003】0003

【発明が解決しようとする課題】上記従来の装置でねじ
穴等の円形輪郭中心座標が正確に演算されるためには、
図3(a) のように抽出される輪郭が実際の輪郭に対
応する真円のものでなければならない。しかしながら撮
像時の照明の影響等によってねじ穴の内部が明るかった
り、ねじ穴の周囲に影が生じたりして、ねじ穴とその周
囲との明暗差が必ずしも明確でない場合に、抽出される
輪郭が実際の輪郭形状をそのまま反映した完全な形では
なくなり、図3(b) のように一部が欠けたり、ある
いは図3(c) のように一部がはみ出したりした状態
となることが多い。このため従来の装置によると、算出
された重心座標が円形輪郭の中心座標とならないという
問題があった。本発明の課題は、上記問題を解決するこ
とにある。 すなわち、本発明は撮像して得られる画像データを処理
して円の中心座標を演算するに際し、適正なデータのみ
を選択することによって正確な中心座標を算出するもの
である。
[Problem to be Solved by the Invention] In order to accurately calculate the coordinates of the center of a circular contour of a screw hole, etc. using the above-mentioned conventional device, it is necessary to
The contour extracted as shown in FIG. 3(a) must be a perfect circle corresponding to the actual contour. However, if the inside of the screw hole is bright or a shadow is created around the screw hole due to the influence of lighting during imaging, and the difference in brightness between the screw hole and its surroundings is not necessarily clear, the extracted outline will be The shape is no longer a perfect reflection of the actual contour shape, and often ends up with parts missing, as shown in Figure 3(b), or parts sticking out, as shown in Figure 3(c). For this reason, the conventional apparatus has a problem in that the calculated barycenter coordinates do not correspond to the center coordinates of the circular contour. An object of the present invention is to solve the above problems. That is, the present invention calculates accurate center coordinates by selecting only appropriate data when calculating the center coordinates of a circle by processing image data obtained by imaging.

【0004】上記課題を解決するため、本発明ではその
概念が模式的に図1に示される中心座標演算装置、すな
わち、円形輪郭を有する対象物を撮像して前記円形輪郭
の中心座標を演算する画像処理装置であり、前記対象物
を撮像する撮像装置Aと、この撮像装置Aで得られる画
像データから前記対象物の輪郭に相当する座標を抽出す
る輪郭座標抽出装置Bと、この輪郭座標抽出装置Bで抽
出された前記輪郭相当座標の中から3点の座標を抽出す
る3点抽出装置Cと、前記3点抽出装置Cで抽出された
3点の座標を円周上に有する円の半径を演算する半径演
算装置Eと、前記半径演算装置Eで演算された半径の適
否を所定値との比較により判定する半径適否比較装置F
と、前記3点抽出装置が抽出する新たな抽出3点位置を
前回の抽出3点位置に対してシフトした位置とさせる3
点シフト装置Dと、前記3点シフト装置Dによってシフ
トされる抽出3点が前記輪郭座標抽出装置Bで抽出され
た輪郭相当座標を一周する間に、前記半径適否比較装置
Fで適とされた3点を円周上に有する円の中心座標を演
算し、演算された中心座標を平均処理して前記円形輪郭
の中心座標を演算する中心座標演算装置Gとを備えたこ
とを特徴とする、画像処理装置を創作した。
In order to solve the above-mentioned problems, the present invention provides a center coordinate calculation device whose concept is schematically shown in FIG. An image processing device that is an image capturing device A that captures an image of the object; a contour coordinate extraction device B that extracts coordinates corresponding to the contour of the object from image data obtained by the image capturing device A; a three-point extraction device C that extracts the coordinates of three points from the contour-equivalent coordinates extracted by the device B; and a radius of a circle having the coordinates of the three points extracted by the three-point extraction device C on its circumference. a radius calculation device E that calculates the radius calculation device E; and a radius suitability comparison device F that determines the suitability of the radius calculated by the radius calculation device E by comparing it with a predetermined value.
and the new extraction three-point positions extracted by the three-point extraction device are shifted from the previous extraction three-point positions3.
While the point shift device D and the three extracted points shifted by the three-point shift device D go around the contour-equivalent coordinates extracted by the contour coordinate extraction device B, the radius suitability comparison device F determines that the three points are suitable. It is characterized by comprising a center coordinate calculation device G that calculates the center coordinates of a circle having three points on the circumference, averages the calculated center coordinates, and calculates the center coordinates of the circular contour. Created an image processing device.

【0005】[0005]

【作用】この装置によると、撮像装置Aによって得られ
た画像データから、輪郭座標抽出装置Bによって輪郭に
相当する座標が抽出される。そして、3点抽出装置Cに
よって、抽出された輪郭相当座標の中から3点の座標が
抽出される。半径演算装置Eでは、これら抽出された前
記3点の座標を円周上に有する円の半径が演算される。 そしてこの演算半径が、中心座標を求めようとする輪郭
の半径に適合するか否かが半径適否比較装置Fによって
判定される。3点の抽出、半径の演算、演算された半径
の適否判断は、3点シフト装置Dによって抽出3点が輪
郭抽出装置Bで抽出された輪郭を一周する間繰返され、
この間に中心座標演算装置Gによって、半径適否比較装
置Fで適とされた3点に対する中心座標が演算されたう
えで平均化される。このため本装置によると、中心座標
を求めたい輪郭と同一半径上に存在する3点のみが選択
され、この3点の座標から演算される中心座標のみが平
均処理に用いられることになる。このため画像情報の中
から正しいデータのみが選択され、このデータが平均化
されて正しい中心座標が演算される。
[Operation] According to this device, the coordinates corresponding to the contour are extracted from the image data obtained by the imaging device A by the contour coordinate extraction device B. Then, the three-point extraction device C extracts the coordinates of three points from the extracted contour-equivalent coordinates. The radius calculating device E calculates the radius of a circle having the coordinates of these three extracted points on its circumference. Then, the radius suitability comparison device F determines whether this calculated radius matches the radius of the contour whose center coordinates are to be determined. The extraction of the three points, calculation of the radius, and determination of the suitability of the calculated radius are repeated by the three-point shift device D while the three extraction points go around the contour extracted by the contour extraction device B.
During this time, the center coordinate calculation device G calculates the center coordinates of the three points determined to be suitable by the radius suitability comparison device F, and then averages them. For this reason, according to the present device, only three points existing on the same radius as the contour whose center coordinates are to be determined are selected, and only the center coordinates calculated from the coordinates of these three points are used for averaging processing. Therefore, only correct data is selected from the image information, and this data is averaged to calculate correct center coordinates.

【0006】[0006]

【実施例】以下、本発明の第1実施例を図2〜図5を参
照して説明する。この実施例は図2でIで示すワークに
形成されているねじ穴Hの中心座標を演算する装置であ
り、ねじ穴Hの半径が既知である場合の例を示している
。演算された中心座標はロボット10に送られ、ロボッ
ト10はこのねじ穴にねじを螺合させる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment of the present invention will be described below with reference to FIGS. 2 to 5. This embodiment is an apparatus for calculating the center coordinates of a screw hole H formed in a workpiece indicated by I in FIG. 2, and shows an example in which the radius of the screw hole H is known. The calculated center coordinates are sent to the robot 10, and the robot 10 screws a screw into this screw hole.

【0007】ねじ穴Hが形成されたワークIの上方には
このワークIを撮像するCCDカメラ1が視野を下向き
にして配設されている。CCDカメラ1の視覚画面は縦
横に配列された多数個の画素で構成されており、視覚画
面における各画素の位置を座標点としてそれぞれ取出す
ことができる。また各画素には個々の画素が受ける光の
明暗に対応したレベルの電荷が生じる。視覚画面に表さ
れる画像情報を個々の画素の濃度情報としてCPU2側
へ送出すため、カメラ1はバス3に接続されたインター
フェース4に接続されている。前記CPU2はROM5
及びRAM6と共にバス3に接続されており、これらに
よりカメラ1からの画像情報が処理されてねじ穴Hの中
心座標が演算される。
A CCD camera 1 for taking an image of the work I is disposed above the work I in which the screw hole H is formed, with its field of view facing downward. The visual screen of the CCD camera 1 is composed of a large number of pixels arranged vertically and horizontally, and the position of each pixel on the visual screen can be extracted as a coordinate point. Furthermore, charges are generated in each pixel at a level corresponding to the brightness or darkness of the light that the individual pixel receives. The camera 1 is connected to an interface 4 connected to a bus 3 in order to send the image information represented on the visual screen to the CPU 2 as density information of individual pixels. The CPU2 is ROM5
and RAM 6 are connected to the bus 3, by which image information from the camera 1 is processed and the center coordinates of the screw hole H are calculated.

【0008】ROM5にはカメラ1から送られてくる画
像情報を処理するために実行される種々のプログラム1
01〜112が記憶されている。RAM6には前記プロ
グラム101〜112の実行に際して必要となる種々の
記憶域201〜208が設けられている。さらに、バス
3に接続されたインターフェース7には操作盤8が接続
されており、画像処理される画像情報に応じて適宜変更
して設定されるパラメータ等の設定値が外部から入力さ
れるようになっている。また、バス3にはロボット10
の作業動作を制御するロボットCPU9が接続されてお
り、画像処理して得られたねじ穴Hの中心座標がロボッ
トCPU9に出力されるようになっている。
The ROM 5 stores various programs 1 that are executed to process image information sent from the camera 1.
01 to 112 are stored. The RAM 6 is provided with various storage areas 201-208 necessary for executing the programs 101-112. Furthermore, an operation panel 8 is connected to the interface 7 connected to the bus 3, and setting values such as parameters that are changed and set as appropriate according to the image information to be image processed are inputted from the outside. It has become. Also, robot 10 is on bus 3.
A robot CPU 9 is connected thereto, and the center coordinates of the screw hole H obtained through image processing are output to the robot CPU 9 .

【0009】カメラ1でワークIを撮像すると、ねじ穴
Hとその周囲との明暗差によって画素の濃度差を生じ、
視覚画面にねじ穴Hの画像が表れる。図3(a) は撮
像状態が理想的であって、ねじ穴が正確に撮像される場
合を例示している。この場合には従来方式、すなわち輪
郭座標を平均して重心座標を求めることで中心座標が算
出される。しかしながら、撮像時の照明等の条件によっ
て、ねじ穴Hとその周囲との明暗差が必ずしも明確でな
い場合には、ねじ穴Hとその周囲の濃度差による区別が
はっきりしないため、図3(b) や図3(c)に示す
ように、ねじ穴Hの画像が、円の一部が欠けた画像bや
一部がはみ出した画像cとなる。このようにカメラ1の
視覚画面に撮像された画像は、必ずしも実際のねじ穴H
の円形の輪郭がそのまま鮮明に表れず、不完全な状態の
画像となることが多い。図4は不完全な状態で表れた場
合のねじ穴の画像Gと、実際のねじ穴Hの円形の輪郭と
を重ね合わせて示している。
When the workpiece I is imaged by the camera 1, a difference in pixel density occurs due to the difference in brightness between the screw hole H and its surroundings.
An image of the screw hole H appears on the visual screen. FIG. 3(a) exemplifies a case where the imaging state is ideal and the screw hole is accurately imaged. In this case, the center coordinates are calculated using the conventional method, that is, by averaging the contour coordinates and finding the barycenter coordinates. However, if the difference in brightness between the screw hole H and its surroundings is not necessarily clear due to conditions such as illumination during imaging, the difference in density between the screw hole H and its surroundings will not be clearly distinguished, so the difference in density between the screw hole H and its surroundings will not be clear. As shown in FIG. 3(c), the image of the screw hole H becomes an image b in which a part of the circle is missing, and an image c in which a part of the circle protrudes. The image captured on the visual screen of camera 1 in this way does not necessarily represent the actual screw hole H.
The circular outline of the image is often not clearly visible, resulting in an incomplete image. FIG. 4 shows an image G of the screw hole appearing in an incomplete state and a circular outline of the actual screw hole H superimposed.

【0010】さて、ねじ穴Hの中心位置hは、ねじ穴H
の円形の輪郭上の任意の3点a1 〜a3 から算出す
ることができる。これは円の中心点がその円に内接する
三角形の各辺の垂直二等分線の交点と一致することから
も理解される。これに対し、例えばねじ穴の画像Gの輪
郭のうち、実際のねじ穴Hの輪郭から外れた位置の3点
b1 〜b3 ではこれら3点b1 〜b3 を円周上
に有する円gが実際のねじ穴Hの輪郭とは半径も中心位
置も相違するため、ねじ穴Hの正しい中心位置を算出す
ることができない。そこで、カメラ1で撮像して得られ
る画像から実際のねじ穴Hの輪郭位置に相当する点を選
び出してねじ穴の中心位置を算出するため以下の処理が
行なわれる。
Now, the center position h of the screw hole H is
It can be calculated from any three points a1 to a3 on the circular contour. This can also be understood from the fact that the center point of a circle coincides with the intersection of the perpendicular bisectors of each side of the triangle inscribed in the circle. On the other hand, for example, in the outline of the image G of a screw hole, at three points b1 to b3 located outside the outline of the actual screw hole H, a circle g having these three points b1 to b3 on the circumference is actually Since both the radius and the center position are different from the outline of the screw hole H, the correct center position of the screw hole H cannot be calculated. Therefore, the following processing is performed to select points corresponding to the outline position of the actual screw hole H from the image obtained by capturing the image with the camera 1 and calculate the center position of the screw hole.

【0011】まず、図5のステップS1でカウンタ記憶
域207のカウンタKがゼロクリアされた後、ステップ
S2において、カメラ1の視覚画面に撮像された画像が
個々の画素の濃度情報として入力され、ステップS3に
移行する。ステップS3においては、画像情報2値化プ
ログラム101が実行され、ステップS2で入力された
各画素の濃度情報が閾値と比較され、画素の濃度情報を
閾値以上の濃度レベル群と閾値以下の濃度レベル群との
2群に分ける2値化処理が行なわれる。2値化処理の基
準となる閾値にはねじ穴の画像を構成している部分の画
素群の濃度と、ねじ穴の画像以外の部分の画素群の濃度
とのほぼ中間の濃度レベル値が採用されている。従って
、閾値で2値化することによりねじ穴の画像の部分がそ
れ以外の部分から分別される。そして、ねじ穴の画像の
部分の画素群は閾値以下の濃度レベル側に2値化処理さ
れるので、ステップS4において、閾値以下の濃度レベ
ル側に処理された画像についてその画素の視覚画面にお
ける位置を示す座標が2値化画像データ記憶域201に
記憶される。
First, after the counter K in the counter storage area 207 is cleared to zero in step S1 in FIG. Move to S3. In step S3, the image information binarization program 101 is executed, and the density information of each pixel input in step S2 is compared with a threshold, and the density information of the pixel is divided into a group of density levels above the threshold and a group of density levels below the threshold. Binarization processing is performed to divide the data into two groups. The threshold value used as the standard for the binarization process is a density level value that is approximately midway between the density of the pixel group in the part that makes up the image of the screw hole and the density of the pixel group in the part other than the image of the screw hole. has been done. Therefore, by binarizing using a threshold value, the portion of the image of the screw hole is separated from the other portions. Then, since the pixel group in the image of the screw hole is binarized to the density level side below the threshold value, in step S4, the position of the pixel on the visual screen for the image processed to the density level side below the threshold value. The coordinates indicating the are stored in the binarized image data storage area 201.

【0012】次にステップS5において、ステップS2
〜S4までの処理が全部の画素について行なわれたか否
かが判定され、未処理の画素がある場合にはステップS
5の判定はNOとなり、未処理の画素についてステップ
S2〜S4が繰返される。全部の画素についてステップ
S4までの処理が終了すると、ステップS5の判定はY
ESとなり、ステップS6に移行する。
Next, in step S5, step S2
It is determined whether or not the processing up to S4 has been performed for all pixels, and if there are unprocessed pixels, step S4 is performed.
5 is NO, and steps S2 to S4 are repeated for unprocessed pixels. When the processing up to step S4 is completed for all pixels, the determination in step S5 is Y.
ES, and the process moves to step S6.

【0013】ステップS6においては、連続判別プログ
ラム102が実行され、ステップS4の処理で2値化画
像データ記憶域201に記憶されたねじ穴に対応する濃
度レベルの画素について、このねじ穴を示す画素どうし
が互いに連続しているか否かが判別される。ねじ穴の画
像の内側部分であれば、x軸方向にもy軸方向にもねじ
穴に対応する濃度レベルの画素が連続しているが、ねじ
穴の画像の輪郭部分を示す画素であれば、そこで濃度レ
ベルが変化しているのでx軸方向又はy軸方向のいずれ
かの方向で連続していないことから、ねじ穴の画像を示
す画素のうちで輪郭部分に相当する画素の座標が抽出さ
れて輪郭座標記憶域202に記憶される。
[0013] In step S6, the continuity discrimination program 102 is executed, and for the pixels of the density level corresponding to the screw hole stored in the binarized image data storage area 201 in the process of step S4, the pixel indicating this screw hole is selected. It is determined whether or not they are continuous with each other. If it is an inner part of the image of a screw hole, pixels with density levels corresponding to the screw hole are continuous in both the x-axis direction and the y-axis direction, but if it is a pixel that shows the outline of the image of the screw hole, , since the density level is changing and it is not continuous in either the x-axis direction or the y-axis direction, the coordinates of the pixel corresponding to the outline part among the pixels representing the image of the screw hole are extracted. and stored in the contour coordinate storage area 202.

【0014】なおこの処理にかえて画像の濃度情報を微
分して濃度が急変する領域を抽出し、これから輪郭に相
当する座標を抽出してもよい。なお、連続性を判別する
ことにより、ねじ穴の画像を示す座標相互間の位置関係
が明らかになるので、複数個のねじ穴Hが撮像された場
合には各ねじ穴の画像についての輪郭相当座標が他のね
じ穴の画像の輪郭相当座標と区別して抽出される。
Note that instead of this processing, the density information of the image may be differentiated to extract a region where the density suddenly changes, and coordinates corresponding to the contour may be extracted from this. Note that by determining the continuity, the positional relationship between the coordinates showing the images of the screw holes becomes clear, so if multiple screw holes H are imaged, the contour equivalent of the image of each screw hole is determined. The coordinates are extracted separately from the contour-equivalent coordinates of images of other screw holes.

【0015】次に、ステップS7において第1パラメー
タ設定プログラム103、第2パラメータ設定プログラ
ム104、第3パラメータ(ΔR)設定プログラム10
5、及び既知半径(R)設定プログラム106が実行さ
れ、第1パラメータ、第2パラメータ、第3パラメータ
(ΔR)、及び既知半径(R)が操作盤8からの入力操
作によって設定されるとともに、各設定値が第1パラメ
ータ記憶域203、第2パラメータ記憶域204、第3
パラメータ(ΔR)記憶域205及び既知半径(R)記
憶域206にそれぞれ記憶され、ステップS8に移行す
る。
Next, in step S7, the first parameter setting program 103, the second parameter setting program 104, and the third parameter (ΔR) setting program 10 are executed.
5, and the known radius (R) setting program 106 is executed, and the first parameter, second parameter, third parameter (ΔR), and known radius (R) are set by input operation from the operation panel 8, Each set value is stored in the first parameter storage area 203, the second parameter storage area 204, and the third parameter storage area 203.
The parameters are stored in the parameter (ΔR) storage area 205 and the known radius (R) storage area 206, and the process moves to step S8.

【0016】ステップS8においては、3点抽出プログ
ラム107が実行され、ステップS6の処理で輪郭座標
記憶域202に記憶されたねじ穴の輪郭相当座標の中か
ら3点の座標がステップS7で設定した第1パラメータ
及び第2パラメータに基づいて抽出される。ここで第1
パラメータは3点の座標相互の抽出間隔を定めるもので
あり、第2パラメータは別の3点の座標を第1パラメー
タに基づいて抽出する際に、その抽出位置を前回の抽出
位置に対してシフトさせる量を定めるものである。例え
ば図4において、3点の座標m1 ,m2 ,m3 が
抽出された場合にはm1 −m2 間及びm2 −m3
間の各抽出間隔が第1パラメータP1 で定められてい
る。そして、この次に抽出される3点の座標n1 ,n
2 ,n3 では座標n1が前回抽出した座標m1 に
対して第2パラメータP2 で定められた位置までシフ
トされるとともに、n1 −n2 間及びn2 −n3
 間の各抽出間隔が第1パラメータP1 で定められて
いる。こうして、輪郭相当座標の中から別の3点の座標
が次々に抽出される。
In step S8, the three-point extraction program 107 is executed, and the coordinates of three points are set in step S7 from among the coordinates corresponding to the contour of the screw hole stored in the contour coordinate storage area 202 in the process of step S6. Extracted based on the first parameter and the second parameter. Here the first
The parameter determines the extraction interval between the coordinates of three points, and the second parameter shifts the extraction position relative to the previous extraction position when extracting the coordinates of another three points based on the first parameter. This determines the amount of For example, in Fig. 4, if the coordinates of three points m1, m2, m3 are extracted, the coordinates between m1 - m2 and m2 - m3
Each extraction interval in between is determined by a first parameter P1. Then, the coordinates of the next three points extracted n1, n
2, n3, the coordinate n1 is shifted to the position determined by the second parameter P2 with respect to the previously extracted coordinate m1, and the coordinates n1 and n2 are shifted to the position determined by the second parameter P2.
Each extraction interval in between is determined by a first parameter P1. In this way, the coordinates of three other points are extracted one after another from among the contour-equivalent coordinates.

【0017】ステップS8で3点の座標が抽出された後
には、ステップS9においてその3点の抽出位置が最初
の抽出位置からねじ穴の画像の輪郭を一周したか否かが
判定され、一周していない場合には判定はYESとなり
、ステップS10に移行する。ステップS10において
は、半径演算プログラム108及び中心演算プログラム
109が実行され、ステップS8で抽出された3点の座
標を円周上に有する円の半径Ri及びその円の中心座標
(Xi,Yi)がそれぞれ演算される。即ち、上述した
ようにステップS8で抽出された3点より円の中心座標
(Xi,Yi)が演算され、この中心座標(Xi,Yi
)と前記3点中の1点との距離から半径Riが演算され
る。
After the coordinates of the three points are extracted in step S8, it is determined in step S9 whether or not the extraction positions of the three points have gone around the outline of the image of the screw hole from the first extraction position. If not, the determination is YES and the process moves to step S10. In step S10, the radius calculation program 108 and the center calculation program 109 are executed, and the radius Ri of the circle having the coordinates of the three points extracted in step S8 on the circumference and the center coordinates (Xi, Yi) of the circle are calculated. Each is calculated. That is, as described above, the center coordinates (Xi, Yi) of the circle are calculated from the three points extracted in step S8, and the center coordinates (Xi, Yi) are calculated from the three points extracted in step S8.
) and one of the three points, the radius Ri is calculated.

【0018】続いて、ステップS11において、半径比
較プログラム110が実行され、ステップS10で算出
された半径Riの大きさについてステップS7で設定さ
れた第3パラメータ(ΔR)及び既知半径(R)による
比較判定が行なわれる。ここで、既知半径(R)はねじ
穴Hの半径であり、第3パラメータ(ΔR)は既知半径
(R)の許容誤差値である。
Next, in step S11, the radius comparison program 110 is executed, and the size of the radius Ri calculated in step S10 is compared using the third parameter (ΔR) set in step S7 and the known radius (R). A judgment is made. Here, the known radius (R) is the radius of the screw hole H, and the third parameter (ΔR) is the allowable error value of the known radius (R).

【0019】前述したように、ねじ穴の画像の輪郭相当
座標の中から抽出した3点の座標のすべてが実際のねじ
穴Hの輪郭上に位置する座標である場合には、その3点
の座標を円周上に有する円の半径Riの大きさがねじ穴
Hの半径Rと一致するが、3点の座標の中に実際のねじ
穴Hの輪郭から外れた位置の座標が含まれる場合には、
半径Riの大きさがねじ穴Hの半径Rとは一致しなくな
るので、半径Riが実際のねじ穴Hの半径Rの誤差範囲
内の大きさか否かを判定することにより、実際のねじ穴
Hの輪郭に相当する座標のみを選び出すことができる。
As mentioned above, if all of the coordinates of the three points extracted from the contour-equivalent coordinates of the image of the screw hole are coordinates located on the actual contour of the screw hole H, the coordinates of the three points are When the size of the radius Ri of the circle having the coordinates on the circumference matches the radius R of the screw hole H, but the coordinates of the three points include coordinates of a position that is outside the actual outline of the screw hole H. for,
Since the radius Ri does not match the radius R of the screw hole H, the actual screw hole H can be determined by determining whether the radius Ri is within the error range of the radius R of the actual screw hole H. Only the coordinates corresponding to the contour of can be selected.

【0020】演算半径Riの大きさがねじ穴Hの半径R
の誤差範囲内である場合、すなわちステップS8で抽出
した3点の座標が実際のねじ穴Hの輪郭上に位置する場
合にはステップS11の判定はYESとなり、ステップ
S12でカウントプログラム11が実行され、カウンタ
記憶域207のカウンタKに1が加算された後、ステッ
プS13に移行する。ステップS13においては中心座
標更新プログラム112が実行され、ステップS10で
算出された中心座標(Xi,Yi)が中心座標(Xs,
Ys)の更新のために採用される。
The size of the calculated radius Ri is the radius R of the screw hole H.
If the coordinates of the three points extracted in step S8 are within the error range of , that is, if the coordinates of the three points extracted in step S8 are located on the outline of the actual screw hole H, the determination in step S11 is YES, and the counting program 11 is executed in step S12. , 1 is added to the counter K in the counter storage area 207, and then the process moves to step S13. In step S13, the center coordinate update program 112 is executed, and the center coordinates (Xi, Yi) calculated in step S10 are changed to the center coordinates (Xs,
Ys) is adopted for updating.

【0021】即ち、中心座標(Xs,Ys)はステップ
S11の判定がYESのものの全部について、ステップ
S10で算出された中心座標(Xi,Yi)の平均値を
算出することにより更新され、今回のステップS10の
処理で算出された中心座標(Xi,Yi)を含めて、新
たに平均化処理された中心座標(Xs,Ys)が中心座
標記憶域208に記憶される。ステップS13の処理が
終了すればステップS8に移行し、ねじ穴の画像の輪郭
相当座標の中から前回とは別の3点の座標が抽出される
That is, the center coordinates (Xs, Ys) are updated by calculating the average value of the center coordinates (Xi, Yi) calculated in step S10 for all the cases where the determination in step S11 is YES. The newly averaged center coordinates (Xs, Ys) including the center coordinates (Xi, Yi) calculated in step S10 are stored in the center coordinate storage area 208. When the process of step S13 is completed, the process moves to step S8, and coordinates of three points different from the previous time are extracted from among the contour-equivalent coordinates of the image of the screw hole.

【0022】ステップS11で半径Riの大きさがねじ
穴Hの半径Rの誤差範囲内でない場合、すなわち3点の
座標の中に実際のねじ穴Hの輪郭から外れた位置の座標
が含まれる場合には判定はNOとなってステップS8に
移行し、今回のステップS10の処理で算出された中心
座標(Xi,Yi)はステップS13での中心座標(X
s,Ys)の更新には採用されない。
[0022] In step S11, if the size of the radius Ri is not within the error range of the radius R of the screw hole H, that is, if the coordinates of the three points include coordinates of a position outside the actual contour of the screw hole H. The determination is NO and the process moves to step S8, and the center coordinates (Xi, Yi) calculated in the process of step S10 this time are the center coordinates (X
s, Ys) is not adopted for updating.

【0023】ステップS8で3点の座標の抽出が繰返さ
れて、最初の抽出位置からねじ穴の画像の輪郭上を一周
する位置まで抽出位置がシフトされたときには、ステッ
プS9の判定はNOとなり、ステップS14で中心座標
記憶域208に記憶されている中心座標(Xs,Ys)
がねじ穴Hの中心位置(X,Y)として、ロボットCP
U9に出力されて全ての処理が終了する。そして、検出
されたねじ穴の中心位置(X,Y)に基づくロボットC
PU9からの指令によってロボット10の動作が制御さ
れ、ワークIのねじ穴Hにねじが取付けられる。
When the extraction of the coordinates of the three points is repeated in step S8 and the extraction position is shifted from the first extraction position to a position that goes around the outline of the image of the screw hole, the determination in step S9 becomes NO. Center coordinates (Xs, Ys) stored in the center coordinate storage area 208 in step S14
is the center position (X, Y) of the screw hole H, and the robot CP
It is output to U9 and all processing ends. Then, the robot C based on the detected center position (X, Y) of the screw hole
The operation of the robot 10 is controlled by commands from the PU 9, and a screw is attached to the screw hole H of the workpiece I.

【0024】本例によれば、カメラ1で撮像された画像
から実際のねじ穴Hの輪郭に相当する座標を選び出して
ねじ穴Hの中心位置を算出することができるので、撮像
時の照明の影響等のためにねじ穴Hの画像が必ずしも完
全な状態で得られない場合でも、ねじ穴Hの中心位置を
正確に検出することができる。またこの実施例の場合、
穴が二重に存在しているようなケース、例えばねじ貫通
穴の底部に実際のねじ穴が存在している場合には、ねじ
貫通穴の輪郭座標から算出される中心座標はステップS
11の判定により除外して実際のねじ穴の輪郭座標から
算出される中心座標のみが抽出されてねじ穴の中心座標
が演算される。このため従来の処理方式では誤演算の可
能性が高かった場合にも正確な中心座標が演算される。
According to this example, since the center position of the screw hole H can be calculated by selecting the coordinates corresponding to the outline of the actual screw hole H from the image taken by the camera 1, the illumination at the time of image sensing can be calculated. Even if the image of the screw hole H cannot necessarily be obtained in a perfect state due to influences or the like, the center position of the screw hole H can be accurately detected. Also, in this example,
In the case where there are two holes, for example, when there is an actual screw hole at the bottom of the screw through hole, the center coordinates calculated from the contour coordinates of the screw through hole are calculated in step S.
Only the center coordinates calculated from the actual outline coordinates of the screw hole are extracted and the center coordinates of the screw hole are calculated. Therefore, in the conventional processing method, accurate center coordinates are calculated even when there is a high possibility of erroneous calculation.

【0025】次に、本発明の第2実施例につき、図6〜
図8を参照しつつ、第1実施例と同様の部分についての
説明は省略し、異なる部分について述べる。本例の装置
は大きさが不明なねじ穴の中心座標を演算できるもので
ある。ROM5Aには第1実施例と同様のプログラム1
01A〜108Aの他に、ねじ穴Hの大きさが不明な場
合の処理のために実行されるプログラム301〜305
が記憶され、RAM6Aには第1実施例と同様の記憶域
201A〜204Aの他に、前記プログラム301〜3
05の実行の際に必要となる記憶域401〜403が設
けられている。
Next, regarding the second embodiment of the present invention, FIGS.
With reference to FIG. 8, descriptions of parts similar to those in the first embodiment will be omitted, and parts that are different will be described. The device of this example is capable of calculating the center coordinates of a screw hole whose size is unknown. Program 1 similar to the first embodiment is stored in ROM5A.
In addition to 01A to 108A, programs 301 to 305 are executed for processing when the size of the screw hole H is unknown.
are stored in the RAM 6A, in addition to the storage areas 201A to 204A similar to those in the first embodiment, the programs 301 to 3 are stored in the RAM 6A.
Storage areas 401 to 403 necessary for executing 05 are provided.

【0026】第1実施例と同様のステップS10A(図
7参照)までの処理により、ねじ穴の画像の輪郭相当座
標の中から抽出した3点の座標を円周上に有する円の半
径Ri及び中心座標(Xi,Yi)が算出された後、ス
テップS101に移行する。ただし、上述したステップ
S7においては第3パラメータ(ΔR)、既知半径(R
)が設定されたのに対し、ステップS7Aにおいては後
述する最低頻度(T)が設定される。ステップS101
においては、半径分類プログラム301が実行され、ス
テップS10Aで算出された半径Riの大きさにより、
ステップS10Aで算出された中心座標(Xi,Yi)
の分類が行なわれる。ここでは半径についてΔR毎の大
きさに設けられた分類区分…Rj−1 ,Rj ,Rj
+1 …のうち、半径Riが該当する区分Rj毎に中心
座標(Xi,Yi)が分類される。図8は上記処理によ
り得られる半径Riによる分類の一例を示すものである
Through the processing up to step S10A (see FIG. 7) similar to the first embodiment, the radius Ri and After the center coordinates (Xi, Yi) are calculated, the process moves to step S101. However, in step S7 mentioned above, the third parameter (ΔR), the known radius (R
) is set, whereas in step S7A, the lowest frequency (T), which will be described later, is set. Step S101
In , the radius classification program 301 is executed, and based on the size of the radius Ri calculated in step S10A,
Center coordinates (Xi, Yi) calculated in step S10A
A classification is performed. Here, the classification divisions provided for the size of the radius for each ΔR...Rj-1, Rj, Rj
+1..., the center coordinates (Xi, Yi) are classified for each division Rj to which the radius Ri corresponds. FIG. 8 shows an example of classification based on the radius Ri obtained by the above processing.

【0027】次に、ステップS102でカウンタプログ
ラム302が実行され、半径分類毎のカウンタ記憶域4
01に各分類区分に対応して設けられたカウンタのうち
、ステップS101の処理で該当した分類区分のカウン
タに1が加算された後、ステップS103に移行する。 ステップS103においては、中心座標更新プログラム
303が実行され、ステップS101の処理で該当した
区分の中心座標(Xj,Yj)について、その区分内に
分類されていた今までの中心座標の平均値(Xj,Yj
)と、今回のステップS10Aの処理で算出された中心
座標(Xi,Yi)を平均化処理して更新が行なわれ、
新たに算出された中心座標(Xj,Yj)が半径分類毎
の中心座標記憶域402に他の分類区分についての中心
座標とは区別して記憶される。ステップS103の処理
が終了すればステップS8Aに移行し、別の3点の座標
が抽出され、ステップS9A〜ステップS103が繰返
される。
Next, in step S102, the counter program 302 is executed, and the counter storage area 4 for each radius classification is
After 1 is added to the counter of the corresponding classification section in the process of step S101 among the counters provided corresponding to each classification section. In step S103, the center coordinate update program 303 is executed, and for the center coordinates (Xj, Yj) of the corresponding section in the process of step S101, the average value (Xj ,Yj
) and the center coordinates (Xi, Yi) calculated in the process of step S10A this time are averaged and updated,
The newly calculated center coordinates (Xj, Yj) are stored in the center coordinate storage area 402 for each radius classification separately from the center coordinates for other classification sections. When the process of step S103 is completed, the process moves to step S8A, the coordinates of another three points are extracted, and steps S9A to S103 are repeated.

【0028】ステップS8Aでの3点抽出がねじ穴の画
像の輪郭上を一周するまで繰返され、ステップS9Aで
NOと判定されると、ステップS104に移行し、半径
分類毎のカウンタ記憶域401の各カウンタに係数され
たカウント数k0 ,k1 …knを合計した総カウン
ト数Kが算出された後、ステップS105に移行する。 ステップS105においては、半径頻度比較プログラム
304が実行され、各カウンタのカウント数kjがカウ
ント数の最低頻度K・Tと比較判定される。ここで、最
低頻度(T)は上述したようにステップS7Aで最低頻
度設定プログラム305が実行されることにより設定さ
れ、最低頻度記憶域403に記憶されたものであり、T
=0.8〜0.9程度の値が採用される。
[0028] The extraction of three points in step S8A is repeated until the outline of the image of the screw hole is circled once, and if the determination is NO in step S9A, the process moves to step S104, and the counter storage area 401 for each radius classification is After the total count number K, which is the sum of the count numbers k0, k1 . . . kn factored into each counter, is calculated, the process moves to step S105. In step S105, the radius frequency comparison program 304 is executed, and the count number kj of each counter is compared and determined with the lowest count frequency K.T. Here, the lowest frequency (T) is set by executing the lowest frequency setting program 305 in step S7A as described above, and is stored in the lowest frequency storage area 403, and T
A value of approximately 0.8 to 0.9 is adopted.

【0029】ねじ穴の画像の輪郭相当座標の中から抽出
した3点の座標によって定まる円の半径Riについて、
所定の大きさの半径Riが顕著に多く算出される場合、
すなわちねじ穴の画像の輪郭相当座標が所定の大きさの
円周上に集中している場合には、その円周上に実際のね
じ穴Hの輪郭位置を示す座標が存在すると判断できる。 このことはねじ穴Hの大きさが既知であるか、不明であ
るかに関係なく判断できるので、本例ではねじ穴の画像
の輪郭相当座標の中から実際のねじ穴Hの輪郭位置を示
す座標を取出すため、半径Riの大きさで分類した各区
分のカウント数kj、すなわち各区分の大きさの半径R
jの算出回数が総カウント数K、すなわち総算出回数に
対して許容できる最低頻度(T)よりも多いか否かが判
定される。
Regarding the radius Ri of the circle determined by the coordinates of three points extracted from the contour-equivalent coordinates of the image of the screw hole,
When the radius Ri of a predetermined size is calculated significantly more,
That is, when the contour-equivalent coordinates of the screw hole image are concentrated on the circumference of a predetermined size, it can be determined that coordinates indicating the actual contour position of the screw hole H exist on the circumference. This can be determined regardless of whether the size of the screw hole H is known or unknown, so in this example, the actual contour position of the screw hole H is shown from the contour equivalent coordinates of the screw hole image. In order to extract the coordinates, the count number kj of each division classified by the size of the radius Ri, that is, the radius R of the size of each division
It is determined whether the number of calculations of j is greater than the total count number K, that is, the minimum frequency (T) allowable for the total number of calculations.

【0030】従って、カウンタのカウント数kjがカウ
ント数の最低頻度K・Tに達していなければ、実際のね
じ穴Hの輪郭位置を示す座標を取出せないため、ステッ
プS105の判定はNOとなり、ステップS106で別
の分類区分のカウンタに替えられた後、ステップS10
5に戻ってそのカウント数kjが最低頻度K・Tと比較
される。そして、比較したカウント数kjが最低頻度K
・Tを越えていると、その区分から実際のねじ穴Hの輪
郭位置を示す座標を取出すことができるので、ステップ
S105の判定はYESとなり、そのカウンタに対応す
る分類区分の中心座標(Xj,Yj)がステップS10
7でねじ穴Hの中心座標(X,Y)とされて全ての処理
が終了する。
Therefore, unless the count number kj of the counter has reached the minimum frequency K·T of the count number, the coordinates indicating the actual contour position of the screw hole H cannot be extracted, so the determination in step S105 is NO, and the step After the counter is changed to another classification category in S106, the counter in step S10
Returning to step 5, the count number kj is compared with the lowest frequency K.T. Then, the compared count number kj is the lowest frequency K
- If T is exceeded, the coordinates indicating the actual contour position of the screw hole H can be extracted from that division, so the determination in step S105 is YES, and the center coordinates (Xj, Yj) in step S10
At step 7, the center coordinates (X, Y) of the screw hole H are determined, and all processing ends.

【0031】本例によれば、ねじ穴Hの大きさが不明な
場合でも、ねじ穴の画像の輪郭相当座標の中から実際の
ねじ穴Hの輪郭位置に対応する座標を取出して、ねじ穴
Hの中心位置を正確に算出することができる。第1実施
例では、中心座標を求めたい円の半径が既知であるため
に、半径適否比較装置Fではその既知半径がそのまま利
用される。これに対して、第2実施例では円の半径が未
知であるために処理前には正しい3点が抽出されている
か否かが判別できない。そこでこの実施例では抽出され
た半径が最低頻度以上表れるものを適正半径とし、これ
を半径適否比較装置Fで比較参照値として用いる。いず
れの実施例による場合も、抽出された3点が算出したい
円と同一半径上に位置していることが確認された後に中
心座標の演算処理に用いられることから、誤ったデータ
に基づいた処理がなされず、正確な中心座標が演算され
る。
According to this example, even if the size of the screw hole H is unknown, the coordinates corresponding to the actual contour position of the screw hole H are extracted from among the coordinates corresponding to the contour of the image of the screw hole, and the screw hole is determined. The center position of H can be calculated accurately. In the first embodiment, since the radius of the circle whose center coordinates are to be determined is known, the radius suitability comparison device F uses the known radius as is. On the other hand, in the second embodiment, since the radius of the circle is unknown, it is not possible to determine whether the correct three points have been extracted before processing. Therefore, in this embodiment, the extracted radius that appears more frequently than the minimum frequency is set as the appropriate radius, and the radius suitability comparison device F uses this as a reference value for comparison. In any of the embodiments, the three extracted points are used to calculate the center coordinates after it is confirmed that they are located on the same radius as the circle to be calculated, so processing based on incorrect data may occur. is not performed, and accurate center coordinates are calculated.

【0032】[0032]

【発明の効果】本発明によれば、必ずしも完全な状態の
画像が得られなくとも画像データの中から中心を求めよ
うとする円周上に位置する適正な座標を選び出して、円
の中心座標を正確に算出することができるので、特に撮
像条件を適切にとり難く、明確な画像が得られ難い対象
について有効である。
[Effects of the Invention] According to the present invention, even if an image in a perfect state is not necessarily obtained, appropriate coordinates located on the circumference of the circle whose center is to be found from image data are selected, and the center coordinates of the circle are determined. can be calculated accurately, so it is particularly effective for objects for which it is difficult to set appropriate imaging conditions and for which it is difficult to obtain a clear image.

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

【図1】本発明の概念を模式的に示す図である。FIG. 1 is a diagram schematically showing the concept of the present invention.

【図2】本発明の第1実施例の装置全体の構成を示す図
である。
FIG. 2 is a diagram showing the overall configuration of the device according to the first embodiment of the present invention.

【図3】ねじ穴の画像例を示す図である。FIG. 3 is a diagram showing an example of an image of a screw hole.

【図4】ねじ穴とそのねじ穴の画像とを重ね合わせた状
態で示す図である。
FIG. 4 is a diagram showing a screw hole and an image of the screw hole in a superimposed state.

【図5】本発明の第1実施例の装置における処理を示す
フローチャートである。
FIG. 5 is a flowchart showing processing in the apparatus according to the first embodiment of the present invention.

【図6】本発明の第2実施例の装置全体の構成を示す図
である。
FIG. 6 is a diagram showing the overall configuration of an apparatus according to a second embodiment of the present invention.

【図7】本発明の第2実施例の装置における処理を示す
フローチャートである。
FIG. 7 is a flowchart showing processing in an apparatus according to a second embodiment of the present invention.

【図8】本発明の第2実施例の装置における処理の一例
を示すヒストグラムである。
FIG. 8 is a histogram showing an example of processing in the apparatus according to the second embodiment of the present invention.

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

1,1A  カメラ 2,2A  CPU 5,5A  ROM 6,6A  RAM H  ねじ穴 1,1A camera 2,2A CPU 5,5A ROM 6,6A RAM H Screw hole

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  円形輪郭を有する対象物を撮像して画
像処理して前記円形輪郭の中心座標を演算する画像処理
装置であり、前記対象物を撮像する撮像装置と、この撮
像装置で得られる画像データから前記対象物の輪郭に相
当する座標を抽出する輪郭座標抽出装置と、この輪郭座
標抽出装置で抽出された前記輪郭相当座標の中から3点
の座標を抽出する3点抽出装置と、前記3点抽出装置で
抽出された3点の座標を円周上に有する円の半径を演算
する半径演算装置と、前記半径演算装置で演算された半
径の適否を所定値との比較により判定する半径適否比較
装置と、前記3点抽出装置が抽出する新たな3点位置を
前回の抽出3点位置に対してシフトした位置とさせる3
点シフト装置と、前記3点シフト装置によってシフトさ
れる抽出3点が前記輪郭座標抽出装置で抽出された輪郭
相当座標を一周する間に、前記半径適否比較装置で適と
された3点を円周上に有する円の中心座標を演算し、演
算された中心座標を平均処理して前記円形輪郭の中心座
標を演算する中心座標演算装置、とを備えたことを特徴
とする、画像処理装置。
1. An image processing device that images an object having a circular contour and performs image processing to calculate center coordinates of the circular contour, comprising: an imaging device that images the object; a contour coordinate extraction device that extracts coordinates corresponding to the contour of the object from image data; a three-point extraction device that extracts coordinates of three points from among the contour-equivalent coordinates extracted by the contour coordinate extraction device; a radius calculation device that calculates the radius of a circle having the coordinates of the three points extracted by the three-point extraction device on the circumference; and a radius calculation device that determines whether or not the radius calculated by the radius calculation device is appropriate by comparing it with a predetermined value. The radius suitability comparison device and the three-point extraction device extract new three-point positions to positions shifted from the previous three-point extraction positions3.
While the point shift device and the three extraction points shifted by the three-point shift device go around the contour-equivalent coordinates extracted by the contour coordinate extraction device, the three points determined to be suitable by the radius suitability comparison device are An image processing device comprising: a center coordinate calculation device that calculates center coordinates of a circle on the circumference, averages the calculated center coordinates, and calculates center coordinates of the circular contour.
JP11920391A 1991-04-23 1991-04-23 Image processor Pending JPH04323503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11920391A JPH04323503A (en) 1991-04-23 1991-04-23 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11920391A JPH04323503A (en) 1991-04-23 1991-04-23 Image processor

Publications (1)

Publication Number Publication Date
JPH04323503A true JPH04323503A (en) 1992-11-12

Family

ID=14755484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11920391A Pending JPH04323503A (en) 1991-04-23 1991-04-23 Image processor

Country Status (1)

Country Link
JP (1) JPH04323503A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007200358A (en) * 2007-04-23 2007-08-09 Meidensha Corp Device for detecting three-dimensional position/posture of circle feature
JP2007234042A (en) * 2007-04-23 2007-09-13 Meidensha Corp Three-dimensional position attitude detector of circle feature
JP2007263899A (en) * 2006-03-30 2007-10-11 Toppan Printing Co Ltd Device for measuring pattern shape, and pattern shape measuring method
CN104637500A (en) * 2013-11-11 2015-05-20 三菱电机株式会社 Lens position detection method, lens position detection device, lens position adjusting method and lens position adjusting device
JP2015111483A (en) * 2013-11-11 2015-06-18 三菱電機株式会社 Lens position detection method and device, lens position adjustment method and device
JP2018194475A (en) * 2017-05-18 2018-12-06 清水建設株式会社 Detection method and system of bolt position

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007263899A (en) * 2006-03-30 2007-10-11 Toppan Printing Co Ltd Device for measuring pattern shape, and pattern shape measuring method
JP2007200358A (en) * 2007-04-23 2007-08-09 Meidensha Corp Device for detecting three-dimensional position/posture of circle feature
JP2007234042A (en) * 2007-04-23 2007-09-13 Meidensha Corp Three-dimensional position attitude detector of circle feature
JP4569595B2 (en) * 2007-04-23 2010-10-27 株式会社明電舎 3D position and orientation detection device for circular features
JP4595957B2 (en) * 2007-04-23 2010-12-08 株式会社明電舎 3D position and orientation detection device for circular features
CN104637500A (en) * 2013-11-11 2015-05-20 三菱电机株式会社 Lens position detection method, lens position detection device, lens position adjusting method and lens position adjusting device
JP2015111483A (en) * 2013-11-11 2015-06-18 三菱電機株式会社 Lens position detection method and device, lens position adjustment method and device
CN104637500B (en) * 2013-11-11 2017-10-27 三菱电机株式会社 Lens position detection method and device and lens position adjusting method and device
JP2018194475A (en) * 2017-05-18 2018-12-06 清水建設株式会社 Detection method and system of bolt position

Similar Documents

Publication Publication Date Title
US7454053B2 (en) System and method for automatically recovering video tools in a vision system
US7751610B2 (en) Image recognition method and image recognition apparatus
US8917940B2 (en) Edge measurement video tool with robust edge discrimination margin
JP4874150B2 (en) Moving object tracking device
CN112334761B (en) Defect discriminating method, defect discriminating apparatus, and recording medium
WO2003063081A2 (en) Image processing to remove red-eye features without user interaction
US8610770B2 (en) Image sensing apparatus and method for sensing target that has defective portion region
CN108986129A (en) Demarcate board detecting method
JPH04323503A (en) Image processor
JPH09251544A (en) Work edge detecting image processor
JPH08145906A (en) Method and equipment for inspection of defect of surface to be inspected
US5892841A (en) Process for automatic detection of the assessable areas in images of mechanical components
JP6863946B2 (en) Image processing device
JP2021039457A (en) Image processing method, edge model creation method, robot system, and article manufacturing method
CN113744200B (en) Camera dirt detection method, device and equipment
KR101521620B1 (en) method of segmentation of die image for semiconductor device examination
CN111199533B (en) Image processing apparatus and method
CN111507949A (en) Chip identification method based on vision
JP2005038178A (en) Inspection apparatus for reference mark of inspection object
CN112991251A (en) Method, device and equipment for detecting surface defects
JP3196559B2 (en) Line recognition method
JP3620081B2 (en) Template matching method
KR102587918B1 (en) Method of automatically detecting sewing stitching defect method and system for the same
JP2007109121A (en) Image processing device
CN109035333B (en) Monocular machine vision method for identifying deflection angle of axisymmetric figure