JPH08105713A - Method and apparatus for processing inspecting image and inspecting apparatus by image processing - Google Patents

Method and apparatus for processing inspecting image and inspecting apparatus by image processing

Info

Publication number
JPH08105713A
JPH08105713A JP6268205A JP26820594A JPH08105713A JP H08105713 A JPH08105713 A JP H08105713A JP 6268205 A JP6268205 A JP 6268205A JP 26820594 A JP26820594 A JP 26820594A JP H08105713 A JPH08105713 A JP H08105713A
Authority
JP
Japan
Prior art keywords
image
window
image pickup
calibration data
inspection
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.)
Pending
Application number
JP6268205A
Other languages
Japanese (ja)
Inventor
Junko Iida
純子 飯田
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP6268205A priority Critical patent/JPH08105713A/en
Publication of JPH08105713A publication Critical patent/JPH08105713A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To improve the operability and the efficiency of the inspecting operation by automatically setting set information of the same conditions which is necessary to process the image produced by other imaging means merely by calculating the set information by one imaging means by utilizing the calibration data of each imaging means. CONSTITUTION: A window is opened on a screen on which an image produced by a first camera 1A is displayed, calibration data is extracted, and both are calibrated to calculate the position of the window and the deciding conditions in an actual coordinate system. Then, the calibration data of second camera 1B-N-th camera 1N are extracted, the position and the deciding conditions of the window are calculated by the extracted values in an actual coordinate system, and the position and the deciding conditions of the window are calculated in the camera coordinate system of the camera 1B-1N. The window of the imaged by the cameras 1B-1N are automatically opened, and the deciding condition values are automatically set. Thus, the setting of the same inspecting conditions can be easily conducted for a plurality of imaging means.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、例えば量産される同
一の工業用製品を並設された複数のベルトコンベヤ上に
載置して搬送しつつ、それらを各検査搬送ライン毎に設
置したカメラなどの複数の撮像手段によって撮像して、
それら撮像画像から同一内容の検査を視覚的に行う場合
などに適用される検査用画像処理方法とその装置および
画像処理による検査装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a camera in which, for example, the same industrial products to be mass-produced are placed and conveyed on a plurality of belt conveyors arranged in parallel, and they are installed in each inspection conveyance line. Imaged by multiple imaging means such as
The present invention relates to an inspection image processing method and its apparatus applied when visually inspecting the same content from those captured images, and an inspection apparatus by image processing.

【0002】[0002]

【従来の技術】同一の製品に対して同一内容の検査を行
う場合、撮像手段であるカメラを含めた複数の検査装置
の全てを同一条件に設定することが必要なことは当然で
ある。しかしながら、実際には、照明のあて方や各カメ
ラの設置距離など物理的な位置の相違などに起因して、
同一製品を撮像したとしても、それらの撮像画像の大き
さや画像中の位置はカメラ毎に異なっていることが多
い。そこで、従来では、複数のカメラによって撮像した
撮像画像に対して、それぞれ個別的にウインドウを描画
し、かつ個別的に判定条件を設定していた。
2. Description of the Related Art When inspecting the same product for the same content, it is naturally necessary to set all of a plurality of inspection devices including a camera as an image pickup means to the same condition. However, in reality, due to differences in physical position such as how to apply lighting and installation distance of each camera,
Even if the same product is imaged, the size of the captured image and the position in the image are often different for each camera. Therefore, conventionally, a window is individually drawn for each of captured images captured by a plurality of cameras, and determination conditions are individually set.

【0003】例えば製品を撮像して得られる画像を用い
た場合を例にとって説明すると、図8に示すように、複
数のカメラにより撮像された撮像画像A1,A2に対し
てその画像A1,A2の大きさに合わせてウインドウW
1,W2をそれぞれ描画し、それらウインドウW1,W
2が描画されている画素数の全画素数に占める割合(こ
こでは、面積)を求めて、その求めた面積に基づいて検
査の判定条件である許容範囲の上限値および下限値をそ
れぞれカメラ毎に設定していた。
For example, a case where an image obtained by picking up an image of a product is used will be described as an example. As shown in FIG. 8, the images A1 and A2 of the picked-up images A1 and A2 are picked up by a plurality of cameras. Window W to fit the size
1 and W2 are drawn respectively, and those windows W1 and W
The ratio (here, the area) of the number of pixels in which 2 is drawn to the total number of pixels is calculated, and the upper and lower limits of the allowable range, which is the inspection determination condition, are set for each camera based on the calculated area. Was set to.

【0004】[0004]

【発明が解決しようとする課題】上記したような従来の
検査用画像処理方法によれば、設置したカメラの数と同
数のウインドウをカメラ毎に操作者が描画し、かつ、判
定条件を設定しなければならないので、所定の検査にあ
たっての操作性が非常に煩雑になるばかりでなく、検査
作業の全体能率も非常に低いという問題があった。
According to the conventional image processing method for inspection as described above, the operator draws as many windows as the number of installed cameras for each camera and sets the determination condition. Therefore, there is a problem that not only the operability for a predetermined inspection becomes very complicated, but also the overall efficiency of the inspection work is very low.

【0005】この発明は上記実情に鑑みてなされたもの
で、撮像手段毎のキャリブレーションデータを有効に活
用して、一つの撮像手段による撮像画像の処理に必要な
設定情報を演算するだけで、他の撮像手段による撮像画
像に処理に必要な同一条件の設定情報を自動的に設定さ
せることを可能にして、検査作業の操作性および能率を
顕著に向上することができる検査用画像処理方法とその
装置および画像処理による検査装置を提供することを目
的としている。
The present invention has been made in view of the above situation. By effectively utilizing the calibration data of each image pickup means, the setting information necessary for processing the imaged image by one image pickup means is calculated. An inspection image processing method capable of automatically setting the setting information of the same condition necessary for processing in a captured image by another imaging means and significantly improving the operability and efficiency of inspection work. It is an object of the present invention to provide an apparatus and an inspection apparatus based on image processing.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に、請求項1の発明に係る検査用画像処理方法は、検査
対象物の二次元画像を撮像する撮像手段による撮像画像
から該撮像手段のキャリブレーションデータを抽出する
とともに、他の同種撮像手段による撮像画像の処理に必
要な設定情報を演算し記憶し、その設定情報と上記キャ
リブレーションデータとにより当該撮像手段による撮像
画像の処理に必要な設定情報を演算することを特徴とす
るものである。
In order to achieve the above-mentioned object, an inspection image processing method according to the invention of claim 1 is such that an image pickup means for picking up a two-dimensional image of an inspection target from the image pickup means. Calibration data is extracted, and setting information necessary for processing the captured image by the other same-type imaging means is calculated and stored, and necessary for processing the captured image by the imaging means by the setting information and the calibration data. It is characterized by calculating various setting information.

【0007】また、請求項2の発明に係る検査用画像処
理装置は、請求項1の発明に係る検査用画像処理方法を
実施するために使用される装置であって、検査対象物の
二次元画像を撮像する撮像手段と、この撮像手段による
撮像画像から該撮像手段のキャリブレーションデータを
抽出し記憶する手段と、その記憶されたキャリブレーシ
ョンデータとの演算により他の同種撮像手段による撮像
画像の処理に必要な設定情報を求めてそれを記憶する手
段と、その設定情報と上記キャリブレーションデータと
により当該撮像手段による撮像画像の処理に必要な設定
情報を演算する手段とを備えたものである。
An inspection image processing apparatus according to a second aspect of the present invention is an apparatus used for carrying out the inspection image processing method according to the first aspect of the present invention, which is a two-dimensional inspection object. An image pickup means for picking up an image, a means for extracting and storing calibration data of the image pickup means from the image picked up by the image pickup means, and an image picked up by another same kind of image pickup means by calculation with the stored calibration data. It is provided with means for obtaining setting information necessary for processing and storing the setting information, and means for calculating setting information necessary for processing an imaged image by the image pickup means based on the setting information and the calibration data. .

【0008】さらに、請求項3の発明に係る画像処理に
よる検査装置は、検査対象物の二次元画像を撮像する第
1撮像手段と、該第1撮像手段による撮像画像に対して
ウインドウを描画しそれを記憶する手段と、上記第1撮
像手段による撮像画像に対して検査のための判定条件を
設定しそれを記憶する手段と、上記第1撮像手段による
撮像画像に対して設定されるキャリブレーションデータ
を抽出しそれを記憶する手段と、上記各記憶手段に記憶
されているウインドウとキャリブレーションデータおよ
び判定条件とキャリブレーションデータとをそれぞれ演
算して実際の座標系でのウインドウの位置および実際の
座標系での判定条件値を求める手段と、他の同種撮像手
段による撮像画像に対するキャリブレーションデータと
上記第1撮像手段による撮像画像から求めた上記の実際
の座標系でのウインドウの位置および実際の座標系での
判定条件値とを演算して他の同種撮像手段による撮像画
像に対して第1撮像手段と同様なウインドウの自動描画
および判定条件の自動設定を行う手段とを備えたもので
ある。
Further, the inspection apparatus based on the image processing according to the invention of claim 3 draws a window on the image picked up by the first image pickup means for picking up a two-dimensional image of the inspection object. Means for storing it, means for setting a determination condition for inspection on the image picked up by the first image pickup means and storing it, and calibration set for the image picked up by the first image pickup means Means for extracting the data and storing it, calculating the window and the calibration data and the judgment conditions and the calibration data stored in each of the storage means, respectively, and calculating the position of the window in the actual coordinate system and the actual position of the window. Means for obtaining a judgment condition value in a coordinate system, calibration data for an image picked up by another same kind of image pickup means, and the first image pickup means The position of the window in the actual coordinate system and the determination condition value in the actual coordinate system obtained from the captured image by And means for automatically drawing windows and automatically setting judgment conditions.

【0009】さらにまた、上記構成の画像処理による検
査装置においては、上記各撮像手段が検査対象物の検査
用搬送ラインの上部位置に垂直姿勢に配置されているこ
とが好ましい。
Further, in the image processing inspection apparatus having the above-mentioned structure, it is preferable that each of the image pickup means is arranged in a vertical posture at a position above the inspection transfer line of the inspection object.

【0010】[0010]

【作用】請求項1および請求項2の発明によれば、撮像
手段によって撮像された検査対象物の二次元画像から該
撮像手段のキャリブレーションデータが抽出されるとと
もに、他の同種撮像手段による撮像画像の処理に必要な
設定情報が演算し記憶される。この記憶された設定情報
と上記キャリブレーションとを演算することによって当
該撮像手段による撮像画像の処理に必要な設定情報が得
られるのはもとより、上記記憶された設定情報を他の同
種撮像手段による撮像画像の処理時に読み出して、これ
と他の撮像手段のキャリブレーションとを演算すること
によって他の撮像手段による撮像画像の処理に必要な同
一条件の設定情報を自動的に得ることが可能であり、撮
像手段毎に個別的に設定情報を演算する操作手間を省く
ことができる。
According to the first and second aspects of the present invention, the calibration data of the image pickup means is extracted from the two-dimensional image of the inspection object imaged by the image pickup means, and the image is picked up by another image pickup means of the same kind. The setting information necessary for processing the image is calculated and stored. By calculating the stored setting information and the calibration, it is possible to obtain the setting information necessary for the processing of the captured image by the image capturing unit, and also the stored setting information is captured by another similar image capturing unit. It is possible to automatically obtain the setting information of the same condition necessary for the processing of the captured image by the other image capturing means by reading out at the time of processing the image and calculating the calibration of this and the other image capturing means, It is possible to save the operation labor for individually calculating the setting information for each imaging unit.

【0011】また、請求項3の発明によれば、第1撮像
手段によって撮像された検査対象物の二次元画像に対し
てウインドウを描画するとともに、その画像に対する検
査用の判定条件を設定するだけで、これらウインドウお
よび判定条件と第1撮像手段のキャリブレーションデー
タとの演算によって実際の座標系でのウインドウの位置
および判定条件値を求めることが可能であるとともに、
他の同種撮像手段による撮像画像のキャリブレーション
と上記の実際の座標系でのウインドウの位置および判定
条件値との演算によって他の撮像手段による撮像画像に
対して、第1撮像手段と同様のウインドウの自動描画お
よび第1撮像手段と同様の判定条件の自動設定を行うこ
とが可能である。したがって、撮像手段の物理的な設置
位置の違いや照明のあて方の違いなどに起因して、同一
の検査対象物の撮像画像が撮像手段毎で異なっていて
も、第1撮像手段による撮像画像に対してウインドウ描
画および判定条件を設定するという簡単な操作を行うだ
けで、同種の他の撮像手段による撮像画像に対してもそ
れに見合った同様なウインドウ描画および判定条件の設
定が行えて、同一内容の検査作業を能率的に実行するこ
とができる。
According to the third aspect of the invention, a window is drawn for the two-dimensional image of the inspection object imaged by the first imaging means, and the inspection determination condition for the image is set. Then, it is possible to obtain the position of the window in the actual coordinate system and the determination condition value by calculating the window and the determination condition and the calibration data of the first imaging means.
The same window as that of the first image pickup means for the image picked up by the other image pickup means by the calibration of the image picked up by the other image pickup means of the same kind and the calculation of the position of the window in the actual coordinate system and the judgment condition value. It is possible to perform automatic drawing and automatic setting of determination conditions similar to those of the first imaging means. Therefore, even if the imaged image of the same inspection object differs for each imaging device due to the difference in the physical installation position of the imaging device, the difference in the way of illuminating, etc., the imaged image by the first imaging device. By performing a simple operation of setting window drawing and determination conditions for the same, it is possible to set the same window drawing and determination conditions corresponding to the images captured by other image capturing means of the same type, and to perform the same operation. The contents inspection work can be efficiently performed.

【0012】[0012]

【実施例】以下、この発明の実施例を図面にもとづいて
説明する。図1および図2はこの発明の一実施例による
画像処理による検査装置の概要を示す概略平面図および
概略側面図であり、同図において、1A,1B,…,1
Nはそれぞれ撮像手段としてのカメラで、これらカメラ
1A,1B,…,1Nは、複数の検査ラインを構成する
ように、所定の間隔を隔てて互いに平行状に並設された
搬送用コンベヤ2A,2B,…,2Nの搬送途中の上部
位置にそれぞれ垂直姿勢に設置されて各コンベヤ2A,
2B,…,2N上に載置され搬送される同一の検査対象
物Tの二次元画像を上方から撮像するように固定されて
おり、これらカメラ1A,1B,…,1Nにそれぞれ対
応して視覚検査装置3A,3B,…,3Nが設けられ、
これら視覚検査装置3A,3B,…,3NはCPUバス
4を介して中央演算処理装置(CPU)5に接続されて
いる。
Embodiments of the present invention will be described below with reference to the drawings. 1 and 2 are a schematic plan view and a schematic side view showing an outline of an inspection apparatus using image processing according to an embodiment of the present invention, in which FIG. 1 and FIG.
N is a camera as an image pickup means, and these cameras 1A, 1B, ..., 1N are conveyer conveyors 2A, which are arranged in parallel at predetermined intervals so as to form a plurality of inspection lines. 2B, ..., 2N are vertically installed at the upper positions of the respective conveyors 2A,
, 2N are fixed so as to capture a two-dimensional image of the same inspection object T placed and conveyed on 2B, ..., 2N from above, and the cameras 1A, 1B ,. Inspection devices 3A, 3B, ..., 3N are provided,
These visual inspection devices 3A, 3B, ..., 3N are connected to a central processing unit (CPU) 5 via a CPU bus 4.

【0013】図3は上記視覚検査装置3A,3B,…,
3Nの内部構成を示す概略ブロック図である。なお、同
図では、第1カメラ1Aに接続された視覚検査装置3A
の内部構成のみを詳しく図示しているが、他のカメラ1
B,…,1Nに接続された視覚検査装置3B,…,3N
の内部構成も全く同一のものである。
FIG. 3 shows the visual inspection devices 3A, 3B, ...
It is a schematic block diagram which shows the internal structure of 3N. In the figure, the visual inspection device 3A connected to the first camera 1A
Only the internal structure of the camera is shown in detail, but other cameras 1
Visual inspection devices 3B, ..., 3N connected to B, ..., 1N
The internal configuration of is exactly the same.

【0014】図3において、6は第1カメラ1Aによる
撮像画像を記憶する画像メモリで、その撮像画像を表示
するCRTなどの表示部7が接続されている。8は上記
撮像画像に対してウインドウ(図8参照)を描画し、そ
のウインドウが描画されている画素数を記憶するウイン
ドウメモリ、9は同撮像画像に対して検査のための判定
条件を設定しそれを記憶する判定条件メモリ、10は同
撮像画像に対して設定されるキャリブレーションデータ
を抽出し記憶するキャリブレーションメモリである。1
1は演算制御部であって、上記各メモリ8,10に記憶
されているウインドウとキャリブレーションデータとを
演算して実際の座標系でのウインドウの位置を求めると
ともに、各メモリ9,10に記憶されている判定条件と
キャリブレーションデータとを演算して実際の座標系で
の判定条件値を求めるものである。このような構成から
なる第1カメラ1Aに対応する視覚検査装置3Aにおけ
る上記演算制御部11で求められた実座標系でのウイン
ドウの位置および判定条件値は、CPUバス4およびC
PU5を通じて他のカメラ1B,…,1Nに対応する視
覚検査装置3B,…,3Nに伝送複写されるように構成
されている。
In FIG. 3, reference numeral 6 denotes an image memory for storing an image picked up by the first camera 1A, to which a display unit 7 such as a CRT for displaying the picked up image is connected. 8 is a window memory that draws a window (see FIG. 8) on the captured image, and stores the number of pixels in which the window is drawn, and 9 sets a determination condition for inspection on the captured image. A determination condition memory 10 for storing it is a calibration memory 10 for extracting and storing calibration data set for the captured image. 1
Reference numeral 1 denotes an arithmetic control unit that calculates the window position in the actual coordinate system by operating the windows and calibration data stored in the memories 8 and 10 and stores them in the memories 9 and 10. The determination condition value in the actual coordinate system is calculated by calculating the determined determination condition and the calibration data. The position of the window in the actual coordinate system and the determination condition value obtained by the arithmetic control unit 11 in the visual inspection device 3A corresponding to the first camera 1A having such a configuration are the CPU bus 4 and C.
, 3N corresponding to the other cameras 1B, ..., 1N are transmitted and copied through the PU5.

【0015】次に、上記構成の検査装置における画像処
理動作について、図4および図5に示すフローチャート
を参照して説明する。なお、動作フローの理解を容易に
するためにウインドウの描画動作(図4)と判定条件の
設定動作(図5)とに分けて説明するが、実際はこれら
両動作が同時に実行処理されるものであることはもちろ
んである。
Next, the image processing operation of the inspection apparatus having the above-mentioned structure will be described with reference to the flow charts shown in FIGS. In order to facilitate understanding of the operation flow, the window drawing operation (FIG. 4) and the determination condition setting operation (FIG. 5) will be described separately, but in reality, both these operations are executed simultaneously. Of course there is.

【0016】まず、ウインドウの描画処理動作について
説明すると、第1カメラ1Aにより撮像された画像に対
してウインドウを描画し、そのウインドウが描画されて
いる画素数(ビット数)をウインドウメモリ8に記憶さ
せる(ステップS21)とともに、上記撮像画像に対し
て設定されるキャリブレーションデータが抽出され、そ
れがキャリブレーションメモリ10に記憶される(ステ
ップS22)。つぎに、上記ウインドウとキャリブレー
ションデータとを下記の演算式(1)にもとづいて演算
する(ステップS23)ことにより、ウインドウが描画
されている各画素の実際の座標系での位置を求める(ス
テップS24)。
First, the window drawing processing operation will be described. A window is drawn for an image picked up by the first camera 1A, and the number of pixels (bit number) in which the window is drawn is stored in the window memory 8. At the same time (step S21), the calibration data set for the captured image is extracted and stored in the calibration memory 10 (step S22). Next, the window and the calibration data are calculated based on the following arithmetic expression (1) (step S23) to obtain the actual position of each pixel on which the window is drawn in the actual coordinate system (step S23). S24).

【0017】[0017]

【数1】 [Equation 1]

【0018】続いて、第2カメラ1Bにより撮像された
画像に対して設定されるキャリブレーションデータが抽
出され、それが第2カメラ1Bに接続された視覚検査装
置3Bにおけるキャリブレーションメモリ10に記憶さ
れ(ステップS25)、そのキャリフブレーションデー
タと上記ステップS24で求めた実際の座標系での位置
とを下記の演算式(2)にもとづいて演算する(ステッ
プS26)ことにより、第2カメラ1Bのカメラ座標に
おけるウインドウが描画されている各画素の位置を求め
る(ステップS27)。そして、第2カメラ1Bによる
撮像画像に対して上記演算式(2)で求められた各画素
の位置においてウインドウを自動的に描画する(ステッ
プS28)。このステップS25〜ステップS28まで
の動作を最後のカメラ1Nの撮像画像に対するウインド
ウ自動描画処理が終了するまで繰り返す(ステップS2
9)ことで、全てのカメラ1A,1B,…,1Nによる
撮像画像に対して、それぞれの大きさに見合ったウイン
ドウを描画することができる。
Next, the calibration data set for the image taken by the second camera 1B is extracted and stored in the calibration memory 10 in the visual inspection device 3B connected to the second camera 1B. (Step S25) Then, the calibration data and the position in the actual coordinate system obtained in step S24 are calculated based on the following calculation formula (2) (step S26), whereby the second camera 1B is operated. The position of each pixel in which the window is drawn in camera coordinates is obtained (step S27). Then, the window is automatically drawn at the position of each pixel obtained by the above equation (2) for the image captured by the second camera 1B (step S28). The operation from step S25 to step S28 is repeated until the window automatic drawing process for the last captured image of the camera 1N is completed (step S2).
9) By doing so, it is possible to draw a window corresponding to each size for the images picked up by all the cameras 1A, 1B, ..., 1N.

【0019】[0019]

【数2】 [Equation 2]

【0020】なお、上記演算式(1)および(2)中に
使用した用語を定義すると、つぎの通りである。 (Xr,Yr):実際の座標系での値 (Xc,Yc):カメラ座標系での値 (Ox,Oy):カメラ座標原点の実際の座標系での値 P:1画素あたりの実寸法 θ:カメラ座標系と実際の座標系の傾き
The terms used in the above equations (1) and (2) are defined as follows. (Xr, Yr): Value in actual coordinate system (Xc, Yc): Value in camera coordinate system (Ox, Oy): Value in actual coordinate system of camera coordinate origin P: Actual size per pixel θ: Tilt between camera coordinate system and actual coordinate system

【0021】次に、判定条件の設定処理動作について説
明すると、第1カメラ1Aにより撮像された画像に対し
て検査のための判定条件(回転方向の判定条件と面積の
判定条件)を設定しそれを判定条件メモリ9に記憶させ
る(ステップS31)とともに、上記撮像画像に対して
設定されるキャリブレーションデータが抽出され、それ
がキャリブレーションメモリ10に記憶される(ステッ
プS32)。つぎに、上記の判定条件とキャリブレーシ
ョンデータとを下記の演算式(3)にもとづいて演算す
る(ステップS33)ことにより、判定条件の実際の座
標系での値を求める(ステップS34)。
Next, the determination condition setting processing operation will be described. The determination conditions for inspection (rotation direction determination conditions and area determination conditions) are set for the image captured by the first camera 1A. Is stored in the determination condition memory 9 (step S31), and the calibration data set for the captured image is extracted and stored in the calibration memory 10 (step S32). Next, the value of the determination condition in the actual coordinate system is obtained by calculating the determination condition and the calibration data based on the following arithmetic expression (3) (step S33) (step S34).

【0022】[0022]

【数3】 (Equation 3)

【0023】続いて、第2カメラ1Bにより撮像された
画像に対して設定されるキャリブレーションデータが抽
出され、それが第2カメラ1Bに接続された視覚検査装
置3Bにおけるキャリブレーションメモリ10に記憶さ
れ(ステップS35)、そのキャリフブレーションデー
タと上記ステップS24で求めた実際の座標系での判定
条件値とを下記の演算式(4)にもとづいて演算する
(ステップS36)ことにより、第2カメラ1Bのカメ
ラ座標系での判定条件値を求める(ステップS37)。
そして、第2カメラ1Bによる撮像画像に対して上記演
算式(4)で求められた判定条件値を自動的に設定する
(ステップS38)。このステップS35〜ステップS
38までの動作を最後のカメラ1Nの撮像画像に対する
判定条件自動設定処理が終了するまで繰り返す(ステッ
プS39)ことで、第2以降のカメラ1B,…,1Nに
よる撮像画像に対して、第1カメラ1Aと同様な判定条
件をれぞれ自動設定することができる。
Subsequently, the calibration data set for the image taken by the second camera 1B is extracted and stored in the calibration memory 10 in the visual inspection device 3B connected to the second camera 1B. In step S35, the calibration data and the judgment condition value in the actual coordinate system obtained in step S24 are calculated based on the following calculation formula (4) (step S36), whereby the second camera is obtained. A determination condition value in the 1B camera coordinate system is obtained (step S37).
Then, the determination condition value obtained by the above equation (4) is automatically set for the image captured by the second camera 1B (step S38). This step S35 to step S
The operations up to 38 are repeated until the determination condition automatic setting process for the last captured image of the camera 1N is completed (step S39), so that the first camera with respect to the captured images of the second and subsequent cameras 1B, ..., 1N. The same judgment conditions as in 1A can be automatically set.

【0024】[0024]

【数4】 [Equation 4]

【0025】なお、上記演算式(3)および(4)中に
使用した用語を定義すると、つぎの通りである。 (Xr,Yr):実際の座標系でのX,Y方向の値 (Xc,Yc):カメラ座標系でのX,Y方向の値 (Ox,Oy):カメラ座標原点の実際の座標系での
X,Y方向の値 θ:カメラ座標系と実際の座標系との傾き θr:実際の座標系での傾き θc:カメラ座標系での傾き Mr:実際の座標系での面積値 Mc:カメラ座標系での面積値 P:1画素あたりの実寸法
The terms used in the above equations (3) and (4) are defined as follows. (Xr, Yr): Values in the X and Y directions in the actual coordinate system (Xc, Yc): Values in the X and Y directions in the camera coordinate system (Ox, Oy): In the actual coordinate system of the camera coordinate origin Values in the X and Y directions of θ: Inclination between the camera coordinate system and the actual coordinate system θr: Inclination in the actual coordinate system θc: Inclination in the camera coordinate system Mr: Area value in the actual coordinate system Mc: Camera Area value in coordinate system P: Actual size per pixel

【0026】なお、上記実施例では、複数のカメラ1
A,1B,…,1Nに対してそれぞれ各別に視覚検査装
置3A,3B,…,3Nを接続する場合について説明し
たが、図6に示すように、複数のカメラ1A,1B,
…,1Nに対して一つの視覚検査装置3のみを接続した
構成であってもよい。この場合、ウインドウメモリ8、
キャブレーションメモリ10および判定条件メモリ9は
カメラ1A,1B,…,1Nの数に対応して複数のメモ
リ(図面上では、8a〜8n、9a〜9n、10a〜1
0nで示す)が必要であるが、画像メモリ6、表示部7
および演算制御部11を共用することが可能であり、構
成の簡略化、低コスト化が図れる。
In the above embodiment, a plurality of cameras 1 are used.
, 3N are separately connected to A, 1B, ..., 1N, respectively. However, as shown in FIG. 6, a plurality of cameras 1A, 1B ,.
.., 1N may be connected to only one visual inspection device 3. In this case, the window memory 8,
A plurality of memories (8a to 8n, 9a to 9n, 10a to 1n in the drawing) correspond to the number of cameras 1A, 1B, ..., 1N.
0n) is required, but the image memory 6 and the display unit 7 are required.
Also, the arithmetic control unit 11 can be shared, and the configuration can be simplified and the cost can be reduced.

【0027】また、上記実施例では、所定の間隔を隔て
て互いに平行状に並設された複数の検査ライン用の搬送
コンベヤ2A,2B,…,2Nの搬送途中の上部位置に
それぞれカメラ1A,1B,…,1Nを設置してなる並
列式検査装置に適用したものについて説明したが、図7
に示すように、一つの検査ライン用の搬送コンベヤ2の
搬送方向に所定の間隔を隔てて複数の1A,1B,…,
1Nを設置してなる直列式検査装置に適用してもよい。
In the above-described embodiment, the cameras 1A, 2A, 2B, ..., 2N for the inspection lines, which are arranged in parallel with each other at a predetermined interval, are located at the upper positions of the conveyors 2A, 2B, ... 1B, ..., 1N are installed in the parallel type inspection apparatus, the explanation is given with reference to FIG.
As shown in, a plurality of 1A, 1B, ..., At predetermined intervals in the transport direction of the transport conveyor 2 for one inspection line.
You may apply to the serial type | mold inspection apparatus which installs 1N.

【0028】[0028]

【発明の効果】以上のように、請求項1および請求項2
の発明によれば、撮像手段によって撮像された検査対象
物の二次元画像から該撮像手段のキャリブレーションデ
ータと他の同種撮像手段による撮像画像の処理に必要な
設定情報とを求め、これを記憶させておくことが可能で
あるから、それら設定情報とキャリブレーションとの演
算によって当該撮像手段による撮像画像の処理に必要な
設定情報を得るだけでなく、他の同種撮像装置による撮
像画像の処理時には、他の同種撮像手段のキャリブレー
ションと上記記憶された設定情報との演算によって他の
撮像手段による撮像画像の処理に必要な同一条件の設定
情報を自動的に得ることができる。したがって、同一の
検査対象物を撮像する複数の撮像手段による撮像画像が
異なっている場合の画像処理において、各画像に同一の
検査条件を設定するとき、一つの撮像手段による画像に
対して所定の設定を行うだけで、それ以外の同種撮像手
段による撮像画像に対する個別的な設定操作は全く不要
となり、複数の撮像装置に対する同一検査条件の設定作
業を非常に操作性よく、かつ、能率的に実行することが
できるという効果を奏する。
As described above, claim 1 and claim 2 are as follows.
According to the invention, the calibration data of the image pickup means and the setting information necessary for processing the imaged image by another image pickup means of the same type are obtained from the two-dimensional image of the inspection object imaged by the image pickup means, and the setting information is stored. Therefore, it is possible not only to obtain the setting information necessary for the processing of the captured image by the image capturing means by the calculation of the setting information and the calibration, but also at the time of processing the captured image by another similar image capturing apparatus. It is possible to automatically obtain the setting information of the same condition necessary for the processing of the captured image by the other image capturing means by the calibration of the other image capturing means of the same type and the calculation of the stored setting information. Therefore, when the same inspection condition is set for each image in the image processing in which the images captured by the plurality of image capturing units that capture the same inspection object are different, a predetermined image is captured for each image captured by one image capturing unit. Just by setting, individual setting operation for the captured image by the same type of imaging means other than that is not necessary at all, and the setting work of the same inspection condition for a plurality of imaging devices can be performed very efficiently and efficiently. There is an effect that can be done.

【0029】また、請求項3の発明によれば、第1撮像
手段により撮像された検査対象物の二次元画像に対して
ウインドウを描画し、かつ、その画像に対する検査用の
判定条件を設定するだけで、これらウインドウおよび判
定条件と第1撮像手段のキャリブレーションデータとの
演算によって実際の座標系でのウインドウの位置および
判定条件値を求め、この求めた実際の座標系でのウイン
ドウの位置および判定条件値と他の同種撮像手段による
撮像画像のキャリブレーションとの演算によって他の撮
像手段による撮像画像に対して、第1撮像手段と同様の
ウインドウの自動描画および第1撮像手段と同様の判定
条件の自動設定を行うことができる。したがって、撮像
手段の物理的な設置位置の違いや照明のあて方の違いな
どに起因して、同一の検査対象物の撮像画像が撮像手段
毎で異なっていても、第1撮像手段による撮像画像に対
してウインドウ描画および判定条件を設定するという簡
単な操作を行うだけで、同種の他の撮像手段による撮像
画像に対してもそれに見合った同様なウインドウ描画お
よび判定条件の設定が行えて、同一内容の検査作業を非
常に能率的に実行することができるという効果を奏す
る。
According to the third aspect of the invention, a window is drawn on the two-dimensional image of the inspection object imaged by the first imaging means, and the inspection determination condition for the image is set. Then, the position of the window in the actual coordinate system and the value of the determination condition are obtained by calculating these windows and the determination conditions and the calibration data of the first imaging means, and the position of the window in the obtained actual coordinate system and By the calculation of the determination condition value and the calibration of the imaged image by another imager of the same type, for the imaged image by the other imager, automatic drawing of a window similar to that of the first imager and determination similar to that of the first imager Conditions can be set automatically. Therefore, even if the imaged image of the same inspection object differs for each imaging device due to the difference in the physical installation position of the imaging device, the difference in the way of illuminating, etc., the imaged image by the first imaging device. By performing a simple operation of setting window drawing and determination conditions for the same, it is possible to set the same window drawing and determination conditions corresponding to the images captured by other image capturing means of the same type, and to perform the same operation. This has the effect that the content inspection work can be executed very efficiently.

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

【図1】この発明の一実施例による画像処理による検査
装置の概要を示す概略平面図である。
FIG. 1 is a schematic plan view showing an outline of an inspection apparatus by image processing according to an embodiment of the present invention.

【図2】図1の概略側面図である。FIG. 2 is a schematic side view of FIG.

【図3】視覚検査装置の内部構成を示す概略ブロック図
である。
FIG. 3 is a schematic block diagram showing an internal configuration of a visual inspection device.

【図4】画像処理動作のうち、ウインドウの描画動作を
示すフローチャートである。
FIG. 4 is a flowchart showing a window drawing operation in the image processing operation.

【図5】画像処理動作のうち、判定条件の設定動作を示
すフローチャートである。
FIG. 5 is a flowchart showing a determination condition setting operation of the image processing operations.

【図6】この発明の他の実施例による画像処理による検
査装置における視覚検査装置の内部構成を示す概略ブロ
ック図である。
FIG. 6 is a schematic block diagram showing an internal configuration of a visual inspection device in an inspection device by image processing according to another embodiment of the present invention.

【図7】別の適用例を示す概略側面図である。FIG. 7 is a schematic side view showing another application example.

【図8】従来の検査用画像処理方法を説明する概略図で
ある。
FIG. 8 is a schematic diagram illustrating a conventional inspection image processing method.

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

1A,1B,…,1N カメラ(撮像手段) 5 CPU 8 ウインドウメモリ 9 判定条件メモリ 10 キャリブレーションメモリ 11 演算制御部 T 検査対象物 1A, 1B, ..., 1N Camera (imaging means) 5 CPU 8 Window memory 9 Judgment condition memory 10 Calibration memory 11 Arithmetic control unit T Inspection object

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成7年5月1日[Submission date] May 1, 1995

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0022[Name of item to be corrected] 0022

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0022】[0022]

【数3】 (Equation 3)

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 15/64 400 A ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G06F 15/64 400 A

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 検査対象物の二次元画像を撮像する撮像
手段による撮像画像から該撮像手段のキャリブレーショ
ンデータを抽出するとともに、他の同種撮像手段による
撮像画像の処理に必要な設定情報を演算し記憶し、その
設定情報と上記キャリブレーションデータとにより当該
撮像手段による撮像画像の処理に必要な設定情報を演算
することを特徴とする検査用画像処理方法。
1. The calibration data of the image pickup means is extracted from the image picked up by the image pickup means for picking up a two-dimensional image of the inspection object, and the setting information necessary for the processing of the picked up image by the other similar image pickup means is calculated. Then, the inspection image processing method is characterized by storing and storing the setting information necessary for the processing of the imaged image by the imaging means by the setting information and the calibration data.
【請求項2】 検査対象物の二次元画像を撮像する撮像
手段と、この撮像手段による撮像画像から該撮像手段の
キャリブレーションデータを抽出し記憶する手段と、そ
の記憶されたキャリブレーションデータとの演算により
他の同種撮像手段による撮像画像の処理に必要な設定情
報を求めてそれを記憶する手段と、その設定情報と上記
キャリブレーションデータとにより当該撮像手段による
撮像画像の処理に必要な設定情報を演算する手段とを備
えていることを特徴とする検査用画像処理装置。
2. An image pickup unit for picking up a two-dimensional image of an inspection object, a unit for extracting and storing calibration data of the image pickup unit from an image picked up by the image pickup unit, and the stored calibration data. Means for obtaining setting information necessary for processing of a picked-up image by another same-type image pickup means and storing it, and setting information necessary for processing the picked-up image by the image pickup means by the setting information and the calibration data. And an image processing device for inspection.
【請求項3】 検査対象物の二次元画像を撮像する第1
撮像手段と、該第1撮像手段による撮像画像に対してウ
インドウを描画しそれを記憶する手段と、上記第1撮像
手段による撮像画像に対して検査のための判定条件を設
定しそれを記憶する手段と、上記第1撮像手段による撮
像画像に対して設定されるキャリブレーションデータを
抽出しそれを記憶する手段と、上記各記憶手段に記憶さ
れているウインドウとキャリブレーションデータおよび
判定条件とキャリブレーションデータとをそれぞれ演算
して実際の座標系でのウインドウの位置および実際の座
標系での判定条件値を求める手段と、他の同種撮像手段
による撮像画像に対するキャリブレーションデータと上
記第1撮像手段による撮像画像から求めた上記の実際の
座標系でのウインドウの位置および実際の座標系での判
定条件値とを演算して他の同種撮像手段による撮像画像
に対して第1撮像手段と同様なウインドウの自動描画お
よび判定条件の自動設定を行う手段とを備えていること
を特徴とする画像処理による検査装置。
3. A first for capturing a two-dimensional image of an inspection object
An image pickup means, a means for drawing a window for an image picked up by the first image pickup means and storing the window, and a judgment condition for an inspection set for the image picked up by the first image pickup means and storing it. Means, means for extracting the calibration data set for the image picked up by the first image pickup means and storing the same, windows stored in each of the storage means, calibration data, determination conditions, and calibration Means for calculating the position of the window in the actual coordinate system and the judgment condition value in the actual coordinate system by respectively calculating the data and the calibration data for the image captured by the other similar image capturing means and the first image capturing means. Calculate the window position in the actual coordinate system and the judgment condition value in the actual coordinate system obtained from the captured image That Te and means for automatically setting the automatic drawing and judgment conditions similar window comprising a first image pickup means with respect to an image captured by other similar imaging means inspecting apparatus by image processing according to claim.
【請求項4】 上記各撮像手段が、検査対象物の検査用
搬送ラインの上部位置に垂直姿勢に配置されている請求
項3の画像処理による検査装置。
4. The image processing inspection apparatus according to claim 3, wherein each of the image pickup means is arranged in a vertical posture at a position above the inspection object conveyance line.
JP6268205A 1994-10-05 1994-10-05 Method and apparatus for processing inspecting image and inspecting apparatus by image processing Pending JPH08105713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6268205A JPH08105713A (en) 1994-10-05 1994-10-05 Method and apparatus for processing inspecting image and inspecting apparatus by image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6268205A JPH08105713A (en) 1994-10-05 1994-10-05 Method and apparatus for processing inspecting image and inspecting apparatus by image processing

Publications (1)

Publication Number Publication Date
JPH08105713A true JPH08105713A (en) 1996-04-23

Family

ID=17455386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6268205A Pending JPH08105713A (en) 1994-10-05 1994-10-05 Method and apparatus for processing inspecting image and inspecting apparatus by image processing

Country Status (1)

Country Link
JP (1) JPH08105713A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009109322A (en) * 2007-10-30 2009-05-21 National Institute Of Information & Communication Technology Camera, camera array and camera array system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009109322A (en) * 2007-10-30 2009-05-21 National Institute Of Information & Communication Technology Camera, camera array and camera array system

Similar Documents

Publication Publication Date Title
US6728417B1 (en) Measurement apparatus
US5764793A (en) Method of and apparatus for inspecting pattern defects
EP0704821A2 (en) Image processing method and device employing same
JPH07104947B2 (en) Two-dimensional array object inspection device
CN101685000B (en) Computer system and method for image boundary scan
JPH0591411A (en) Image processor
JPH08105713A (en) Method and apparatus for processing inspecting image and inspecting apparatus by image processing
CN107977953A (en) Workpiece conductive features inspection method and workpiece conductive features check system
JP2002288633A (en) Image processing device and its positional correction method
US20220335585A1 (en) Set up of a visual inspection process
JP3427230B2 (en) Image processing device
JP7151873B2 (en) inspection equipment
JP2522794B2 (en) Automatic mask setting device for image recognition device
JPH10269357A (en) Method for inspecting printed matter
JPH0735699A (en) Method and apparatus for detecting surface defect
JP2014182013A (en) Inspection device, inspection method, and program for inspection device
JPH08159984A (en) Pattern irregularity inspecting apparatus
JP3654092B2 (en) Image recognition method
JP2525051B2 (en) Parallel image processor
JPH0616855U (en) Multi CPU line sensor controller
JP3557814B2 (en) Image inspection apparatus and method
CN111929931A (en) Detection method and device of liquid crystal display screen and terminal equipment
JPH09113225A (en) Image processing device and method and device for visual inspection of object
JPH10289311A (en) Check method and device for printed matter
JP2797703B2 (en) How to set the inspection frame for electronic components