JP2001028034A - Method for reading metal mold number - Google Patents

Method for reading metal mold number

Info

Publication number
JP2001028034A
JP2001028034A JP11199429A JP19942999A JP2001028034A JP 2001028034 A JP2001028034 A JP 2001028034A JP 11199429 A JP11199429 A JP 11199429A JP 19942999 A JP19942999 A JP 19942999A JP 2001028034 A JP2001028034 A JP 2001028034A
Authority
JP
Japan
Prior art keywords
image
center
angle
mold number
projection
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
JP11199429A
Other languages
Japanese (ja)
Other versions
JP3405530B2 (en
Inventor
Toru Ishikura
徹 石倉
Kaoru Katayama
薫 片山
Takanori Hatsuki
孝徳 羽月
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.)
Kirin Techno System Co Ltd
Original Assignee
Kirin Techno System 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 Kirin Techno System Co Ltd filed Critical Kirin Techno System Co Ltd
Priority to JP19942999A priority Critical patent/JP3405530B2/en
Publication of JP2001028034A publication Critical patent/JP2001028034A/en
Application granted granted Critical
Publication of JP3405530B2 publication Critical patent/JP3405530B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a metal mold number reading method which finds out the center position of a cord without being affected by an image of a projection other than the cord. SOLUTION: In this metal mold number reading method, the bottom 2 of a glass bottle 1 is photographed by an image pickup device 5 and the obtained image is processed by an image processor 6 to read a metal mold number out. In the image processing, the image is scanned radially from a set center to obtain the mean value of the angles to start points and end points of three projections and the minimum or maximum value of the distance from the center, the center of the circle passing three points of the obtained mean value of the angle and the maximum or minimum value of the distance is calculated, and the image is scanned radially from the found center to obtain the mean value of angles to the start point and end point of one projection; and the obtained mean value of the angle is regarded as an origin to obtain an array by searching whether or not there is a projection at each specified angle, and the metal mold number is specified on the basis of the obtained array.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ガラス壜等の壜底
にコードで示された金型番号を読取る方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for reading a mold number indicated by a code on the bottom of a bottle such as a glass bottle.

【0002】[0002]

【従来の技術】ガラス壜等の壜底に円周状に配置された
複数の突起物からなるバーコード等で示された金型番号
を撮像し、画像処理により読取る装置として、特許第
2,657,892号がある。突起物は円周状に配置さ
れているため、コードの読取りには複数の突起物の像が
なす円周の中心位置の割出しが必要であり重要である。
2. Description of the Related Art Japanese Patent Application Laid-Open Publication No. HEI 10-163566 discloses an apparatus for imaging a mold number indicated by a bar code or the like composed of a plurality of protrusions circumferentially arranged on the bottom of a bottle such as a glass bottle and reading the image by image processing. No. 657,892. Since the projections are arranged circumferentially, it is important to read the code because it is necessary to determine the center position of the circumference formed by the images of the plurality of projections.

【0003】前述の特許発明では、同心円の間に突起物
の像の全てが含まれるような同心円を予め設定してお
き、二つの円がどの位置で突起物の像と接触しているか
を調べることによって、中心位置がどの方向にずれてい
るかを検出し、その逆方向に中心位置を移動して再度二
つの円と各突起物の像との接触を調べ、最終的に全ての
突起物の像が二つの円のいずれにも接触しなくなるよう
な位置に中心を移動して中心位置を割出している。な
お、通常、壜底にはコードを示す突起物の外側に社標や
金型番号(数字)のようなコード以外の突起物がある。
これらのコード以外の突起物が内側にあることもたまに
ある。
In the above-mentioned patent invention, a concentric circle is set in advance so that all of the image of the projection is included between the concentric circles, and it is determined at which position the two circles are in contact with the image of the projection. By detecting the direction in which the center position is deviated, the center position is moved in the opposite direction, and the contact between the two circles and the image of each projection is checked again. The center is moved to a position where the image does not touch any of the two circles to determine the center position. Usually, on the bottom of the bottle, there are projections other than the code such as a company mark and a mold number (numeral) outside the projection showing the code.
Occasionally, projections other than these cords are inside.

【0004】[0004]

【発明が解決しようとする課題】従来の方式では、撮像
位置で壜が大きくずれた場合、外側の同心円とコード以
外の突起物の像が接触して、コード以外の突起物をコー
ドと誤って認識するという問題がある。このため、中心
位置を割出す新規の方式が必要となった。本発明は、上
述の事情に鑑みなされたもので、コード以外の突起物の
像に影響されないで、コードの中心位置を割出す方式の
金型番号読取り方法を提供することを目的とする。
In the conventional method, when the bottle is largely displaced at the imaging position, the outer concentric circle and the image of the projection other than the code come into contact with each other, and the projection other than the code is mistaken for the code. There is a problem of recognition. For this reason, a new method for determining the center position is required. The present invention has been made in view of the above circumstances, and has as its object to provide a mold number reading method of determining a center position of a cord without being affected by an image of a projection other than the cord.

【0005】[0005]

【課題を解決するための手段】上述の目的を達成するた
め、本発明は、壜底に円周状に配置された複数の突起物
からなるコードで示された金型番号を読取る方法であっ
て、壜底を撮影し、得られた画像を処理して金型番号を
読取る金型番号読取り方法において、画像処理は、設定
した中心から放射状に画像を走査して、3個の突起物そ
れぞれの始点と終点との角度の平均値、および、中心か
らの距離の最小値または最大値を求め、求めた角度の平
均値と距離の最小値または最大値とからなる3点を通る
円の中心を計算して求め、求めた中心から放射状に画像
を走査して、1個の突起物の始点と終点との角度の平均
値を求め、求めた角度の平均値を起点として指定された
角度毎に突起物の有無を探して配列を求め、求めた配列
から金型番号を特定することを特徴とするものである。
According to the present invention, there is provided a method for reading a mold number represented by a code comprising a plurality of protrusions arranged circumferentially on a bottle bottom. In the mold number reading method of photographing the bottom of the bottle and processing the obtained image to read the mold number, the image processing scans the image radially from a set center to each of the three protrusions. The average value of the angle between the start point and the end point, and the minimum or maximum value of the distance from the center, and the center of a circle passing through three points consisting of the average value of the angle and the minimum or maximum value of the distance Is calculated, and the image is scanned radially from the obtained center to calculate the average value of the angle between the start point and the end point of one protrusion, and for each angle specified using the average value of the obtained angle as the starting point First, determine the array by searching for the presence or absence of protrusions, and find the mold number from the determined array. It is characterized in that.

【0006】本発明によれば、コードを示す突起物の像
の位置データからコードの中心位置を直接計算して求
め、求めた中心から放射状に画像を走査して突起物の有
無を探して配列を求め、求めた配列から金型番号を特定
するため、コード以外の突起物の像に影響されることな
く、また、中心位置の割出し精度が向上するので、金型
番号の読取り率も向上する。
According to the present invention, the center position of the code is directly calculated from the position data of the image of the projection indicating the code, and the image is scanned radially from the obtained center to search for the presence or absence of the projection and to arrange the array. To determine the mold number from the determined array, without being affected by the image of the protrusion other than the code, and improving the indexing accuracy of the center position, improving the mold number reading rate I do.

【0007】[0007]

【発明の実施の形態】以下、本発明に係る金型番号読取
り方法の実施の形態を図1乃至図10を参照して説明す
る。図1は本発明の金型番号読取り方法を実施する装置
の構成を示す概略正面図である。図1に示すように、金
型番号読取り方法を実施する装置は、ガラス壜1の壜底
2の下方に設置された照明3およびフレネルレンズ4
と、ガラス壜1の上方に設置されたCCDカメラからな
る撮像装置5と、撮像装置5で得られた画像を処理する
画像処理装置6とから構成されている。ガラス壜1の軸
心と撮像装置5の光軸は概略垂直方向にあり一致してい
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a mold number reading method according to the present invention will be described below with reference to FIGS. FIG. 1 is a schematic front view showing the configuration of an apparatus for carrying out the mold number reading method of the present invention. As shown in FIG. 1, an apparatus for carrying out a mold number reading method includes an illumination 3 and a Fresnel lens 4 installed below a bottle bottom 2 of a glass bottle 1.
And an imaging device 5 composed of a CCD camera installed above the glass bottle 1, and an image processing device 6 for processing an image obtained by the imaging device 5. The axis of the glass bottle 1 and the optical axis of the imaging device 5 are substantially perpendicular and coincide with each other.

【0008】上述の構成において、照明3からの光によ
って、フレネルレンズ4を介してガラス壜1の壜底2が
照明されると、一部の照明光は壜底2を透過し壜口部を
通して撮像装置5に入射する。撮像装置5によって撮影
された画像は画像処理装置6により画像処理される。こ
の画像処理は以下の手順にて行われる。
In the above arrangement, when the bottle bottom 2 of the glass bottle 1 is illuminated by the light from the illumination 3 via the Fresnel lens 4, a part of the illuminating light passes through the bottle bottom 2 and passes through the bottle mouth. The light enters the imaging device 5. The image captured by the imaging device 5 is subjected to image processing by the image processing device 6. This image processing is performed in the following procedure.

【0009】画像処理は、ステップ1として、撮像装置
5で得られた画像から二値画像を得る。図2は、バーコ
ードの一例を示す図であり、撮像装置5で得られた画像
を画像処理装置6により明と暗とに二値化した二値画像
を示す。ただし、図2ではコード以外の突起物の像を除
いてある。図2において、S,M,3,4,E,7,P
の位置にあるバー(暗部)がコードを示す突起物の像で
ある。バーコードは円周を16分割したものである。
S,M,Eの位置のバーは固定である。すなわち、どの
金型番号でも必ずこれらのバーがある。Pはパリティで
ある。Xの位置は固定であり、どの金型番号でもバーは
ない。Sが番号読取りのスタート位置であり、金型番号
は0から7までの8ビットの2進数で示される。バーの
配列を反時計方向に読み金型番号を特定する。Sの位置
のバーをスタートバーと呼ぶ。バーの有無を2進数で
1,0とすると、図2は、 S M E P 1000111010110000 であり、10進法で152を示す。即ち、S,M,E,
Pにおける1は除外して計算すると、Mの次とその次が
それぞれ1で、2=8,2=16、Eの2つ先が1
で、2=128であり、総計152である。
In the image processing, as a step 1, a binary image is obtained from the image obtained by the imaging device 5. FIG. 2 is a diagram illustrating an example of a barcode, and illustrates a binary image obtained by binarizing an image obtained by the imaging device 5 into a bright image and a dark image by the image processing device 6. However, in FIG. 2, the image of the protrusion other than the cord is omitted. In FIG. 2, S, M, 3, 4, E, 7, P
The bar (dark portion) at the position is an image of the protrusion indicating the code. The bar code is obtained by dividing the circumference into 16 parts.
The bars at the positions of S, M and E are fixed. That is, every mold number has these bars. P is parity. The position of X is fixed and there is no bar for any mold number. S is the start position of the number reading, and the mold number is represented by an 8-bit binary number from 0 to 7. The arrangement of the bars is read in a counterclockwise direction to specify the mold number. The bar at the position S is called a start bar. Assuming that the presence or absence of a bar is 1,0 in a binary number, FIG. 2 shows S MEP 100011110101110,000, and shows 152 in a decimal system. That is, S, M, E,
Calculating by excluding 1 in P, the next to M and its next are 1 respectively, 2 3 = 8, 2 4 = 16, and the two ahead of E are 1
Where 2 7 = 128, for a total of 152.

【0010】次に、画像処理は、ステップ2として、設
定した中心から放射状に画像を走査して、3個の突起物
(バー)それぞれの始点と終点との角度の平均値および
中心からの距離の最小値を求める。図3は、この段階を
示す図であり、以下の手順で行われる。 1)画面中央に設定した中心C(x,y)から放
射状(r方向)に反時計方向(θ方向)に画像を走査す
る。Cを中心にR,Rの同心円を設定し、R
との間の部分を走査領域とする。バーコードの外側
にコード以外の突起物がある場合、コード以外のものに
影響されないように、走査領域の外周をバーコードの外
周よりも小さくして、走査領域の内周をバーコードの内
周よりも小さくする。そして、走査線上で内周側から外
周側へ画像データ(明,暗)を読み出す。
Next, in the image processing, as step 2, the image is scanned radially from the set center, and the average value of the angle between the start point and the end point of each of the three protrusions (bars) and the distance from the center Find the minimum value of. FIG. 3 is a diagram showing this stage, which is performed in the following procedure. 1) An image is scanned in a counterclockwise direction (θ direction) radially (r direction) from a center C T (x T , y T ) set at the center of the screen. Set the concentric R 1, R 2 centered on C T, the portion between the R 1 and R 2 and the scan region. If there is a protrusion other than the code outside the barcode, make the outer circumference of the scanning area smaller than the outer circumference of the barcode and make the inner circumference of the scanning area the inner circumference of the barcode so as not to be affected by anything other than the code. Smaller than Then, the image data (bright and dark) is read from the inner circumference to the outer circumference on the scanning line.

【0011】2)先ず、バーとバーとの隙間をみつけ
る。走査線上で明だけのときが隙間である。図3ではθ
=0°の位置が隙間になっている。隙間をみつけたら走
査を続行し、最初のバー(B)を見つける。走査線上
で明から暗に変化した走査線の角度が始点の角度(θ
0S)である。明から暗への変化がなくなった走査線
(隙間)の一つ手前の走査線の角度が終点の角度(θ
0E)である。(θ0S+θ0E)/2が始点と終点と
の角度の平均値(θ)である。内周側から外周側へ画
像データを読み出すので、走査線上で明から暗に変化し
たとき、それ迄の明の画素数にRを加えたものが中心
からバー迄の距離となる。従って、θ0Sからθ
0E迄の間の走査で記憶していた明の画素数の最小値に
を加えたものが中心Cからの距離の最小値(r
)である。
2) First, a gap between the bars is found. The gap is when there is only light on the scanning line. In FIG. 3, θ
The position at = 0 ° is a gap. If a gap is found, continue scanning and find the first bar (B 0 ). The angle of the scanning line that changes from light to dark on the scanning line is the angle of the starting point (θ
0S ). The angle of the scanning line immediately before the scanning line (gap) where the change from light to dark has disappeared is the angle of the end point (θ
0E ). (Θ 0S + θ 0E ) / 2 is the average value (θ 0 ) of the angle between the start point and the end point. Since the inner circumferential side reads the image data toward the outer periphery, when implicitly changed from the bright scan line, plus R 1 is the distance from the center C T up bar on the number of pixels the bright up it. Therefore, from θ 0S to θ
Minimum value of the distance from the center C T plus R 1 to the minimum value of the number of pixels the bright which has been stored in the scanned between until 0E (r
0 ).

【0012】3)最初のバー(B)を見つけた角度
(θ0S)から70°進んだ角度から画像を走査する。
走査を続行し、2番目のバー(B)を見つける。B
の場合と同様にバー(B)の始点と終点との角度の平
均値(θ)および中心からの距離の最小値(r)を
求める。後述するように、3個のバーからなる3点を通
る円の中心を求めるためには3個のバーは互いに離れて
いることが望ましい。本実施例でのバーの配列は90°
ずつ離れた位置に固定のS,M,Eのバーがあり、ま
た、円周を16分割(1分割=22.5°)している。
このため、本実施例では70°(>22.5°×3=6
7.5°)進めた位置から次のバーを見つける。 4)2番目のバー(B)を見つけた角度(θ1S)か
ら70°進んだ角度から画像を走査する。3番目のバー
(B)を見つける。Bの場合と同様にバー(B
の始点と終点との角度の平均値(θ)および中心から
の距離の最小値(r)を求める。
3) The image is scanned from an angle advanced by 70 ° from the angle (θ 0S ) at which the first bar (B 0 ) was found.
Continue scanning and find the second bar (B 1 ). B 0
As in the case of ( 1 ), the average value (θ 1 ) of the angle between the start point and the end point of the bar (B 1 ) and the minimum value (r 1 ) of the distance from the center are obtained. As will be described later, it is desirable that the three bars are separated from each other in order to find the center of a circle passing through three points formed by the three bars. The arrangement of the bars in this embodiment is 90 °
There are fixed S, M, and E bars at positions away from each other, and the circumference is divided into 16 (1 division = 22.5 °).
Therefore, in the present embodiment, 70 ° (> 22.5 ° × 3 = 6)
7.5 °) Find the next bar from the advanced position. 4) Scan the image from an angle advanced 70 ° from the angle (θ 1S ) at which the second bar (B 1 ) was found. Find the third bar (B 2 ). Bar (B 2 ) as in the case of B 0
The average value (θ 2 ) of the angle between the starting point and the ending point of, and the minimum value (r 2 ) of the distance from the center are determined.

【0013】バーコードの内側にコード以外の突起物が
ある場合には、画像処理は、ステップ2として、設定し
た中心から放射状に画像を走査して、3個の突起物(バ
ー)それぞれの始点と終点との角度の平均値および中心
からの距離の最大値を求める。図4はこの段階を示す図
であり、以下の手順で行われる。 1)画面中央に設定した中心C(x,y)から放
射状に反時計方向に画像を走査する。Cを中心に
,Rの同心円を設定し、RとRとの間の部分
を走査領域とする。バーコードの内側にコード以外の突
起物がある場合、コード以外のものに影響されないよう
に、走査領域の外周をバーコードの外周よりも大きく
し、走査領域の内周をバーコードの内周よりも大きくす
る。そして、走査線上で外周側から内周側へ画像データ
(明,暗)を読み出す。
If there is a projection other than the code inside the bar code, the image processing is to scan the image radially from the set center at step 2 to start each of the three projections (bars). The average value of the angle between the point and the end point and the maximum value of the distance from the center are determined. FIG. 4 is a diagram showing this stage, which is performed in the following procedure. 1) center was set in the center of the screen C T (x T, it scans the image in the counterclockwise direction radially from y T). Set the concentric R 1, R 2 centered on C T, the portion between the R 1 and R 2 and the scan region. If there are protrusions other than the code inside the barcode, make the outer circumference of the scanning area larger than the outer circumference of the barcode, and make the inner circumference of the scanning area larger than the inner circumference of the barcode so as not to be affected by anything other than the code. Also increase. Then, image data (bright and dark) is read from the outer peripheral side to the inner peripheral side on the scanning line.

【0014】2)角度の平均値を求めるのは図3に示す
最小値を求める場合と同じである。但し、走査領域の内
周はバーコードの内周よりも大きいので、バーの始点と
終点は走査領域の内周がバーと交叉する点となる。外周
側から内周側へ画像データを読み出すので、走査線上で
明から暗に変化したとき、それ迄の明の画素数をR
ら引いたものが中心からバー迄の距離となる。従って、
θ′0Sからθ′0Eまでの間の走査線で明の画素数の
最小値をR から引いたものが中心からの距離の最大値
(r′)である。
2) The average value of the angles is obtained as shown in FIG.
This is the same as when finding the minimum value. However, within the scanning area
The circumference is larger than the inner circumference of the barcode, so
The end point is a point where the inner circumference of the scanning area crosses the bar. Perimeter
Image data is read from the
When changing from light to dark, the number of bright pixels up to that point is R2Or
What is subtracted is the distance from the center to the bar. Therefore,
θ ′0SFrom θ '0EThe number of bright pixels
R is the minimum value 2Minus the maximum distance from the center
(R '0).

【0015】次に、画像処理は、ステップ3として、3
個の突起物(バー)それぞれの角度の平均値と距離の最
小値または最大値とからなる3点を通る円の中心を計算
して求める。図5乃至図7は、この段階を示す図であ
り、以下の手順で行われる。 1)B,B,Bの3点は設定した中心Cに対
して極座標表示で図5のようになる。 2)B,B,Bの3点をx=r・cosθ+
,y=−r・sinθ+yにより、画面の直交座
標に置換すると図6に示すようになる。すなわち、B
はP(x,y)、BはP(x,y)、B
はP(x,y)にそれぞれ置換される。
Next, in the image processing, as step 3, 3
The center of a circle passing through three points consisting of the average value of the angles of the individual projections (bars) and the minimum or maximum distance is calculated and obtained. 5 to 7 are diagrams showing this stage, and are performed in the following procedure. 1) B 0, B 1, 3 point B 2 is as shown in FIG. 5 in polar coordinates with respect to the center C T set. 2) Three points B 0 , B 1 , and B 2 are defined as x = r · cos θ +
x T, by y = -r · sinθ + y T , as shown in FIG. 6 that substitution in the orthogonal coordinates of the screen. That is, B 0
Is P 0 (x 0 , y 0 ), B 1 is P 1 (x 1 , y 1 ), B 1
2 is replaced by P 2 (x 2 , y 2 ), respectively.

【0016】3)図7(a)において、直線P
を、y=ax+bとすると、垂直二等分線はy=
(−1/a)x+mとなる。直線Pを、y=
x+bとすると、垂直二等分線はy=(−1/a
)x+mとなる。a,b,mはP,P ,P
座標から求まる数値である。2個の垂直二等分線の交点
が、求める中心C(x,y)となる。なお、図7
(b)に示すように、yとyとの差が極めて小さ
いとき、即ち、直線Pの勾配が極めて小さいとき
は、垂直二等分線の勾配が極めて大きくなるので、直線
の替わりに直線Pを用いる。図7(c)
に示すように、yとyとの差が極めて小さいとき
は、直線Pの替わりに直線Pを用いる。
3) In FIG. 7A, a straight line P0P
1And y = a1x + b1Then the vertical bisector is y =
(-1 / a1) X + m1Becomes Straight line P1P2And y =
a2x + b2Then the vertical bisector is y = (− 1 / a
2) X + m2Becomes a, b, m are P0, P 1, P2of
It is a numerical value obtained from coordinates. Intersection of two perpendicular bisectors
But the desired center CC(XC, YC). FIG.
As shown in (b), y0And y1Is very small
, That is, the straight line P0P1When the gradient of is extremely small
Is a straight line because the gradient of the perpendicular bisector is very large.
P0P1Instead of a straight line P0P2Is used. FIG. 7 (c)
As shown in1And y2Is very small
Is a straight line P1P2Instead of a straight line P0P2Is used.

【0017】次に、画像処理は、ステップ4として、ス
テップ3により求めた中心から放射状に画像を走査し
て、1個の突起物(バー)の始点と終点との角度の平均
値を求め、求めた角度の平均値を起点として指定された
角度毎にバーの有無を探して配列を求め、求めた配列か
ら金型番号を特定する。図8乃至図10はこの段階を示
す図であり、以下の手順で行われる。 1)求めた中心C(x,y)から放射状に反時計
方向に画像を走査する。走査領域,走査線上での画像デ
ータの読み出し方向、および、バーの始点と終点との角
度の平均値を求めるのは、設定した中心から画像を走査
したときと同じである。
Next, in the image processing, as step 4, the image is scanned radially from the center obtained in step 3, and the average value of the angle between the starting point and the ending point of one protrusion (bar) is obtained. An array is obtained by searching for the presence or absence of a bar for each specified angle with the average value of the obtained angles as a starting point, and a mold number is specified from the obtained array. 8 to 10 show this stage, and are performed in the following procedure. 1) An image is scanned in a counterclockwise direction radially from the obtained center C C (x C , y C ). The scan area, the read direction of the image data on the scan line, and the average value of the angle between the start point and the end point of the bar are the same as when the image is scanned from the set center.

【0018】2)画像を走査して最初のバーをみつけ
る。最初に見つけた1個のバーの角度の平均値(θ
を求め、θ を起点として22.5°毎にバーの有無を
探す。本実施例のバーコードは16分割なので、指定さ
れた角度は360゜/16=22.5°となる。8分割
では45°毎にバーの有無を探すこととなる。バーの有
無を探すには角度毎に前後に数本の走査線を読み有無を
確実に知る。図9では、バーの配列は、 1000 1110 1011 0000 である。図10では、バーの配列は、 1011 0000 1000 1110 である。なお、図9と図10は同じ金型番号である。
2) Scan the image to find the first bar. Average value of the angle of one bar found first ( θ 0 )
And the presence or absence of a bar is searched every 22.5 ° starting from θ 0 . Since the barcode of this embodiment is divided into 16, the specified angle is 360 ° / 16 = 22.5 °. In the eight division, the presence or absence of a bar is searched every 45 °. In order to search for the presence or absence of a bar, several scanning lines before and after each angle are read and the presence or absence of reading is surely known. In FIG. 9, the arrangement of the bars is 1000 1110 1011 0000. In FIG. 10, the arrangement of the bars is 1011 0000 1000 1110. 9 and 10 have the same mold number.

【0019】3)図9、図10とも同じ金型番号(10
進数で152)であり、読み出す位置によってバーの配
列が異なるだけである。スタートバーから並べると、 1000 1110 1011 0000 となる。この配列を円順列とした16通りの配列は全て
同じ金型番号(10進数で152)である。前述の16
通りの配列のどれかが入力されると152を出力するル
ックアップテーブル(略称 L.U.T)と呼ばれる変
換表を記憶装置に設け、求めた配列から金型番号を特定
する。
3) The same mold number (10
It is 152) in hexadecimal notation, and only the arrangement of the bars differs depending on the read position. When arranged from the start bar, it becomes 1000 1110 1011 0000. All of the 16 arrangements in which this arrangement is a circular permutation have the same mold number (152 in decimal). 16 above
A conversion table called a look-up table (abbreviated as LUT) that outputs 152 when any of the arrays is input is provided in the storage device, and the mold number is specified from the obtained array.

【0020】[0020]

【発明の効果】以上説明したように、本発明によれば、
コードを示す突起物の像の位置データからコードの中心
位置を直接計算して求めるため、コード以外の突起物の
像に影響されない。また、中心位置の割出し精度が向上
するので、金型番号の読取り率も向上する。
As described above, according to the present invention,
Since the center position of the code is directly calculated and obtained from the position data of the image of the projection indicating the code, it is not affected by the image of the projection other than the code. In addition, since the indexing accuracy of the center position is improved, the reading rate of the mold number is also improved.

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

【図1】本発明の金型番号読取り方法を実施する装置の
構成を示す概略正面図である。
FIG. 1 is a schematic front view showing a configuration of an apparatus for performing a mold number reading method of the present invention.

【図2】バーコードの一例を示す図であり、撮像装置で
得られた画像を画像処理装置により明と暗とに二値化し
た二値画像を示す。
FIG. 2 is a diagram illustrating an example of a barcode, and illustrates a binary image obtained by binarizing an image obtained by an imaging device into bright and dark by an image processing device.

【図3】設定した中心から放射状に画像を走査して、3
個の突起物(バー)それぞれの始点と終点との角度の平
均値および中心からの距離の最小値を求める方法を示す
図である。
FIG. 3 is a diagram for scanning an image radially from a set center;
It is a figure which shows the method of calculating | requiring the average value of the angle of the start point and the end point of each protrusion (bar), and the minimum value of the distance from the center.

【図4】設定した中心から放射状に画像を走査して、3
個の突起物(バー)それぞれの始点と終点との角度の平
均値および中心からの距離の最大値を求める方法を示す
図である。
FIG. 4 is a diagram for scanning an image radially from a set center;
It is a figure which shows the method of calculating | requiring the average value of the angle of the start point and the end point of each protrusion (bar), and the maximum value of the distance from a center.

【図5】3個の突起物(バー)それぞれの角度の平均値
と距離の最小値または最大値とからなる3点を通る円の
中心を計算して求める方法を示す図である。
FIG. 5 is a diagram showing a method of calculating and calculating the center of a circle passing through three points consisting of an average value of angles of three projections (bars) and a minimum value or a maximum value of a distance.

【図6】3個の突起物(バー)それぞれの角度の平均値
と距離の最小値または最大値とからなる3点を通る円の
中心を計算して求める方法を示す図である。
FIG. 6 is a diagram showing a method of calculating and calculating the center of a circle passing through three points consisting of an average value of angles of three projections (bars) and a minimum value or a maximum value of a distance.

【図7】3個の突起物(バー)それぞれの角度の平均値
と距離の最小値または最大値とからなる3点を通る円の
中心を計算して求める方法を示す図である。
FIG. 7 is a diagram showing a method of calculating and calculating the center of a circle passing through three points consisting of an average value of angles of three projections (bars) and a minimum value or a maximum value of a distance.

【図8】求めた中心から放射状に画像を走査して、1個
の突起物(バー)の始点と終点との角度の平均値を求
め、求めた角度の平均値を起点として指定された角度毎
にバーの有無を探して配列を求め、求めた配列から金型
番号を特定する方法を示す図である。
FIG. 8 scans an image radially from the obtained center, finds the average value of the angle between the start point and the end point of one protrusion (bar), and uses the average value of the found angle as the starting point to specify the angle. It is a figure which shows the method of searching for the presence or absence of a bar | burr every time, and calculating | requiring an arrangement | sequence, and specifying a mold number from the calculated | required arrangement | sequence.

【図9】求めた中心から放射状に画像を走査して、1個
の突起物(バー)の始点と終点との角度の平均値を求
め、求めた角度の平均値を起点として指定された角度毎
にバーの有無を探して配列を求め、求めた配列から金型
番号を特定する方法を示す図である。
FIG. 9 scans an image radially from the obtained center, finds the average value of the angle between the start point and the end point of one protrusion (bar), and designates the angle specified using the average value of the found angles as the starting point. It is a figure which shows the method of searching for the presence or absence of a bar | burr every time, and calculating | requiring an arrangement | sequence, and specifying a mold number from the calculated | required arrangement | sequence.

【図10】求めた中心から放射状に画像を走査して、1
個の突起物(バー)の始点と終点との角度の平均値を求
め、求めた角度の平均値を起点として指定された角度毎
にバーの有無を探して配列を求め、求めた配列から金型
番号を特定する方法を示す図である。
FIG. 10 scans an image radially from the determined center to obtain 1
The average value of the angle between the starting point and the ending point of each of the protrusions (bars) is obtained, and the array is obtained by searching for the presence or absence of a bar at each specified angle with the obtained average value of the starting point as a starting point. It is a figure showing the method of specifying a model number.

【符号の説明】[Explanation of symbols]

1 ガラス壜 2 壜底 3 照明 4 フレネルレンズ 5 撮像装置 6 画像処理装置 DESCRIPTION OF SYMBOLS 1 Glass bottle 2 Bottle bottom 3 Lighting 4 Fresnel lens 5 Imaging device 6 Image processing device

───────────────────────────────────────────────────── フロントページの続き (72)発明者 羽月 孝徳 神奈川県横浜市鶴見区生麦一丁目17番1号 株式会社キリンテクノシステム内 Fターム(参考) 5B072 BB00 CC17 CC24 CC26 HH20 ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Takanori Hazuki 1-17-1 Raw Mugi, Tsurumi-ku, Yokohama-shi, Kanagawa F-term in Kirin Techno System Co., Ltd. 5B072 BB00 CC17 CC24 CC26 HH20

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 壜底に円周状に配置された複数の突起物
からなるコードで示された金型番号を読取る方法であっ
て、壜底を撮影し、得られた画像を処理して金型番号を
読取る金型番号読取り方法において、 画像処理は、設定した中心から放射状に画像を走査し
て、3個の突起物それぞれの始点と終点との角度の平均
値、および、中心からの距離の最小値または最大値を求
め、求めた角度の平均値と距離の最小値または最大値と
からなる3点を通る円の中心を計算して求め、 求めた中心から放射状に画像を走査して、1個の突起物
の始点と終点との角度の平均値を求め、求めた角度の平
均値を起点として指定された角度毎に突起物の有無を探
して配列を求め、求めた配列から金型番号を特定するこ
とを特徴とする金型番号読取り方法。
1. A method for reading a mold number indicated by a code composed of a plurality of protrusions circumferentially arranged on a bottle bottom, the method comprising photographing the bottle bottom and processing an obtained image. In the mold number reading method of reading the mold number, the image processing scans the image radially from the set center, and averages the angles of the start point and the end point of each of the three protrusions, and the distance from the center. Find the minimum or maximum value of the distance, calculate and calculate the center of a circle passing through three points consisting of the average value of the obtained angle and the minimum or maximum value of the distance, and scan the image radially from the obtained center. The average value of the angle between the start point and the end point of one projection is determined, and the array is determined by searching for the presence or absence of a projection at each specified angle with the average value of the determined angle as the starting point. A mold number reading method characterized by specifying a mold number.
JP19942999A 1999-07-13 1999-07-13 Mold number reading method Expired - Fee Related JP3405530B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19942999A JP3405530B2 (en) 1999-07-13 1999-07-13 Mold number reading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19942999A JP3405530B2 (en) 1999-07-13 1999-07-13 Mold number reading method

Publications (2)

Publication Number Publication Date
JP2001028034A true JP2001028034A (en) 2001-01-30
JP3405530B2 JP3405530B2 (en) 2003-05-12

Family

ID=16407677

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19942999A Expired - Fee Related JP3405530B2 (en) 1999-07-13 1999-07-13 Mold number reading method

Country Status (1)

Country Link
JP (1) JP3405530B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005024548A (en) * 2003-06-30 2005-01-27 Emhart Glass Sa Container inspection machine
CN101659012A (en) * 2009-09-03 2010-03-03 蒋士明 Method for processing container glass mold

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005024548A (en) * 2003-06-30 2005-01-27 Emhart Glass Sa Container inspection machine
JP4551127B2 (en) * 2003-06-30 2010-09-22 エムハート・グラス・ソシエテ・アノニム Container inspection machine
CN101659012A (en) * 2009-09-03 2010-03-03 蒋士明 Method for processing container glass mold

Also Published As

Publication number Publication date
JP3405530B2 (en) 2003-05-12

Similar Documents

Publication Publication Date Title
EP0720113B1 (en) Two-dimensional code reading apparatus
JP3228197B2 (en) Optical information reader and recording medium
JPH03294976A (en) Reference mark pattern detecting device
JP2001028034A (en) Method for reading metal mold number
JP2001266126A (en) Method and device for detecting defect and method of manufacturing for mask
JP2001027614A (en) Bottle bottom inspecting method
JP2657892B2 (en) Mold number reader
JP2000101924A (en) Defect detection correction device in image input device
JP3519239B2 (en) Object rotation angle detection method
JP3745302B2 (en) Method and apparatus for detecting reference position of annular image by omnidirectional imaging
JP5825110B2 (en) Two-dimensional code reader
JP2012185725A (en) Optical information reading apparatus
JP3648563B2 (en) Method and apparatus for detecting reference position of annular image by omnidirectional imaging
JPH08167023A (en) Road white line detecting device
JPS61289476A (en) Format forming system for character reader
JP3745301B2 (en) Method and apparatus for detecting reference position of annular image by omnidirectional imaging
JP2766031B2 (en) Image processing apparatus and image processing method
JPH05344341A (en) Automatic binarizing device
JP2551383B2 (en) Straight line detection and correction device
JPS60163575A (en) Picture reader
JPH0861919A (en) Center position detecting method for optical disc
JPS62115973A (en) Picture processing method and its device
JPH05303665A (en) Reading device for character marked on cylinder surface
JPS63296461A (en) Image area discriminating device
JPS6373766A (en) Detecting system for deterioration in fluorescent lamp

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090307

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120307

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120307

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130307

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees