JPS61278990A - Code reader - Google Patents

Code reader

Info

Publication number
JPS61278990A
JPS61278990A JP60122012A JP12201285A JPS61278990A JP S61278990 A JPS61278990 A JP S61278990A JP 60122012 A JP60122012 A JP 60122012A JP 12201285 A JP12201285 A JP 12201285A JP S61278990 A JPS61278990 A JP S61278990A
Authority
JP
Japan
Prior art keywords
code
circle
bottle
image
reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP60122012A
Other languages
Japanese (ja)
Other versions
JPH0481232B2 (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

Landscapes

  • Sorting Of Articles (AREA)

Abstract

PURPOSE:To read out a code surely and precisely even if distortion or an error in size exists by collating the code reading data of a circle set up on a picture, and if dissidence is decided, moving the center point of the circle and reexecuting the collation of data. CONSTITUTION:The luminance distribution of the bottom of a bottle is picked up by a TV camera 22 and the image is stored in an image memory 29. A code reading circuit 31 sets up the 1st circle R1 having a prescribed radius around the 1st center point, reading out picture element data along the circle R1 from the image memory 29 and sends the read data to a code deciding circuit to read out the code. When the image of the bottle bottom is sheared in position due to the distortion or positional shear of the bottle and the code reading is unsuitable, the 2nd circle R2 having a radius different from that of the 1st circle R1 is set up and code reading processing is executed on the basis of picture element data along the 2nd circle R2. When the image of the bottle bottom is sheared in position, the 2nd center point is set up, the 1st circle R1 is set up again and the code is read out on the basis of the picture element data along the 1st circle R1.

Description

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

〈発明の背景〉 一般に瓶成形機は、多数の金型を備えており、これら金
型を用いて多数の瓶を同時成形することが行われている
。成形後の瓶は、冷却後、瓶検査装置によって各種欠陥
の有無が検査されるが、欠陥を含む瓶については、その
原因を調べるため、どの金型で成形されたかを知る必要
がある。従来この種一連の調査は、全て人手によって実
施しており、これがため作業能率がきわめて悪いという
問題があった。
<Background of the Invention> A bottle molding machine is generally equipped with a large number of molds, and these molds are used to simultaneously mold a large number of bottles. After the molded bottles are cooled, they are inspected for various defects using a bottle inspection device, but in order to investigate the cause of defects in bottles, it is necessary to know which mold was used to mold them. Conventionally, a series of investigations of this type have been carried out entirely manually, which has led to 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, the code is read from the bottom of the bottle while the bottle is rotated or stopped by shining light through the mouth of the bottle. If there is an error in the code or a positional shift occurs between the bottle and the reading unit, there are problems such as the code becoming impossible to read or reading errors occurring frequently.

〈発明の目的〉 この発明は、上記問題を解消するためのものであって、
符号の読取りを確実且つ正確に行うことのできる符号読
取装置を提供することを目的とする。
<Object of the invention> This invention is intended to solve the above problems,
It is an object of the present invention 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 a device for reading and discriminating binary codes arranged in a circle.
A code reading device is constituted by an imaging section for capturing an image of the entire part in which the base code is expressed, and a code discriminating section for inputting the image obtained by the imaging section and reading and discriminating the code, and the code discriminating section means for setting two or more circles with different diameters on the image, means for reading image configuration data along each circle to determine the binary code, and comparing the code reading data each time. The apparatus includes means for determining whether or not the data match, and means for moving the center point of the circle based on the determination of the discrepancy and re-reading the image data along 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, 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 upstream of this bottle conveyance path 2, a bottle forming machine (not shown) is installed.
is located. The bottle molding machine uses a large number of molds to mold a large number of bottles 50 at the same time. During bottle molding, a code indicating the molding mold is formed on the bottom of the bottle, and by reading the code, defective bottles can be detected. It is now possible to determine which mold was used to mold the product.

前記符号は、複数ビットの2進符号であって、第2図に
示す如く、瓶底に複数の突起3を一体突設し且つ所定の
半径位置rにこれらを円陣に配置して形成される。図示
例の場合、円周を16等分しており、図中■〜■で示す
位置は符号構成ビットに、■の位置はパリティビットに
、a〜dの位置はスタートビットに、S、〜S3の位置
は基準ビットに、それぞれ割り当てである。
The code is a multi-bit binary code, and 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, as shown in FIG. . In the illustrated example, the circumference is divided into 16 equal parts, and the positions marked ■ to ■ in the figure are code constituent bits, the positions marked ■ are parity bits, the positions a to d are start bits, S, to The position of S3 is assigned to each reference bit.

■〜■の符号構成ビットは、突起有りが「1」に、突起
なしが「0」にそれぞれ対応し、従ってこの8ビツトに
より金型番号に合わせた合計256種の符号が設定でき
るようになっている。
The code configuration bits from ■ to ■ 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. ing.

■のパリティビットは、符号の正否判定に用いるもので
、■〜■の「1」のビットの合計が偶数となるようにす
る。a ”−dのスタートビットは常に「0」であり、
またS、〜S3の基準ビットは常に「1」であって、こ
れらは読取開始位置の検出用に供される。
The parity bit (2) is used to determine whether the code is correct or not, so that the sum of the "1" bits of (2) to (2) is an even number. The start bit of a”-d is always “0”,
Further, the reference bits S and -S3 are always "1" and are used for detecting the reading start position.

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

前記瓶検査装置1は、周面に複数の凹部4を備えたスタ
ーホイール5を間歇回転させる送り機構6と、前記凹部
4の停止位W(以下、「検査ステーション」という)毎
に配備された瓶検査機(図示せず)とから成るもので、
前記送り機構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 feed mechanism 6 provided at each stopping position W of the recesses 4 (hereinafter referred to as an "inspection station"). It consists of a bottle inspection machine (not shown).
Upstream of the feeding mechanism 6, a feeding mechanism 8 having a screw mechanism 7 for feeding the bottles 50 into each recess 4 is provided, and downstream of the feeding mechanism 6, a screw mechanism 8 for collecting defective bottles is provided. A table 9 is provided.

図示例の場合、図中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-E in the figure, and four of these inspection stations A-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 presses a rotating roller 11 against the circumferential surface of a bottle 50 located at an inspection station to rotate the bottle by the frictional force. Between each inspection station, the bottle is moved to the next inspection station. A guide plate 12 is provided to guide the user.

前記最終の検査ステーションEには、瓶底の符号を読み
取るための符号読取装置13が配備しである。この符号
読取装置13は、第4図に示す如く、瓶50の底面を支
持する支持板14の下方位置に配設されており、支持板
14上方の空き空間には、例えば瓶高さ、瓶口径、瓶口
の平滑度合、瓶底不良等を検査する検査機15を配備し
て、空間の有効利用をはかっている。
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, An inspection machine 15 is installed to inspect the caliber, smoothness of the bottle mouth, defects in the bottom of the bottle, etc., in order to make effective use of space.

前記支持板14は、金属基板16上に樹脂板17を重ね
た構造であって、金属基板16には、瓶位置に対応して
切欠き18が、また樹脂板17には、下開きのテーバ孔
19がそれぞれ設けである。
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 position of the bottle, and the resin plate 17 has a taber that opens downward. Holes 19 are provided respectively.

前記符号読取装置13は、瓶底へ投光して突起3のみを
有効に光らせるためのリング状光源20と、この光源2
0を収納するためのケース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;
A case 21 for storing 0, a television camera 22 for taking an image of the bottle bottom, which is placed inside the case 21 facing toward the bottom of the bottle, and the image obtained by this television camera 22 is input to read the code. It is composed of a code discrimination circuit 23 for discrimination.

前記リング状光源20は、2本のリング状蛍光灯24.
25を上下に並列配置して成り、発光しない各蛍光灯の
電極部分は、対角方向に位置させることにより、瓶底へ
の投光のむらが生じないように工夫しである。ごれら蛍
光灯24゜25を収納するケース21は、ハウジング2
6と、光源20の内側および上側を被う拡散板27とで
構成され、この拡散板27の上面には透明の樹脂板28
が配備されている。
The ring-shaped light source 20 includes two ring-shaped fluorescent lamps 24.
25 are arranged vertically in parallel, and the electrode portions of the fluorescent lamps that do not emit light are positioned diagonally to prevent uneven light projection onto the bottom of the bottle. The case 21 that houses the fluorescent lamp 24°25 is the housing 2
6 and a diffuser plate 27 that covers the inside and upper side of the light source 20, and 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が接続
され、前記モニタテレビ3oによって画像メモリ29の
記憶画像を目視にて確認できるようになっている。
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. As shown in FIG. 6, the illustrated image memory 29 has a large number of pixels of 256 bits each in the vertical and horizontal directions, and each pixel stores pixel data having a brightness level corresponding to the image. Image memory 29
A monitor television 30 and a code reading circuit 31 are connected to the monitor television 3o, so that the images stored in the image memory 29 can be visually checked through the monitor television 3o.

符号読取回路31は、画像メモリ29に格納された画像
の各画素データを読み出して、2値化等の処理を施した
後、符号のデータを読み取るものである。この符号読取
回路31は、パーソナルコンピュータ32のCP U 
(CentralProcessing  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 a CPU of a personal computer 32.
(Central Processing Unit)
33, and the CPU 33 executes various processes while controlling the operation of the code reading circuit 31 based on the program in the memory 34, and also controls a series of operations from code reading to discrimination. It is.

第7図は、上記符号読取回路31の具体回路構成を示す
。図示例の符号読取回路31は、画像メモリ29上に前
記符号を読み取るための円(第6図中、破線RI、R2
で示す)を設定すると共に、この円上に位置する画素の
XY座標を順次指定してゆくための回路部31Aと、画
像メモリ29上の指定座標位置より読み出された画素デ
ータを2値化処理して符号を読み取るための回路部31
Bとを含み、各回路部31A。
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 (broken lines RI, R2 in FIG. 6) for reading the code on the image memory 29.
), and a circuit unit 31A for sequentially specifying the XY coordinates of pixels located on this circle, and binarizing the pixel data read from the specified coordinate position on the image memory 29. Circuit section 31 for processing and reading codes
B, and each circuit section 31A.

31Bは、それぞれインターフェイス35を介して画像
メモリ29に接続されている。
31B are each connected to the image memory 29 via an interface 35.

回路部31Aは、画像メモリ29上に径および中心点の
異なる複数種の円を設定する機能を備えており、径の異
なるnMMの円を規定するXY座標データ(この実施例
では、ひとつの日情報につき360個の座標データ)を
格納しである一対のROM (Read 0nly  
Memory) 36 。
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 has XY coordinate data (in this embodiment, one day A pair of ROMs (Read only 360 pieces of coordinate data per piece of information)
Memory) 36.

37と、各ROM36.37のアドレスを順次計数して
XY座標データを出力させるブリセットカウンタ38と
、円の中心点を所定座標移動させるための加算器39.
40とを含む。
37, a brisset counter 38 that sequentially counts the addresses of each ROM 36 and 37 and outputs XY coordinate data, and an adder 39 that moves the center point of the circle by a predetermined coordinate.
40.

第8図は、前記各ROM36.37に格納された径の異
なるn種の日情報FI−F、、を示し、このうち何れか
日情報をパーソナルコンピュータ32のキーボード等で
指定すると、前記プリセットカウンタ3日に、その日情
報の先頭アドレスがプリセットされるようになっている
FIG. 8 shows n types of day information FI-F with different diameters stored in each of the ROMs 36 and 37, and when any of these day information is designated with the keyboard of the personal computer 32, the preset counter On the 3rd, the start address of that day's information is preset.

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

前記回路部31Bは、画像メモリ29より読み出された
画素データを保持するためのランチ回路41と、ラッチ
された各画素データを所定のしきい値と比較して2値化
するための比較器42と、16ビツト構成の符号の抽出
に必要な16個のゲート信号を形成するゲート信号生成
回路43と、ゲート信号生成回路43より与えられたゲ
ート信号によって前記比較器42からの2値化出力を読
み取って符号を判定し且つ抽出する符号判定回路44と
、符号判定回路44の出力を16ビツト分保持して前記
マイクロコンピュータ32へ出力するシフトレジスタ4
5とを備えている。
The circuit section 31B includes a launch 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 binarizing it. 42, a gate signal generation circuit 43 that forms 16 gate signals necessary for extracting a 16-bit code, and a binarized output from the comparator 42 using the gate signal provided from the gate signal generation circuit 43. a code determination circuit 44 that reads, determines and extracts the code; and a shift register 4 that holds 16 bits of the output of the code determination circuit 44 and outputs it to the microcomputer 32.
5.

第10図は、画像メモリ29より読み出された円上の画
素データを連続して示した図であり、横軸が角度、縦軸
が輝度レベルを示している。
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.

同図中、輝度レベルの大きい部分は、瓶底の突起部分に
対応しており、この画素データを比較器42において所
定のしきい値THと比較することにより、第11図に示
すような符号を構成するパルス信号を得る。
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. 11 is obtained. Obtain the pulse signal that makes up the .

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

かくて符号判定回路44は、比較器42からの論理「1
」の信号がゲート内に規定個数存在するか否かによって
符号を判定しており、その結果、16ビツト構成のデー
タをビットシリアルに出力し、このデータは、シフトレ
ジスタ45に一旦呼えられた後、マイクロコンピュータ
32に取り込まれる。
Thus, the sign determination circuit 44 receives the logic “1” from the comparator 42.
The sign is determined based on whether or not a specified number of signals exist in the gate, and as a result, 16-bit data is output bit serially, and this data is once called into the shift register 45. Thereafter, it is taken into the microcomputer 32.

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

今瓶検査に先立ち、装置適所に設けた初期設定ボタンを
オンすると、所定のランプが点灯して、初期化処理の開
始が報知される(ステップ101、.102)。つぎに
テレビカメラ22によって画像メモリ29に格納された
瓶底の画像(例えば初期化のためのモデルの画像)が、
モニタテレビ30に取り込まれて表示される(ステップ
103)。そしてつぎのステップ104において、いず
れか円情報が選択されて円の半径が入力指定されると、
CPU33は、第6図に示す如く、画像メモリ29上に
その中心点Pを中心として円(例えばR1)を描き、こ
の円は前記画像と共にモニタテレビ30に表示される(
ステップ105)。この画像メモリ29内の画像は、一
定時間(例えば1秒)毎にモニタテレビ30に取り込ま
れて、画面表示が更新されるもので、もしテレビカメラ
30の中心がずれて円R4に対し突起3の円陣配列画像
が位置ずれしているようなときは、この画面を見ながら
テレビカメラ22の位置を動かして調整を行う。
Prior to the bottle inspection, when an initial setting button provided at a suitable location of the device is turned on, a predetermined lamp lights up to notify the start of the initialization process (steps 101 and 102). Next, the image of the bottle bottom (for example, the image of the model for initialization) stored in the image memory 29 by the television camera 22 is
The image 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,
As shown in FIG. 6, the CPU 33 draws a circle (for example, R1) on the image memory 29 centered on the center point P, and this circle is displayed on the monitor television 30 together with the image (
Step 105). The image in the image memory 29 is taken into the monitor television 30 at regular intervals (for example, 1 second), and the screen display is updated. If the position of the circular array image is shifted, 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, the answer to step 106 becomes "YES", the lamp goes out, and the apparatus waits for the start of the examination.

かくして瓶検査動作が開始されて、瓶搬送路2よりスタ
ーホイール5の各凹部4へ瓶50が送り込まれると、そ
れぞれ瓶50は、送り機構6の間歇回転動作により順次
検査ステーションA−Eへ送られて、その都度所定の検
査が実施される。そして最終の検査ステーションEに瓶
50が至って、CPU33に検査タイミング信号が入力
されると、ステップ2が“YES”となり、つぎのステ
ップ3で符号読取装置13が作動せられる。
When the bottle inspection operation is thus started and the bottles 50 are sent from the bottle transport path 2 to each concave portion 4 of the star wheel 5, the bottles 50 are sequentially sent to inspection stations A to E by the intermittent rotating operation of the feeding mechanism 6. 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, "YES" is determined in step 2, and the code reading device 13 is activated in the next step 3.

今検査ステーションEで静止する瓶50の底面に、リン
グ状の光源20から拡散板27を経た均一の光が一様に
照射されると、瓶底の突起3に当った光は反射されるこ
とになって、突起3のみが明るく光り、その他の部分は
暗くなる。
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. As a result, only the protrusion 3 shines brightly, and the other parts become dark.

この瓶底の輝度分布は直ちにテレビカメラ22により撮
像され、その画像は画像メモリ29に格納されると共に
、符号読取回路31によって符号の読取りが実施される
。この符号読取回路31においては、まず第1番目の中
心点く第9図参照)を円中心とする所定の半径の第1の
円R1(第6図に示す)が設定され、その円に沿う画素
データの続出し、更には読取りがハード的に実施される
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 31, first, a first circle R1 (shown in FIG. 6) having a predetermined radius with the first center point (see FIG. 9) as the center of the circle is set, and The successive output of pixel data and further reading are performed by hardware.

まずブリセットカウンタ38に所定のプリセットカウン
タ値が与えられ、これにより各ROM36.37の対応
するアドレスから前記第1の円R1を設定する360個
のXY座標データがカウンタ38の計数動作とともに次
々に読み出される。つぎの各加算器39.40にはそれ
ぞれROM36.37の出力と、CPU33からの中心
点補正値データとが入力されて加算処理されるが、この
段階では、第1番目の中心点(第6図では、P点)が設
定されているから、各補正値は「ゼロJである。
First, a predetermined preset counter value is given to the preset counter 38, and as a result, 360 XY coordinate data for setting the first circle R1 are sequentially transferred from the corresponding address of each ROM 36, 37 as the counter 38 performs a counting operation. Read out. The outputs of the ROMs 36 and 37 and the center point correction value data from the CPU 33 are input to each of the following adders 39 and 40, and addition processing is performed. In the figure, since point P) is set, each correction value is "zero J."

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

もし瓶の歪や瓶の位置ずれ等に起因して、円R,に対し
瓶底の画像が位置ずれしていると、1個のパルス信号が
2つのゲートにまたがって検出されるなどして、ステッ
プ4の「読取り適正か?Jの判定がNO″となり、ステ
ップ11へ進む。
If the image of the bottom of the bottle is misaligned with respect to the circle R due to bottle distortion or misalignment of the bottle, one pulse signal may be detected across two gates, etc. , the judgment in step 4, ``Is reading appropriate?J'' is NO'', and the process proceeds to step 11.

前記ステップ5での転送データにつき、つぎにCPU3
3は、まずステップ6において、第2図中、a〜d位置
のスタートビットに相当するデータが存在するか否か、
つぎのステップ7において、第2図中、S+−53位置
の基準ビットに相当するデータが存在するか否か、さら
にステップ8において、第2図中、■位置のパリティビ
ットに基づくパリティが適正か否かが、それぞれチェッ
クされる。その結果、ステップ6〜8の何れもが“YE
S”のときは、ステップ9へ進んで、今回のデータ読取
りが2度目か否かがチェックされ、この場合、その判定
は“No”であるから、ステップ10へ進む。そしてス
テップ10では、前記の第1の円R2とは径が異なる第
2の円R2が、前記と同じ中心点で設定され、その円R
2に沿う画素データに基づき2度目の符号の読取処理が
前記符号読取回路31で実行される。すなわち符号読取
回路31において、プリセットカウンタ38には前回と
は異なるプリセット値が与えられ、これにより各ROM
36..37の対応するアドレスから前記第2の円R2
を設定する360個のxy座標データがカウンタ38の
計数動作とともに次々に読み出されて画像メモリ29へ
与えられるもので、以下、画像メモリ29からの画素デ
ータの読出し、2値化処理、符号判定等の各動作が前記
と同様に実行される。
Regarding the transfer data in step 5, next the CPU 3
3, in step 6, it is determined whether there is data corresponding to the start bits at positions a to d in FIG.
In the next step 7, it is determined whether there is data corresponding to the reference bit at position S+-53 in FIG. 2, and in step 8, whether the parity based on the parity bit at position ■ in FIG. Each is checked to see if it is not. As a result, all of steps 6 to 8 are “YE”.
If the result is "S", 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", so the process advances to step 10.In step 10, the A second circle R2 having a different diameter from the first circle R2 is set at the same center point as above, and that circle R
A second code reading process is executed by the code reading circuit 31 based on the pixel data along the lines 2 and 2. That is, in the code reading circuit 31, a preset value different from the previous one is given to the preset counter 38, so that each ROM
36. .. 37 corresponding address to said second circle R2
360 x and y coordinate data for setting are read out one after another along with the counting operation of the counter 38 and given to the image memory 29.Hereinafter, reading of pixel data from the image memory 29, binarization processing, and code determination will be described. Each operation is performed in the same manner as described above.

これに対し、もし瓶の歪や瓶の位置ずれ等に起因して、
第1の円R5に対する瓶底画像の位置ずれがあったよう
な場合で、ステップ4.6〜8の何れか判定が“No”
となったときは、ステップ11へ進み、第2番目の中心
点(第9図参照)が設定される。そして続くステップ1
2の「全中心点設定済か?」の判定は“NOlであるか
ら、ステップ13において前記と同じ半径の第1の円R
,が再設定され、その円R5に沿う画素データに基づき
符号の読取が再実施される。この場合、符号読取回路3
1においては、第2番目の中心点を設定するのに、CP
U33から中心点補正値データΔYが加算器39.40
に与えられ、これにより画像メモリ29上では、第6図
中、点Pを中心点とする円に沿う画素データの読出しが
行われることになる。
On the other hand, if the bottle is distorted or the bottle is misaligned,
In the case where there is a positional shift of the bottle bottom image with respect to the first circle R5, any judgment in steps 4.6 to 8 is "No".
When , the process proceeds to step 11, where the second center point (see FIG. 9) is set. And then step 1
2, "Have all center points been set?" is NOl, so in step 13, the first circle R with the same radius as above
, is reset, and the code is read again based on the pixel data along the circle R5. In this case, the code reading circuit 3
1, to set the second center point, CP
Center point correction value data ΔY is added from U33 to adder 39.40
As a result, pixel data is read out on the image memory 29 along a circle having the point P as the center point in FIG.

か(して前記第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はスタートビットの位
置を手掛りに符号を判読して、その判読結果を例えば上
位の制御機(瓶検査装置の制御機)へ出力する。
(The second code reading process based on the second circle R2 is performed, and if the reading is performed properly, the determination in step 4 becomes "YES" and the code reading circuit 31 The read data of 16 bits is transferred to the CPU 33 and stored in the memory 34.Then, the CPU 33 performs the checks in steps 6 to 8, and if all of the results in steps 6 to 8 are "YES", further steps are performed. Step 9
will be checked. In this case, the determination of "Is this the second reading?" in step 9 is also "YES", so the process proceeds to step 14, where it is determined whether the first read data and the second read data match. be done. As a result, when the determination in step 14 is "YES", it is determined that the read data is appropriate, and the CPU 33 reads the code using the position of the start bit as a clue, and transmits the reading result to, for example, a host controller ( output to the bottle inspection device controller).

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

そして中心点の設定を第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 will be "YES" and error processing will be performed in step 16. .

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

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

第1図は瓶検査装置の全体構成例を示す平面図、第2図
は瓶底に付される符号を示す説明図、第3図は第2図n
−n線に沿う突起の断面図、第4図は符号読取装置の構
成例を示す縦断面図、第5図は符号読取装置の回路構成
例を示すブロック図、第6図は画像メモリの記憶内容を
説明するための図、第7図は符号読取回路の具体例を示
すブロック図、第8図は符号読取回路中のROMの内容
を説明するための図、第9図は中心点の設定例を示す図
、第10図は画像メモリより読み出される画素データを
示す図、第11図は符号読取動作のタイミングを示す図
、第12図は符号読取動作の制御の流れを示すフローチ
ャート、第13図は初期化処理の流れを示すフローチャ
ートである。 13・・・・・・符号読取装置  22・・・・・・テ
レビカメラ23・・・・・・符号判別回路  31・・
・・・・符号読取回路32・・・・・・パーソナルコン
ピュータ33・・・・・・CP U      34・
・・・・・メモリ38・・・・・・プリセットカウンタ 36、37・・・・・・ROM    39.40・・
・・・・加算器特許出願人  山村硝子株式会社 代理人 弁理士  鈴 木 山 充 岳70図面!、・−ハ示す図 侶し漁め妓えイ市示■図 うキ/l 図   オ6店−i乞■又、、Mfの十仁白
断ii図う¥5=]  η繋特収慧2Iの回路、プロ、
りλ”A2 U   fyc、@ y ++ ; 、x
a :寺3 iL#Iiiう+乙=乙      画イ
象メモリカ’itノドを内り譬11図−71−52RO
F鮨内名4元1図 洲/3図 ネθJbl化丈Th フ〇−杢V−ト ”Al2Ta1    オ5Su耳又1カイ令のノロー
¥−マート”A’7  T21   右多i乞耳え囲路
のフ゛ロック21控
Fig. 1 is a plan view showing an example of the overall configuration of the bottle inspection device, Fig. 2 is an explanatory drawing showing the symbols attached to the bottom of the bottle, and Fig. 3 is Fig. 2 n.
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. 6 is a storage of the image memory. Figure 7 is a block diagram showing a specific example of the code reading circuit. Figure 8 is a diagram explaining the contents of the ROM in the code reading circuit. Figure 9 is a diagram showing the setting of the center point. FIG. 10 is a diagram showing pixel data read out from the image memory; FIG. 11 is a diagram showing the timing of the code reading operation; FIG. 12 is a flowchart showing the control flow of the code reading operation; The figure 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 counters 36, 37...ROM 39.40...
... Adder patent applicant Yamamura Glass Co., Ltd. agent Patent attorney Mitsugaku Suzuki 70 drawings! ,・-Ha shows the master and the fisherman, the city shows the city, the figure is shown, and the figure is 6 stores. 2I circuit, professional,
λ”A2 U fyc, @ y ++ ; , x
a: Temple 3 iL#IiiiU+Otsu=Otsu Image Imaginary memory card'it throat is inside Parable 11 Figure-71-52RO
F sushi internal name 4 yuan 1 zu / 3 fig. Block 21 on the road

Claims (4)

【特許請求の範囲】[Claims] (1)円陣に配置された2進符号を読み取って判別する
装置であって、 前記2進符号が表された部分の全体を撮像するための撮
像部と、撮像部で得た画像を入力して前記符号を読み取
り判別する符号判別部とから成り、 前記符号判別部は、前記画像上に径が異なる2以上の円
を設定する手段と、それぞれ円に沿って画像構成データ
を読み取って2進符号を判別する手段と、各円毎の符号
読取データを照合してデータの一致の有無を判定する手
段と、データ不一致判定に基づき前記円の中心点を移動
させて設定円に沿う画像データの読取りを再実地させる
手段とを具備して成る符号読取装置。
(1) A device that reads and discriminates binary codes arranged in a circle, which includes an imaging section for capturing an image of the entire area where the binary code is expressed, and an image obtained by the imaging section is input. and a code discriminating unit that reads and discriminates the code using the image, and the code discriminating unit includes means for setting two or more circles with different diameters on the image, and a means for setting two or more circles with different diameters on the image, and a means for reading the image configuration data along each circle and converting the image into binary data. a means for determining the code; a means for comparing the code reading data for each circle to determine whether or not the data match; and means for re-performing the reading.
(2)前記2進符号は、物体表面の円陣位置に突設され
る突起の有無をもって構成される特許請求の範囲第1項
記載の符号読取装置。
(2) The code reading device according to claim 1, wherein the binary code is constituted by presence or absence of protrusions protruding from circular positions on the surface of the object.
(3)前記撮像部は、テレビカメラである特許請求の範
囲第1項記載の符号読取装置。
(3) The code reading device according to claim 1, wherein the imaging unit is a television camera.
(4)前記符号判別部は、コンピュータ回路をその構成
中に含んで成る特許請求の範囲第1項記載の符号読取装
置。
(4) The code reading device according to claim 1, wherein the code discrimination section 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 true JPS61278990A (en) 1986-12-09
JPH0481232B2 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)

Cited By (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
JPH04177595A (en) * 1990-11-09 1992-06-24 Matsushita Electric Ind Co Ltd Document forming device
JPH04313172A (en) * 1990-07-13 1992-11-05 Elpatronic Ag Code reading method
JPH08190602A (en) * 1991-07-19 1996-07-23 Ishizuka Glass Co Ltd Mold number reading method
JP2003320319A (en) * 2002-05-02 2003-11-11 Nihon Yamamura Glass Co Ltd Container inspection system
WO2022229089A1 (en) * 2021-04-28 2022-11-03 Uhlmann Pac-Systeme Gmbh & Co. Kg Testing device and method for testing containers

Cited By (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
JPH04313172A (en) * 1990-07-13 1992-11-05 Elpatronic Ag Code reading method
JPH04177595A (en) * 1990-11-09 1992-06-24 Matsushita Electric Ind Co Ltd Document forming device
JPH08190602A (en) * 1991-07-19 1996-07-23 Ishizuka Glass Co Ltd Mold number reading method
JP2003320319A (en) * 2002-05-02 2003-11-11 Nihon Yamamura Glass Co Ltd Container inspection system
WO2022229089A1 (en) * 2021-04-28 2022-11-03 Uhlmann Pac-Systeme Gmbh & Co. Kg Testing device and method for testing containers

Also Published As

Publication number Publication date
JPH0481232B2 (en) 1992-12-22

Similar Documents

Publication Publication Date Title
US7330251B2 (en) Method and apparatus for producing reference image in glass bottle inspecting apparatus
US7329855B2 (en) Optical inspection of glass bottles using multiple cameras
CN1052066C (en) Optical inspection of container finish dimensional parameters
CN101566582B (en) Medicine bottle label information online detection system in powder injection production based on mechanical vision
KR0145173B1 (en) Apparatus for inspecting a bottom border portion of a transparent glass level
US20140119644A1 (en) System and method of adaptive color correction for pill recognition in digital images
US20140355849A1 (en) System and method of using imprint analysis in pill identification
JPS61278740A (en) Bottle inspecting device
JPS61278990A (en) Code reader
US6597806B1 (en) Image processing method and apparatus
JP3423783B2 (en) Container inner surface inspection device
CN1898555A (en) Substrate inspection device
JP7454706B2 (en) Air bubble identification device, air bubble identification method, and foreign object detection system
JP3295628B2 (en) Foreign matter detection method and foreign matter detection device
CN216369036U (en) Bottle inspection machine
JP3243541B2 (en) Tablet appearance inspection method
JP2657892B2 (en) Mold number reader
JP2001147199A (en) Pet bottle cap tightening inspection method and device therefor
JP2757800B2 (en) Projection inspection device
WO2004036199A1 (en) Glass bottle mouth part inspection device
JPH0771935A (en) Device and method for visual inspection of ampoule
JP3887084B2 (en) Optical member inspection device
JPS58173410A (en) Detector for crown or the like
JPH01243193A (en) Method for detecting container code and method for recognizing it
JPS61161088A (en) Picture processing device

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