JPS63265104A - Object inspection - Google Patents

Object inspection

Info

Publication number
JPS63265104A
JPS63265104A JP10049587A JP10049587A JPS63265104A JP S63265104 A JPS63265104 A JP S63265104A JP 10049587 A JP10049587 A JP 10049587A JP 10049587 A JP10049587 A JP 10049587A JP S63265104 A JPS63265104 A JP S63265104A
Authority
JP
Japan
Prior art keywords
positional deviation
observed
master
data
monitoring area
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
JP10049587A
Other languages
Japanese (ja)
Other versions
JP2540323B2 (en
Inventor
Masaharu Watanabe
正治 渡辺
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.)
SHIGUMATSUKUSU KK
Sigmax Ltd
Original Assignee
SHIGUMATSUKUSU KK
Sigmax Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHIGUMATSUKUSU KK, Sigmax Ltd filed Critical SHIGUMATSUKUSU KK
Priority to JP62100495A priority Critical patent/JP2540323B2/en
Publication of JPS63265104A publication Critical patent/JPS63265104A/en
Application granted granted Critical
Publication of JP2540323B2 publication Critical patent/JP2540323B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

PURPOSE:To correct the position deviation of an object to be observed highly accurately, by correcting the positions of monitoring regions from the correlation between the detected data obtained from the video signals of a master and the object to be observed using position deviation detecting markers, which are provided on an image screen. CONSTITUTION:Linear position-deviation detecting markers 7X and 7Y are provided on am image screen 5, which is obtained by imaging object 3 to be observed. First detected data INFN are obtained from a video signal parts corresponding to the position-deviation detecting markers 7X and 7Y in the image screen 5 with respect to a master. Second detected data INFD are obtained from a video signal parts corresponding to the position-deviation markers 7X and 7Y in the image screen 5 with respect to the object to be observed. The position deviation between the master and the object to be observed 3 is detected by obtaining the correlation between the first detected data INFN and the second detected data INFD. The relative position 6 with respect to the image screen 5 of the body to be observed 3 is corrected from the result of detection of the position deviation.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は物体検査装置に関し、特にテレビジョンカメラ
を用いて被観測物体を撮像して得られるビデオ信号に基
づいて、被観測物体の有無、欠陥の有無などの被観測物
体の状態を観測するようにした物体検査装置に適用して
好適なものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an object inspection device, and in particular, detects the presence or absence of an observed object based on a video signal obtained by imaging the observed object using a television camera. The present invention is suitable for application to an object inspection device that observes the state of an object to be observed, such as the presence or absence of defects.

〔発明の概要〕[Summary of the invention]

本発明は、被観測物体をテレビジョンカメラのビデオ信
号に基づいて規定される撮像画面によって当該撮像画面
上に設定された監視点にある被観測物体の状態の正常又
は異常を認識するようになされた物体検査装置において
、撮像画面上に設定した位Jずれ検出用マーカによって
マスタ及び被観測物体のビデオ信号から得た第1及び第
2の検出情報の相関に基づいて監視領域の位置を補正す
ることにより、高い精度で被観測物体の位置ずれを補正
することができる。
The present invention recognizes the normality or abnormality of the state of an observed object at a monitoring point set on the imaging screen using an imaging screen defined based on a video signal of a television camera. In the object inspection device, the position of the monitoring area is corrected based on the correlation between the first and second detection information obtained from the video signals of the master and the observed object using a displacement detection marker set on the imaging screen. By doing so, the positional shift of the observed object can be corrected with high accuracy.

〔従来の技術〕[Conventional technology]

この種の検査装置として、被観測物体をテレビジョンカ
メラによって撮像して得られるビデオ信号のうち、所定
の監視領域に相当する信号部分の信号レベルに基づいて
、当該信号レベルが所定の範囲内に入るか否かを判定す
ることによって、物体の有無、物体の各部における欠陥
の有無などを認識するようにしたものが提案されている
(特願昭58−148243号)。
This type of inspection device detects whether the signal level is within a predetermined range based on the signal level of the signal portion corresponding to a predetermined monitoring area among the video signals obtained by imaging the observed object with a television camera. A device has been proposed in which the presence or absence of an object and the presence or absence of defects in each part of the object are recognized by determining whether the object is inserted or not (Japanese Patent Application No. 148243/1982).

かかる構成の検査装置を用いて、例えばキーボードのボ
ード表面にキーを装着する組立工程が終了したとき当該
装着作業が正しく行われたか否かを検査する場合とか、
例えばターラなどのような大重量の電気機器の筐体の表
面にラベルを貼る作業工程が終了したとき当該作業が正
しく行われたか否かを検査する場合などにおいては、正
常な外観をもった標準的な被観測物体(これをマスタと
呼ぶ)をテレビジョンカメラが撮像したときの損傷画面
上に設定された所定の監視領域の輝度と、検査対象とな
る被観測物体を撮像したときの撮像画面上の対応する位
置における輝度とを比較することによって、両者間に差
異があれば被観測物体に異常があると判定するような方
法が採用されている。
Using an inspection device with such a configuration, for example, when an assembly process for attaching keys to the surface of a keyboard board is completed, it may be inspected whether or not the attaching work has been carried out correctly.
For example, when inspecting whether or not the work was done correctly after completing the work process of pasting labels on the surface of the casing of heavy electrical equipment such as Tala, it is necessary to use a standard with a normal appearance. The brightness of a predetermined monitoring area set on the damaged screen when the television camera images the observed object (this is called the master), and the imaged screen when the observed object to be inspected is imaged. A method is adopted in which by comparing the brightness at corresponding positions above, if there is a difference between the two, it is determined that there is an abnormality in the observed object.

因にキーボードの場合装着されていないキーがあれば、
当該監視領域における輝度はマスタにおける対応する部
分の輝度と相違するので、キーの装着作業工程において
何らかの原因で未装着のキーがあれば、これを確実に検
出し得る。
Incidentally, in the case of a keyboard, if there are keys that are not installed,
Since the brightness in the monitoring area is different from the brightness of the corresponding part in the master, if there is a key that is not installed for some reason during the key installation process, it can be reliably detected.

またターラの場合、マスタのラベルと同じラベルが同じ
位置に貼り付けられていなければ、当該ラベル位置に設
定された監視領域における輝度はマスタの輝度と相違す
るので、当該異常を確実に検出することができる。
In addition, in the case of Tara, if the same label as the master label is not pasted at the same position, the brightness in the monitoring area set at the label position will be different from the master brightness, so it is necessary to reliably detect the abnormality. Can be done.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところがこのような方法によって物体の異常を検査しよ
うとする場合、被観測物体上に設定された監視領域の位
置がマスタにおいて設定された監視eM域の位置と僅か
にでも位置ずれがあれば、正しい判定結果が得られなく
なるおそれがあるので、被観測物体について設定された
監視領域の位置に位置ずれがあればこれをできるだけ高
い精度で検出して補正する必要がある。
However, when attempting to inspect an object for anomalies using such a method, if the position of the monitoring area set on the observed object is even slightly misaligned with the position of the monitoring eM area set in the master, it is not correct. Since there is a risk that a determination result may not be obtained, if there is a positional shift in the position of the monitoring area set for the observed object, it is necessary to detect and correct it with as high precision as possible.

本発明は以上の点を考慮してなされたもので、マスタに
対して設定された監視領域に対して、被観測物体に対し
て設定される監視領域の位置ずれを比較的簡易な方法に
よって高い精度で検出し得るようにした物体検査装置を
提案しようとするものである。
The present invention has been made in consideration of the above points, and uses a relatively simple method to reduce the positional deviation of the monitoring area set for the observed object with respect to the monitoring area set for the master. This paper attempts to propose an object inspection device that can detect objects with high accuracy.

〔問題点を解決するための手段〕[Means for solving problems]

かかる問題点を解決するため本発明においては、被観測
物体3をテレビジョンカメラ13によって撮像して得ら
れるビデオ信号VDに基づいて表示される撮像画面5の
うち、所定の監視点に設定された監視領域6に対応する
ビデオ信号部分をマスタの対応するビデオ信号部分と比
較することによって、当該監視領域6にある被観測物体
3の状態の正常又は異常を検出するようになされた物体
検査装置において、撮像画面5上に線状の位置ずれ検出
用マーカ7X、7Yを設定し、マスタについての撮像画
面5のうち位置ずれ検出用マーカ7X、7Yに対応する
ビデオ信号部分から得た第1の検出情報INF、と、被
観測物体3についての撮像画面5のうち位置ずれ検出用
マーカ7X、7Yに対応するビデオ信号部分から得た第
2の検出情報INFoとの相関をとることによりマスタ
及び被観測物体3の位置ずれを検出し、当該位置ずれ検
出結果に基づいて被観測物体3の撮像画面5に対する監
視領域6の相対的位置を補正するようにする。
In order to solve this problem, in the present invention, a monitor is set at a predetermined monitoring point on the imaging screen 5 displayed based on the video signal VD obtained by imaging the object 3 to be observed by the television camera 13. In an object inspection device configured to detect whether the state of an observed object 3 in a monitoring area 6 is normal or abnormal by comparing a video signal portion corresponding to the monitoring area 6 with a corresponding video signal portion of a master. , linear positional deviation detection markers 7X, 7Y are set on the imaging screen 5, and the first detection is obtained from the video signal portion corresponding to the positional deviation detection markers 7X, 7Y on the imaging screen 5 for the master. By correlating the information INF with the second detection information INFo obtained from the video signal portion corresponding to the positional deviation detection markers 7X and 7Y on the imaging screen 5 regarding the observed object 3, the master and observed object 3 are detected. The positional deviation of the object 3 is detected, and the relative position of the monitoring area 6 of the observed object 3 with respect to the imaging screen 5 is corrected based on the positional deviation detection result.

〔作用〕[Effect]

撮像画面5上に設定した線状の位置ずれ検出用マーカ7
X、7Yに対応するビデオ信号部分から、マスタ及び被
観測物体3について 検出情報INF、及びINF、を
検出すると、これらの検出情報INFや及びINF、は
線状の位置ずれ検出用マーカ7X、7Yの延長方向に沿
う方向の位置ずれを表すことになる。
Linear positional deviation detection marker 7 set on the imaging screen 5
When detection information INF and INF about the master and the observed object 3 are detected from the video signal portion corresponding to X and 7Y, these detection information INF and INF are linear positional deviation detection markers 7X and 7Y. It represents the positional shift in the direction along the extension direction of .

かくして撮像画面5上の輝度情報に基づいてマスタに対
する被観測物体3の位置ずれを検出することができるこ
とにより、その位置ずれを確実に補正することができる
In this way, by being able to detect the positional deviation of the observed object 3 with respect to the master based on the luminance information on the imaging screen 5, the positional deviation can be reliably corrected.

〔実施例〕〔Example〕

〔1〕第1実施例 以下図面について、本発明をクーラに付されたラベルの
文字を確認するようにした物体検査装置に適用した場合
の実施例について詳述する。
[1] First Embodiment An embodiment in which the present invention is applied to an object inspection device for checking the characters on a label attached to a cooler will be described in detail with reference to the drawings.

(1)位にずれ検出の原理 この実施例の場合物体検査装置は、第2図に示すように
、クーラ1の筺体2上に、所定位置に所定の文字パター
ン4を配列してなるラベル3が付着されているか否かを
確認する。
(1) Principle of positional deviation detection As shown in FIG. Check whether it is attached.

そのためクーラ1のラベル3の周りの映像がテレビジョ
ンカメラによって撮像され、第1図に示すように、撮像
画面5上の所定位置にラベル3の映像を写し出すように
なされている。
Therefore, an image around the label 3 of the cooler 1 is captured by a television camera, and the image of the label 3 is projected at a predetermined position on the imaging screen 5, as shown in FIG.

かくして撮像画面5上に写し出される映像の各位置は、
撮像画面5上に設定されたXY座標によって表すことが
でき、当該XY!標上の位置を指定して監視領域6を設
定し、テレビジョンカメラから得られるビデオ信号のう
ち、当該監視領域6に含まれるビデオ信号部分に対応す
る輝度信号を用いてラベル3上の文字パターン4の有無
、又は正誤を確認するようになされている。
In this way, each position of the image projected on the imaging screen 5 is
It can be expressed by the XY coordinates set on the imaging screen 5, and the XY! A monitoring area 6 is set by specifying the position of the elevation, and a character pattern on the label 3 is created using a luminance signal corresponding to the video signal portion included in the monitoring area 6 of the video signal obtained from the television camera. It is designed to check the presence or absence of 4 or whether it is correct or incorrect.

実際上監視領域6には、所定の形状及び大きさを存する
監視用マーカが割り当てられ、当該監視用マーカに対応
するビデオ信号部分についてのデータを取り込み得るよ
うになされている。
In practice, a monitoring marker having a predetermined shape and size is assigned to the monitoring area 6, so that data regarding a portion of the video signal corresponding to the monitoring marker can be captured.

かくしてクーラ1の撮像画面5のうち、被観測物体とし
てのラベル3上の監視領域6の輝度(例えば平均輝度)
と、マスタから得られた撮像画面5上の監視領域6の輝
度とを比較し、両者に所定値以上の差があるか否かによ
って、被観測物体としてのラベル3上の文字パターン4
が、マスタの文字パターンと同一であるか否かを判定す
るようになされている。
In this way, the brightness (for example, average brightness) of the monitoring area 6 on the label 3 as the observed object on the imaging screen 5 of the cooler 1
and the brightness of the monitoring area 6 on the imaging screen 5 obtained from the master, and depending on whether there is a difference of more than a predetermined value between the two, the character pattern 4 on the label 3 as the observed object is determined.
is the same as the master character pattern.

撮像画面5上のラベル3の表示位置が、マスタと一致す
るか否かを検出するために、撮像画面5上にX方向位置
ずれ検出用マーカ7X及びY方向位置ずれ検出用マーカ
7Yが設けられている。
In order to detect whether the display position of the label 3 on the imaging screen 5 matches the master, a marker 7X for detecting positional deviation in the X direction and a marker 7Y for detecting positional deviation in the Y direction are provided on the imaging screen 5. ing.

X方向位置ずれ検出用マーカ7Xは、第3図に示すよう
に、撮像画面5上、X方向に順次−列に配列されている
所定数の画素マーカ 7XI、7X8・・・・・・7X
i、7Xi、l、7Xi、8・・・・・・7XIIによ
って直線状に形成され、撮像画面5上に設定されたとき
、対応する画素列の輝度情報を1画素ずつ取り出し得る
ようになされている。
As shown in FIG. 3, the X-direction positional deviation detection markers 7X include a predetermined number of pixel markers 7XI, 7X8, 7X, which are sequentially arranged in rows in the X direction on the imaging screen 5.
i, 7Xi, l, 7Xi, 8...7XII are formed in a straight line, and when set on the imaging screen 5, the luminance information of the corresponding pixel row can be extracted pixel by pixel. There is.

またY方向位置ずれ検出用マーカ7Yは、同様にしてY
方向に順次配列されている画素列に対応するように直線
状に形成され、かくして撮像画面5上の各画素の輝度情
報を指定し得るようになされている。
Similarly, the marker 7Y for detecting positional deviation in the Y direction is
They are formed in a straight line so as to correspond to pixel rows arranged sequentially in the direction, and thus the brightness information of each pixel on the imaging screen 5 can be specified.

X方向及びY方向位置ずれ検出用マーカ7X及び7Yは
、ラベル3の隅部において、その一部がラベル3の映像
に重畳するように設定され、かくしてX方向及びY方向
位置ずれ検出用マーカ7X及び7Yのうち、ラベル3上
に重畳している部分から例えば明るい輝度を表す論理「
1」レベルの画素情報を得ることができると共に、ラベ
ル3とは重畳していない部分から暗い輝度を表す論理「
0」レベルの輝度情報を得ることができるようになされ
ている。
The X-direction and Y-direction positional deviation detection markers 7X and 7Y are set at the corners of the label 3 so that a part thereof overlaps with the image of the label 3, and thus the X-direction and Y-direction positional deviation detection markers 7X and 7Y, the logic that expresses bright luminance from the part superimposed on label 3, for example, "
1" level pixel information can be obtained, and label 3 is a logical "
0'' level luminance information can be obtained.

かくしてX方向位置ずれ検出用マーカ7Xを、マスタと
してのクーラ1を撮像している状態においてそのラベル
3M上に設定したとき、第3図(A) に示すように、
画素マーカ7X、、、 〜7X。
In this way, when the marker 7X for detecting positional deviation in the X direction is set on the label 3M while the cooler 1 as the master is being imaged, as shown in FIG. 3(A),
Pixel marker 7X,...~7X.

部分がラベル3Mと重畳していることにより、第3図(
B)に示すように画素マーカ7Xi、、を境として論理
レベルが「0」から「1」に切り換わる検出情報INF
、を得ることができる。
As the part overlaps with label 3M, it is shown in Fig. 3 (
As shown in B), the detection information INF whose logic level switches from "0" to "1" at the pixel marker 7Xi, .
, can be obtained.

これに対して第3図(C)に示すように、被観測物体で
なるラベル3Dが画素マーカ7X1.〜7X、上に重畳
している場合には、X方向位置ずれ検出用マーカ7Xか
ら第3図(D)に示すように、画素マーカ7Xi+*を
境として論理レベルが「0」から「1」に切り換わるよ
うな検出情報INF、が得られる。
On the other hand, as shown in FIG. 3(C), the label 3D consisting of the observed object is the pixel marker 7X1. 7X, the logic level changes from "0" to "1" with the pixel marker 7Xi+* as the boundary, as shown in FIG. 3(D) from the X-direction positional deviation detection marker 7X. Detection information INF that switches to is obtained.

か(してマスタのラベル3Mから得られた検出情報IN
F、1及び被観測物体のラベル3Dから得られた検出情
報INFI、に基づいて例えば排他的論理和の演算を実
行することにより、相関情aCORを求めれば、中央部
分の画素マーカ7Xl+I及び7x=、、において不一
致区間DISが生ずると共に、その両側に一致区間AC
CI及びACC2が生ずる。
(detection information IN obtained from the master label 3M)
If the correlation information aCOR is obtained by, for example, performing an exclusive OR operation based on F, 1 and the detection information INFI obtained from the label 3D of the observed object, then the pixel markers 7Xl+I and 7x= in the central part are obtained. , , a mismatch section DIS occurs, and a match section AC appears on both sides of it.
CI and ACC2 result.

かくして相関情報CORから、被観測物体のラベル3D
が、マスタのラベル3Mから不一致区間DISの分だけ
X方向に位置ずれしていることを判知し得る。
Thus, from the correlation information COR, the label 3D of the observed object
It can be determined that the label is shifted in the X direction from the master label 3M by the mismatch area DIS.

従って被観測物体としてのラベル3Dについて監視領域
6から検出データを得る際には、当該監視領域6の位置
をX方向に不一致区間DIsの画素数だけ全体として移
動させれば、実際上マスタとしてのラベル3M上に設定
した監視領域6と同一の位置から検出データを得ること
ができることになる。
Therefore, when obtaining detection data from the monitoring area 6 for the label 3D as an observed object, if the position of the monitoring area 6 is moved as a whole in the Detection data can be obtained from the same position as the monitoring area 6 set on the label 3M.

Y方向位置ずれ検出用マーカ7Yについても、X方向位
置ずれ検出用マーカ7Xについて上述した(第3図)と
同様の相関情報を得ることができ、かくしてY方向につ
いても被観測物体としてのラベル3Dが、マスタとして
のラベル3MからY方向に位置ずれしているとき、これ
を補正することができる。
Regarding the marker 7Y for detecting a positional deviation in the Y direction, it is possible to obtain the same correlation information as that described above (Fig. 3) for the marker 7X for detecting a positional deviation in the X direction. is misaligned in the Y direction from the label 3M serving as the master, this can be corrected.

かかる相関情報CORを一般式として表せば次式 となる。(1)式においてf  (i)はマスタとして
のラベル3Mの撮像画面5についてi番目の画素マーカ
7X、から得ることができた輝度レベルを表し、またg
 (i)は被観測物体としてのラベル3Dから得た撮像
画面5についてi番目の画素マーカ7X、から得ること
ができた輝度レベルを表す。またΔXは不一致区間DI
S (第3図(E))の画素数を表し、かくして(1)
式は、X方向位置ずれ検出用マーカ7Xのi番目の画素
の輝度レベルf  (i)について、被観測物体として
のラベル3Dの(i+ΔX)番目の画素マーカから得ら
れる輝度レベルg(i+ΔX)が最も大きい相関をもっ
ていることを表している。
If such correlation information COR is expressed as a general formula, it becomes the following formula. In equation (1), f (i) represents the brightness level that could be obtained from the i-th pixel marker 7X on the imaging screen 5 of the label 3M as the master, and g
(i) represents the brightness level that could be obtained from the i-th pixel marker 7X on the imaging screen 5 obtained from the label 3D as the observed object. Also, ΔX is the mismatch area DI
represents the number of pixels in S (Fig. 3(E)), thus (1)
The formula is, for the brightness level f (i) of the i-th pixel of the X-direction positional deviation detection marker 7X, the brightness level g (i + ΔX) obtained from the (i + ΔX)-th pixel marker of the label 3D as the observed object is This indicates that there is the largest correlation.

このときX方向位置ずれ検出用マーカ7Xの全ての画素
マーカIX+〜7XI、についてΔXだけ位置ずれした
画素マーカから相関が最も大きい輝度データを得ること
ができることを表している。
At this time, it is shown that luminance data with the highest correlation can be obtained from the pixel marker that is shifted by ΔX for all the pixel markers IX+ to 7XI of the X-direction positional shift detection marker 7X.

従って(1)式が最小になるような位置ずれ量ΔXを求
めれば、これを被観測物体のマスタに対する位置ずれ量
ΔXとして判知し得ることになる。
Therefore, if the amount of positional deviation ΔX that minimizes equation (1) is found, this can be determined as the amount of positional deviation ΔX of the observed object with respect to the master.

(2)具体的構成 物体検査装置1)は、第4図に示す構成を有する。(2) Specific configuration The object inspection device 1) has the configuration shown in FIG.

すなわちコンベア12によって順次運ばれるクーラ1の
ラベル3はテレビジョンカメラ13によって撮像され、
そのビデオ信号VDがビデオデータ入力部14及びタイ
ミング制御部15に入力されると共に、スーパインポー
ズ回路16を介してモニタ部17に供給される。
That is, the labels 3 of the cooler 1 that are sequentially conveyed by the conveyor 12 are imaged by the television camera 13,
The video signal VD is input to the video data input section 14 and the timing control section 15, and is also supplied to the monitor section 17 via the superimpose circuit 16.

コンベア12を駆動制御するコンベアコントロ−ラ21
は、クーラ1がテレビジョンカメラ13の撮像位置に位
置決めされるごとに、検査開始信号SIGIMをタイミ
ング制御部15に与えるようになされている。
Conveyor controller 21 that drives and controls the conveyor 12
is adapted to give an inspection start signal SIGIM to the timing control section 15 every time the cooler 1 is positioned at the imaging position of the television camera 13.

タイミング制御部15は、ビデオ信号VDのうち、水平
及び垂直同期信号に同期するクロック信号を発生し、当
該クロック信号をカウントしてビデオ信号VDの各ライ
ンの輝度信号について、所定の間隔のサンプリングパル
スSMP 1をビデオデータ入力部14のアナログ/デ
ィジタル変換回路22に与え、かくしてアナログ/ディ
ジタル変換回路22においてビデオ信号VDを1画素ず
つ画素データDPに変換して切換回路23を介して画像
メモリ24に供給する。
The timing control unit 15 generates a clock signal synchronized with the horizontal and vertical synchronization signals of the video signal VD, counts the clock signal, and generates sampling pulses at predetermined intervals for the luminance signal of each line of the video signal VD. SMP 1 is applied to the analog/digital conversion circuit 22 of the video data input section 14, and the video signal VD is converted into pixel data DP pixel by pixel in the analog/digital conversion circuit 22, and the data is stored in the image memory 24 via the switching circuit 23. supply

タイミング制御部15は、サンプリングパルスSMP 
1に基づいて書込アドレス信号ADWを画像メモリ24
に与える。
The timing control section 15 controls the sampling pulse SMP.
1, the write address signal ADW is sent to the image memory 24 based on
give to

切換回路23はマスタ側切換出力端M及び検出側切換出
力端りを有し、画素データDPをマスタ側切換出力端M
を介して画像メモリ24のマスタ画像メモリ部24Mに
格納し、又は画素データDPを書込アドレス信号ADW
に応じて検出画像メモリ部24Dに格納する。
The switching circuit 23 has a master side switching output terminal M and a detection side switching output terminal, and outputs the pixel data DP to the master side switching output terminal M.
The pixel data DP is stored in the master image memory section 24M of the image memory 24 via the write address signal ADW.
The detected image is stored in the detected image memory section 24D according to the detected image.

この実施例の場合CPU25は、マスタとしてのクーラ
1をテレビジョンカメラ13によって撮像している状態
において、バス26を介して操作スイッチ部27からマ
スタ画像データ取込指令がオペレータによって入力され
たとき、CPU25がバス26を介してタイミング制御
部15に対して切換指令信号を与えることにより、タイ
ミング制御部15が切換信号SWを切換回路23に送出
することによって、アナログ/ディジタル変換回路22
の出力端に得られる画素データDPをマスタ側切換出力
端Mを介してマスタ画像メモ9部24M側に取り込ませ
る。
In this embodiment, when the operator inputs a master image data import command from the operation switch unit 27 via the bus 26 while the television camera 13 is capturing an image of the cooler 1 as the master, the CPU 25 When the CPU 25 gives a switching command signal to the timing control section 15 via the bus 26, the timing control section 15 sends out a switching signal SW to the switching circuit 23, so that the analog/digital conversion circuit 22
The pixel data DP obtained at the output terminal of is taken into the master image memo 9 section 24M side via the master side switching output terminal M.

これに対して操作スイッチ部27から検査モードの指令
信号が入力されたときCPU25はタイミング制御部1
5を介して切換回路23を検出側切換出力端り側に切り
換えさせると共に、コンベアコントローラ21によって
被観測対象としてのクーラ1がテレビジョンカメラ13
の撮像位置に位置決めされるごとに発生される検査開始
信号5IGINによってタイミング制御部15を制御す
ることにより、画素データDPを検出画像メモリ部24
D側に取り込ませる。
On the other hand, when a command signal for the inspection mode is input from the operation switch section 27, the CPU 25 controls the timing control section 1.
5, the switching circuit 23 is switched to the detection side switching output end side, and the cooler 1 as an object to be observed is switched to the television camera 13 by the conveyor controller 21.
The image memory unit 24 detects the pixel data DP by controlling the timing control unit 15 using the inspection start signal 5IGIN generated every time the camera is positioned at the imaging position.
Take it to the D side.

CPU25は、ビデオデータ入力部14、タイミング制
御部15、モニタ部17を、操作スイッチ部27の操作
人力に応動して、ROM2Bのプログラムメモリに格納
されているプログラムに従って、必要に応じてRAM2
9のレジスタを利用しながら、物体検査装置1)を全体
として制御することにより、被観測対象としてのクーラ
エのラベル3の判定処理を実行し、1つのクーラ1につ
いての判定が終了したとき、CPU25はバス26、制
御信号出力部30を介してコンベアコントローラ21に
対して検査終了信号5IGoutを出力させることによ
り、新たな被観測対象としてのクーラ1をテレビジョン
カメラ13の撮像位置に運ばせるようになされている。
The CPU 25 controls the video data input section 14, the timing control section 15, and the monitor section 17 in accordance with the program stored in the program memory of the ROM 2B in response to the manual operation of the operation switch section 27, as necessary.
By controlling the object inspection device 1) as a whole using registers 9, the CPU 25 By outputting the inspection end signal 5IGout to the conveyor controller 21 via the bus 26 and the control signal output unit 30, the cooler 1 as a new object to be observed is brought to the imaging position of the television camera 13. being done.

RAM29は第5図に示すように、カーソル位置レジス
タ29A1監視領域プリセツトレジスタ29B1検出デ
ータレジスタ29C1評定データレジスタ29D1位置
ずれ検出用マーカレジスタ29E、位置ずれデータレジ
スタ29Fを有する。
As shown in FIG. 5, the RAM 29 has a cursor position register 29A, a monitoring area preset register 29B, a detection data register 29C, an evaluation data register 29D, a marker register for detecting positional deviation 29E, and a positional deviation data register 29F.

カーソル位置レジスタ29Aは、ビデオ信号VDに基づ
いてモニタ部17上に表示される撮像画面5について、
監視領域6を設定したり、監視領域6の位置、大きさ、
形状を選定したり、X方向及びY方向位置ずれ検出用マ
ーカ7X及び7Yを設定したりする際に用いられるカー
ソルの位置を、時々刻々記憶して行く。
The cursor position register 29A controls the image capture screen 5 displayed on the monitor unit 17 based on the video signal VD.
You can set the monitoring area 6, the position, size,
The position of the cursor used when selecting the shape and setting the X-direction and Y-direction positional deviation detection markers 7X and 7Y is memorized moment by moment.

監視領域プリセットレジスタ29Bは、1枚のラベル3
上の文字パターンに対して設定された監視領域6の位置
をオペレータが操作スイッチ部27を介して最大限16
点まで入力したとき、これを格納する。
The monitoring area preset register 29B stores one label 3.
The operator can change the position of the monitoring area 6 set for the upper character pattern to a maximum of 16 points via the operation switch section 27.
When you input up to a point, store this.

検出データレジスタ29Cは、被観測対象としてのクー
ラ1がテレビジョンカメラ13の撮像位置に位置決めさ
れたとき、監視領域プリセットレジスタ29Bにプリセ
ットされた監視領域6についての輝度データをCPU2
5が取り込んだとき、この検出データを格納する。
When the cooler 1 as an object to be observed is positioned at the imaging position of the television camera 13, the detection data register 29C transfers the brightness data about the monitoring area 6 preset to the monitoring area preset register 29B to the CPU 2.
5, this detected data is stored.

評定データレジスタ29Dは、マスタとしてのクーラ1
がテレビジョンカメラ13の撮像位置に位置決めされた
とき、監視領域プリセットレジスタ29Bに格納されて
いる監視領域6について、その輝度データをマスタ画像
メモリ部24Mから格納する。
The rating data register 29D is the master cooler 1.
is positioned at the imaging position of the television camera 13, the brightness data of the monitoring area 6 stored in the monitoring area preset register 29B is stored from the master image memory unit 24M.

位置ずれ検出用マーカレジスタ29Eは、X方向及びY
方向位置ずれ検出用マーカ7X及び7Yの画像位置を、
オペレータが操作スイッチ部27を用いて入力したとき
、これを格納する。
The positional deviation detection marker register 29E
The image positions of the directional positional deviation detection markers 7X and 7Y are
When the operator makes an input using the operation switch unit 27, this is stored.

位置ずれデータレジスタ29Fは、マスタとしてのクー
ラ1又は被観測対象としてのクーラ1がテレビジョンカ
メラ13の撮像位置に位置決めされたとき、位置ずれ検
出用マーカレジスタ29Eに格納されている位置ずれ検
出用マーカ7X及び7Yについて、その輝度データを検
出画像メモリ部24Dから格納する。
When the cooler 1 as a master or the cooler 1 as an observed object is positioned at the imaging position of the television camera 13, the positional deviation data register 29F stores the positional deviation detection data stored in the positional deviation detection marker register 29E. The luminance data of the markers 7X and 7Y is stored from the detected image memory section 24D.

かくしてRAM29に格納されているデータは、オペレ
ータが操作スイッチ部27によってCPU25に対して
データの処理モードを指定したとき、必要に応じてCP
U25によって読み出されて各処理ステップにおいて必
要なデータを供給する。
Thus, the data stored in the RAM 29 is transferred to the CPU 25 as necessary when the operator specifies the data processing mode for the CPU 25 using the operation switch section 27.
It is read out by U25 and supplies the data necessary for each processing step.

これと共に、RAM29のデータは、必要に応じてバス
26を介してパターン発生器31に供給されてパターン
データDNをスーパインポーズ回路16を介してモニタ
部17に与えることにより、現在設定されているカーソ
ル、監視領域6、X方向及びY方向位置ずれ検出用マー
カ7X及び7Yを表すパターンをモニタ部17の表示画
面上にビデオ信号VDに基づいて表示されている画像上
にスーパインポーズして表示させる。かくしてオペレー
タはモニタ部17の表示画面上に表示されたパターンを
見て、操作スイッチ部27を介して適切な指令信号をC
PU25に入力し得るようになされている。
At the same time, the data in the RAM 29 is supplied to the pattern generator 31 via the bus 26 as needed, and the pattern data DN is provided to the monitor unit 17 via the superimpose circuit 16, so that the currently set data can be set. A pattern representing a cursor, a monitoring area 6, and markers 7X and 7Y for detecting positional deviation in the X and Y directions is displayed in a superimposed manner on the image displayed on the display screen of the monitor unit 17 based on the video signal VD. let Thus, the operator sees the pattern displayed on the display screen of the monitor section 17 and issues an appropriate command signal via the operation switch section 27.
It is designed so that it can be input to the PU25.

以上の構成においてCPU25は第6図に示す処理手順
に従って、被観測物体としてのラベル3Dについての検
査処理を実行する。
In the above configuration, the CPU 25 executes inspection processing for the label 3D as an observed object according to the processing procedure shown in FIG.

すなわちステップSPIにおいて当該処理プログラムを
開始すると、CPU25は次のステップSP2において
操作スイッチ部27からオペレータによってマスタデー
タの取込指令が入力されるのを待ち受ける。
That is, when the processing program is started in step SPI, the CPU 25 waits for a master data import command to be input by the operator from the operation switch section 27 in the next step SP2.

ここで、オペレータはテレビジョンカメラ13の撮像位
置にマスタとしてのクーラ1を設定した後、操作スイッ
チ部27を介してCPU25にマスタデータの取込指令
を入力する。
Here, after setting the cooler 1 as a master at the imaging position of the television camera 13, the operator inputs a master data import command to the CPU 25 via the operation switch section 27.

このときCPU25は、次のステップSP3に移ってバ
ス26を介してタイミング制御部15を制御することに
よってテレビジコンカメラ13から得られるマスタにつ
いてのビデオ信号VDを、アナログ/ディジタル変換回
路22、切換回路23のマスタ側切換出力端Mを介して
マスタ画像メモリ部24Mに1フレ一ム分の画像データ
として取り込む。
At this time, the CPU 25 moves to the next step SP3 and controls the timing control unit 15 via the bus 26 to transfer the video signal VD for the master obtained from the television control camera 13 to the analog/digital conversion circuit 22 and the switching circuit. The image data of one frame is taken into the master image memory section 24M via the master side switching output terminal M of 23.

続いてCPU25はステップSP4に移って、位置ずれ
検出用マーカレジスタ29Eのデータを用いてマスタ画
像メモリ部24Mに取り込まれているマスタ画像データ
のうち、X方向及びY方向位置ずれ検出用マーカ7X及
び7Yの画素データを位置ずれデータレジスタ29Fに
格納する。
Next, the CPU 25 moves to step SP4, and uses the data of the positional deviation detection marker register 29E to select the X-direction and Y-direction positional deviation detection markers 7X and 7Y pixel data is stored in the positional deviation data register 29F.

続いてCPU25はステップSP5に移って監視領域プ
リセットレジスタ29Bのデータを用いてマスタ画像メ
モリ部24Mに取り込まれているマスタ画像データのう
ち、監視領域6の輝度データを評定基準データとして評
定データレジスタ29Dに取り込み、かくしてマスタと
してのラベル3Mについてのデータの取込処理を終了す
る。
Next, the CPU 25 moves to step SP5, and uses the data in the monitoring area preset register 29B to set the brightness data of the monitoring area 6 among the master image data taken into the master image memory section 24M as rating standard data in the rating data register 29D. Thus, the data import process for the label 3M as a master is completed.

続いてCPU25は検査処理プログラムを実行する。す
なわちCPU25は続くステップSP6において検出デ
ータの取込指令が到来するのを待ち受ける。
Subsequently, the CPU 25 executes the inspection processing program. That is, the CPU 25 waits for the arrival of a detection data capture command in the subsequent step SP6.

ここで、オペレータは操作スイッチ部27を介して被観
測対象としてのクーラ1をコンベア12によってテレビ
ジョンカメラ13の撮像位置に順次1つずつ運び込ませ
る。
Here, the operator causes the conveyor 12 to sequentially transport the coolers 1 as objects to be observed one by one to the imaging position of the television camera 13 via the operation switch section 27.

コンベアコントローラ21は、1つの被観測対象として
のクーラ1がテレビジョンカメラ13の撮像位置に位置
決めされたとき、検査開始信号SIGIMをタイミング
制御部15に送出することにより、次のステップSP7
において、被観測対象としてのクーラ1のラベル3D(
すなわち被観測物体)についてのビデオ信号VDを検出
画像メモリ部24Dに取り込ませる。
When the cooler 1 as one object to be observed is positioned at the imaging position of the television camera 13, the conveyor controller 21 sends an inspection start signal SIGIM to the timing control unit 15, and performs the next step SP7.
In , the label 3D of cooler 1 as the observed object (
In other words, the video signal VD regarding the object to be observed) is taken into the detected image memory section 24D.

続いてCPU25はステップSP8に移ってRAM29
の位置ずれ検出マーカレジスタ29Hに格納されている
X方向及びY方向位置ずれ検出用マーカ7X及び7Yの
位置データを用いて、当該X方向及びY方向位置ずれ検
出用マーカ7X及び7Yによって指定されている画素デ
ータを検出画像メモリ部24Dから読み出してRAM2
9の位置ずれデータレジスタ29Fに取り込む。かくし
て位置ずれデータレジスタ29Fには、マスタ及び被観
測対象としてのクーラ1から得たX方向及びY方向位置
ずれ検出用マーカ7X及び7Yの画素データを取り込ん
だ状態が得られる。
Next, the CPU 25 moves to step SP8 and reads the RAM 29.
Using the position data of the X- and Y-direction positional deviation detection markers 7X and 7Y stored in the positional deviation detection marker register 29H of the The pixel data is read out from the detected image memory section 24D and stored in the RAM2.
9 is taken into the positional deviation data register 29F. In this way, a state is obtained in which the pixel data of the X-direction and Y-direction positional deviation detection markers 7X and 7Y obtained from the cooler 1 as the master and the observed object are loaded into the positional deviation data register 29F.

続いてCPU25は、ステップSP9において、位置ず
れデータレジスタ29Fに取り込まれているX方向及び
Y方向位置ずれ検出用マーカ7X及び7Yの各画素に対
応する輝度データを読み出して、(1)式について上述
したようにして、マスタ及び被観測対象について得られ
た位置ずれデータに基づいて、位置ずれΔX及びΔYを
演算する。
Subsequently, in step SP9, the CPU 25 reads out the luminance data corresponding to each pixel of the X-direction and Y-direction positional deviation detection markers 7X and 7Y stored in the positional deviation data register 29F, and calculates the brightness data corresponding to each pixel of the X-direction and Y-direction positional deviation detection markers 7X and 7Y, and calculates the luminance data as described above for equation (1). In this way, the positional deviations ΔX and ΔY are calculated based on the positional deviation data obtained for the master and the observed object.

かくして現在テレビジョンカメラ13によって撮像され
ている被観測対象としてのクーラ1の被観測物体すなわ
ちラベル3Dについて、その位置ずれ量を表す位置ずれ
データを得る処理ステップを終了する。
Thus, the process step of obtaining positional deviation data representing the amount of positional deviation of the observed object of the cooler 1, ie, the label 3D, which is currently being imaged by the television camera 13 is completed.

続いてCPU25はステップ5PIOに移って、監視領
域プリセットレジスタ29Bの監視領域位置データを読
み出して、これを位置ずれデータレジスタ29Fに格納
されている位置ずれデータによって位置ずれ量ΔX及び
ΔYだけ補正してバス26を通じて検出画像メモリ部2
4Dに対するアドレス信号としてタイミング制御部15
に転送する。かくして検出画像メモリ部24Dから読み
出された輝度データは検出データレジスタ29Cに取り
込まれる。
Next, the CPU 25 moves to step 5PIO, reads the monitoring area position data from the monitoring area preset register 29B, and corrects it by the positional deviation amounts ΔX and ΔY using the positional deviation data stored in the positional deviation data register 29F. Detected image memory section 2 through bus 26
Timing control unit 15 as an address signal for 4D
Transfer to. The luminance data thus read out from the detected image memory section 24D is taken into the detected data register 29C.

その後CPU25はステップ5PIIに移って当該輝度
データを評定データレジスタ29Dに格納されているマ
スタの輝度情報と比較することによって製品の良否の判
定処理をする。
Thereafter, the CPU 25 moves to step 5PII and compares the luminance data with the master luminance information stored in the evaluation data register 29D to determine the quality of the product.

CPU25は続くステップ5P12において判定結果の
良否の判断をし、不良の場合には、オペレータがステッ
プ5P13において現在テレビジョンカメラ13によっ
て撮像されているクーラ1のラベル3についてその不良
を改善する不良処理をするのを待って上述のステップS
P6に戻る。
The CPU 25 determines whether the judgment result is good or bad in the following step 5P12, and if it is defective, the operator performs defect processing to improve the defect in the label 3 of the cooler 1 currently being imaged by the television camera 13 in step 5P13. Wait until the above step S
Return to P6.

これに対してステップ5P12においてCPU25が不
良ではないと判断したとき、CPU25は直ちに上述の
ステップSP6に戻る。
On the other hand, when it is determined in step 5P12 that the CPU 25 is not defective, the CPU 25 immediately returns to step SP6 described above.

かくしてCPU25は次の被観測対象としてのクーラ1
がテレビジョンカメラ13の撮像位置に位置決めされる
のを待ち受ける状態になり、新たな被観測対象としての
クーラ1がテレビジョンカメラ13の撮像位置に設定さ
れて新たに検査開始信号5IGINがタイミング制御部
15に供給されたとき、当該新たな被観測物体について
位置ずれ検出用マーカ7X及び7Yのデータの読込み、
位置ずれデータの作成、監視領域の補正、補正後の監視
領域の輝度データの取込み、良否の判定処理を繰り返す
In this way, the CPU 25 selects the cooler 1 as the next object to be observed.
The cooler 1 as a new object to be observed is set to the imaging position of the television camera 13, and a new inspection start signal 5IGIN is sent to the timing control unit. 15, reading the data of positional deviation detection markers 7X and 7Y for the new observed object;
The process of creating positional deviation data, correcting the monitoring area, capturing the brightness data of the monitoring area after correction, and determining the quality is repeated.

以上の構成によれば、撮像画面上、マスタとしてのクー
ラエのラベル3Mの位置に対して、被観測対象としての
クーラ1のラベル3Dの位置がX方向又はY方向にずれ
ているとき、これを位置ずれ検出用マーカ7X及び7Y
から得られる画素データに基づいて検出するようにした
ことにより、被観測物体としてのラベル3Dのラベル3
Mに対する位置ずれ量を容易に検出し得る。
According to the above configuration, when the position of the label 3D of the cooler 1 as the observed object is shifted in the X direction or the Y direction with respect to the position of the label 3M of the cooler 1 as the master on the imaging screen, this Positional deviation detection markers 7X and 7Y
Label 3 of Label 3D as an observed object is detected based on pixel data obtained from
The amount of positional deviation with respect to M can be easily detected.

かくして当該検出結果に基づいて監視領域6の位置を補
正するようにしたことにより、高い精度でラベル3の異
常の有無を判定することができる。
By thus correcting the position of the monitoring area 6 based on the detection result, it is possible to determine with high accuracy whether or not there is an abnormality in the label 3.

〔2〕第2実施例 第7図は本発明の他の実施例を示すもので、第4図との
対応部分に同一符号を付して示すように、ビデオデータ
入力部14はサンプルホールド回路41及びアナログ/
ディジタル変換回路42を有し、タイミング制御部15
から送出されるサンプリングパルスSMP2及びSMP
3の制御の下に、監視領域6(第1図)の輝度情報をサ
ンプルホールド回路41にホールドし、これをアナログ
/ディジタル変換回路42においてディジタルデータに
変換した後RAM29の評定データレジスタ29D又は
検出データレジスタ29Gに取り込むようになされてい
る。
[2] Second Embodiment FIG. 7 shows another embodiment of the present invention. As shown by assigning the same reference numerals to corresponding parts as in FIG. 4, the video data input section 14 is a sample and hold circuit. 41 and analog/
It has a digital conversion circuit 42 and a timing control section 15.
Sampling pulses SMP2 and SMP sent out from
3, the luminance information of the monitoring area 6 (FIG. 1) is held in the sample and hold circuit 41, converted into digital data in the analog/digital conversion circuit 42, and then stored in the evaluation data register 29D of the RAM 29 or detected. The data is taken into the data register 29G.

このように第7図の場合には、RAM29の監視領域プ
リセットレジスタ29Bに設定された監視領域6につい
ての輝度情報を、位置ずれ検出用マーカ7X及び7Yの
データとは別個にRAM29に取り込み得るようになさ
れている点において第4図の構成と異なる特徴をもって
いる。
In this way, in the case of FIG. 7, the brightness information about the monitoring area 6 set in the monitoring area preset register 29B of the RAM 29 can be loaded into the RAM 29 separately from the data of the positional deviation detection markers 7X and 7Y. It has a different feature from the configuration shown in FIG. 4 in that it is configured differently.

第7図の構成において、CPU25は第6図との対応部
分に同一符号を付して示す第8図に示す処理手順に従っ
て検査処理を実行する。
In the configuration shown in FIG. 7, the CPU 25 executes the inspection process according to the processing procedure shown in FIG. 8, in which parts corresponding to those in FIG. 6 are denoted by the same reference numerals.

第8図において、第6図の場合と比較して、位置ずれデ
ータを作成する処理ステップSP9から監視領域6の輝
度データを取り込む処理ステップ5P10の間に、監視
領域6の位置を補正する処理ステップ5P14を実行す
るようになされている点に相違がある。
In FIG. 8, compared to the case of FIG. 6, a processing step for correcting the position of the monitoring area 6 is performed between the processing step SP9 for creating positional deviation data and the processing step 5P10 for capturing the luminance data of the monitoring area 6. The difference is that 5P14 is executed.

第8図の処理手順において、CPU25はステップSP
3においてマスタ画像データを取り込んだ後ステップS
P4において位置ずれ検出用マーカデータを取り込む際
には、テレビジョンカメラ13から得られるビデオ信号
VDを、アナログ/ディジタル変換回路22、切換回路
23を介してマスタ画像メモリ部24Mに取り込む。こ
のときマスタ画像メモリ部24Mに取り込まれるデータ
は、X方向及びY方向位置ずれ検出用マーカ7X及び7
Yについて位置ずれを検出するための画素データDPを
取り込めば良く、この実施例の場合当該画素データDP
は1ビツトのディジタル情報でなり、この1ビツトのデ
ィジタル情報が撮像画面5全体についてマスタ画像メモ
リ部24Mに取り込まれる。
In the processing procedure of FIG. 8, the CPU 25 performs step SP
After importing the master image data in step 3, step S
When capturing marker data for positional deviation detection in P4, the video signal VD obtained from the television camera 13 is captured into the master image memory section 24M via the analog/digital conversion circuit 22 and the switching circuit 23. At this time, the data taken into the master image memory section 24M are the markers 7X and 7 for detecting positional deviation in the X direction and Y direction.
It is only necessary to import pixel data DP for detecting positional deviation regarding Y, and in this embodiment, the pixel data DP
is 1-bit digital information, and this 1-bit digital information is taken into the master image memory unit 24M for the entire imaging screen 5.

これに続いてCPU25はステップSP5において評定
データを取り込む際には、ビデオ信号VDをサンプルホ
ールド回路41にサンプルホールドさせる。ここでサン
プルホールド回路41にサンプルホールドされるビデオ
信号VDは、監視領域6に含まれる画素のアナログ輝度
情報でなり、アナログ信号でなる。
Subsequently, the CPU 25 causes the sample and hold circuit 41 to sample and hold the video signal VD when taking in the evaluation data in step SP5. Here, the video signal VD sampled and held by the sample and hold circuit 41 is analog luminance information of pixels included in the monitoring area 6, and is an analog signal.

かくしてCPU25はアナログ/ディジタル変換回路4
2を介してサンプルホールド回路41のサンプルホール
ド出力を所定の複数ビット(例えば5ビツト)のデータ
に変換して評定データレジスタ29Dに格納させる。
Thus, the CPU 25 is the analog/digital conversion circuit 4.
2, the sample-and-hold output of the sample-and-hold circuit 41 is converted into data of a plurality of predetermined bits (for example, 5 bits), and the data is stored in the evaluation data register 29D.

その後CPU25はステップSP7において被観測物体
からの位置ずれ検出データとしてビデオ信号VDをアナ
ログ/ディジタル変換回路22において2ビツトの画素
データDPに変換した後切換回路23を介して検出画像
メモリ部24Dに取り込み、次のステップSP8におい
て当該検出画像メモリ部24DのデータのうちX方向及
びY方向位置ずれ検出用マーカ7X及び7Yの画素デー
タを位置ずれデータレジスタ29Fに取り込んだ後、次
のステップSP9においてマスタについての位置ずれデ
ータに対する相関を演算して位置ずれ量ΔX及びΔYを
求める。
Thereafter, in step SP7, the CPU 25 converts the video signal VD into 2-bit pixel data DP as positional deviation detection data from the observed object in the analog/digital conversion circuit 22, and then imports it into the detected image memory section 24D via the switching circuit 23. , In the next step SP8, the pixel data of the X-direction and Y-direction positional deviation detection markers 7X and 7Y of the data in the detected image memory section 24D is taken into the positional deviation data register 29F, and then in the next step SP9, the pixel data of the markers 7X and 7Y for detecting positional deviation in the X direction and Y direction are taken into the positional deviation data register 29F. The correlation with the positional deviation data is calculated to determine the positional deviation amounts ΔX and ΔY.

ところが、この実施例の場合CPU25は、続くステッ
プ5P14において、この位置ずれ量ΔX及びΔYを用
いて、監視領域プリセットレジスタ29Bから読み出し
た監視領域位置データを位置ずれ量ΔX及びΔYだけ補
正してタイミング制御部15に送出する。かくしてタイ
ミング制御部15は、X方向及びY方向位置ずれ検出用
マーカ7X及び7Yによって検出された位置ずれ量ΔX
及びΔYだけX方向及びY方向に平行移動した位置に監
視領域6を移動させて当該補正後の監視領域6に含まれ
る各画素のアナログ輝度情報をサンプルホールド回路4
1にサンプルホールドさせる。
However, in this embodiment, in the following step 5P14, the CPU 25 uses the positional deviation amounts ΔX and ΔY to correct the monitoring area position data read from the monitoring area preset register 29B by the positional deviation amounts ΔX and ΔY, and adjusts the timing. It is sent to the control unit 15. In this way, the timing control unit 15 adjusts the positional deviation amount ΔX detected by the X-direction and Y-direction positional deviation detection markers 7X and 7Y.
The monitoring area 6 is moved to a position parallelly moved by ΔY in the X and Y directions, and the analog luminance information of each pixel included in the corrected monitoring area 6 is sampled and held by the sample hold circuit 4.
1 to hold the sample.

かくして撮像画面5において、被観測物体としてのラベ
ル3Dの位置が、マスタとしてのラベル3Mの位置と比
較して位置ずれしている場合には、当該位置ずれ世ΔX
及びΔYに相当する分だけ監視領域6の位置を補正した
後ステップ5pioにおいて輝度情報を取り込むことに
なる。
Thus, in the imaging screen 5, if the position of the label 3D as the observed object is shifted compared to the position of the label 3M as the master, the position shift ΔX
After correcting the position of the monitoring area 6 by an amount corresponding to ΔY and ΔY, the brightness information is captured in step 5pio.

その結果マスタとしてのラベル3Mから得た位置情報と
被観測物体としてのラベル3Dから得た位置情報とがほ
ぼ同一になることにより、ステップ5PIIにおける判
定動作の結果に位置ずれによる誤差を生じさせないよう
にし得る。
As a result, the positional information obtained from the label 3M as the master and the positional information obtained from the label 3D as the observed object are almost the same, so that errors due to positional deviation will not occur in the result of the determination operation in step 5PII. It can be done.

以上の構成によれば、第4図及び第6図について上述し
た効果を得ることができると共に、これに加えて第7図
及び第8図の構成によれば、被観測物体の良否を判定す
るために取り込まれるアナログ輝度情報は撮像画面5全
体ではなく監視領域6に限られているので、判定データ
をRAM29に取り込む時間を一段と短縮し得、この分
会体として検査時間を短縮し得る。
According to the above configuration, the effects described above with respect to FIGS. 4 and 6 can be obtained, and in addition, according to the configurations of FIGS. 7 and 8, the quality of the observed object can be determined. Since the analog luminance information taken in for this purpose is limited to the monitoring area 6 rather than the entire imaging screen 5, the time to take in the determination data to the RAM 29 can be further shortened, and the inspection time can be shortened as a result of this division.

〔3〕他の実施例 (1)上述の実施例においては、X方向及びY方向に直
線状に延長するX方向及びY方向位置ずれ検出用マーカ
7X及び7Yを用いて、被観測物体としてのラベル3D
のマスタとしてのラベル3Mからの位置ずれをX方向及
びY方向の2つの方向について検出するようにしたが、
位置ずれ検出用マーカの延長方向及びその本数はこれに
限らず種々変更し得る。
[3] Other embodiments (1) In the above-mentioned embodiment, the markers 7X and 7Y for detecting positional deviation in the X and Y directions, which extend linearly in the X and Y directions, are used to detect the object to be observed. label 3d
The positional deviation from the label 3M as a master is detected in two directions, the X direction and the Y direction.
The extending direction and the number of positional deviation detection markers are not limited to these, and may be changed in various ways.

例えば第9図に示すように、マスタとして円形形状の物
体41Mを撮像した場合、この物体41Mに対する被観
測物体41Dの位置ずれを検出するときには、3本の位
置ずれ検出用マーカ42A、42B、42Cを円周上の
所定位置に物体41M14LDの周縁を横切るように斜
め方向に設定しておく。
For example, as shown in FIG. 9, when a circular object 41M is imaged as a master, when detecting the positional deviation of the observed object 41D with respect to this object 41M, three positional deviation detection markers 42A, 42B, 42C are used. is set at a predetermined position on the circumference in an oblique direction so as to cross the periphery of the object 41M14LD.

このようにすれば、位置ずれ情報として、3方向の検出
情報を得ることができ、かくして被観測物体41Dの位
置ずれ方向及びその量を簡易に検出し得る。
In this way, detection information in three directions can be obtained as positional deviation information, and thus the direction and amount of positional deviation of the observed object 41D can be easily detected.

(2)上述の実施例においては位置ずれ検出用マーカと
して直線状に延長するものを用いた実施例について述べ
たが、これに限らず例えば第10図に示すように、円弧
状に延長する位置ずれ検出用マーカ49を用いても良い
(2) In the above-mentioned embodiment, an example was described in which a marker extending in a straight line is used as a positional deviation detection marker, but the present invention is not limited to this. For example, as shown in FIG. 10, a position extending in an arc shape is used. A shift detection marker 49 may also be used.

第10図において、45は歯車の映像で、各歯先46に
監視領域47が設定され、これにより歯先46の欠損の
有無を検出するようになされている。
In FIG. 10, reference numeral 45 is an image of a gear, and a monitoring area 47 is set at each tooth tip 46, thereby detecting whether or not the tooth tip 46 is damaged.

この場合歯車45の中心孔47の周縁には、その中心0
に向かうように3本の位置ずれ検出用マーカ48A、4
8B、48Cが設けられ、これら3本の位置ずれ検出用
マーカ48A〜48Cから得られる位置ずれ情報によっ
て、歯車45を中心○の位置に位置決めし得るようにな
されている。
In this case, the periphery of the center hole 47 of the gear 45 has a center 0
Three positional deviation detection markers 48A, 4
8B and 48C are provided, and the gear 45 can be positioned at the center o position based on the positional deviation information obtained from these three positional deviation detection markers 48A to 48C.

これに加えて、歯車45が中心Oに位置決めされている
状態において円弧状位置ずれ検出用マーカ49が歯先4
6の列に沿って順次横切るように設定し得るようになさ
れている。
In addition, when the gear 45 is positioned at the center O, the arcuate positional deviation detection marker 49 is located at the tooth tip 4.
It can be set so as to sequentially traverse along the 6 columns.

第10図の構成によれば、円弧状位置ずれ検出用マーカ
49は、順次隣合う歯先46の位置を表す検出データを
画素単位で検出することができ、従って被観測対象とし
ての歯車45の歯先46がマスタとしての歯車の歯の位
置に対して回転方向に位置ずれしていれば、当該回転方
向の位置ずれ量を検出することができる。
According to the configuration shown in FIG. 10, the arcuate positional deviation detection marker 49 can detect detection data representing the positions of successively adjacent tooth tips 46 pixel by pixel. If the tooth tip 46 is misaligned in the rotational direction with respect to the position of the tooth of the master gear, the amount of misalignment in the rotational direction can be detected.

従って円弧状位置ずれ検出用マーカ49の検出出力に基
づいて、位置ずれをなくすように監視領域47を全体と
して回転方向に移動すれば、マスタの歯先に対して欠け
た歯があれば、これを位1ずれの影響を受けることなく
確実に検出することができる。
Therefore, if the monitoring area 47 as a whole is moved in the rotational direction to eliminate the positional deviation based on the detection output of the arcuate positional deviation detection marker 49, if there is a chipped tooth with respect to the master tooth tip, it will be removed. can be reliably detected without being affected by a 1-position shift.

(3)上述の実施例においては、位置ずれ検出用マーカ
として1画素分の幅をもつものを適用したが、位置ずれ
検出用マーカの幅はこれに限らず複数画素に対応する幅
にしても良く、要は全体として線状であれば良い。
(3) In the above embodiment, a marker with a width of one pixel was used as the positional deviation detection marker, but the width of the positional deviation detection marker is not limited to this. In short, it is fine as long as it is linear as a whole.

(4)上述の実施例においては、第3図に示すように、
撮像画面状に表示された被観測物体が明確に白レベル又
は黒レベルをもっており、従って位置ずれ検出用マーカ
に含まれる画素から被観測物体の境界位置に対応して明
確に論理「0」レベルから論理「1」レベルに切り換わ
る検出情報を得ることができる場合に本発明を適用した
実施例について述べたが、撮像画面上の被観測物体の境
界がグレーレベルを含む場合には、境界位置が不明確に
なるおそれがある。
(4) In the above embodiment, as shown in FIG.
The observed object displayed on the imaging screen clearly has a white level or black level, and therefore the pixels included in the positional deviation detection marker clearly fall from the logical "0" level corresponding to the boundary position of the observed object. The embodiment has been described in which the present invention is applied when it is possible to obtain detection information that switches to the logical "1" level. However, when the boundary of the observed object on the imaging screen includes a gray level, the boundary position It may become unclear.

すなわちこの場合には、テレビジョンカメラ13から得
られるビデオ信号VDは第1)図(A)に示すように境
界位置において白レベルL。から黒レベルLlに立ち下
がるまでに距離66分の画素を必要とし、従ってこの距
離Δdの間の画素数だけ位置ずれ量が不明確な検出信号
が生ずる。
That is, in this case, the video signal VD obtained from the television camera 13 has a white level L at the boundary position as shown in FIG. A distance of 66 pixels is required to fall from to the black level Ll, and therefore a detection signal whose positional shift amount is unclear is generated by the number of pixels between this distance Δd.

このような場合には、第4図の構成において、例えばマ
スタ画像メモリ部24M及び検出画像メモリ部24Dに
取り込まれた輝度データのうち、位置ずれ検出用マーカ
に含まれている画素から位置ずれデータレジスタ29F
に取り込んだ検出データに基づいて白レベルLw及び黒
レベルL、のデータを抽出し、その平均値としてスレッ
シュホールドレベルL、yMを算出し、当該スレッシュ
ホールドレベルLTHをビデオ信号VDを表す検出信号
と比較することにより、第1)図(B)に示すようなマ
スタについての検出情報I N F M及び被検出物体
についての検出情報INFDを得るようにすれば良い。
In such a case, in the configuration shown in FIG. 4, for example, among the luminance data taken into the master image memory section 24M and the detected image memory section 24D, the positional deviation data is extracted from the pixels included in the positional deviation detection marker. Register 29F
Data on the white level Lw and the black level L are extracted based on the detection data taken in, and the threshold levels L, yM are calculated as the average values, and the threshold level LTH is used as the detection signal representing the video signal VD. By comparing them, detection information I N F M about the master and detection information INFD about the object to be detected may be obtained as shown in FIG. 1 (B).

かくしてグレーレベルを含むような被検出物体について
も確実に位置ずれを検出することができる。
In this way, it is possible to reliably detect positional deviations even for objects to be detected that include gray levels.

(5)  上述の実施例においては、本発明をデータに
付されたラベルや、歯車の歯先を検査する場合に適用し
たが、本発明はこれに限らず種々の被観測対象に適用し
得る。
(5) In the above-described embodiments, the present invention was applied to the case of inspecting labels attached to data and the tips of gear teeth, but the present invention is not limited to this and can be applied to various objects to be observed. .

(6)上述の実施例においては、マスタの画像に対して
被観測物体の画像が位置ずれしている場合、監視領域の
位置を補正するように構成したが、これに代え、テレビ
ジョンカメラ13又はこのテレビジョンカメラ13によ
って↑造像される被観測物体の相対的な位置を変更する
ことにより、ビデオ信号VDの撮像画面を全体として補
正するようにしても上述の場合と同様の効果を得ること
ができる。
(6) In the above embodiment, the position of the monitoring area is corrected when the image of the observed object is misaligned with respect to the master image. Alternatively, by changing the relative position of the object to be observed which is imaged by this television camera 13, the same effect as in the above case can be obtained even if the imaging screen of the video signal VD is corrected as a whole. Can be done.

〔発明の効果〕〔Effect of the invention〕

上述のように本発明によれば、撮像画面上に線状の位置
ずれ検出用マーカを設定し、当該位置ずれ検出用マーカ
に含まれる画素の輝度情報に基づいて得た検出情報の相
関によって位置ずれを検出するようにしたことにより、
マスタに対する被観測物体の画像上の位置ずれを高い精
度で検出することができる。
As described above, according to the present invention, a linear positional deviation detection marker is set on the imaging screen, and the position is determined based on the correlation of detection information obtained based on the luminance information of pixels included in the positional deviation detection marker. By detecting the deviation,
It is possible to detect the positional shift of the observed object on the image with respect to the master with high accuracy.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は第1の実施例における撮像画面を示す路線図、
第2図は被観測対象となるデータを示す側面図、第3図
は位置ずれ検出用マーカから得られる検出情報の説明に
供する信号図、第4図は第1の実施例における物体検査
装置の具体的構成を示す系統的接続図、第5図はRAM
の構成を示す路線図、第6図は物体検査処理手順を示す
フローチャート、第7図は物体検査装置の第2の実施例
を示す系統的接続図、第8図はその物体検査処理手順を
示すフローチャート、第9図は被観測物体が円形の場合
の位置ずれ検出用マーカの配置を示す路線図、第10図
は被観測物体が歯車の場合の位置ずれ検出用マーカの配
置を示す路線図、第1)図はグレーレベルを含む被観測
物体の場合の信号処理の説明に供する信号波形図である
。 3・・・・・・ラベル、4・・・・・・文字パターン、
5・・・・・・撮像画面、6・・・・・・監視領域、7
X、7Y・・・・・・位置ずれ検出用マーカ、1)・・
・・・・物体検査装置、13・・・・・・テレビジョン
カメラ、14・・・・・・ビデオデータ入力部、15・
・・・・・タイミング制御部、25・・・・・・CPU
FIG. 1 is a route map showing an imaging screen in the first embodiment;
Fig. 2 is a side view showing the data of the observed object, Fig. 3 is a signal diagram for explaining the detection information obtained from the positional deviation detection marker, and Fig. 4 is the object inspection device in the first embodiment. Systematic connection diagram showing specific configuration, Figure 5 is RAM
6 is a flowchart showing the object inspection processing procedure, FIG. 7 is a systematic connection diagram showing the second embodiment of the object inspection device, and FIG. 8 is the object inspection processing procedure. A flowchart, FIG. 9 is a route map showing the arrangement of positional deviation detection markers when the observed object is circular, and FIG. 10 is a route map showing the arrangement of positional deviation detection markers when the observed object is a gear. Figure 1) is a signal waveform diagram for explaining signal processing in the case of an observed object including gray levels. 3...Label, 4...Character pattern,
5... Imaging screen, 6... Monitoring area, 7
X, 7Y... Marker for positional deviation detection, 1)...
...Object inspection device, 13...Television camera, 14...Video data input section, 15.
...timing control section, 25 ... CPU
.

Claims (3)

【特許請求の範囲】[Claims] (1)被観測物体をテレビジョンカメラによつて撮像し
て得られるビデオ信号に基づいて表示される撮像画面の
うち、所定の監視点に設定された監視領域に対応するビ
デオ信号部分をマスタの対応するビデオ信号部分と比較
することによつて、当該監視領域にある上記被観測物体
の状態の正常又は異常を検出するようになされた物体検
査装置において、 上記撮像画面上に線状の位置ずれ検出用マーカを設定し
、上記マスタについての撮像画面のうち上記位置ずれ検
出用マーカに対応するビデオ信号部分から得た第1の検
出情報と、上記被観測物体についての撮像画面のうち上
記位置ずれ検出用マーカに対応するビデオ信号部分から
得た第2の検出情報との相関をとることにより上記マス
タ及び上記被観測物体の位置ずれを検出し、当該位置ず
れ検出結果に基づいて上記被観測物体の撮像画面に対す
る上記監視領域の相対的位置を補正することを特徴とす
る物体検査装置。
(1) Of the image capture screen displayed based on the video signal obtained by imaging the object to be observed with a television camera, the video signal portion corresponding to the monitoring area set at a predetermined monitoring point is transferred to the master. In an object inspection device configured to detect whether the state of the observed object in the monitoring area is normal or abnormal by comparing it with a corresponding video signal portion, a linear positional deviation is detected on the imaging screen. A detection marker is set, and the first detection information obtained from the video signal portion corresponding to the positional deviation detection marker in the imaged screen for the master and the positional deviation in the imaged screen for the observed object are set. The positional deviation of the master and the observed object is detected by correlating with the second detection information obtained from the video signal portion corresponding to the detection marker, and the positional deviation of the observed object is detected based on the positional deviation detection result. An object inspection device characterized in that the relative position of the monitoring area with respect to the imaging screen is corrected.
(2)上記位置ずれ検出結果に基づいて、上記被観測物
体についての撮像画面上の上記監視領域の表示位置を、
上記被観測物体に対して移動させることにより上記位置
ずれを補正させてなる特許請求の範囲第1項に記載の物
体検査装置。
(2) Based on the positional deviation detection results, the display position of the monitoring area on the imaging screen for the observed object is adjusted;
The object inspection device according to claim 1, wherein the object inspection device corrects the positional deviation by moving the object to be observed.
(3)上記位置ずれ検出結果に基づいて、上記被観測物
体についての撮像画面の表示位置を、上記監視領域に対
して移動させることにより上記位置ずれを補正させてな
る特許請求の範囲第1項に記載の物体検査装置。
(3) Based on the positional deviation detection result, the positional deviation is corrected by moving the display position of the imaging screen for the observed object with respect to the monitoring area. The object inspection device described in .
JP62100495A 1987-04-23 1987-04-23 Object inspection device Expired - Lifetime JP2540323B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62100495A JP2540323B2 (en) 1987-04-23 1987-04-23 Object inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62100495A JP2540323B2 (en) 1987-04-23 1987-04-23 Object inspection device

Publications (2)

Publication Number Publication Date
JPS63265104A true JPS63265104A (en) 1988-11-01
JP2540323B2 JP2540323B2 (en) 1996-10-02

Family

ID=14275509

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62100495A Expired - Lifetime JP2540323B2 (en) 1987-04-23 1987-04-23 Object inspection device

Country Status (1)

Country Link
JP (1) JP2540323B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009166323A (en) * 2008-01-15 2009-07-30 Sigumakkusu Kk Injection molding machine monitor
JP2013120108A (en) * 2011-12-07 2013-06-17 Sumitomo Heavy Ind Ltd Thin film formation device and thin film formation method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5574406A (en) * 1978-12-01 1980-06-05 Fujitsu Ltd Inspection of pattern defect
JPS5957105A (en) * 1982-09-27 1984-04-02 Mitsubishi Electric Corp Apparatus for correcting positional deviation of two-dimensional figure

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5574406A (en) * 1978-12-01 1980-06-05 Fujitsu Ltd Inspection of pattern defect
JPS5957105A (en) * 1982-09-27 1984-04-02 Mitsubishi Electric Corp Apparatus for correcting positional deviation of two-dimensional figure

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009166323A (en) * 2008-01-15 2009-07-30 Sigumakkusu Kk Injection molding machine monitor
JP2013120108A (en) * 2011-12-07 2013-06-17 Sumitomo Heavy Ind Ltd Thin film formation device and thin film formation method

Also Published As

Publication number Publication date
JP2540323B2 (en) 1996-10-02

Similar Documents

Publication Publication Date Title
US7512260B2 (en) Substrate inspection method and apparatus
US7406191B2 (en) Inspection data producing method and board inspection apparatus using the method
EP0222072A2 (en) Method of loading surface mounted device and an apparatus therefor
JP2011198179A (en) Calibration device, defect detector, defect repairing device, display panel, display device and calibration method
JPH06222012A (en) Image processor, image processing method and outer view inspection system for semiconductor package
JPS63265104A (en) Object inspection
JP6184746B2 (en) Defect detection apparatus, defect correction apparatus, and defect detection method
TW201522949A (en) Inspection method for image data
JP3281457B2 (en) Board component mounting inspection method and inspection device
JPH06258226A (en) Appearance inspection method for tablet
JP2903305B2 (en) Mounting component inspection method and mounting component inspection device
CN111077155A (en) Display panel inspection system and display panel inspection method
JP2010199451A (en) Installed data creation assisting apparatus and part-mounting apparatus
JPH0979946A (en) Inspection device for display device
JP5947168B2 (en) Appearance inspection apparatus, control method and program for appearance inspection apparatus
KR19980039100A (en) Uninserted inspection device and method using the clinching direction of parts
JPH10197399A (en) Defect locator for thin display
JP3548835B2 (en) Defect inspection apparatus and method
CN114486737B (en) Visual detection equipment capable of high-precision positioning of MiniLED wafer lighting effect
KR100490171B1 (en) Method for inspecting defects on glass panel for use in flat panel display
JP2000121337A (en) Method and device for image correction
KR0156112B1 (en) Method and apparatus of automatically inspecting a pcb using a camera
JPH08193818A (en) Apparatus and method for inspecting pattern
JPS63167980A (en) Method and device for defect inspection of printed wiring pattern or the like
KR0149717B1 (en) Defect modified apparatus of p.c.b

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term