JP7210171B2 - IMAGE PROCESSING DEVICE AND CONTROL METHOD THEREOF, IMAGING DEVICE, AND PROGRAM - Google Patents
IMAGE PROCESSING DEVICE AND CONTROL METHOD THEREOF, IMAGING DEVICE, AND PROGRAM Download PDFInfo
- Publication number
- JP7210171B2 JP7210171B2 JP2018129070A JP2018129070A JP7210171B2 JP 7210171 B2 JP7210171 B2 JP 7210171B2 JP 2018129070 A JP2018129070 A JP 2018129070A JP 2018129070 A JP2018129070 A JP 2018129070A JP 7210171 B2 JP7210171 B2 JP 7210171B2
- Authority
- JP
- Japan
- Prior art keywords
- image processing
- image
- imaging
- measurement
- determination
- 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
Links
Images
Landscapes
- Studio Devices (AREA)
- Image Analysis (AREA)
Description
本発明は、撮像装置の撮影方向や撮影画角を制御し、撮像画像を処理する画像処理の技術に関する。 The present invention relates to an image processing technique for controlling the photographing direction and the photographing angle of view of an image pickup apparatus and processing a picked-up image.
画像処理を行ってロボットや搬送装置等の機器を制御する技術は、工場での製品生産や品質確認、運用、管理等に使用される。撮像装置によって作業対象(以下、ワークと呼ぶ)を撮影する際、撮影方向や撮影倍率を変更する駆動部を備えた撮像装置を使用すれば、複数の撮影位置や撮影画角で画像を取得できる。1台の撮像装置で取得した画像を複数の画像処理工程で使用可能である。 The technology of image processing to control devices such as robots and transport devices is used for product production, quality confirmation, operation, management, etc. in factories. When photographing a work target (hereinafter referred to as a work) with an imaging device, if an imaging device equipped with a driving unit that changes the imaging direction and imaging magnification is used, images can be obtained at multiple imaging positions and imaging angles. . An image acquired by a single imaging device can be used in a plurality of image processing steps.
しかし、撮像装置が備える駆動部の性能や撮像装置の設置環境によっては、画像処理の計測精度が十分でない可能性がある。例えば、撮像装置の撮影位置が所望の位置となったとしても、撮像装置の振動が十分に収束せず、静定していない状態で撮像された画像を使用する場合、画像処理の計測精度が低下する可能性がある。特許文献1には、カメラで撮影した画像に対し、カメラが安定撮像状態かどうかの判定を行う技術が開示されている。判定結果を用いて安定した画像を取得し、高い計測精度で画像処理を行うことが可能である。 However, depending on the performance of the driving unit included in the imaging device and the installation environment of the imaging device, the measurement accuracy of image processing may not be sufficient. For example, even if the imaging position of the imaging device becomes a desired position, the vibration of the imaging device does not sufficiently converge, and when using an image captured in an unstable state, the measurement accuracy of the image processing is reduced. may decline. Japanese Unexamined Patent Application Publication No. 2002-200000 discloses a technique for determining whether or not a camera is in a stable imaging state for an image captured by the camera. It is possible to acquire a stable image using the determination result and perform image processing with high measurement accuracy.
ところで、工場等において、使用する画像処理やワークの種類に応じて必要とされる計測精度はそれぞれ異なる場合がある。そのため、撮像装置の静定状態を確認した後に行われた画像処理であっても、必要な計測精度を満たさないことが起こりうる。また、撮像装置が必要以上の計測精度を満たす静定状態となるまでにかかる時間が長くなると、全体の処理時間を増加させる原因となる。 By the way, in a factory or the like, the required measurement accuracy may vary depending on the image processing used and the type of workpiece. Therefore, even image processing performed after confirming the static state of the imaging device may not satisfy the necessary measurement accuracy. In addition, if the time required for the imaging device to reach a static state that satisfies the required measurement accuracy becomes longer, this causes an increase in the overall processing time.
一例として、搬送装置によって個々に搬送される複数種のワークを、撮像装置が撮像した画像を用いて類別し、ロボットがワークの種類ごとに異なる搬送車に積載する作業工程を想定する。ロボットが正しくワーク座標を認識してワークを把持するためには、画像処理の計測精度を所定の精度以上に高める必要がある。一方、撮像装置が搬送車を撮像して搬送車が停止枠内に存在するかどうかを判定する工程では、画像処理の計測精度をそれほど高くする必要はなく、短時間で処理を終了できることが求められる。
本発明の目的は、画像処理に必要十分な計測精度で撮像装置の静定判定を行って計測処理をより短時間で行うことである。
As an example, assume a work process in which a plurality of types of workpieces individually transported by a transport device are classified using images captured by an imaging device, and a robot loads the workpieces onto different transport vehicles for each type. In order for the robot to correctly recognize the workpiece coordinates and grip the workpiece, it is necessary to increase the measurement accuracy of image processing to a predetermined accuracy or higher. On the other hand, in the process in which the imaging device images the guided vehicle and determines whether or not the guided vehicle is within the stop frame, the measurement accuracy of the image processing does not need to be very high, and the process must be completed in a short period of time. be done.
SUMMARY OF THE INVENTION An object of the present invention is to perform static determination of an imaging device with sufficient measurement accuracy for image processing, and to perform measurement processing in a shorter time.
本発明の一実施形態の画像処理装置は、撮影方向または撮影画角の変更が可能な撮像手段により計測対象を撮像した撮像画像のデータを処理する画像処理装置であって、前記撮像画像にて基準となる基準画像領域を設定し、前記基準画像領域における画像の特徴部を設定する処理を行う設定手段と、前記撮像手段の静定状態を判定する判定条件のデータを入力する入力手段と、前記撮像手段によって計測時に取得される撮像画像から、前記設定手段により設定された前記特徴部に対応する画像領域での振動量を算出する算出手段と、前記撮像画像のデータを取得して画像処理を行う画像処理手段と、前記算出手段によって算出された前記振動量が前記判定条件を満たす前記撮像手段の静定状態にて、前記画像処理手段により前記撮像画像の画像処理を行い、画像処理結果を出力する制御を行う制御手段と、を備える。前記入力手段によって複数の判定レベルから選択される前記判定条件のデータは、前記判定レベルに対応する計測間隔、計測時間、および閾値をあらかじめ組み合わせたデータであり、前記制御手段は、前記算出手段によって算出された前記振動量を、前記複数の判定レベルから選択された判定レベルに対応する前記閾値と比較して前記画像処理手段により前記撮像画像の画像処理を行うか否かを決定する。
An image processing apparatus according to an embodiment of the present invention is an image processing apparatus that processes data of a captured image obtained by capturing an image of a measurement target using an imaging means capable of changing a shooting direction or a shooting angle of view, wherein the captured image setting means for setting a reference image area that serves as a reference and performing processing for setting a characteristic portion of an image in the reference image area; input means for inputting determination condition data for determining a static state of the imaging means; Calculation means for calculating a vibration amount in an image region corresponding to the characteristic portion set by the setting means from the captured image acquired by the imaging means during measurement, and acquiring data of the captured image and performing image processing. and image processing of the captured image by the image processing means in a static state of the imaging means in which the vibration amount calculated by the calculation means satisfies the determination condition, and an image processing result and a control means for controlling to output the The determination condition data selected from a plurality of determination levels by the input means is data obtained by combining in advance a measurement interval, a measurement time, and a threshold value corresponding to the determination level, and the control means controls the calculation means to The calculated vibration amount is compared with the threshold value corresponding to the determination level selected from the plurality of determination levels to determine whether or not to perform image processing of the captured image by the image processing means.
本発明の画像処理装置によれば、画像処理に必要十分な計測精度で撮像装置の静定判定を行って計測処理をより短時間で行うことができる。 According to the image processing apparatus of the present invention, it is possible to determine the static state of the imaging apparatus with sufficient measurement accuracy necessary for image processing, and perform the measurement process in a shorter time.
以下に、本発明の好適な実施形態について、添付図面に示す各実施例にしたがって詳細に説明する。撮像装置が振動センサを具備する場合には振動センサの検出値により撮像装置の静定状態を判定できるが、撮像装置が振動センサを具備しない場合には別の手段が必要である。各実施例では撮像装置の静定状態の判定処理を画像処理手段が行う構成について説明する。 BEST MODE FOR CARRYING OUT THE INVENTION A preferred embodiment of the present invention will be described in detail below according to each example shown in the accompanying drawings. If the image pickup device has a vibration sensor, the static state of the image pickup device can be determined based on the detection value of the vibration sensor. In each embodiment, a description will be given of a configuration in which image processing means performs determination processing of the stationary state of the imaging device.
[第1実施例]
図1は、本実施形態に係る画像処理装置を含むシステムの全体構成図である。システムの制御装置101は、予め設定されたタイミングで各装置への制御指令を送信する。システムは制御装置101、画像処理装置102、撮像装置103、作業用のロボット104、搬送装置105、搬送車106,107から構成される。
[First embodiment]
FIG. 1 is an overall configuration diagram of a system including an image processing apparatus according to this embodiment. A
画像処理装置102は、制御装置101から受信した制御指令にしたがって、撮像装置103の駆動制御を行う。撮像装置103は撮影方向と撮影画角の変更が可能であり、画像処理装置102からの制御信号により計測対象の撮影位置を変更して撮像動作を行う。画像処理装置102は撮像装置103から取得した撮像画像データを処理し、画像処理結果を制御装置101に送信する。制御装置101は、画像処理結果に基づいてロボット104、搬送装置105、搬送車106,107を制御し、所定の作業を実行させる。
The
一例として、以下の作業工程を説明する。
・撮像装置103が撮像した画像データを用いて、搬送装置105により搬送されるワーク108~110の種別を判別する工程。
・ロボット104によってワークの種別ごとに異なる搬送車にワークを配置する工程。
ワークを搬送する搬送車106,107の停止位置は、複数の停止枠111により決定されるものとする。
As an example, the following work process will be described.
• A step of discriminating the types of the
• A process of arranging the workpieces on different transport vehicles for each type of workpiece by the robot 104 .
It is assumed that the stop positions of the
図2は撮像装置103の撮影方向と撮影画角を変更する駆動機構を説明する模式図である。撮像装置103は、雲台201と撮影系(撮像光学系)202を備える。雲台201は、撮影系202の方向を、横方向(以下、パンニング方向をP方向と記す)および縦方向(以下、チルティング方向をT方向と記す)に変化させる2つの駆動系の機構部を有する。パンニング機構(パン機構ともいう)は撮影系202をP方向に駆動させる機構であり、チルティング機構(チルト機構ともいう)は撮影系202をT方向に駆動させる機構である。これらの機構によって撮影系202の撮影方向は、P方向にて360°の範囲で変更可能、つまりエンドレス旋回が可能である。またT方向にて、水平方向を0度として-30.0度~+210.0度の範囲で撮影方向を変更可能である。また撮像装置103はズーム機構により、撮影系202のズーム倍率を1.0倍~20.0倍の範囲で変更可能である。
FIG. 2 is a schematic diagram illustrating a driving mechanism for changing the shooting direction and shooting angle of view of the
このように撮像装置103は、撮影方向およびズーム倍率の制御により撮影位置と撮影画角を変更することができ、例えば以下の計測シーンを撮影することができる。
・ワーク108~110の種別を検出する計測シーンA112。
・搬送車106,107が停止枠111内にそれぞれ存在するか否かを判定する計測シーンB113および計測シーンC114。
In this manner, the
A measurement scene A112 for detecting the types of works 108-110.
A measurement scene B113 and a measurement scene C114 for determining whether or not the
本実施形態では便宜上、1台の撮像装置の使用例を説明するが、より大規模なシステムにおいては複数の撮像装置が使用される。各撮像装置は複数の計測シーンの撮影を担当する。さらには、撮像装置がジャイロセンサ等の振動検出センサを備える構成でもよい。 In this embodiment, for the sake of convenience, an example of using one imaging device will be described, but in a larger system, a plurality of imaging devices are used. Each imaging device takes charge of photographing a plurality of measurement scenes. Furthermore, the imaging device may be configured to include a vibration detection sensor such as a gyro sensor.
図3は、計測シーンA112およびB113を説明する図である。図3(A)は計測シーンA112の画像例を示し、図3(B)は計測シーンB113の画像例を示す。図3(A)に示す画像301は、撮像装置103が搬送装置105上のワーク108を撮像した画像である。画像処理装置102は画像301のデータを処理し、ワーク108の実空間座標を算出する。制御装置101は画像処理結果に基づいてロボット104を制御する。このとき、撮像装置103の位置再現性が低下すると、画像処理装置102が算出したワーク108の位置姿勢の座標と実際のワーク108の位置姿勢の座標との間で誤差が発生する。誤差が許容範囲を超えた場合、ロボット104の制御に誤りが発生し、ワーク108の把持やピックアップ動作に支障を来す可能性がある。
FIG. 3 is a diagram for explaining the measurement scenes A112 and B113. FIG. 3A shows an example image of the measurement scene A112, and FIG. 3B shows an example image of the measurement scene B113. An
そこで画像処理装置102は、撮像装置103の撮影位置を変更したのちに撮影し、その静定状態を判定する。基準画像領域については後述するが、例えば搬送装置105を固定するボルトや柱が写っている領域302のように、時間経過に伴う変動が小さく、かつ特徴量の大きい領域が基準画像領域として好適である。これに対し、ワーク108とその周辺部だけが写っている領域のような、動画像において時間経過に伴って位置や傾きが変化する領域は基準画像領域として適切ではない。
Therefore, the
撮像装置103は、基準画像領域302を含む画像301のデータを画像処理装置102に送信する。または、基準画像領域302をトリミングした画像データを撮像装置103が画像処理装置102に送信してもよい。あるいは、撮像装置103が画像301の画像処理を行って後述する画像内の特徴部を抽出し、抽出結果を示すデータのみを画像処理装置102に送信してもよい。
The
図3(B)に示す画像303は、撮像装置103が搬送車106を撮像した画像である。画像処理装置102は画像303の画像処理を行い、搬送車106が停止枠111内に存在するかどうかを判定する。このとき撮像装置に要求される静定性については、計測シーンA112に比較して判定精度が低いものとする。むしろ過分な静定性を要求すると、静定のための時間が必要となるので、全体処理にかかる計測時間が長くなるという問題が発生する。
An
図4は、画像処理装置102の構成例を示すブロック図である。画像処理装置102はインターフェース部403を介して制御装置101、撮像装置103と接続されている。入出力表示装置401、操作入力装置402はインターフェース部403を介して画像処理装置102と接続された、ユーザ・インターフェース用の装置である。各装置は画像処理装置102の内部バス上に配置された各インターフェース部403を介して接続される。各インターフェース部403は通信に適した規格に基づき、接続対象に応じたネットワークインターフェース部、シリアル通信インターフェース部等から構成される。
FIG. 4 is a block diagram showing a configuration example of the
入出力表示装置401は、画像を表示する陰極管や液晶パネル等の表示デバイスを備える。操作入力装置402は、キーボードやポインティングデバイス、タッチパネル、入力操作コントローラ、ジェスチャ入力装置等により構成される。
The input/
画像処理装置102と接続される撮像装置103には、撮影のために必要に応じて照明装置を併設してもよい。照明装置はハロゲンランプや発光ダイオード等の光源を備える。また画像処理装置102に外部記憶装置を接続して、記憶容量を拡大してもよい。
The
画像処理装置102は、画像処理の制御主体となる汎用マイクロプロセッサとして構成されたCPU(中央演算処理装置)や画像処理プロセッサ等により構成される演算部404を有する。演算部404は内部バス(データバス、アドレスバス、他の制御線等)を介して記憶部405と接続される。
The
記憶部405には、ROM、RAM、またはEPROM、EEPROM等の不揮発性メモリデバイスや、外部記憶装置が使用される。ROMは“Read Only Memory”、RAMは“Random Access Memory”の略号である。EPROMは“Erasable Programmable Read Only Memory”の略号である。EEPROMは“Electrically Erasable Programmable Read Only Memory”の略号である。外部記憶装置は、例えばハードディスクドライブ装置(HDD)や半導体メモリ素子で構成された記憶装置、あるいはインターフェース部403と接続可能な記憶装置等である。
The
記憶部405は処理データ保存領域406およびプログラム記憶領域を有する。処理データ保存領域406は、記憶部405中のRAM領域や、外部記憶装置のファイル領域や仮想記憶領域等によって構成される。処理データ保存領域406は、処理データを一時的に記憶する他、画像処理の設定パラメータ等の記憶領域として使用される。
The
記憶部405のプログラム記憶領域には、本実施例の画像処理を実行するための画像処理プログラム407が記憶される。画像処理プログラム407は、操作入力装置402によって行われた各種操作に応じて、画像処理の設定変更や所定の画像処理を実行する。また変更内容について、処理データ保存領域406へのデータの保存や、データの削除が可能である。
The program storage area of the
画像処理プログラム407は、各種の機能を実現するソフトウェアモジュールから構成される。例えば画像処理モジュール408は画像処理を実現する本体部分である。このモジュールが行う画像処理には画像処理ライブラリ409が用いられる。画像処理ライブラリ409は、例えば静的または動的にリンクされるライブラリとして記憶部405に実装される。画像処理設定モジュール410は画像処理プログラム407の振舞いを決定する。画像処理設定は操作入力装置402によって行われた各種操作に応じて行われる。
The
さらに、画像処理プログラム407には、次の機能を実現するI/O(入出力)用サブルーチンが含まれる。例えば、外部デバイス制御サブルーチン411、保存データ生成サブルーチン412、制御装置101からの制御指令を受け付けるための指令受付サブルーチン413がある。またRAM領域や演算部404のキャッシュ領域等を使用する一時記憶サブルーチン414、表示画面生成サブルーチン415がある。保存データ出力サブルーチン416は処理データ保存領域406に保存されたデータを読み出して出力するプログラムであり、操作受付サブルーチン417は操作入力装置402からの操作指示を受け付けるためのプログラムである。各機能は、アプリケーション(ユーティリティ)プログラムや、静的または動的にリンクされるライブラリとして構成されたサブルーチン、といった形態で記憶部405に実装される。
Further, the
画像処理装置102のCPUは画像処理プログラム407を実行することにより、撮像装置103の制御、演算部404を利用した画像処理を行う。また、操作入力装置402によりユーザの操作指示を受け付ける処理や、画像処理装置102の外部装置である制御装置101から制御指令を受け付ける処理が実行される。演算部404は操作指示や制御指令に応じて、画像処理プログラム407の各機能モジュールやライブラリを呼び出して演算処理を行い、画像処理結果のデータを制御装置101に送信する。また、画像処理結果のデータを外部記憶装置に送信して蓄積(ロギング)することができる。さらには、プログラムによって予め記憶されている画面構成と画像処理結果とを画面上で合成し、入出力表示装置401に表示する処理が実行される。
The CPU of the
図5は、画像処理プログラム407を作成するためのフローチャート作成画面の例を示す図である。この画面は入出力表示装置401に表示される。本実施例に係る画像処理プログラム407は、ユーザが画像処理装置102を用いて作成したフローチャートに従って実行されるものとする。その他の実施形態として、ユーザが図1に示していない画像処理プログラム作成装置を使用して画像処理プログラム407を作成する形態がある。この場合、作成された画像処理プログラム407が画像処理装置102の記憶部405に転送されて記憶される。また、機能別または目的別に予め定型で用意された組合せ済みの画像処理フローチャートを内包したパッケージ機能を用いる形態でもよい。この場合、ユーザはGUI(グラフィカル・ユーザ・インターフェース)上で所望の機能を選択し、パラメータ等の調整を行うことができる。
FIG. 5 is a diagram showing an example of a flowchart creation screen for creating the
パーツリスト501は、フローチャートを構成する各処理パーツのリストである。ユーザは矩形枠内に示す各種の処理や、菱形枠内に示す条件分岐処理を指定することができる。例えばユーザは操作入力装置402を用いて、パーツリスト501から所望の処理パーツを指定する。ポインティングデバイス等でドラッグ&ドロップ操作を行い、フローチャート領域502に配置した複数の処理パーツ同士を線で結合することにより、フローチャートの作成が可能である。
A
複数の処理パーツから構成されるフローチャート503は、ロボット104によってワーク108~110を搬送装置105から取り出し、ワークの種別に従って搬送車106または107に配置する処理を記述した例である。この例において、処理の開始後の撮影処理504はワーク108~110を撮影する処理である。次のワーク位置計算505はワーク108~110の位置や位相を算出する計算処理であり、その次のロボット移動506の処理は、算出されたワーク位置の上方にロボット104のハンドを移動させたり回転させたりする処理である。Pick処理507はロボット104によるワーク108のピックアップ動作の処理であり、その次の撮影処理508は搬送車106を撮影する処理である。その次には、撮像画像内に搬送車106の画像領域が存在するかどうかを検出する存在検出509の処理が記述されている。さらに条件分岐処理510では、搬送車106の画像領域が撮像画像内に存在する場合にロボット移動処理511に進み、搬送車106の画像領域が撮像画像内に存在しない場合に報知処理513に進むことが記述されている。ロボット移動処理511は、ロボット104により取り出されたワーク108を搬送車106の位置に移動させる処理である。次のPlace処理512はロボット104がワーク108を搬送車106上に載置する処理である。報知処理513は一定時間を待って検出された異常発生を報知する処理である。そして一連の処理を終了する。
A
ユーザは所望の処理パーツを組み合わせて、目的とするフローチャート503を作成する。作成されたフローチャート503において、処理パーツのいずれかのダブルクリック操作が行われた場合、当該処理パーツの詳細な処理を設定するための設定画面の表示処理に遷移する。この設定画面については後述する。OKボタン514のクリック操作が行われた場合、画像処理装置102はフローチャートに記述された処理を実行するための画像処理プログラム407を生成する。
The user creates a desired
図6は、撮影処理における基準特徴の登録処理画面を表す図である。例えば、ユーザが図5に示すフローチャート503において、撮影処理504または508の処理パーツに対するダブルクリック操作を行った場合、登録処理画面601が入出力表示装置401によって表示される。ユーザは登録処理画面601を見ながら、計測時の基準として用いる基準特徴の設定登録を行うことができる。
FIG. 6 is a diagram showing a reference feature registration processing screen in the photographing processing. For example, in the
図7は基準特徴の登録処理のシーケンス図である。以下では、図6および図7を参照して以下の処理(A)~(C)から構成される登録処理について具体的に説明する。
(A)使用する撮像装置の設定処理。
(B)撮影位置に関するパンニングとチルティング、ズーム倍率の設定処理。
(C)撮像装置が備える駆動機構部の性能や劣化、撮像装置の設置環境に由来する駆動機構部の駆動後の静定状態を評価するために基準特徴部および静定状態の判定条件を設定する処理。駆動機構部にはパン機構、チルト機構、ズーム機構が含まれる。
FIG. 7 is a sequence diagram of a reference feature registration process. In the following, the registration process consisting of the following processes (A) to (C) will be specifically described with reference to FIGS. 6 and 7. FIG.
(A) Setting processing of the imaging device to be used.
(B) Processing for setting panning, tilting, and zoom ratios for photographing positions.
(C) Setting a reference characteristic portion and determination conditions for the static state in order to evaluate the performance and deterioration of the driving mechanism portion provided in the imaging device and the static state after driving of the driving mechanism portion derived from the installation environment of the imaging device process to do. The drive mechanism section includes a pan mechanism, a tilt mechanism, and a zoom mechanism.
まず処理(A)について説明する。図6の撮影パーツID602は、撮影パーツを識別するための情報を表示するボックスである。カメラID603は、撮像装置の識別情報であるカメラIDを設定するためのスピンボックス、つまりスピンコントロール付きテキストボックスである。システムにて複数台の撮像装置が使用される場合、ユーザはカメラIDを選択することによって、撮影に使用するカメラを設定することができる。ここでは、撮像装置103に割り当てられたカメラIDが指定されたものとして説明する。
First, processing (A) will be described. A
次に処理(B)について説明する。図6のバー604~606は、撮像装置103のパンニング、チルティング、ズーム倍率を変更するために操作されるスライドバーである。撮像装置103による撮像画像は画像表示領域607に表示され、その下側にパンニング用のバー604が配置されている。バー604の操作によりP方向における撮影位置を変更可能である。画像表示領域607の右側にはチルティング用のバー605、およびズーム倍率変更用のバー606が配置されている。バー605の操作によりT方向における撮影位置を変更可能である。バー606の操作により撮影画角を変更可能である。
Next, processing (B) will be described.
図7には画像処理装置102と撮像装置103との間で行われる処理の一例を示す。時間軸の方向を図7の上から下への方向と定義する。ユーザがバー604~606のうちの所望のバーを操作した場合、画像処理装置102は撮像装置103に対して撮影指令を送信する(S701)。撮像装置103は駆動部を制御して、パンニングやチルティングの変更(撮影方向の変更)、またはズーム倍率の変更を行う(S702)。その後、撮像装置103による撮影動作が行われ(S703)、撮像画像のデータが画像処理装置102に送信される(S704)。画像処理装置102は撮像画像の表示処理を行い、入出力表示装置401の画面における画像表示領域607に撮像画像が表示される。図6に表示される画像例では、図1に示した搬送装置105と搬送中のワーク108、搬送装置105を固定しているボルト部分608(図3に示す領域302に対応する)が写っている。S701からS704の処理はループ処理として、ユーザがスライドバー(604から606のいずれか)を操作するたびに繰り返し実行される。
FIG. 7 shows an example of processing performed between the
次に処理(C)について説明する。処理(C)の目的は、撮像装置103の静定状態を画像処理によって判定することである。図6の画像表示領域607内に点線で示す枠609は、ユーザが基準画像領域を登録するための枠である。ユーザは操作入力装置402を用いて、枠609の形状、位置、大きさ等を変更可能である。図6では、搬送装置105を固定しているボルト部分608の画像領域が枠609によって包囲されており、4箇所の枠609内の領域が基準画像領域としてそれぞれ指定されている。図7のS705に基準画像領域の決定処理を示す。枠609は追加または削除が可能である。例えばユーザがマウスの右クリック操作を行うことでコンテキストメニュー(図示せず)が表示され、ユーザが「枠の追加・削除」を選択することによって、枠の追加や削除の操作を行える。
Next, processing (C) will be described. The purpose of the process (C) is to determine the static state of the
図6の登録処理画面601において中段には2つのスピンボックス610と611を示す。スピンボックス610は、基準画像領域から基準特徴を抽出する特徴抽出法を設定する際に使用される。特徴抽出法としてはパターンマッチング、エッジ検出、濃淡の検出、二値化重心、外接矩形、周囲長、色等を選択可能である。基準特徴とは、パターンの位置や位相、エッジ、濃淡値、二値化領域の面積や位置、矩形の大きさや位置および傾き、長さ、色濃度値等である。ユーザはスピンボックス610にて所望の選択肢を指定可能である。
Two
スピンボックス611は、振動量の計算法を選択する際に使用される。振動量の計算法は、基準特徴と、後述の計測時に抽出した特徴(基準特徴と同じく、パターンの位置または位相、エッジ、濃淡値、二値化領域の面積や位置、矩形の大きさや位置および傾き、長さ、色濃度値等)に基づく方法である。
A
静定状態判定方法では基準特徴を有する基準特徴部および抽出された特徴を有する特徴部のそれぞれについて、特徴部同士の位置関係等が選択可能である。例えばパターンの一致度、エッジや領域の重心位置の差、矩形の大きさや位置座標同士の距離および傾きの差、長さの差、濃淡の差等を選択することができる。複数の静定状態判定方法において2以上の計算方法の組み合わせを設定できるように構成してもよい。 In the static state determination method, it is possible to select the positional relationship and the like between the feature portions for each of the reference feature portion having the reference feature and the feature portion having the extracted feature. For example, it is possible to select the matching degree of patterns, the difference in the centroid positions of edges and regions, the size of rectangles, the distance between position coordinates, the difference in inclination, the difference in length, and the difference in gradation. It may be configured such that a combination of two or more calculation methods can be set in a plurality of static state determination methods.
図6のコントロール612は、撮像装置の静定状態を判定するための設定を行う際に使用される。ユーザは静定判定条件を指定する際にラジオボタン613または614を選択可能である。ラジオボタン613は静定状態の判定条件を簡単に設定したい場合に選択される。ラジオボタン614は静定状態の判定条件を詳細に設定したい場合に選択される。
ラジオボタン613が選択された場合、スピンボックス615で判定レベルを設定することができる。スピンボックス615で設定可能な判定レベルについては最小値と最大値が規定されている。これは、後述の計測間隔、計測時間、および閾値のセットに基づくものである。例えば、判定レベルが1である場合、計測精度をそれほど必要としない環境で使用することを想定している。この場合、計測間隔1回/sec、計測時間10秒、閾値3センチメートルが設定される。また判定レベルが10である場合には、計測精度を必要とする環境で使用することを想定している。この場合、計測間隔30回/sec、計測時間5秒、閾値1ミリメートルが設定される。このように、判定レベルに応じた既存の設定値の組を選択することができる。
If the
一方、ラジオボタン614が選択された場合には、判定レベルで設定可能な値よりも詳細な設定を行うことができる。この場合、計測間隔、計測時間、および閾値をそれぞれのスピンボックス616、617、618で個別に設定可能である。ここで、静定状態を判定するための、計測間隔、計測時間、および閾値について、図8を参照して説明する。
On the other hand, when the
図8(A)は、基準特徴部を表す枠(以下、特徴枠という)609が振動しているときの、それぞれの検出パターンの重心位置620,621,622を表す模式図である。この振動は撮像装置の振動により発生する、撮像画像における特徴枠609の相対的な振動であり、基準特徴部に対応する被写体自体の固有振動ではない。Y方向を図8(A)の上下方向と定義し、X方向を左右方向と定義する。位置620は特徴枠609の静定状態での重心位置を表し、位置621は特徴枠609がY方向に正値の振動量で振動しているときの重心位置を表す。位置622は特徴枠609がY方向に負値の振動量で振動しているときの重心位置を表す。
FIG. 8A is a schematic diagram showing
図8(B)は、振動量の時間的変化を例示したグラフである。横軸は時間軸であり、縦軸は振動量の計測値を表す。グラフ曲線623は特徴枠609の時間経過による振動量を表している。時間間隔624は図6のスピンボックス616で設定された計測間隔である。時刻t0から時刻t18までの時間625は図6のスピンボックス617で設定された計測時間である。所定の振動量を示す値626は図6のスピンボックス618で設定された静定状態判定用の閾値である。閾値は、対象となる撮像装置が静定状態であると判定するための所定の振動量であり、画素数または実距離(例えばセンチメートル)で表される。
FIG. 8(B) is a graph illustrating temporal changes in the amount of vibration. The horizontal axis is the time axis, and the vertical axis represents the measured value of the vibration amount. A
図8(B)に示す例では、画像処理装置102が時刻t0から振動量の計測を開始し、時間間隔624で示される計測間隔で振動量を計測し、最大振動量および最小振動量の時間経過を算出する。グラフ線628はグラフ曲線623の振幅の時間的変化を表す包絡線である。画像処理装置102は、計測時間である時刻t0から時刻t18まで計測間隔624で振動量を計測する。この期間に算出された、グラフ線628で示される振幅(計測値)が閾値未満とならない場合に、撮像装置が静定状態ではないと判定される。図8(B)の例では、時刻t10で振動量の振幅が閾値626を下まわっているので、画像処理装置102は時刻t10で撮像装置が静定状態であるとの判定結果を出力する。
In the example shown in FIG. 8B, the
(A)~(C)の設定処理が終了し、ユーザがOKボタン619(図6)のクリック操作を行うと、画像処理装置102は上述の特徴抽出法を用いて基準特徴を抽出する(図7:S706)。画像処理装置102は設定された項目のデータを後述するデータ形式で生成し、生成後のデータを基準特徴情報として処理データ保存領域406に保存する登録処理を行う(図7:S707)。
When the setting processes of (A) to (C) are completed and the user clicks the OK button 619 (FIG. 6), the
図9は基準特徴情報のデータ形式を表す図である。図9(A)は撮影パーツごとに生成されるデータ例を示す。例えば撮影パーツID801が「01」である第1行では、カメラID802が「01」、パン方向803の角度値が「10.0」(単位:°)、チルト方向804の角度値が「-5.0」(単位:°)である。ズーム倍率805は「1.0」倍、特徴抽出法806は「パターンマッチング」、振動量計算法807は「パターン位置」である。静定判定設定808は「詳細」、判定レベル809は「Null」、計測間隔810は「20」(回/sec)である。計測時間(数値)811は「3」、計測時間(単位)821は「秒」、閾値(数値)822は「1」、閾値(単位)823は「ミリメートル」である。撮影パーツID801が「02」である第2行では、撮影パーツID801が「01」である第1行に比べて、静定判定条件が緩和されていることを示している。符号801~811、および符号821~823で示す各項目については、図6において説明済みであるので、それらの説明を省略する。
FIG. 9 is a diagram showing the data format of reference feature information. FIG. 9A shows an example of data generated for each photographed part. For example, in the first row where the
図9(A)の各行に示す項目のデータは基準特徴情報ID812と関連付けられている。基準特徴情報ID812は、基準特徴情報を一意に識別するためのID(識別情報)である。図9(B)は基準特徴情報ごとに生成されるデータ例を示す。例えば第1行の基準特徴情報ID812は「A」である。このID「A」は図9(A)の第1行に示される撮影パーツID「01」に関連付けられている。第1行でのX座標813は基準特徴部のX座標「860」を表し、Y座標814は基準特徴部のX座標「520」を表す。第1行での幅815は基準特徴部の幅「80」を表し、高さ816は基準特徴部の高さ「60」を表す。特徴量817の項目には、例えば特徴抽出方法としてパターンマッチング法が選択されている場合にパターンの画像データが記録される。あるいは、特徴抽出方法として重心位置の抽出が選択されている場合に重心の位置座標が特徴量817の項目に記録される。ファイル名818は基準特徴部の画像ファイルの名称である。例えば、ユーザが画像処理プログラム407を作成した後、システムのテストをした際に計測結果が満足なレベルに達していない場合を想定する。ユーザは図6の登録処理画面601を再度表示させて、スピンボックス610を用いた基準特徴抽出方法の変更操作やコントロール612を用いた静定判定条件の設定内容の変更操作を行うことができる。このとき、基準特徴部の画像ファイルを記録しておくことで、基準特徴部の再撮影を行う必要がなくなるので作業の効率化を実現できる。
The item data shown in each row in FIG. 9A is associated with the reference
図10は計測処理の設定画面例を示す図である。ユーザが図5に示される処理パーツ(ワーク位置計算505や存在検出509等)に対してダブルクリック操作を行った場合、入出力表示装置401に計測処理の設定画面901が表示される。画像表示領域902内に示す画像は、撮像装置103により撮像された画像を示す。枠903はユーザが計測対象を登録するときに用いる枠であり、枠904はユーザが計測における探索範囲を登録するための枠である。枠904は枠903を含む、より広い範囲に設定されている。ユーザは、マウス等のポインティングデバイスを使って枠903または904を操作することで、枠の形状、位置、大きさを変更可能である。
FIG. 10 is a diagram showing an example of a setting screen for measurement processing. When the user double-clicks the processing parts (work
図10に示す計測処理法の表示領域905には、パターンマッチング法を用いてワークの位置計算が行われることが示されている。本実施例ではパターンマッチング法を例示して説明するが、他の画像処理に基づく計測処理方法が可能である。スピンボックス906,907,908はそれぞれ、パターンマッチング法におけるパターンの回転範囲、拡大率、およびスコア閾値をユーザが設定する際に使用される。
A measurement processing
ユーザがOKボタン909のクリック操作を行うと、画像処理装置102は枠903に示す計測対象、枠904に示す探索範囲、パターンマッチング法における回転範囲、拡大率、スコア閾値の各データを処理データ保存領域406に保存する。なお、ユーザが図6のスピンボックス610を用いて設定した特徴抽出法がパターンマッチング法以外の方法である場合には、選択された特徴抽出法に応じた設定項目が表示される。つまり画像処理装置102は符号906~908に示す項目に代えて、ユーザが選択した特徴抽出法に適したパラメータ設定UI(ユーザ・インターフェース)画面を表示する処理を実行する。
When the user clicks an
図3で説明したように、基準画像領域としては時間経過に伴う変動が小さく、かつ特徴量が大きい領域が好ましい。ワークが写っている領域のように、時間経過に伴って位置や傾きが変化する領域は適切でないと判断される。したがって、画像処理装置102は、図6の枠609に示される基準画像領域の設定時および図10の枠903による計測対象の登録時において基準画像領域と計測対象の画像領域が重なっている場合にユーザへの警告処理を行う。
As described with reference to FIG. 3, it is preferable that the reference image area has a small variation over time and a large feature amount. An area where the position or inclination changes with the passage of time, such as an area where a workpiece is photographed, is judged to be inappropriate. Therefore, when the reference image area shown in the
図11は、制御装置101からのトリガー信号を受け付けて画像処理装置102が画像計測処理を実行するときのシーケンス図である。図11では制御装置101の実行する処理が追加されており、制御装置101と画像処理装置102と撮像装置103との間で行われる処理の一例を示す。時間軸の方向を図11の上から下への方向と定義する。
FIG. 11 is a sequence diagram when the
まず制御装置101は画像処理装置102に制御指令を送信する(S1001)。画像処理装置102は処理データ保存領域406から基準特徴情報(図9:802~816、および821~823)を読み出す(S1002)。次に画像処理装置102は、撮影位置に関するパンニング方向、チルティング方向、ズーム倍率(図9:803~805)での撮影指令を撮像装置103に送信する(S1003)。撮像装置103は駆動部を制御して、パンニング角度およびチルティング角度、ズーム倍率を変更する(S1004)。撮影動作が行われ(S1005)、その後に撮像装置103は撮像画像のデータを画像処理装置102に送信する(S1006)。
First, the
画像処理装置102は、受信した画像データから、図6のスピンボックス610,611で指定された特徴抽出法および振動量計算方法に従って特徴部を抽出する処理を実行する(S1007)。画像処理装置102は、図6のスピンボックス617で指定された計測時間で撮影された時系列で隣り合う画像から特徴部の振動量を計算する。抽出された特徴部の中心座標等の、少なくとも一つの計算パラメータから振動量が計算される。画像処理装置102は算出した振動量を、図6のスピンボックス618で指定された閾値と比較する(S1008)。画像処理装置102は比較処理の結果、振動量の振幅が閾値より小さい場合に撮像装置103が静定状態であると判定する。また、振動量が閾値以上である場合には撮像装置103が静定状態ではないと判定される(S1014)。S1005からS1008、およびS1014の処理は、事前に図6のスピンボックス616で指定された計測間隔で繰り返し実行される。
The
S1014において撮像装置103が静定状態であるという判定結果が得られた場合、S1015およびS1016の処理が実行される。画像処理装置102は画像処理に基づく所定の計測を行い(S1015)、計測結果のデータを制御装置101に送信する(S1016)。
If it is determined in S1014 that the
一方、S1014において撮像装置103が静定状態でないという判定結果が得られた場合、画像処理装置102は図6のスピンボックス617で指定された計測時間が経過したか否かを判断する。指定された計測時間が経過していない場合、S1005~S1008、S1014の処理が繰り返し実行される。指定された計測時間が経過した場合に画像処理装置102は、計測時間以内に撮像装置103が静定状態に到達しなかったと判断して処理を終了する。または、画像処理装置102は計測時間以内に撮像装置103が静定状態に到達しなかったことを報知する処理を行ってから処理を終了する。
On the other hand, if it is determined in step S1014 that the
本実施例では、例えば撮像装置の固定方法や静定性能が十分でないために、撮像装置の静定状態の精度が画像処理における所望の計測精度に対して不足している場合にも対処可能である。画像処理やワークの種類に応じて静定状態判定の設定を変更できるので、撮像装置が必要十分な静定状態であることを判定し、必要最小限の時間で撮影および画像計測を行うことができる。 In this embodiment, it is possible to cope with a case where the accuracy of the stationary state of the imaging device is insufficient for the desired measurement accuracy in the image processing, for example, because the fixing method or the static stability performance of the imaging device is not sufficient. be. You can change the static state determination settings according to the type of image processing and workpiece, so you can determine if the imaging device is in a necessary and sufficient static state, and perform shooting and image measurement in the minimum necessary time. can.
また、静定状態判定に画像処理を利用することにより、廉価なカメラでも計測精度を確保しつつ画像処理を行える。例えば、ワークの撮像画像に基づき、ワークの種類ごとに選別してロボットが各ワークを異なる搬送車に積載する工程では、静定の判定レベルを高くして判定条件を厳しく設定することができる。この設定により、画像処理の計測精度を高め、ロボットを正確に制御することができる。一方で、撮像装置が搬送車を撮像して搬送車が停止枠内に存在するかどうかを判定する工程では、静定判定レベルを低く設定して判定条件を緩和することができる。この設定により、工程で要求される計測精度を満たしつつ、必要な計測を短時間で終了させることができる。本実施例によれば、指定された静定判定条件にしたがって画像処理に必要十分な計測精度で撮像装置の静定判定を行い、計測処理をより短時間で行うことができる。 In addition, by using image processing for static state determination, even an inexpensive camera can perform image processing while ensuring measurement accuracy. For example, in a process in which workpieces are sorted by type based on captured images of the workpieces and the robot loads the workpieces onto different transport vehicles, the determination level of static determination can be raised to set strict determination conditions. With this setting, it is possible to improve the measurement accuracy of image processing and accurately control the robot. On the other hand, in the step of determining whether or not the transport vehicle exists within the stop frame by the imaging device capturing an image of the transport vehicle, the determination condition can be relaxed by setting the static determination level low. With this setting, the required measurement can be completed in a short time while satisfying the measurement accuracy required in the process. According to the present embodiment, it is possible to perform the static determination of the imaging device with sufficient measurement accuracy necessary for image processing according to the designated static determination condition, and to perform the measurement process in a shorter time.
[第2実施例]
次に、本発明の第2実施例を説明する。第1実施例ではユーザ操作により基準画像領域を指定する必要があるのに対し、本実施例では基準画像領域を自動的または半自動的に決定可能な画像処理装置について説明する。画像特徴について詳しくないユーザであっても好適な基準画像領域を設定することができ、設定の際の属人性を低減可能である。なお、本実施例に係るシステム構成は第1実施例と同様であるため、既に使用した符号を用いることで、それらの詳細な説明を省略する。このような説明の省略の仕方は後述の実施例でも同じである。
[Second embodiment]
Next, a second embodiment of the invention will be described. In the first embodiment, it is necessary to specify the reference image area by user's operation, whereas in the present embodiment, an image processing apparatus capable of automatically or semi-automatically determining the reference image area will be described. Even a user who is unfamiliar with image features can set a suitable reference image area, and it is possible to reduce the dependence on the individual at the time of setting. Since the system configuration according to the present embodiment is the same as that of the first embodiment, the detailed description thereof will be omitted by using the reference numerals that have already been used. This way of omitting the description is the same for the embodiments described later.
図12は、本実施例の画像処理装置102における、基準特徴の登録処理画面例を示す。図13は基準特徴の登録処理のシーケンス図である。以下では、第1実施例との相違点を主に説明する。図12に示す登録画面1101では、計測試行のボタン1102が追加されている。ユーザはボタン1102を操作し、複数回に亘って行われる計測の試行を指示することができる。
FIG. 12 shows an example of a reference feature registration processing screen in the
ユーザは、基準特徴の登録画面1101は見ながらバー604~606を操作する。画像処理装置102は撮像装置103の雲台201の駆動制御を行って撮影方向を制御する。撮像装置103によって撮像された撮像画像は画像表示領域607に表示される。ここで、ユーザがボタン1102のクリック操作を行うと、画像処理装置102は撮像装置103に撮影指令を送信する(図13:S1201)。撮像装置103は所定回数の撮影を行って(S1202)、全ての画像のデータを画像処理装置102に送信する(S1203)。
The user operates
画像処理装置102は、撮像装置103から受信した画像データから、変動が小さい領域を算出し(S1204)、変動の大きい領域1103を黒色で表示する。次に画像処理装置102は、変動が小さい領域のうちで特徴量が大きな領域を算出する。特徴量が大きな領域とは、例えばコントラストが明瞭な領域である。画像処理装置102は画像表示領域607において、特徴量の小さな領域1104を灰色で表示する(S1205)。そして画像処理装置102は、特徴量が大きな領域1105を基準画像領域に決定する(S1206)。
The
本実施形態では、例えば複数回に亘って行われる計測によって取得される画像領域のうち、変動が最も小さい画像領域が自動的に基準画像領域として設定される。あるいは、変動が小さい領域のうちで特徴量が大きな領域を画像処理装置102が優先して自動的に基準画像領域として設定する。このような自動的な処理に代えて、変動が小さく特徴量が大きな1個または複数個の領域を基準画像領域の候補としてユーザに提示し、ユーザが選択操作を行う半自動的な処理でもよい。この場合、ユーザに基準画像領域の選択を促す処理が行われる。変動が小さく特徴量が大きな領域1105の候補は画像表示領域607において、例えば白色表示でユーザに提示され、ユーザは所望の領域を基準画像領域として指定することができる。
In the present embodiment, for example, an image area with the smallest variation among image areas obtained by measurements performed a plurality of times is automatically set as the reference image area. Alternatively, the
本実施例では、画像特徴について詳しくないユーザでも好適な基準画像領域の設定を行うことができる。また、設定の際に属人性を低減し、個人の習熟度に影響されにくい処理を行うことができる。 In this embodiment, even a user who is unfamiliar with image features can set a suitable reference image area. In addition, it is possible to reduce the dependence on individual characteristics during setting, and perform processing that is less likely to be affected by individual proficiency levels.
[第3実施例]
次に本発明の第3実施例を説明する。第1実施例では、図8(B)に示す計測間隔624で撮像装置103の振動量が計測され、その時間経過を示すグラフ線628で表される振幅が算出される。画像処理装置102は、計測時間625中のある時点まで計測間隔624で計測を行い、振動量の振幅が閾値未満となった時点で撮像装置103が静定状態であることを判定する。
[Third embodiment]
A third embodiment of the present invention will now be described. In the first embodiment, the vibration amount of the
本実施例では、過去に静定状態を判定したことがある撮像装置とその設置状態での振動量の計測値を使用して、撮像装置が静定状態となる時間を推測する処理について説明する。図14は振動量の時間的変化を例示したグラフであり、縦軸および横軸の設定は図8(B)と同じである。図14では、過去に静定状態を判定したことがある撮像装置について、基準特徴部の時間経過による振動量の推測値1303を表している。画像処理装置102は設定された計測間隔624で計測を行う。画像処理装置102は計測開始時刻t4における振動量と、静定推測曲線1302、および設定された閾値1301に基づき、対象となる撮像装置が静定状態であると判定される時刻t10を算出する。静定推測曲線1302は振動量の推測値1303の包絡線であり、静定推測曲線1302が閾値1301の線と交差する位置1304を算出する推測処理が行われる。
In this embodiment, processing for estimating the time when an imaging device is in a static state will be described using an imaging device that has determined a static state in the past and the measured value of the amount of vibration in the installation state of the imaging device. . FIG. 14 is a graph showing an example of the temporal change in the amount of vibration, and the vertical and horizontal axes are the same as in FIG. 8(B). FIG. 14 shows an estimated
画像処理装置102は、撮像装置が静定状態となると推測した時刻t10の直前の時刻t9またはさらに前の時刻t8で閾値と振動量の振幅との比較処理を再開する。つまり、画像処理装置102は、計測開始時刻t4から計測再開時刻t8までの時間1305において、振動量の振幅と閾値との比較処理を行わない。これにより、画像処理装置102が使用する演算リソースを確保したり、あるいは別のタスクによる処理を実施したりすることが可能となる。
The
対象となる撮像装置に係る振動量の振幅の時間的変化を示す静定推測曲線に関して画像処理装置102は、過去の計測値から近似的な曲線を算出する。または、ユーザが静定推測曲線の算出方法を選択可能である場合に画像処理装置102は算出方法の提示および選択処理を行うが、算出手段については任意である。本実施例では、撮像装置が静定状態となる時間を過去の計測値から推測することで、実際の振動量の振幅と閾値との比較処理にかかる負担を軽減することができる。
The
前記実施例では、制御装置101と画像処理装置102と撮像装置103が各別の構成である実施形態を説明したが、本発明はそのような例に限られない。例えば、画像処理装置102に相当する画像処理部と、撮像装置103に相当する、撮影方向および撮影画角の変更が可能な撮像部とを1つの装置内に備える撮像装置がある。あるいは、制御装置101と画像処理装置102と撮像装置103にそれぞれ対応する構成部を1つの装置内に備える撮像装置がある。このような撮像装置も本発明の技術的範囲に含まれる。
Although the
[その他の実施例]
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
[Other Examples]
The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in the computer of the system or apparatus reads and executes the program. It can also be realized by processing to It can also be implemented by a circuit (for example, ASIC) that implements one or more functions.
101 制御装置
102 画像処理装置
103 撮像装置
104 ロボット
105 搬送装置
106,107 搬送車
108,109,110 ワーク
Claims (10)
前記撮像画像にて基準となる基準画像領域を設定し、前記基準画像領域における画像の特徴部を設定する処理を行う設定手段と、
前記撮像手段の静定状態を判定する判定条件のデータを入力する入力手段と、
前記撮像手段によって計測時に取得される撮像画像から、前記設定手段により設定された前記特徴部に対応する画像領域での振動量を算出する算出手段と、
前記撮像画像のデータを取得して画像処理を行う画像処理手段と、
前記算出手段によって算出された前記振動量が前記判定条件を満たす前記撮像手段の静定状態にて、前記画像処理手段により前記撮像画像の画像処理を行い、画像処理結果を出力する制御を行う制御手段と、を備え、
前記入力手段によって複数の判定レベルから選択される前記判定条件のデータは、前記判定レベルに対応する計測間隔、計測時間、および閾値をあらかじめ組み合わせたデータであり、
前記制御手段は、前記算出手段によって算出された前記振動量を、前記複数の判定レベルから選択された判定レベルに対応する前記閾値と比較して前記画像処理手段により前記撮像画像の画像処理を行うか否かを決定する
ことを特徴とする画像処理装置。 An image processing device for processing data of a captured image of a measurement target captured by an imaging means capable of changing a shooting direction or a shooting angle of view,
setting means for setting a reference image area that serves as a reference in the captured image, and setting a characteristic portion of the image in the reference image area;
input means for inputting data of determination conditions for determining the static state of the imaging means;
calculation means for calculating a vibration amount in an image region corresponding to the characteristic portion set by the setting means from the captured image acquired by the imaging means at the time of measurement;
an image processing means for acquiring data of the captured image and performing image processing;
In a static state of the imaging means in which the vibration amount calculated by the calculating means satisfies the determination condition, the image processing means performs image processing on the captured image, and control is performed to output the image processing result. comprising means and
The data of the determination condition selected from a plurality of determination levels by the input means is data obtained by combining in advance a measurement interval, a measurement time, and a threshold value corresponding to the determination level,
The control means compares the vibration amount calculated by the calculation means with the threshold value corresponding to the determination level selected from the plurality of determination levels, and performs image processing of the captured image by the image processing means. determine whether
An image processing apparatus characterized by:
ことを特徴とする請求項1に記載の画像処理装置。 The control means determines to perform image processing of the captured image by the image processing means when the amplitude of the vibration amount calculated by the calculation means at the measurement interval and the measurement time is less than the threshold value. 2. The image processing apparatus according to claim 1 , wherein:
ことを特徴とする請求項1に記載の画像処理装置。 When the control means determines that the amplitude of the vibration amount calculated within the measurement time by the calculation means does not become less than the threshold value, the control means notifies that the imaging means has not reached a static state. The image processing apparatus according to claim 1 , characterized by:
ことを特徴とする請求項1乃至3のいずれか1項に記載の画像処理装置。 4. The apparatus according to any one of claims 1 to 3 , further comprising an estimating means for estimating the time at which said imaging means is in a static and stable state by calculating a static estimating curve from past measured values relating to said imaging means. 2. The image processing device according to item 1.
ことを特徴とする請求項4に記載の画像処理装置。 The control means does not compare the amplitude of the vibration amount with a threshold before the time at which the imaging means is estimated to be in a static state by the estimation means, and the time at which the imaging means is estimated to be in a static state. 5. The image processing apparatus according to claim 4 , wherein a process of comparing the amplitude of said vibration amount with said threshold value is performed in said step.
ことを特徴とする請求項1乃至5のいずれか1項に記載の画像処理装置。 6. The image processing according to any one of claims 1 to 5 , wherein the setting means sets an image area different from the image area corresponding to the measurement target as the reference image area. Device.
前記設定手段は、前記撮影位置での前記撮像画像にて前記基準画像領域を設定する処理を行う
ことを特徴とする請求項1乃至6のいずれか1項に記載の画像処理装置。 Drive control means for controlling the driving unit of the imaging means to change the imaging direction or the imaging angle of view of the imaging means and setting the imaging position of the measurement target,
7. The image processing apparatus according to any one of claims 1 to 6 , wherein the setting unit performs processing for setting the reference image area in the captured image at the shooting position.
前記撮像手段と、を備える
ことを特徴とする撮像装置。 an image processing apparatus according to any one of claims 1 to 7 ;
An imaging device comprising: the imaging means;
前記撮像画像にて基準となる基準画像領域を設定し、前記基準画像領域における画像の特徴部を設定する処理を行う工程と、
前記撮像手段の静定状態を判定する判定条件のデータを入力する入力工程と、
前記撮像手段によって計測時に取得される撮像画像から、設定された前記特徴部に対応する画像領域での振動量を算出する算出工程と、
算出された前記振動量が前記判定条件を満たす前記撮像手段の静定状態にて、画像処理手段により前記撮像画像の画像処理を行い、画像処理結果を出力する制御を行う制御工程と、を有し、
前記入力工程にて、複数の判定レベルから選択される前記判定条件のデータは、前記判定レベルに対応する計測間隔、計測時間、および閾値をあらかじめ組み合わせたデータであり、
前記制御工程は、前記算出工程によって算出された前記振動量を、前記複数の判定レベルから選択された判定レベルに対応する前記閾値と比較して前記画像処理手段により前記撮像画像の画像処理を行うか否を決定する
ことを特徴とする画像処理装置の制御方法。 A control method executed by an image processing device that processes data of a captured image of a measurement target captured by an imaging means capable of changing a shooting direction or a shooting angle of view,
a step of setting a reference image area that serves as a reference in the captured image, and setting a characteristic portion of the image in the reference image area;
an input step of inputting data of determination conditions for determining the static state of the imaging means;
a calculation step of calculating an amount of vibration in an image region corresponding to the set characteristic portion from an image captured by the imaging means during measurement;
and a control step of performing image processing of the captured image by an image processing unit in a static state of the imaging unit in which the calculated vibration amount satisfies the determination condition, and performing control to output an image processing result. death,
In the input step, the determination condition data selected from a plurality of determination levels is data obtained by combining in advance a measurement interval, a measurement time, and a threshold value corresponding to the determination level,
The control step compares the vibration amount calculated by the calculation step with the threshold value corresponding to the determination level selected from the plurality of determination levels, and performs image processing of the captured image by the image processing means. determine whether
A control method for an image processing apparatus, characterized by:
A program that causes a computer to function as each unit included in the image processing apparatus according to any one of claims 1 to 7 .
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018129070A JP7210171B2 (en) | 2018-07-06 | 2018-07-06 | IMAGE PROCESSING DEVICE AND CONTROL METHOD THEREOF, IMAGING DEVICE, AND PROGRAM |
US16/502,250 US11336831B2 (en) | 2018-07-06 | 2019-07-03 | Image processing device, control method, and program storage medium |
CN201910603870.0A CN110691186B (en) | 2018-07-06 | 2019-07-05 | Image processing apparatus, control method, and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018129070A JP7210171B2 (en) | 2018-07-06 | 2018-07-06 | IMAGE PROCESSING DEVICE AND CONTROL METHOD THEREOF, IMAGING DEVICE, AND PROGRAM |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2020009101A JP2020009101A (en) | 2020-01-16 |
JP7210171B2 true JP7210171B2 (en) | 2023-01-23 |
Family
ID=69151710
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018129070A Active JP7210171B2 (en) | 2018-07-06 | 2018-07-06 | IMAGE PROCESSING DEVICE AND CONTROL METHOD THEREOF, IMAGING DEVICE, AND PROGRAM |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7210171B2 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011011330A (en) | 2009-06-03 | 2011-01-20 | Canon Inc | Robot with camera |
JP2012114852A (en) | 2010-11-26 | 2012-06-14 | Fuji Mach Mfg Co Ltd | Imaging apparatus |
-
2018
- 2018-07-06 JP JP2018129070A patent/JP7210171B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011011330A (en) | 2009-06-03 | 2011-01-20 | Canon Inc | Robot with camera |
JP2012114852A (en) | 2010-11-26 | 2012-06-14 | Fuji Mach Mfg Co Ltd | Imaging apparatus |
Also Published As
Publication number | Publication date |
---|---|
JP2020009101A (en) | 2020-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110691186B (en) | Image processing apparatus, control method, and recording medium | |
JP6396516B2 (en) | Visual sensor calibration apparatus, method and program | |
US10512941B2 (en) | Projection instruction device, parcel sorting system, and projection instruction method | |
TWI397835B (en) | Input device, control method of input device, and program | |
US10860855B2 (en) | Instruction projecting device, package sorting system and instruction projecting method | |
US11373263B2 (en) | Image processing device capable of assisting with setting of work restoration, method of controlling the same, and recording medium | |
EP3434621B1 (en) | Instruction projecting device, parcel sorting system and instruction projecting method | |
US10471474B2 (en) | Projection indicator, cargo assortment system, and projection indicating method | |
CN113284178A (en) | Object stacking method and device, computing equipment and computer storage medium | |
JP7094806B2 (en) | Image processing device and its control method, image pickup device, program | |
JP7210171B2 (en) | IMAGE PROCESSING DEVICE AND CONTROL METHOD THEREOF, IMAGING DEVICE, AND PROGRAM | |
US20210042576A1 (en) | Image processing system | |
JP7330864B2 (en) | Scrap image photographing system, scrap image photographing method, photographing support device, and program | |
CN115667842A (en) | System and method for dimensioning objects | |
US20210323150A1 (en) | Image processing apparatus monitoring target, control method therefor, and storage medium storing control program therefor | |
CN109218707B (en) | Oral scanning system and oral scanning method | |
US10589319B2 (en) | Projection instruction device, parcel sorting system, and projection instruction method | |
TWI469089B (en) | Image determining method and object coordinate computing apparatus | |
JP6512852B2 (en) | Information processing apparatus, information processing method | |
EP3434624B1 (en) | Projection instruction device, parcel sorting system, and projection instruction method | |
US20230364798A1 (en) | Information processing method, image processing method, robot control method, product manufacturing method, information processing apparatus, image processing apparatus, robot system, and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20210705 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20220707 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220726 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220926 |
|
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: 20221213 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230111 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 7210171 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |