JPS6027064B2 - Label front and back inspection device - Google Patents

Label front and back inspection device

Info

Publication number
JPS6027064B2
JPS6027064B2 JP56061255A JP6125581A JPS6027064B2 JP S6027064 B2 JPS6027064 B2 JP S6027064B2 JP 56061255 A JP56061255 A JP 56061255A JP 6125581 A JP6125581 A JP 6125581A JP S6027064 B2 JPS6027064 B2 JP S6027064B2
Authority
JP
Japan
Prior art keywords
label
pattern
signal
back sides
inspection device
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
JP56061255A
Other languages
Japanese (ja)
Other versions
JPS57176479A (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 JP56061255A priority Critical patent/JPS6027064B2/en
Publication of JPS57176479A publication Critical patent/JPS57176479A/en
Publication of JPS6027064B2 publication Critical patent/JPS6027064B2/en
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/0008Industrial image inspection checking presence/absence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition

Description

【発明の詳細な説明】 この発明は、製品に貼られたラベルの貼り付け状態を検
査する外観検査において、ラベルの表裏逆、すなわち表
と髪を逆にして貼られたものを検査するラベル検査装置
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION This invention is a label inspection method in which a label is inspected with the label upside down, that is, with the front side reversed, in an appearance inspection that inspects the state of attachment of a label attached to a product. It is related to the device.

このようなラベルは、必ずしも表と愛で大幅な反射率の
差があるとは限らず、表面には文字などの細かい模様が
あり、裏面にはそれがないだけというようなものも多い
。表裏の逆は、ラベル貼り付け不良の中でも重大な欠陥
であり、したがって、表裏の反射率の差の余りないもの
も、安定しかも確実に検査することが要求される。従来
、ラベルの表裏逆は、ラベルの表と愛での反射率の大幅
な差を反射型光電センサなどを使って、ラベルから反射
されてくる光量の差としてとらえて検査して来た。
Such labels do not necessarily have a large difference in reflectance between the front and the back, and many have fine patterns such as letters on the front, but not on the back. Reversing the front and back sides is a serious defect among label attachment defects, and therefore, it is required to stably and reliably inspect even items where there is not much difference in reflectance between the front and back sides. Conventionally, reverse label inspection has been performed by using a reflective photoelectric sensor to detect the large difference in reflectance between the front and back sides of the label as a difference in the amount of light reflected from the label.

表と愛で全体として反射率に余り差がなくても、表面に
比較的大きなマーク部があり、そこでの反射率が裏面と
著しく異なる場合には、そのマーク部をねらって光電セ
ンサを取付け、同様に検査して来た。しかしながらこら
れの方法では、表と裏で反射率に余り差がなく、かつ大
きなマークもないものは検査が困難である。また、マー
クなどの一部分に着目するとなれば、マークの最適位置
をねらって、光電センサを取り付けなければならず、セ
ンサの位置決めが検査に微妙に影響する。さらに、ラベ
ル自体の位置ずれにも大きく影響される欠点があ。この
発明は、表と裏で余り反射率の差がないラベルで、しか
も表面には、文字などの小さな模様しかないものについ
て、ラベル自体の位置ずれに影響されず、表裏逆を安定
に検出しうる検査装置を提供することを目的をするもの
である。
Even if there is not much difference in overall reflectance between the front and the back, if there is a relatively large mark on the front and the reflectance there is significantly different from the back, attach a photoelectric sensor to the mark. I have tested the same. However, with these methods, it is difficult to inspect items where there is not much difference in reflectance between the front and back sides and there are no large marks. Furthermore, if a part of the mark is to be focused on, a photoelectric sensor must be attached to the mark at the optimum position, and the positioning of the sensor has a subtle effect on the inspection. Furthermore, it has the disadvantage that it is greatly affected by the positional shift of the label itself. This invention is capable of stably detecting whether the front and back sides are reversed without being affected by misalignment of the label itself, for labels where there is not much difference in reflectance between the front and back sides, and which only have small patterns such as letters on the front surface. The purpose of this invention is to provide a highly efficient inspection device.

この発明の特徴は、検査対象ラベルを撮影して得られる
撮像信号の1画面分の信号を処理することによりラベル
の表裏を判別するラベルの表裏検査装置であって、前記
撮像信号の1水平走査によって得られる信号をラベルの
有無を検出する第1の設定レベルと、ラベル内の模様を
検出する第2の設定レベルでそれぞ2値化する2値化手
段と、各水平走査毎に前記2つの2億化手段からの各出
力にもとづいて前記ラベル中に所定のパターンが存在す
るか否かを検出するパターン検出手段とを有してなり、
該検出手段の1画面分の出力信号数からのラベルの表裏
を判別しうるようにした点にある。
A feature of the present invention is a label front and back inspection device that determines the front and back sides of a label by processing one screen worth of image signals obtained by photographing a label to be inspected, the apparatus comprising: one horizontal scanning of the image signal; binarization means for binarizing the signal obtained by the above at a first set level for detecting the presence or absence of a label and a second set level for detecting a pattern inside the label; and pattern detection means for detecting whether or not a predetermined pattern exists in the label based on each output from the two 200 million conversion means,
The main feature is that the front and back sides of a label can be determined based on the number of output signals for one screen of the detection means.

以下、この発明の実施例を図面を参照して説明する。Embodiments of the present invention will be described below with reference to the drawings.

第1図はこの発明の実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the invention.

同図において、1はテレビカメラ、2および3は2値化
回路、4はパターン検出回路で、テレビカメラ1により
検査対象であるラベルを撮影し、その結果得られた撮像
信号を2値化回路2,3でそれぞれ異なる2つのレベル
で2値化し、これら2つの2値化信号をパターン検出回
路4にて比較することにより、ラベル内に所定の模様ま
たはパターンが存在するか否かを検出し、表裏の判別を
行なう。
In the figure, 1 is a television camera, 2 and 3 are binarization circuits, and 4 is a pattern detection circuit. 2 and 3 are binarized at two different levels, and these two binarized signals are compared in a pattern detection circuit 4 to detect whether or not a predetermined pattern or pattern exists within the label. , distinguish between front and back.

第2図は検査対象ラベルの1例を示す説明図であり、第
3図は該ラベルを撮影して得られる信号の1水平走査線
当たりの信号波形と、該信号を2値化回路2,3で2値
化した場合の信号波形とを示す波形図で、Aはラベルの
表面を撮影した場合を示し、Bはラベルの表面を撮影し
た場合を示すものである。
FIG. 2 is an explanatory diagram showing an example of a label to be inspected, and FIG. 3 shows a signal waveform per horizontal scanning line of a signal obtained by photographing the label, and a binarization circuit 2, FIG. 3 is a waveform diagram showing the signal waveform when binarized at 3, where A shows the case where the surface of the label is photographed, and B shows the case where the surface of the label is photographed.

第2図において、Lはラベルであり、Sは走査線(ラス
タ)位置を示し、PはラベルL内の模様またはパターン
を表わしている。
In FIG. 2, L is the label, S indicates the scan line (raster) position, and P represents the pattern within the label L. In FIG.

このような模様のラベルをテレビカメラで撮影すると、
その走査線位置Sにおけるビデオ波形は第3図AのVで
示されるように、模様に応じて変化する波形となる。
If you photograph a label with this kind of pattern with a TV camera,
The video waveform at the scanning line position S is a waveform that changes according to the pattern, as shown by V in FIG. 3A.

このビデオ波形Vを設定レベルLLおよびHLでそれぞ
2値化すると、同図AのDLおよびDHで示されるよう
な信号波形が得られる。ここで、設定レベルLLおよび
HLは、例えばラベルの背景および模様を安定にとり出
しうるように、それぞれ低レベル、高レベルの適宜なし
ベルに選定される。したがって、2値化回路2からはラ
ベルの背景に応じた単一のパルスDLが現われ、2値化
回路3からはラベル内の模様にしたがって複数のパルス
信号DHが現われることになる。これに対してラベルが
表と菱を逆にして貼られている場合は、ラベル内には模
様またはパターンが存在しないので、第3図Bに示す如
くそのビデオ波形Vおよび2値化信号波形DHは平坦と
なり、単一のパルス信号として出力される。
When this video waveform V is binarized at set levels LL and HL, signal waveforms as shown by DL and DH in FIG. 2A are obtained. Here, the setting levels LL and HL are selected to be low level and high level, respectively, so that the background and pattern of the label can be extracted stably, for example. Therefore, a single pulse DL corresponding to the background of the label appears from the binarization circuit 2, and a plurality of pulse signals DH appear from the binarization circuit 3 according to the pattern inside the label. On the other hand, if the label is pasted with the front side and diamonds reversed, there is no pattern within the label, so the video waveform V and the binarized signal waveform DH as shown in Figure 3B. becomes flat and is output as a single pulse signal.

第4図はパターン検出回路の詳細な構成を示す回略図で
あり、第5図は第4図の各部信号波形を示す波形図でA
はラベルが正しい位置に貼られている場合、Bは表裏逆
にして貼られている場合、Cはラベルの貼付位置が正規
の位置より少しずれている場合である。
FIG. 4 is a schematic diagram showing the detailed configuration of the pattern detection circuit, and FIG. 5 is a waveform diagram showing the signal waveforms of each part in FIG.
In case the label is pasted in the correct position, in case B, the label is pasted upside down, and in case C, the label pasted position is slightly shifted from the normal position.

第4図において、41,42はJKフリップフロツプ、
43はカウン夕であり、JKフリツプフロップ41のク
ロック端子CKには、第1図の2値化回路3の出力信号
DHが与えられ、クリア端子CRには同じく2値化回路
2の出力信号DLが与えられている。
In FIG. 4, 41 and 42 are JK flip-flops,
43 is a counter, the clock terminal CK of the JK flip-flop 41 is given the output signal DH of the binarization circuit 3 shown in FIG. 1, and the output signal DL of the binarization circuit 2 is also given to the clear terminal CR. It is given.

したがって、ラベルが正規の位置に正しく貼られていれ
ば、2値化信号は第5図AのDLおよびDHで示される
ような波形となり、JKフリツプフロツプ41,42の
出力はそれぞQ,,Q2のようになって、フリツプフロ
ツプ42の出力は1つのパルス信号Q2が現われること
になる。
Therefore, if the labels are correctly pasted at the proper positions, the binary signals will have waveforms as shown by DL and DH in FIG. 5A, and the outputs of the JK flip-flops 41 and 42 will be Q, Q2 Thus, one pulse signal Q2 appears at the output of the flip-flop 42.

これに対してラベルの表裏が逆の場合は、2値化信号は
同図BのDLおよびDHで示されるような波形となり、
フリツプフロツプ41からは出力Q.が得られるが、フ
リッブフロップ42の出力Q2は得られないことになる
。したがって、Q2として現われるフリッブフロツプ4
2からのパルス数を、カウンタ43によりラベル全体を
含む領域で計数すれば、正常なときには、ラベル内の模
様を横切る走査線(ラスタ)の本数になり、表裏が逆の
ときには、ラスタを横切る模様がないので、計数値は0
‘こなる。
On the other hand, if the front and back of the label are reversed, the binary signal will have a waveform as shown by DL and DH in Figure B,
Flip-flop 41 outputs Q. is obtained, but the output Q2 of the flip-flop 42 is not obtained. Therefore, the flip-flop 4 appearing as Q2
If the number of pulses from 2 is counted by the counter 43 in an area that includes the entire label, when it is normal, it will be the number of scanning lines (raster) that cross the pattern in the label, and when the front and back are reversed, it will be the number of scanning lines (raster) that cross the pattern inside the label. Since there is no, the count value is 0
'Konaru.

この計数値を一定の設定値と比較し、設定値以上か以下
かを判別することにより、ラベルの表裏を判別すること
ができる。つまり、一方のレベルLLで、ラベルの背景
にしたがった2値化信号DLを出し、その信号が論理“
1”の期間中に、ラベルの模様による2値化信号DHの
パルス数が2以上あるか杏かで、模様の有無を調べ、表
裏逆の検査を行なうものである。
By comparing this count value with a certain set value and determining whether it is greater than or less than the set value, it is possible to determine whether the label is front or back. In other words, at one level LL, a binary signal DL according to the background of the label is output, and that signal is a logic "
During the period of 1'', the presence or absence of a pattern is checked depending on whether the number of pulses of the binary signal DH due to the pattern of the label is 2 or more, and an inside-out inspection is performed.

なお、第5図Cに示す波形は、ラベルが右方へ所定の距
離△だけずれた場合であって、全体的に右方へずれる点
を徐けば、同図Aの場合と全く同じである。
The waveform shown in Figure 5C is the case where the label is shifted to the right by a predetermined distance △, and is exactly the same as the waveform shown in Figure 5A, except for the overall shift to the right. be.

さらに、ラベルの貼付位置が上、下へずれても、この発
明の場合は、ラベルを2次元領域でしているので、領域
内にラベルがある限り、ラベルの存在するところでDL
DHの信号が現われるので、表裏逆の検査が可能である
Furthermore, even if the label attachment position shifts upward or downward, in the case of this invention, the label is in a two-dimensional area, so as long as there is a label within the area, the DL will be applied where the label exists.
Since the DH signal appears, it is possible to inspect the front and back sides.

これは、回転ずに対しても同様である。要するに、ラベ
ルの位置ずれに関係なく、表裏逆検査可能である。また
、第5図のタイミングチャートからも容易にわかるよう
に、フリツプフロツプ42の出力にパルス信号Q2が現
われるには、2値化信号DLの論理“1”の期間中に、
2値化信号DHのパルスが2発以上あればよく、パルス
数や、パルスの幅、すなわち、ラベル内の模様の個数や
大きさには関係ないものである。
The same applies to rotation. In short, it is possible to inspect the front and back sides of the label irrespective of the positional deviation of the label. Furthermore, as can be easily seen from the timing chart of FIG. 5, in order for the pulse signal Q2 to appear at the output of the flip-flop 42, during the period of logic "1" of the binary signal DL,
It is sufficient that the binary signal DH has two or more pulses, and is not related to the number of pulses or the width of the pulses, that is, the number or size of patterns within the label.

第6はラベルの傍にNで示されるような外乱光などによ
る、明るい部分がノイズとして存在した場合を示す波形
図である。
The sixth is a waveform diagram showing a case where a bright portion such as that indicated by N near the label exists as noise due to disturbance light.

同図はノイズNの部分では、フリツプフロップ42の出
力Q2は論理“0”のままで、ラベルLのある部分のみ
でパルス出力Q2があることを示している。このため、
ラベル外に存在するノイズの影響を受けることができな
い。なお、ラベル裏面に汚れなどのある場合でも、ラベ
ルを含む2次元領域についてフリップフロップ42の出
力パルスを計数して検査するので、正常時の計数値が十
分大きければ、比較の基準となる設定定数の値を大きく
とっておくことにより、ある程度の汚れによる計数値を
無視することができる。以上のように、この発明は、ラ
ベル表裏の反射率の差(明暗の差)だけでなく、ラベル
内の模様に着目するので、表と裏で印刷の有無の区別し
かないようなラベルでも、安定に表裏逆の検査が可能で
ある。
The figure shows that in the noise N portion, the output Q2 of the flip-flop 42 remains at logic "0", and only in the portion with the label L there is a pulse output Q2. For this reason,
It cannot be affected by noise that exists outside the label. Note that even if there is dirt on the back side of the label, the output pulses of the flip-flop 42 are counted and inspected for the two-dimensional area including the label, so if the counted value during normal operation is sufficiently large, the set constant can be used as a reference for comparison. By setting a large value, it is possible to ignore counts due to some degree of dirt. As described above, this invention focuses not only on the difference in reflectance (difference between brightness and darkness) between the front and back sides of a label, but also on the pattern inside the label. It is possible to stably inspect the front and back sides.

また、ラベルを含む2次元の領域、すなわちラベルの存
在するところで2つのレベルによる2値化データの対応
をみるので、ラベルの位置ずれや、ラベル内の模様の状
態にも影響されず。したがって種々のラベル検査に適用
することができる。さらに外乱光などによるノイズがあ
っても、同一部分での2つの信号の相対関係をみるので
、余り影響を受けない。なお、この発明は、ラベル内の
模様の有無を調べるものであるから、ラベル表裏検査の
外、ラベル内の模様の脱落の検査も可能である。
Furthermore, since the correspondence between the binarized data at two levels is checked in a two-dimensional area that includes the label, that is, where the label exists, it is not affected by the positional shift of the label or the state of the pattern within the label. Therefore, it can be applied to various label inspections. Furthermore, even if there is noise due to ambient light, it will not be affected much because the relative relationship between two signals in the same area is checked. In addition, since this invention examines the presence or absence of a pattern within a label, in addition to inspecting the front and back sides of a label, it is also possible to inspect whether a pattern within a label has come off.

また、一様な明るさを有する物体の表面上のキズや汚れ
などを、模様と同様に考えることによりキズ、汚れなど
の欠陥検出も可能である。
Further, defects such as scratches and dirt can be detected by considering scratches and dirt on the surface of an object having uniform brightness in the same way as a pattern.

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

第1図はこの発明の実施例に示すブロック図であり、第
2図はラベルの一例を示す説明図であり、第3図はラベ
ルの撮像信号の1水平走査期間中の信号波形と、該信号
を2値化した信号波形とを示す波形図であり、第4図は
第1図のパターン検出回路を示す回路図であり、第5図
は第4図の各部信号波形を示す波形図であり、第6図は
ノイズを含む場合を示す波形図である。 符号の説明 1・・・テレビカメラ、2,3・・・2値
化回路、4…パターン検出回路、41,42…JKフリ
ツプフロツプ、43…カウンタ、L…ラベル、S・・・
走査線(ラスタ)、P・・・模様(パターン)、V・・
・ビデオ信号、DL,DH・・・2値化信号、LL,H
L…設定レベル。 第1図 第2図 第3図 第4図 第5図 第6図
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram showing an example of a label, and FIG. 3 shows the signal waveform of a label imaging signal during one horizontal scanning period and the corresponding FIG. 4 is a circuit diagram showing the pattern detection circuit of FIG. 1, and FIG. 5 is a waveform diagram showing signal waveforms of each part of FIG. 4. 6 is a waveform diagram showing the case where noise is included. Explanation of symbols 1... Television camera, 2, 3... Binarization circuit, 4... Pattern detection circuit, 41, 42... JK flip-flop, 43... Counter, L... Label, S...
Scanning line (raster), P...pattern, V...
・Video signal, DL, DH...Binarized signal, LL, H
L...Setting level. Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6

Claims (1)

【特許請求の範囲】[Claims] 1 検査対象ラベルを撮影して得られる撮像信号の1画
面分の信号を処理することにより前記ラベルの表裏を判
別するラベルの表裏検査装置であつて、前記撮像信号の
1水平送査によつて得られる信号をラベルの有無の検出
する第1の設定レベルと、ラベル内の摸様を検出する第
2段の設定レベルでそれぞれ2値化する2値化手段と、
各水平走査毎に前記2つの2値化手段からの各出力にも
とづいて前記ラベル中に所定のパターンが存在するか否
かを検出するパターン検出手段とを有してなり、1画面
分における前記パターン検出手段からの出力信号数によ
りラベルの表裏を判別するようにしたことを特徴とする
ラベルの表裏検査装置。
1. A label front and back inspection device that determines the front and back sides of a label by processing one screen worth of imaging signals obtained by photographing a label to be inspected, the apparatus comprising: Binarization means that binarizes the obtained signal at a first setting level for detecting the presence or absence of a label and a second setting level for detecting a pattern within the label;
pattern detection means for detecting whether or not a predetermined pattern exists in the label based on each output from the two binarization means for each horizontal scan; 1. A front-back inspection device for a label, characterized in that the front and back sides of a label are determined based on the number of output signals from a pattern detection means.
JP56061255A 1981-04-24 1981-04-24 Label front and back inspection device Expired JPS6027064B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56061255A JPS6027064B2 (en) 1981-04-24 1981-04-24 Label front and back inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56061255A JPS6027064B2 (en) 1981-04-24 1981-04-24 Label front and back inspection device

Publications (2)

Publication Number Publication Date
JPS57176479A JPS57176479A (en) 1982-10-29
JPS6027064B2 true JPS6027064B2 (en) 1985-06-27

Family

ID=13165938

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56061255A Expired JPS6027064B2 (en) 1981-04-24 1981-04-24 Label front and back inspection device

Country Status (1)

Country Link
JP (1) JPS6027064B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6073408A (en) * 1983-09-30 1985-04-25 Matsushita Electric Ind Co Ltd Pattern recognizing device
JPH01113753U (en) * 1988-01-22 1989-07-31
CN105383162B (en) * 2015-12-17 2017-09-08 东莞市秦智工业设计有限公司 A kind of auxiliary detection tool of double sided tag printing quality

Also Published As

Publication number Publication date
JPS57176479A (en) 1982-10-29

Similar Documents

Publication Publication Date Title
EP0483966B1 (en) Method of and apparatus for inspecting a transparent or translucent article such as a bottle
JP3820348B2 (en) Method for identifying scattered material, dirt and other defects in a transported object
JPH0674907A (en) Detection method for defect of tranparent plate-like body
JPH03160347A (en) Device for inspecting external appearance of solder
US7317524B2 (en) Method and device for detecting surface defects on the neck ring of a transparent or translucent container of revolution
JPS6355650B2 (en)
JPH07159337A (en) Fault inspection method for semiconductor element
JPS6027064B2 (en) Label front and back inspection device
JPH0448251A (en) Bottle inspecting device
JP2621690B2 (en) Printing defect inspection equipment
JPS6232345A (en) Defect detecting device
KR20090121612A (en) Method and apparatus for automatic detecting quality defects for corrugated board
JPH043820B2 (en)
JPH0519938B2 (en)
JPH07121721A (en) Printed character inspecting method
JPS5816837B2 (en) pattern detection device
JPH04270951A (en) Method for inspecting bottle
JP2756738B2 (en) Apparatus for visual inspection of semiconductor devices
JPH04353746A (en) Method and apparatus for measuring quantity of glass in printed circuit board
JP3473800B2 (en) Defect inspection method and device
JPS59196446A (en) Defect recognizing device
JP2821047B2 (en) Setting method of binarization threshold
JPH06331567A (en) Defective-can inspection apparatus
JPH02171640A (en) Inspection of container
JPH0682104B2 (en) Printed circuit board appearance inspection method