JP7211773B2 - Image measuring machine and image measuring program - Google Patents

Image measuring machine and image measuring program Download PDF

Info

Publication number
JP7211773B2
JP7211773B2 JP2018214660A JP2018214660A JP7211773B2 JP 7211773 B2 JP7211773 B2 JP 7211773B2 JP 2018214660 A JP2018214660 A JP 2018214660A JP 2018214660 A JP2018214660 A JP 2018214660A JP 7211773 B2 JP7211773 B2 JP 7211773B2
Authority
JP
Japan
Prior art keywords
speed
image
amount
deviation
allowable range
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.)
Active
Application number
JP2018214660A
Other languages
Japanese (ja)
Other versions
JP2020085458A (en
Inventor
誠 海江田
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.)
Mitutoyo Corp
Original Assignee
Mitutoyo 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 Mitutoyo Corp filed Critical Mitutoyo Corp
Priority to JP2018214660A priority Critical patent/JP7211773B2/en
Publication of JP2020085458A publication Critical patent/JP2020085458A/en
Application granted granted Critical
Publication of JP7211773B2 publication Critical patent/JP7211773B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、ワークの画像を取り込んで測定を行う画像測定機に関するものである。 BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image measuring machine that captures an image of a workpiece and performs measurement.

画像測定機は、測定対象物(以下、「ワーク」とも称する。)の画像を取り込み、この画像を解析して、直線、円、多角形等の形状を抽出し、抽出した形状の距離、傾き、径、幅などの測定結果を得る装置である。 The image measuring machine captures an image of an object to be measured (hereinafter also referred to as a "work"), analyzes this image, extracts shapes such as straight lines, circles, polygons, etc., and measures the distance and inclination of the extracted shape. , diameter, and width.

このような画像測定機において、特許文献1、2には、予め測定手順を記録しておき、例えば同一形状のワークを測定する際、記録した測定手順を再現することができるパートプログラム機能について開示される。 In such a vision measuring machine, Patent Documents 1 and 2 disclose a part program function that records a measurement procedure in advance and reproduces the recorded measurement procedure when, for example, measuring a workpiece of the same shape. be done.

画像測定機においては、測定対象物の測定箇所を撮影領域の基準位置に合わせるようにステージの移動を行う。電動ステージを備えた画像測定機では、作業者がリモートボックスに設けられたジョイスティックなどを操作して電動ステージを移動して位置合わせを行う。手動タイプの画像測定機では、パートプログラムを実行している場合でもステージの移動は作業者のマニュアル操作で行うことになる。 In the image measuring machine, the stage is moved so that the measurement point of the object to be measured is aligned with the reference position of the imaging area. In an image measuring machine equipped with an electric stage, an operator operates a joystick or the like provided on a remote box to move the electric stage for alignment. In a manual-type image measuring machine, even when a part program is being executed, the stage must be moved manually by the operator.

電動ステージの移動方向はジョイスティックで指示可能であり、また移動速度は速度調節つまみを操作することで作業者の好みに合わせて設定することが可能である。このため、作業者は、ディスプレイに映るワークの画像を参照しながらジョイスティックを操作してステージを動かす。そして、測定箇所の画像が映ったらマウス操作でソフトウェア画面上に表示されている画像に対して、エッジ検出用の測定ツールを貼り付け、エッジ検出実行のボタン操作を画面上で行う。 The moving direction of the electric stage can be indicated by a joystick, and the moving speed can be set according to the operator's preference by operating a speed control knob. For this reason, the operator operates the joystick to move the stage while referring to the image of the work shown on the display. Then, when the image of the measurement point appears, a mouse operation is performed to paste the measurement tool for edge detection to the image displayed on the software screen, and the button operation for executing edge detection is performed on the screen.

基本的な測定操作は、測定箇所へのステージの移動と、取り込んだ画像からエッジ検出を行う操作である。この際、例えば右手でマウス操作、左手でジョイスティック操作(ステージ移動)というように、両手を使った操作を行う。 The basic measurement operation is to move the stage to the measurement point and perform edge detection from the captured image. At this time, operations are performed using both hands, for example, the mouse is operated with the right hand and the joystick is operated with the left hand (stage movement).

ここで、ジョイスティックを使用した電動ステージに対する位置決め操作は、ジョイスティックのレバーの倒し角の微妙な調整が必要であり、作業者にとっては、意外に難しい操作で慣れが必要となる。そのため、ステージの移動速度を調節する速度調節つまみを操作しながらジョイスティックを操作して位置決め時の微動操作を行うことになる。 Here, the positioning operation for the electric stage using the joystick requires fine adjustment of the inclination angle of the lever of the joystick. Therefore, the joystick is operated while operating the speed control knob for adjusting the moving speed of the stage to perform the fine movement operation at the time of positioning.

特公平3-57403号公報Japanese Patent Publication No. 3-57403 特開2003-139520号公報Japanese Patent Application Laid-Open No. 2003-139520

しかしながら、測定箇所近傍での位置決め微調整の際、片方の手(例えば左手)だけではステージ移動させながらの速度調節はできない。この際、片手で速度調節つまみとジョイスティックを持ち替えることで調整は可能だが、ジョイスティックを操作しながらの速度調節が可能である点のメリットを活かせない。 However, when finely adjusting the position near the measurement point, it is not possible to adjust the speed while moving the stage with only one hand (for example, the left hand). At this time, it is possible to adjust the speed by switching between the speed control knob and the joystick with one hand, but the advantage of being able to adjust the speed while operating the joystick cannot be utilized.

先に説明したように画像測定機で測定操作を行う場合は、例えば右手でマウス操作、左手でジョイスティック操作(ステージ移動)という操作が主となることから、両手でリモートボックスの操作(右手:ジョイスティック、左手:速度調節つまみ)を行った場合は、右手の操作をマウスとジョイスティックとで持ち替える必要があり、測定操作(エッジ検出)の作業効率が悪くなる。 As explained earlier, when performing measurement operations with a vision measuring machine, the main operations are, for example, the mouse operation with the right hand and the joystick operation (stage movement) with the left hand. , left hand: speed control knob), it is necessary to switch the operation of the right hand between the mouse and the joystick, which deteriorates the working efficiency of the measurement operation (edge detection).

本発明は、電動ステージを搭載するマニュアルタイプの測定機の操作の使い勝手を向上し、作業効率化を図ることができる画像測定機および画像測定プログラムを提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide an image measuring instrument and an image measuring program capable of improving the usability of the operation of a manual type measuring instrument equipped with an electric stage and increasing work efficiency.

本発明の一態様は、測定対象物の画像から測定対象物の寸法を測定する画像測定機であって、測定対象物の画像を撮像する撮像手段と、測定対象物と撮像手段による撮影領域との相対的な位置を移動させる移動手段と、作業者によって操作され、移動方向の指示を受ける操作手段と、操作手段で受けた移動方向に沿って移動手段を制御する制御手段と、を備え、制御手段は、測定対象物の測定目標点と撮影領域の基準点とのずれ量に応じて移動手段による移動速度を調整することを特徴とする。 One aspect of the present invention is an image measuring machine that measures the dimensions of an object to be measured from an image of the object, comprising an imaging unit that captures an image of the object to be measured; moving means for moving the relative position of, operating means operated by the operator to receive an instruction of the moving direction, and control means for controlling the moving means along the moving direction received by the operating means, The control means is characterized in that the moving speed of the moving means is adjusted in accordance with the amount of deviation between the measurement target point of the object to be measured and the reference point of the photographing area.

このような構成によれば、測定対象物と撮像手段による撮影領域との相対的な位置を移動手段によって移動させる際、測定対象物の測定目標点と撮影領域の基準点とのずれ量に応じて移動手段による移動速度が調整される。これにより、ずれ量によって作業者が操作しやすい移動速度に自動的に調整されることになる。 According to such a configuration, when moving the relative position between the object to be measured and the imaging area by the imaging means by the moving means, is used to adjust the moving speed of the moving means. As a result, the moving speed is automatically adjusted according to the amount of deviation so that the operator can easily operate the moving speed.

上記画像測定機において、制御手段は、前記ずれ量が予め設定された許容範囲を超えている場合、移動速度を第1速度に設定し、前記ずれ量が許容範囲内の場合、移動速度を第1速度よりも遅い第2速度に設定することが好ましい。これにより、作業者による操作手段の同じ操作量であっても、ずれ量が許容範囲を超えている場合には素早く移動し、ずれ量が許容範囲内に入った場合にはゆっくりと移動できるようになる。 In the image measuring machine, the control means sets the moving speed to a first speed when the amount of deviation exceeds a preset allowable range, and sets the moving speed to a first speed when the amount of deviation is within the allowable range. It is preferable to set a second speed that is slower than the first speed. As a result, even if the amount of operation of the operation means by the operator is the same, if the amount of deviation exceeds the allowable range, the robot moves quickly, and if the amount of deviation falls within the allowable range, it moves slowly. become.

上記画像測定機において、制御手段は、前記ずれ量が許容範囲内になって移動速度を第2速度に設定し、測定箇所の測定を行った後、次の測定目標点への移動を行う場合、移動速度を第2速度よりも速い第3速度に設定することが好ましい。これにより、測定箇所の測定が完了し、次の測定箇所へ移動する際には素早く移動できるようになる。 In the above image measuring machine, when the control means sets the movement speed to the second speed when the amount of deviation falls within the allowable range, measures the measurement point, and then moves to the next measurement target point. , the moving speed is preferably set to a third speed that is faster than the second speed. As a result, the measurement of the measurement point is completed, and when moving to the next measurement point, it becomes possible to move quickly.

上記画像測定機において、制御手段は、前記ずれ量が許容範囲を超えているところから許容範囲に近づくにしたがい移動速度を漸減させることが好ましい。これにより、ずれ量が許容範囲に近づくと、徐々に移動速度が遅くなって位置決めしやすくなる。 In the image measuring machine, it is preferable that the control means gradually decrease the moving speed as the amount of deviation approaches the allowable range from a point where the amount exceeds the allowable range. As a result, when the amount of deviation approaches the allowable range, the moving speed gradually slows down, making positioning easier.

上記画像測定機において、音出力手段をさらに備え、制御手段は、前記ずれ量が許容範囲を超えている場合、音出力手段から第1の音を出力し、ずれ量が前記許容範囲内の場合、音出力手段から第1の音とは異なる第2の音を出力する制御を行ってもよい。これにより、ずれ量が許容範囲内に入ったことを音で認識できるようになる。 The image measuring instrument further includes sound output means, wherein the control means outputs a first sound from the sound output means when the amount of deviation exceeds the allowable range, and outputs a first sound when the amount of deviation is within the allowable range. Alternatively, control may be performed to output a second sound different from the first sound from the sound output means. This makes it possible to recognize by sound that the amount of deviation is within the allowable range.

上記画像測定機において、撮像手段で撮像した画像を表示する表示手段をさらに備え、制御手段は、設定されている移動速度を表示手段に表示させる制御を行ってもよい。これにより、現在設定されている移動速度を視覚で把握できるようになる。 The image measuring machine may further include display means for displaying the image captured by the imaging means, and the control means may perform control to display the set moving speed on the display means. This makes it possible to visually grasp the currently set movement speed.

本発明の他の一態様は、測定対象物の画像から測定対象物の寸法を測定する画像測定機を制御する画像測定プログラムであって、コンピュータに、測定対象物の画像を撮像するステップと、作業者による操作手段の操作に基づく移動方法の指示を受けて、測定対象物と撮影領域との相対的な位置を移動させるステップと、測定対象物の測定目標点と撮影領域の基準点とのずれ量に応じて測定対象物と撮影領域との相対的な位置の移動速度を調整するステップと、を実行させることを特徴とする。 Another aspect of the present invention is an image measurement program for controlling an image measuring machine for measuring dimensions of an object to be measured from an image of the object, the program comprising: capturing an image of the object to be measured in a computer; a step of moving the relative positions of the object to be measured and the photographing area in response to an instruction of a movement method based on the operation of the operation means by the operator; and a step of adjusting the moving speed of the relative position between the object to be measured and the imaging region according to the amount of deviation.

このような構成によれば、測定対象物と撮影領域との相対的な位置を移動させる際、測定対象物の測定目標点と撮影領域の基準点とのずれ量に応じて移動速度が調整される。これにより、ずれ量によって作業者が操作しやすい移動速度に自動的に調整されることになる。 According to such a configuration, when moving the relative positions of the object to be measured and the imaging region, the moving speed is adjusted according to the amount of deviation between the measurement target point of the object to be measured and the reference point of the imaging region. be. As a result, the moving speed is automatically adjusted according to the amount of deviation so that the operator can easily operate the moving speed.

上記画像測定プログラムにおいて、移動速度を調整するステップでは、前記ずれ量が予め設定された許容範囲を超えている場合、移動速度を第1速度に設定し、前記ずれ量が前記許容範囲内の場合、移動速度を第1速度よりも遅い第2速度に設定することが好ましい。これにより、作業者による操作手段の同じ操作量であっても、ずれ量が許容範囲を超えている場合には素早く移動し、ずれ量が許容範囲内に入った場合にはゆっくりと移動できるようになる。 In the above image measurement program, in the step of adjusting the moving speed, if the amount of deviation exceeds a preset allowable range, the moving speed is set to a first speed, and if the amount of deviation is within the allowable range , the moving speed is preferably set to a second speed that is slower than the first speed. As a result, even if the amount of operation of the operation means by the operator is the same, if the amount of deviation exceeds the allowable range, the robot moves quickly, and if the amount of deviation falls within the allowable range, it moves slowly. become.

上記画像測定プログラムにおいて、移動速度を調整するステップでは、前記ずれ量が許容範囲内になって移動速度を第2速度に設定し、測定箇所の測定を行った後、次の測定目標点への移動を行う場合、移動速度を第2速度よりも速い第3速度に設定することが好ましい。これにより、測定箇所の測定が完了し、次の測定箇所へ移動する際には素早く移動できるようになる。 In the above image measurement program, in the step of adjusting the moving speed, the moving speed is set to the second speed when the amount of deviation is within the allowable range, and after measuring the measurement point, moving to the next measurement target point. When moving, it is preferable to set the moving speed to a third speed that is faster than the second speed. As a result, the measurement of the measurement point is completed, and when moving to the next measurement point, it becomes possible to move quickly.

上記画像測定プログラムにおいて、移動速度を調整するステップでは、前記ずれ量が許容範囲を超えているところから許容範囲に近づくにしたがい移動速度を漸減させることが好ましい。これにより、ずれ量が許容範囲に近づくと、徐々に移動速度が遅くなって位置決めしやすくなる。 In the above image measurement program, it is preferable that, in the step of adjusting the moving speed, the moving speed is gradually decreased as the amount of deviation approaches the allowable range from a point where the deviation exceeds the allowable range. As a result, when the amount of deviation approaches the allowable range, the moving speed gradually slows down, making positioning easier.

上記画像測定プログラムにおいて、移動速度を調整するステップでは、前記ずれ量が許容範囲を超えている場合、第1の音を出力し、前記ずれ量が許容範囲内の場合、第1の音とは異なる第2の音を出力するようにしてもよい。これにより、ずれ量が許容範囲内に入ったことを音で認識できるようになる。 In the image measurement program, in the step of adjusting the moving speed, if the amount of deviation exceeds the allowable range, a first sound is output, and if the amount of deviation is within the allowable range, the first sound is A different second sound may be output. This makes it possible to recognize by sound that the amount of deviation is within the allowable range.

上記画像測定プログラムにおいて、移動速度を調整するステップでは、設定されている移動速度を表示手段に表示させるようにしてもよい。これにより、現在設定されている移動速度を視覚で把握できるようになる。 In the image measurement program, the step of adjusting the moving speed may display the set moving speed on the display means. This makes it possible to visually grasp the currently set movement speed.

本実施形態に係る画像測定機を例示する斜視図である。1 is a perspective view illustrating an image measuring machine according to an embodiment; FIG. 操作手段を例示する斜視図である。It is a perspective view which illustrates an operation means. 本実施形態に係る画像測定機の制御系の構成を例示するブロック図である。2 is a block diagram illustrating the configuration of the control system of the image measuring machine according to the embodiment; FIG. (a)~(c)は、ずれ量によるディスプレイ表示の例を示す図である。(a) to (c) are diagrams showing examples of display according to the amount of deviation. ステージ位置と移動速度との関係を示す図である。It is a figure which shows the relationship between a stage position and a moving speed. (a)および(b)は、ずれ量が許容範囲に入った際のディスプレイの表示例を示す図である。(a) and (b) are diagrams showing display examples of the display when the deviation amount is within the allowable range. 自動速度設定を無効にした場合のステージ位置と移動速度との関係を示す図である。FIG. 10 is a diagram showing the relationship between stage position and movement speed when automatic speed setting is disabled; (a)および(b)は、移動速度レベルの表示例を示す図である。(a) and (b) are diagrams showing display examples of moving speed levels. 本実施形態に係る画像測定方法を例示するフローチャートである。4 is a flow chart illustrating an image measurement method according to the present embodiment;

以下、本発明の実施形態を図面に基づいて説明する。なお、以下の説明では、同一の部材には同一の符号を付し、一度説明した部材については適宜その説明を省略する。 BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below with reference to the drawings. In the following description, the same members are denoted by the same reference numerals, and the description of members that have already been described will be omitted as appropriate.

〔画像測定機の構成〕
図1は、本実施形態に係る画像測定機を例示する斜視図である。
図2は、操作手段を例示する斜視図である。
本実施形態に係る画像測定機1は、測定対象物であるワークWの画像を取り込み、この画像からワークWの所定箇所の寸法を測定する装置である。
画像測定機1は、ワークWの画像を取り込む撮像手段10と、ワークWと撮像手段10の撮影領域との相対的な位置を移動させる移動手段20と、作業者によって操作される操作手段30と、移動手段20を制御する制御手段40とを備える。
[Configuration of image measuring machine]
FIG. 1 is a perspective view illustrating an image measuring machine according to this embodiment.
FIG. 2 is a perspective view illustrating the operating means.
The image measuring machine 1 according to the present embodiment is a device that captures an image of a workpiece W, which is an object to be measured, and measures the dimensions of a predetermined portion of the workpiece W from this image.
The image measuring machine 1 includes imaging means 10 for capturing an image of the workpiece W, moving means 20 for moving the relative positions of the workpiece W and the imaging area of the imaging means 10, and operating means 30 operated by an operator. , and control means 40 for controlling the moving means 20 .

撮像手段10は、カメラ11と光学系12とを有しており、高さ方向(Z軸方向)に上下動できるように設けられる。光学系12はワークWに照明光を照射するとともに、ワークWの像をカメラ11の受光面に結像する。ワークWの像はカメラ11で画像(画像データ)に変換され、制御手段40へ送られる。 The imaging means 10 has a camera 11 and an optical system 12, and is provided so as to be vertically movable in the height direction (Z-axis direction). The optical system 12 irradiates the work W with illumination light and forms an image of the work W on the light receiving surface of the camera 11 . The image of the workpiece W is converted into an image (image data) by the camera 11 and sent to the control means 40 .

移動手段20は、ワークWを載置するステージ21と、ステージ21を水平方向の2軸(X軸方向およびY軸方向)に移動させる駆動部22とを有する。駆動部22は電動によってステージ21を水平方向に移動させる。これにより、電動XYステージが構成される。 The moving means 20 has a stage 21 on which the workpiece W is placed, and a drive section 22 for moving the stage 21 in two horizontal axes (X-axis direction and Y-axis direction). The drive unit 22 electrically moves the stage 21 in the horizontal direction. This constitutes an electric XY stage.

操作手段30はリモートボックスであり、作業者の操作によって移動方向や移動速度、照明光の調整などの指示を受ける。操作手段30には移動方向の指示を受けるジョイスティック31が設けられる。作業者がジョイスティック31を操作することで、ステージ21を移動させる方向を受ける。操作手段30には、速度調節つまみ32が設けられる。速度調節つまみ32を回すことで、ステージ21の移動速度を調整することができる。この他、操作手段30には、調光つまみ33および非常停止ボタン35が設けられる。 The operating means 30 is a remote box, and receives instructions such as the direction of movement, the speed of movement, and the adjustment of illumination light by the operator's operation. The operation means 30 is provided with a joystick 31 for receiving a direction of movement. The operator operates the joystick 31 to receive the direction in which the stage 21 is to be moved. The operating means 30 is provided with a speed control knob 32 . By turning the speed control knob 32, the moving speed of the stage 21 can be adjusted. In addition, the operating means 30 is provided with a dimming knob 33 and an emergency stop button 35 .

このような移動手段20および操作手段30によって、本実施形態に係る画像測定機1は、電動で移動可能なステージ21を作業者の操作で動かし測定を行うマニュアル式の画像測定機1が構成される。 With such moving means 20 and operating means 30, the image measuring machine 1 according to the present embodiment constitutes a manual type image measuring machine 1 in which the electrically movable stage 21 is operated by the operator to perform measurement. be.

制御手段40は測定機本体に設けられる。制御手段40は、リモートボックスのジョイスティック31で受けた移動方向に沿って駆動部22に指示を与え、ステージ21をジョイスティック31に対応した方向に移動させる制御を行う。この際、制御手段40は、リモートボックスの速度調節つまみ32で設定された速度レベルでステージ21を移動させる。すなわち、ジョイスティック31の操作量が同じであっても、速度調節つまみ32で設定された速度レベルに応じた移動速度でステージ21が移動することになる。 The control means 40 is provided in the main body of the measuring machine. The control means 40 gives an instruction to the drive section 22 along the movement direction received by the joystick 31 of the remote box, and controls the stage 21 to move in the direction corresponding to the joystick 31 . At this time, the control means 40 moves the stage 21 at the speed level set by the speed control knob 32 of the remote box. That is, even if the amount of operation of the joystick 31 is the same, the stage 21 moves at a moving speed corresponding to the speed level set by the speed control knob 32 .

例えば、ステージ21を大きく移動したい場合には速度調節つまみ32により高速に設定する。これによりジョイスティック31の僅かな操作でも高速にステージ21を移動させることができる。一方、ステージ21の位置を微調整したいときは、速度調節つまみ32により低速に設定する。これにより、ジョイスティック31を大きく操作してもステージ21は低速で移動するため、位置合わせの微調整を行いやすくなる。 For example, when it is desired to move the stage 21 by a large amount, the speed adjustment knob 32 is set to a high speed. As a result, the stage 21 can be moved at high speed even with a slight operation of the joystick 31 . On the other hand, when it is desired to finely adjust the position of the stage 21, the speed adjustment knob 32 is set to a low speed. As a result, even if the joystick 31 is greatly operated, the stage 21 moves at a low speed, which facilitates fine adjustment of alignment.

また、本実施形態に係る画像測定機1において、制御手段40は、ワークWの測定目標点と、撮像手段10による撮影領域の基準点とのずれ量に応じて移動手段20による移動速度を自動的に調整する制御を行う。すなわち、測定目標点と基準点とのずれ量に応じて作業者にとって操作しやすいステージ21の移動速度が自動的に設定される。具体的な速度制御については後述する。 Further, in the image measuring machine 1 according to the present embodiment, the control means 40 automatically adjusts the moving speed of the moving means 20 according to the amount of deviation between the measurement target point of the work W and the reference point of the imaging area of the imaging means 10. control to adjust accordingly. That is, the moving speed of the stage 21 that is easy for the operator to operate is automatically set according to the amount of deviation between the measurement target point and the reference point. Specific speed control will be described later.

画像測定機1は、ジョイスティック31から送られる指示に応じてステージ21を移動させ、ワークWの測定を行うことができる。この画像測定機1にはコンピュータ100が接続されていてもよい。コンピュータ100は、本体101と、入力手段であるキーボード102およびマウス103と、出力手段であるディスプレイ104とを備える。制御手段40による各種の処理を、本体101で実行されるプログラム処理によって実現してもよい。 The image measuring machine 1 can measure the workpiece W by moving the stage 21 according to instructions sent from the joystick 31 . A computer 100 may be connected to the image measuring machine 1 . The computer 100 includes a main body 101, a keyboard 102 and a mouse 103 as input means, and a display 104 as output means. Various kinds of processing by the control means 40 may be realized by program processing executed by the main body 101 .

図3は、本実施形態に係る画像測定機の制御系の構成を例示するブロック図である。
カメラ11で捉えられたワークWの画像信号は、AD変換部415でデジタル画像データに変換され、画像メモリ416に格納される。画像メモリ416に格納されたデジタル画像データは、表示制御部437の動作によりディスプレイ104に表示される。
FIG. 3 is a block diagram illustrating the configuration of the control system of the image measuring machine according to this embodiment.
An image signal of the workpiece W captured by the camera 11 is converted into digital image data by the AD converter 415 and stored in the image memory 416 . The digital image data stored in the image memory 416 is displayed on the display 104 by the operation of the display control section 437 .

キーボード102およびマウス103からの作業者の指令は、インターフェイス(I/F)438を介してCPU439に伝えられる。CPU439は、作業者の指令またはプログラムメモリ440に格納されたパートプログラムに従って測定処理を実行する。ワークメモリ441は、CPU439の各種処理のための作業領域を提供する。 An operator's command from keyboard 102 and mouse 103 is transmitted to CPU 439 via interface (I/F) 438 . The CPU 439 executes measurement processing in accordance with an operator's command or a part program stored in the program memory 440 . A work memory 441 provides a work area for various processes of the CPU 439 .

CPU439は、操作手段30のジョイスティック31で受けた移動方向の指示を受けて、ジョイスティック31の移動方向に対応してX軸モータ252およびY軸モータ253を駆動し、ステージ21をXY軸に沿って移動させる。また、CPU439は、Z軸モータ254を駆動し、撮像手段10をZ軸に沿って移動させる。 The CPU 439 receives a movement direction instruction received by the joystick 31 of the operation means 30, drives the X-axis motor 252 and the Y-axis motor 253 corresponding to the movement direction of the joystick 31, and moves the stage 21 along the XY axes. move. Also, the CPU 439 drives the Z-axis motor 254 to move the imaging means 10 along the Z-axis.

また、ステージ21に対するカメラ11のX軸、Y軸、Z軸方向の位置をそれぞれ検出するために、X軸エンコーダ242、Y軸エンコーダ243およびZ軸エンコーダ244が設けられている。X軸エンコーダ242、Y軸エンコーダ243およびZ軸エンコーダ244の出力は、CPU439に取り込まれる。照明制御部445は、CPU439で生成された指令値に基づいてアナログ量の指令電圧を生成し、照明装置121を駆動する。 An X-axis encoder 242 , a Y-axis encoder 243 and a Z-axis encoder 244 are provided to detect the positions of the camera 11 in the X-axis, Y-axis, and Z-axis directions with respect to the stage 21 . The outputs of the X-axis encoder 242 , Y-axis encoder 243 and Z-axis encoder 244 are taken into the CPU 439 . The lighting control unit 445 generates an analog amount of command voltage based on the command value generated by the CPU 439 to drive the lighting device 121 .

〔ディスプレイ表示の例〕
次に、測定動作でのディスプレイ104の表示例について説明する。
図4(a)~(c)は、ずれ量によるディスプレイ表示の例を示す図である。
測定手順を記録しているパートプログラムを実行した際、作業者は記録されている測定手順に従い、測定箇所へステージ21を移動させる操作を行う。マニュアル式の画像測定機1ではリモートボックスのジョイスティック31などを利用して、手動操作でステージ21を動かす。
[Example of display]
Next, a display example of the display 104 in the measurement operation will be described.
FIGS. 4(a) to 4(c) are diagrams showing examples of display according to the amount of deviation.
When the part program in which the measurement procedure is recorded is executed, the operator moves the stage 21 to the measurement location according to the recorded measurement procedure. In the manual type image measuring machine 1, the stage 21 is manually operated using the joystick 31 of the remote box or the like.

マニュアル測定機用のアプリケーションソフトウェアを実行すると、ステージ移動コマンド実行時、ソフトウェアによって表示される画面のウィンドウ(カメラ撮像画面)上に、撮影領域の基準点P1と現在のステージ位置とのズレ量を示すガイドが表示される。 When the application software for the manual measuring machine is executed, when the stage movement command is executed, the amount of deviation between the reference point P1 of the shooting area and the current stage position is displayed on the screen window (camera imaging screen) displayed by the software. A guide will appear.

ガイド表示としては、例えば、図4(a)~(c)に示すような第1十字線CR1と第2十字線CR2の2つの十字線である。第1十字線CR1の交差点は現在のステージ位置における撮影領域の基準点P1を示す。基準点P1は、撮影領域の中央に自動的に設定される。撮影領域に表示される十字線の交差点位置が基準点P1になる。第2十字線CR2は、測定目標点TPと撮影領域の基準点P1とのずれの方向を、第1十字線CR1を基準として示すガイド表示である。測定目標点TPは、パートプログラムを記録する際、エッジ検出用の測定ツールを実行した位置である。すなわち、パートプログラムに記録されている座標位置が適用される。パートプログラム実行開始後、現在のステージ位置(撮影領域画面の中心位置)が測定ツール実行位置とずれている場合、画面にずれ量を示すガイドが表示される。なお、ディスプレイ104の横方向(左右方向)はX軸方向、縦方向(上下方向)はY軸方向である。 The guide display is, for example, two crosshairs, a first crosshair CR1 and a second crosshair CR2, as shown in FIGS. 4(a) to 4(c). The crossing point of the first cross line CR1 indicates the reference point P1 of the imaging area at the current stage position. The reference point P1 is automatically set at the center of the imaging area. The intersection position of the crosshairs displayed in the photographing area becomes the reference point P1. The second cross line CR2 is a guide display that indicates the direction of deviation between the measurement target point TP and the reference point P1 of the imaging region with reference to the first cross line CR1. The measurement target point TP is the position where the edge detection measurement tool is executed when the part program is recorded. That is, the coordinate positions recorded in the part program are applied. After the start of execution of the part program, if the current stage position (the center position of the imaging area screen) deviates from the measurement tool execution position, a guide indicating the amount of deviation is displayed on the screen. The horizontal direction (horizontal direction) of the display 104 is the X-axis direction, and the vertical direction (vertical direction) is the Y-axis direction.

図4(a)は、X軸およびY軸の両方向にずれ量が発生している場合の表示例である。
X軸およびY軸の両方にずれ量が発生している場合、第1十字線CR1に対して第2十字線CR2がX方向およびY方向のそれぞれにずれて表示される。この例では、第1十字線CR1の交差点(基準点P1)に対して第2十字線CR2の交差点P2が右下に示されている。作業者は、このガイド表示によって、測定目標点TPが撮影領域の基準点P1に対して右下にずれていることを認識することができる。
FIG. 4(a) is a display example in the case where deviations occur in both the X-axis and Y-axis directions.
When there is a shift amount in both the X-axis and the Y-axis, the second cross line CR2 is displayed shifted in the X direction and the Y direction with respect to the first cross line CR1. In this example, the crossing point P2 of the second cross line CR2 is shown to the lower right with respect to the crossing point (reference point P1) of the first cross line CR1. The operator can recognize from this guide display that the measurement target point TP is deviated to the lower right with respect to the reference point P1 of the photographing area.

また、ずれが発生している場合、第2十字線CR2はそれを示す色で表示される。図4(a)に示す例では、X軸およびY軸の両方にずれが発生しているため、第2十字線CR2の縦線および横線の両方が赤色で表示される。なお、ここではずれている場合に赤色で表示しているが、他の色であってもよいし、例えば点滅などの他の態様で表示してもよい。 Also, if there is a deviation, the second cross line CR2 is displayed in a color that indicates it. In the example shown in FIG. 4A, both the vertical and horizontal lines of the second crosshair CR2 are displayed in red because there is a deviation on both the X-axis and the Y-axis. Here, the misalignment is displayed in red, but it may be displayed in another color, or may be displayed in another manner such as blinking.

図4(b)は、X軸に沿ったずれ量のみ許容範囲に入った場合の表示例である。
作業者はジョイスティック31を操作してステージ21を移動することで、測定目標点TPと撮影領域の基準点P1とのずれをなくすように位置合わせする。このステージ21の移動によって例えばX軸に沿ったずれ量が予め設定された許容範囲に入った場合、第1十字線CR1の縦線と第2十字線CR2の縦線とが合致し、縦線の色が合致したことを示す色(例えば、緑色)に変化する。
FIG. 4B is a display example when only the deviation amount along the X-axis is within the allowable range.
By operating the joystick 31 to move the stage 21, the operator aligns the measurement target point TP and the reference point P1 of the photographing area so as to eliminate the deviation. When the displacement amount along the X-axis, for example, falls within a preset allowable range due to this movement of the stage 21, the vertical line of the first cross line CR1 and the vertical line of the second cross line CR2 match, and the vertical line changes to a color (eg, green) to indicate that the color of the

一方、Y軸に沿ったずれは残っているため、第1十字線CR1の交差点(基準点P1)に対して第2十字線CR2の交差点P2は下にずれに表示される。また、第1十字線CR1の横線に対して第2十字線CR2の横線との間にずれがあり、第2十字線CR2の横線は、ずれていることを示す赤色で表示される。 On the other hand, since the deviation along the Y-axis remains, the intersection P2 of the second cross line CR2 is displayed below the intersection (reference point P1) of the first cross line CR1. Also, there is a deviation between the horizontal line of the first cross line CR1 and the horizontal line of the second cross line CR2, and the horizontal line of the second cross line CR2 is displayed in red to indicate the deviation.

図4(c)は、X軸およびY軸の両方についてずれ量が許容範囲に入った場合の表示例である。
作業者の操作によって測定目標点TPと撮影領域の基準点P1とのXY方向のずれ量が許容範囲に入ると、第1十字線CR1に対して第2十字線CR2が重なり、縦線および横線の色が合致したことを示す色(例えば、緑色)に変化する。作業者は、第1十字線CR1と第2十字線CR2との重なりや色の変化によってずれ量が許容範囲内に入ったことを認識することができる。
FIG. 4(c) is a display example when the amount of deviation is within the allowable range for both the X-axis and the Y-axis.
When the amount of deviation in the XY direction between the measurement target point TP and the reference point P1 of the photographing area falls within the permissible range due to the operator's operation, the second cross line CR2 overlaps the first cross line CR1, and the vertical and horizontal lines are displayed. changes to a color (eg, green) to indicate that the color of the The operator can recognize that the amount of deviation is within the allowable range by the overlap of the first crosshair CR1 and the second crosshair CR2 and the change in color.

〔移動速度の自動調整の例〕
次に、制御手段40による移動速度の自動調整の例について説明する。
図5は、ステージ位置と移動速度との関係を示す図である。
図5に示す横軸はステージ21の現在位置であり、縦軸はステージ21の移動速度である。なお、図5に示すステージ位置と移動速度との関係は一例であり、これに限定されるものではない。
[Example of automatic adjustment of movement speed]
Next, an example of automatic adjustment of the moving speed by the control means 40 will be described.
FIG. 5 is a diagram showing the relationship between stage position and movement speed.
The horizontal axis shown in FIG. 5 is the current position of the stage 21 and the vertical axis is the moving speed of the stage 21 . Note that the relationship between the stage position and the moving speed shown in FIG. 5 is an example, and the present invention is not limited to this.

本実施形態に係る画像測定機1において、制御手段40は、ワークWの測定目標点TPと、撮像手段10による撮影領域の基準点P1とのずれ量に応じて移動手段20による移動速度を調整する制御を行う。ここで、撮影領域の基準点P1はステージ21の現在位置と等価である。図5に示すように、ステージ21の現在位置について測定目標点TPを中心とした許容範囲を設定しておく。許容範囲は、現在位置と測定目標点TPとのずれ量の許容範囲である。このずれ量が許容範囲内であれば取得した画像から測定を行うことができる。 In the image measuring machine 1 according to this embodiment, the control means 40 adjusts the moving speed of the moving means 20 according to the amount of deviation between the measurement target point TP of the workpiece W and the reference point P1 of the imaging area of the imaging means 10. to control. Here, the reference point P1 of the photographing area is equivalent to the current position of the stage 21. FIG. As shown in FIG. 5, an allowable range centering on the measurement target point TP is set for the current position of the stage 21 . The allowable range is the allowable range of deviation between the current position and the measurement target point TP. If this amount of deviation is within the allowable range, measurement can be performed from the acquired image.

ステージ21の現在位置が許容範囲から外れている場合、制御手段40はステージ21の移動速度を第1速度V1に設定する。これにより、作業者によるジョイスティック31の操作でステージ21を素早く移動でき、測定目標点TPから離れていても迅速に近づけることができる。 When the current position of the stage 21 is out of the allowable range, the control means 40 sets the moving speed of the stage 21 to the first speed V1. As a result, the stage 21 can be quickly moved by the operator's operation of the joystick 31, and even if it is away from the measurement target point TP, it can be quickly approached.

一方、ステージ21の現在位置が許容範囲内になっている場合、制御手段40はステージ21の移動速度を第1速度V1よりも遅い第2速度V2に設定する。ステージ21の現在位置が測定目標点TPに近づいて許容範囲内に入ると、微調整によって位置合わせする必要がある。この際、ステージ21の移動速度が自動的に第2速度V2に設定され、ジョイスティック31の操作でステージ21を微動しやすくなる。 On the other hand, when the current position of the stage 21 is within the allowable range, the control means 40 sets the moving speed of the stage 21 to a second speed V2 that is lower than the first speed V1. When the current position of the stage 21 approaches the measurement target point TP and falls within the allowable range, alignment must be performed by fine adjustment. At this time, the moving speed of the stage 21 is automatically set to the second speed V2, making it easier to finely move the stage 21 by operating the joystick 31 .

このようにステージ21の現在位置と測定目標点TPとのずれ量が許容範囲を超えている場合には相対的に速い第1速度V1に設定され、許容範囲内の場合には相対的に遅い第2速度V2に設定されていることで、作業者による速度調節つまみ32の操作によらずステージ21の移動速度を位置合わせしやすい速度に自動的に調整することができる。 Thus, when the amount of deviation between the current position of the stage 21 and the measurement target point TP exceeds the allowable range, the first velocity V1 is set to be relatively fast, and when within the allowable range, the velocity is set to be relatively slow. Since the second speed V2 is set, the moving speed of the stage 21 can be automatically adjusted to a speed that facilitates alignment regardless of the operation of the speed adjusting knob 32 by the operator.

作業者は、ジョイスティック31の操作量が同じであっても、ずれ量が許容範囲を超えている場合には素早くステージ21を移動でき、ずれ量が許容範囲内に入った場合には速度調節つまみ32を回すことなくゆっくりと移動できるようになる。 Even if the operation amount of the joystick 31 is the same, the operator can quickly move the stage 21 when the amount of deviation exceeds the allowable range, and when the amount of deviation is within the allowable range, the speed adjustment knob can be moved. Allows you to move slowly without turning 32.

また、制御手段40は、移動速度を第2速度V2に設定し、測定箇所の測定を行った後、次の測定目標点TPへの移動を行う場合、移動速度を第2速度V2よりも速い第3速度(例えば、第1速度V1)に設定するようにしてもよい。これにより、一つの測定箇所の測定が完了し、次の測定箇所へ移動する際には、再び素早くステージ21を移動して次の測定箇所へ迅速に移動できるようになる。 Further, when the control means 40 sets the moving speed to the second speed V2 and moves to the next measurement target point TP after measuring the measurement point, the moving speed is set faster than the second speed V2. A third speed (for example, the first speed V1) may be set. As a result, when the measurement of one measurement location is completed and the next measurement location is to be moved, the stage 21 can be quickly moved again to quickly move to the next measurement location.

なお、第1速度V1は、速度調節つまみ32によって設定された速度レベルに対応した移動速度であってもよい。また、ずれ量が許容範囲を超えているところから許容範囲に近づくにしたがい移動速度を第1速度V1から第2速度V2に漸減させる減速領域を設けることが好ましい。これにより、ずれ量が許容範囲に近づくと、徐々に移動速度が第1速度V1から第2速度V2へと遅くなって、位置決めを行いやすくなる。 Note that the first speed V1 may be a moving speed corresponding to the speed level set by the speed adjustment knob 32 . Further, it is preferable to provide a deceleration region in which the moving speed is gradually decreased from the first speed V1 to the second speed V2 as the deviation approaches the allowable range from the point where the deviation exceeds the allowable range. As a result, when the amount of deviation approaches the allowable range, the moving speed gradually slows down from the first speed V1 to the second speed V2, thereby facilitating positioning.

図6(a)および(b)は、ずれ量が許容範囲に入った際のディスプレイの表示例を示す図である。
図6(b)には図6(a)のA部の拡大図が示される。
ディスプレイ104にガイド表示を行うアプリケーションソフトウェアは、予め設定された位置決めの許容範囲と連動して、ステージ21の移動速度の自動調整を行う。第1十字線CR1に対して第2十字線CR2が許容範囲に入ると、許容範囲に入ったことを示す色に表示が変化する。
FIGS. 6A and 6B are diagrams showing display examples when the amount of deviation is within the allowable range.
FIG. 6(b) shows an enlarged view of part A in FIG. 6(a).
The application software that displays the guide on the display 104 automatically adjusts the moving speed of the stage 21 in conjunction with the preset allowable positioning range. When the second crosshair CR2 enters the allowable range with respect to the first crosshair CR1, the display changes to a color indicating that it has entered the allowable range.

また、これとともにステージ21の移動速度が第1速度V1から第2速度V2に設定される。なお、急激な速度変化を回避するため、ステージ21が許容範囲の外側の一定領域(減速領域)に到達したら、あらかじめ計算しておいた減速マップ(目標位置までの距離に対する速度設定対応データ)に応じた速度値をアプリケーションソフトウェアから測定機本体へコマンドで通知する。 Along with this, the moving speed of the stage 21 is set from the first speed V1 to the second speed V2. In order to avoid sudden changes in speed, when the stage 21 reaches a certain area (deceleration area) outside the allowable range, a pre-calculated deceleration map (speed setting correspondence data for the distance to the target position) is applied. The corresponding speed value is sent from the application software to the measuring instrument by a command.

制御手段40によるこのような自動速度設定は、有効/無効を切り替えられるようになっていてもよい。例えば、作業者の任意(スイッチや設定)によって有効この有効/無効を切り替えられるようにしておく。 Such automatic speed setting by the control means 40 may be enabled/disabled. For example, enable/disable can be switched arbitrarily by the operator (switch or setting).

図7は、自動速度設定を無効にした場合のステージ位置と移動速度との関係を示す図である。
自動速度設定を無効にした場合には、ステージ21の現在位置にかかわらず移動速度は第1速度V1に固定されている。第1速度V1は、速度調節つまみ32によって設定された速度レベルに対応した移動速度であってもよい。
FIG. 7 is a diagram showing the relationship between the stage position and the moving speed when the automatic speed setting is disabled.
When the automatic speed setting is disabled, the moving speed is fixed at the first speed V1 regardless of the current position of the stage 21. FIG. The first speed V1 may be a moving speed corresponding to the speed level set by the speed control knob 32. FIG.

また、本実施形態に係る画像測定機1は音出力手段であるスピーカ105(図1参照)をさらに備えていてもよい。スピーカ105は例えばコンピュータ100の本体101に内蔵される。制御手段40は、ずれ量が許容範囲を超えている場合、スピーカ105から第1の音を出力し、ずれ量が許容範囲内の場合、スピーカ105から第1の音とは異なる第2の音を出力する制御を行ってもよい。これにより、ずれ量が許容範囲内に入ったことを音で認識できるようになる。音による通知は、先に説明した十字線の色による通知と一緒に行うとさらに効果的である。 Further, the image measuring instrument 1 according to the present embodiment may further include a speaker 105 (see FIG. 1) as sound output means. The speaker 105 is built in the main body 101 of the computer 100, for example. The control means 40 outputs a first sound from the speaker 105 when the amount of deviation exceeds the allowable range, and outputs a second sound different from the first sound from the speaker 105 when the amount of deviation is within the allowable range. may be controlled to output. This makes it possible to recognize by sound that the amount of deviation is within the allowable range. The notification by sound is more effective when combined with the notification by the color of the crosshairs described above.

〔移動速度レベルの表示〕
次に、移動速度レベルの表示について説明する。
図8(a)および(b)は、移動速度レベルの表示例を示す図である。
図8(b)には、図8(a)に示すB部の拡大図が示される。
制御手段40は、アプリケーションソフトウェアによってディスプレイ104に画像測定に必要な表示を行う。図8(a)には画像測定を行う際の表示例が示される。
[Display of movement speed level]
Next, display of the movement speed level will be described.
FIGS. 8A and 8B are diagrams showing display examples of moving speed levels.
FIG. 8(b) shows an enlarged view of the B portion shown in FIG. 8(a).
The control means 40 performs display required for image measurement on the display 104 by application software. FIG. 8A shows a display example when image measurement is performed.

このような画像測定の際の表示において、制御手段40は、現在設定されているステージ21の移動速度を表すレベル表示画像Gをディスプレイ104に表示することが好ましい。図8(b)に示すように、移動速度を表すレベル表示画像Gは、例えば速度レベルを数段階に分けて表示している。表示レベルが多いほどステージ21の移動速度が速く設定されていることを示す。作業者は、この移動速度を表すレベル表示画像Gを参照することで、現在設定されている移動速度を視覚で把握できるようになる。 In such display during image measurement, the control means 40 preferably displays a level display image G representing the currently set moving speed of the stage 21 on the display 104 . As shown in FIG. 8(b), the level display image G representing the moving speed displays, for example, speed levels divided into several stages. The higher the display level, the faster the moving speed of the stage 21 is set. By referring to the level display image G representing the moving speed, the operator can visually grasp the currently set moving speed.

画像測定機1において、作業者は、測定時の操作の際、基本的にはコンピュータ100のディスプレイ104に表示されるワーク画像を見ながらの操作が中心となる。画像測定機1のステージ21の移動速度は、通常は最高速の設定で操作するケースがほとんどである。作業者も最高速で移動するという思い込みがあるケースが多い。 When operating the image measuring machine 1 during measurement, the operator basically performs operations while viewing the workpiece image displayed on the display 104 of the computer 100 . In most cases, the moving speed of the stage 21 of the image measuring machine 1 is normally set to the highest speed. In many cases, there is an assumption that workers also move at the highest speed.

もし、リモートボックスの速度調節つまみ32の設定が最小値(例えば、”0”設定)であった場合、システム起動後の測定機固有の原点を決めるABS操作(画像測定機1の機械座標系を決定するための操作)や測定物座標系を決める操作(測定物の基準に合わせた座標系を決定する操作)でステージが動かない状態となる。
作業手順としてリモートボックスの状態を、先に確認するという内容が必ず実施されればよいが、リモートボックスの状態を未確認のまま操作された場合、最高速で移動すると思い込んでいる場合には、ジョイスティック31を操作してもステージ21が動かないと勘違いしてしまい、操作トラブルになる可能性がある。
また、速度調節つまみ32の設定が最大値になっていることに気が付かずにジョイスティック31を操作した場合、意図せずステージ21が速く移動してしまい、トラブルを招く原因となる。
If the speed adjustment knob 32 of the remote box is set to the minimum value (for example, set to "0"), the ABS operation (to change the machine coordinate system of the vision measuring machine 1 to operation to determine) or operation to determine the coordinate system of the object to be measured (operation to determine the coordinate system that matches the reference of the object to be measured), the stage is in a state where it does not move.
As a work procedure, it is good to always check the status of the remote box first. If the stage 21 does not move even if the 31 is operated, there is a possibility that an operation trouble will occur.
Also, if the operator operates the joystick 31 without noticing that the speed control knob 32 is set to the maximum value, the stage 21 will unintentionally move faster, causing trouble.

そこで、図8(a)および(b)に示すように、現在設定されているステージ21の移動速度を表すレベル表示画像Gをディスプレイ104に表示することで、リモートボックスの状態を未確認であってもステージ21の移動速度の現在の設定レベルを把握することができ、操作トラブルを未然に防ぐことが可能となる。 Therefore, as shown in FIGS. 8A and 8B, a level display image G representing the currently set moving speed of the stage 21 is displayed on the display 104 so that the status of the remote box can be checked even if the state of the remote box has not yet been confirmed. Also, the current setting level of the moving speed of the stage 21 can be grasped, and it is possible to prevent operation troubles.

〔画像測定プログラム〕
次に、本実施形態に係る画像測定プログラムについて説明する。
図9は、本実施形態に係る画像測定方法を例示するフローチャートである。
画像処理プログラムは、図9に示す画像処理方法のうちの所定のステップをコンピュータ100に実行させる。
図9に示す例では、ワークWの撮影(ステップS102)、ステージ21の移動(ステップS103~ステップS105)、寸法測定(ステップS106~ステップS107))のステップが画像処理プログラムに含まれる。画像処理プログラムは、アプリケーションソフトウェアとして実行される。
[Image measurement program]
Next, an image measurement program according to this embodiment will be described.
FIG. 9 is a flowchart illustrating an image measurement method according to this embodiment.
The image processing program causes the computer 100 to execute predetermined steps of the image processing method shown in FIG.
In the example shown in FIG. 9, the image processing program includes the steps of photographing the workpiece W (step S102), moving the stage 21 (steps S103 to S105), and measuring dimensions (steps S106 to S107). The image processing program is executed as application software.

先ず、ワークWのステージ21への載置を行う(ステップS101)。ワークWは作業者によってステージ21の所定位置に載置される。次に、ワークWの撮影を行う(ステップS102)。ワークWの画像は撮像手段10によって取り込まれる。取り込まれたワークWの画像はディスプレイ104に表示される。 First, the workpiece W is placed on the stage 21 (step S101). The workpiece W is placed at a predetermined position on the stage 21 by an operator. Next, the workpiece W is photographed (step S102). An image of the work W is captured by the imaging means 10 . The captured image of the work W is displayed on the display 104 .

次に、ステージ21の移動(第1速度V1)を行う(ステップS103)。すなわち、画像処理プログラムはステージ21の移動速度を第1速度V1に設定し、作業者からの指示に基づきステージ21を移動させる。 Next, the stage 21 is moved (first speed V1) (step S103). That is, the image processing program sets the moving speed of the stage 21 to the first speed V1, and moves the stage 21 based on the instruction from the operator.

次に、許容範囲内か否かの判断を行う(ステップS104)。すなわち、ステージ21を移動して、測定目標点TPと撮影領域の基準点P1とのずれ量が予め設定された許容範囲内に入ったか否かを判断する。ずれ量が許容範囲内でない場合にはステップS103へ戻り、第1速度V1のままステージ21の移動を続ける。ずれ量が許容範囲内になった場合にはステップS105へ進み、ステージ21の移動速度を第1速度V1よりも遅い第2速度V2に設定して位置合わせを行う。 Next, it is determined whether or not it is within the allowable range (step S104). That is, by moving the stage 21, it is determined whether or not the deviation amount between the measurement target point TP and the reference point P1 of the photographing area is within a preset allowable range. If the deviation amount is not within the allowable range, the process returns to step S103, and the stage 21 continues to move at the first speed V1. If the amount of deviation falls within the allowable range, the process proceeds to step S105, where the moving speed of the stage 21 is set to a second speed V2 that is lower than the first speed V1, and alignment is performed.

この位置合わせでは、ステージ21の移動速度が第2速度V2に設定されているため、ステージ21による位置合わせの微調整が容易である。また、ステップS103~ステップS105の処理を行う間、ディスプレイ104に第1十字線CR1および第2十字線CR2のガイド表示を行ってもよい。また、許容範囲内に入ったことを示す音を出力してもよい。 In this alignment, the moving speed of the stage 21 is set to the second speed V2, so fine adjustment of the alignment by the stage 21 is easy. Further, while the processing of steps S103 to S105 is being performed, the display 104 may display a guide of the first cross line CR1 and the second cross line CR2. Also, a sound may be output to indicate that it is within the allowable range.

位置合わせを行った後、寸法測定を行う(ステップS106)。作業者はマウス操作で画像からエッジ検出を実行するボタンを選択する。これにより画像からエッジが検出され、エッジに基づく寸法の測定が行われる。 After alignment, dimension measurement is performed (step S106). The operator selects a button for executing edge detection from the image by operating the mouse. Edges are then detected from the image and dimension measurements are made based on the edges.

続いて、次の測定箇所があるか否かの判断を行う(ステップS107)。次の測定箇所がある場合にはステップS103へ戻り、以降の処理を繰り返す。次の測定箇所がない場合には処理を終了する。 Subsequently, it is determined whether or not there is a next measurement point (step S107). If there is a next measurement point, the process returns to step S103 and the subsequent processes are repeated. If there is no next measurement point, the process ends.

このような画像処理プログラムによって、ワークWと撮影領域との相対的な位置を移動させる際、ワークWの測定目標点TPと撮影領域の基準点P1とのずれ量に応じてステージ21の移動速度(第1速度V1および第2速度V2)が調整される。これにより、ずれ量によって作業者が操作しやすい移動速度に自動的に調整される。 When the relative positions of the work W and the imaging area are moved by such an image processing program, the moving speed of the stage 21 is determined according to the amount of deviation between the measurement target point TP of the work W and the reference point P1 of the imaging area. (first speed V1 and second speed V2) are adjusted. As a result, the moving speed is automatically adjusted according to the amount of deviation so that the operator can easily operate the moving speed.

作業者は、ジョイスティック31によってステージ21を移動させる際、ずれ量が許容範囲を超えている場合には第1速度V1で素早くステージ21を移動させることができる。また、ずれ量が許容範囲内に入った場合には、ジョイスティック31の同じ操作量であっても第2速度V2によってゆっくりと移動できるようになる。これにより、測定目標点TPまで素早く、かつ確実に移動させることが可能となる。 When moving the stage 21 with the joystick 31, the operator can quickly move the stage 21 at the first speed V1 if the amount of deviation exceeds the allowable range. Further, when the deviation amount falls within the allowable range, even if the operation amount of the joystick 31 is the same, the movement can be performed slowly at the second speed V2. As a result, it is possible to quickly and reliably move to the measurement target point TP.

なお、上記の画像処理プログラムにおいて、ステップS104の許容範囲内か否かの判断において、許容範囲内に入っている場合、スピーカ105からそのことを知らせる音を出力するようにしてもよい。 In the above image processing program, when it is determined whether or not the range is within the allowable range in step S104, a sound may be output from the speaker 105 to inform the user of the fact that the range is within the allowable range.

以上説明したように、本実施形態によれば、ワークWの測定目標点TPと撮影領域の基準点P1を合わせる移動を作業者のマニュアル操作で行う際、測定目標点TPが撮影領域の基準点P1に近づいた際に自動的に移動速度が遅くなるように設定される。したがって、測定を行う際、速度調節つまみ32を操作する必要がないため、ジョイスティック31とマウス103とを持つ手を離すことなく測定操作を実行できるようになる。これにより、電動で移動するステージ21を搭載するマニュアルタイプの画像測定機1の操作の使い勝手を向上させることができ、作業効率を高めることが可能となる。 As described above, according to the present embodiment, when the operator manually moves the measurement target point TP of the work W to match the reference point P1 of the imaging area, the measurement target point TP is the reference point of the imaging area. It is set so that the movement speed automatically slows down when approaching P1. Therefore, since there is no need to operate the speed control knob 32 when performing the measurement, the measurement operation can be performed without releasing the hands holding the joystick 31 and the mouse 103 . As a result, it is possible to improve the usability of the operation of the manual type image measuring machine 1 equipped with the electrically movable stage 21, and to improve the working efficiency.

〔実施形態の変形〕
上記に本実施形態を説明したが、本発明はこれらの例に限定されるものではない。例えば、上記では、撮像手段10の水平方向位置は固定であり、ステージ21が水平移動に移動する構成であるが、撮像手段10およびステージ21の少なくとも一方が水平方向に移動する構成であればよい。また、ずれ量のガイド表示は、ずれの方向を示すことができるものでれば十字線以外であってもよい。また、前述の各実施形態に対して、当業者が適宜、構成要素の追加、削除、設計変更を行ったものや、各実施形態の特徴を適宜組み合わせたものも、本発明の要旨を備えている限り、本発明の範囲に含有される。
[Modification of Embodiment]
Although the present embodiment has been described above, the present invention is not limited to these examples. For example, in the above description, the horizontal position of the imaging means 10 is fixed, and the stage 21 moves horizontally. . Further, the guide display of the deviation amount may be other than the cross line as long as it can indicate the direction of the deviation. In addition, additions, deletions, and design changes made by those skilled in the art to the above-described embodiments, and combinations of features of the embodiments as appropriate, do not include the gist of the present invention. to the extent possible are included within the scope of the present invention.

1…画像測定機
10…撮像手段
11…カメラ
12…光学系
20…移動手段
21…ステージ
22…駆動部
30…操作手段
31…ジョイスティック
32…速度調節つまみ
33…調光つまみ
35…非常停止ボタン
40…制御手段
100…コンピュータ
101…本体
102…キーボード
103…マウス
104…ディスプレイ
105…スピーカ
121…照明装置
242…X軸エンコーダ
243…Y軸エンコーダ
244…Z軸エンコーダ
252…X軸モータ
253…Y軸モータ
254…Z軸モータ
415…AD変換部
416…画像メモリ
437…表示制御部
439…CPU
440…プログラムメモリ
441…ワークメモリ
445…照明制御部
CR1…第1十字線
CR2…第2十字線
G…レベル表示画像
P1…基準点
P2…交差点
TP…測定目標点
V1…第1速度
V2…第2速度
W…ワーク
DESCRIPTION OF SYMBOLS 1... Image measuring machine 10... Imaging means 11... Camera 12... Optical system 20... Moving means 21... Stage 22... Driving part 30... Operating means 31... Joystick 32... Speed control knob 33... Dimming knob 35... Emergency stop button 40 ...control means 100...computer 101...main body 102...keyboard 103...mouse 104...display 105...speaker 121...lighting device 242...X-axis encoder 243...Y-axis encoder 244...Z-axis encoder 252...X-axis motor 253...Y-axis motor 254 Z-axis motor 415 AD conversion unit 416 Image memory 437 Display control unit 439 CPU
440 Program memory 441 Work memory 445 Illumination controller CR1 First cross line CR2 Second cross line G Level display image P1 Reference point P2 Intersection TP Measurement target point V1 First speed V2 2-speed W...work

Claims (12)

測定対象物の画像から前記測定対象物の寸法を測定する画像測定機であって、
前記測定対象物の画像を撮像する撮像手段と、
前記測定対象物と前記撮像手段による撮影領域との相対的な位置を移動させる移動手段と、
作業者によって操作され、移動方向の指示を受ける操作手段と、
前記操作手段で受けた移動方向に沿って前記移動手段を制御する制御手段と、
を備え、
前記制御手段は、前記測定対象物の測定目標点と前記撮影領域における所定の基準点とのずれ量に応じて前記移動手段による移動速度を調整することを特徴とする画像測定機。
An image measuring machine for measuring dimensions of an object to be measured from an image of the object,
imaging means for capturing an image of the object to be measured;
a moving means for moving the relative positions of the object to be measured and the imaging area of the imaging means;
an operation means operated by an operator for receiving an instruction of a movement direction;
a control means for controlling the moving means along the moving direction received by the operating means;
with
The image measuring machine, wherein the control means adjusts the moving speed of the moving means in accordance with the amount of deviation between the measurement target point of the object to be measured and a predetermined reference point in the photographing area.
前記制御手段は、前記ずれ量が予め設定された許容範囲を超えている場合、前記移動速度を第1速度に設定し、前記ずれ量が前記許容範囲内の場合、前記移動速度を前記第1速度よりも遅い第2速度に設定する、ことを特徴とする請求項1記載の画像測定機。 The control means sets the moving speed to a first speed when the amount of deviation exceeds a preset allowable range, and sets the moving speed to the first speed when the amount of deviation is within the allowable range. 2. The image measuring machine according to claim 1, wherein a second speed slower than the speed is set. 前記制御手段は、前記ずれ量が前記許容範囲内になって前記移動速度を前記第2速度に設定し、測定箇所の測定を行った後、次の測定目標点への移動を行う場合、前記移動速度を前記第2速度よりも速い第3速度に設定する、ことを特徴とする請求項2記載の画像測定機。 The control means sets the moving speed to the second speed when the amount of deviation falls within the allowable range, and when moving to the next measurement target point after measuring the measurement point, the 3. The image measuring machine according to claim 2, wherein the moving speed is set to a third speed faster than the second speed. 前記制御手段は、前記ずれ量が前記許容範囲を超えているところから前記許容範囲に近づくにしたがい前記移動速度を漸減させる、ことを特徴とする請求項2または3に記載の画像測定機。 4. The image measuring machine according to claim 2, wherein the control means gradually reduces the moving speed as the amount of deviation approaches the allowable range from a point exceeding the allowable range. 音出力手段をさらに備え、
前記制御手段は、前記ずれ量が前記許容範囲を超えている場合、前記音出力手段から第1の音を出力し、前記ずれ量が前記許容範囲内の場合、前記音出力手段から第1の音とは異なる第2の音を出力する制御を行う、ことを特徴とする請求項2から4のいずれか1項に記載の画像測定機。
further comprising sound output means,
The control means outputs a first sound from the sound output means when the amount of deviation exceeds the allowable range, and outputs a first sound from the sound output means when the amount of deviation is within the allowable range. 5. The image measuring machine according to any one of claims 2 to 4, wherein control is performed to output a second sound different from the sound.
前記撮像手段で撮像した前記画像を表示する表示手段をさらに備え、
前記制御手段は、設定されている前記移動速度を前記表示手段に表示させる制御を行う、ことを特徴とする請求項1から5のいずれか1項に記載の画像測定機。
further comprising display means for displaying the image captured by the imaging means,
The image measuring machine according to any one of claims 1 to 5, wherein the control means controls the display means to display the set moving speed.
測定対象物の画像から前記測定対象物の寸法を測定する画像測定機を制御する画像測定プログラムであって、
コンピュータに、
前記測定対象物の画像を撮像するステップと、
作業者による操作手段の操作に基づく移動方向の指示を受けて、前記測定対象物と撮影領域との相対的な位置を移動させるステップと、
前記測定対象物の測定目標点と前記撮影領域における所定の基準点とのずれ量に応じて前記測定対象物と前記撮影領域との相対的な位置の移動速度を調整するステップと、
を実行させることを特徴とする画像測定プログラム。
An image measuring program for controlling an image measuring machine for measuring dimensions of an object to be measured from an image of the object,
to the computer,
capturing an image of the object to be measured;
a step of moving the relative positions of the object to be measured and the imaging region in response to a movement direction instruction based on the operation of the operation means by the operator;
adjusting the moving speed of the relative position between the measurement object and the imaging area according to the amount of deviation between the measurement target point of the measurement object and a predetermined reference point in the imaging area;
An image measurement program characterized by executing
前記移動速度を調整するステップでは、前記ずれ量が予め設定された許容範囲を超えている場合、前記移動速度を第1速度に設定し、前記ずれ量が前記許容範囲内の場合、前記移動速度を前記第1速度よりも遅い第2速度に設定する、ことを特徴とする請求項7記載の画像測定プログラム。 In the step of adjusting the moving speed, the moving speed is set to a first speed when the amount of deviation exceeds a preset allowable range, and the moving speed is set when the amount of deviation is within the allowable range. is set to a second speed slower than the first speed. 前記移動速度を調整するステップでは、前記ずれ量が前記許容範囲内になって前記移動速度を前記第2速度に設定し、測定箇所の測定を行った後、次の測定目標点への移動を行う場合、前記移動速度を前記第2速度よりも速い第3速度に設定する、ことを特徴とする請求項8記載の画像測定プログラム。 In the step of adjusting the moving speed, the moving speed is set to the second speed when the amount of deviation falls within the allowable range, and after measuring the measurement point, movement to the next measurement target point is performed. 9. The image measurement program according to claim 8, wherein, when performing, the movement speed is set to a third speed faster than the second speed. 前記移動速度を調整するステップでは、前記ずれ量が前記許容範囲を超えているところから前記許容範囲に近づくにしたがい前記移動速度を漸減させる、ことを特徴とする請求項8または9に記載の画像測定プログラム。 10. The image according to claim 8, wherein in the step of adjusting the moving speed, the moving speed is gradually reduced as the amount of deviation approaches the allowable range from a point where the amount of deviation exceeds the allowable range. measurement program. 前記移動速度を調整するステップでは、前記ずれ量が前記許容範囲を超えている場合、第1の音を出力し、前記ずれ量が前記許容範囲内の場合、前記第1の音とは異なる第2の音を出力する、ことを特徴とする請求項8から10のいずれか1項に記載の画像測定プログラム。 In the step of adjusting the moving speed, when the amount of deviation exceeds the allowable range, a first sound is output, and when the amount of deviation is within the allowable range, a second sound different from the first sound is output. 11. The image measurement program according to any one of claims 8 to 10, wherein the program outputs 2 sounds. 前記移動速度を調整するステップでは、設定されている前記移動速度を表示手段に表示させる、ことを特徴とする請求項7から11のいずれか1項に記載の画像測定プログラム。 12. The image measuring program according to any one of claims 7 to 11, wherein in the step of adjusting the moving speed, the set moving speed is displayed on display means.
JP2018214660A 2018-11-15 2018-11-15 Image measuring machine and image measuring program Active JP7211773B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018214660A JP7211773B2 (en) 2018-11-15 2018-11-15 Image measuring machine and image measuring program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018214660A JP7211773B2 (en) 2018-11-15 2018-11-15 Image measuring machine and image measuring program

Publications (2)

Publication Number Publication Date
JP2020085458A JP2020085458A (en) 2020-06-04
JP7211773B2 true JP7211773B2 (en) 2023-01-24

Family

ID=70909843

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018214660A Active JP7211773B2 (en) 2018-11-15 2018-11-15 Image measuring machine and image measuring program

Country Status (1)

Country Link
JP (1) JP7211773B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000155024A (en) 1998-11-20 2000-06-06 Mitsutoyo Corp Measuring device
JP2002350123A (en) 2001-05-24 2002-12-04 Olympus Optical Co Ltd Method for supporting measurement, measuring system and measurement support program
JP2014203365A (en) 2013-04-08 2014-10-27 オムロン株式会社 Control system and control method
US20150049186A1 (en) 2011-12-06 2015-02-19 Hexagon Technology Center Gmbh Coordinate measuring machine having a camera

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01178621A (en) * 1987-12-30 1989-07-14 Kayaba Ind Co Ltd Bucket controller for power shovel service machine
JP3402990B2 (en) * 1997-02-25 2003-05-06 株式会社ミツトヨ CMM

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000155024A (en) 1998-11-20 2000-06-06 Mitsutoyo Corp Measuring device
JP2002350123A (en) 2001-05-24 2002-12-04 Olympus Optical Co Ltd Method for supporting measurement, measuring system and measurement support program
US20150049186A1 (en) 2011-12-06 2015-02-19 Hexagon Technology Center Gmbh Coordinate measuring machine having a camera
JP2014203365A (en) 2013-04-08 2014-10-27 オムロン株式会社 Control system and control method

Also Published As

Publication number Publication date
JP2020085458A (en) 2020-06-04

Similar Documents

Publication Publication Date Title
US20160274784A1 (en) Apparatus for operating robots
US20160096275A1 (en) Robot operation apparatus, robot system, and robot operation program
US20160158938A1 (en) Method and device for defining a working range of a robot
JP2006337274A (en) System and method for measuring image
JP2020078833A (en) Image capturing apparatus and machine tool
US9582088B2 (en) Microscope
JP2011107058A (en) Three-dimensional measuring machine
JP7211773B2 (en) Image measuring machine and image measuring program
JP6579682B2 (en) Image measuring device
JP2016070720A (en) Image measurement device and guidance display method of image measurement device
JP5947571B2 (en) Welding robot and gap adjustment method for welding robot
JP2016024046A (en) Image measurement apparatus
US11926065B2 (en) Vision-based operation for robot
JP7287866B2 (en) Robot controller and arc welding robot system
JP2822314B2 (en) Laser processing equipment
JP2011067895A (en) Fine adjustment method of robot tool position, and robot control system
KR20020051873A (en) Bonding data setting apparatus and method thereof
WO2023170764A1 (en) Device for generating search program for robot
JP2817092B2 (en) Laser processing equipment
JP6687229B2 (en) Image measuring device
JP2822315B2 (en) Laser processing equipment
WO2024009484A1 (en) Control device and control method
JP2010264560A (en) Method for preventing interference of robot
JP3203508B2 (en) Laser processing equipment
JP6366921B2 (en) Image measuring apparatus and height measuring method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211005

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220720

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220802

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220921

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20221220

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230112

R150 Certificate of patent or registration of utility model

Ref document number: 7211773

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150