JP2003307413A - Image processing method for circular hole measurement by image - Google Patents

Image processing method for circular hole measurement by image

Info

Publication number
JP2003307413A
JP2003307413A JP2002113396A JP2002113396A JP2003307413A JP 2003307413 A JP2003307413 A JP 2003307413A JP 2002113396 A JP2002113396 A JP 2002113396A JP 2002113396 A JP2002113396 A JP 2002113396A JP 2003307413 A JP2003307413 A JP 2003307413A
Authority
JP
Japan
Prior art keywords
data
image
calculated
circle
circular 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.)
Granted
Application number
JP2002113396A
Other languages
Japanese (ja)
Other versions
JP4025109B2 (en
Inventor
Kenichi Aoki
健一 青木
Tsutomu Suzuki
務 鈴木
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.)
Moritex Corp
Original Assignee
Moritex 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 Moritex Corp filed Critical Moritex Corp
Priority to JP2002113396A priority Critical patent/JP4025109B2/en
Publication of JP2003307413A publication Critical patent/JP2003307413A/en
Application granted granted Critical
Publication of JP4025109B2 publication Critical patent/JP4025109B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To exactly measure roundness of a circular hole in an optical part, ferrule and the like without being affected by a foreign articles such as dust in processing an image photographed by a camera. <P>SOLUTION: An outline of inner circle of the circular hole is extracted from a photographed image, rectangular coordinates data are obtained, and the coordinate center and the radius of a recurrence circle are calculated from those data. For a series of values in the radial direction of the recurrence circle at the extracted multitude of points arranged along the circumferential direction of the recurrence circle, envelope processing averaging data with small values are made with a data interval in the circumferential direction smaller than a specific value. With each correction data after envelope processing, a recurrence circle is again calculated and the coordinate center is calculated. From the calculated center of the recurrence circle, the distance of each correction data is calculated. With the maximum value and the minimum value, roundness is found. <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、光部品であるフェ
ルール等における円形穴の真円度等の測定を、撮像装置
により撮像した画像を処理して行う際の画像処理方法に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method for measuring the roundness of a circular hole in a ferrule or the like which is an optical component by processing an image picked up by an image pickup device.

【0002】[0002]

【従来の技術】フェルール等の微小な円形穴の真円度を
測定する方法の一つとして、撮像装置により円形穴を所
定の倍率で撮像して、その画像から円形穴の内周の輪郭
線を抽出し、輪郭線に沿った多数の抽出点の二次元の直
交座標データを得て、それらのデータを処理して真円度
を測定する方法がある。
2. Description of the Related Art As one of methods for measuring the roundness of a small circular hole such as a ferrule, an image of a circular hole is picked up by an image pickup device at a predetermined magnification, and the contour line of the inner circumference of the circular hole is drawn from the image. Is extracted, two-dimensional Cartesian coordinate data of a large number of extraction points along the contour line is obtained, and the data is processed to measure the roundness.

【0003】このように、画像により真円度を測定する
従来の画像処理方法を図8と図9を参照して説明する。
図8は画像処理の内容を示す説明図であり、また図9は
処理の流れを示すフロー図である。
A conventional image processing method for measuring the roundness of an image in this way will be described with reference to FIGS. 8 and 9.
FIG. 8 is an explanatory view showing the contents of the image processing, and FIG. 9 is a flow chart showing the flow of the processing.

【0004】1.まずステップS101において、撮像
装置により対象とする円形穴を撮像して画像をパーソナ
ルコンピュータ等の処理装置に取り込む。 2.次いでステップS102では取り込んだ画像のデー
タを演算処理して、対象とする穴の輪郭線を抽出し、輪
郭線に沿った多数の抽出点の二次元の直交座標データを
算出する。算出された夫々の座標データは、夫々の抽出
点に対応するデータの集合として例えば次のように表さ
れる。 座標データ:E(Xn,Yn) nは抽出点数 これらの多数の抽出点の座標データの集合は図8中の実
線f1で示されるもので、これらの実線f1は、実際は
多数の離散的な点の集合である。3.次いでステップS
103では、ステップS102において算出した多数の
抽出点の座標データの回帰分析を行って、多数の抽出点
に対応して予測される円、即ち回帰円を算出し、その中
心座標を算出する。回帰円は図中破線f2で示してお
り、その中心座標はC(Xc,Yc)として示してい
る。4.次いでステップS104では、回帰円の中心座
標C(Xc,Yc)と、各抽出点間の距離を算出する。
この算出した夫々の距離のデータを、半径データR(R
1,R2,R3,…,Rn)とすると、この半径データ
は下記一般式で算出される。 Ri={(Xi−Xc)2+(Yi−Yc)2-2 5.次いでステップS105では、半径データの最大値
Rmaxを求める。図では、半径データの最大値Rmaxに対
応する円fmaxを二点鎖線で示している。6.次いでス
テップS106では、半径データの最小値Rminを求め
る。図では、半径データの最大値Rminに対応する円fm
inを二点鎖線で示している。7.そしてステップS10
7では、半径データの最大値と最小値の差として、次式
により真円度を算出する。 真円度=Rmax−Rmin
1. First, in step S101, a target circular hole is imaged by an imaging device and an image is taken into a processing device such as a personal computer. 2. Next, in step S102, the data of the captured image is arithmetically processed to extract the contour line of the target hole, and the two-dimensional orthogonal coordinate data of a large number of extraction points along the contour line is calculated. Each of the calculated coordinate data is represented as, for example, the following as a set of data corresponding to each extraction point. Coordinate data: E (Xn, Yn) n is the number of extraction points The set of coordinate data of these many extraction points is shown by the solid line f1 in FIG. 8, and these solid lines f1 are actually many discrete points. Is a set of. 3. Then step S
In 103, regression analysis of the coordinate data of the large number of extraction points calculated in step S102 is performed to calculate a circle predicted corresponding to the large number of extraction points, that is, a regression circle, and the center coordinates thereof are calculated. The regression circle is shown by a broken line f2 in the figure, and its center coordinate is shown as C (Xc, Yc). 4. Next, in step S104, the center coordinates C (Xc, Yc) of the regression circle and the distances between the extraction points are calculated.
The calculated distance data is used as the radius data R (R
1, R2, R3, ..., Rn), this radius data is calculated by the following general formula. Ri = {(Xi-Xc) 2 + (Yi-Yc) 2} -2 5. Next, in step S105, the maximum value Rmax of the radius data is obtained. In the figure, the circle fmax corresponding to the maximum value Rmax of the radius data is indicated by a chain double-dashed line. 6. Next, in step S106, the minimum value Rmin of the radius data is obtained. In the figure, the circle fm corresponding to the maximum value Rmin of radius data
in is indicated by a chain double-dashed line. 7. And step S10
In 7, the roundness is calculated by the following equation as the difference between the maximum value and the minimum value of the radius data. Roundness = Rmax-Rmin

【0005】以上の画像処理において、処理対象の円形
穴は、フェルールの125μmの円形穴であり、この円形
穴の真円度は0.45[μm]のものである。しかし、この画
像処理では、円形穴の内周の一部にごみが付着している
状態で撮像したため、ごみに対応する部分の抽出点の座
標データは内側に突出し、この部分では上記半径データ
が小さくなるため、真円度は4.6260[μm]と算出され、
即ち、実際の真円度よりも大きく算出されている。
In the above image processing, the circular hole to be processed is a 125 μm circular hole of the ferrule, and the circularity of this circular hole is 0.45 [μm]. However, in this image processing, since the image was taken with dust adhering to a part of the inner circumference of the circular hole, the coordinate data of the extraction point of the portion corresponding to the dust protrudes inward, and the radius data is Since it becomes smaller, the roundness is calculated as 4.6260 [μm],
That is, it is calculated to be larger than the actual roundness.

【0006】[0006]

【発明が解決しようとする課題】このように、上述した
従来の画像処理方法では、撮像により得られた全体の抽
出点のデータを、ごみ等の異物による抽出点のデータも
含めて、そのまま用いて回帰円を算出し、そしてこの回
帰円の中心と全ての抽出点との距離を算出しているの
で、ごみ等の異物の影響を受け易く、正確な真円度の測
定が困難である。
As described above, in the above-mentioned conventional image processing method, the data of the entire extraction points obtained by the image pickup are used as they are, including the data of the extraction points due to foreign matters such as dust. Since the regression circle is calculated by calculating the distance between the center of the regression circle and all the extraction points, it is easy to be affected by foreign matter such as dust and it is difficult to accurately measure the roundness.

【0007】そのため円形穴の真円度が極めて小さいフ
ェルール等の対象物であっても、ごみの影響で真円度が
規格外と判定され、従って不良品として判定されてしま
う不都合が生じる。
Therefore, even if an object such as a ferrule having a circular hole with a very small roundness, the roundness is determined to be out of the standard due to the influence of dust, and therefore, there is a disadvantage that it is determined as a defective product.

【0008】本発明は、以上の点に鑑みて創案されたも
ので、その目的は、対象物の円形穴の内側にごみ等の異
物が付着していても、その影響を除去して正確な真円度
を求めることが可能な画像処理方法を提供することにあ
り、更にこの画像処理方法において、ごみ等の異物の付
着を検出することも可能としたものである。
The present invention was devised in view of the above points, and an object thereof is to accurately remove foreign matter such as dust adhered to the inside of a circular hole of an object by removing the influence thereof. An object of the present invention is to provide an image processing method capable of obtaining the roundness, and further, in this image processing method, it is possible to detect adhesion of foreign matter such as dust.

【0009】[0009]

【課題を解決するための手段】上述した課題を解決する
ために本発明では、撮像装置により対象物の円形穴を撮
像して、その画像から円形穴の内周の輪郭線を抽出し
て、輪郭線に沿った多数の抽出点の二次元の直交座標デ
ータを得て、これらの多数の抽出点の直交座標データか
ら回帰円の中心座標と半径を算出すると共に、この回帰
円の円周方向に沿って配列した多数の上記抽出点の、上
記回帰円の半径方向の値の列に対して、円周方向の所定
以下のデータ間隔において、値が小さいデータを均す包
絡線処理を行い、包絡線処理後の各補正データに対して
上記回帰円の中心からの距離を求め、その最大値と最小
値により真円度を算出することとした、画像による円形
穴の測定における画像処理方法を提案する。
In order to solve the above-mentioned problems, according to the present invention, an image of a circular hole of an object is picked up by an image pickup device, and an outline of the inner circumference of the circular hole is extracted from the image, Obtain two-dimensional Cartesian coordinate data of a large number of extraction points along the contour line, calculate the center coordinates and radius of the regression circle from the Cartesian coordinate data of these many extraction points, and Of a large number of the extraction points arranged along, for the column of values in the radial direction of the regression circle, at a data interval of a predetermined or less in the circumferential direction, perform envelope processing to average data with small values, Obtaining the distance from the center of the regression circle for each correction data after the envelope processing, and calculating the roundness by the maximum value and the minimum value, the image processing method in the measurement of the circular hole by the image, suggest.

【0010】また本発明では、撮像装置により対象物の
円形穴を撮像して、その画像から円形穴の内周の輪郭線
を抽出して、輪郭線に沿った多数の抽出点の二次元の直
交座標データを得て、これらの多数の抽出点の直交座標
データから回帰円の中心座標と半径を算出すると共に、
この回帰円の円周方向に沿って配列した多数の上記抽出
点の、上記回帰円の半径方向の値の列に対して、円周方
向の所定以下のデータ間隔において、値が小さいデータ
を均す包絡線処理を行い、包絡線処理後の各補正データ
に対して再度回帰円を算出して、その中心座標を算出
し、この算出した回帰円の中心から各補正データの距離
を求め、その最大値と最小値により真円度を算出するこ
ととした、画像による円形穴の測定における画像処理方
法を提案する。
Further, according to the present invention, a circular hole of an object is picked up by an image pickup device, a contour line of an inner circumference of the circular hole is extracted from the image, and two-dimensional extraction points of a large number of extraction points along the contour line are extracted. Obtain the Cartesian coordinate data, calculate the center coordinates and radius of the regression circle from the Cartesian coordinate data of these many extraction points,
With respect to the column of values in the radial direction of the regression circle of a large number of the extraction points arranged along the circumferential direction of the regression circle, data having a small value is averaged at a data interval of a predetermined value or less in the circumferential direction. Perform envelope processing, calculate the regression circle again for each corrected data after the envelope processing, calculate the center coordinates, and calculate the distance of each correction data from the center of the calculated regression circle. We propose an image processing method in the measurement of circular holes using images, in which the roundness is calculated from the maximum value and the minimum value.

【0011】また本発明では、撮像装置により対象物の
円形穴を撮像して、その画像から円形穴の内周の輪郭線
を抽出して、輪郭線に沿った多数の抽出点の二次元の直
交座標データを得て、これらの多数の抽出点の直交座標
データから回帰円の中心座標と半径を算出すると共に、
この回帰円の円周方向に沿って配列した多数の上記抽出
点の、上記回帰円の半径方向の値の列に対して、円周方
向の所定以下のデータ間隔において、値が小さいデータ
を均す包絡線処理を行い、包絡線処理の前後のデータの
変化により異物を検出することとした、画像による円形
穴の測定における画像処理方法を提案するものである。
Further, according to the present invention, a circular hole of an object is imaged by an image pickup device, a contour line of the inner circumference of the circular hole is extracted from the image, and two-dimensional extraction points of a large number of extraction points along the contour line are extracted. Obtain the Cartesian coordinate data, calculate the center coordinates and radius of the regression circle from the Cartesian coordinate data of these many extraction points,
With respect to the column of values in the radial direction of the regression circle of a large number of the extraction points arranged along the circumferential direction of the regression circle, data having a small value is averaged at a data interval of a predetermined value or less in the circumferential direction. The present invention proposes an image processing method in the measurement of a circular hole by an image, in which the envelope processing is performed and the foreign matter is detected by the change of the data before and after the envelope processing.

【0012】また本発明では、撮像装置により対象物の
円形穴を撮像して、その画像から円形穴の内周の輪郭線
を抽出して、輪郭線に沿った多数の抽出点の二次元の直
交座標データを得て、これらの多数の抽出点の直交座標
データから回帰円の中心座標と半径を算出すると共に、
この回帰円の円周方向に沿って配列した多数の上記抽出
点の、上記回帰円の半径方向の値の列に対して、円周方
向の所定以下のデータ間隔において、値が小さいデータ
を均す包絡線処理を行い、包絡線処理後の各補正データ
に対して再度回帰円を算出し、再度算出した回帰円の面
積と最初に算出した回帰円の面積の差により、撮像した
画像から算出した輪郭線で囲まれた面積中にごみの占め
る面積を算出することとした、画像による円形穴の測定
における画像処理方法を提案するものである。
Further, according to the present invention, a circular hole of an object is picked up by an image pickup device, a contour line on the inner circumference of the circular hole is extracted from the image, and two-dimensional extraction points of a large number of extraction points along the contour line are extracted. Obtain the Cartesian coordinate data, calculate the center coordinates and radius of the regression circle from the Cartesian coordinate data of these many extraction points,
With respect to the column of values in the radial direction of the regression circle of a large number of the extraction points arranged along the circumferential direction of the regression circle, data having a small value is averaged at a data interval of a predetermined value or less in the circumferential direction. Perform envelope processing, calculate the regression circle again for each corrected data after envelope processing, and calculate from the imaged image by the difference between the area of the regression circle calculated again and the area of the regression circle calculated first The present invention proposes an image processing method for measuring a circular hole by an image, in which the area occupied by dust is calculated in the area surrounded by the contour line.

【0013】そして本発明では、以上の各発明におい
て、包絡線処理は、多数の抽出点の二次元の直交座標デ
ータを、回帰円の中心座標を原点とした極座標データに
変換するステップと、変換された各抽出点の極座標デー
タを、動径としての回帰円の中心から各抽出点までの距
離と、偏角に対応する回帰円の円弧長とを、直交軸の夫
々とする直交座標データに変換するステップと、円弧長
に対応する一方側の軸に沿って、上記距離離れた位置に
配列される抽出点の列に対して、所定半径の仮想円が当
接して移動する場合の仮想円の中心の移動軌跡上の位置
を夫々の抽出点に対して算出するステップと、算出した
円の中心位置と上記一方側の軸との距離から、仮想円の
半径を減じて抽出点を補正した補正点の距離を算出する
ステップと、補正点のデータを二次元の直交座標データ
に再変換するステップとから構成することを提案する。
Further, in the present invention, in each of the above inventions, the envelope processing includes a step of converting two-dimensional Cartesian coordinate data of a large number of extraction points into polar coordinate data with the center coordinates of the regression circle as the origin. The polar coordinate data of each extracted point, the distance from the center of the regression circle as a radius to each extraction point, and the arc length of the regression circle corresponding to the declination are converted into orthogonal coordinate data for each orthogonal axis. A step of converting and a virtual circle when a virtual circle of a predetermined radius comes into contact with a row of extraction points arranged at the above-mentioned distances along the axis on one side corresponding to the arc length and moves. The step of calculating the position of the center of the movement trajectory on each extraction point, and the extraction point was corrected by subtracting the radius of the virtual circle from the calculated distance between the center position of the circle and the axis on the one side. The step of calculating the distance of the correction point and the correction point It proposes to configure and a step of reconverting the data into Cartesian coordinate data of the two-dimensional.

【0014】また本発明では、上記包絡線処理におい
て、所定半径の仮想円が当接して移動する場合の仮想円
の中心の移動軌跡上の位置を、夫々の抽出点に対して算
出するステップは、夫々の着目した抽出点に対して、そ
の前後に連続して配列された複数の抽出点を算出用抽出
点として、夫々の算出用抽出点を中心とする仮想円と、
円弧長に対応する一方側の軸から着目した抽出点を通る
垂線との交点を算出して、それらの最大値により算出す
ることを提案する。
Further, according to the present invention, in the envelope processing, the step of calculating the position on the movement locus of the center of the virtual circle when the virtual circle having a predetermined radius comes into contact with each other is calculated for each extraction point. , With respect to each extraction point of interest, a plurality of extraction points continuously arranged before and after the extraction point for calculation, a virtual circle centered on each extraction point for calculation,
We propose to calculate the intersection with the perpendicular line passing through the extraction point of interest from the axis on one side corresponding to the arc length, and to calculate by the maximum value thereof.

【0015】更に本発明では、上記包絡線処理におい
て、円周に対応する抽出点のデータの列の一方側の端部
に、他方側の端部の複数の抽出点のデータの列を結合す
ると共に、他方側の端部に、一方側の端部の複数の抽出
点のデータの列を結合することを提案する。
Further, in the present invention, in the above envelope processing, one end of the data column of the extraction points corresponding to the circumference is connected to one end of the data column of the plurality of extraction points of the other end. At the same time, it is proposed to combine the data row of the plurality of extraction points at the one end portion with the other end portion.

【0016】以上の本発明において対象とする円形穴
は、例えば光学部品の各種フェルールに形成された円形
穴とすることができる。
The circular hole to which the present invention is applied may be, for example, a circular hole formed in each ferrule of an optical component.

【0017】請求項1の発明によれば、撮像装置により
撮像した円形穴の内周の輪郭に沿った多数の抽出点の画
像データ中に、円形穴の内周の一部に付着したごみ等の
異物によって内側に突出した抽出点が生じても、この内
側に突出した抽出点は包絡線処理により補正して、補包
絡線処理後の各補正データに対して上記回帰円の中心か
らの距離を求め、その最大値と最小値により真円度を算
出するので、ごみ等の異物の影響を受け難く、正確な真
円度の測定が可能である。
According to the first aspect of the present invention, in the image data of a large number of extraction points along the contour of the inner circumference of the circular hole imaged by the imaging device, dust or the like attached to a part of the inner circumference of the circular hole. Even if there is an extraction point that protrudes inward due to foreign matter, the extraction point that protrudes inward is corrected by envelope processing, and the distance from the center of the regression circle for each corrected data after complementary envelope processing Since the roundness is calculated based on the maximum value and the minimum value, it is possible to measure the roundness accurately without being easily affected by foreign matter such as dust.

【0018】また請求項2の発明によれば、包絡線処理
後の各補正データに対して再度回帰円を算出して、その
中心座標を算出し、この算出した回帰円の中心から各補
正データの距離を求め、その最大値と最小値により真円
度を算出するので、請求項1の発明よりも、より正確な
真円度の測定が可能である。
According to the second aspect of the present invention, the regression circle is calculated again for each correction data after the envelope processing, the center coordinates of the regression circle are calculated, and each correction data is calculated from the calculated center of the regression circle. Since the roundness is calculated based on the maximum value and the minimum value of the distance, the roundness can be measured more accurately than the invention of claim 1.

【0019】また請求項3の発明によれば、補正前の抽
出点の画像データと、補正後の抽出点の画像データとを
比較することにより、円形穴におけるごみ等の異物の存
在を検出することができる。
According to the third aspect of the invention, the presence of foreign matter such as dust in the circular hole is detected by comparing the image data of the extraction points before correction with the image data of the extraction points after correction. be able to.

【0020】また請求項4の発明によれば、請求項2の
発明において再度算出した回帰円の面積と最初に算出し
た回帰円の面積の差により、撮像した画像から算出した
輪郭線で囲まれた面積中にごみの占める面積を算出する
ことができる。
Further, according to the invention of claim 4, due to the difference between the area of the regression circle calculated again in the invention of claim 2 and the area of the regression circle calculated first, the area is surrounded by the contour line calculated from the imaged image. The area occupied by waste can be calculated.

【0021】請求項5の発明における包絡線処理では、
所定半径の仮想円が当接して移動する場合の仮想円の中
心の移動軌跡上の位置の算出を、変換された各抽出点の
極座標データを、動径としての回帰円の中心から各抽出
点までの距離と、偏角に対応する回帰円の円弧長とを、
直交軸の夫々とする直交座標データに変換して行うの
で、簡単な算出式で包絡線に対応する位置の算出が行え
ると共に、この直交軸において、円弧長に対応する軸方
向の直線は、最初の二次元の直交座標においては、円弧
に対応するため、回帰円の半径又はそれに極めて近い半
径の円弧を包絡線として、値が小さいデータの均し処理
を行うことができる。
In the envelope processing according to the invention of claim 5,
The calculation of the position on the movement locus of the center of the virtual circle when the virtual circle with a predetermined radius abuts and moves is calculated by converting the polar coordinate data of each extracted point from the center of the regression circle as the radius to each extracted point. And the arc length of the regression circle corresponding to the declination,
Since it is converted into the orthogonal coordinate data for each of the orthogonal axes, the position corresponding to the envelope can be calculated with a simple calculation formula, and in this orthogonal axis, the straight line in the axial direction corresponding to the arc length is Since the two-dimensional Cartesian coordinates of 2 correspond to the circular arc, it is possible to perform the smoothing process of the data having a small value using the circular arc of the radius of the regression circle or the circular arc of the radius very close to it as the envelope.

【0022】請求項5の発明における包絡線処理を行う
際の、所定半径の仮想円が当接して移動する場合の仮想
円の中心の移動軌跡上の位置を夫々の抽出点に対して算
出するステップは、請求項6,7に示す手法により行う
ことができる。
When performing the envelope processing in the fifth aspect of the present invention, the position on the movement locus of the center of the virtual circle when the virtual circle having a predetermined radius moves in contact with each other is calculated for each extraction point. The steps can be performed by the methods described in claims 6 and 7.

【0023】[0023]

【発明の実施の形態】次に本発明の実施の形態を図1〜
図7を参照して説明する。尚、本発明の画像処理方法を
実施するシステムは、概ね、フェルール等の対象物を所
定位置に支持する支持装置と、対象物の対象とする円形
穴を撮像する撮像装置と、撮像装置により撮像した画像
を処理する処理装置と、照明手段等から構成されるので
あるが、このようなシステムは周知の技術に基づき容易
に構成することができ、また適宜の構成を適用すること
ができるので、説明は省略する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described with reference to FIGS.
This will be described with reference to FIG. The system for carrying out the image processing method of the present invention generally includes a supporting device that supports an object such as a ferrule at a predetermined position, an imaging device that images a circular hole that is the object of the object, and an imaging device that takes an image. The processing device for processing the image and the illumination device, etc., but such a system can be easily configured based on well-known technology, and since an appropriate configuration can be applied, The description is omitted.

【0024】図1は、本発明の請求項2に示す方法を適
用した処理の流れの一例を示すものである。 1.まずステップS1では、撮像装置により対象とする
円形穴を撮像して画像をパーソナルコンピュータ等の処
理装置に取り込む。 2.次いでステップS2では取り込んだ画像のデータを
演算処理して、対象とする穴の輪郭線を抽出し、輪郭線
に沿った多数の抽出点の二次元の直交座標データを算出
する。算出された夫々の座標データは、夫々の抽出点i
(但しi=1〜n)(但し、nは抽出点数)に対応する
データの集合として、 座標データ:E(Xn,Yn) として表す。これらの多数の抽出点の座標データの集合
は図2中の実線L1で示されるもので、これらの実線L
1は、実際は多数の離散的な点の集合である。 3.次いでステップS3では、ステップS2において算
出した多数の抽出点の座標データの回帰分析を行って、
多数の抽出点に対応して予測される円、即ち回帰円を算
出し、その中心座標を算出する。回帰円は図中破線L2
で表しており、その中心座標はC(Xc,Yc),半径
はRcとして表している。
FIG. 1 shows an example of the flow of processing to which the method according to claim 2 of the present invention is applied. 1. First, in step S1, an image of a circular hole of interest is picked up by an image pickup device and an image is taken into a processing device such as a personal computer. 2. Next, in step S2, the data of the captured image is arithmetically processed to extract the contour line of the target hole, and the two-dimensional orthogonal coordinate data of a large number of extraction points along the contour line is calculated. Each of the calculated coordinate data corresponds to each extraction point i.
(Where i = 1 to n) (where n is the number of extraction points) is expressed as coordinate data: E (Xn, Yn). The set of coordinate data of these many extraction points is shown by the solid line L1 in FIG.
1 is actually a set of many discrete points. 3. Next, in step S3, regression analysis of the coordinate data of the large number of extraction points calculated in step S2 is performed,
A circle predicted corresponding to a large number of extraction points, that is, a regression circle is calculated, and its center coordinates are calculated. The regression circle is the broken line L2 in the figure
The center coordinates are represented by C (Xc, Yc), and the radius is represented by Rc.

【0025】以上のステップS1〜S3は、上述した従
来の画像処理方法と同様である。次に、上記回帰円L2
の円周方向に沿って配列した多数の上記抽出点に対し
て、データを均す包絡線処理を、以下のステップS4〜
S12により行う。 4.ステップS4では、ステップS2における多数の抽
出点の二次元の直交座標データE(Xn,Yn)を、回
帰円L2の中心座標C(Xc,Yc)を原点とした極座
標データに変換する。極座標に変換された多数の抽出点
の座標データの集合を、E(Rn,θn)とする。尚、
図2においては、任意の極座標データE(Ri,θi)
として表している。 5.次いでステップS5では、ステップS4において変
換された各抽出点の極座標データを、動径としての、回
帰円L2の中心C(Xc,Yc)から各抽出点i〜nま
での距離と、偏角に対応する回帰円L2の円弧長とを、
直交軸の夫々とする直交座標データに変換する。直交軸
は、図3、図4に示すように、図2における直交軸であ
るX,Y軸と区別するためにU軸(横軸)とV軸(縦
軸)として示している。そして、このように直交座標に
変換された座標データは、E(Rθn,Rn)として示
しておいる。この際、任意の抽出点における座標データ
のU軸成分は、Rθi=Rc×θiの演算により求め
る。 6.次いでステップS6では、円周に対応する抽出点の
データの列の一方側の端部に、他方側の端部の複数の抽
出点のデータの列を結合すると共に、他方側の端部に、
一方側の端部の複数の抽出点のデータの列を結合する処
理を行う。この処理により、上記UV座標における座標
データの範囲は、E(Rθ-m,R-m)〜E(Rθ+m,R
+m)となる。
The above steps S1 to S3 are the same as those in the conventional image processing method described above. Next, the regression circle L2
Envelope processing for averaging the data is performed on a large number of the extraction points arranged along the circumferential direction of
This is performed by S12. 4. In step S4, the two-dimensional Cartesian coordinate data E (Xn, Yn) of the large number of extraction points in step S2 is converted into polar coordinate data with the center coordinate C (Xc, Yc) of the regression circle L2 as the origin. A set of coordinate data of a large number of extraction points converted into polar coordinates is E (Rn, θn). still,
In FIG. 2, arbitrary polar coordinate data E (Ri, θi)
It is expressed as. 5. Next, in step S5, the polar coordinate data of each extraction point converted in step S4 is converted into a distance from the center C (Xc, Yc) of the regression circle L2 to each extraction point i to n as a radius vector and an argument. And the arc length of the corresponding regression circle L2,
Convert to orthogonal coordinate data for each orthogonal axis. As shown in FIGS. 3 and 4, the orthogonal axis is shown as a U axis (horizontal axis) and a V axis (vertical axis) so as to be distinguished from the orthogonal axes X and Y in FIG. The coordinate data converted into the rectangular coordinates in this way is shown as E (Rθn, Rn). At this time, the U-axis component of the coordinate data at an arbitrary extraction point is obtained by the calculation of Rθi = Rc × θi. 6. Next, in step S6, a row of data of a plurality of extraction points at the end on the other side is joined to one end of the row of data of the extraction points corresponding to the circumference, and at the other end.
The process of combining the data rows of the plurality of extraction points at the one end is performed. By this processing, the range of the coordinate data in the UV coordinates is E (Rθ-m, R-m) to E (Rθ + m, R
+ m).

【0026】次に、U軸方向に配列された各抽出点のデ
ータの列に対して、所定半径の仮想円が当接して移動す
る場合の仮想円の中心の移動軌跡上の位置を夫々の抽出
点に対して算出する処理を、以降のステップS7〜S1
1により行う。尚、これらの処理は、図3に示すよう
に、円周方向の所定以下のデータ間隔において、値が小
さいデータを均す包絡線処理として規定することができ
る。 7.即ち、ステップS7では、抽出点1〜nにつき順次
以降の処理を行うため、まず抽出点を最初の点に設定す
る。即ち、変数i=1に初期化する。 8.次いでステップS8では、夫々の着目した抽出点i
に対して、その前後に連続して配列された±m個の抽出
点i−m〜i+mを算出用抽出点として、夫々の算出用
抽出点を中心とする半径rの円と、U軸から、着目した
抽出点iを通る垂線との交点を算出する。例えば着目し
た抽出点iを通る垂線と、抽出点i+3のデータ点を中
心とした半径rの円との交点のV座標は、以下の計算式
により算出することができる。 V3=Ri+3+{r2−(Rθ−Rθi+32-2 但し、r2−(Rθ−Rθi+32が負の場合には、交
点が存在しないことになる。 9.こうしてステップS8において、抽出点i−m〜i
+mを算出用抽出点として、夫々の算出用抽出点を中心
とする半径rの円と、U軸から、着目した抽出点iを通
る垂線との交点を算出した後、ステップS9では、それ
らの複数の交点の中でV軸の値の最大値を求め、この値
を抽出点iにおけるV軸の座標Viとする。 10.これらのステップS8、S9により、抽出点iに
おけるV軸の座標Viを求めた後、ステップS10にお
いて、変数iの値を1つ増加し、次いでステップS11
において全ての抽出点につき処理が行われたか否かを判
定し、処理が完了していない場合にはステップS8に移
行して、今度は抽出点i+1につき上述した処理が行わ
れる 11.ステップS8とステップS9の処理が全ての抽出
点につき行われ、全ての抽出点についての半径rの円の
中心の軌跡の座標データE(Rθn,Vn)が算出され
ると、ステップS10により、変数i=n+1となるの
で、次のステップS11において全ての抽出点につき行
われたことが判定されて、ステップS12に移行する。 12.次にステップS12においては、全ての抽出点に
ついての半径rの円の中心の軌跡の座標データE(Rθ
n,Vn)において、V軸の値から円の半径rを減じる
と共に、元の直交座標、即ち、図2のX,Y座標に変換
する。変換された座標データをE(X’n,Y’n)と
すると、任意の抽出点iにおける座標データは次式によ
り算出する。 X’i=(Vi−r)×cosθi−Xc Y’i=(Vi−r)×sinθi−Yc 但し、上述したとおり、(Xc,Yc)はステップS3
において算出した回帰円の中心の座標である。 13.以上のステップを経て、包絡線処理により、上記
回帰円の半径方向の値の列に対して、円周方向の所定以
下のデータ間隔において、値が小さいデータを均す処理
が行われ、補正された各抽出点の座標データE(X’
n,Y’n)が得られた後、次のステップS13におい
て、包絡線処理後の補正された座標データE(X’n,
Y’n)に対して再度回帰円を算出する。ここでは、回
帰円の中心座標C(X’c,Y’c)を算出する。図7
において、回帰円は破線f’2として示している。 14.次いでステップS14では、再度算出された回帰
円の中心座標C(X’c,Y’c)と、補正された夫々
の抽出点の座標データE(X’n,Y’n)間の距離を
算出する。 15.次いでステップS15では、半径データの最大値
R’maxを求める。図では、半径データの最大値R’max
に対応する円f’maxを二点鎖線で示している。 16.次いでステップS16では、半径データの最小値
R’minを求める。図では、半径データの最大値R’min
に対応する円f’minを二点鎖線で示している。 17.そしてステップS17では、半径データの最大値
と最小値の差として、次式により真円度を算出する。 真円度=R’max−R’min
Next, the position on the movement locus of the center of the virtual circle when the virtual circle having a predetermined radius comes into contact with the row of data of the respective extraction points arranged in the U-axis direction and moves. The process of calculating the extraction point is performed in the following steps S7 to S1.
It does by 1. Incidentally, as shown in FIG. 3, these processes can be defined as an envelope process for averaging data having small values at data intervals of a predetermined value or less in the circumferential direction. 7. That is, in step S7, since the subsequent processing is sequentially performed for each of the extraction points 1 to n, the extraction point is first set to the first point. That is, the variable i is initialized to 1. 8. Next, in step S8, the respective extraction points i
On the other hand, with ± m extraction points i−m to i + m consecutively arranged before and after that as extraction points for calculation, circles with a radius r centering on the extraction points for calculation and from the U axis , An intersection with a perpendicular passing through the focused extraction point i is calculated. For example, the V coordinate of the intersection of the perpendicular line passing through the focused extraction point i and the circle of radius r centering on the data point of the extraction point i + 3 can be calculated by the following calculation formula. V 3 = R i + 3 + {r 2 − (Rθ i −Rθ i + 3 ) 2 } −2 However, when r 2 − (Rθ i −Rθ i + 3 ) 2 is negative, there is an intersection. Will not do. 9. Thus, in step S8, the extraction points im-i
With + m as the extraction point for calculation, the intersection of the circle of radius r centered at each extraction point for calculation and the perpendicular line passing through the extraction point i of interest from the U axis is calculated. The maximum value of the V-axis value is obtained from the plurality of intersections, and this value is set as the V-axis coordinate Vi at the extraction point i. 10. After obtaining the coordinates Vi of the V-axis at the extraction point i by these steps S8 and S9, the value of the variable i is incremented by 1 in step S10, and then step S11.
11. It is determined whether or not the processing has been performed for all extraction points, and if the processing has not been completed, the process proceeds to step S8, and the processing described above is performed for the extraction point i + 1 this time. When the processing of steps S8 and S9 is performed for all the extraction points and the coordinate data E (Rθn, Vn) of the locus of the center of the circle of radius r for all the extraction points is calculated, the variables are calculated by step S10. Since i = n + 1, it is determined in the next step S11 that all extraction points have been performed, and the process proceeds to step S12. 12. Next, in step S12, the coordinate data E (Rθ of the center locus of the circle of radius r for all extraction points
(n, Vn), the radius r of the circle is subtracted from the value of the V axis, and the original rectangular coordinates, that is, the X and Y coordinates in FIG. 2 are converted. Assuming that the converted coordinate data is E (X'n, Y'n), the coordinate data at an arbitrary extraction point i is calculated by the following equation. X′i = (Vi−r) × cos θi−Xc Y′i = (Vi−r) × sin θi−Yc However, as described above, (Xc, Yc) is step S3.
It is the coordinates of the center of the regression circle calculated in. 13. Through the above steps, the envelope process performs a process of smoothing the data having a small value at a data interval of a predetermined value or less in the circumferential direction with respect to the column of values in the radial direction of the regression circle and is corrected. Coordinate data E (X '
n, Y'n) is obtained, in the next step S13, the corrected coordinate data E (X'n,
The regression circle is calculated again for Y'n). Here, the central coordinates C (X'c, Y'c) of the regression circle are calculated. Figure 7
In, the regression circle is shown as a broken line f'2. 14. Next, in step S14, the distance between the re-calculated center coordinates C (X'c, Y'c) of the regression circle and the corrected coordinate data E (X'n, Y'n) of each extraction point is calculated. calculate. 15. Next, in step S15, the maximum value R'max of the radius data is obtained. In the figure, the maximum value of radius data R'max
The circle f'max corresponding to is shown by the chain double-dashed line. 16. Next, in step S16, the minimum value R'min of the radius data is obtained. In the figure, the maximum value of radius data R'min
The circle f'min corresponding to is shown by the chain double-dashed line. 17. Then, in step S17, the roundness is calculated by the following equation as the difference between the maximum value and the minimum value of the radius data. Roundness = R'max-R'min

【0027】以上に説明した本発明の実施の形態によ
り、上述した従来の画像処理において測定したフェルー
ルの125μmの円形穴につき測定したところ、真円度
は、0.4985[μm]と算出された。この値は、本来の真円
度0.45[μm]に非常に近い値となった。
According to the embodiment of the present invention described above, when the circular hole of 125 μm of the ferrule measured in the conventional image processing described above was measured, the roundness was calculated to be 0.4985 [μm]. This value was very close to the original roundness of 0.45 [μm].

【0028】以上に説明した本発明の請求項2の発明に
対応する実施の形態では、撮像装置により撮像した円形
穴の内周の輪郭に沿った多数の抽出点の画像データ中
に、円形穴の内周の一部に付着したごみ等の異物によっ
て内側に突出した抽出点が生じても、この内側に突出し
た抽出点は包絡線処理により補正して、包絡線処理後の
各補正データに対して再度回帰円を算出して、その中心
座標を算出し、この算出した回帰円の中心から各補正デ
ータの距離を求め、その最大値と最小値により真円度を
算出するので、ごみ等が付着していても非常に正確な真
円度の測定が可能である。
In the embodiment corresponding to the invention of claim 2 of the present invention described above, the circular holes are included in the image data of a large number of extraction points along the contour of the inner periphery of the circular holes imaged by the imaging device. Even if there is an extraction point that protrudes inward due to foreign matter such as dust that adheres to part of the inner circumference of the, the extraction point that protrudes inward is corrected by envelope processing, and each corrected data after envelope processing is corrected. On the other hand, the regression circle is calculated again, the center coordinates are calculated, the distance of each correction data is calculated from the calculated center of the regression circle, and the roundness is calculated by the maximum value and the minimum value, so that the dust etc. It is possible to measure the circularity very accurately even if there is adhered.

【0029】しかしながら本発明においては、上記包絡
線処理により、ごみ等の異物によって内側に突出した抽
出点を包絡線処理により補正するので、請求項1に示す
ように、補正されたデータに対して再度回帰円を算出す
る処理を省略し、補包絡線処理後の各補正データに対し
て上記回帰円の中心からの距離を求め、その最大値と最
小値により真円度を算出するようにしても、上記実施の
形態ほどではないにしても、従来と比較して非常に正確
な真円度の測定が可能である。
However, in the present invention, since the envelope points are corrected by the envelope processing, the extraction points protruding inward due to foreign matter such as dust are corrected by the envelope processing. By omitting the process of calculating the regression circle again, the distance from the center of the regression circle is calculated for each correction data after the complementary envelope processing, and the roundness is calculated by the maximum value and the minimum value. However, it is possible to measure the roundness very accurately as compared with the conventional case, though not so much as the above embodiment.

【0030】また本発明においては、補正前の抽出点の
画像データと、補正後の抽出点の画像データとを比較す
れば、包絡線処理によってデータが補正された個所を検
出することができ、従って、請求項2に示すように、補
正前の抽出点の画像データと、補正後の抽出点の画像デ
ータとを比較する処理を行うことにより、円形穴におけ
るごみ等の異物の存在を検出することができる。
Further, in the present invention, by comparing the image data of the extraction points before the correction with the image data of the extraction points after the correction, it is possible to detect the location where the data is corrected by the envelope processing, Therefore, as described in claim 2, the presence of foreign matter such as dust in the circular hole is detected by performing a process of comparing the image data of the extraction points before correction with the image data of the extraction points after correction. be able to.

【0031】一方、包絡線処理によって補正された画像
データによって再度算出した回帰円の面積と、補正前の
画像データにより最初に算出した回帰円の面積の差は、
ごみの占める面積に対応すると考えられるので、請求項
4に示すように、上記面積の差を求める処理を行うこと
により、撮像した画像から算出した輪郭線で囲まれた面
積中にごみの占める面積を算出することができる。
On the other hand, the difference between the area of the regression circle calculated again by the image data corrected by the envelope processing and the area of the regression circle calculated first by the image data before correction is
It is considered that this corresponds to the area occupied by dust. Therefore, as shown in claim 4, the area occupied by dust is included in the area surrounded by the contour lines calculated from the captured image by performing the process of obtaining the difference between the areas. Can be calculated.

【0032】また本発明においては、請求項5に示すよ
うに、包絡線処理において、所定半径の仮想円が当接し
て移動する場合の仮想円の中心の移動軌跡上の位置の算
出を、変換された各抽出点の極座標データを、動径とし
ての回帰円の中心から各抽出点までの距離と、偏角に対
応する回帰円の円弧長とを、直交軸の夫々とする直交座
標データに変換して行うことにより、簡単な算出式で包
絡線に対応する位置の算出が行えると共に、図6に示す
直交軸において、円弧長に対応する軸方向の直線は、図
5に示す最初の二次元の直交座標においては、円弧に対
応するため、回帰円の半径又はそれに極めて近い半径の
円弧を包絡線として、値が小さいデータの均し処理を行
うことができる。
According to the present invention, as described in claim 5, the calculation of the position on the moving locus of the center of the virtual circle when the virtual circle having the predetermined radius moves in contact with the envelope curve is converted. The polar coordinate data of each extracted point, the distance from the center of the regression circle as a radius to each extraction point, and the arc length of the regression circle corresponding to the declination are converted into orthogonal coordinate data for each orthogonal axis. By performing the conversion, the position corresponding to the envelope can be calculated by a simple calculation formula, and in the orthogonal axis shown in FIG. 6, the straight line in the axial direction corresponding to the arc length is the first two lines shown in FIG. Since the dimensional Cartesian coordinates correspond to circular arcs, it is possible to perform smoothing processing of data having a small value by using an arc having a radius of the regression circle or a radius extremely close to it as an envelope.

【0033】この包絡線処理における仮想円の半径は、
適宜に決定することができるが、例えば、その径を、対
象とする円形穴の10倍程度以上に設定すれば、その径
に対応するデータ間隔以下において値が小さくなるデー
タを均し処理することができる。
The radius of the virtual circle in this envelope processing is
It can be appropriately determined, but for example, if the diameter is set to about 10 times or more of the target circular hole, the data whose value becomes smaller than the data interval corresponding to the diameter is smoothed. You can

【0034】逆に、最初の二次元の直交座標において、
ごみによる輪郭線を、直線の包絡線により均し処理を行
うと、図5に示すように、直線の包絡線は、ごみがない
場合の輪郭線、即ち円弧と一致することはなく、これが
必ず誤差となってしまう。
Conversely, in the first two-dimensional Cartesian coordinates,
When the contour line of dust is smoothed by the straight line envelope, the straight line envelope does not coincide with the contour line without dust, that is, the arc, as shown in FIG. There will be an error.

【0035】このことから、請求項5の発明において
は、包絡線処理により、非常に精度の高いデータの均し
処理を行うことができる。
Therefore, in the fifth aspect of the invention, the envelope processing makes it possible to carry out the data smoothing processing with extremely high accuracy.

【0036】次に本発明の産業上の利用可能性について
説明する。まず、本発明の方法が対象とする円形穴は、
光学部品の各種フェルールに形成された円形穴とする
他、適宜の円形穴に適用できるものである。また各種フ
ェルールとしては、単芯フェルール、多心フェルール、
MTフェルール等の適宜の構成のフェルールに適用でき
るものである。
Next, the industrial applicability of the present invention will be described. First, the circular hole targeted by the method of the present invention is
In addition to the circular hole formed in each ferrule of the optical component, it can be applied to an appropriate circular hole. As various ferrules, single-core ferrule, multi-core ferrule,
The present invention can be applied to ferrules having an appropriate structure such as MT ferrule.

【0037】本発明を単芯フェルールの穴の真円度(又
は偏心量)の測定に利用した場合は以下のとおりであ
る。単芯フェルールの穴の真円度(又は偏心量)の測定
では、フェルールを回転させながら又は静止させた状態
で撮像装置により撮像して、上述したような画像処理に
より内径の中心を求めるのであるが、従来の画像処理方
法では、内周にごみが付着していると、ごみによって偏
心量が大きく算出されてしまい、不良品として判定され
てしまう。従って従来の画像処理では、測定するフェル
ールのごみを除去する等の対処が必要であったが、本発
明の画像処理方法では、穴にごみが付着した状態でも正
確な偏心量の測定ができるので、従来では、ごみの影響
により偏心量の規格外と判定されて、不良として処理さ
れていたものでも不良と判定されず、製造工程の歩留ま
りを向上させることができる。
When the present invention is used to measure the roundness (or the amount of eccentricity) of the hole of a single-core ferrule, it is as follows. In the measurement of the roundness (or the amount of eccentricity) of the hole of the single-core ferrule, an image is taken by the image pickup device while the ferrule is rotated or stationary, and the center of the inner diameter is obtained by the image processing as described above. However, in the conventional image processing method, if dust adheres to the inner circumference, the amount of eccentricity is greatly calculated by the dust, and it is determined as a defective product. Therefore, in the conventional image processing, it was necessary to take measures such as removing dust of the ferrule to be measured, but with the image processing method of the present invention, it is possible to accurately measure the amount of eccentricity even when dust is attached to the hole. Conventionally, even if the eccentricity amount is determined to be out of the standard due to the influence of dust and is treated as a defect, it is not determined as a defect, and the yield of the manufacturing process can be improved.

【0038】また本発明では、円筒単芯フェルール、円
筒多心フェルールまたはMTフェルールのいずれのフェ
ルールの測定においても、上述したように画像処理にお
いて、穴にごみが付着していることを検出したり、ごみ
の付着量(付着している面積)を検出することができる
ので、製造工程において、ごみの付着による不良品の除
去が可能となる。
Further, in the present invention, in the measurement of any of the ferrules such as the cylindrical single-core ferrule, the cylindrical multi-core ferrule, and the MT ferrule, it is possible to detect that dust is attached to the holes in the image processing as described above. Since the amount of adhered dust (adhered area) can be detected, defective products due to the adhered dust can be removed in the manufacturing process.

【0039】次にMTフェルールの偏心量測定に関し、
この測定は、例えば直径0.7mmの両端のガイド穴の
中心を基準として、ガイド穴とガイド穴の間の125μm
のファイバ挿入穴の位置を測定したり、又はファイバ挿
入穴に挿入されたファイバコアの位置を測定するもので
あり、この際、ガイド穴の中心は、撮像装置であるカメ
ラの反対側から入射されるバックライトにより、カメラ
に映し出されたガイド穴の画像の処理により求められて
いる。この際、従来の画像処理方法では、ガイド穴にご
みが付着すると、その影響により、ガイド穴の中心が正
確に求められなくなるので、基準点がずれてしまって測
定値全体が正確に求められなくなる。これに対して、本
発明の画像処理方法では、ガイド穴にごみが付着した状
態においても、その影響を除去できるので、ファイバ挿
入穴やそこに挿入されているコアの偏心量を正確に測定
することができる。これにより、従来では、ごみの影響
により規格外と判定されて、不良として処理されていた
ものでも不良と判定されず、製造工程の歩留まりを向上
させることができる。
Next, regarding the eccentricity measurement of the MT ferrule,
This measurement is, for example, 125 μm between the guide holes with reference to the center of the guide holes at both ends with a diameter of 0.7 mm.
To measure the position of the fiber insertion hole or to measure the position of the fiber core inserted into the fiber insertion hole.At this time, the center of the guide hole is incident from the opposite side of the camera which is the imaging device. It is obtained by processing the image of the guide hole displayed on the camera by the backlight. At this time, in the conventional image processing method, when dust adheres to the guide hole, the center of the guide hole cannot be accurately obtained due to the influence of the dust, and the reference point is displaced, and the entire measured value cannot be accurately obtained. . On the other hand, in the image processing method of the present invention, even when dust is attached to the guide hole, the influence can be removed, so that the eccentricity of the fiber insertion hole and the core inserted therein can be accurately measured. be able to. As a result, even if a product that has been conventionally determined to be out of specification due to the influence of dust and processed as a defect is not determined to be defective, the yield of the manufacturing process can be improved.

【0040】[0040]

【発明の効果】本発明は以上のとおりであるので、次の
ような効果がある。 a.請求項1の発明によれば、撮像装置により撮像した
円形穴の内周の輪郭に沿った多数の抽出点の画像データ
中に、円形穴の内周の一部に付着したごみ等の異物によ
って内側に突出した抽出点が生じても、この内側に突出
した抽出点は包絡線処理により補正して、補包絡線処理
後の各補正データに対して上記回帰円の中心からの距離
を求め、その最大値と最小値により真円度を算出するの
で、ごみ等の異物の影響を受け難く、正確な真円度の測
定が可能である。 b.請求項2の発明によれば、包絡線処理後の各補正デ
ータに対して再度回帰円を算出して、その中心座標を算
出し、この算出した回帰円の中心から各補正データの距
離を求め、その最大値と最小値により真円度を算出する
ので、請求項1の発明よりも、より正確な真円度の測定
が可能である。 c.請求項3の発明によれば、補正前の抽出点の画像デ
ータと、補正後の抽出点の画像データとを比較すること
により、円形穴におけるごみ等の異物の存在を検出する
ことができる。 d.請求項4の発明によれば、請求項2の発明において
再度算出した回帰円の面積と最初に算出した回帰円の面
積の差により、撮像した画像から算出した輪郭線で囲ま
れた面積中にごみの占める面積を算出することができ
る。 e.請求項5の発明によれば、上記包絡線処理におい
て、回帰円の半径又はそれに極めて近い半径の円弧を包
絡線として、値が小さいデータの均し処理を行うことが
できる。
As described above, the present invention has the following effects. a. According to the invention of claim 1, in the image data of a large number of extraction points along the contour of the inner periphery of the circular hole imaged by the imaging device, due to foreign matter such as dust attached to a part of the inner periphery of the circular hole. Even if an extraction point that protrudes inward occurs, the extraction point that protrudes inward is corrected by envelope processing to obtain the distance from the center of the regression circle for each corrected data after the complementary envelope processing, Since the roundness is calculated from the maximum value and the minimum value, it is difficult to be affected by foreign matter such as dust, and the roundness can be accurately measured. b. According to the invention of claim 2, a regression circle is calculated again for each correction data after the envelope processing, the center coordinates thereof are calculated, and the distance of each correction data is calculated from the calculated center of the regression circle. Since the roundness is calculated from the maximum value and the minimum value, it is possible to measure the roundness more accurately than the invention of claim 1. c. According to the invention of claim 3, the presence of foreign matter such as dust in the circular hole can be detected by comparing the image data of the extraction points before correction with the image data of the extraction points after correction. d. According to the invention of claim 4, due to the difference between the area of the regression circle calculated again in the invention of claim 2 and the area of the regression circle calculated first, the area surrounded by the contour line calculated from the captured image is The area occupied by garbage can be calculated. e. According to the invention of claim 5, in the envelope processing, it is possible to perform smoothing processing of data having a small value by using an arc having a radius of the regression circle or a radius extremely close to it as an envelope.

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

【図1】 本発明の画像処理方法における処理の流れの
一例を示す流れ図である。
FIG. 1 is a flowchart showing an example of a processing flow in an image processing method of the present invention.

【図2】 本発明の画像処理方法における処理の流れ及
びその結果を説明する説明図である。
FIG. 2 is an explanatory diagram illustrating a flow of processing and a result thereof in the image processing method of the present invention.

【図3】 本発明の画像処理方法における包絡線による
データの均し処理を説明する説明図である。
FIG. 3 is an explanatory diagram illustrating a data smoothing process using an envelope in the image processing method of the present invention.

【図4】 本発明の画像処理方法における包絡線による
データの均し処理を説明する他の説明図である。
FIG. 4 is another explanatory diagram for explaining the data smoothing process using the envelope in the image processing method of the present invention.

【図5】 本発明の画像処理方法における包絡線による
データの均し処理を説明する更に他の説明図である。
FIG. 5 is still another explanatory diagram for explaining the data smoothing process using the envelope in the image processing method of the present invention.

【図6】 本発明の画像処理方法における包絡線による
データの均し処理を説明する更に他の説明図である。
FIG. 6 is still another explanatory diagram illustrating the data smoothing process using the envelope in the image processing method of the present invention.

【図7】 本発明の画像処理方法における包絡線による
データの均し処理の結果を説明する説明図である。
FIG. 7 is an explanatory diagram illustrating a result of data smoothing processing using an envelope in the image processing method of the present invention.

【図8】 従来の画像処理方法における処理の流れの一
例を示す流れ図である。
FIG. 8 is a flowchart showing an example of a processing flow in a conventional image processing method.

【図9】 従来の画像処理方法における処理の流れ及び
その結果を説明する説明図である。
FIG. 9 is an explanatory diagram illustrating a flow of processing and a result thereof in a conventional image processing method.

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

C(X’c,Y’c);C(Xc,Yc) 回帰円の
中心座標 f’2,f2 回帰円 Rmax,R’max 半径の最大値 Rmin,R’min 半径の最小値
C (X'c, Y'c); C (Xc, Yc) Regression circle center coordinates f'2, f2 Regression circle Rmax, R'max Maximum radius value Rmin, R'min Minimum radius value

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 撮像装置により対象物の円形穴を撮像し
て、その画像から円形穴の内周の輪郭線を抽出して、輪
郭線に沿った多数の抽出点の二次元の直交座標データを
得て、これらの多数の抽出点の直交座標データから回帰
円の中心座標と半径を算出すると共に、この回帰円の円
周方向に沿って配列した多数の上記抽出点の、上記回帰
円の半径方向の値の列に対して、円周方向の所定以下の
データ間隔において、値が小さいデータを均す包絡線処
理を行い、包絡線処理後の各補正データに対して上記回
帰円の中心からの距離を求め、その最大値と最小値によ
り真円度を算出することを特徴とする画像による円形穴
の測定における画像処理方法
1. A two-dimensional orthogonal coordinate data of a large number of extraction points along a contour line, in which a circular hole of an object is picked up by an image pickup device, a contour line of an inner circumference of the circular hole is extracted from the image. To obtain the central coordinates and the radius of the regression circle from the Cartesian coordinate data of these many extraction points, and the many of the extraction points arranged along the circumferential direction of this regression circle. Envelope processing that equalizes data with small values is performed on the column of values in the radial direction at a data interval that is less than or equal to a predetermined value in the circumferential direction, and the center of the regression circle for each corrected data after the envelope processing. Image processing method in the measurement of a circular hole by an image, characterized in that the roundness is calculated from the maximum value and the minimum value of the distance from the
【請求項2】 撮像装置により対象物の円形穴を撮像し
て、その画像から円形穴の内周の輪郭線を抽出して、輪
郭線に沿った多数の抽出点の二次元の直交座標データを
得て、これらの多数の抽出点の直交座標データから回帰
円の中心座標と半径を算出すると共に、この回帰円の円
周方向に沿って配列した多数の上記抽出点の、上記回帰
円の半径方向の値の列に対して、円周方向の所定以下の
データ間隔において、値が小さいデータを均す包絡線処
理を行い、包絡線処理後の各補正データに対して再度回
帰円を算出して、その中心座標を算出し、この算出した
回帰円の中心から各補正データの距離を求め、その最大
値と最小値により真円度を算出することを特徴とする画
像による円形穴の測定における画像処理方法
2. A two-dimensional orthogonal coordinate data of a large number of extraction points along the contour line, in which a circular hole of an object is picked up by an image pickup device, a contour line of the inner circumference of the circular hole is extracted from the image. To obtain the central coordinates and the radius of the regression circle from the Cartesian coordinate data of these many extraction points, and the many of the extraction points arranged along the circumferential direction of this regression circle. Envelope processing that equalizes data with small values at a data interval of less than a predetermined value in the circumferential direction is performed on the column of values in the radial direction, and the regression circle is calculated again for each corrected data after the envelope processing. Then, the center coordinate is calculated, the distance of each correction data is calculated from the calculated center of the regression circle, and the circularity is calculated by the maximum value and the minimum value. Image processing method
【請求項3】 撮像装置により対象物の円形穴を撮像し
て、その画像から円形穴の内周の輪郭線を抽出して、輪
郭線に沿った多数の抽出点の二次元の直交座標データを
得て、これらの多数の抽出点の直交座標データから回帰
円の中心座標と半径を算出すると共に、この回帰円の円
周方向に沿って配列した多数の上記抽出点の、上記回帰
円の半径方向の値の列に対して、円周方向の所定以下の
データ間隔において、値が小さいデータを均す包絡線処
理を行い、包絡線処理の前後のデータの変化により異物
を検出することを特徴とする画像による円形穴の測定に
おける画像処理方法
3. A two-dimensional orthogonal coordinate data of a large number of extraction points along the contour line, in which an image of a circular hole of an object is picked up by an image pickup device, the contour line of the inner circumference of the circular hole is extracted from the image. To obtain the central coordinates and the radius of the regression circle from the Cartesian coordinate data of these many extraction points, and the many of the extraction points arranged along the circumferential direction of this regression circle. Envelope processing that equalizes data with small values is performed for a row of values in the radial direction at a data interval that is less than or equal to a predetermined value in the circumferential direction, and foreign matter is detected by a change in the data before and after the envelope processing. Image processing method in circular hole measurement with featured image
【請求項4】 撮像装置により対象物の円形穴を撮像し
て、その画像から円形穴の内周の輪郭線を抽出して、輪
郭線に沿った多数の抽出点の二次元の直交座標データを
得て、これらの多数の抽出点の直交座標データから回帰
円の中心座標と半径を算出すると共に、この回帰円の円
周方向に沿って配列した多数の上記抽出点の、上記回帰
円の半径方向の値の列に対して、円周方向の所定以下の
データ間隔において、値が小さいデータを均す包絡線処
理を行い、包絡線処理後の各補正データに対して再度回
帰円を算出し、再度算出した回帰円の面積と最初に算出
した回帰円の面積の差により、撮像した画像から算出し
た輪郭線で囲まれた面積中にごみの占める面積を算出す
ることを特徴とする画像による円形穴の測定における画
像処理方法
4. A two-dimensional orthogonal coordinate data of a large number of extraction points along the contour line, in which an image of a circular hole of an object is picked up by an image pickup device, a contour line of the inner circumference of the circular hole is extracted from the image. To obtain the central coordinates and the radius of the regression circle from the Cartesian coordinate data of these many extraction points, and the many of the extraction points arranged along the circumferential direction of this regression circle. Envelope processing that equalizes data with small values at a data interval of less than a predetermined value in the circumferential direction is performed on the column of values in the radial direction, and the regression circle is calculated again for each corrected data after the envelope processing. An image characterized by calculating the area occupied by dust in the area surrounded by the contour line calculated from the imaged image by the difference between the area of the regression circle calculated again and the area of the regression circle calculated first Image Processing Method for Measuring Circular Holes by Laser
【請求項5】 包絡線処理は、多数の抽出点の二次元の
直交座標データを、回帰円の中心座標を原点とした極座
標データに変換するステップと、変換された各抽出点の
極座標データを、動径としての回帰円の中心から各抽出
点までの距離と、偏角に対応する回帰円の円弧長とを、
直交軸の夫々とする直交座標データに変換するステップ
と、円弧長に対応する一方側の軸に沿って、上記距離離
れた位置に配列される抽出点の列に対して、所定半径の
仮想円が当接して移動する場合の仮想円の中心の移動軌
跡上の位置を夫々の抽出点に対して算出するステップ
と、算出した円の中心位置と上記一方側の軸との距離か
ら、仮想円の半径を減じて抽出点を補正した補正点の距
離を算出するステップと、補正点のデータを二次元の直
交座標データに再変換するステップとから構成すること
を特徴とする請求項1〜4までのいずれか1項に記載の
画像による円形穴の測定における画像処理方法
5. Envelope processing includes a step of converting two-dimensional Cartesian coordinate data of a large number of extraction points into polar coordinate data whose origin is the center coordinate of a regression circle, and the converted polar coordinate data of each extraction point. , The distance from the center of the regression circle as the radius to each extraction point, and the arc length of the regression circle corresponding to the declination,
A step of converting into orthogonal coordinate data for each of the orthogonal axes, and an imaginary circle of a predetermined radius with respect to the row of extraction points arranged at the above distance along the axis on one side corresponding to the arc length. When abutting and moving, the position of the center of the virtual circle on the movement trajectory is calculated for each extraction point, and the distance between the calculated center position of the circle and the axis on the one side 5. The step of calculating the distance of the correction point in which the extraction point is corrected by reducing the radius of the correction point and the step of reconverting the data of the correction point into two-dimensional Cartesian coordinate data. Image processing method in the measurement of a circular hole by the image according to any one of
【請求項6】 所定半径の仮想円が当接して移動する場
合の仮想円の中心の移動軌跡上の位置を夫々の抽出点に
対して算出するステップは、夫々の着目した抽出点に対
して、その前後に連続して配列された複数の抽出点を算
出用抽出点として、夫々の算出用抽出点を中心とする仮
想円と、円弧長に対応する一方側の軸から着目した抽出
点を通る垂線との交点を算出して、それらの最大値によ
り算出することを特徴とする請求項5に記載の画像によ
る円形穴の測定における画像処理方法
6. The step of calculating the position on the movement locus of the center of the virtual circle when the virtual circle of a predetermined radius abuts and moves, for each extraction point, for each extraction point of interest. , A plurality of extraction points continuously arranged before and after the extraction point for calculation, a virtual circle centered on each extraction point for calculation, and an extraction point focused from one side axis corresponding to the arc length The image processing method in the measurement of a circular hole by an image according to claim 5, wherein an intersection with a passing perpendicular is calculated and the maximum value thereof is calculated.
【請求項7】 円周に対応する抽出点のデータの列の一
方側の端部に、他方側の端部の複数の抽出点のデータの
列を結合すると共に、他方側の端部に、一方側の端部の
複数の抽出点のデータの列を結合することを特徴とする
請求項6に記載の画像による円形穴の測定における画像
処理方法
7. A column of data of a plurality of extraction points at the end of the other side is connected to one end of the column of data of the extraction points corresponding to the circumference, and at the other end, The image processing method for measuring a circular hole by an image according to claim 6, characterized in that the data rows of a plurality of extraction points at one end are combined.
【請求項8】 円形穴は、光学部品の各種フェルールに
形成された円形穴であることを特徴とする請求項1〜7
までのいずれか1項に記載の画像による円形穴の測定に
おける画像処理方法
8. The circular hole is a circular hole formed in each ferrule of an optical component.
Image processing method in the measurement of a circular hole by the image according to any one of
JP2002113396A 2002-04-16 2002-04-16 Image processing method in circular hole measurement by image Expired - Fee Related JP4025109B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002113396A JP4025109B2 (en) 2002-04-16 2002-04-16 Image processing method in circular hole measurement by image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002113396A JP4025109B2 (en) 2002-04-16 2002-04-16 Image processing method in circular hole measurement by image

Publications (2)

Publication Number Publication Date
JP2003307413A true JP2003307413A (en) 2003-10-31
JP4025109B2 JP4025109B2 (en) 2007-12-19

Family

ID=29395592

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002113396A Expired - Fee Related JP4025109B2 (en) 2002-04-16 2002-04-16 Image processing method in circular hole measurement by image

Country Status (1)

Country Link
JP (1) JP4025109B2 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007305005A (en) * 2006-05-13 2007-11-22 Sharp Manufacturing System Corp Image processing method and image processor characterized by roundness measurement method
JP2009115526A (en) * 2007-11-05 2009-05-28 Daido Steel Co Ltd Roundness measuring method of inspection object
CN103105139A (en) * 2013-01-24 2013-05-15 中国工程物理研究院化工材料研究所 Radial and circumferential deformation measuring method and system for high-temperature and high pressure working cylinder
JP2013113613A (en) * 2011-11-25 2013-06-10 Kosaka Laboratory Ltd Feature shape extraction operation method of surface shape and surface shape correction operation method
JP2013163197A (en) * 2012-02-10 2013-08-22 Nippon Steel & Sumitomo Metal Corp Device for measuring inside diameter of die and measurement method using the same
JP2015022581A (en) * 2013-07-19 2015-02-02 キヤノン株式会社 Image processing apparatus, and image processing method
CN112525132A (en) * 2020-11-11 2021-03-19 中国石油天然气集团有限公司 Petroleum pipe inner wall ovality measuring instrument and measuring method thereof
CN114016360A (en) * 2021-10-27 2022-02-08 淮阴工学院 Road surface damage detection method based on epicycloid model
CN114659482A (en) * 2020-12-22 2022-06-24 核动力运行研究所 High-precision circular contour dimension measurement algorithm based on non-uniform discrete data
CN114964032A (en) * 2022-05-18 2022-08-30 北京理工大学 Blind hole depth measuring method and device based on machine vision

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007305005A (en) * 2006-05-13 2007-11-22 Sharp Manufacturing System Corp Image processing method and image processor characterized by roundness measurement method
JP2009115526A (en) * 2007-11-05 2009-05-28 Daido Steel Co Ltd Roundness measuring method of inspection object
JP2013113613A (en) * 2011-11-25 2013-06-10 Kosaka Laboratory Ltd Feature shape extraction operation method of surface shape and surface shape correction operation method
JP2013163197A (en) * 2012-02-10 2013-08-22 Nippon Steel & Sumitomo Metal Corp Device for measuring inside diameter of die and measurement method using the same
CN103105139B (en) * 2013-01-24 2016-03-16 中国工程物理研究院化工材料研究所 The radial direction of High Temperature High Pressure working cylinder, circumferential distortion measurement method and system
CN103105139A (en) * 2013-01-24 2013-05-15 中国工程物理研究院化工材料研究所 Radial and circumferential deformation measuring method and system for high-temperature and high pressure working cylinder
JP2015022581A (en) * 2013-07-19 2015-02-02 キヤノン株式会社 Image processing apparatus, and image processing method
CN112525132A (en) * 2020-11-11 2021-03-19 中国石油天然气集团有限公司 Petroleum pipe inner wall ovality measuring instrument and measuring method thereof
CN114659482A (en) * 2020-12-22 2022-06-24 核动力运行研究所 High-precision circular contour dimension measurement algorithm based on non-uniform discrete data
CN114659482B (en) * 2020-12-22 2023-06-13 核动力运行研究所 High-precision circular outline dimension measurement algorithm based on non-uniform discrete data
CN114016360A (en) * 2021-10-27 2022-02-08 淮阴工学院 Road surface damage detection method based on epicycloid model
CN114016360B (en) * 2021-10-27 2023-02-28 淮阴工学院 Road surface damage detection method based on epicycloid model
CN114964032A (en) * 2022-05-18 2022-08-30 北京理工大学 Blind hole depth measuring method and device based on machine vision

Also Published As

Publication number Publication date
JP4025109B2 (en) 2007-12-19

Similar Documents

Publication Publication Date Title
JP3725817B2 (en) Aspheric lens decentration measuring method and decentration measuring apparatus
JP2003307413A (en) Image processing method for circular hole measurement by image
CN114088738B (en) High-precision defect detection method and device for annular welding seam
JP2001070455A (en) Method for inspecting pattern width of stent surface
JP2002535608A (en) Wavefront analysis method and apparatus with large dynamic range
JP2020071212A (en) Eccentricity measurement method, lens fabrication method, and eccentricity measurement device
CN106018432A (en) Large-size optical lens surface quality detection method and system
JP2007085914A (en) Method, device, and program of measuring aspheric lens, method of manufacturing aspheric lens, and aspheric lens
JP4597509B2 (en) Pattern inspection apparatus and pattern inspection method
JP7089381B2 (en) Board inspection equipment, board processing equipment and board inspection method
CN115096202B (en) Method for detecting deformation defect of cylindrical surface to-be-detected body
JP5262070B2 (en) Method for measuring roundness of inspection object
JPH0996589A (en) Method and apparatus for measuring performance of lens
JP2010071867A (en) Eccentricity measuring instrument and method
JP4269423B2 (en) Surface inspection apparatus and surface inspection method
JP2018179786A (en) Imaging device and inspection system
CN110879046A (en) Surface-shape defocus amount change value measuring method based on swing arm type contour detection
JPH11121143A (en) Spark plug inspection method and device thereof
JPH11337320A (en) Automatic projector inspecting device for in traocular lens and method for inspecting intraoccular lens using the same device
CN111213053A (en) Device and method for detecting inner wall of micro-fine tube based on coherent light
JP5317619B2 (en) Eccentricity measurement method
JP2014142243A (en) Image processing method
CN106979789A (en) A kind of apparatus and method of total powerstation support precision Image detection
JPH11194227A (en) Core aligning method for optical fiber
JP4644983B2 (en) Method and apparatus for measuring end face shape of optical connector

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20050412

Free format text: JAPANESE INTERMEDIATE CODE: A621

A977 Report on retrieval

Effective date: 20061005

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061204

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070201

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Effective date: 20071001

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071004

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 3

Free format text: PAYMENT UNTIL: 20101012

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 3

Free format text: PAYMENT UNTIL: 20101012

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101012

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101012

Year of fee payment: 3

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111012

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121012

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 5

Free format text: PAYMENT UNTIL: 20121012

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20131012

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees