JPH0481232B2 - - Google Patents

Info

Publication number
JPH0481232B2
JPH0481232B2 JP60122012A JP12201285A JPH0481232B2 JP H0481232 B2 JPH0481232 B2 JP H0481232B2 JP 60122012 A JP60122012 A JP 60122012A JP 12201285 A JP12201285 A JP 12201285A JP H0481232 B2 JPH0481232 B2 JP H0481232B2
Authority
JP
Japan
Prior art keywords
code
bottle
circle
reading
image
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 - Lifetime
Application number
JP60122012A
Other languages
Japanese (ja)
Other versions
JPS61278990A (en
Inventor
Hiroyuki Funada
Masami Wakimoto
Tadashi Kajioka
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.)
Yamamura Glass KK
Original Assignee
Yamamura Glass KK
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 Yamamura Glass KK filed Critical Yamamura Glass KK
Priority to JP60122012A priority Critical patent/JPS61278990A/en
Publication of JPS61278990A publication Critical patent/JPS61278990A/en
Publication of JPH0481232B2 publication Critical patent/JPH0481232B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〈発明の技術分野〉 この発明は、例えば瓶成形機で成形された瓶の
欠陥を検査する瓶検査装置に適用される技術であ
つて、殊にこの発明は、瓶底に付された瓶成形箇
所を表す符号を読み取つて、欠陥瓶の成形箇所を
判別する符号読取装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention is a technology applied to a bottle inspection device that inspects defects in bottles formed by a bottle molding machine, for example, and is particularly applicable to The present invention relates to a code reading device for determining the molding location of a defective bottle by reading a code indicating the molding location on the bottom of the bottle.

〈発明の背景〉 一般に瓶成形機は、多数の金型を備えており、
これら金型を用いて多数の瓶を同時成形すること
が行われている。成形後の瓶は、冷却後、瓶検査
装置によつて各種欠陥の有無が検査されるが、欠
陥を含む瓶については、その原因を調べるため、
どの金型で成形されたかを知る必要がある。従来
この種一連の調査は、全て人手によつて実施して
おり、これがため作業能率がきわめて悪いという
問題があつた。
<Background of the invention> Generally, a bottle forming machine is equipped with a large number of molds.
These molds are used to simultaneously mold a large number of bottles. After the molded bottles have cooled, they are inspected for various defects using a bottle inspection device, and for bottles that contain defects, in order to investigate the cause of the defects,
You need to know which mold it was made in. Conventionally, all of this type of investigation has been carried out manually, which has resulted in the problem of extremely low work efficiency.

そこで近年、瓶成形時に、瓶底に金型番号を表
す2進符号を突起等をもつて円陣に配設してお
き、欠陥瓶の発生に際し、その瓶に付された符号
を読み取ることにより、欠陥瓶を生じさせた金型
を特定する方法が提案された。そしてこの方法の
実施に際しては、例えば瓶の口部より光を当て、
瓶を回転また停止させた状態で、瓶底より前記符
号を読み取るなどしているが、成形された瓶に歪
や寸法上の誤差があつたり、瓶と読取部との間に
位置ずれが生じたりすると、前記符号の読取りが
不能となつたり、或いは読取りミスが頻繁に発生
する等の問題があつた。
Therefore, in recent years, during bottle molding, binary codes representing the mold number are arranged in a circle with protrusions on the bottom of the bottle, and when a defective bottle occurs, the code attached to the bottle can be read. A method was proposed to identify the mold that produced the defective bottle. When implementing this method, for example, shine light from the mouth of the bottle,
The code is read from the bottom of the bottle while the bottle is rotated or stopped, but the molded bottle may be distorted or have dimensional errors, or misalignment may occur between the bottle and the reading unit. If this happens, there are problems such as the code becoming unreadable or reading errors occurring frequently.

〈発明の目的〉 この発明は、上記問題を解決するためのもので
あつて、符号の読取りを確実且つ正確に行うこと
のできる符号読取装置を提供することを目的とす
る。
<Object of the Invention> The present invention is intended to solve the above-mentioned problem, and an object thereof is to provide a code reading device that can read codes reliably and accurately.

〈発明の構成および効果〉 上記目的を達成するため、この発明では円陣に
配置された2進符号を読み取つて判別する装置に
おいて、前記2進符号が表された部分の全体を撮
像するための撮像部と、撮像部で得た画像を入力
して前記符号を読み取り判別する符号判別部とで
符号読取装置を構成し、前記符号判別部には、前
記画像上に径が異なる2以上の円を設定する手段
と、それぞれ円に沿つて画像構成データを読み取
つて2進符号を判別する手段と、各円毎の符号読
取データを照合してデータの一致の有無を判別す
る手段と、不一致判定に基づき前記円の中心点を
移動させて設定円に沿う画像データの読取りを再
実施させる手段とを具備させるようにした。
<Structure and Effects of the Invention> In order to achieve the above object, the present invention provides an apparatus for reading and discriminating binary codes arranged in a circle, which includes an imaging device for capturing an image of the entire portion where the binary code is expressed. and a code discriminator that reads and discriminates the code by inputting the image obtained by the imaging section, and the code discriminator comprises two or more circles with different diameters on the image. means for setting, means for reading the image configuration data along each circle to determine the binary code, means for comparing the code reading data for each circle to determine whether or not the data match, and a means for determining the discrepancy. and means for rereading the image data along the set circle by moving the center point of the circle based on the set circle.

この発明によれば、各設定円毎の符号読取デー
タが一致してはじめてそのデータを採用するよう
にし、これに加えてデータ不一致のときは円の中
心点を移動させてデータ読取りを再実施させるか
ら、成形された瓶に歪や寸法上の誤差があつた
り、瓶と読取部との間に位置ずれが生じたりして
も、符号の読取りが不能となつたり、読取りミス
が生ずる虞れが少なくなり、確実且つ正確な符号
の読取りが可能となる等、発明目的を達成した顕
著な効果を奏する。
According to this invention, the data is adopted only when the code reading data for each set circle matches, and in addition, when the data does not match, the center point of the circle is moved and data reading is performed again. Therefore, even if there is distortion or dimensional error in the molded bottle, or if there is a misalignment between the bottle and the reading unit, there is a risk that the code will not be readable or a reading error will occur. This has the remarkable effect of achieving the object of the invention, such as making it possible to read codes reliably and accurately.

〈実施例の説明〉 第1図は、この発明の符号読取装置が組みこま
れた瓶検査装置1の全体構成を示す。
<Description of Embodiments> FIG. 1 shows the overall configuration of a bottle inspection device 1 incorporating a code reading device of the present invention.

図示例の瓶検査装置1は、瓶搬送路2の途中に
設けてあり、この瓶搬送路2の上流には、瓶成形
機(図示せず)が位置している。前記瓶成形機
は、多数の金型をもつて多数の瓶50を同時成形
するものであつて、瓶成形時には、瓶底にその成
形金型を表す符号が形成され、その符号の読取り
によつて、欠陥瓶がどの金型で成形されたのかを
判断できるようになつている。
The illustrated bottle inspection device 1 is provided in the middle of a bottle conveyance path 2, and a bottle forming machine (not shown) is located upstream of this bottle conveyance path 2. The bottle molding machine has a large number of molds and simultaneously molds a large number of bottles 50. During bottle molding, a code indicating the molding mold is formed on the bottom of the bottle, and the code can be read by reading the code. Now it is possible to determine which mold was used to mold the defective bottle.

前記符号は、複数ビツトの2進符号であつて、
第2図に示す如く、瓶底に複数の突起3を一体突
設し且つ所定の半径位置rにこれらを円陣に配置
して形成される。図示例の場合、円周を16等分し
ており、図中〜で示す位置は符号構成ビツト
に、の位置はパリテイビツトに、a〜dの位置
はスタートビツトに、S1〜S3の位置は基準ビツト
に、それぞれ割り当ててある。〜の符号構成
ビツトは、突起有りが「1」に、突起なしが
「0」にそれぞれ対応し、従つてこの8ビツトに
より金型番号に合わせた合計256種の符号が設定
できるようになつている。のパリテイビツト
は、符号の正否判定に用いるもので、〜の
「1」のビツトの合計が偶数となるようにする。
a〜dのスタートビツトは常に「0」であり、ま
たS1〜S3の基準ビツトは常に「1」であつて、こ
れらは読取開始位置の検出用に供される。
The code is a multi-bit binary code,
As shown in FIG. 2, it is formed by integrally protruding a plurality of projections 3 on the bottom of the bottle and arranging them in a circle at a predetermined radius position r. In the illustrated example, the circumference is divided into 16 equal parts, and the positions indicated by ~ in the figure are code constituent bits, the positions indicated by are parity bits, the positions a to d are start bits, and the positions S 1 to S 3 are are respectively assigned to the reference bits. The code configuration bits for ~ correspond to "1" for the presence of protrusions and "0" for no protrusions, so these 8 bits allow a total of 256 types of codes to be set according to the mold number. There is. The parity bit of is used to determine whether the sign is correct or not, so that the sum of the "1" bits of ~ is an even number.
The start bits a to d are always "0", and the reference bits S1 to S3 are always "1", and these are used to detect the reading start position.

なおこの実施例の各突起3は、径方向に長く且
つ断面山形状(第3図参照)に形成してあるが、
これに限らず、その他の形状(例えば半球状)に
形成してもよい。また図示例の場合、第3図中θ
で示す突起3の傾斜角度(突起3の傾斜面が曲面
の場合は、最大接線角度)を、38度以下に設定し
て、下方からの光が下方へ有効に反射し且つまた
上方へも有効に透過するように構成してあり、こ
れにより下方位置での瓶底の符号読取りと、上方
位置での瓶底の検査(例えば瓶底のブツ、アワ、
異物を検出する検査)とが併せて実施できるよう
にしてある。
Note that each projection 3 in this embodiment is long in the radial direction and has a mountain-shaped cross section (see FIG. 3);
The shape is not limited to this, and may be formed in other shapes (for example, hemispherical). In addition, in the case of the illustrated example, θ in FIG.
By setting the inclination angle of the protrusion 3 (the maximum tangential angle if the inclined surface of the protrusion 3 is a curved surface) to 38 degrees or less, the light from below is effectively reflected downward and also upward. This makes it possible to read the code on the bottom of the bottle at the lower position, and inspect the bottle bottom at the upper position (for example, detect spots, bubbles, etc. on the bottom of the bottle).
Tests for detecting foreign substances) can also be carried out.

前記瓶検査装置1は、周面に複数の凹部4を備
えたスターホイール5を間歇回転させる送り機構
6と、前記凹部4の停止位置(以下、「検査ステ
ーシヨン」という)毎に配備された瓶検査機(図
示せず)とから成るもので、前記送り機構6の上
流側には、各凹部4へ瓶50を送り込むスクリユ
ー機構7を有する送込み機構8が設けられ、また
送り機構6の下流側には、欠陥瓶を回収するため
のリジエクトテーブル9が配設されている。
The bottle inspection device 1 includes a feed mechanism 6 that intermittently rotates a star wheel 5 having a plurality of recesses 4 on its circumferential surface, and a bottle inspection station provided at each stopping position of the recesses 4 (hereinafter referred to as an "inspection station"). A feeding mechanism 8 having a screw mechanism 7 for feeding a bottle 50 into each recess 4 is provided on the upstream side of the feeding mechanism 6, and a feeding mechanism 8 is provided on the downstream side of the feeding mechanism 6. A reject table 9 for recovering defective bottles is provided on the side.

図示例の場合、図中A〜Eで示す5個所の検査
ステーシヨンが設けてあり、このうち4箇所の検
査ステーシヨンA〜Dでは、瓶自転機構10を配
備して、瓶50を回転状態で検査し、また最後の
検査ステーシヨンEでは、瓶50を静止状態で検
査するようにしてある。前記各瓶自転機構10
は、回転ローラ11を検査ステーシヨンに位置す
る瓶50の周面へ押付けて、その摩擦力により瓶
を自転させるもので、各検査ステーシヨン間に
は、瓶をつぎの検査ステーシヨンへガイドするガ
イド板12が配備してある。
In the illustrated example, there are five inspection stations indicated by A to E in the figure, and four of these inspection stations A to D are equipped with a bottle rotation mechanism 10 to inspect the bottle 50 in a rotating state. However, at the last inspection station E, the bottle 50 is inspected in a stationary state. Each bottle rotation mechanism 10
The rotating roller 11 is pressed against the circumferential surface of a bottle 50 located at an inspection station, and the bottle is rotated by the frictional force. Between each inspection station, there is a guide plate 12 that guides the bottle to the next inspection station. is in place.

前記最終の検査ステーシヨンEには、瓶底の符
号を読み取るための符号読取装置13が配備して
ある。この符号読取装置13は、第4図に示す如
く、瓶50の底面を支持する支持板14の下方位
置に配設されており、支持板14上方の空き空間
には、例えば瓶高さ、瓶口径、瓶口の平滑度合、
瓶底不良等を検査する検査機15を配備して、空
間の有効利用をはかつている。前記支持板14
は、金属基板16上に樹脂板17を重ねた構造で
あつて、金属基板16には、瓶位置に対応して切
欠き18が、また樹脂板17には、下開きのテー
パ孔19がそれぞれ設けてある。
The final inspection station E is equipped with a code reading device 13 for reading the code on the bottom of the bottle. As shown in FIG. 4, this code reading device 13 is disposed below a support plate 14 that supports the bottom of the bottle 50, and in the empty space above the support plate 14, for example, the height of the bottle, the height of the bottle, Caliber, degree of smoothness of bottle mouth,
An inspection machine 15 for inspecting bottle bottom defects and the like is installed to make effective use of space. The support plate 14
has a structure in which a resin plate 17 is stacked on a metal substrate 16, and the metal substrate 16 has a notch 18 corresponding to the bottle position, and the resin plate 17 has a tapered hole 19 opening downward. It is provided.

前記符号読取装置13は、瓶底へ投光して突起
3のみを有効に光らせるためのリング状光源20
と、この光源20を収納するためのケース21
と、ケース21内側に瓶底に向けて配置された瓶
底を撮像するためのテレビカメラ22と、このテ
レビカメラ22が得た画像を入力して前記符号を
読み取り判別する符号判別回路23とから構成さ
れている。
The code reading device 13 includes a ring-shaped light source 20 for projecting light onto the bottom of the bottle to effectively illuminate only the protrusion 3.
and a case 21 for storing this light source 20.
, a television camera 22 disposed inside the case 21 facing toward the bottom of the bottle to take an image of the bottle bottom, and a code discrimination circuit 23 that inputs the image obtained by the television camera 22 and reads and discriminates the code. It is configured.

前記リング状光源20は、2本のリング状蛍光
灯24,25を上下に並列配置して成り、発光し
ない各蛍光灯の電極部分は、対角方向に位置させ
ることにより、瓶底への投光のむらが生じないよ
うに工夫してある。これら蛍光灯24,25を収
納するケース21は、ハウジング26と、光源2
0の内側および上側を被う拡散板27とで構成さ
れ、この拡散板27の上面には透明の樹脂板28
が配備されている。
The ring-shaped light source 20 is made up of two ring-shaped fluorescent lamps 24 and 25 arranged vertically in parallel, and the electrode portions of each fluorescent lamp that do not emit light are positioned diagonally, so that they cannot be projected onto the bottom of the bottle. It is designed to prevent uneven light. The case 21 that houses these fluorescent lamps 24 and 25 includes a housing 26 and a light source 2.
A transparent resin plate 28 is placed on the upper surface of this diffuser plate 27.
is in place.

第5図は、前記符号判別回路23の構成例を示
す。図中、テレビカメラ22は、瓶底を撮像して
これを画像化し、この画像を画像メモリ29に記
憶させる。図示の画像メモリ29は、第6図に示
す如く、縦横各256ビツトの多数の画素を有し、
各画素には、画像に応じた輝度レベルを有する画
素データが記憶される。画像メモリ29には、モ
ニタテレビ30および符号読取回路31が接続さ
れ、前記モニタテレビ30によつて画像メモリ2
9の記憶画像を目視にて確認できるようになつて
いる。
FIG. 5 shows an example of the configuration of the code discrimination circuit 23. In the figure, a television camera 22 images the bottom of the bottle, converts it into an image, and stores this image in an image memory 29. The illustrated image memory 29 has a large number of pixels of 256 bits each in the vertical and horizontal directions, as shown in FIG.
Each pixel stores pixel data having a brightness level depending on the image. A monitor television 30 and a code reading circuit 31 are connected to the image memory 29, and the image memory 2
9 stored images can be visually confirmed.

符号読取回路31は、画像メモリ29に格納さ
れた画像の各画素データを読み出して、2値化等
の処理を施した後、符号のデータを読み取るもの
である。この符号読取回路31は、パーソナルコ
ンピユータ32のCPU(Central Processing
Unit)33に接続されており、CPU33はメモ
リ34中のプログラムに基づき符号読取回路31
の動作を制御しつつ各種処理を実行すると共に、
符号の読取りからその判別に至るまでの動作を一
連に制御するものである。
The code reading circuit 31 reads each pixel data of the image stored in the image memory 29, performs processing such as binarization, and then reads the code data. This code reading circuit 31 is connected to a CPU (Central Processing Processing System) of a personal computer 32.
The CPU 33 is connected to the code reading circuit 31 based on the program in the memory 34.
In addition to executing various processes while controlling the operation of
It controls a series of operations from code reading to code discrimination.

第7図は、上記符号読取回路31の具体回路構
成を示す。図示例の符号読取回路31は、画像メ
モリ29上に前記符号を読み取るための円(第6
図中、破線R1,R2で示す)を設定すると共に、
この円上に位置する画素のXY座標を順次指定し
てゆくための回路部31Aと、画像メモリ29上
の指定座標位置より読み出された画素データを2
値化処理して符号を読み取るための回路部31B
とを含み、各回路部31A,31Bは、それぞれ
インターフエイス35を介して画像メモリ29に
接続されている。
FIG. 7 shows a specific circuit configuration of the code reading circuit 31. The code reading circuit 31 in the illustrated example has a circle (sixth circle) for reading the code on the image memory 29.
(indicated by broken lines R 1 and R 2 in the figure), and
A circuit unit 31A for sequentially specifying the XY coordinates of pixels located on this circle, and a circuit unit 31A for sequentially specifying the XY coordinates of pixels located on this circle, and two
Circuit section 31B for digitizing and reading codes
Each of the circuit units 31A and 31B is connected to the image memory 29 via an interface 35, respectively.

回路部31Aは、画像メモリ29上に径および
中心点の異なる複数種の円を設定する機能を備え
ており、径の異なるn種類の円を規定するXY座
標データ(この実施例では、ひとつの円情報につ
き360個の座標データ)を格納してある一対の
ROM(Read Only Memory)36,37と、各
ROM36,37のアドレスを順次計数してXY
座標データを出力させるプリセツトカウンタ38
と、円の中心点を所定座標移動させるための加算
器39,40とを含む。
The circuit unit 31A has a function of setting multiple types of circles with different diameters and center points on the image memory 29, and uses XY coordinate data (in this embodiment, one A pair of coordinate data (360 pieces of coordinate data per circle information) are stored.
ROM (Read Only Memory) 36, 37 and each
Sequentially count the addresses of ROM36 and 37 and calculate XY
Preset counter 38 that outputs coordinate data
and adders 39 and 40 for moving the center point of the circle by a predetermined coordinate.

第8図は、前記各ROM36,37に格納され
た径の異なるn種の円情報F1〜Foを示し、この
うち何れか円情報をパーソナルコンピユータ32
のキーボード等で指定すると、前記プリセツトカ
ウンタ38に、その円情報の先頭アドレスがプリ
セツトされるようになつている。
FIG. 8 shows n types of circle information F 1 to F o having different diameters stored in each of the ROMs 36 and 37, and any one of these pieces of circle information is sent to the personal computer 32.
When specified using the keyboard or the like, the preset counter 38 is preset with the starting address of the yen information.

第9図は、符号読取りに際し、前記円の中心点
を図中、番号1,2,3,…で示す順序で移動さ
せることを示しており(詳細は後述)、この順序
および移動座標距離はパーソナルコンピユータ3
8によつて自動設定されるようになつている。
FIG. 9 shows that when reading a code, the center point of the circle is moved in the order indicated by numbers 1, 2, 3, etc. in the figure (details will be described later), and this order and the moving coordinate distance are personal computer 3
8, it is automatically set.

前記回路部31Bは、画像メモリ29より読み
出された画素データを保持するためのラツチ回路
41と、ラツチされた各画素データを所定のしき
い値と比較して2値化するための比較器42と、
16ビツト構成の符号の抽出に必要な16個のゲート
信号を形成するゲート信号生成回路43と、ゲー
ト信号生成回路43より与えられたゲート信号に
よつて前記比較器42からの2値化出力を読み取
つて符号を判定し且つ抽出する符号判定回路44
と、符号判定回路44の出力を16ビツト分保持し
て前記マイクロコンピユータ32へ出力するシフ
トレジスタ45とを備えている。
The circuit section 31B includes a latch circuit 41 for holding pixel data read out from the image memory 29, and a comparator for comparing each latched pixel data with a predetermined threshold value and converting it into a binary value. 42 and
A gate signal generation circuit 43 forms 16 gate signals necessary for extracting a 16-bit code, and the binarized output from the comparator 42 is generated by the gate signal provided from the gate signal generation circuit 43. Code determination circuit 44 that reads, determines and extracts the code
and a shift register 45 that holds 16 bits of the output of the sign determination circuit 44 and outputs it to the microcomputer 32.

第10図は、画像メモリ29より読み出された
円上の画素データを連続して示した図であり、横
軸が角度、縦軸が輝度レベルを示している。同図
中、輝度レベルの大きい部分は、瓶底の突起部分
に対応しており、この画素データを比較器42に
おいて所定のしきい値THと比較することによ
り、第11図に示すような符号を構成するパルス
信号を得る。
FIG. 10 is a diagram continuously showing pixel data on a circle read out from the image memory 29, where the horizontal axis shows the angle and the vertical axis shows the brightness level. In the figure, parts with high brightness levels correspond to protruding parts on the bottom of the bottle, and by comparing this pixel data with a predetermined threshold value TH in the comparator 42, a code as shown in FIG. Obtain the pulse signal that makes up the .

前記ゲート信号生成回路43は、第11図に示
す最初のパルス信号のエツジ部eを検出するエツ
ジ検出回路46と、22度の角度に対応するゲート
幅(360度を16等分すると、22.5度となり、一方
のゲート幅を22度とし、他方のゲート幅を23度と
する)のゲート信号Gi(ただしiは奇数)を生成
する第1ゲート47と、23度の角度に対応するゲ
ート幅のゲート信号Gj(ただしjは偶数)を生成
する第2ゲート48と、それぞれゲート信号を符
号定回路44に交互に与えるゲート振分回路49
とを備え、ゲート振分回路49は、前記エツジ部
eの検出後、所定時間経過後から前記振り分け動
作を開始するものである。
The gate signal generation circuit 43 includes an edge detection circuit 46 that detects the edge part e of the first pulse signal shown in FIG. The first gate 47 generates the gate signal G i (where i is an odd number), and the gate width corresponding to the angle of 23 degrees. a second gate 48 that generates a gate signal G j (where j is an even number), and a gate distribution circuit 49 that alternately supplies each gate signal to the sign determination circuit 44.
The gate distribution circuit 49 starts the distribution operation after a predetermined period of time has elapsed after the detection of the edge portion e.

かくて符号判定回路44は、比較器42からの
論理「1」の信号がゲート内に規定個数存在する
か否かによつて符号を判定しており、その結果、
16ビツト構成のデータをビツトシリアルに出力
し、このデータは、シフトレジスタ45に一旦貯
えられた後、マイクコンピユータ32に取り込ま
れる。
Thus, the sign determination circuit 44 determines the sign depending on whether or not a prescribed number of logic "1" signals from the comparator 42 are present in the gate, and as a result,
Data in a 16-bit configuration is output bit serially, and this data is once stored in the shift register 45 and then taken into the microphone computer 32.

第12図は、このマイクロコンピユータ32の
符号読取および判別動作の制御フローを示し、ま
た第13図は、第12図中、ステツプ1(図中、
「ST1」の如く示す)の初期設定動作を示す。
FIG. 12 shows the control flow of code reading and discrimination operations of this microcomputer 32, and FIG.
This shows the initial setting operation (shown as "ST1").

今瓶検査に先立ち、装置適所に設けた初期設定
ボタンをオンすると、所定のランプが点灯して、
初期化処理の開始が報知される(ステツプ101,
102)。つぎにテレビカメラ22によつて画像メモ
リ29に格納された瓶底の画像(例えば初期化の
ためのモデルの画像)が、モニタテレビ30に取
り込まれて表示される(ステツプ103)。そしてつ
ぎのステツプ104において、いずれか円情報が選
択されて円の半径が入力指定されると、CPU3
3は、第6図に示す如く、画像メモリ29上にそ
の中心点Pを中心として円(例えばR1)を描き、
この円は前記画像と共にモニタテレビ30に表示
される(ステツプ105)。この画像メモリ29内の
画像は、一定時間(例えば1秒)毎にモニタテレ
ビ30に取り込まれて、画面表示が更新されるも
ので、もしテレビカメラ30の中心がずれて円
R1に対し突起3の円陣配列画像が位置ずれして
いるようなときは、この画面を見ながらテレビカ
メラ22の位置を動かして調整を行う。
Prior to the bottle inspection, when you turn on the initial setting button located in the appropriate place on the device, the specified lamp will light up.
The start of the initialization process is announced (step 101,
102). Next, an image of the bottle bottom (for example, an image of a model for initialization) stored in the image memory 29 by the television camera 22 is captured and displayed on the monitor television 30 (step 103). Then, in the next step 104, when any circle information is selected and the radius of the circle is input and specified, the CPU 3
3, as shown in FIG. 6, draw a circle (for example, R 1 ) on the image memory 29 with its center point P as the center;
This circle is displayed on the monitor television 30 together with the image (step 105). The images in the image memory 29 are taken into the monitor television 30 at regular intervals (for example, 1 second) and the screen display is updated.
If the circular array image of the protrusions 3 appears to be out of position with respect to R1 , adjust the position of the television camera 22 while looking at this screen.

上記画面上での調整が完了して、初期設定ボタ
ンをオフすると、ステツプ106が“YES”となつ
て、前記ランプが消え、検査の開始に待機するこ
とになる。
When the above-mentioned adjustments on the screen are completed and the initial setting button is turned off, step 106 becomes "YES", the lamp goes out, and the test waits for the start of the test.

かくして瓶検査動作が開始されて、瓶搬送路2
よりスターホイール5の各凹部4へ瓶50が送り
込まれると、それぞれ瓶50は、送り機構6の間
歇回転動作により順次検査ステーシヨンA〜Eへ
送られて、その都度所定の検査が実施される。そ
して最終の検査ステーシヨンEに瓶50が至つ
て、CPU33に検査タイミング信号が入力され
ると、ステツプ2が“YES”となり、つぎのス
テツプ3で符号読取装置13が作動せられる。
Thus, the bottle inspection operation is started, and the bottle transport path 2
When the bottles 50 are fed into the respective recesses 4 of the star wheel 5, the bottles 50 are sequentially sent to the inspection stations A to E by the intermittent rotating operation of the feeding mechanism 6, and a predetermined inspection is carried out each time. When the bottle 50 reaches the final inspection station E and the inspection timing signal is input to the CPU 33, step 2 becomes "YES" and the code reading device 13 is activated in the next step 3.

今検査ステーシヨンEで静止する瓶50の底面
に、リング状の光源20から拡散板27を経た均
一の光が一様に照射されると、瓶底の突起3に当
つた光は反射されることになつて、突起3のみが
明るく光り、その他の部分は暗くなる。この瓶底
の輝度分布は直ちにテレビカメラ22により撮像
され、その画像は画像メモリ29に格納されると
共に、符号読取回路31によつて符号の読取りが
実施される。この符号読取回路1においては、ま
ず第1番目の中心点(第9図参照)を円中心とす
る所定の半径の第1の円R1(第6図に示す)が設
定され、その円に沿う画素データの読出し、更に
は読取りがハード的に実施される。
If uniform light from the ring-shaped light source 20 passes through the diffuser plate 27 is irradiated uniformly onto the bottom surface of the bottle 50 that is stationary at the inspection station E, the light hitting the protrusion 3 on the bottom of the bottle will be reflected. Then, only the protrusion 3 shines brightly, and the other parts become dark. The brightness distribution at the bottom of the bottle is immediately imaged by the television camera 22, the image is stored in the image memory 29, and the code is read by the code reading circuit 31. In this code reading circuit 1, a first circle R 1 (shown in FIG. 6) having a predetermined radius with the first center point (see FIG. 9) as the center of the circle is set; Reading of pixel data along the line and further reading is performed by hardware.

まずプリセツトカウンタ38に所定のプリセツ
トカウンタ値が与えられ、これにより各ROM3
6,37の対応するアドレスから前記第1の円
R1を設定する360個のXY座標データがカウンタ
38の計数動作とともに次々に読み出される。つ
ぎの各加算器39,40にはそれぞれROM3
6,37の出力と、CPU33からの中心点補正
値データとが入力されて加算処理されるが、この
段階では、第1番目の中心点(第6図では、P
点)が設定されているから、各補正値は「ゼロ」
である。
First, a predetermined preset counter value is given to the preset counter 38, and thereby each ROM3
6, 37 corresponding addresses to said first circle
360 pieces of XY coordinate data for setting R1 are read out one after another along with the counting operation of the counter 38. Each of the following adders 39 and 40 has a ROM3.
The outputs of 6 and 37 and the center point correction value data from the CPU 33 are input and subjected to addition processing, but at this stage, the first center point (in FIG. 6, P
point) is set, each correction value is "zero".
It is.

かくして、各加算器39,40が出力するXY
座標データに基づき画像メモリ29の対応画素か
ら画素データが順次読み出されてラツチ回路41
にセツトされてゆく。つぎにこれら画素データは
比較器42にて2値化処理されて符号判定回路4
4へ送られ、さらにこの符号判定回路44には、
ゲート信号生成回路43で生成されたゲート信号
が与えられて、符号の読取りが行われる。その結
果読取りが適正に行われると、つぎのステツプ4
の判定が“YES”となり、CPU33へシフトレ
ジスタ45より16ビツトの読取データが転送さ
れ、この転送データはメモリ34にセツトされる
(ステツプ5)。
Thus, each adder 39, 40 outputs XY
Pixel data is sequentially read out from the corresponding pixels in the image memory 29 based on the coordinate data and sent to the latch circuit 41.
It is set to . Next, these pixel data are binarized by a comparator 42 and then passed to a sign determination circuit 4.
4, and further sent to this sign determination circuit 44,
A gate signal generated by the gate signal generation circuit 43 is applied to read the code. As a result, if the reading is performed properly, the next step 4 is performed.
The determination is "YES", and the 16-bit read data is transferred from the shift register 45 to the CPU 33, and this transferred data is set in the memory 34 (step 5).

もし瓶の歪や瓶の位置ずれ等に起因して、円
R1に対し瓶底の画像が位置ずれしていると、1
個のパルス信号が2つのゲートにまたがつて検出
されるなどして、ステツプ4の「読取り適正
か?」の判定が“NO”となり、ステツプ11へ進
む。
If the bottle is distorted or the bottle is misaligned, etc.
If the image of the bottom of the bottle is misaligned with respect to R 1 , then 1
As a result, for example, two pulse signals are detected across two gates, the determination in step 4 "Is reading appropriate?" becomes "NO", and the process proceeds to step 11.

前記ステツプ5での転送データにつき、つぎ
CPU33は、まずステツプ6において、第2図
中、a〜d位置のスタートビツトに相当するデー
タが存在するか否か、つぎのステツプ7におい
て、第2図中、S1〜S3位置の基準ビツトに相当す
るデータが存在するか否か、さらにステツプ8に
おいて、第2図中、位置のパリテイビツトに基
づくパリテイが適正か否かが、それぞれチエツク
される。その結果、ステツプ6〜8の何れもが
“YES”のときは、ステツプ9へ進んで、今回の
データ読取りが2度目か否かがチエツクされ、こ
の場合、その判定は“NO”であるから、ステツ
プ10へ進む。そしてステツプ10では、前記の第1
の円R1とは径が異なる第2の円R2が、前記と同
じ中心点で設定され、その円R2に沿う画素デー
タに基づき2度目の符号の読取処理が前記符号読
取回路31で実行される。すなわち符号読取回路
31において、プリセツトカウンタ38には前回
とは異なるプリセツト値が与えられ、これより各
ROM36,37の対応するアドレスから前記第
2の円R2を設定する360個のXY座標データがカ
ウンタ38の計数動作とともに次々に読み出され
て画像メモリ29へ与えられるもので、以下、画
像メモリ29からの画素データの読出し、2値化
処理、符号判定等の各動作が前記と同様に実行さ
れる。
Regarding the data transferred in step 5, the following
First, in step 6, the CPU 33 determines whether data corresponding to the start bits at positions a to d in FIG. It is checked whether data corresponding to the bit exists, and whether the parity based on the position parity bit in FIG. 2 is correct in step 8. As a result, if all of steps 6 to 8 are "YES", the process advances to step 9, where it is checked whether or not this data reading is the second time.In this case, the determination is "NO". , proceed to step 10. Then, in step 10, the first
A second circle R2 having a different diameter from the circle R1 is set at the same center point as above, and the second code reading process is performed by the code reading circuit 31 based on the pixel data along the circle R2 . executed. That is, in the code reading circuit 31, a preset value different from the previous one is given to the preset counter 38, and from this, each
The 360 XY coordinate data for setting the second circle R 2 are read out one after another from the corresponding addresses of the ROMs 36 and 37 along with the counting operation of the counter 38 and are given to the image memory 29. Operations such as reading out pixel data from 29, binarization processing, and code determination are performed in the same manner as described above.

これに対し、もし瓶の歪や瓶の位置ずれ等に起
因して、第1の円R1に対する瓶底画像の位置ず
れがあつたような場合で、ステツプ4,6〜8の
何れか判定が“NO”となつたときは、ステツプ
11へ進み、第2番目の中心点(第9図参照)が設
定される。そして続くステツプ12の「全中心点設
定済か?」の判定は“NO”であるから、ステツ
プ13において前記と同じ半径の第1の円1が再設
定され、その円R1に沿う画素データに基づき符
号の読取りが再実施される。この場合、符号読取
回路31においては、第2番目の中心点を設定す
るのに、CPU33から中心点補正値データΔYが
加算器39,40に与えられ、これにより画像メ
モリ29上では、第6図中、点P′を中心点とする
円に沿う画素データの読出しが行われることにな
る。
On the other hand, if the bottle bottom image is misaligned with respect to the first circle R1 due to bottle distortion or bottle misalignment, either step 4 or 6 to 8 is determined. is “NO”, step
11, the second center point (see Figure 9) is set. Then, in the following step 12, the determination of "Have all center points been set?" is "NO", so in step 13, the first circle 1 with the same radius as above is reset, and the pixel data along that circle R1 is The code is read again based on this. In this case, in the code reading circuit 31, the center point correction value data ΔY is given from the CPU 33 to the adders 39, 40 in order to set the second center point. In the figure, pixel data is read out along a circle with point P' as the center point.

かくして前記第2の円R2に基づく2度目の符
号の読取処理が実施された結果、その読取りが適
正に行われると、ステツプ4の判定が“YES”
となつて、符号読取回路31よりCPU33へ16
ビツトの読取データが転送され、メモリ34にセ
ツトされる。続いてCPU33は、ステツプ6〜
8のチエツクを実施し、その結果ステツプ6〜8
が全て“YES”のときは、さらにステツプ9の
チエツクが行われる。この場合、ステツプ9の
「2度目の読取か?」の判定も“YES”となるか
ら、ステツプ14へ進んで、1度目の読取データと
2度目の読取データとが一致するか否かが判定さ
れる。その結果、ステツプ14の判定が“YES”
のときは、読取データは適正であると判断され、
CPU33はスタートビツトの位置を手掛りに符
号を判読して、その判読結果を例えば上位の制御
機(瓶検査装置の制御機)へ出力する。
As a result of the second code reading process based on the second circle R2 , if the reading is performed properly, the determination in step 4 is "YES".
Then, from the code reading circuit 31 to the CPU 3316
The bit read data is transferred and set in memory 34. Next, the CPU 33 performs steps 6~
8. As a result, steps 6 to 8 are executed.
If all are "YES", a further check is performed in step 9. In this case, since the determination in step 9 "Is this the second reading?" is also "YES", the process advances to step 14, where it is determined whether the first read data and the second read data match. be done. As a result, the judgment in step 14 is “YES”
When , the read data is judged to be appropriate,
The CPU 33 reads the code using the position of the start bit as a clue, and outputs the reading result to, for example, a higher-level controller (controller of the bottle inspection device).

これに対しもし、ステツプ4,6〜8,14のい
ずれか判定が“NO”のときは、ステツプ11でつ
ぎの中心点が設定されて、同様の処理が繰り返し
実行される。
On the other hand, if the determination in any one of steps 4, 6 to 8, and 14 is "NO", the next center point is set in step 11, and the same process is repeated.

そして中心点の設定を第9図の例では、57回実
施しても、適正なデータが得られないときは、ス
テツプ12の判定が“YES”となり、ステツプ16
でエラー処理されることになる。
In the example of FIG. 9, if proper data is not obtained even after setting the center point 57 times, the determination in step 12 is "YES" and step 16 is performed.
The error will be handled.

上記符号の読取りによつて、瓶50につきそれ
を成形した瓶成形機の金型番号を知ることができ
るもので、瓶の欠陥箇所と金型番号との対応を自
動集計すれば、欠陥箇所の追求やその修正を迅速
且つ適正に行うことができる。
By reading the above code, it is possible to know the mold number of the bottle molding machine that molded each bottle 50, and if the correspondence between the defective parts of the bottle and the mold numbers is automatically tallied, the defective parts can be identified. Pursuits and corrections can be made quickly and appropriately.

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

第1図は瓶検査装置の全体構成例を示す平面
図、第2図は瓶底に付される符号を示す説明図、
第3図は第2図−線に沿う突起の断面図、第
4図は符号読取装置の構成例を示す縦断面図、第
5図は符号読取装置の回路構成例を示すブロツク
図、第6図は画像メモリの記憶内容を説明するた
めの図、第7図は符号読取回路の具体例を示すブ
ロツク図、第8図は符号読取回路中のROMの内
容を説明するための図、第9図は中心点の設定例
を示す図、第10図は画像メモリより読み出され
る画素データを示す図、第11図は符号読取動作
のタイミングを示す図、第12図は符号読取動作
の制御の流れを示すフローチヤート、第13図は
初期化処理の流れを示すフローチヤートである。 13……符号読取装置、22……テレビカメ
ラ、23……符号判別回路、31……符号読取回
路、32……パーソナルコンピユータ、33……
CPU、34……メモリ、38……プリセツトカ
ウンタ、36,37……ROM、39,40……
加算器。
FIG. 1 is a plan view showing an example of the overall configuration of a bottle inspection device, FIG. 2 is an explanatory diagram showing the symbols attached to the bottom of the bottle,
3 is a sectional view of the protrusion taken along the line of FIG. 2, FIG. 4 is a longitudinal sectional view showing an example of the configuration of the code reading device, FIG. 5 is a block diagram showing an example of the circuit configuration of the code reading device, and FIG. 7 is a block diagram showing a specific example of the code reading circuit, FIG. 8 is a diagram explaining the contents of the ROM in the code reading circuit, and FIG. The figure shows an example of setting the center point, Figure 10 shows pixel data read from the image memory, Figure 11 shows the timing of code reading operation, and Figure 12 shows the control flow of code reading operation. FIG. 13 is a flowchart showing the flow of initialization processing. 13... code reading device, 22... television camera, 23... code discrimination circuit, 31... code reading circuit, 32... personal computer, 33...
CPU, 34... Memory, 38... Preset counter, 36, 37... ROM, 39, 40...
Adder.

Claims (1)

【特許請求の範囲】 1 円陣に配置された2進符号を読み取つて判別
する装置であつて、 前記2進符号が表された部分の全体を撮像する
ための撮像部と、撮像部で得た画像を入力して前
記符号を読み取り判別する符号判別部とから成
り、 前記符号判別部は、前記画像上に径が異なる2
以上の円を設定する手段と、それぞれ円に沿つて
画像構成データを読み取つて2進符号を判別する
手段と、各円毎の符号読取データを照合してデー
タの一致の有無を判定する手段と、データ不一致
判定に基づき前記円の中心点を移動させて設定円
に沿う画像データの読取りを再実地させる手段と
を具備して成る符号読取装置。 2 前記2進符号は、物体表面の円陣位置に突設
される突起の有無をもつて構成される特許請求の
範囲第1項記載の符号読取装置。 3 前記撮像部は、テレビカメラである特許請求
の範囲第1項記載の符号読取装置。 4 前記符号判別部は、コンピユータ回路をその
構成中に含んで成る特許請求の範囲第1項記載の
符号読取装置。
[Scope of Claims] 1. A device for reading and discriminating binary codes arranged in a circle, comprising: an imaging unit for capturing an image of the entire area where the binary code is expressed; and a code discriminator that reads and discriminates the code by inputting an image, and the code discriminator includes two parts having different diameters on the image.
means for setting the above circles; means for reading image configuration data along each circle to determine the binary code; and means for comparing the code reading data for each circle to determine whether or not the data match. and means for re-reading image data along a set circle by moving the center point of the circle based on data mismatch determination. 2. The code reading device according to claim 1, wherein the binary code is configured with or without protrusions protruding at circular positions on the surface of the object. 3. The code reading device according to claim 1, wherein the imaging unit is a television camera. 4. The code reading device according to claim 1, wherein the code discriminator includes a computer circuit in its configuration.
JP60122012A 1985-06-04 1985-06-04 Code reader Granted JPS61278990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60122012A JPS61278990A (en) 1985-06-04 1985-06-04 Code reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60122012A JPS61278990A (en) 1985-06-04 1985-06-04 Code reader

Publications (2)

Publication Number Publication Date
JPS61278990A JPS61278990A (en) 1986-12-09
JPH0481232B2 true JPH0481232B2 (en) 1992-12-22

Family

ID=14825383

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60122012A Granted JPS61278990A (en) 1985-06-04 1985-06-04 Code reader

Country Status (1)

Country Link
JP (1) JPS61278990A (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6423925A (en) * 1987-07-11 1989-01-26 Hokkai Can Method and apparatus for discriminating can of different kind
CH680820A5 (en) * 1990-07-13 1992-11-13 Elpatronic Ag
JP2568750B2 (en) * 1990-11-09 1997-01-08 松下電器産業株式会社 Form creation device
JP2725093B2 (en) * 1991-07-19 1998-03-09 石塚硝子株式会社 Model number reading method
JP3692093B2 (en) * 2002-05-02 2005-09-07 日本山村硝子株式会社 Container inspection device
EP4082925A1 (en) * 2021-04-28 2022-11-02 Uhlmann Pac-Systeme GmbH & Co. KG Testing device and method for testing containers

Also Published As

Publication number Publication date
JPS61278990A (en) 1986-12-09

Similar Documents

Publication Publication Date Title
US7329855B2 (en) Optical inspection of glass bottles using multiple cameras
US7330251B2 (en) Method and apparatus for producing reference image in glass bottle inspecting apparatus
CA2053176C (en) Method of and apparatus for inspecting bottle or the like
JPS5937451A (en) Method and device for automatically inspecting vessel
JPS61278740A (en) Bottle inspecting device
US6597806B1 (en) Image processing method and apparatus
JPH0481232B2 (en)
CN1898555A (en) Substrate inspection device
JPH06258226A (en) Appearance inspection method for tablet
JPH0721301A (en) Mold number reading device
JP2001147199A (en) Pet bottle cap tightening inspection method and device therefor
JPH11351847A (en) Apparatus and method of inspecting defects
JPH01206242A (en) Method and apparatus of checking curved surface
JP3822788B2 (en) Screw inspection device
JPS62200248A (en) Inspector
JP2757800B2 (en) Projection inspection device
JPH0771935A (en) Device and method for visual inspection of ampoule
JPH0861938A (en) Wall thickness distribution inspecting method and inspecting device
WO2004036199A1 (en) Glass bottle mouth part inspection device
JP3310016B2 (en) Inspection equipment for circular inspection objects
JPH08271240A (en) Device and method for testing hollow fiber module
JPS58173410A (en) Detector for crown or the like
JPH1082624A (en) Check inspection apparatus for mouth part and screw part of bottle
JP3157892B2 (en) Tube inspection equipment
JPS63182556A (en) Method and device for optical inspection of bottle or the like

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term