Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6017042B2 - Tilt detection automatic visual inspection device - Google Patents
[go: Go Back, main page]

JPS6017042B2 - Tilt detection automatic visual inspection device - Google Patents

Tilt detection automatic visual inspection device

Info

Publication number
JPS6017042B2
JPS6017042B2 JP4978378A JP4978378A JPS6017042B2 JP S6017042 B2 JPS6017042 B2 JP S6017042B2 JP 4978378 A JP4978378 A JP 4978378A JP 4978378 A JP4978378 A JP 4978378A JP S6017042 B2 JPS6017042 B2 JP S6017042B2
Authority
JP
Japan
Prior art keywords
mask signal
signal
mask
horizontal
inspected
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.)
Expired
Application number
JP4978378A
Other languages
Japanese (ja)
Other versions
JPS54143167A (en
Inventor
信一 中島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP4978378A priority Critical patent/JPS6017042B2/en
Publication of JPS54143167A publication Critical patent/JPS54143167A/en
Publication of JPS6017042B2 publication Critical patent/JPS6017042B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Closed-Circuit Television Systems (AREA)

Description

【発明の詳細な説明】 本発明は、搬送装置により移動中の被検査物体の外観を
テレビジョン撮像して検査する自動外観検査装置に関し
、特に被検査物体のテレビジョン撮像画面に対する額斜
に応じて、外観検査領域を限界することにより外観検査
の検出性能を向上させるようにしたものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an automatic appearance inspection device that inspects the appearance of an object to be inspected while it is being moved by a conveyance device by taking a television image, and in particular, the present invention relates to an automatic appearance inspection device that inspects the appearance of an object to be inspected while it is being moved by a conveyance device. The detection performance of the visual inspection is improved by limiting the visual inspection area.

一般に、PTP(PressThro雌hPack)包
装を施した薬品や食品等の製品の外観をテレビジョン撮
像により自動的に検査するにあたっては、包装されてい
る製品自体に関する検査と、それ以外の部分、特にシー
ルの状態に関する検査とに大別してそれぞれの検査を行
なう必要があるので、上述した一方の検査に不要な外観
部分をマスクして被検査画像から除外することによって
、所要検査項目に該当しない不所望の欠陥画像を視野か
ら取除いて、所要の欠陥検出の性能を向上させるのが好
適である。
In general, when automatically inspecting the appearance of products such as medicines and foods packaged with PTP (PressThro female hPack) using television imaging, it is necessary to inspect the packaged product itself and other parts, especially the seal. Since it is necessary to perform each inspection separately for the inspection of the condition of the Preferably, the defect image is removed from the field of view to improve the performance of the desired defect detection.

しかし、従来のこの種外観検査菱直においては、いずれ
も、外観検査の対象とする例えばPTP包装製品のM仲
シートが懐きをもった状態でベルトコンベア等の搬送装
置により運ばれて、テレビジョン撮像を行なう画像セン
サの視野に入って来た場合については何らの考慮もなさ
れていなかった。例えば第1図に示すような長方形状の
PTPシート1の各製品収納ポケット2に所望製品、例
えば錠剤を挿着してPTP包装を施し、更に切雛用ミシ
ン目(スリツタ)3を形成して各製品を区画するように
し、ここでPTPシート1の寸法が横A=処■、縦B=
37舷であり、ポケット2の直径が9なし、し1仇舷で
ある場合を例にとって、従来の外観検査について説明す
る。
However, in conventional visual inspections of this type, for example, the medium sheet of a PTP packaged product to be visually inspected is transported in a state of being by a conveying device such as a belt conveyor, and then the television No consideration was given to the case where the object comes within the field of view of the image sensor that performs imaging. For example, a desired product, such as a tablet, is inserted into each product storage pocket 2 of a rectangular PTP sheet 1 as shown in FIG. Each product is divided into sections, where the dimensions of the PTP sheet 1 are width A = area ■, length B =
Conventional visual inspection will be explained by taking as an example a case in which the ship has 37 sides and the pocket 2 has a diameter of 9 mm and 1 side.

かかる長方形PTPシート1の輪郭形状が第2図に示す
ような頚き角8をもって画像センサの撮像画面に入った
場合における横x方向および縦y方向の頚き量xおよび
yは、第2図に示すように、例えば長方形をなすPTP
シート1の輪郭線とテレビジョン緑像画面の水平および
垂直走査方向とのなす懐き角のこ対して、シート1の任
意の横方向距離aおよび縦方向距離bの位魔において、
×ニb 均n 8 yニa のn 8 となり、更にa=A,b=Bのとき最大懐き量×および
YはX;B ねn a YニA ねn a となる。
When the contour shape of the rectangular PTP sheet 1 enters the imaging screen of the image sensor with the neck angle 8 shown in FIG. 2, the neck amounts x and y in the horizontal x direction and the vertical y direction are as shown in FIG. As shown in, for example, a rectangular PTP
With respect to the angle formed by the contour line of the sheet 1 and the horizontal and vertical scanning directions of the television green screen, at any lateral distance a and longitudinal distance b of the sheet 1,
× Ni b average n 8 y n 8 becomes n 8 , and when a=A and b=B, the maximum amount of attachment × and Y become X; B ne na Y ni A ne na .

ここで、懐き角のま、通常は微小であり、傾き量×,y
およびX,Yは第3図および第4図に示すように傾き角
8とほぼ比例関係を有する(ここで、A=94物,a=
83肋,B=37肋,b=33.5柳とする。)。逆に
、第5図Aに示すように、製品収納ポケット2の寸法に
余裕をもたせるようにして上述したマスク4を設定した
場合におけるそのポケット2の寸法のマスク余裕量△C
に対する上述した傾き角0の許容度は、第5図Bに示す
ように、同じく比例関係を有している。しかし、例えば
PTPシートーの輪郭線の撮像画面に対する傾きは、第
2図に示したような右下りの一方向のみに発生するもの
ではなく、逆の右上りの傾きをも考慮しなければならず
、したがって、PTP製品収納ポケット2の同一のマス
ク余裕量に対する傾き角8の許容度は、かかる両方向の
傾きを考慮して第5図Bに示した値の1′2とする必要
がある。第1図に示した形状および寸法のPTPシート
2について外観検査を行なう場合には、製品収納ポケッ
ト2の部分のみに検査の対象を局限するための第5図示
のようなマスク4の寸法を、搬送装置の搬送方向および
これと直交する方向のずれを考慮して、例えば縦および
横の寸法とも11側としたときには、輪郭線の傾きの許
容度は高う士0.5度であり、この程度の許容度では、
実際上には、輪郭線の煩きを許容しないのと同然である
。これに対して、輪郭線の懐きの許容度を大きくするた
めに、上述したマスク4の寸法を大きくして多少の鏡き
があっても検査対象領域がマスク4の視野から外れない
ようにすることも考えられるが、例えば±2度の鏡きを
許容しようとするとマスク4の寸法を縦横ともに16肋
と大きくしなければならない。
Here, the angle of inclination is usually small, and the amount of inclination ×, y
and X, Y have a nearly proportional relationship with the inclination angle 8 as shown in FIGS. 3 and 4 (here, A=94 objects, a=
83 ribs, B = 37 ribs, b = 33.5 willow. ). On the other hand, as shown in FIG. 5A, when the above-mentioned mask 4 is set such that there is a margin in the dimension of the product storage pocket 2, the mask margin ΔC of the dimension of the pocket 2 is
The above-mentioned tolerance of the inclination angle 0 relative to the angle of inclination also has a proportional relationship, as shown in FIG. 5B. However, for example, the slope of the contour line of the PTP sheet with respect to the imaging screen does not occur only in one direction, downward to the right as shown in Figure 2, but the opposite slope, upward to the right, must also be considered. Therefore, the tolerance of the inclination angle 8 for the same mask allowance of the PTP product storage pocket 2 needs to be set to 1'2, which is the value shown in FIG. 5B, taking into consideration the inclination in both directions. When performing an appearance inspection on the PTP sheet 2 having the shape and dimensions shown in FIG. 1, the dimensions of the mask 4 as shown in FIG. Considering the deviation in the transport direction of the transport device and the direction perpendicular to this, for example, when both the vertical and horizontal dimensions are set to the 11 side, the tolerance for the slope of the contour line is at most 0.5 degrees, and this With degree of tolerance,
In practice, this is the same as not allowing the nuisance of the contour line. On the other hand, in order to increase the tolerance for contour lines, the dimensions of the mask 4 described above are increased so that the inspection target area does not fall out of the field of view of the mask 4 even if there is some mirroring. However, in order to allow a mirror angle of, for example, ±2 degrees, the dimensions of the mask 4 must be increased to 16 ribs in both the vertical and horizontal directions.

第1図に示した直径1仇岬程度の製品収納ポケット2に
対するマスク4の寸法を16側角程度に大きくしたので
は、PTPシート1の全域をほとんどマスクしてしまう
結果となるので、この種の外観検査にマスクを用いる意
味が失なわれてしまうことになる。さらにかかる外観検
査に用いるマスクを電子的に礎成する場合、特に単安定
マルチパイプレータおよびカゥンタを用いて方形波形の
マスク信号を形成する場合においては、例えばPTPシ
ートが画像センサの視野である撮像画数に対して全く煩
斜してし、ないか、もしくは右下りに額斜しているとき
には、背景分離信号の上端および左端の立上りをそれぞ
れ基準にして、垂直走査方向および水平走査方向の方形
波をマスク信号としてそれぞれ順次に発生させても、所
要のマスク信号の形成に問題は生じないが、例えばPT
Pシートの輪郭に対する画面走査の始端となる左上隅に
対してPTPシートの上側輪郭線が垂直走査方向におい
て遡った状態となる右上りに傾いている場合には、背景
分離信号の立上りを基準にして発生させた方形波によっ
てマスク信号を形成したのでは、所要の検査対象領域と
は無関係な個所をマスクしてしまうことになり、従来の
かかる電子的マスクの形成によっては一方向の傾きに対
してのみ満足な外観検査を行なうことができるにすぎな
かった。
If the dimensions of the mask 4 were increased to about 16 sides for the product storage pocket 2, which has a diameter of about 1 inch as shown in FIG. The purpose of using a mask for visual inspection will be lost. Furthermore, when the mask used for such visual inspection is electronically formed, especially when a monostable multipipelator and a counter are used to form a square waveform mask signal, for example, the PTP sheet is the field of view of the image sensor. If the number of strokes is not oblique at all, or if the forehead is tilted downward to the right, square waves in the vertical scanning direction and horizontal scanning direction are generated based on the rising edges of the top and left edges of the background separation signal, respectively. Even if PT is sequentially generated as a mask signal, there will be no problem in forming the required mask signal, but for example, PT
If the upper contour line of the PTP sheet is tilted upward to the right, which is a backward state in the vertical scanning direction, with respect to the upper left corner, which is the starting point of screen scanning for the contour of the P sheet, the rising edge of the background separation signal is used as the reference point. If a mask signal is formed using a square wave generated by a square wave, an area unrelated to the desired inspection target area will be masked. It was only possible to perform a satisfactory visual inspection.

本発明の目的は、上述した従来の欠点を除去し、例えば
PTP包装を施した製品等の被検査物体の輪郭、例えば
PTPシートの輪郭のテレビジョン濠像画面に対する傾
きの許容度を、その被検査物体の外観における検査対象
領域を外すことなく、充分大きくすることができ、しか
も、テレビジョン撮像画面の水平走査方向に対する傾き
の方向の如何を問わず、有効かつ的確なマスク信号を電
子的に形成して、PTP包装製品等の外観検査「の性能
を向上させ得るようにした傾き検出自動外観検査装置を
提供することにある。
It is an object of the present invention to eliminate the above-mentioned conventional drawbacks, and to improve the tolerance of the inclination of the outline of an object to be inspected, such as a PTP-wrapped product, for example, the outline of a PTP sheet, with respect to a television image screen. It is possible to make the inspection target area sufficiently large without removing the inspection target area in the appearance of the inspection object, and it is also possible to electronically generate effective and accurate mask signals regardless of the direction of inclination with respect to the horizontal scanning direction of the television imaging screen. An object of the present invention is to provide an automatic visual inspection device for detecting inclination, which can improve the performance of visual inspection of PTP packaging products, etc.

すなわち、本発明傾き検出自動外観検査装置は、搬送装
置により移動中の被検査物体の外観を画像センサで検出
して前記被検査物体の外観検査を行う自動外観検査装置
において、被検査物体の輪郭を表わす背景分離信号の画
像センサ走査方向における継続時間を計測する手段と、
画像センサの走査基準信号と背景分離信号との間の時間
長を計測する手段と、背景分離信号により駆動され、被
検査物体が画像センサの視野に対して煩斜をもって入っ
たか杏かおよびその傾斜の方向を検出する煩斜方向検出
手段と、背景分離信号に基づいて垂直方向マスク信号を
発生させる垂直方向マスク信号発生手段と、背景分離信
号に基づいてテレビジョン画像水平走査方向に対する被
検査物体の傾斜の方向にそれぞれ対応した水平方向マス
ク信号を発生させる複数個の水平方向マスク信号発生手
段と、傾斜方向検出手段により検出した被検出物体の水
平走査方向に対する煩斜の方向に応じ、その検出した傾
斜の方向に対応する水平方向マスク信号発生手段から発
生した水平方向マスク信号と垂直方向マスク信号発生手
段から発生した垂直方向マスク信号とを合成して被検査
物体の外観における検査領域を限界するマスク信号を発
生させるマスク信号発生手段とを具備したことを特徴と
するものである。
That is, the tilt detection automatic visual inspection apparatus of the present invention is an automatic visual inspection apparatus that detects the external appearance of an inspected object while it is being moved by a conveyance device using an image sensor, and performs an external appearance inspection of the inspected object. means for measuring the duration time in the image sensor scanning direction of a background separation signal representing the
means for measuring the length of time between the scanning reference signal of the image sensor and the background separation signal; vertical mask signal generating means for generating a vertical mask signal based on the background separation signal; A plurality of horizontal mask signal generating means generate horizontal mask signals respectively corresponding to the direction of inclination, and a plurality of horizontal mask signal generating means generate horizontal direction mask signals respectively corresponding to the direction of inclination, and detecting the direction of the detected object according to the direction of the oblique direction with respect to the horizontal scanning direction of the detected object detected by the inclination direction detecting means. A mask that limits an inspection area in the external appearance of an object to be inspected by combining a horizontal mask signal generated from a horizontal mask signal generating means corresponding to the direction of inclination and a vertical mask signal generated from a vertical mask signal generating means. The present invention is characterized by comprising a mask signal generating means for generating a signal.

以下に図面を参照して実施例につき本発明を詳細に説明
する。
The invention will be explained in detail below by way of example embodiments with reference to the drawings.

本発明傾き検出自動外観検査装置の全体の構成の1例を
第6図に示し、その各部信号波形を第7図AないしLに
示す。
An example of the overall configuration of the automatic visual inspection device for detecting inclination according to the present invention is shown in FIG. 6, and signal waveforms of various parts thereof are shown in FIGS. 7A to 7L.

第6図の本発明検査装置において、例えば被検査物体を
撮像した画像信号を波形整形して形成した方形波形等か
らなり、被検査物体の輪郭を表わすようにした背景分離
信号5(第7図C参照)を直接に垂直方向マスク信号発
生回路6を導くとともに、適切な遅延回路7を介して他
の垂直方向マスク信号発生回路8にも導き、それぞれよ
り背景分離信号5の始端で立上る方形波形の垂直方向マ
スク信号9(第7図D参照)およびそれより適切に遅延
して立上る方形波形の垂直方向マスク信号10(第7図
E参照)を発生させる。
In the inspection apparatus of the present invention shown in FIG. 6, the background separation signal 5 (see FIG. (see C) directly to the vertical mask signal generation circuit 6, and also to other vertical mask signal generation circuits 8 via an appropriate delay circuit 7. A waveform vertical mask signal 9 (see FIG. 7D) and a rectangular waveform vertical mask signal 10 (see FIG. 7E) rising with an appropriate delay are generated.

垂直方向マスク信号9と背景分離信号5とをアンドゲー
ト11に加え、垂直方向マスク信号10と背景分離信号
5とをアンドゲート12に加え、これらアンドゲート1
1および12からの出力信号を水平方向マスク信号発生
回路13に加え、更にアンドゲート11からの出力を水
平方向マスク信号発生回路14および15にそれぞれ供
給する。また、背景分離信号5を額き方向検出回路16
にも導き、後述するようにして被検査物体の輪郭の綾像
画面における水平走査方向に対する鏡斜の方向を検出し
、その検出出力信号を各水平方向マスク信号発生回路1
3,14および15とマスク信号発生回賂17とに供給
する。マスク信号発生回路17には水平方向マスク信号
発生回路13,14および15からの各水平方向マスク
信号18,19および20をも供聯合し、額さ方向検出
回路16における頃斜検出の結果に応じて、煩斜がない
場合には水平方向マスク信号発生回路13からの水平方
向マスク信号18(第7図G参照。なお、鏡きのある場
合には第7図印こ示すように初期の部分で水平方向マス
ク信号が欠落する)、右下りの頃斜の場合には水平方向
マスク信号発生回路14からの水平方向マスク信号19
(第7図F参照)、また、右上りの傾斜の場合には水平
方向マスク信号発生回路15からの水平方向マスク信号
20(第7図1参照)を、マスク信号発生回路17内に
おいて、垂直方向マスク信号と合成して、被検査物体の
輪郭の懐きの方向および煩き量に応じて適切に検査領域
に対応した形状のマスクを形成し得るようにしたマスク
信号21を発生させる。第7図J,KおよびLは、それ
ぞれ右下り、額きなし、および右上りの場合のマスク信
号21を示す。なお、第7図AおよびBは、第6図には
示していない、それぞれ垂直同期信号および水平同期信
号である。なお、上記水平方向および垂直方向のマスク
信号発生回路は、単安定マルチパイプレータの縦続接続
回路に背景分離信号5を加えて所望マスク部分に対応す
る位置の単安定マルチパイプレータ出力を適切に混合す
る構成としたり、画像センサの視野に対応する画面を画
素に分割し、その画素の水平方向の位置を水平走査周波
数に同期し周波数の一層高いクロックパルスにより指定
し、垂直方向の位置を水平走査線の位置で指定するよう
にカウンタで構成したり、あるいはマスク信号波形を予
じめランダムアクセスメモリー(RAM)や読み出し専
用メモリー(ROM)等の記憶素子に記臆させておき、
背景分離信号および画面分割用クロツク信号に基いて所
望のマスク信号を読み出すよう構成することができる。
The vertical mask signal 9 and the background separation signal 5 are added to the AND gate 11, the vertical mask signal 10 and the background separation signal 5 are added to the AND gate 12, and the AND gate 1
The output signals from AND gates 1 and 12 are applied to horizontal mask signal generation circuit 13, and the output from AND gate 11 is further supplied to horizontal mask signal generation circuits 14 and 15, respectively. Further, the background separation signal 5 is transmitted to the forehead direction detection circuit 16.
As will be described later, the direction of mirror inclination with respect to the horizontal scanning direction on the ray image screen of the outline of the object to be inspected is detected, and the detected output signal is sent to each horizontal direction mask signal generation circuit 1.
3, 14 and 15 and a mask signal generation circuit 17. The mask signal generation circuit 17 also combines the horizontal mask signals 18, 19 and 20 from the horizontal mask signal generation circuits 13, 14 and 15, and generates signals according to the results of the skew detection in the forehead direction detection circuit 16. When there is no cross slope, the horizontal direction mask signal 18 from the horizontal direction mask signal generation circuit 13 (see FIG. (the horizontal mask signal is missing), and in the case of a downward slope to the right, the horizontal mask signal 19 from the horizontal mask signal generation circuit 14 is
(see FIG. 7F), and in the case of an upward slope to the right, the horizontal direction mask signal 20 (see FIG. 71) from the horizontal direction mask signal generation circuit 15 is input vertically in the mask signal generation circuit 17. A mask signal 21 is generated by combining with the direction mask signal so as to form a mask having a shape that appropriately corresponds to the inspection area according to the direction of the outline of the object to be inspected and the amount of intrusion. FIG. 7 J, K, and L show the mask signal 21 in the case of downward slope to the right, no frame, and upward slope to the right, respectively. Note that FIGS. 7A and 7B are a vertical synchronization signal and a horizontal synchronization signal, respectively, which are not shown in FIG. The horizontal and vertical mask signal generation circuits add the background separation signal 5 to the cascade circuit of monostable multipipelators to appropriately mix the outputs of the monostable multipipers at positions corresponding to desired mask portions. Alternatively, the screen corresponding to the field of view of the image sensor may be divided into pixels, and the horizontal position of each pixel may be specified by a clock pulse with a higher frequency in synchronization with the horizontal scanning frequency, and the vertical position may be set by horizontal scanning. It may be configured with a counter to specify the position of the line, or the mask signal waveform may be stored in advance in a storage element such as random access memory (RAM) or read-only memory (ROM).
A desired mask signal can be read out based on the background separation signal and the screen division clock signal.

以上のように形成した外観検査用のマスク信号21によ
り被検査物体撮像出力を再生した画像に施されたマスク
の状態の例を第8図A,BおよびCにそれぞれ示す。
Examples of the state of the mask applied to the image obtained by reproducing the image pickup output of the object to be inspected using the mask signal 21 for visual inspection formed as described above are shown in FIGS. 8A, B, and C, respectively.

第8図に斜線領域で示したマスク4は、PTP包装製品
の外観におけるPTPシート1の懐きがそれ程大きくな
い場合について、製品収納ポケット2を5個ずつ2行に
配置してあるときに、それらの収納ポケットを各行毎の
2群に分けて倭きを補正し得る状態を示しており、第8
図Aは懐きのないとき、第8図Bは右下りのとき、また
、第8図Cは右上りのときの状態をそれぞれ示している
。ベルトコンベアなど通常の搬送装置を使用する場合に
は、第8図示の程度に煩きを補正すれば、十分に正確に
マスクを施した状態で製品の外観検査を実用上満足に行
なうことができる。なお、被検査物体の輪郭の額斜が大
きい場合には、検出回路16において、その懐斜の方向
のみならず、懐き量をも検出して、その検出出力信号を
個別に設けた垂直方向および水平方向のマスク信号発生
回路に加えて、額きの状態に応じて必要とするマスクを
形成し得るように、検出した頭き量に適合した水平方向
および垂直方向のマスク信号を合成して、所要のマスク
信号を形成し得ること勿論である。
The mask 4 shown in the shaded area in FIG. 8 is used when five product storage pockets 2 are arranged in two rows, in the case where the PTP sheet 1 is not so large in appearance of the PTP packaging product. This shows a state in which the storage pockets are divided into two groups for each row to correct for the sagging.
Fig. 8A shows the state when there is no movement, Fig. 8B shows the state when the movement is downward to the right, and Fig. 8C shows the state when the movement is upward to the right. When using a normal conveying device such as a belt conveyor, if the nuisance is corrected to the extent shown in Figure 8, it is possible to perform a practically satisfactory appearance inspection of the product with the mask applied sufficiently accurately. . If the outline of the object to be inspected has a large slant, the detection circuit 16 detects not only the direction of the slant, but also the amount of slant, and outputs the detection output signal to the vertical and vertical directions separately provided. In addition to the horizontal mask signal generation circuit, a mask signal in the horizontal direction and vertical direction that is suitable for the detected head size is synthesized so as to form a necessary mask depending on the state of the forehead. Of course, any desired mask signal can be formed.

つぎに、上述した煩き方向検出回路16の具体的構成の
1例を第9図に示し、その動作原理を表わす信号波形を
第10図AないしE、第11図AないしEおよび第12
図AないしEに示す。
Next, an example of a specific configuration of the above-mentioned scratch direction detection circuit 16 is shown in FIG. 9, and signal waveforms representing its operating principle are shown in FIGS.
Shown in Figures A to E.

本発明装置における傾き方向検出の原理は、上述したよ
うに、例えばPTPシートのような長方形の輪郭を表わ
す背景分離信号の水平走査方向における始端、すなわち
方形波形との立上りとその走査線上の水平同期信号との
間の距離を表わす時間間隔を計測するとともに、その時
間間隔を計測したのと同一水平走査線が、長方形の輪郭
を横切る間の時間長を表わす背景分離信号波形自体の継
続時間を計測することにより、被検査物体の輪郭線の傾
きの方向が水平であるか、右下りであるか、あるいは右
上りであるかを、それらの計測結果の組合わせによって
判定することにある。すなわち、第9図示の回路構成に
おいては、被検査物体を撮像したテレビジョン画像の画
素に対応した繰返し周期のクロツクパルス列をクロツク
パルス発生回路31により発生させる。
As described above, the principle of detecting the tilt direction in the device of the present invention is based on the starting edge in the horizontal scanning direction of a background separation signal representing the outline of a rectangle such as a PTP sheet, that is, the rise of a square waveform, and the horizontal synchronization on the scanning line. Measures the time interval that represents the distance between the signal and the background separation signal waveform itself, which represents the time period during which the same horizontal scanning line that measured the time interval crosses the outline of the rectangle. By doing so, it is determined whether the direction of inclination of the contour line of the object to be inspected is horizontal, downward to the right, or upward to the right, based on a combination of these measurement results. That is, in the circuit configuration shown in FIG. 9, the clock pulse generation circuit 31 generates a clock pulse train with a repetition period corresponding to the pixels of the television image taken of the object to be inspected.

このク。ツクパルスを、上述した背景分離信号5の継続
時間を計測するカウンタ32、および水平同期信号33
と背景分離信号5との時間間隔を計測するカウンタ34
にそれぞれ供給し、その継続時間に相当するクロツクパ
ルス数を計数した結果の計数量Yのカウンタ出力35お
よび上記時間間隔に相当するクロックパルス数を計数し
た結果の計数量×のカウンタ出力36をそれぞれカウン
タ32および34から取り出す。これらカウンタ32お
よび34の動作を懐きがない場合、額きが右下りの場合
および煩きが右上りの場合について、それぞれ第10図
AないしE、第11図AないしEおよび第12図Aない
しEに示す。これら各図において、Aは水平走査線日に
対するシートの懐き状態を示し、各図Bは水平同期信号
33、Cは懐き状態に応じてパルス幅が変化する背景分
離信号5、Dはカウンタ出力36(計数量X)、および
Eはカウンタ出力35(計数量Y)をそれぞれ示し、背
景分離信号5の発生位置およびパルス幅は傾き状態によ
り変化する。カウンタ32からの出力35および設定値
Cをデジタル比較器37に供給して双方の値を比較し、
YSCのときに出力を生じるY≦C出力およびC<Yの
ときに出力を生じるC<Y出力を取り出す。カウンタ3
4からの出力36と設定値Aとデジタル比較器38に供
給し、この比較器38から×ミAのときに出力を生じる
XミA出力を取り出す。カウンタ34からの出力36と
設定値Bをデジタル比較器39に供給して同様に×≦B
出力およびB<×出力を取り出す。比較器37のY≦C
出力およびC<Y出力、比較器38のX≦A出力、およ
び比較器39の×ミB出力およびB<×出力を懐き判定
回路40‘こ供給する。この傾き判定回路40からは、
×≦B出力およびC<Y出力の双方が生じるときに「懐
きなし一出力41を取り出し、X≦A出力およびYSC
出力の双方が生じるときに「懐き右下り」出力42を取
り出し、B<×出力およびY≦C出力の双方が生じると
きに「懐き右上り一世力43を取り出す。ここで煩き判
定回路401ま、×≦B出力とC<Y出力を供給される
アンドゲート、XSA出力とY≦C出力を供V給される
アンドゲートおよびB<×とY≦C出力を供給されるア
ンドゲートにより構成でき、それぞれのアンドゲートよ
り上述した出力41,42および43が取り出される。
なお、上述した継続時間および時間間隔の計測を行なう
水平走査線日としては、被検査物体を画像センサが撮嫁
して形成される背景分離信号の表わす長方形の最上端を
横切る水平走査線を用いると、画像センサの分解能や例
えば被検査物体としてのPTPシートの切断線が完全な
直線ではないことなどに起因して誤差が生じるので、上
述した水平走査線日としては、輪郭図形の上端縁を避け
た部分を横切る水平走査線を選定するのが好適である。
This ku. A counter 32 that measures the duration of the background separation signal 5 described above, and a horizontal synchronization signal 33.
a counter 34 that measures the time interval between the signal 5 and the background separation signal 5;
A counter output 35 of the counted quantity Y, which is the result of counting the number of clock pulses corresponding to the duration thereof, and a counter output 36 of the counted quantity x, which is the result of counting the number of clock pulses corresponding to the above-mentioned time interval, are respectively output from the counter. 32 and 34. 10 A to E, 11 A to E, and 12 A to 12, respectively, when the counters 32 and 34 do not operate properly, when the forehead is downward to the right, and when the scale is upward to the right. Shown in E. In each of these figures, A shows the state of the sheet with respect to the horizontal scanning line, B shows the horizontal synchronizing signal 33, C shows the background separation signal 5 whose pulse width changes depending on the state of the spread, and D shows the counter output 36. (Count amount X) and E indicate the counter output 35 (Count amount Y), respectively, and the generation position and pulse width of the background separation signal 5 change depending on the slope state. Supplying the output 35 from the counter 32 and the set value C to a digital comparator 37 and comparing both values,
Take out the Y≦C output that produces an output when YSC and the C<Y output that produces an output when C<Y. counter 3
The output 36 from 4 and the set value A are supplied to a digital comparator 38, from which the XmiA output which produces an output when ×miA is taken out. The output 36 from the counter 34 and the set value B are supplied to the digital comparator 39, and similarly x≦B
Take out the output and B<x output. Y≦C of comparator 37
The output and C<Y output, the X≦A output of the comparator 38, and the ×miB output and B<× output of the comparator 39 are supplied to the familiarity determination circuit 40'. From this slope determination circuit 40,
When both of
When both of the outputs occur, the "falling to the right" output 42 is taken out, and when both the B < , an AND gate supplied with ×≦B output and C<Y output, an AND gate supplied with V and XSA output and Y≦C output, and an AND gate supplied with B<× and Y≦C output. , the above-mentioned outputs 41, 42 and 43 are taken out from the respective AND gates.
In addition, as the horizontal scanning line for measuring the above-mentioned duration and time interval, the horizontal scanning line that crosses the top end of the rectangle represented by the background separation signal formed when the image sensor captures the object to be inspected is used. Errors occur due to the resolution of the image sensor and the fact that, for example, the cutting line of the PTP sheet as the object to be inspected is not a perfect straight line. It is preferred to select horizontal scan lines that cross the avoided portion.

また、被検査物体の輪郭を表わす背景分離信号と組合わ
せて検査対象領域を設定するためのマスク信号波形をあ
らかじめ設定してROMやRAM等の記憶素子に記憶さ
せておき、そのマスク信号を議出して使用する場合には
、上述のようにして検出した被検査物体の輪郭の傾きの
方向および量によって、マスク信号の講出しアドレスを
制御して波形の修正を行なうことができる。以上の説明
から明らかなように、本発明によれば、PTP包装製品
等の被検査物体の外観検査を行なう自動外観検査装置に
おいて、被検査物体外観の検査対象領域以外からの不要
信号を排除するために使用するマスク信号の発生回路に
懐き補正回路を付加することにより、被検査物体の懐き
に対して検査対象領域を縮少させることなく、しかも傾
き方向に関係なく確実に不要部分をマスクすることがで
きるので、被検査物体外観の欠陥検出の性能を向上する
ことができる。
In addition, a mask signal waveform for setting the inspection target area in combination with a background separation signal representing the outline of the object to be inspected is set in advance and stored in a storage element such as ROM or RAM, and the mask signal is used for discussion. When using the mask signal, the waveform can be corrected by controlling the address of the mask signal depending on the direction and amount of the slope of the contour of the object to be inspected detected as described above. As is clear from the above description, according to the present invention, unnecessary signals from areas other than the inspection target area of the appearance of the object to be inspected are eliminated in an automatic appearance inspection apparatus that performs an appearance inspection of an object to be inspected such as a PTP packaged product. By adding a shift correction circuit to the mask signal generation circuit used for the inspection, it is possible to reliably mask unnecessary parts regardless of the tilt direction without reducing the inspection target area due to the shift of the inspected object. Therefore, the performance of detecting defects in the appearance of the object to be inspected can be improved.

また、本発明では傾き検出およびその検出に基づくマス
ク信号波形の修正等をすべて純電子的に行なうので、検
査装置として複雑な機構を設ける必要もなく、更に加え
て欠陥検出の応答を高速化することもできる。さらに、
本発明検査装置は、被検査物体がセンサ視野に対して傾
いて搬送されているか否かおよびその方向を検出し、必
要によっては煩き童をも検出することができるので、P
TP包装製品の外観検査のみならず、一般の倭き検出装
置としても応用可能であり、また、煩き検出信号により
懐きを修正するのにも応用することができる。
In addition, in the present invention, since tilt detection and correction of the mask signal waveform based on the detection are all performed purely electronically, there is no need to provide a complicated mechanism for the inspection device, and in addition, the response speed for defect detection can be sped up. You can also do that. moreover,
The inspection device of the present invention can detect whether or not the object to be inspected is being conveyed at an angle with respect to the sensor field of view and its direction, and can also detect troublesome children if necessary.
It can be applied not only to the appearance inspection of TP packaging products, but also as a general sagging detection device, and can also be applied to correcting sagging using a sagging detection signal.

更にまた、一般的なパターン認識装置において、懐きを
検出し、検査対象外の不所望領域を除外して検査精度を
向上させることができる。
Furthermore, in a general pattern recognition device, it is possible to improve inspection accuracy by detecting deviations and excluding undesired areas that are not subject to inspection.

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

第1図はPTP包装の形状を示す線図、第2図はPTP
シートの額さおよび傾き量の定義を示す線図、第3図お
よび第4図はPTPシートの傾き角と傾き量との関係の
例を示すグラフ、第5図Aは外観検査用マスクの余裕量
の定義を示す線図、第5図Bはマスク余裕量と頚き許容
度との関係の例を示すグラフ、第6図は本発明検査装置
の構成の1例を示すブロック線図、第7図AないしLは
同じくその各部の信号波形を示す信号波形図、第8図A
,BおよびCはPTPシートの傾斜状態をそれぞれ示す
線図、第9図は本発明装置に用いる額き方向検出回路の
構成の1例を示すブロック線図、第10図ないしE、第
11図AないしEおよび第12図AないしEは同じくそ
の傾き状態の説明図と額き検出の動作原理をそれぞれ示
す信号波形図である。 1・・・・・・PTPシート、2・・・・・・製品収納
ポケット、3……スリツタ(ミシン目)、4……マスク
、5・・・・・・背景分離信号、6,8・・・・・・垂
直方向マスク信号発生回路、7・・・・・・遅延回路、
9,10…・・・垂直方向マスク信号、11,12・・
・・・・アンドゲート、13,14,15…・・・水平
方向マスク信号発生回路、16・・…・鏡き方向検出回
路、17・・・・・・マスク信号発生回路、18,19
,20・…・・水平方向マスク信号、21・・・・・・
マスク信号、31・・・・・・クロック信号発生回路、
32,34……カウンタ、33・・・・・・水平同期信
号、35・・・・・・計数量Y、36・・・・・・計数
量X、37,38,39・・・・・・デジタル比較器、
40・・・・・・額き判定回路、41・・・・・・煩き
なし出力、42・・・・・・懐き右下り出力、43・・
・・・・懐き右上り出力。 第1図 第2図 第3図 第4図 第5図A 第5図B 第6図 第7図 第9図 第8図 第10図 第11図 第12図
Figure 1 is a diagram showing the shape of PTP packaging, Figure 2 is a diagram showing the shape of PTP packaging.
A line diagram showing the definition of the height and amount of inclination of the sheet, Figs. 3 and 4 are graphs showing an example of the relationship between the inclination angle and amount of inclination of the PTP sheet, and Fig. 5A shows the margin of the mask for visual inspection. FIG. 5B is a graph showing an example of the relationship between mask allowance and neck tolerance; FIG. 6 is a block diagram showing an example of the configuration of the inspection device of the present invention; FIG. Figures 7A to L are signal waveform diagrams showing the signal waveforms of each part, and Figure 8A
, B and C are diagrams each showing the tilted state of the PTP sheet, FIG. 9 is a block diagram showing an example of the configuration of a framing direction detection circuit used in the device of the present invention, FIGS. 10 to E, and FIG. A to E and FIGS. 12A to E are similarly explanatory diagrams of the inclination state and signal waveform diagrams showing the operating principle of forehead detection, respectively. 1... PTP sheet, 2... Product storage pocket, 3... Slipper (perforation), 4... Mask, 5... Background separation signal, 6, 8... ... Vertical direction mask signal generation circuit, 7 ... Delay circuit,
9, 10... Vertical mask signal, 11, 12...
...And gate, 13, 14, 15...Horizontal mask signal generation circuit, 16...Mirror direction detection circuit, 17...Mask signal generation circuit, 18, 19
, 20...Horizontal mask signal, 21...
Mask signal, 31...Clock signal generation circuit,
32, 34... Counter, 33... Horizontal synchronizing signal, 35... Counting amount Y, 36...... Counting amount X, 37, 38, 39...・Digital comparator,
40...Forehead determination circuit, 41...No bothersome output, 42...Output for falling to the right, 43...
... Nostalgic upward right output. Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 A Figure 5 B Figure 6 Figure 7 Figure 9 Figure 8 Figure 10 Figure 11 Figure 12

Claims (1)

【特許請求の範囲】[Claims] 1 搬送装置により移動中の被検査物体の外観を画像セ
ンサで検出して前記被検査物体の外観検査を行う自動外
観検査装置において、前記被検査物体の輪郭を表わす背
景分離信号の画像センサ走査方向における継続時間を計
測する手段と、前記画像センサの走査基準信号と前記背
景分離信号との間の時間長を計測する手段と、前記背景
分離信号により駆動され、前記被検査物体が画像センサ
の視野に対して傾斜をもつて入つたか否かおよびその傾
斜の方向を検出する傾斜方向検出手段と、前記背景分離
信号に基づいて垂直方向マスク信号を発生させる垂直方
向マスク信号発生手段と、前記背景分離信号に基づいて
テレビジヨン画像水平走査方向に対する前記被検査物体
の傾斜の方向にそれぞれ対応した水平方向マスク信号を
発生させる複数個の水平方向マスク信号発生手段と、前
記傾斜方向検出手段により検出した前記被検査物体の水
平走査方向に対する傾斜の方向に応じ、その検出した傾
斜の方向に対応する前記水平方向マスク信号発生手段か
ら発生した水平方向マスク信号と前記垂直方向マスク信
号発生手段から発生した垂直方向マスク信号とを合成し
て前記被検査物体の外観における検査領域を限界するマ
スク信号を発生させるマスク信号発生手段とを具備した
ことを特徴とする傾き検出自動外観検査装置。
1. In an automatic appearance inspection device that performs an appearance inspection of an object to be inspected by detecting the appearance of the object to be inspected while it is being moved by a conveyance device using an image sensor, an image sensor scanning direction of a background separation signal representing the outline of the object to be inspected is provided. means for measuring the duration of time between the scanning reference signal of the image sensor and the background separation signal; tilt direction detection means for detecting whether or not the background separation signal is inclined relative to the background and the direction of the inclination; vertical mask signal generation means for generating a vertical mask signal based on the background separation signal; a plurality of horizontal direction mask signal generating means for generating horizontal direction mask signals corresponding to the direction of inclination of the object to be inspected with respect to the horizontal scanning direction of the television image based on the separation signal; In accordance with the direction of inclination of the object to be inspected with respect to the horizontal scanning direction, a horizontal mask signal generated from the horizontal mask signal generation means and a vertical mask signal generated from the vertical mask signal generation means corresponding to the direction of the detected inclination are generated. 1. A tilt detection automatic visual inspection apparatus comprising mask signal generating means for generating a mask signal that limits an inspection area in the external appearance of the object to be inspected by combining the mask signal with a direction mask signal.
JP4978378A 1978-04-28 1978-04-28 Tilt detection automatic visual inspection device Expired JPS6017042B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4978378A JPS6017042B2 (en) 1978-04-28 1978-04-28 Tilt detection automatic visual inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4978378A JPS6017042B2 (en) 1978-04-28 1978-04-28 Tilt detection automatic visual inspection device

Publications (2)

Publication Number Publication Date
JPS54143167A JPS54143167A (en) 1979-11-08
JPS6017042B2 true JPS6017042B2 (en) 1985-04-30

Family

ID=12840750

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4978378A Expired JPS6017042B2 (en) 1978-04-28 1978-04-28 Tilt detection automatic visual inspection device

Country Status (1)

Country Link
JP (1) JPS6017042B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0114914B1 (en) * 1983-01-29 1987-04-22 M.A.N.-ROLAND Druckmaschinen Aktiengesellschaft Device for detecting and evaluating colour control strips on a printing sheet

Also Published As

Publication number Publication date
JPS54143167A (en) 1979-11-08

Similar Documents

Publication Publication Date Title
EP0483966B1 (en) Method of and apparatus for inspecting a transparent or translucent article such as a bottle
US4319269A (en) External appearance inspecting system
JPH0575245B2 (en)
JPS6130684B2 (en)
US4975971A (en) Method and apparatus for detecting significant difference of sheet material
JP7309897B2 (en) Multi-camera imaging system using laser beams
JPH0135295B2 (en)
JPS6017042B2 (en) Tilt detection automatic visual inspection device
EP0542551A1 (en) Film instability compensation system
JPH02194307A (en) Curvature shape measuring instrument for plate-like body
JPH01101406A (en) Deviation detecting method for print pattern period length
JP2004325338A (en) Device and method for inspecting printed circuit board
JPS647549B2 (en)
JPS6010563B2 (en) How to measure the flatness of a flat plate
JP2841961B2 (en) Visual recognition device
JPS60194868A (en) Detecting method of original edge coordinate
GB2083214A (en) Dimension monitoring apparatus
JP2758550B2 (en) Appearance inspection device
JPS5994181A (en) Pattern recognizing device
JPS6248438B2 (en)
JPH07120240A (en) Inspection method for defective packaging of building materials
JP2655546B2 (en) Light source fluctuation correction method and device
JPS605881B2 (en) Tilt detection device
JPS6116519Y2 (en)
JPH1048151A (en) Surface flaw detection method