JPH1021409A - Size measuring method by picture processing method - Google Patents

Size measuring method by picture processing method

Info

Publication number
JPH1021409A
JPH1021409A JP8177637A JP17763796A JPH1021409A JP H1021409 A JPH1021409 A JP H1021409A JP 8177637 A JP8177637 A JP 8177637A JP 17763796 A JP17763796 A JP 17763796A JP H1021409 A JPH1021409 A JP H1021409A
Authority
JP
Japan
Prior art keywords
image processing
measured
test piece
measurement
pixels
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.)
Withdrawn
Application number
JP8177637A
Other languages
Japanese (ja)
Inventor
Satoshi Moriya
聡 守屋
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP8177637A priority Critical patent/JPH1021409A/en
Publication of JPH1021409A publication Critical patent/JPH1021409A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To easily proofread a size value with irreducible minimum necessary units of a picture processor when the size of an object is measured by a picture processing by photographing the test pieces of the measuring object and calculating the size of the arbitrary part of the measuring object from the picture and resolution which is previously measured. SOLUTION: At the time of measuring the size by the picture processing, the positional relation with the camera 1 is set to be equal to that at the time of taking the measuring object and the test pieces 6A-6C of the measuring object are photographed by a camera 1. The pictures are inputted to an arithmetic unit 2 and the number of picture elements in the arbitrary part of the measuring object is measured, and the resolution is calculated from the obtained number of picture elements and the previously measured and registered size. Then the size of the arbitrary part is calculated from the number of the picture elements of the obtained arbitrary part and the previously calculated resolution. Thus, the size measured value is easily proofread.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は画像処理による寸法
計測方法、特に校正(キャリブレーション)方法の改良
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dimension measuring method by image processing, and more particularly to an improvement of a calibration method.

【0002】[0002]

【従来の技術】カメラからの画像を画像処理装置に入力
して距離等の寸法計測を行う場合、画像処理装置に入力
画像の分解能(mm/1画素:1画素で表現できる実寸
法)を入力または設定する必要がある。また、この分解
能はカメラレンズの倍率や焦点距離によって変化するの
で、何らかの方法で分解能あるいは寸法計測値を校正す
る必要がある。
2. Description of the Related Art When an image from a camera is input to an image processing device to measure a dimension such as a distance, the resolution of the input image (actual size that can be expressed by 1 pixel / 1 mm) is input to the image processing device. Or need to set. Since this resolution changes depending on the magnification and the focal length of the camera lens, it is necessary to calibrate the resolution or the dimensional measurement value by some method.

【0003】分解能の設定として、従来、スケールを用
いる方法が知られている。
As a method for setting the resolution, a method using a scale is conventionally known.

【0004】この方法は、予め、任意のスケールをカメ
ラで映し、同スケールがモニタ画面の縦または横と同じ
大きさになるようにカメラレンズの倍率や焦点距離等を
調整して、分解能を設定するものである。例えば図6
(a)に示すように0.1mmの実寸法を1つの画素1
4で表現できるようにするには、同図6(b)に示すよ
うにCRT等のモニタ画面11の縦方向の画素数が51
2画素の場合、長さ51mmのスケール12が画面11
の縦方向全体に映るようにカメラレンズ13の倍率や焦
点距離を調整する。
In this method, an arbitrary scale is projected by a camera in advance, and the magnification and the focal length of a camera lens are adjusted so that the scale becomes the same size as the vertical or horizontal direction of the monitor screen, and the resolution is set. Is what you do. For example, FIG.
(A) As shown in FIG.
4 so that the number of pixels in the vertical direction of the monitor screen 11 such as a CRT is 51, as shown in FIG.
In the case of two pixels, a scale 12 having a length of 51 mm is displayed on the screen 11.
The magnification and the focal length of the camera lens 13 are adjusted so that the entire image is projected in the vertical direction.

【0005】しかし、実際に計測対象物の画像を入力す
る際に、カメラレンズ13の焦点が分解能設定時のもの
からずれてしまった場合には、分解能の値が狂ってしま
う。従って、寸法計測値が狂う。
[0005] However, when the image of the object to be measured is actually input, if the focus of the camera lens 13 is shifted from that at the time of setting the resolution, the value of the resolution is lost. Therefore, the dimension measurement value is out of order.

【0006】この問題を解決する方法として、レーザ距
離センサとオートフォーカス機構付きレンズとを併用し
た校正方法が知られている。即ち、オートフォーカス機
構付きレンズを用いることにより焦点を常に計測対象物
に合わせる。更に、レーザ距離センサでカメラと計測対
象物との距離を計測することにより、この距離計測値
と、オートフォーカス機構付きレンズの倍率及び焦点距
離とから、分解能を算出し、寸法計測値を校正する。
As a method for solving this problem, a calibration method using both a laser distance sensor and a lens with an autofocus mechanism is known. That is, the focus is always adjusted to the measurement object by using the lens with the auto-focus mechanism. Further, by measuring the distance between the camera and the object to be measured by the laser distance sensor, the resolution is calculated from the distance measurement value and the magnification and the focal length of the lens with an autofocus mechanism, and the dimension measurement value is calibrated. .

【0007】しかし、レーザ距離センサ及びオートフォ
ーカス機構付きレンズを用いるためにコスト高となる。
また、オートフォーカス機構付きのためにカメラレンズ
が大型化してしまう。
However, the use of a laser distance sensor and a lens with an auto-focus mechanism increases the cost.
In addition, the camera lens becomes large due to the provision of the autofocus mechanism.

【0008】[0008]

【発明が解決しようとする課題】本発明の目的は、画像
処理により対象物の寸法を計測する場合に、レーザ距離
センサ及びオートフォーカス機構付きレンズを付加する
ことなく、画像処理装置の最小限必要な機器で、寸法計
測値を簡単に校正することができる方法を提供すること
である。
SUMMARY OF THE INVENTION It is an object of the present invention to minimize the need for an image processing apparatus when measuring the size of an object by image processing without adding a laser distance sensor and a lens with an autofocus mechanism. It is an object of the present invention to provide a method that can easily calibrate a dimension measurement value with a simple device.

【0009】[0009]

【課題を解決するための手段】本発明の請求項1に係る
画像処理による寸法計測方法は、画像処理により寸法を
計測する前に、計測対象物の少なくとも1つをテストピ
ースとし、同テストピースの特定部位の寸法を適宜な方
法で予め計測し、画像処理装置に登録しておくこと、画
像処理により寸法を計測するに際し、先ず、カメラとの
位置関係を計測対象物を撮影するのと同じにして前記テ
ストピースをカメラにより撮影し、その画像を画像処理
装置に入力して同テストピースの前記特定部位の画素数
を計測すること、得られた前記特定部位の画素数と予め
計測して登録した前記寸法とから、分解能を算出するこ
と、続いて、計測対象物をカメラにより撮影し、その画
像を画像処理装置に入力して同計測対象物の任意部位の
画素数を計測すること、及び、得られた前記任意部位の
画素数と、先に算出した分解能とから、同任意部位の寸
法を算出することを特徴とする。
According to a first aspect of the present invention, there is provided a dimension measuring method using image processing, wherein at least one of the objects to be measured is a test piece before the dimension is measured by image processing. Measure the dimensions of the specific part in advance by an appropriate method and register it in the image processing device.When measuring the dimensions by image processing, first, the positional relationship with the camera is the same as shooting the measurement object The test piece is photographed by a camera, and the image is input to an image processing device to measure the number of pixels of the specific part of the test piece, and the obtained number of pixels of the specific part is measured in advance. Calculating the resolution from the registered dimensions, then photographing the object to be measured by a camera, inputting the image to an image processing device, and measuring the number of pixels of an arbitrary portion of the object to be measured. If, and, the number of pixels the arbitrary part obtained from the resolution previously calculated, and calculates the size of the arbitrary part.

【0010】本発明の請求項2に係る画像処理による寸
法計測方法は、画像処理により寸法を計測する前に、計
測対象物の少なくとも1つをテストピースとし、同テス
トピースの特定部位の寸法を適宜な方法で予め計測し、
画像処理装置に登録しておくこと、画像処理により寸法
を計測するに際し、前記テストピースと計測対象物を、
カメラとの位置関係を同じにしてをカメラにより撮影
し、それぞれの画像を画像処理装置に入力して同テスト
ピースの前記特定部位の画素数と同計測対象物の任意部
位の画素数を計測すること、及び、この計測で得られた
前記計測対象物の任意部位の画素数及び前記テストピー
スの特定部位の画素数と、同特定部位の予め計測して登
録した前記寸法とから、計測対象物の前記任意部位の寸
法を算出することを特徴とする。
According to a second aspect of the present invention, there is provided a method for measuring dimensions by image processing, wherein at least one of the objects to be measured is a test piece and the dimensions of a specific portion of the test piece are measured before the dimensions are measured by image processing. Measure in advance with an appropriate method,
To be registered in the image processing device, when measuring the dimensions by image processing, the test piece and the measurement object,
The same positional relationship with the camera is taken by the camera, and each image is input to an image processing device to measure the number of pixels of the specific part of the test piece and the number of pixels of an arbitrary part of the measurement object. And the number of pixels of an arbitrary portion of the measurement object obtained by this measurement, the number of pixels of a specific portion of the test piece, and the dimensions of the specific portion measured and registered in advance, the measurement object The dimensions of the arbitrary part are calculated.

【0011】つまり、テストピースとそれ以外の計測対
象物を続けてカメラで撮影し、画像処理をすれば、その
間、分解能が変化する恐れはない。そこで、テストピー
スの特定部位の寸法をL6 、テストピースの当該特定部
位の画素数をG6 とすると、分解能R6 は、R6 =L6
/G6 で算出することができる。従って、算出した分解
能R6 を用いることにより、計測対象物の任意部位の画
素数をGx とすると、同任意部位の寸法Xは、X=Gx
・R6 で算出することができ、自動的に校正される。
That is, if the test piece and the other object to be measured are successively photographed by the camera and subjected to image processing, the resolution does not change during that time. Therefore, assuming that the size of the specific portion of the test piece is L 6 and the number of pixels of the specific portion of the test piece is G 6 , the resolution R 6 is R 6 = L 6
It can be calculated by the / G 6. Accordingly, by using the calculated resolution R 6 and letting the number of pixels of an arbitrary portion of the measurement target be G x , the dimension X of the arbitrary portion is X = G x
- can be calculated by R 6, it is automatically calibrated.

【0012】更に、分解能R6 を一旦求めておかなくて
も、テストピースの特定部位の寸法L6 、テストピース
の当該特定部位の画素数G6 、計測対象物の任意部位の
画素数Gx から、X=Gx ・(L6 /G6 )により直接
的に寸法Xを算出することができ、自動的に校正され
る。
Further, even if the resolution R 6 is not determined once, the size L 6 of the specific portion of the test piece, the number of pixels G 6 of the specific portion of the test piece, and the number of pixels G x of the arbitrary portion of the measurement object can be obtained. , The dimension X can be directly calculated by X = G x · (L 6 / G 6 ), and calibration is automatically performed.

【0013】何れの場合も、カメラに焦点ずれが生じて
も、計測の際に校正が行われることから、或る程度の精
度を持った寸法計測が可能である。
In any case, even if the camera is out of focus, calibration is performed at the time of measurement, so that dimensional measurement with a certain degree of accuracy is possible.

【0014】[0014]

【発明の実施の形態】以下、図面を参照して、本発明の
実施の形態を説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0015】(第一例)図1は本発明の請求項1に係る
寸法計測方法を適用した画像処理装置の全体構成の一例
を示し、カメラ1と、画像処理及び必要な制御を行う演
算装置2と、メモリ3と、キーボード等の操作卓4と、
モニタ5と、各種のテストピース6A〜6Cと、計測ス
テージ7と、移動機構8とからなっている。カメラ1、
メモリ3、操作卓4、モニタ5、移動機構8は演算装置
2に接続されている。
(First Example) FIG. 1 shows an example of the overall configuration of an image processing apparatus to which a dimension measuring method according to claim 1 of the present invention is applied, and a camera 1 and an arithmetic unit for performing image processing and necessary control. 2, a memory 3, a console 4 such as a keyboard,
It comprises a monitor 5, various test pieces 6A to 6C, a measurement stage 7, and a moving mechanism 8. Camera 1,
The memory 3, console 4, monitor 5, and moving mechanism 8 are connected to the arithmetic unit 2.

【0016】移動機構8はカメラ1と計測対象物、及
び、テストピースとの相対的な位置関係を一定に設定す
るためのものであり、演算装置2の制御のもとで、例え
ばカメラ1のみ、または計測対象物及びテストピースの
みを計測ステージ7の所定位置に移動させる。
The moving mechanism 8 is for setting the relative positional relationship between the camera 1 and the object to be measured and the test piece constant, and under the control of the arithmetic unit 2, for example, only the camera 1 Alternatively, only the measurement object and the test piece are moved to a predetermined position on the measurement stage 7.

【0017】なお、以下の説明では、計測対象物及びテ
ストピースを移動させ、カメラ1の計測ステージ7に対
する位置関係及び姿勢は固定しておくものとするが、逆
でも同じである。
In the following description, it is assumed that the object to be measured and the test piece are moved, and the positional relationship and posture of the camera 1 with respect to the measurement stage 7 are fixed, but the reverse is also true.

【0018】テストピース6Aは、Aなる種類の計測対
象物から1つ抽出したものであり、図2に示すように、
特定の一辺の長さL6Aを予め適宜な寸法測定器で計測
し、計測対象物の種類Aと対応付けしてメモリ3に格納
することにより、登録をしてある。
The test piece 6A is one extracted from a type A measurement object, and as shown in FIG.
The length L 6A of a specific side is registered in advance by measuring the length L 6A with an appropriate dimension measuring device and storing the length L 6A in the memory 3 in association with the type A of the measurement object.

【0019】同様に、テストピース6Bは、Bなる種類
の計測対象物から1つ抽出したものであり、特定の一辺
の長さL6Bを予め計測し、種類Bと対応付けしてメモリ
3に格納し、登録をしてある。テストピース6Cは、C
なる種類の計測対象物から1つ抽出したものであり、特
定の一辺の長さL6Cを予め計測し、種類Cと対応付けし
てメモリ3に格納し、登録をしてある。
Similarly, the test piece 6B is one extracted from the type B measurement object, and measures the length L 6B of a specific side in advance and associates it with the type B in the memory 3. Stored and registered. Test piece 6C is C
One of the types of measurement objects is extracted, and the length L 6C of a specific side is measured in advance, stored in the memory 3 in association with the type C, and registered.

【0020】次に、各部の機能を、図3及び図4を参照
して、分解能算出及び寸法計測の手順と共に説明する。
Next, the function of each unit will be described with reference to FIGS. 3 and 4, together with the procedure of calculating the resolution and measuring the dimensions.

【0021】寸法計測に当たり、オペレータが操作卓4
を操作して計測対象物の種類を入力することにより、演
算装置2に計測対象物の種類を指定する。この種類の指
定により演算装置2は、計測対象物及びテストピースの
種類を選択し(図3のステップS1)、対応する登録済
み寸法をメモリ3から読み出す(ステップS2)。
In measuring the dimensions, the operator operates the console 4.
Is operated to input the type of the measurement target, thereby specifying the type of the measurement target in the arithmetic unit 2. By specifying this type, the arithmetic unit 2 selects the type of the measurement object and the test piece (step S1 in FIG. 3), and reads out the corresponding registered dimensions from the memory 3 (step S2).

【0022】以下の説明では、種類Aを選択し、登録済
み寸法L6Aを読み出すものとしている。なお、図3では
種類A〜Cの区別をせず、テストピースの登録済み寸法
をL 6 、テストピースの画素数をG6 、これらから得ら
れる分解能をR6 、計測対象物の任意部位の画素数をG
x 、同任意部位の寸法をXでそれぞれ表している。
In the following description, type A is selected and registered
Only dimension L6AIs read. In FIG. 3,
Registered dimensions of test pieces without distinguishing between types A to C
To L 6, The number of pixels of the test piece is G6Obtained from these
R6, The number of pixels of an arbitrary part of the measurement object
x, The dimensions of the arbitrary portions are represented by X, respectively.

【0023】演算装置2は、先ず分解能算出のモードで
動作し、移動機構8を制御して計測ステージ7の所定位
置にテストピース6Aを移動させ、図4に示すようにカ
メラ1からその画像を入力する(ステップS3)。
The arithmetic unit 2 first operates in a resolution calculation mode, controls the moving mechanism 8 to move the test piece 6A to a predetermined position on the measurement stage 7, and, as shown in FIG. Input (step S3).

【0024】更に演算装置2は画像処理として、テスト
ピース6Aの入力画像を2値化処理し(ステップS
4)、予め寸法計測した特定辺の画素数G6Aを計測し
(ステップS5)、R6A=L6A/G6Aなる式により分解
能R6Aを算出し、メモリ3に記憶しておく(ステップS
6)。2値化処理された画像はモニタ5に映し出され
る。
Further, the arithmetic unit 2 performs binarization processing on the input image of the test piece 6A as image processing (step S).
4) The number of pixels G 6A on the specific side whose dimensions have been measured in advance is measured (step S5), and the resolution R 6A is calculated by the formula R 6A = L 6A / G 6A and stored in the memory 3 (step S5).
6). The binarized image is displayed on the monitor 5.

【0025】その後、演算装置2は寸法計測のモードに
移り、移動機構8を制御して計測ステージ7の所定位置
に種類Aの計測対象物(以下、計測対象物Aという。)
を次々に移動させ、カメラ1からその画像を順次入力す
る(ステップS7)。つまり、カメラ1のテストピース
6Aに対する状態と計測対象物Aに対する状態が同じに
なる。
After that, the arithmetic unit 2 shifts to a dimension measurement mode, controls the moving mechanism 8 and places a type A measurement object at a predetermined position on the measurement stage 7 (hereinafter referred to as a measurement object A).
Are sequentially moved, and the images are sequentially input from the camera 1 (step S7). That is, the state of the camera 1 with respect to the test piece 6A and the state with respect to the measurement target A are the same.

【0026】演算装置2は画像処理として、計測対象物
Aの入力画像を2値化処理し(ステップS8)、任意部
位(例えば任意辺)の画素数GxAを求める(ステップS
10)。
The arithmetic unit 2 performs binarization processing on the input image of the measurement object A as image processing (step S8), and obtains the number of pixels G xA of an arbitrary portion (eg, an arbitrary side) (step S8).
10).

【0027】更に演算装置2は同任意部位の寸法X
A を、計測対象物Aの画素数GxAと先に算出した分解能
6Aとを用いてXA =GxA・R6Aなる式により算出し
(ステップS11)、モニタ5に計測結果XA (mm)
を表示する(ステップS12)。
Further, the arithmetic unit 2 calculates the size X of the arbitrary portion.
A is calculated using the number of pixels G xA of the measurement object A and the previously calculated resolution R 6A by the formula X A = G xA · R 6A (step S11), and the monitor 5 displays the measurement result X A ( mm)
Is displayed (step S12).

【0028】なお、寸法計測モードで2値化処理を行っ
た時、演算装置2は2値化処理後の画像から計測対象物
の有無を判定する(ステップS9)。計測対象物が有れ
ば次のステップS10で画素数GxAを求めるが、無けれ
ば計測を終了する。
When the binarization processing is performed in the dimension measurement mode, the arithmetic unit 2 determines the presence or absence of an object to be measured from the image after the binarization processing (step S9). If there is an object to be measured, the number of pixels G xA is determined in the next step S10, but if not, the measurement is terminated.

【0029】上記説明は種類Aの計測対象物についての
ものであるが、他の種類B、C等の計測対象物について
も同様である。
Although the above description has been made with respect to the type A measurement object, the same applies to other types B and C measurement objects.

【0030】(第二例)次に、図1及び図5を参照し
て、本発明の請求項2に係る寸法計測方法を説明する。
本例では画像処理により寸法を計測するに際し、先ず、
カメラとの位置関係を計測対象物を撮影するのと同じに
してテストピースをカメラにより撮影し、その画像を画
像処理装置に入力して同テストピースの特定部位の画素
数を計測し、続いて、計測対象物をカメラにより撮影
し、その画像を画像処理装置に入力して同計測対象物の
任意部位の画素数を計測し、この計測で得られた前記計
測対象物の任意部位の画素数及び前記テストピースの特
定部位の画素数と、同特定部位の予め計測して登録した
寸法とから、計測対象物の前記任意部位の寸法を算出す
る。画像処理装置の全体構成は先の例と同じで図1に示
され、カメラ1と、画像処理及び必要な制御を行う演算
装置2と、メモリ3と、キーボード等の操作卓4と、モ
ニタ5と、テストピース6A〜6Cと、計測ステージ7
と、移動機構8とからなっている。但し、図3の手順で
は分解能を一旦算出して記憶したが、本例では分解能は
算出せず、その代わりに後述のように、テストピースの
特定部位の画素数を計測してメモリ3に記憶する。
(Second Example) Next, a dimension measuring method according to a second aspect of the present invention will be described with reference to FIGS.
In this example, when measuring dimensions by image processing, first,
The test piece is photographed by the camera with the same positional relationship with the camera as that of the object to be measured, and the image is input to the image processing device, and the number of pixels of the specific part of the test piece is measured. , An image of the object to be measured is captured by a camera, the image is input to an image processing apparatus, and the number of pixels of an arbitrary portion of the object to be measured is measured. The size of the arbitrary portion of the measurement target is calculated from the number of pixels of the specific portion of the test piece and the previously measured and registered dimensions of the specific portion. The overall configuration of the image processing apparatus is the same as that of the previous example and is shown in FIG. 1, and includes a camera 1, an arithmetic unit 2 for performing image processing and necessary control, a memory 3, a console 4 such as a keyboard, and a monitor 5 , Test pieces 6A to 6C, and measurement stage 7
And a moving mechanism 8. However, in the procedure of FIG. 3, the resolution is once calculated and stored. However, in this example, the resolution is not calculated. Instead, the number of pixels of a specific portion of the test piece is measured and stored in the memory 3 as described later. I do.

【0031】本例でも、カメラ1、メモリ3、操作卓
4、モニタ5、移動機構8は演算装置2に接続されてお
り、演算装置部2の制御のもとで、移動機構8が例えば
カメラ1のみ、または計測対象物及びテストピースのみ
を計測ステージ7の所定位置に移動させることにより、
カメラ1と計測対象物またはテストピースとの相対的な
位置関係を一定に設定する。更に、以下の説明では、先
の例と同様、計測対象物及びテストピースのみを移動さ
せ、カメラ1の計測ステージ7に対する位置関係と姿勢
を固定している。また、テストピース6A〜6Cについ
ても同様であり、それぞれA〜C各種類の計測対象物か
ら1つ抽出したものとし、任意の一辺の長さL6A
6B、L6Cを予め適宜な寸法測定器で計測し、計測対象
物の種類A〜Cに対応させてメモリ3に格納し、登録を
してある。
Also in this example, the camera 1, the memory 3, the console 4, the monitor 5, and the moving mechanism 8 are connected to the arithmetic unit 2, and under the control of the arithmetic unit 2, the moving mechanism 8 By moving only 1 or only the measurement object and the test piece to a predetermined position on the measurement stage 7,
The relative positional relationship between the camera 1 and a measurement object or a test piece is set to be constant. Further, in the following description, as in the previous example, only the measurement target and the test piece are moved, and the positional relationship and the posture of the camera 1 with respect to the measurement stage 7 are fixed. The same applies to the test pieces 6A to 6C, and one is extracted from each of the measurement objects of each type A to C, and the length L 6A of any one side,
L 6B and L 6C are measured in advance by an appropriate dimension measuring instrument, and stored in the memory 3 in correspondence with the types A to C of the measurement object, and registered.

【0032】次に、図5を参照して、各部の機能を寸法
計測の手順と共に説明する。
Next, with reference to FIG. 5, the function of each part will be described together with the procedure of dimension measurement.

【0033】寸法計測に当たり、オペレータが操作卓4
を操作して計測対象物の種類を入力することにより、演
算装置2に計測対象物の種類を指定する。この種類の指
定により、演算装置2は計測対象物及びテストピースの
種類を選択し(図5のステップS21)、メモリ3から
対応する登録済み寸法を読み出す(ステップS22)。
以下の説明では、先の例と同様、種類Aを選択し、登録
済み寸法L6Aを読み出すものとする。また、図5でも図
3と同様、種類A〜Cの区別はせず、テストピースの登
録済み寸法をL6 、テストピースの画素数をG6 、計測
対象物の任意部位の画素数をGx 、同任意部位の寸法を
Xでそれぞれ表している。
In measuring the dimensions, the operator operates the console 4.
Is operated to input the type of the measurement target, thereby specifying the type of the measurement target in the arithmetic unit 2. By specifying this type, the arithmetic unit 2 selects the type of the measurement object and the test piece (step S21 in FIG. 5), and reads out the corresponding registered dimensions from the memory 3 (step S22).
In the following description, it is assumed that the type A is selected and the registered dimension L6A is read, as in the previous example. Also in FIG. 5, as in FIG. 3, the types A to C are not distinguished, the registered size of the test piece is L 6 , the number of pixels of the test piece is G 6 , and the number of pixels of an arbitrary portion of the measurement object is G. x and the dimension of the arbitrary portion are represented by X, respectively.

【0034】演算装置2は移動機構8を制御して、先
ず、テストピース6Aを計測ステージ7の所定位置に移
動させてカメラ1からその画像を入力し(ステップS2
3)、画像処理としてテストピース6Aの画像を2値化
処理して(ステップS24)、予め寸法計測した特定辺
の画素数G6Aを求める(ステップS25)。この画素数
6Aを、分解能の代わりにメモリ3に記憶しておく。
The arithmetic unit 2 controls the moving mechanism 8 to move the test piece 6A to a predetermined position on the measuring stage 7 and input the image from the camera 1 (step S2).
3), as an image processing an image of the test piece 6A to binarization processing (step S24), and obtains the number of pixels G 6A particular sides previously dimension measurement (step S25). The number of pixels G 6A is stored in the memory 3 instead of the resolution.

【0035】次に演算装置2は移動機構8を制御して、
種類Aの計測対象物(以下、計測対象物Aという。)を
計測ステージ7の所定位置に次々に移動させ、カメラ1
からその画像を順次入力し(ステップS26)、画像処
理として計測対象物Aの画像を2値化処理して(ステッ
プS27)、任意部位例えば任意辺の画素数GxAを求め
る(ステップS29)。
Next, the arithmetic unit 2 controls the moving mechanism 8 to
The measurement object of type A (hereinafter, referred to as measurement object A) is sequentially moved to a predetermined position on the measurement stage 7 and the camera 1
Are sequentially input (step S26), the image of the measurement target A is binarized as image processing (step S27), and the number of pixels GxA of an arbitrary portion, for example, an arbitrary side is obtained (step S29).

【0036】そして演算装置2は計測対象物の任意部位
の寸法XA を、同任意部位の画素数GxAと、先に計測し
たテストピース6Aの特定辺の画素数G6Aと、同テスト
ピース6Aの登録済み寸法L6Aとを用いて、XA =GxA
・( L6A/G6A)なる式により算出し(ステップS3
0)、モニタ5に計測結果XA (mm)を表示する(ス
テップS31)。なお、ステップS29で画素数GxA
求める前に、2値化処理後の画像からステップS28に
て計測対象物の有無を判定し、計測対象物が無ければ計
測を終了する。
[0036] Then the dimensions X A of any part of the operation unit 2 is the measurement object, and the number of pixels G xA of the arbitrary part, the number of pixels G 6A particular side of the test piece 6A measured previously, the test piece X A = G xA using the registered dimension L 6A of 6A
· Calculated by the formula (L 6A / G 6A ) (step S3
0), the measurement result X A (mm) is displayed on the monitor 5 (step S31). Before obtaining the number of pixels GxA in step S29, the presence or absence of a measurement target is determined in step S28 from the image after the binarization processing. If there is no measurement target, the measurement ends.

【0037】上記説明も種類Aの計測対象物についての
ものであるが、他の種類B、C等の計測対象物について
も同様である。
Although the above description has been made with respect to the type A measurement object, the same applies to other types B and C measurement objects.

【0038】上記説明から判るように、画像処理におけ
る分解能の校正方法として、画像処理により計測対象物
の寸法を計測する前に、計測対象物の少なくとも1つを
テストピースとし、同テストピースの特定部位の寸法を
適宜な方法で予め計測し、画像処理装置に登録しておく
こと、カメラとの位置関係を計測対象物を撮影するのと
同じにして前記テストピースをカメラにより撮影し、そ
の画像を画像処理装置に入力して同テストピースの前記
特定部位の画素数を計測すること、及び、得られた前記
特定部位の画素数と予め計測して登録した前記寸法とか
ら、分解能を算出することにより、画像処理装置自体の
機能により分解能を自動的に校正することができる。
As can be seen from the above description, as a method of calibrating the resolution in the image processing, at least one of the measurement objects is used as a test piece before the dimensions of the measurement object are measured by the image processing. The dimensions of the part are measured in advance by an appropriate method, registered in the image processing apparatus, the test piece is photographed by the camera in the same manner as the photographing of the measurement object with the positional relationship with the camera, and the image is taken. Is input to the image processing apparatus to measure the number of pixels of the specific part of the test piece, and the resolution is calculated from the obtained number of pixels of the specific part and the previously measured and registered dimensions. Thus, the resolution can be automatically calibrated by the function of the image processing apparatus itself.

【0039】[0039]

【発明の効果】本発明によれば、計測対象物の少なくと
も1つをテストピースとし、テストピースの特定部位の
寸法を予め計測しておくだけで、レーザ距離センサ及び
オートフォーカス機構付きレンズを付加することなく、
画像処理装置自体の機能により、分解能或いは寸法計測
値を自動的に校正することが可能になる。
According to the present invention, at least one of the objects to be measured is used as a test piece, and a laser distance sensor and a lens with an autofocus mechanism are added only by measuring the dimensions of a specific portion of the test piece in advance. Without doing
With the function of the image processing apparatus itself, it is possible to automatically calibrate the resolution or the dimension measurement value.

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

【図1】本発明の実施の形態に係る画像処理による寸法
計測の装置構成例を示すブロック図。
FIG. 1 is a block diagram showing an example of an apparatus configuration for dimension measurement by image processing according to an embodiment of the present invention.

【図2】テストピースの例を示す図。FIG. 2 is a diagram showing an example of a test piece.

【図3】本発明の実施の形態に係る画像処理による寸法
計測の手順例を示す図。
FIG. 3 is a diagram showing an example of a procedure of dimension measurement by image processing according to the embodiment of the present invention.

【図4】テストピースの撮影状況を示す図。FIG. 4 is a diagram showing a shooting state of a test piece.

【図5】本発明の実施の形態に係る画像処理による寸法
計測の他の手順例を示す図。
FIG. 5 is a view showing another example of the procedure of dimension measurement by image processing according to the embodiment of the present invention.

【図6】従来のスケールを用いた解像度設定方法を示す
図。
FIG. 6 is a diagram showing a resolution setting method using a conventional scale.

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

1 カメラ 2 演算装置 3 メモリ 4 操作卓 5 モニタ 6A〜6C テストピース 7 計測ステージ 8 移動機構 Reference Signs List 1 camera 2 arithmetic unit 3 memory 4 console 5 monitor 6A to 6C test piece 7 measuring stage 8 moving mechanism

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】カメラにより得られる計測対象物の画像か
ら同計測対象物の寸法を計測する画像処理による寸法計
測方法において、 画像処理により寸法を計測する前に、計測対象物の少な
くとも1つをテストピースとし、同テストピースの特定
部位の寸法を適宜な方法で予め計測し、画像処理装置に
登録しておくこと、 画像処理により寸法を計測するに際し、先ず、カメラと
の位置関係を計測対象物を撮影するのと同じにして前記
テストピースをカメラにより撮影し、その画像を画像処
理装置に入力して同テストピースの前記特定部位の画素
数を計測すること、 得られた前記特定部位の画素数と予め計測して登録した
前記寸法とから、分解能を算出すること、 続いて、計測対象物をカメラにより撮影し、その画像を
画像処理装置に入力して同計測対象物の任意部位の画素
数を計測すること、及び、 得られた前記任意部位の画素数と、先に算出した分解能
とから、同任意部位の寸法を算出すること、 を特徴とする画像処理による寸法計測方法。
In a dimension measuring method by image processing for measuring a dimension of a measurement object from an image of the measurement object obtained by a camera, at least one of the measurement objects is measured before the dimension is measured by the image processing. Measure the dimensions of a specific part of the test piece in advance using an appropriate method and register it in the image processing device. When measuring the dimensions by image processing, first measure the positional relationship with the camera. Shooting the test piece with a camera in the same way as shooting an object, inputting the image to an image processing device and measuring the number of pixels of the specific portion of the test piece, Calculating the resolution from the number of pixels and the dimensions that have been measured and registered in advance. Measuring the number of pixels of an arbitrary part of the measurement object, and calculating the dimensions of the arbitrary part from the obtained number of pixels of the arbitrary part and the previously calculated resolution, Dimension measurement method by processing.
【請求項2】カメラにより得られる計測対象物の画像か
ら同計測対象物の寸法を計測する画像処理による寸法計
測方法において、 画像処理により寸法を計測する前に、計測対象物の少な
くとも1つをテストピースとし、同テストピースの特定
部位の寸法を適宜な方法で予め計測し、画像処理装置に
登録しておくこと、 画像処理により寸法を計測するに際し、前記テストピー
スと計測対象物を、カメラとの位置関係を同じにしてを
カメラにより撮影し、それぞれの画像を画像処理装置に
入力して同テストピースの前記特定部位の画素数と同計
測対象物の任意部位の画素数を計測すること、及び、 この計測で得られた前記計測対象物の任意部位の画素数
及び前記テストピースの特定部位の画素数と、同特定部
位の予め計測して登録した前記寸法とから、計測対象物
の前記任意部位の寸法を算出すること、 を特徴とする画像処理による寸法計測方法。
2. A dimension measuring method by image processing for measuring dimensions of a measurement object from an image of the measurement object obtained by a camera, wherein at least one of the measurement objects is measured before the dimension is measured by the image processing. As a test piece, the dimensions of a specific part of the test piece are measured in advance by an appropriate method and registered in an image processing device. When measuring the dimensions by image processing, the test piece and the object to be measured are separated by a camera. The same positional relationship as above is taken by a camera, and each image is input to an image processing device to measure the number of pixels of the specific part of the test piece and the number of pixels of an arbitrary part of the measurement object. , And the number of pixels of an arbitrary part of the measurement object and the number of pixels of a specific part of the test piece obtained by this measurement, and the previously measured and registered dimensions of the specific part From dimension measurement method by the image processing, characterized in that, to calculate the size of the arbitrary portion of the measurement object.
JP8177637A 1996-07-08 1996-07-08 Size measuring method by picture processing method Withdrawn JPH1021409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8177637A JPH1021409A (en) 1996-07-08 1996-07-08 Size measuring method by picture processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8177637A JPH1021409A (en) 1996-07-08 1996-07-08 Size measuring method by picture processing method

Publications (1)

Publication Number Publication Date
JPH1021409A true JPH1021409A (en) 1998-01-23

Family

ID=16034483

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8177637A Withdrawn JPH1021409A (en) 1996-07-08 1996-07-08 Size measuring method by picture processing method

Country Status (1)

Country Link
JP (1) JPH1021409A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014057790A (en) * 2012-09-19 2014-04-03 Hitachi Medical Corp Image diagnostic apparatus
JP2014191324A (en) * 2013-03-28 2014-10-06 Kojiro Sasaya Life-size photograph preparing method, photograph prepared by the same, and scale body for use in the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014057790A (en) * 2012-09-19 2014-04-03 Hitachi Medical Corp Image diagnostic apparatus
JP2014191324A (en) * 2013-03-28 2014-10-06 Kojiro Sasaya Life-size photograph preparing method, photograph prepared by the same, and scale body for use in the same

Similar Documents

Publication Publication Date Title
JP4540322B2 (en) Inter-image corresponding point detection apparatus and inter-image corresponding point detection method
US10440273B2 (en) Imaging apparatus that displays an overlay setting screen for inputting focal length information for interchangeable lens and for quantitatively indicating a magnitude of a blur
JP3237414B2 (en) Stereo camera calibration device
JP2002072050A (en) Method and device for calibrating camera
JP2001066158A (en) Measurement result or analysis result projecting device and method
JPH04172213A (en) Calibrating method for three-dimensional shape measuring apparatus
JP2000205821A (en) Instrument and method for three-dimensional shape measurement
JPH1021409A (en) Size measuring method by picture processing method
US8179431B2 (en) Compound eye photographing apparatus, control method therefor, and program
JPH09196637A (en) Method for measuring bend angle of long material
JPS6256814A (en) Calibration system for three-dimensional position measuring camera
JP2004117186A (en) Three-dimensional shape measuring device
JP2007508562A (en) Dimension measurement method with digital camera
JP2005354461A (en) Surveillance camera system, video processing device, and its character displaying method
JP4565171B2 (en) Distance measuring apparatus and method
JP2004354234A (en) Camera calibration method for photogrammetry
JP3042773B2 (en) 3D motion analyzer
JP3369235B2 (en) Calibration method for measuring distortion in three-dimensional measurement
JP2795790B2 (en) Sensor coordinate correction method for three-dimensional measuring device
JPH109819A (en) Distance measuring equipment
JP7546507B2 (en) Reinforcement inspection device and method
JPH0757095A (en) Number of reference picture element setting method in image processor for length measurement
JP2522787Y2 (en) Image processing device
KR950025824A (en) Automatic focusing and positioning device for inspection cathode ray tube
JP2002048677A (en) Lens performance evaluator for camera

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20031007