JP2009122821A - Programming device for image processing controller - Google Patents

Programming device for image processing controller Download PDF

Info

Publication number
JP2009122821A
JP2009122821A JP2007294211A JP2007294211A JP2009122821A JP 2009122821 A JP2009122821 A JP 2009122821A JP 2007294211 A JP2007294211 A JP 2007294211A JP 2007294211 A JP2007294211 A JP 2007294211A JP 2009122821 A JP2009122821 A JP 2009122821A
Authority
JP
Japan
Prior art keywords
unit
image processing
image
imaging
camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2007294211A
Other languages
Japanese (ja)
Other versions
JP4944737B2 (en
Inventor
Takashi Hirano
高志 平野
Toshihiro Konaka
敏寛 小中
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.)
Keyence Corp
Original Assignee
Keyence 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 Keyence Corp filed Critical Keyence Corp
Priority to JP2007294211A priority Critical patent/JP4944737B2/en
Publication of JP2009122821A publication Critical patent/JP2009122821A/en
Application granted granted Critical
Publication of JP4944737B2 publication Critical patent/JP4944737B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a programming device allowing changeover of a photographing mode to one of a trigger synchronous mode and a trigger asynchronous mode without once stopping operation. <P>SOLUTION: This programming device for an image processing controller has an imaging condition determination part 29 for determining an acquisition condition when acquiring an image-processing camera image as a parameter of an imaging unit selected on a flowchart 47. The imaging condition determination part 29 can select one of the trigger synchronous mode to take in a camera image made to be photographed in synchronization with an input signal from an imaging trigger input terminal as the image-processing camera image, and the trigger asynchronous mode to extract the image-processing camera image based on the input signal from the camera images obtained by making the photographing be repeatedly performed as the acquisition condition, and allows arrangement of the imaging units selected with one of the trigger synchronous mode and the trigger asynchronous mode on two different branch flows branched by a branch unit on the flowchart 47. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画像処理コントローラ用のプログラム作成装置に係り、さらに詳しくは、検査対象物を撮影して得られるカメラ画像に基づいて判定信号を出力する画像処理コントローラの制御プログラムを作成するプログラム作成装置の改良に関する。   The present invention relates to a program creation device for an image processing controller, and more specifically, a program creation device that creates a control program for an image processing controller that outputs a determination signal based on a camera image obtained by photographing an inspection object. Regarding improvements.

検査対象物を撮影して得られるカメラ画像を画像処理し、検査対象物の形状、位置、カメラ画像に基づく判定結果を示す判定信号などを処理結果として出力する画像処理コントローラには、一連の処理手順を変更可能なものが知られている(例えば、特許文献1)。通常、一連の処理手順をこの様な画像処理コントローラに実行させるための制御プログラムは、PC(パーソナルコンピュータ)などの情報処理端末上で動作するエディタ(ソフトウェア)を用いて作成される。ユーザは、作成した制御プログラムを画像処理コントローラに転送することにより、検査対象物に対して所望の検査を行うことができる。   The image processing controller that performs image processing on a camera image obtained by photographing the inspection object and outputs a determination signal indicating the determination result based on the shape, position, and camera image of the inspection object as a processing result includes a series of processes. A method that can change the procedure is known (for example, Patent Document 1). Usually, a control program for causing such an image processing controller to execute a series of processing procedures is created using an editor (software) that operates on an information processing terminal such as a PC (personal computer). The user can perform a desired inspection on the inspection object by transferring the created control program to the image processing controller.

従来の画像処理コントローラの場合、カメラから画像処理用の画像データを取得する際の取得条件や、カメラに撮影させる際の撮影条件は、制御プログラムとは別個の環境設定に関するデータとして定められる。例えば、上記取得条件として、トリガ同期モード又はトリガ非同期モードのいずれかを選択することができる。このトリガ同期モードは、外部機器から入力される撮像トリガ信号に撮影タイミングを同期させて得られたカメラ画像を画像処理用として取り込む撮影モードであり、トリガ非同期モードは、繰返し撮影させて得られるカメラ画像から撮像トリガ信号に基づいて画像処理用のカメラ画像を抽出する撮影モードである。しかしながら、この様な環境設定に関するデータが、制御プログラムとは別個のデータとして作成され、複数の制御プログラムに共通のデータとして画像処理コントローラ内に保持されるので、運転中に環境設定を自動的に切り替えながら計測を繰り返させるというようなことはできないという問題があった。特に、運転中に撮影モードをトリガ同期モード又はトリガ非同期モードのいずれかに切り替えるには、運転を一旦停止させなければならなかった。
特開平9−288568号公報
In the case of a conventional image processing controller, an acquisition condition when acquiring image data for image processing from a camera and a shooting condition when shooting with the camera are determined as data relating to environment settings separate from the control program. For example, either the trigger synchronous mode or the trigger asynchronous mode can be selected as the acquisition condition. This trigger synchronization mode is a shooting mode in which a camera image obtained by synchronizing the shooting timing with an imaging trigger signal input from an external device is captured for image processing, and the trigger asynchronous mode is a camera obtained by repeatedly shooting. This is a shooting mode in which a camera image for image processing is extracted from an image based on an imaging trigger signal. However, since data related to such environment settings is created as data separate from the control program and is stored in the image processing controller as data common to a plurality of control programs, the environment settings are automatically set during operation. There was a problem that the measurement could not be repeated while switching. In particular, in order to switch the photographing mode to either the trigger synchronous mode or the trigger asynchronous mode during driving, the driving has to be temporarily stopped.
JP-A-9-288568

上述した通り、従来の画像処理コントローラでは、運転中に撮影モードを自動的に切り替えながら計測を繰り返させることはできないという問題があった。   As described above, the conventional image processing controller has a problem that the measurement cannot be repeated while automatically switching the shooting mode during operation.

本発明は、上記の事情に鑑みてなされたものであり、運転中に撮影モードを自動的に切り替えながら計測を繰り返させることができる画像処理コントローラ用のプログラム作成装置を提供することを目的とする。特に、運転を一旦停止させることなく、撮影モードをトリガ同期モード又はトリガ非同期モードのいずれかに切り替えさせることができるプログラム作成装置を提供することを目的とする。   The present invention has been made in view of the above circumstances, and an object thereof is to provide a program creation device for an image processing controller capable of repeating measurement while automatically switching shooting modes during driving. . In particular, an object of the present invention is to provide a program creation device that can switch the photographing mode to either the trigger synchronous mode or the trigger asynchronous mode without temporarily stopping the operation.

第1の本発明による画像処理コントローラ用のプログラム作成装置は、検査対象物を撮影してカメラ画像を生成するカメラと、上記カメラから上記カメラ画像を取得して当該カメラ画像から計測結果を抽出し、この計測結果に基づいて上記検査対象物の良否を判定して判定信号を出力する画像処理コントローラと、上記画像処理コントローラによって表示制御され、上記カメラ画像を表示するディスプレイとからなる画像処理装置に用いられる上記画像処理コントローラの制御プログラムを作成するプログラム作成装置であって、パラメータが変更可能な処理を示す処理ユニットとして、実行フローを2以上の枝フローに分岐させる分岐ユニット、撮像トリガ入力端子からの入力信号に基づいて画像処理用の上記カメラ画像を取得する撮像ユニット、並びに、上記撮像ユニットによって取得された上記カメラ画像から上記計測結果を抽出する計測ユニットを保持する処理ユニット記憶手段と、スタートシンボルにおいて開始し、エンドシンボルにおいて終了する実行フロー上に上記処理ユニットを配置することによって生成されたフローチャートを表示するフローチャート表示手段と、上記フローチャート上で選択された上記撮像ユニットの上記パラメータとして、画像処理用のカメラ画像を取得する際の取得条件を決定する撮像条件決定手段と、上記フローチャートに基づいて、上記画像処理コントローラの制御プログラムを生成するプログラム生成手段と、上記制御プログラムを上記画像処理コントローラへ転送する転送手段とを備え、上記撮像条件決定手段が、上記撮像トリガ入力端子からの入力信号に同期して撮影させたカメラ画像を画像処理用として取り込むトリガ同期モード、及び、繰返し撮影させて得られるカメラ画像から上記入力信号に基づいて画像処理用のカメラ画像を抽出するトリガ非同期モードのいずれかを上記取得条件として選択することができ、上記フローチャート上の上記分岐ユニットによって分岐された異なる2つの枝フロー上に、上記トリガ同期モード及び上記トリガ非同期モードのいずれかが選択された上記撮像ユニットをそれぞれ配置可能であるように構成される。   According to a first aspect of the present invention, there is provided a program creation device for an image processing controller that captures an inspection object and generates a camera image, acquires the camera image from the camera, and extracts a measurement result from the camera image. An image processing apparatus comprising: an image processing controller that determines the quality of the inspection object based on the measurement result and outputs a determination signal; and a display that is controlled by the image processing controller and displays the camera image. A program creation device for creating a control program for the image processing controller used, as a processing unit indicating a process whose parameters can be changed, from a branch unit for branching an execution flow into two or more branch flows, from an imaging trigger input terminal An imaging unit that acquires the camera image for image processing based on the input signal of And processing unit storage means for holding a measurement unit for extracting the measurement result from the camera image acquired by the imaging unit, and the processing on the execution flow starting at the start symbol and ending at the end symbol Flowchart display means for displaying a flowchart generated by arranging the units, and imaging for determining an acquisition condition when acquiring a camera image for image processing as the parameter of the imaging unit selected on the flowchart A condition determination unit, a program generation unit that generates a control program for the image processing controller based on the flowchart, and a transfer unit that transfers the control program to the image processing controller. The above imaging tri Trigger synchronization mode that captures a camera image taken in synchronization with an input signal from the input terminal for image processing, and a camera image for image processing is extracted from the camera image obtained by repeated photographing based on the input signal Can be selected as the acquisition condition, and either of the trigger synchronous mode and the trigger asynchronous mode is set on two different branch flows branched by the branch unit on the flowchart. The selected imaging units can be arranged respectively.

このプログラム作成装置では、処理ユニットを実行フロー上に配置することによって生成されたフローチャートが表示され、フローチャート上で選択された撮像ユニットのパラメータとして、画像処理用のカメラ画像の取得条件が決定される。その際、トリガ同期モード又はトリガ非同期モードのいずれかが取得条件として選択することができる。この様な構成によれば、フローチャート上に分岐ユニットが配置され、さらに、分岐ユニットによって分岐された異なる2つの枝フロー上にそれぞれ撮像ユニットが配置されている場合に、これらの撮像ユニットについて、枝フローごとにトリガ同期モード又はトリガ非同期モードのいずれかを選択可能となる。このため、枝フロー上の撮像ユニットについて、枝フローごとに取得条件が選択できるので、枝フローごとに異なる取得条件が撮像ユニットのパラメータとして選択された制御プログラムを生成することができる。従って、制御プログラム内の枝フローに応じて画像処理用のカメラ画像の取得条件が切り替えさせることができるので、画像処理コントローラの運転中に撮影モードを自動的に切り替えながら計測を繰り返させることができる。特に、制御プログラムによって取得条件が切り替えられるので、運転を一旦停止させることなく、撮影モードをトリガ同期モード又はトリガ非同期モードのいずれかに切り替えさせることができる。   In this program creation device, a flowchart generated by arranging the processing units on the execution flow is displayed, and a camera image acquisition condition for image processing is determined as a parameter of the imaging unit selected on the flowchart. . At that time, either the trigger synchronous mode or the trigger asynchronous mode can be selected as the acquisition condition. According to such a configuration, when the branch unit is arranged on the flowchart, and when the imaging unit is arranged on each of two different branch flows branched by the branch unit, the branch units are about the imaging units. Either a trigger synchronous mode or a trigger asynchronous mode can be selected for each flow. For this reason, since the acquisition conditions can be selected for each branch flow for the imaging unit on the branch flow, it is possible to generate a control program in which different acquisition conditions for each branch flow are selected as parameters of the imaging unit. Accordingly, the acquisition conditions of the camera image for image processing can be switched according to the branch flow in the control program, so that the measurement can be repeated while automatically switching the shooting mode during operation of the image processing controller. . In particular, since the acquisition conditions are switched by the control program, it is possible to switch the imaging mode to either the trigger synchronous mode or the trigger asynchronous mode without temporarily stopping the operation.

第2の本発明による画像処理コントローラ用のプログラム作成装置は、上記構成に加え、上記トリガ非同期モードでは、一定周期で繰返し撮影された上記カメラ画像が上記ディスプレイ上に動画として表示されるように構成される。この様な構成によれば、カメラ画像が動画としてディスプレイ上に表示されるので、検査対象物の状態をディスプレイ上で確認しながら撮像トリガ信号を入力させることができる。   A program creation device for an image processing controller according to a second aspect of the present invention is configured such that, in the trigger asynchronous mode, the camera image repeatedly photographed at a fixed period is displayed as a moving image on the display in the trigger asynchronous mode. Is done. According to such a configuration, since the camera image is displayed on the display as a moving image, the imaging trigger signal can be input while confirming the state of the inspection object on the display.

第3の本発明による画像処理コントローラ用のプログラム作成装置は、上記構成に加え、上記トリガ同期モードにおける上記入力信号の入力から上記カメラに撮影を開始させるまでの時間が、上記トリガ非同期モード時に上記カメラが繰返し撮影して上記カメラ画像を連続生成する際の撮像周期よりも短いように構成される。   According to a third aspect of the present invention, there is provided a program creation device for an image processing controller, wherein, in addition to the above-described configuration, the time from the input signal input in the trigger synchronous mode to the start of shooting of the camera is the time in the trigger asynchronous mode The camera is configured to be shorter than the imaging cycle when the camera repeatedly captures and continuously generates the camera image.

第4の本発明による画像処理コントローラ用のプログラム作成装置は、上記構成に加え、上記撮像ユニットの編集時における操作入力に基づいて、異なる撮像ユニットのパラメータであって、上記撮像条件決定手段によって決定された取得条件を互いに関連付けるパラメータ関連付け手段を備え、上記パラメータ関連付け手段によって互いに関連付けられた複数のパラメータのうちの1つが変更されると、他のパラメータも同じように変更されるように構成される。   According to a fourth aspect of the present invention, there is provided a program creation device for an image processing controller, which is a parameter of a different imaging unit based on an operation input at the time of editing the imaging unit, and is determined by the imaging condition determining means, in addition to the configuration described above. Parameter association means for associating acquired acquisition conditions with each other, and when one of a plurality of parameters associated with each other is changed by the parameter association means, the other parameters are similarly changed. .

本発明による画像処理コントローラ用のプログラム作成装置によれば、枝フロー上の撮像ユニットについて、枝フローごとに取得条件が選択できるので、枝フローごとに異なる取得条件が撮像ユニットのパラメータとして選択された制御プログラムを生成することができる。従って、制御プログラム内の枝フローに応じて画像処理用のカメラ画像の取得条件が切り替えさせることができるので、画像処理コントローラの運転中に撮影モードを自動的に切り替えながら計測を繰り返させることができる。特に、制御プログラムによって取得条件が切り替えられるので、運転を一旦停止させることなく、撮影モードをトリガ同期モード又はトリガ非同期モードのいずれかに切り替えさせることができる。   According to the program creation device for an image processing controller according to the present invention, since an acquisition condition can be selected for each branch flow for the imaging unit on the branch flow, a different acquisition condition for each branch flow is selected as a parameter of the imaging unit. A control program can be generated. Accordingly, the acquisition conditions of the camera image for image processing can be switched according to the branch flow in the control program, so that the measurement can be repeated while automatically switching the shooting mode during operation of the image processing controller. . In particular, since the acquisition conditions are switched by the control program, it is possible to switch the imaging mode to either the trigger synchronous mode or the trigger asynchronous mode without temporarily stopping the operation.

<検査支援システム>
図1は、本発明の実施の形態による検査支援システムの一構成例を示した斜視図である。この検査支援システムは、検査対象物の搬送ライン上に配置される画像処理装置1と、この画像処理装置1の制御プログラムを生成するPC(パーソナルコンピュータ)2とからなる。
<Inspection support system>
FIG. 1 is a perspective view showing a configuration example of an inspection support system according to an embodiment of the present invention. The inspection support system includes an image processing apparatus 1 arranged on a conveyance line of an inspection object, and a PC (personal computer) 2 that generates a control program for the image processing apparatus 1.

画像処理装置1は、画像処理コントローラ11、カメラ12、ディスプレイ13a及び操作ユニット13bからなり、検査対象物から得られたカメラ画像に基づいて判定信号を出力するセンサー装置である。この判定信号は、図示しないPLC(Programmable Logic Controller:プログラマブルコントローラ)などへ入力され、画像処理装置1は、FA(Factory Automation)センサーとして使用される。   The image processing device 1 is a sensor device that includes an image processing controller 11, a camera 12, a display 13a, and an operation unit 13b, and outputs a determination signal based on a camera image obtained from an inspection object. This determination signal is input to a PLC (Programmable Logic Controller) not shown, and the image processing apparatus 1 is used as an FA (Factory Automation) sensor.

カメラ12は、被写体を撮影して画像データを生成し、カメラ画像として出力する撮像装置であり、画像処理コントローラ11に着脱可能に接続される。カメラ12は、検査対象物が搬送される搬送ライン上に配置され、検査対象物を被写体として撮影が行われる。   The camera 12 is an imaging device that shoots a subject, generates image data, and outputs it as a camera image, and is detachably connected to the image processing controller 11. The camera 12 is disposed on a conveyance line through which the inspection object is conveyed, and photographing is performed using the inspection object as a subject.

ディスプレイ13aは、検査対象物を撮影して得られたカメラ画像やカメラ画像に基づく画像処理結果を表示するための出力装置である。このディスプレイ13aは、画像処理コントローラ11によって表示制御され、通常、画像処理コントローラ11の近傍に配置される。つまり、このディスプレイ13aは、画像処理コントローラ11が運転中である場合に、画像処理コントローラ11の動作状態をユーザに確認させるための表示装置となっている。操作ユニット13bは、ディスプレイ13a上でフォーカス位置を移動させたり、メニュー項目を選択するための入力装置である。   The display 13a is an output device for displaying a camera image obtained by photographing an inspection object and an image processing result based on the camera image. The display 13 a is display-controlled by the image processing controller 11 and is usually disposed in the vicinity of the image processing controller 11. That is, the display 13a is a display device for allowing the user to check the operation state of the image processing controller 11 when the image processing controller 11 is in operation. The operation unit 13b is an input device for moving a focus position on the display 13a and selecting a menu item.

画像処理コントローラ11は、カメラ12からのカメラ画像を取り込んで処理し、カメラ画像に基づいて行った判定結果を示す判定信号を処理結果として出力する画像処理装置1の本体ユニットである。カメラ画像の取得動作は、例えば、PLCなどの外部機器から入力される制御信号であって、カメラ画像を取り込むタイミングを規定する撮像トリガ信号に基づいて行われる。   The image processing controller 11 is a main unit of the image processing apparatus 1 that captures and processes a camera image from the camera 12 and outputs a determination signal indicating a determination result made based on the camera image as a processing result. The camera image acquisition operation is performed based on, for example, an imaging trigger signal that is a control signal input from an external device such as a PLC and that defines a timing for capturing a camera image.

この画像処理コントローラ11には、最大で4台のカメラ12が接続され、これらのカメラ12から取得したカメラ画像に基づいて画像処理が行われる。画像処理コントローラ11から出力される判定信号は、製品の良否などの判定結果を示す信号として生成される。   Up to four cameras 12 are connected to the image processing controller 11, and image processing is performed based on camera images acquired from these cameras 12. The determination signal output from the image processing controller 11 is generated as a signal indicating a determination result such as product quality.

また、画像処理コントローラ11には、ディスプレイ13a及び操作ユニット13bが接続されており、PC2を接続しなくても、操作ユニット13bを入力装置とし、ディスプレイ13aを出力装置として動作させることができる。   Further, the display 13a and the operation unit 13b are connected to the image processing controller 11, and the operation unit 13b can be operated as an input device and the display 13a can be operated as an output device without being connected to the PC 2.

PC2は、画像処理コントローラ11の制御プログラムを作成するプログラム作成装置であり、PC2上で動作するエディタ(ソフトウェア)によって制御プログラムが生成される。画像処理コントローラ11の制御プログラムを作成する際、PC2上でシミュレーションして動作確認することができる。   The PC 2 is a program creation device that creates a control program for the image processing controller 11, and a control program is generated by an editor (software) operating on the PC 2. When creating a control program for the image processing controller 11, a simulation can be performed on the PC 2 to confirm the operation.

PC2では、画像処理コントローラ11によるディスプレイ13a上の表示態様を規定するレイアウト情報が作成される。このレイアウト情報もエディタによってPC2における編集画面上で作成され、制御プログラム及びレイアウト情報からなる検査設定データが生成される。   In the PC 2, layout information that defines the display mode on the display 13 a by the image processing controller 11 is created. This layout information is also created on the editing screen in the PC 2 by the editor, and inspection setting data including a control program and layout information is generated.

PC2と画像処理装置1の画像処理コントローラ11とは、イーサネット(Ethernet:登録商標)などの通信ネットワークを介して接続される。PC2には、複数の画像処理コントローラ11が着脱可能に接続される。PC2上で作成した検査設定データを画像処理コントローラ11に転送することにより、画像処理コントローラ11内の検査設定データを書き換えることができる。また、画像処理コントローラ11内の検査設定データを取り込んでPC2上で編集することもできる。このPC2は、通常、画像処理装置1のメンテナンス時に画像処理コントローラ11が接続される。   The PC 2 and the image processing controller 11 of the image processing apparatus 1 are connected via a communication network such as Ethernet (registered trademark). A plurality of image processing controllers 11 are detachably connected to the PC 2. By transferring the inspection setting data created on the PC 2 to the image processing controller 11, the inspection setting data in the image processing controller 11 can be rewritten. In addition, inspection setting data in the image processing controller 11 can be taken in and edited on the PC 2. The PC 2 is normally connected to the image processing controller 11 during maintenance of the image processing apparatus 1.

<システム構成>
図2は、図1の検査支援システムのシステム構成の一例を示したブロック図である。この検査支援システム100は、1台のPC2と、通信ネットワーク3を介してPC2に接続された複数の画像処理装置1により構成される。PC2上で作成された制御プログラムは、検査設定データ22としてメモリ21内に格納される。
<System configuration>
FIG. 2 is a block diagram showing an example of the system configuration of the inspection support system of FIG. The inspection support system 100 includes a single PC 2 and a plurality of image processing apparatuses 1 connected to the PC 2 via the communication network 3. The control program created on the PC 2 is stored in the memory 21 as inspection setting data 22.

PC2上で作成された検査設定データ22は、通信ネットワーク3を介して画像処理コントローラ11に転送される。このとき、転送先を指定して検査設定データ22を転送することにより、所望の画像処理コントローラ11について、メモリ14内の検査設定データ15を更新し、或いは、メモリ14内に新たな検査設定データを追加することができる。   The examination setting data 22 created on the PC 2 is transferred to the image processing controller 11 via the communication network 3. At this time, by specifying the transfer destination and transferring the inspection setting data 22, the inspection setting data 15 in the memory 14 is updated for the desired image processing controller 11, or new inspection setting data is stored in the memory 14. Can be added.

この画像処理コントローラ11では、フラッシュメモリなどのメモリ14内に複数の検査設定データ15が保持されている。各検査設定データ15は、処理手順や検査内容が異なる制御プログラムからなり、ユーザ操作に基づいて実行対象とする検査設定データ15を変更することができる。   In the image processing controller 11, a plurality of examination setting data 15 is held in a memory 14 such as a flash memory. Each inspection setting data 15 is composed of a control program having different processing procedures and inspection contents, and the inspection setting data 15 to be executed can be changed based on a user operation.

PC2では、通信ネットワーク3によって接続されている画像処理コントローラ11から検査設定データ15を取得して編集する動作が行われる。   In the PC 2, an operation for acquiring and editing the examination setting data 15 from the image processing controller 11 connected by the communication network 3 is performed.

<エディタ画面>
図3は、図2の検査支援システム100におけるPC2の動作の一例を示した図であり、検査設定データ22を作成するためのエディタ画面40が示されている。エディタ画面40は、PC2上で検査設定データを新たに作成し、或いは、画像処理コントローラ11から取得した検査設定データを編集するための編集画面であり、PC2上に表示される。
<Editor screen>
FIG. 3 is a diagram showing an example of the operation of the PC 2 in the inspection support system 100 of FIG. 2 and shows an editor screen 40 for creating the inspection setting data 22. The editor screen 40 is an editing screen for newly creating inspection setting data on the PC 2 or editing inspection setting data acquired from the image processing controller 11, and is displayed on the PC 2.

このエディタ画面40は、それぞれ表示位置や表示範囲が変更可能な複数のウィンドウ画面からなる。具体的には、システムビューウィンドウ41、パーツリストウィンドウ42、ユニットプロパティウィンドウ43、ビジョンビューウィンドウ44及びリザルトビューウィンドウ45からなる。   The editor screen 40 includes a plurality of window screens whose display positions and display ranges can be changed. Specifically, it consists of a system view window 41, a parts list window 42, a unit property window 43, a vision view window 44, and a result view window 45.

システムビューウィンドウ41は、システム構成や編集対象とする検査設定データを一覧表示するためのウィンドウ画面であり、コントローラ一覧画面41a及びワークスペース一覧画面41bからなる。   The system view window 41 is a window screen for displaying a list of system configuration and examination setting data to be edited, and includes a controller list screen 41a and a workspace list screen 41b.

コントローラ一覧画面41aは、PC2に接続されている画像処理コントローラ11を一覧表示するための画面であり、画像処理コントローラ11を示すアイコンや、画像処理コントローラ11内に保持されている検査設定データ15を示すアイコンが表示されている。   The controller list screen 41 a is a screen for displaying a list of the image processing controllers 11 connected to the PC 2. The controller list screen 41 a displays icons indicating the image processing controller 11 and inspection setting data 15 held in the image processing controller 11. An icon is displayed.

画像処理コントローラ11や検査設定データ15を示す各アイコンは、ツリー形式で表示されている。すなわち、画像処理コントローラ11を上階層とし、この画像処理コントローラ11内に保持されている検査設定データ15を下階層として、検査設定データ15がどの画像処理コントローラ11に保持されているのかが識別可能なように表示されている。   The icons indicating the image processing controller 11 and the inspection setting data 15 are displayed in a tree format. That is, it is possible to identify which image processing controller 11 holds the inspection setting data 15 with the image processing controller 11 as the upper layer and the inspection setting data 15 held in the image processing controller 11 as the lower layer. It is displayed as follows.

ワークスペース一覧画面41bは、編集対象とする検査設定データを一覧表示するための画面であり、画像処理コントローラ11ごとに設けられるメモリ21上の作業領域を示すアイコンや、検査設定データを示すアイコンが表示されている。画像処理コントローラ11ごとに設けられるメモリ21上の作業領域は、該当する画像処理コントローラ11に関連付けられており、ワークスペースとして表示されている。つまり、PC2上には、検査設定データが画像処理コントローラ11ごとに保持され、画像処理コントローラ11ごとのワークスペースにおいて編集が行われる。   The workspace list screen 41b is a screen for displaying a list of inspection setting data to be edited. An icon indicating a work area on the memory 21 provided for each image processing controller 11 or an icon indicating inspection setting data. It is displayed. A work area on the memory 21 provided for each image processing controller 11 is associated with the corresponding image processing controller 11 and displayed as a work space. That is, inspection setting data is held for each image processing controller 11 on the PC 2, and editing is performed in a work space for each image processing controller 11.

この様な作業領域を示すアイコンや検査設定データを示すアイコンは、ツリー形式で表示されている。すなわち、画像処理コントローラ11に対応するワークスペースを上階層とし、このワークスペース内の検査設定データを下階層として、検査設定データがどのワークスペースに存在するのかが識別可能なように表示されている。   Such icons indicating work areas and icons indicating inspection setting data are displayed in a tree format. That is, the workspace corresponding to the image processing controller 11 is set as the upper hierarchy, and the examination setting data in this workspace is set as the lower hierarchy, so that the workspace in which the examination setting data exists can be identified. .

コントローラ一覧画面41aの見出し欄に配置されている更新ボタン(アイコン)を操作すれば、画像処理コントローラ11から新たに検査設定データが取得され、PC2上に保持されている検査設定データやシステム構成が最新のものに更新される。また、登録ボタンを操作すれば、PC2上で作成された検査設定データが画像処理コントローラ11に転送される。   When an update button (icon) arranged in the heading column of the controller list screen 41a is operated, new inspection setting data is acquired from the image processing controller 11, and the inspection setting data and system configuration held on the PC 2 are changed. Updated to the latest. If the registration button is operated, the examination setting data created on the PC 2 is transferred to the image processing controller 11.

ワークスペース一覧画面41bの見出し欄に配置されている更新ボタン(アイコン)を操作すれば、画像処理コントローラ11から取得された検査設定データによって、編集対象とする検査設定データが更新される。また、追加ボタンを操作すれば、新たな作業領域が設けられ、検査設定データを示すアイコンが追加される。   When the update button (icon) arranged in the heading column of the workspace list screen 41b is operated, the examination setting data to be edited is updated with the examination setting data acquired from the image processing controller 11. When the add button is operated, a new work area is provided, and an icon indicating inspection setting data is added.

パーツリストウィンドウ42は、検査設定データを作成する際に選択可能な処理ユニットをユニット一覧として表示するためのウィンドウ画面である。処理ユニットは、パラメータが変更可能な処理を示すシンボルであり、画像処理を示す画像処理ユニット、撮像処理を示す撮像ユニット、フロー制御処理を示す制御ユニット、及び、出力処理を示す出力ユニットなどが処理ユニットとして設けられている。この様な処理ユニットを後述するフロービューウィンドウ内のフローチャート上に配置することによって、所望のフローシーケンスからなる制御プログラムが作成される。   The parts list window 42 is a window screen for displaying processing units that can be selected when creating inspection setting data as a unit list. The processing unit is a symbol indicating a process whose parameters can be changed, and is processed by an image processing unit indicating image processing, an imaging unit indicating imaging processing, a control unit indicating flow control processing, an output unit indicating output processing, and the like. It is provided as a unit. By arranging such processing units on a flowchart in a flow view window, which will be described later, a control program composed of a desired flow sequence is created.

パーツリストウィンドウ42内には、複数の処理ユニットが表示される。この例では、処理の種類によって処理ユニットが8つのカテゴリーに区分され、各カテゴリーを示すアイコンが表示されている。具体的には、「画像入力」、「計測」、「制御」、「演算」、「タイミング」、「表示」、「出力」及び「コマンド出力」のカテゴリーに区分されている。   A plurality of processing units are displayed in the parts list window 42. In this example, the processing units are divided into eight categories depending on the type of processing, and icons indicating each category are displayed. Specifically, it is divided into categories of “image input”, “measurement”, “control”, “calculation”, “timing”, “display”, “output”, and “command output”.

「画像入力」は、撮像に関する処理ユニットが属するカテゴリーであり、カメラ画像を取り込む撮像ユニットが属している。撮像ユニットは、撮像トリガ信号に基づいて、画像処理用のカメラ画像を取得する処理ユニットである。撮像トリガ信号には、PLCなどの外部機器から撮像トリガ入力端子を介して入力される入力信号、及び、画像処理コントローラ11内で生成される内部トリガ信号を用いることができる。この様な撮像ユニットには、シャッタースピード、カメラ感度、フラッシュ遅延時間、フラッシュオン時間、撮像対象カメラ、フラッシュ端子及びトリガ端子を指定するためのパラメータがプロパティとして関連付けられている。   “Image input” is a category to which a processing unit related to imaging belongs, and an imaging unit that captures a camera image belongs to it. The imaging unit is a processing unit that acquires a camera image for image processing based on an imaging trigger signal. As the imaging trigger signal, an input signal input from an external device such as a PLC via an imaging trigger input terminal and an internal trigger signal generated in the image processing controller 11 can be used. Such an imaging unit is associated with parameters for specifying shutter speed, camera sensitivity, flash delay time, flash on time, imaging target camera, flash terminal, and trigger terminal as properties.

「計測」は、計測に関する処理ユニットが属するカテゴリーであり、カメラ画像から計測結果を抽出し、この計測結果に基づいて検査対象物の良否を判定する計測ユニットが属している。この様な計測ユニットには、パターンサーチユニット、エッジ位置検出ユニット、ブロブ検出ユニット、色検査ユニットなどの画像処理ユニットがある。   “Measurement” is a category to which a processing unit related to measurement belongs, and a measurement unit that extracts a measurement result from a camera image and determines pass / fail of an inspection object based on the measurement result belongs. Such measurement units include image processing units such as a pattern search unit, an edge position detection unit, a blob detection unit, and a color inspection unit.

パターンサーチは、カメラ画像上のサーチ領域内を走査して予め登録されたパターン画像と一致する位置を検出する処理である。エッジ位置検出は、カメラ画像上の計測領域について、検出方向に垂直な方向の平均濃度を求め、検出方向の濃度変化からエッジの位置を検出する処理である。   The pattern search is a process for detecting a position that matches a previously registered pattern image by scanning the search area on the camera image. Edge position detection is a process of obtaining an average density in a direction perpendicular to the detection direction for a measurement region on a camera image and detecting the edge position from the density change in the detection direction.

ブロブ検出は、カメラ画像を2値化し、同一濃度を有する画素の塊をブロブとして抽出して、計測領域内に存在するブロブの数、面積、重心位置を検出する処理である。色検査は、検査領域内の色を測定する処理であり、色に対応する数値が計測結果として抽出される。   The blob detection is a process of binarizing the camera image, extracting a block of pixels having the same density as a blob, and detecting the number, area, and barycentric position of the blob existing in the measurement region. The color inspection is a process of measuring the color in the inspection area, and a numerical value corresponding to the color is extracted as a measurement result.

この様な計測に関する画像処理では、検査対象物の形状、サイズ、カメラ画像内における位置などが検知され、その計測値が画像処理結果として出力される。また、計測値と、ユーザが予め指定したパラメータとを比較し、この比較結果に基づいて検査対象物の良否、例えば、不具合や異常の有無を判定し、その判定結果が画像処理結果として出力される。また、計測領域や、検知された検査対象物の位置などをグラフィカルに示すシンボルを埋め込んだカメラ画像が生成され、画像処理結果として出力される。   In such image processing related to measurement, the shape and size of the inspection object, the position in the camera image, and the like are detected, and the measured values are output as image processing results. Further, the measurement value is compared with a parameter designated in advance by the user, and the quality of the inspection object, for example, the presence or absence of a defect or abnormality is determined based on the comparison result, and the determination result is output as an image processing result. The In addition, a camera image in which symbols that graphically indicate the measurement region and the detected position of the inspection object are embedded is generated and output as an image processing result.

「制御」は、制御に関する処理ユニットが属するカテゴリーであり、繰返しユニット、バイパスユニット、エンドシンボルなどの制御ユニットが属している。繰返しユニットは、実行フローを繰り返す際の始点を示す繰返し開始ユニットと、終点を示す繰返し終了ユニットとからなる処理ユニットであり、所定の条件が満たされるまで開始ユニット及び終了ユニット間の実行フローを繰り返させる処理を示す。   “Control” is a category to which processing units related to control belong, and control units such as a repeat unit, a bypass unit, and an end symbol belong to it. The repeat unit is a processing unit composed of a repeat start unit indicating the start point when repeating the execution flow and a repeat end unit indicating the end point, and the execution flow between the start unit and the end unit is repeated until a predetermined condition is satisfied. Shows the processing to be performed.

バイパスユニットは、実行フローを2以上の枝フローに分岐させる分岐ユニットと、この分岐ユニットによって分岐された枝フローを合流させる合流ユニットとからなる処理ユニットであり、所定の条件で実行フローを分岐させる処理を示す。エンドシンボルは、1回のフローシーケンスを終了させるための表示オブジェクトである。   The bypass unit is a processing unit that includes a branch unit that branches an execution flow into two or more branch flows and a merging unit that joins the branch flows branched by the branch unit, and branches the execution flow under a predetermined condition. Indicates processing. The end symbol is a display object for ending one flow sequence.

「演算」は、演算に関する処理ユニットが属するカテゴリーであり、数値演算ユニット及び位置補正ユニットの画像処理ユニットが属している。「タイミング」は、フロー遷移の停止動作に関する処理ユニットが属するカテゴリーであり、ウェイトユニット、イベント待ちユニットなどの制御ユニットが属している。ウェイトユニットは、所定時間だけフロー遷移を停止させる処理を示す。イベント待ちユニットは、端子入力や変数値が所定の状態となるまでフロー遷移を停止させる処理を示す。   “Calculation” is a category to which a processing unit related to calculation belongs, and includes an image processing unit of a numerical calculation unit and a position correction unit. “Timing” is a category to which a processing unit related to a flow transition stop operation belongs, and a control unit such as a wait unit or an event waiting unit belongs to it. The weight unit indicates a process of stopping the flow transition for a predetermined time. The event waiting unit indicates a process of stopping the flow transition until the terminal input or the variable value is in a predetermined state.

「表示」は、表示に関する処理ユニットが属するカテゴリーであり、グラフィック表示ユニットなどの画像処理ユニットが属している。グラフィック表示ユニットは、他の処理ユニットを参照し、当該処理ユニットの処理結果をグラフィカルに表示する処理を示す。   “Display” is a category to which a processing unit relating to display belongs, and to which an image processing unit such as a graphic display unit belongs. A graphic display unit refers to another processing unit and indicates processing for graphically displaying a processing result of the processing unit.

「出力」は、出力に関する処理ユニットが属するカテゴリーであり、端子出力ユニット、結果出力ユニット、画像出力ユニットなどの出力ユニットが属している。端子出力ユニットには、参照先ユニット、判定結果及び判定結果の出力先端子を指定するためのパラメータがプロパティとして関連付けられている。結果出力ユニットには、参照先ユニット、処理結果を示す数値データ、数値データを出力する際のデータ形式(テキスト形式又はバイナリ形式)、及び、数値データの出力先を指定するためのパラメータがプロパティとして関連付けられている。画像出力ユニットには、参照先ユニット、カメラ画像、画像データを出力する際のデータ形式、及び、画像データの出力先を指定するためのパラメータがプロパティとして関連付けられている。   “Output” is a category to which a processing unit related to output belongs, and output units such as a terminal output unit, a result output unit, and an image output unit belong to this category. The terminal output unit is associated with a reference destination unit, a determination result, and a parameter for specifying an output destination terminal of the determination result as properties. In the result output unit, the reference destination unit, numeric data indicating the processing result, the data format (text format or binary format) for outputting the numeric data, and parameters for specifying the output destination of the numeric data are the properties. Associated. The image output unit is associated with a reference destination unit, a camera image, a data format for outputting image data, and parameters for designating the output destination of the image data as properties.

「コマンド出力」は、コマンド出力に関する処理ユニットが属するカテゴリーであり、コマンド発行ユニット、表示パターン切替ユニット及びダイアログ表示ユニットの出力ユニットが属している。コマンド発行ユニットは、画像登録、検査設定の切替え、リセットなどのコマンドを発行する処理を示す。   “Command output” is a category to which processing units related to command output belong, and output units of command issue units, display pattern switching units, and dialog display units belong to this category. The command issuing unit indicates processing for issuing commands such as image registration, inspection setting switching, and reset.

ユニットプロパティウィンドウ43は、コントローラ一覧画面41a、ワークスペース一覧画面41b又はフロービューウィンドウ上で選択された処理ユニットのプロパティを表示するためのウィンドウ画面である。   The unit property window 43 is a window screen for displaying the properties of the processing unit selected on the controller list screen 41a, the work space list screen 41b or the flow view window.

ビジョンビューウィンドウ44は、コントローラ一覧画面41a、ワークスペース一覧画面41b又はフロービューウィンドウ上で選択された処理ユニットに関連付けられているカメラ画像を表示するためのウィンドウ画面である。   The vision view window 44 is a window screen for displaying a camera image associated with the processing unit selected on the controller list screen 41a, the work space list screen 41b, or the flow view window.

リザルトビューウィンドウ45は、コントローラ一覧画面41a、ワークスペース一覧画面41b又はフロービューウィンドウ上で選択された処理ユニットのパラメータと、シミュレーション結果とを表示するためのウィンドウ画面である。   The result view window 45 is a window screen for displaying the parameters of the processing unit selected on the controller list screen 41a, the work space list screen 41b or the flow view window, and the simulation result.

このエディタ画面40では、システムビューウィンドウ41の下部に配置されているフロービューボタン41cを操作すれば、上述したシステムビューウィンドウ41に代えて、フロービューウィンドウを表示させることができる。フロービューウィンドウは、画像処理コントローラ11に実行させる処理手順をフローチャートとして表示するウィンドウ画面であり、ワークスペース一覧画面41b上で選択された検査設定データが表示される。   On this editor screen 40, if a flow view button 41c arranged at the bottom of the system view window 41 is operated, a flow view window can be displayed instead of the system view window 41 described above. The flow view window is a window screen that displays a processing procedure to be executed by the image processing controller 11 as a flowchart, and displays examination setting data selected on the work space list screen 41b.

また、リザルトビューウィンドウ45の下部に配置されている抽出一覧ボタン45aを操作すれば、リザルトビューウィンドウ45に代えて、抽出一覧ウィンドウを表示させることができる。抽出一覧ウィンドウは、リザルトビューウィンドウ45上で選択されたパラメータ及び処理結果を抽出して処理ユニットごとの抽出結果を一覧表示するためのウィンドウ画面である。   Further, by operating the extraction list button 45 a arranged at the lower part of the result view window 45, the extraction list window can be displayed instead of the result view window 45. The extraction list window is a window screen for extracting the parameters and processing results selected on the result view window 45 and displaying a list of extraction results for each processing unit.

<フロービューウィンドウ>
図4は、図2の検査支援システム100におけるPC2の動作の一例を示した図であり、フロービューウィンドウ46が表示されたエディタ画面40が示されている。フロービューウィンドウ46は、検査設定データの制御プログラムを新たに作成し、或いは、画像処理コントローラ11から取得した制御プログラムを編集するために、処理手順を示すフローチャート47を表示するウィンドウ画面である。
<Flow view window>
FIG. 4 is a diagram showing an example of the operation of the PC 2 in the inspection support system 100 of FIG. 2, and shows an editor screen 40 on which a flow view window 46 is displayed. The flow view window 46 is a window screen that displays a flowchart 47 showing a processing procedure in order to newly create a control program for examination setting data or to edit the control program acquired from the image processing controller 11.

フロービューウィンドウ46には、複数の処理ユニット48を配列することによって構成されたフローチャート47が表示されている。フローチャート47には、スタートシンボル「S」において開始し、エンドシンボル「E」において終了する実行フロー上で時系列に実行される処理ユニットが表されている。ユーザは、この様な実行フロー上に処理ユニット48を配置することによって所望の制御プログラムを構成することができる。   In the flow view window 46, a flow chart 47 configured by arranging a plurality of processing units 48 is displayed. The flowchart 47 shows processing units that are executed in time series on the execution flow that starts at the start symbol “S” and ends at the end symbol “E”. The user can configure a desired control program by arranging the processing unit 48 on such an execution flow.

つまり、画像処理コントローラ11に行わせる一連の画像処理は、処理ユニットとしてブロック化されており、ユーザは、処理ユニットをフロービューウィンドウ46内の実行フロー上に配置するだけで、当該処理ユニットが直前の処理ユニットの処理結果に基づいて所定の処理を行うフローシーケンスを作成することができる。   That is, a series of image processing to be performed by the image processing controller 11 is blocked as a processing unit, and the user simply arranges the processing unit on the execution flow in the flow view window 46, and the processing unit is immediately before the processing unit. It is possible to create a flow sequence for performing predetermined processing based on the processing result of the processing unit.

フロービューウィンドウ46の下部に配置されているシステムビューボタン46aを操作すれば、このフロービューウィンドウ46に代えて、システムビューウィンドウ41を表示させることができる。   By operating a system view button 46 a arranged at the bottom of the flow view window 46, the system view window 41 can be displayed instead of the flow view window 46.

フロービューウィンドウ46上で選択されている処理ユニットは、フォーカス表示され、ユニットプロパティウィンドウ43内にそのプロパティが表示される。ユニットプロパティウィンドウ43内には、編集ボタン43aが配置され、編集ボタン43aを操作すれば、処理ユニットのプロパティを編集するためのプロパティ編集画面が表示される。プロパティ編集画面は、ユーザ操作に基づいて処理ユニットのパラメータを指定し、或いは、既に指定されているパラメータを変更するための編集画面である。   The processing unit selected on the flow view window 46 is displayed in focus, and its properties are displayed in the unit property window 43. An edit button 43a is arranged in the unit property window 43. When the edit button 43a is operated, a property edit screen for editing the properties of the processing unit is displayed. The property editing screen is an editing screen for designating processing unit parameters based on user operations or changing parameters that have already been designated.

<フローチャート>
図5は、図2の検査支援システム100におけるPC2の動作の一例を示した図であり、フロービューウィンドウ46内のフローチャート47の一例が示されている。このフローチャート47は、スタートシンボル61aで開始し、エンドシンボル61bで終了する実行フロー上に複数の処理ユニットが配置されている。
<Flowchart>
FIG. 5 is a diagram showing an example of the operation of the PC 2 in the inspection support system 100 of FIG. 2, and shows an example of the flowchart 47 in the flow view window 46. In the flowchart 47, a plurality of processing units are arranged on the execution flow starting with the start symbol 61a and ending with the end symbol 61b.

フロービューウィンドウ46上でフローチャート47を作成編集する場合、パーツリストウィンドウ42を用いて作業が行われる。例えば、フローチャート47内に処理ユニットを挿入する際には、パーツリストウィンドウ42上で所望の処理ユニットを選択し、マウスポインタなどで実行フロー上の位置を指定することによって挿入される。   When the flowchart 47 is created and edited on the flow view window 46, the part list window 42 is used for work. For example, when a processing unit is inserted into the flowchart 47, it is inserted by selecting a desired processing unit on the parts list window 42 and designating a position on the execution flow with a mouse pointer or the like.

この例では、フローチャート47が、分岐ユニット62a、撮像ユニット、色検査ユニット、数値演算ユニット、合流ユニット62b、ブロブ検出ユニット、繰返し開始ユニット65a、エッジ位置検出ユニット、パターンサーチユニット、繰返し終了ユニット65b及びグラフィック表示ユニットをこの順序で実行フロー上に配置することによって構成されている。   In this example, the flowchart 47 includes a branch unit 62a, an imaging unit, a color inspection unit, a numerical operation unit, a merge unit 62b, a blob detection unit, a repeat start unit 65a, an edge position detection unit, a pattern search unit, a repeat end unit 65b, and The graphic display units are arranged on the execution flow in this order.

分岐ユニット62a及び合流ユニット62bは、バイパスユニットを構成する制御ユニットであり、実行フロー上にバイパスユニットを挿入する際には、常に分岐ユニット62a及び合流ユニット62bを対にして挿入される。分岐ユニット62aでは、直前の処理ユニットの計測結果や判定結果に基づいて、分岐後の枝フローを択一的に選択する処理が行われる。分岐後の枝フローのいずれを選択するかという条件は、分岐ユニット62aのパラメータとして、ユーザが指定する。   The branch unit 62a and the merge unit 62b are control units that constitute a bypass unit. When the bypass unit is inserted into the execution flow, the branch unit 62a and the merge unit 62b are always inserted as a pair. In the branch unit 62a, processing for selectively selecting a branch flow after branching is performed based on the measurement result or determination result of the immediately preceding processing unit. The condition for selecting which branch flow after branching is specified by the user as a parameter of the branch unit 62a.

この例では、スタートシンボル61aからの実行フローが分岐ユニット62aにより2つの枝フロー63に分岐され、この分岐ユニット62aで分岐された枝フローが合流ユニット62bにおいて合流されている。その際、一方の枝フロー63は、撮像ユニット、色検査ユニット及び数値演算ユニットを経て合流ユニット62bに達しているのに対して、他方の枝フロー63は、撮像ユニットを経て合流ユニット62bに達するバイパス経路(迂回路)となっている。   In this example, the execution flow from the start symbol 61a is branched into two branch flows 63 by the branch unit 62a, and the branch flows branched by the branch unit 62a are merged in the merge unit 62b. At this time, one branch flow 63 reaches the merging unit 62b via the imaging unit, the color inspection unit, and the numerical operation unit, whereas the other branch flow 63 reaches the merging unit 62b via the imaging unit. It is a bypass route (bypass).

繰返し開始ユニット65a及び繰返し終了ユニット65bは、繰返しユニットを構成する制御ユニットであり、実行フロー上に繰返しユニットを挿入する際にも、繰返し開始ユニット65a及び繰返し終了ユニット65bを対にして挿入される。   The repeat start unit 65a and the repeat end unit 65b are control units that constitute the repeat unit. When the repeat unit is inserted into the execution flow, the repeat start unit 65a and the repeat end unit 65b are inserted as a pair. .

この例では、繰返し開始ユニット65a及び繰返し終了ユニット65b間にエッジ位置検出ユニット及びパターンサーチユニットが配置されており、実行時にはエッジ位置検出ユニット及びパターンサーチユニットの処理が繰り返される。   In this example, the edge position detection unit and the pattern search unit are arranged between the repetition start unit 65a and the repetition end unit 65b, and the processing of the edge position detection unit and the pattern search unit is repeated at the time of execution.

フローチャート47内の分岐ユニット62a及び繰返し開始ユニット65aには、折畳みアイコン64aが配置されている。この折畳みアイコン64aは、制御ユニット間の実行フローを省略してフローチャート47を表示させるためのアイコンであり、処理ユニットに隣接させて表示される。   In the branch unit 62a and the repeat start unit 65a in the flowchart 47, a folding icon 64a is arranged. The folding icon 64a is an icon for displaying the flowchart 47 by omitting the execution flow between the control units, and is displayed adjacent to the processing unit.

また、フローチャート47上で選択されている処理ユニットは、フォーカス表示され、ユニットプロパティウィンドウ43内に当該処理ユニットのプロパティを表示させ、或いは、編集対象として当該処理ユニットのプロパティを変更することができる。   The processing unit selected on the flowchart 47 is displayed in focus, and the property of the processing unit can be displayed in the unit property window 43, or the property of the processing unit can be changed as an editing target.

本実施の形態では、この様に、フローチャート47内の実行フロー上に分岐ユニット62aが配置され、さらに、異なる2つの枝フロー63上にそれぞれ撮像ユニットが配置されている場合に、これらの撮像ユニットについて、枝フローごとにカメラ画像の取得条件を編集することができる。   In the present embodiment, in this way, when the branch unit 62a is arranged on the execution flow in the flowchart 47 and further, the image pickup units are arranged on two different branch flows 63, these image pickup units are arranged. The camera image acquisition conditions can be edited for each branch flow.

<撮像ユニットのプロパティ編集画面>
図6は、図2の検査支援システム100におけるPC2の動作の一例を示した図であり、撮像ユニットのプロパティを編集するためのプロパティ編集画面70の一例が示されている。プロパティ編集画面70は、カメラ画像の撮像に関するパラメータの入力画面であり、ユニットプロパティウィンドウ43内の編集ボタン43aを操作することによって、エディタ画面40上に表示される。
<Imaging unit property editing screen>
FIG. 6 is a diagram showing an example of the operation of the PC 2 in the inspection support system 100 of FIG. 2, and shows an example of the property editing screen 70 for editing the properties of the imaging unit. The property editing screen 70 is an input screen for parameters relating to imaging of camera images, and is displayed on the editor screen 40 by operating the editing button 43 a in the unit property window 43.

プロパティ編集画面70では、撮像に関する様々なパラメータを選択し、或いは、指定することができる。このプロパティ編集画面70には、編集可能なプロパティとして、撮像設定71、カメラ設定72、トリガ設定73、フラッシュ設定74などの項目が設けられている。   On the property editing screen 70, various parameters relating to imaging can be selected or designated. In the property editing screen 70, items such as an imaging setting 71, a camera setting 72, a trigger setting 73, and a flash setting 74 are provided as editable properties.

ここでは、撮像設定71の項目が選択されており、カメラ選択欄81、シャッタースピードの入力欄82、カメラ感度の入力欄83及びゲイン調整選択欄が配置されている。カメラ選択欄81は、撮像対象とするカメラ12を選択するための入力欄であり、「カメラ1」から「カメラ4」までのいずれかを指定することができる。   Here, the item of the imaging setting 71 is selected, and a camera selection field 81, a shutter speed input field 82, a camera sensitivity input field 83, and a gain adjustment selection field are arranged. The camera selection field 81 is an input field for selecting the camera 12 to be imaged, and any of “Camera 1” to “Camera 4” can be designated.

シャッタースピードの入力欄82は、カメラ12のシャッタースピードを入力するための入力欄であり、直接に数値を指定し、或いは、複数の既定値から選択することができる。カメラ感度の入力欄83は、カメラ12の感度レベルを入力するための入力欄である。ゲイン調整選択欄は、カメラ12から取得した画像データについて、ゲイン調整を行うか否かを選択するための入力欄である。   The shutter speed input field 82 is an input field for inputting the shutter speed of the camera 12, and a numerical value can be directly designated or selected from a plurality of default values. The camera sensitivity input field 83 is an input field for inputting the sensitivity level of the camera 12. The gain adjustment selection field is an input field for selecting whether or not to perform gain adjustment on the image data acquired from the camera 12.

図7は、図2の検査支援システム100におけるPC2の動作の一例を示した図であり、カメラ設定72の項目が選択されたプロパティ編集画面70が示されている。カメラ設定72には、カメラ選択欄81、左右反転選択欄84及び画像取込範囲入力欄85が配置されている。左右反転選択欄84は、カメラ12から取得した画像データについて、左右反転処理を行うか否かを選択するための入力欄である。   FIG. 7 is a diagram showing an example of the operation of the PC 2 in the inspection support system 100 of FIG. 2, and shows the property editing screen 70 in which the item of the camera setting 72 is selected. In the camera setting 72, a camera selection field 81, a left / right reverse selection field 84, and an image capture range input field 85 are arranged. The left / right reversal selection field 84 is an input field for selecting whether or not to perform left / right reversal processing on the image data acquired from the camera 12.

画像取込範囲入力欄85は、カメラ12から取得した画像データについて、処理対象とする領域を指定するための入力欄であり、開始位置の入力欄、開始ライン及び終了ラインの入力欄が設けられている。   The image capture range input field 85 is an input field for designating an area to be processed for image data acquired from the camera 12, and is provided with an input field for a start position, an input line for a start line, and an end line. ing.

図8は、図2の検査支援システム100におけるPC2の動作の一例を示した図であり、トリガ設定73の項目が選択されたプロパティ編集画面70が示されている。トリガ設定73には、画像処理用のカメラ画像を取得する際の取得条件を選択するための入力欄86と、トリガ選択欄87とが配置されている。   FIG. 8 is a diagram showing an example of the operation of the PC 2 in the inspection support system 100 of FIG. 2, and shows the property editing screen 70 in which the item of the trigger setting 73 is selected. In the trigger setting 73, an input field 86 for selecting an acquisition condition for acquiring a camera image for image processing and a trigger selection field 87 are arranged.

入力欄86では、取得条件として、トリガ同期モード又はトリガ非同期モードのいずれかを選択することができる。トリガ同期モードは、撮像トリガ信号に同期して撮影させたカメラ画像を画像処理用として取り込む撮影モードである。一方、トリガ非同期モードは、繰返し撮影させて得られるカメラ画像から撮像トリガ信号に基づいて画像処理用のカメラ画像を抽出する撮影モードである。   In the input field 86, either the trigger synchronous mode or the trigger asynchronous mode can be selected as the acquisition condition. The trigger synchronization mode is a photographing mode for capturing a camera image photographed in synchronization with an imaging trigger signal for image processing. On the other hand, the trigger asynchronous mode is a shooting mode in which a camera image for image processing is extracted from a camera image obtained by repeated shooting based on an imaging trigger signal.

ここでは、撮像トリガ信号の入力待ち中におけるカメラ画像の表示方法に関連付けて、トリガ同期モードをトリガ更新モードと呼び、トリガ非同期モードを連続更新モードと呼ぶことにする。すなわち、画像処理に使用されたカメラ画像を表示させる場合、トリガ同期モードでは、撮像トリガ信号に同期して撮影させたカメラ画像が画像処理用として取り込まれ、表示画像が更新されるのに対して、トリガ非同期モードでは、一定周期で繰返し撮影させて得られるカメラ画像によって表示画像が更新される。   Here, the trigger synchronous mode is referred to as a trigger update mode and the trigger asynchronous mode is referred to as a continuous update mode in association with the display method of a camera image while waiting for input of an imaging trigger signal. That is, when displaying the camera image used for image processing, in the trigger synchronization mode, the camera image captured in synchronization with the imaging trigger signal is captured for image processing and the display image is updated. In the trigger asynchronous mode, the display image is updated with a camera image obtained by repeatedly taking images at a constant cycle.

また、入力欄86には、異なる撮像ユニットのパラメータ(取得条件)を互いに関連付ける変数名を指定するための入力欄が設けられている。   Further, the input field 86 is provided with an input field for designating a variable name that associates parameters (acquisition conditions) of different imaging units with each other.

トリガ選択欄87は、カメラ画像を取得する際に使用する撮像トリガ入力端子を選択するための入力欄であり、「カメラ1」から「カメラ4」のカメラごとに撮像トリガ入力端子を選択することができる。ここでは、4つの撮像トリガ入力端子が画像処理コントローラ11に設けられており、これらのうちの1つを各カメラについて選択できるものとする。   The trigger selection column 87 is an input column for selecting an imaging trigger input terminal to be used when acquiring a camera image, and selects an imaging trigger input terminal for each camera from “camera 1” to “camera 4”. Can do. Here, it is assumed that four imaging trigger input terminals are provided in the image processing controller 11, and one of these can be selected for each camera.

この他、プロパティ編集画面70において、フラッシュ設定74の項目を選択した場合、フラッシュ端子の選択、フラッシュ端子の出力遅延時間の設定、フラッシュ端子の出力オン時間の設定などが行えるようになっている。フラッシュ端子の選択では、検査対象物を撮影する際に使用するフラッシュライトなどの撮影用光源装置用の出力端子を選択することができる。ここでは、4つの出力端子がフラッシュ端子として画像処理コントローラ11に設けられており、これらのうちの1つを選択できるものとする。   In addition, when the item of the flash setting 74 is selected on the property editing screen 70, the selection of the flash terminal, the setting of the output delay time of the flash terminal, the setting of the output on time of the flash terminal, and the like can be performed. In the selection of the flash terminal, it is possible to select an output terminal for an imaging light source device such as a flashlight used when imaging the inspection object. Here, four output terminals are provided in the image processing controller 11 as flash terminals, and one of these can be selected.

フラッシュ端子の出力遅延時間の設定では、撮影用光源装置の点灯タイミングを調整することができる。この点灯タイミングの調整は、例えば、撮像トリガ信号の入力に対して、撮影用光源装置への出力遅延時間を指定することにより行われる。フラッシュ端子の出力オン時間の設定では、撮影用光源装置の点灯時間を調整することができる。   In setting the output delay time of the flash terminal, the lighting timing of the photographing light source device can be adjusted. The adjustment of the lighting timing is performed, for example, by designating an output delay time to the imaging light source device with respect to the input of the imaging trigger signal. In setting the output on time of the flash terminal, the lighting time of the photographing light source device can be adjusted.

この様に、フローチャート47上で選択された撮像ユニットごとに、カメラ画像の取得条件を含む様々な撮像に関する設定を行うことができる。   In this way, for each imaging unit selected in the flowchart 47, various settings relating to imaging including camera image acquisition conditions can be performed.

<ゲイン設定画面>
図9は、図2の検査支援システム100におけるPC2の動作の一例を示した図であり、カメラ画像についてゲイン調整するためのゲイン設定画面90が示されている。このゲイン設定画面90は、画像処理に使用されるカメラ画像について、ゲイン調整を行うための入力画面であり、カメラ画像を構成する多数のピクセルデータについて、強度レベルをスケール変換し、或いは、オフセットさせることができる。
<Gain setting screen>
FIG. 9 is a diagram showing an example of the operation of the PC 2 in the inspection support system 100 of FIG. 2, and shows a gain setting screen 90 for adjusting the gain of the camera image. The gain setting screen 90 is an input screen for performing gain adjustment for a camera image used for image processing, and scales or offsets the intensity level for a large number of pixel data constituting the camera image. be able to.

ゲイン設定画面90には、オフセット量の入力欄91と、スケール変換の際の倍率の入力欄92が設けられている。入力欄91は、各ピクセルデータについて、強度レベル(階調数)を一定量だけオフセットさせる際のオフセット量を入力するためのものである。   The gain setting screen 90 is provided with an offset amount input field 91 and a scale input field 92 for scale conversion. The input column 91 is for inputting an offset amount for offsetting the intensity level (the number of gradations) by a certain amount for each pixel data.

入力欄92は、各ピクセルデータについて、強度レベルをスケール変換する際の倍率を入力するためのものであり、入力レベルに対する出力レベルの比が指定される。ここでは、強度レベルが16個のブロックに均等に区分され、各ブロックについてスケール変換の倍率を指定することができる。   The input field 92 is used for inputting a magnification for scaling the intensity level for each pixel data, and the ratio of the output level to the input level is designated. Here, the intensity level is equally divided into 16 blocks, and the scale conversion magnification can be designated for each block.

この例では、第5番目のブロックAについて、倍率4.4が選択され、入力レベルに対して出力レベルが4.4倍に増幅されている。その他のブロックについては、倍率1.0が選択されており、このスケール変換を示すグラフは、第5番目のブロックAで折れ曲がった線分となっている。   In this example, for the fifth block A, the magnification of 4.4 is selected, and the output level is amplified 4.4 times with respect to the input level. For the other blocks, a magnification of 1.0 is selected, and the graph showing the scale conversion is a line segment bent at the fifth block A.

<エディタの機能構成>
図10は、図2の検査支援システム100におけるPC2の構成例を示したブロック図であり、画像処理コントローラ11の制御プログラムを作成するエディタの機能構成の一例が示されている。このPC2は、メモリ21、処理ユニット記憶部23、フローチャート表示部24、プログラム生成部25、転送部26、操作入力部27、ユニットプロパティ編集部28及び撮像条件決定部29により構成される。
<Functional structure of editor>
FIG. 10 is a block diagram showing a configuration example of the PC 2 in the inspection support system 100 of FIG. 2, and shows an example of a functional configuration of an editor that creates a control program for the image processing controller 11. The PC 2 includes a memory 21, a processing unit storage unit 23, a flowchart display unit 24, a program generation unit 25, a transfer unit 26, an operation input unit 27, a unit property editing unit 28, and an imaging condition determination unit 29.

処理ユニット記憶部23には、分岐ユニット、撮像ユニット、計測ユニットなどの処理ユニットが保持されている。フローチャート表示部24は、スタートシンボルにおいて開始し、エンドシンボルにおいて終了する実行フロー上に処理ユニットを配置することによって生成されたフローチャート47をエディタ画面40のフロービューウィンドウ46上に表示する動作を行っている。   The processing unit storage unit 23 holds processing units such as a branch unit, an imaging unit, and a measurement unit. The flowchart display unit 24 performs an operation of displaying the flowchart 47 generated by arranging the processing unit on the execution flow starting at the start symbol and ending at the end symbol on the flow view window 46 of the editor screen 40. Yes.

プログラム生成部25は、ユーザがフロービューウィンドウ46上で作成したフローチャート47を実行形式に変換することにより、画像処理コントローラ11の制御プログラムを生成する動作を行っている。   The program generation unit 25 performs an operation of generating a control program for the image processing controller 11 by converting a flowchart 47 created on the flow view window 46 by the user into an execution format.

メモリ21には、プログラム生成部25により生成された制御プログラムが検査設定データ22として保持される。転送部26は、メモリ21内の検査設定データ22を画像処理コントローラ11へ転送する動作を行っている。   In the memory 21, a control program generated by the program generation unit 25 is held as inspection setting data 22. The transfer unit 26 performs an operation of transferring the inspection setting data 22 in the memory 21 to the image processing controller 11.

ユニットプロパティ編集部28は、フローチャート47上で選択された処理ユニットのプロパティを編集する動作を行っている。具体的には、ユーザが選択した処理ユニットについて、プロパティ編集画面を表示し、当該処理ユニットのパラメータをユーザ操作に基づいて指定し、或いは、既に指定されているパラメータを変更する動作が行われる。   The unit property editing unit 28 performs an operation for editing the property of the processing unit selected on the flowchart 47. Specifically, the property editing screen is displayed for the processing unit selected by the user, and the operation for changing the parameter of the processing unit that is specified based on the user operation is performed.

撮像条件決定部29は、フローチャート47上で選択された撮像ユニットのパラメータとして、画像処理用のカメラ画像を取得する際の取得条件を決定する動作を行っている。具体的には、トリガ同期モード及びトリガ非同期モードのいずれかをユーザ操作に基づいて選択し、取得条件とする動作が行われる。   The imaging condition determination unit 29 performs an operation of determining an acquisition condition when acquiring a camera image for image processing as the parameter of the imaging unit selected in the flowchart 47. Specifically, either the trigger synchronous mode or the trigger asynchronous mode is selected based on a user operation, and an operation that is used as an acquisition condition is performed.

この撮像条件決定部29では、フローチャート47上に分岐ユニットが配置され、さらに、分岐ユニットによって分岐された異なる2つの枝フロー上にそれぞれ撮像ユニットが配置されている場合に、これらの撮像ユニットについて、枝フローごとにトリガ同期モード又はトリガ非同期モードのいずれかを選択することができる。   In this imaging condition determination unit 29, when the branch unit is arranged on the flowchart 47 and further the imaging unit is arranged on two different branch flows branched by the branch unit, about these imaging units, Either the trigger synchronous mode or the trigger asynchronous mode can be selected for each branch flow.

トリガ同期モード(トリガ更新モード)では、撮像トリガ入力端子からの入力信号に基づいて画像処理用のカメラ画像が取り込まれ、表示画像が更新される。これに対して、トリガ非同期モード(連続更新モード)では、一定周期で繰返し撮影して連続生成されるカメラ画像によって表示画像が更新され、ディスプレイ13a上にカメラ画像が動画として表示される。そして、この様にして得られるカメラ画像から上記入力信号(撮像トリガ信号)に基づいて画像処理用のカメラ画像が抽出される。   In the trigger synchronization mode (trigger update mode), a camera image for image processing is captured based on an input signal from the imaging trigger input terminal, and the display image is updated. On the other hand, in the trigger asynchronous mode (continuous update mode), the display image is updated by the camera image continuously generated by repeatedly shooting at a constant period, and the camera image is displayed on the display 13a as a moving image. Then, a camera image for image processing is extracted from the camera image obtained in this manner based on the input signal (imaging trigger signal).

ここで、トリガ同期モードにおけるトリガ信号の入力からカメラ12に撮影を開始させるまでの時間が、トリガ非同期モード時にカメラ12が繰返し撮影してカメラ画像を連続生成する際の撮像周期よりも短いものとする。すなわち、トリガ同期モードでは、撮像トリガ信号に同期してカメラ12に撮影させる際に、トリガ信号の入力から撮像周期よりも短い時間で撮影を開始させることができるものとする。従って、トリガ非同期モードが、撮像トリガ信号の入力タイミングによっては、カメラ12に撮影を開始させるタイミングに最大で撮像周期分のずれが生じる撮影モードであるのに対して、トリガ同期モードは、撮像トリガ信号の入力に同期してカメラ12に撮影を開始させるので、ずれを撮像周期よりも小さな一定値以内に収めることができる。   Here, the time from the input of the trigger signal in the trigger synchronous mode until the camera 12 starts shooting is shorter than the imaging cycle when the camera 12 repeatedly shoots and continuously generates camera images in the trigger asynchronous mode. To do. In other words, in the trigger synchronization mode, when the camera 12 is photographed in synchronization with the imaging trigger signal, imaging can be started in a time shorter than the imaging cycle from the input of the trigger signal. Therefore, the trigger asynchronous mode is a shooting mode in which a maximum deviation of the imaging cycle occurs at the timing when the camera 12 starts shooting depending on the input timing of the imaging trigger signal, whereas the trigger synchronous mode is the imaging trigger. Since the camera 12 starts shooting in synchronization with the input of the signal, the shift can be kept within a certain value smaller than the imaging cycle.

また、ここでは、カメラ画像の取得条件が編集対象として選択された撮像ユニットごとに決定されるものとして説明したが、複数の撮像ユニットについて取得条件を同時に決定するものであっても良い。例えば、複数の撮像ユニットの取得条件に関するパラメータに共通の変数名を予め関連付けしておくことにより、これらの撮像ユニットのパラメータ間でその値が共有されるようにしても良い。この場合、いずれかの撮像ユニットの取得条件を変更すれば、他の撮像ユニットの取得条件も同じように変更される。ユニットプロパティ編集部28では、撮像ユニットの編集時における操作入力に基づいて、異なる撮像ユニットのパラメータであって、撮像条件決定部29によって決定された取得条件を互いに関連付ける処理が行われる。この様に、互いに関連付けられた複数のパラメータのうちの1つが変更されると、他のパラメータも同じように変更される。   In addition, here, it has been described that the acquisition condition of the camera image is determined for each imaging unit selected as the editing target. However, the acquisition condition may be determined for a plurality of imaging units at the same time. For example, by associating a common variable name with a parameter related to acquisition conditions of a plurality of imaging units in advance, the value may be shared among the parameters of these imaging units. In this case, if the acquisition condition of one of the imaging units is changed, the acquisition conditions of the other imaging units are changed in the same way. In the unit property editing unit 28, processing for associating acquisition conditions that are parameters of different imaging units and determined by the imaging condition determination unit 29 with each other is performed based on an operation input during editing of the imaging unit. In this way, when one of a plurality of parameters associated with each other is changed, the other parameters are similarly changed.

<表示更新>
図11及び図12は、図2の検査支援システム100における画像処理コントローラ11の動作の一例を示したフローチャートであり、運転中におけるカメラ画像の表示更新動作の一例が示されている。図11のステップS101〜S105には、トリガ更新モード時の処理手順が示されている。
<Display update>
FIGS. 11 and 12 are flowcharts showing an example of the operation of the image processing controller 11 in the inspection support system 100 of FIG. 2, and an example of the display update operation of the camera image during driving is shown. Steps S101 to S105 in FIG. 11 show a processing procedure in the trigger update mode.

撮像ユニットのプロパティとして、トリガ更新モードが選択されている場合、まず、撮像トリガ信号に基づいてオン状態に遷移するトリガ入力フラグを参照し、このトリガ入力フラグが撮像トリガ信号の入力によってオン状態となっているか否かを判別する(ステップS101,S102)。   When the trigger update mode is selected as the imaging unit property, first, a trigger input flag that transitions to the on state based on the imaging trigger signal is referred to. It is determined whether or not (steps S101 and S102).

このとき、トリガ入力フラグがオン状態となっていれば、カメラ12に対して撮影を指示し、カメラ画像の取り込みを行う(ステップS103,S104)。そして、取り込んだカメラ画像によってディスプレイ13a上のカメラ画像の表示を更新する(ステップS105)。   At this time, if the trigger input flag is in the ON state, the camera 12 is instructed to take a picture and the camera image is captured (steps S103 and S104). Then, the display of the camera image on the display 13a is updated with the captured camera image (step S105).

図12のステップS201〜S206には、連続更新モード時の処理手順が示されている。撮像ユニットのプロパティとして、連続更新モードが選択されている場合、まず、カメラ12に対して連続撮影を指示し、カメラ画像の取り込みを行う(ステップS201,S202)。そして、取り込んだカメラ画像によってディスプレイ13a上のカメラ画像の表示を更新する(ステップS203)。   Steps S201 to S206 in FIG. 12 show a processing procedure in the continuous update mode. When the continuous update mode is selected as the property of the imaging unit, first, the camera 12 is instructed to perform continuous shooting and the camera image is captured (steps S201 and S202). Then, the display of the camera image on the display 13a is updated with the captured camera image (step S203).

次に、トリガ入力フラグを参照し、このトリガ入力フラグが撮像トリガ信号の入力によってオン状態となっているか否かを判別する(ステップS204,S205)。   Next, referring to the trigger input flag, it is determined whether or not the trigger input flag is turned on by the input of the imaging trigger signal (steps S204 and S205).

このとき、トリガ入力フラグがオン状態となっていれば、連続撮影によって得られるカメラ画像の中から画像処理用のカメラ画像を抽出する(ステップS206)。この画像処理用として抽出するカメラ画像としては、例えば、撮像トリガ信号の入力直前に取得したカメラ画像、或いは、撮像トリガ信号の入力時に取得中のカメラ画像、或いは、撮像トリガ信号の入力直後に取得されるカメラ画像などが考えられる。   At this time, if the trigger input flag is on, a camera image for image processing is extracted from camera images obtained by continuous shooting (step S206). As a camera image extracted for this image processing, for example, a camera image acquired immediately before an imaging trigger signal is input, a camera image being acquired at the time of inputting an imaging trigger signal, or acquired immediately after an imaging trigger signal is input. A camera image can be considered.

一方、トリガ入力フラグがオン状態となっていない場合には、ステップS201からステップS205までの処理手順が繰り返される。   On the other hand, if the trigger input flag is not on, the processing procedure from step S201 to step S205 is repeated.

本実施の形態によれば、枝フロー上の撮像ユニットについて、枝フローごとに取得条件が選択できるので、枝フローごとに異なる取得条件が撮像ユニットのパラメータとして選択された制御プログラムを生成することができる。従って、制御プログラム内の枝フローに応じて画像処理用のカメラ画像の取得条件が切り替えられるので、画像処理コントローラ11の運転中に撮影モードを自動的に切り替えながら計測を繰り返させることができる。特に、制御プログラムによって取得条件が切り替えられるので、運転を一旦停止させることなく、撮影モードをトリガ同期モード又はトリガ非同期モードのいずれかに切り替えさせることができる。   According to the present embodiment, since an acquisition condition can be selected for each branch flow for the imaging unit on the branch flow, a control program in which a different acquisition condition for each branch flow is selected as a parameter of the imaging unit can be generated. it can. Accordingly, since the acquisition conditions of the camera image for image processing are switched according to the branch flow in the control program, the measurement can be repeated while automatically switching the shooting mode during operation of the image processing controller 11. In particular, since the acquisition conditions are switched by the control program, it is possible to switch the imaging mode to either the trigger synchronous mode or the trigger asynchronous mode without temporarily stopping the operation.

また、カメラ画像が動画としてディスプレイ13a上に表示されるので、検査対象物の状態をディスプレイ13a上で確認しながら撮像トリガ信号を入力させることができる。   Further, since the camera image is displayed as a moving image on the display 13a, an imaging trigger signal can be input while confirming the state of the inspection object on the display 13a.

本発明の実施の形態による検査支援システムの一構成例を示した斜視図である。It is the perspective view which showed one structural example of the test | inspection assistance system by embodiment of this invention. 図1の検査支援システムのシステム構成の一例を示したブロック図である。It is the block diagram which showed an example of the system configuration | structure of the test | inspection assistance system of FIG. 図2の検査支援システム100におけるPC2の動作の一例を示した図であり、検査設定データ22を作成するためのエディタ画面40が示されている。FIG. 4 is a diagram illustrating an example of the operation of the PC 2 in the inspection support system 100 of FIG. 2, and shows an editor screen 40 for creating inspection setting data 22. 図2の検査支援システム100におけるPC2の動作の一例を示した図であり、フロービューウィンドウ46が表示されたエディタ画面40が示されている。FIG. 4 is a diagram showing an example of the operation of the PC 2 in the inspection support system 100 of FIG. 2, and shows an editor screen 40 on which a flow view window 46 is displayed. 図2の検査支援システム100におけるPC2の動作の一例を示した図であり、フロービューウィンドウ46内のフローチャート47の一例が示されている。FIG. 4 is a diagram showing an example of the operation of the PC 2 in the examination support system 100 of FIG. 2, and shows an example of a flowchart 47 in the flow view window 46. 図2の検査支援システム100におけるPC2の動作の一例を示した図であり、撮像ユニットのプロパティ編集画面70の一例が示されている。FIG. 4 is a diagram showing an example of the operation of the PC 2 in the inspection support system 100 of FIG. 2, and shows an example of the property editing screen 70 of the imaging unit. 図2の検査支援システム100におけるPC2の動作の一例を示した図であり、カメラ設定72の項目が選択されたプロパティ編集画面70が示されている。FIG. 6 is a diagram showing an example of the operation of the PC 2 in the inspection support system 100 of FIG. 2, and shows a property editing screen 70 in which an item of camera setting 72 is selected. 図2の検査支援システム100におけるPC2の動作の一例を示した図であり、トリガ設定73の項目が選択されたプロパティ編集画面70が示されている。FIG. 9 is a diagram showing an example of the operation of the PC 2 in the inspection support system 100 of FIG. 2, and shows a property editing screen 70 in which an item of trigger setting 73 is selected. 図2の検査支援システム100におけるPC2の動作の一例を示した図であり、カメラ画像についてゲイン調整するためのゲイン設定画面90が示されている。FIG. 4 is a diagram showing an example of the operation of the PC 2 in the inspection support system 100 of FIG. 2, and shows a gain setting screen 90 for adjusting the gain of the camera image. 図2の検査支援システム100におけるPC2の構成例を示したブロック図であり、エディタの機能構成の一例が示されている。FIG. 3 is a block diagram showing a configuration example of a PC 2 in the inspection support system 100 of FIG. 2, showing an example of a functional configuration of an editor. 図2の検査支援システム100における画像処理コントローラ11の動作の一例を示したフローチャートであり、トリガ更新モード時の処理手順が示されている。It is the flowchart which showed an example of operation | movement of the image processing controller 11 in the test | inspection assistance system 100 of FIG. 2, and the process sequence at the time of trigger update mode is shown. 図2の検査支援システム100における画像処理コントローラ11の動作の一例を示したフローチャートであり、連続更新モード時の処理手順が示されている。3 is a flowchart showing an example of the operation of the image processing controller 11 in the inspection support system 100 of FIG. 2, showing the processing procedure in the continuous update mode.

符号の説明Explanation of symbols

1 画像処理装置
2 PC
3 通信ネットワーク
11 画像処理コントローラ
12 カメラ
13a ディスプレイ
13b 操作ユニット
14,21 メモリ
15,22 検査設定データ
23 処理ユニット記憶部
24 フローチャート表示部
25 プログラム生成部
26 転送部
27 操作入力部
28 ユニットプロパティ編集部
29 撮像条件決定部
40 エディタ画面
46 フロービューウィンドウ
47 フローチャート
48 処理ユニット
100 検査支援システム
1 Image processing device 2 PC
3 communication network 11 image processing controller 12 camera 13a display 13b operation unit 14, 21 memory 15, 22 inspection setting data 23 processing unit storage unit 24 flowchart display unit 25 program generation unit 26 transfer unit 27 operation input unit 28 unit property editing unit 29 Imaging condition determination unit 40 Editor screen 46 Flow view window 47 Flowchart 48 Processing unit 100 Inspection support system

Claims (4)

検査対象物を撮影してカメラ画像を生成するカメラと、上記カメラから上記カメラ画像を取得して当該カメラ画像から計測結果を抽出し、この計測結果に基づいて上記検査対象物の良否を判定して判定信号を出力する画像処理コントローラと、上記画像処理コントローラによって表示制御され、上記カメラ画像を表示するディスプレイとからなる画像処理装置に用いられる上記画像処理コントローラの制御プログラムを作成するプログラム作成装置において、
パラメータが変更可能な処理を示す処理ユニットとして、実行フローを2以上の枝フローに分岐させる分岐ユニット、撮像トリガ入力端子からの入力信号に基づいて画像処理用の上記カメラ画像を取得する撮像ユニット、並びに、上記撮像ユニットによって取得された上記カメラ画像から上記計測結果を抽出する計測ユニットを保持する処理ユニット記憶手段と、
スタートシンボルにおいて開始し、エンドシンボルにおいて終了する実行フロー上に上記処理ユニットを配置することによって生成されたフローチャートを表示するフローチャート表示手段と、
上記フローチャート上で選択された上記撮像ユニットの上記パラメータとして、画像処理用のカメラ画像を取得する際の取得条件を決定する撮像条件決定手段と、
上記フローチャートに基づいて、上記画像処理コントローラの制御プログラムを生成するプログラム生成手段と、
上記制御プログラムを上記画像処理コントローラへ転送する転送手段とを備え、
上記撮像条件決定手段は、上記撮像トリガ入力端子からの入力信号に同期して撮影させたカメラ画像を画像処理用として取り込むトリガ同期モード、及び、繰返し撮影させて得られるカメラ画像から上記入力信号に基づいて画像処理用のカメラ画像を抽出するトリガ非同期モードのいずれかを上記取得条件として選択することができ、上記フローチャート上の上記分岐ユニットによって分岐された異なる2つの枝フロー上に、上記トリガ同期モード及び上記トリガ非同期モードのいずれかが選択された上記撮像ユニットをそれぞれ配置可能であることを特徴とする画像処理コントローラ用のプログラム作成装置。
A camera that shoots an inspection object and generates a camera image; obtains the camera image from the camera; extracts a measurement result from the camera image; and determines pass / fail of the inspection object based on the measurement result In a program creation device for creating a control program for the image processing controller used in an image processing device comprising an image processing controller that outputs a determination signal and a display that is controlled by the image processing controller and displays the camera image ,
As a processing unit indicating a process whose parameters can be changed, a branch unit that branches the execution flow into two or more branch flows, an imaging unit that acquires the camera image for image processing based on an input signal from an imaging trigger input terminal, In addition, a processing unit storage unit that holds a measurement unit that extracts the measurement result from the camera image acquired by the imaging unit;
Flowchart display means for displaying a flowchart generated by placing the processing unit on an execution flow starting at a start symbol and ending at an end symbol;
Imaging condition determining means for determining an acquisition condition when acquiring a camera image for image processing as the parameter of the imaging unit selected on the flowchart;
Program generating means for generating a control program for the image processing controller based on the flowchart,
Transfer means for transferring the control program to the image processing controller,
The imaging condition determining means includes a trigger synchronization mode for capturing a camera image captured in synchronization with an input signal from the imaging trigger input terminal for image processing, and a camera image obtained by repeatedly capturing the input signal from the camera image. One of the trigger asynchronous modes for extracting a camera image for image processing based on the acquisition condition can be selected as the acquisition condition, and the trigger synchronization is performed on two different branch flows branched by the branch unit on the flowchart. A program creation apparatus for an image processing controller, wherein the imaging units in which one of the mode and the trigger asynchronous mode is selected can be arranged respectively.
上記トリガ非同期モードでは、一定周期で繰返し撮影された上記カメラ画像が上記ディスプレイ上に動画として表示されることを特徴とする請求項1に記載の画像処理コントローラ用のプログラム作成装置。   2. The program creation device for an image processing controller according to claim 1, wherein in the trigger asynchronous mode, the camera image repeatedly photographed at a constant period is displayed as a moving image on the display. 上記トリガ同期モードにおける上記入力信号の入力から上記カメラに撮影を開始させるまでの時間が、上記トリガ非同期モード時に上記カメラが繰返し撮影して上記カメラ画像を連続生成する際の撮像周期よりも短いことを特徴とする請求項1に記載の画像処理コントローラ用のプログラム作成装置。   The time from the input of the input signal in the trigger synchronous mode until the camera starts shooting is shorter than the imaging cycle when the camera repeatedly shoots and continuously generates the camera images in the trigger asynchronous mode. The program creation device for an image processing controller according to claim 1. 上記撮像ユニットの編集時における操作入力に基づいて、異なる撮像ユニットのパラメータであって、上記撮像条件決定手段によって決定された取得条件を互いに関連付けるパラメータ関連付け手段を備え、
上記パラメータ関連付け手段によって互いに関連付けられた複数のパラメータのうちの1つが変更されると、他のパラメータも同じように変更されることを特徴とする請求項1に記載の画像処理コントローラ用のプログラム作成装置。
Based on the operation input at the time of editing of the imaging unit, it comprises parameter associating means for associating acquisition parameters determined by the imaging condition determining means, which are parameters of different imaging units,
2. The program creation for an image processing controller according to claim 1, wherein when one of a plurality of parameters associated with each other is changed by the parameter association means, the other parameters are changed in the same manner. apparatus.
JP2007294211A 2007-11-13 2007-11-13 Program creation device for image processing controller Expired - Fee Related JP4944737B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007294211A JP4944737B2 (en) 2007-11-13 2007-11-13 Program creation device for image processing controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007294211A JP4944737B2 (en) 2007-11-13 2007-11-13 Program creation device for image processing controller

Publications (2)

Publication Number Publication Date
JP2009122821A true JP2009122821A (en) 2009-06-04
JP4944737B2 JP4944737B2 (en) 2012-06-06

Family

ID=40814930

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007294211A Expired - Fee Related JP4944737B2 (en) 2007-11-13 2007-11-13 Program creation device for image processing controller

Country Status (1)

Country Link
JP (1) JP4944737B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014089706A (en) * 2013-10-11 2014-05-15 Keyence Corp Program creation support apparatus and image processing apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102242916B1 (en) * 2018-08-08 2021-04-21 (주)로닉스 Method for synchronizing image capturing from external synchronization signal, and camera device implementing the method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014089706A (en) * 2013-10-11 2014-05-15 Keyence Corp Program creation support apparatus and image processing apparatus

Also Published As

Publication number Publication date
JP4944737B2 (en) 2012-06-06

Similar Documents

Publication Publication Date Title
JP2009116377A (en) Device for creating program for use in image processing controller
JP5411049B2 (en) Image processing device
US8081213B2 (en) Test support system and image processing controller
JP4944739B2 (en) Program creation device for image processing controller
KR101117472B1 (en) Apparatus and Method for Visual Inspection
JP2011043928A (en) Image processor, program creation support device, and image processing method
JP5060677B2 (en) Image processing controller and inspection support system
US20110043621A1 (en) Image Processing Device And Image Processing Method
JP4929133B2 (en) Inspection support system
US7929024B2 (en) Program creation apparatus for image processing controller
JP4944737B2 (en) Program creation device for image processing controller
JP5060674B2 (en) Program creation device for image processing controller
JP2006329684A (en) Image measuring instrument and method
JP2023077054A (en) Appearance inspection device and appearance inspection method
JP7391571B2 (en) Electronic devices, their control methods, programs, and storage media
JP2005091161A (en) Defect-confirming system and defect-confirming method
JP2009116381A (en) Program creation device for image processing controller
JP5696194B2 (en) Program creation support apparatus and image processing apparatus
JP2017122682A (en) Visual inspection device, visual inspection method, and computer program executable by controller used in visual inspection device
JP6152353B2 (en) Inspection device
JP5060676B2 (en) Program creation apparatus and inspection support system for image processing controller
JP6220514B2 (en) Robot control system and robot control method
JP5861743B2 (en) Image processing device
JP2012150142A (en) Microscope control apparatus, microscope system and control method thereof
JP5747664B2 (en) Marker detection function test method and apparatus for image sensor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100915

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120214

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: 20120221

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120302

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

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150309

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees