JPH05157707A - Appearance inspection method of bottle top - Google Patents

Appearance inspection method of bottle top

Info

Publication number
JPH05157707A
JPH05157707A JP3324891A JP32489191A JPH05157707A JP H05157707 A JPH05157707 A JP H05157707A JP 3324891 A JP3324891 A JP 3324891A JP 32489191 A JP32489191 A JP 32489191A JP H05157707 A JPH05157707 A JP H05157707A
Authority
JP
Japan
Prior art keywords
mouth
defect
screw
image
bottle
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
JP3324891A
Other languages
Japanese (ja)
Other versions
JP2973663B2 (en
Inventor
Yukio Koga
由紀夫 古賀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP3324891A priority Critical patent/JP2973663B2/en
Publication of JPH05157707A publication Critical patent/JPH05157707A/en
Application granted granted Critical
Publication of JP2973663B2 publication Critical patent/JP2973663B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To enable a defect such as cutout, crack, and contamination at a top with screw of a light-transmission bottle to be detected, for example, even if the defect is generated in parallel with a flight. CONSTITUTION:A top with a screw of a transmission bottle 1 which rotates around an axis line is irradiated from a side-outer direction for picking up 4 an image of a portion on an inner-periphery surface from a skew outer direction, a shaded image signal of one periphery of an inner-periphery surface of the top whose image is picked up is latched 5, it is subjected to differential processing in periphery direction and axis-line direction of the top, and then binary-coding processing is performed based on a specified threshold for obtaining a logical sum 6. After the logical sum is obtained, it is subjected to a thin-line processing 7, a part which exists separately from other within the thin-lined part is labeled 8, it is judged 11 that a first defect exists based on excess of the number of labels which are obtained by this labeling over a reference number, and then it is judged 11 that there is a second defect based on presence 9 of recessed and projection parts exceeding an allowable limitation at the thin-lined part excluding an edge part of a screw after the thin-line processing.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、透光性瓶のネジ付き
口部における欠け,ひび,汚れ等の欠陥を検出し、もっ
て瓶口の外観検査をおこなう瓶口の外観検査方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bottle mouth appearance inspection method for detecting defects such as cracks, cracks, and stains in a threaded mouth portion of a light-transmitting bottle and performing a bottle mouth appearance inspection.

【0002】[0002]

【従来の技術】従来の瓶口の外観検査装置について、図
7の構成図と、図8の処理に係る各処理工程に関連する
模式図とを参照しながら説明する。図7において、1は
対象物としての瓶、2は回転台で、瓶1を軸線の回りに
回転させ、3は照明部で、瓶1の口部を側外方から照射
する。4は撮像部で、瓶1の照射された口部の内周面箇
所を斜め外方から撮像する。20は画像処理部で、撮像部
4からの信号を処理し外観に係る特徴量を求める。21は
判定部で、画像処理部20からの特徴量に基づいて良否の
判定をおこなう。さて、画像処理部20の構成するものと
して、15は原画取込み手段で、撮像された口部の内周面
一周分の濃淡画像信号を取り込み、16は微分・2値化手
段で、取り込まれた濃淡画像信号を、口部の周方向につ
いて微分処理して絶対値をとった後に、しきい値に基づ
いき2値化する。17は射影手段で、2値化された画像信
号を瓶口部の周方向に対して(軸線方向に)射影する。
18は特徴量算出手段で、射影したときのパターンから特
徴量、たとえば周方向の分布幅や射影パターンの面積,
射影パターンの高さなどを求める。
2. Description of the Related Art A conventional bottle mouth appearance inspection apparatus will be described with reference to the block diagram of FIG. 7 and a schematic diagram relating to each processing step relating to the processing of FIG. In FIG. 7, 1 is a bottle as an object, 2 is a turntable, and the bottle 1 is rotated around an axis, and 3 is an illuminating unit, which irradiates the mouth of the bottle 1 from the outside. An image pickup unit 4 picks up an image of the inner peripheral surface portion of the irradiated mouth of the bottle 1 from an obliquely outer side. An image processing unit 20 processes a signal from the image pickup unit 4 to obtain a feature amount related to the appearance. Reference numeral 21 denotes a determination unit, which determines pass / fail based on the feature amount from the image processing unit 20. As the constituents of the image processing unit 20, reference numeral 15 is an original image capturing means, which captures the imaged grayscale image signal for one round of the inner peripheral surface of the mouth portion, and 16 is captured by a differential / binarizing means. The grayscale image signal is differentiated in the circumferential direction of the mouth to obtain an absolute value, and then binarized based on a threshold value. A projecting means 17 projects the binarized image signal in the circumferential direction of the bottle mouth (in the axial direction).
Reference numeral 18 denotes a feature amount calculation means, which determines the feature amount from the pattern when projected, such as the distribution width in the circumferential direction or the area of the projected pattern,
Find the height of the projection pattern.

【0003】従来の外観検査装置の動作について、図8
を主に、図7を補助的に参照しながら説明する。図8
(a) は原画取込み手段15によって取り込まれた口部の内
周面一周分の濃淡画像(原画像)である。この原画像
で、Aはネジ端部、Bは欠陥としての欠けである。同図
(b) は微分・2値化手段16により原画像を周方向につい
て微分して絶対値をとり、所定しきい値に基づいて2値
化された画像である。この2値化画像で、A1 はネジ端
部Aに係るもの、B1 は欠けBに係るものである。な
お、ネジの端部以外のネジ山は、ほぼ横軸に平行である
から、原画像を周方向について微分すると零になり、画
像としては消える。また、A1,B1 とも、狭い間隔の二
重線になるのは、明部分から暗部分に移行するときと、
逆に暗部分から明部分に移行するときとに対応するため
である。同図(c) は射影手段17によって2値化された画
像信号を瓶口部の周方向に対して(軸線方向に)射影し
たときの各射影パターンA2,B2 である。次に、特徴量
算出手段18によって、各射影パターンA2,B2 から特徴
量、たとえば周方向の各分布幅Wa,Wb や、同じくその
各面積Sa,Sb 、同じくその各高さHa,Hb が求められ
る。次に、判定部21によって、たとえば算出された特徴
量としての各分布幅Wa,Wb が、対応する基準のネジ部
の各分布幅Wao, Wboと比較され、許容範囲にあれば良
品、許容範囲を逸脱すれば不良品と判定される。
FIG. 8 shows the operation of the conventional visual inspection apparatus.
Will be mainly described with reference to FIG. Figure 8
(a) is a grayscale image (original image) of one round of the inner peripheral surface of the mouth captured by the original image capturing means 15. In this original image, A is a screw end portion and B is a defect as a defect. Same figure
(b) is an image obtained by differentiating the original image in the circumferential direction by the differentiating / binarizing means 16 to obtain an absolute value and binarizing it based on a predetermined threshold value. In this binarized image, A1 relates to the screw end portion A and B1 relates to the chip B. Since the threads other than the ends of the screws are substantially parallel to the horizontal axis, they are zero when the original image is differentiated in the circumferential direction, and disappear as an image. In addition, the double line with a narrow interval for both A1 and B1 is when transitioning from the bright part to the dark part,
On the contrary, this is to cope with the case where the dark portion is switched to the bright portion. FIG. 6C shows the respective projection patterns A2 and B2 when the image signal binarized by the projection means 17 is projected in the circumferential direction of the bottle mouth portion (in the axial direction). Next, the feature amount calculating means 18 obtains the feature amount from each projected pattern A2, B2, for example, each distribution width Wa, Wb in the circumferential direction, each area Sa, Sb, and each height Ha, Hb. Be done. Next, the determination unit 21 compares each distribution width Wa, Wb as the calculated feature amount with each distribution width Wao, Wbo of the corresponding reference screw portion, and if the distribution width Wa, Wb is within the allowable range, it is a non-defective product, the allowable range. If it deviates from the above, it is judged as a defective product.

【0004】[0004]

【発明が解決しようとする課題】従来の外観検査装置で
は、図8(a) において、欠け,ひび,汚れ等の欠陥が、
ネジ付き口部のネジ山と平行に生じている場合には、瓶
口部の周方向について微分したとき画像として表れな
い、つまり検出されないという問題がある。
In the conventional appearance inspection apparatus, in FIG. 8 (a), defects such as chips, cracks, stains, etc.
If it occurs parallel to the thread of the threaded mouth, there is a problem that it does not appear as an image when differentiated in the circumferential direction of the bottle mouth, that is, it is not detected.

【0005】この発明の課題は、従来の技術がもつ以上
の問題点を解消し、欠け,ひび,汚れ等の欠陥が、ネジ
付き口部のネジ山と平行に生じているときでも、これを
検出可能な瓶口の外観検査方法を提供することにある。
The object of the present invention is to solve the above problems of the prior art and to eliminate defects such as chips, cracks, and dirt even when they are parallel to the threads of the threaded mouth. An object is to provide a detectable bottle mouth appearance inspection method.

【0006】[0006]

【課題を解決するための手段】請求項1に係る瓶口の外
観検査方法は、軸線の回りに回転される透光性瓶のネジ
付き口部を側外方から照らすとともに、この照らされた
前記口部の内周面箇所を斜め外方から撮像する工程と;
撮像された前記口部の内周面一周分の濃淡画像信号を取
り込む工程と;取り込まれた前記濃淡画像信号を、前記
口部の周方向と、軸線方向とについてそれぞれ微分処理
した後に、所定しきい値に基づき2値化処理する工程
と;この2値化処理したものについて、論理和をとった
後に細線化処理する、または細線化処理の後に論理和を
とる工程と;この細線化処理の後に、細線化部分の内、
他と隔離されて存在する部分にラベル付けするラベリン
グ処理をする工程と;このラベリング処理によって得ら
れたラベル数が基準数を超えることに基づき、第1の欠
陥ありと判定する工程と;前記細線化処理の後に、前記
ネジの端部を除く細線化部分において許容限度以上の凹
凸部分を求め、この許容限度以上の凹凸部分の存在に基
づき、第2の欠陥ありと判定する工程と;を備える。
A bottle mouth appearance inspection method according to a first aspect of the present invention is to illuminate a threaded mouth portion of a translucent bottle which is rotated around an axis from the outside and to illuminate it. Imaging the inner peripheral surface portion of the mouth from the outside obliquely;
Capturing a captured grayscale image signal for one round of the inner peripheral surface of the mouth; differentiating the captured grayscale image signal with respect to the circumferential direction of the mouth and the axial direction, and then predetermined. A step of performing a binarization process based on a threshold value; a step of taking a logical sum of the binarized items and then performing a thinning process, or a process of taking a logical sum after the thinning process; Later, in the thinned part,
A step of performing a labeling process for labeling a portion existing separately from the others; a step of determining that there is a first defect based on the number of labels obtained by this labeling process exceeding a reference number; And a second defect is determined based on the presence of the uneven portion exceeding the allowable limit, in the thinned portion excluding the end portion of the screw, after the hardening treatment. ..

【0007】請求項2に係る瓶口の外観検査方法は、請
求項1に記載の方法において、ネジに係る細線化部分の
ラベリング処理は、口部の内周面一周分の展開された細
線化部分で、その展開の方向に係る各端部での軸線方向
座標が同一のもの同士は連続していると判断することに
基づいておこなわれる。
The bottle mouth appearance inspection method according to a second aspect is the method according to the first aspect, wherein the labeling process of the thinned portion related to the screw is performed by expanding the thinned line for one round of the inner peripheral surface of the mouth portion. It is performed based on the judgment that parts having the same axial direction coordinate at each end portion in the direction of development are continuous.

【0008】請求項3に係る瓶口の外観検査方法は、請
求項1または2に記載の方法において、許容限度以上の
凹凸部分は、細線化部分で任意に選ばれる第1の画素
と、これを起点として各側に所定画素数だけ隔たる第
2,第3の各画素とを結ぶ線分とのなす角度が許容値以
下であることに基づいて求められる。
A bottle mouth appearance inspection method according to a third aspect is the method according to the first or second aspect, wherein the uneven portion exceeding the allowable limit is a first pixel arbitrarily selected in the thinned portion, and It is obtained based on the fact that the angle formed by the line segment connecting the second and third pixels, which are separated from each other by a predetermined number of pixels on each side, is less than or equal to the allowable value.

【0009】[0009]

【作用】請求項1に係る瓶口の外観検査方法では、(1)
軸線の回りに回転される透光性瓶のネジ付き口部を外側
方から照らすとともに、この照らされた口部の内周面箇
所を斜め外方から撮像し、(2) 撮像された口部の内周面
一周分の濃淡画像信号を取り込み、(3) 取り込まれた濃
淡画像信号を、口部の周方向と、軸線方向とについてそ
れぞれ微分処理した後に、所定しきい値に基づき2値化
処理し、その論理和をとり、(4) この2値化処理したも
のについて、論理和をとった後に細線化処理し、または
細線化処理の後に論理和をとり、(5) その後に、細線化
部分の内、他と隔離されて存在する部分にラベル付けす
るラベリング処理をし、(6) このラベリング処理によっ
て得られたラベル数が基準数を超えることに基づき、ネ
ジ部から隔離,孤立した形の第1の欠陥ありと判定し、
(7) 細線化処理の後に、ネジの端部を除く細線化部分に
おいて許容限度以上の凹凸部分を求め、この許容限度以
上の凹凸部分の存在に基づき、ネジ部から孤立してはい
ないが凹凸のひどい形の第2の欠陥ありと判定する。
[Operation] In the bottle mouth appearance inspection method according to claim 1, (1)
The screwed mouth of the translucent bottle that is rotated around the axis is illuminated from the outside, and the inner peripheral surface of the illuminated mouth is imaged obliquely from outside, and (2) the imaged mouth is imaged. The grayscale image signal for one round of the inner peripheral surface of is captured, and (3) the captured grayscale image signal is differentiated in the circumferential direction of the mouth and in the axial direction, and then binarized based on a predetermined threshold value. Process and take the logical sum of these, and (4) for this binarized one, take the logical sum and then perform the thinning process, or take the logical sum after the thinning process, and (5) Labeling is applied to the existing part that is isolated from the others, and (6) It is isolated and isolated from the screw part because the number of labels obtained by this labeling process exceeds the standard number. It is judged that there is the first defect of the shape,
(7) After the thinning process, find the uneven part above the allowable limit in the thinned part excluding the end part of the screw, and based on the existence of the uneven part above the allowable limit, it is not isolated from the screw part but uneven It is determined that there is a terrible shape of the second defect.

【0010】とくに請求項2に係る瓶口の外観検査方法
では、口部の内周面一周分の展開された細線化部分で、
その展開の方向に係る各端部での軸線方向座標が同一の
もの同士は連続していると判断することに基づき、ネジ
に係る細線化部分のラベリング処理がなされる。
Particularly, in the bottle mouth appearance inspection method according to the second aspect, in the thinned portion which is developed for one round of the inner peripheral surface of the mouth portion,
Labeling processing of the thinned portion related to the screw is performed on the basis that it is determined that those having the same axial direction coordinate at each end portion in the direction of the development are continuous.

【0011】とくに請求項3に係る瓶口の外観検査方法
では、細線化部分で任意に選ばれる第1の画素と、これ
を起点として各側に所定画素数だけ隔たる第2,第3の
各画素とを結ぶ線分とのなす角度が許容値以下であるこ
とに基づき、許容限度以上の凹凸部分が求められる。
In particular, in the bottle mouth appearance inspection method according to the third aspect, the first pixel arbitrarily selected in the thinned portion and the second and third pixels spaced from each other by a predetermined number of pixels on the basis of the first pixel. Since the angle formed by the line segment connecting each pixel is equal to or less than the allowable value, the uneven portion exceeding the allowable limit is obtained.

【0012】[0012]

【実施例】この発明に係る瓶口の外観検査方法の適用例
としての外観検査装置について、以下に図を参照しなが
ら説明する。図1は外観検査装置の構成図である。この
適用例が従来例と異なる点は、画像処理部の内部構成
と、判定部の判定基準とにある。図1において、対象物
としての瓶1と、回転台2と、照明部3と、撮像部4と
は従来例におけるのと同じである。画像処理部10におい
て、原画像取込み手段5は、従来例における原画像取込
み手段15と同じく、口部内周面一周分の濃淡画像信号を
取り込む。微分・2値化・論理和手段6は、取り込まれ
た濃淡画像信号を、瓶口部の周方向と、軸線方向とにつ
いてそれぞれ微分処理した後に、所定しきい値に基づき
2値化処理し、それぞれの論理和をとる。細線化手段7
は、この論理和をとったものを細線化処理する。ラベリ
ング手段8は、この細線化処理の後に、細線化部分の
内、他と隔離されて存在する部分にラベル付けするラベ
リング処理をする。凹凸検出手段9は、細線化処理の後
に、ネジの端部を除く細線化部分において許容限度以上
の、つまり異常な凹凸部分を求める。次の、判定部11
は、一つには、ラベリング処理によって得られたラベル
数が基準数を超えることに基づき、第1の欠陥ありと判
定し、もう一つには、許容限度以上の、つまり異常な凹
凸部分の存在に基づき、第2の欠陥ありと判定する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An appearance inspection apparatus as an application example of the bottle mouth appearance inspection method according to the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a visual inspection apparatus. This application example is different from the conventional example in the internal configuration of the image processing unit and the determination reference of the determination unit. In FIG. 1, a bottle 1 as an object, a turntable 2, an illumination unit 3, and an imaging unit 4 are the same as in the conventional example. In the image processing unit 10, the original image capturing means 5 captures a grayscale image signal for one round of the inner peripheral surface of the mouth, like the original image capturing means 15 in the conventional example. The differentiating / binarizing / OR means 6 differentiates the captured grayscale image signal in the circumferential direction of the bottle mouth portion and the axial direction, and then binarizes it based on a predetermined threshold value. Take the logical sum of each. Thinning means 7
Performs thinning processing of the logical sum. After the thinning process, the labeling unit 8 performs a labeling process of labeling a part of the thinned part which is isolated from the others. After the thinning process, the unevenness detecting means 9 obtains an uneven part that is equal to or more than the allowable limit, that is, an abnormal uneven part in the thinned part excluding the end part of the screw. Next, the determination unit 11
Is based on the fact that the number of labels obtained by the labeling process exceeds the reference number, and on the other hand, it is determined that there is a first defect. Based on the presence, it is determined that there is a second defect.

【0013】外観検査装置の動作について図2,図3の
前段,後段の各フローチャートと、図4(a) 〜(c) の外
観検査装置による処理の各処理工程における画像の模式
図とを参照しながら説明する。図2において、ステップ
S1で、瓶口内周面一周分の濃淡画像信号が取り込まれ
る。これに対応する画像の模式図が、図4(a) に示され
る。同図において、F,Gはそれぞれ欠陥としてのひ
び,欠けであるが、もちろん汚れであってもよい。ステ
ップS2で、瓶口の周方向について微分処理され(正確
には、その絶対値がとられ)、つづくステップS3で2
値化処理される。同様に、ステップS4で、瓶口の軸線
方向について微分処理され(正確には、その絶対値がと
られて)、つづくステップS5で2値化処理される。ス
テップS6で、各ステップS3,S5で得られたものの
論理和がとられて、ステップS7で細線化処理される。
なお、各ステップS3,S5の2値化処理の後に、それ
ぞれ細線化処理をして、次にこれらの論理和をとる手順
にすることもできる。なお、微分処理の演算は厳密にし
ようとすると簡単でないので、近似演算のために微分オ
ペレータが用いられ、通常、縦横3枡目のマトリックス
である微分マスクが適用される。いずれにしても、以上
の工程が終了したときの処理画像の模式図は、図4(b)
に示されるようになり、各欠けF,Gに係る画像はほぼ
実態を表している。この図において、ネジ部や各欠け
F,Gの画像が狭い間隔の二重線になるのは、微分処理
において、従来例で述べたと同様に、明部分から暗部分
に移行するときと、逆に暗部分から明部分に移行すると
きとに対応するからである。
Regarding the operation of the visual inspection apparatus, refer to the flowcharts of the front and rear stages of FIGS. 2 and 3 and the schematic diagrams of the images in the respective processing steps of the processing by the visual inspection apparatus of FIGS. 4 (a) to 4 (c). While explaining. In FIG. 2, in step S1, a grayscale image signal for one round of the inner surface of the bottle mouth is captured. A schematic diagram of the corresponding image is shown in FIG. In the figure, F and G are cracks and chips as defects, but of course they may be stains. In step S2, the peripheral direction of the bottle mouth is differentiated (to be precise, its absolute value is taken), and in step S3, 2
Value processing is performed. Similarly, in step S4, differentiation processing is performed in the axial direction of the bottle mouth (correctly, its absolute value is taken), and binarization processing is performed in subsequent step S5. In step S6, the logical sum of the values obtained in steps S3 and S5 is calculated, and the thinning process is performed in step S7.
It is also possible to perform a thinning process after each of the binarization processes of steps S3 and S5 and then take a logical sum of these processes. Note that the calculation of the differential processing is not easy if it is attempted to be rigorous, so a differential operator is used for the approximate calculation, and a differential mask, which is a matrix of third vertical and horizontal cells, is usually applied. In any case, the schematic diagram of the processed image when the above process is completed is shown in FIG.
The image relating to each of the defects F and G substantially represents the actual condition. In this figure, the image of the screw portion and each of the chips F and G becomes a double line with a narrow interval, which is the reverse of the transition from the bright portion to the dark portion in the differential processing, as described in the conventional example. This is because it corresponds to the transition from the dark portion to the bright portion.

【0014】図3に移り、ステップS8でラベリング処
理がおこなわれる。ラベリング処理は、他と隔離され孤
立して存在する部分にラベル付け(番号付け)する処理
である。これは、画像上孤立部分として表れる欠陥と、
画像としては見掛け上孤立して表れるネジ部とを区別す
るためにおこなわれる。このラベル付けの処理につい
て、図4(b) ,(c) と、図5の外観検査装置の処理にお
けるネジ部のラベル付けに係る説明図とを参照しながら
説明する。なお、このラベル付け処理の方法が請求項2
に対応する。まず、図4(b) に示したように、画像とし
て見掛け上孤立した各線画像に仮ラベル番号(1) 〜(11)
を付ける。図5の説明図の左の列に、仮ラベル番号を
(1) から(11)まで順に付け、中間の列に、各仮ラベル番
号に対応する線画像の、画面の左端部,右端部でのY
(縦方向)座標を記載する。右の列に、以下に述べるよ
うな座標データ判断の下に最終的に決められた本ラベル
番号〜を付ける。
Turning to FIG. 3, the labeling process is performed in step S8. The labeling process is a process of labeling (numbering) a part that is isolated from the others and exists in isolation. This is a defect that appears as an isolated part on the image,
It is performed in order to distinguish from a screw portion that appears as an image in isolation. The labeling process will be described with reference to FIGS. 4B and 4C and the explanatory diagram relating to the labeling of the screw portion in the process of the visual inspection apparatus of FIG. The method of this labeling process is claimed in claim 2.
Corresponding to. First, as shown in FIG. 4 (b), temporary label numbers (1) to (11) are assigned to each apparently isolated line image as an image.
Attach. In the left column of the explanatory diagram of FIG. 5, temporary label numbers are
In order from (1) to (11), in the middle column, Y lines at the left and right ends of the screen of the line image corresponding to each temporary label number are displayed.
(Vertical direction) Enter the coordinates. In the right column, the book label numbers ~, which are finally decided under the coordinate data judgment as described below, are added.

【0015】図5において、仮ラベル番号(1) の線画像
の左端部,右端部の各Y座標は、それぞれ15,15 であり
(図4(b) 参照、以下同じ)、仮ラベル番号(2) の線画
像の各座標は、それぞれ20,20 である。しかし、仮ラベ
ル番号(3) の線画像は左端部は存在せず、右端部で60,8
0 の二つである。同様に、仮ラベル番号(4) の線画像も
左端部は存在せず、右端部で65,75 の二つである。仮ラ
ベル番号(5) の線画像は中間部に位置するから、左右の
各端部での座標が存在しない。以下、同様に各仮ラベル
番号(6) 〜(11)の線画像について左右の各座標を求める
ことができる。そこで、座標データの判断であるが、
「左座標と右座標とが同一な二つの仮ラベル番号の線画
像は連続している」と判断する。また、言いかえれば、
「左座標と右座標とが異なる二つの仮ラベル番号の線画
像は単独である」と判断する。
In FIG. 5, the Y-coordinates at the left end and the right end of the line image of the temporary label number (1) are 15 and 15, respectively (see FIG. 4B, the same applies hereinafter), and the temporary label number ( The coordinates of the line image in 2) are 20 and 20, respectively. However, the line image of the temporary label number (3) does not have the left end part, and 60,8 at the right end part.
There are two, 0. Similarly, the line image of the temporary label number (4) does not have the left end portion, and the right end portion is 65,75. Since the line image of the temporary label number (5) is located in the middle part, there are no coordinates at the left and right ends. Similarly, the left and right coordinates can be obtained for the line images with the respective temporary label numbers (6) to (11). So, for the judgment of coordinate data,
It is determined that "the line images of two temporary label numbers having the same left coordinate and right coordinate are continuous". In other words, in other words
It is determined that "the line images of two temporary label numbers having different left and right coordinates are independent".

【0016】たとえば、図5において、 (a) 各仮ラベル番号(1) ,(2) の左右の各座標と同一な
座標をもつ仮ラベル番号は存在しないから、この各仮ラ
ベル番号(1) ,(2) の線画像は単独であると判断する。
したがって、それぞれ本ラベル番号,を付ける(図
4(c) 参照、以下いずれの項についても同じ)。 (b) 仮ラベル番号(3) の右60と、仮ラベル番号(6)の左6
0とが同一であるから、仮ラベル番号(3) と、仮ラベル
番号(6) とは連続する、と判断する。次に、仮ラベル番
号(3) の右80と、仮ラベル番号(9) の左80とが同一であ
るから、仮ラベル番号(3) と、仮ラベル番号(9) とは連
続する、と判断する。仮ラベル番号(6) の右95と、仮ラ
ベル番号(10)の左95とが同一であるから、仮ラベル番号
(6) と、仮ラベル番号(10)とは連続する、と判断する。
以上のことから総合的に言えることは、各ラベル番号の
線画像をその番号で略記することにし、その連鎖関係を
模式的に示すと、(9) ─(3) ─(6) ─(10) となる。そ
こで、これらの各仮ラベル番号の線画像には、本来連続
しているとして、共通な本ラベル番号を付ける。 (c) 各仮ラベル番号(4) ,(7) ,(8) ,(11)の線画像
は、詳細な説明は省略するが、座標データについて同様
な判断をして、連鎖関係にあり、(8) ─(4) ─(7)─(1
1) となる。そこで、これらの各仮ラベル番号の線画像
には、本来連続しているとして、共通な本ラベル番号
を付ける。 (d) 仮ラベル番号(5) の線画像は、左右の各座標が存在
しないから単独である、として本ラベル番号を付け
る。
For example, in FIG. 5, (a) since there is no temporary label number having the same coordinates as the left and right coordinates of each temporary label number (1) and (2), each temporary label number (1) The line image of (2) is judged to be a single image.
Therefore, this label number is attached to each item (see Fig. 4 (c), the same applies to any of the following items). (b) Temporary label number (3) right 60 and temporary label number (6) left 6
Since 0 is the same, it is determined that the temporary label number (3) and the temporary label number (6) are continuous. Next, since the right 80 of the temporary label number (3) and the left 80 of the temporary label number (9) are the same, the temporary label number (3) and the temporary label number (9) are continuous. to decide. The right 95 of the temporary label number (6) and the left 95 of the temporary label number (10) are the same, so the temporary label number
It is determined that (6) and the temporary label number (10) are continuous.
From the above, it can be said comprehensively that the line image of each label number is abbreviated by that number, and the chain relationship is schematically shown as (9) ─ (3) ─ (6) ─ (10 ). Therefore, a common main label number is given to the line images of each of these temporary label numbers as being essentially continuous. (c) The detailed description of the line images of the temporary label numbers (4), (7), (8), and (11) is omitted, but the same judgment is made for the coordinate data, and they have a chain relationship, (8) ─ (4) ─ (7) ─ (1
1) Therefore, a common main label number is given to the line images of each of these temporary label numbers as being essentially continuous. (d) The line image of the temporary label number (5) is given as a single label image because each of the left and right coordinates does not exist.

【0017】以上で図3におけるステップS8の説明を
終わり、次のステップに移る。ステップS9で、ラベル
数が基準値と同じかどうかが判断される。この基準値
は、欠陥が無い状態でのラベル数として設定され、瓶口
上端近くの凸部一周分の2と、ネジ部に係る2との和と
して、4となる。この場合、実際のラベル数が5である
から、ステップS9での判断はNOとなり、ステップS
12で、第1の欠陥ありと判定される。ステップS9で
の判断がYESなら、ステップS10に移る。ステップ
S10では、図2におけるステップS7での細線化処理
された画像に基づいて凹凸検出がおこなわれ、これに基
づいてステップS11で凹凸判定される。図6は外観検
査装置の処理における凹凸部分の判定に係る説明図であ
る。図6において、細線化部分上のある画素Po を選
び、この画素Poを起点として各側に所定画素数、この
場合には5画素分だけ隔たる各画素P1,P2 を選ぶ。そ
して、各画素Po,P1 を結ぶ線分と、各画素Po,P2 を
結ぶ線分とのなす角度を求め、この角度を凹凸の程度を
表す凹凸値とする。凹凸値をθとして、許容値α以下な
ら、判定は不良であるとし、許容値αを超えるなら、判
定は良とする。ところで、凹凸値としては、前記の決め
方の外に、各画素P1,P2 を結ぶ線分長にしたり、また
は各画素P1,P2 を結ぶ線分への画素Po からの垂線長
にすることができる。またネジ端部の凹凸部分は、当然
その凹凸値が許容値を超えるから、凹凸部分の検出に
は、ネジの端部は除外される。言いかえれば、ネジの端
部では、各画素Po,P1,P2 の選択がなされない。再び
図3に戻り、ステップS11で、凹凸値が許容値以下な
ら、つまりYESならステップS14の良品判定とな
り、凹凸値が許容値を超えるなら、つまりNOならステ
ップS13の第2の欠陥ありとの判定となって終了す
る。
Above, the explanation of step S8 in FIG. 3 is finished, and the process moves to the next step. In step S9, it is determined whether the number of labels is the same as the reference value. This reference value is set as the number of labels in a state where there is no defect, and is 4 as the sum of 2 for one round of the convex portion near the upper end of the bottle mouth and 2 for the screw portion. In this case, since the actual number of labels is 5, the determination in step S9 is NO and step S9
At 12, it is determined that there is a first defect. If the determination in step S9 is yes, the process moves to step S10. In step S10, unevenness detection is performed based on the image subjected to the thinning processing in step S7 in FIG. 2, and based on this, unevenness determination is performed in step S11. FIG. 6 is an explanatory diagram related to the determination of the uneven portion in the process of the appearance inspection device. In FIG. 6, a certain pixel P0 on the thinned portion is selected, and a predetermined number of pixels on each side, starting from this pixel P0, in this case, pixels P1 and P2 separated by 5 pixels are selected. Then, the angle formed by the line segment connecting each pixel Po, P1 and the line segment connecting each pixel Po, P2 is obtained, and this angle is used as the unevenness value representing the degree of unevenness. When the unevenness value is θ and the allowable value α is less than or equal to the allowable value α, the determination is bad, and when the allowable value α is exceeded, the determination is good. By the way, as the unevenness value, in addition to the above determination method, the length of the line segment connecting the pixels P1 and P2, or the perpendicular length from the pixel Po to the line segment connecting the pixels P1 and P2 can be used. .. Further, since the unevenness of the screw end portion naturally exceeds the allowable value, the end portion of the screw is excluded from the detection of the unevenness portion. In other words, the pixels Po, P1, P2 are not selected at the end of the screw. Returning to FIG. 3 again, in step S11, if the unevenness value is less than or equal to the allowable value, that is, YES, it is determined as a non-defective product in step S14, and if the unevenness value exceeds the allowable value, that is, if NO, there is a second defect in step S13. The judgment ends and the process ends.

【0018】[0018]

【発明の効果】請求項1ないし3のいずれかに係る瓶口
の外観検査方法において、次の二つの効果がある。 (1) 取り込まれた内周面一周分の濃淡画像信号を、口部
の周方向と、軸線方向とについてそれぞれ微分処理した
後、所定しきい値に基づき2値化処理し、その論理和を
とるから、欠け,ひび,汚れ等の欠陥が、ネジ付き口部
のネジ山と平行に生じているときでも、検出することが
でき、外観検査の信頼性向上が図れる。 (2) 欠陥判定が、次の第1,第2の各欠陥に分けておこ
なわれるから、欠陥内容の分析が可能となり、品質改善
の手掛りが得られる。すなわち、第1の欠陥は、ラベリ
ング処理によって得られたラベル数が基準数を超えるこ
とに基づく、ネジ部と隔離,孤立した形のもの、第2の
欠陥は、ネジの端部を除く部分において、孤立はしてい
ないが許容限度以上の凹凸部分の存在に基づくものであ
る。
According to the bottle mouth appearance inspection method according to any one of claims 1 to 3, there are the following two effects. (1) The captured grayscale image signal for one round of the inner peripheral surface is differentiated with respect to the circumferential direction of the mouth and the axial direction, and then binarized based on a predetermined threshold value, and the logical sum is calculated. Therefore, defects such as chips, cracks, and stains can be detected even when they are parallel to the threads of the threaded opening, and the reliability of the appearance inspection can be improved. (2) Since the defect determination is performed separately for each of the following first and second defects, the content of the defect can be analyzed and a clue for quality improvement can be obtained. That is, the first defect is one isolated and isolated from the screw part based on the number of labels obtained by the labeling process exceeding the reference number, and the second defect is a part except the end part of the screw. However, it is based on the existence of uneven portions that are not isolated but are above the allowable limit.

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

【図1】本発明方法の適用例としての外観検査装置の構
成図
FIG. 1 is a configuration diagram of an appearance inspection apparatus as an application example of a method of the present invention.

【図2】外観検査装置の動作を示す前段のフローチャー
FIG. 2 is a first-stage flowchart showing the operation of the appearance inspection device.

【図3】同じくその後段のフローチャート[FIG. 3] Similarly, a flowchart of the subsequent stage

【図4】外観検査装置による処理に関し、(a) 〜(c) は
その各処理工程における画像の模式図
4A to 4C are schematic diagrams of images in respective processing steps regarding processing by an appearance inspection device.

【図5】外観検査装置の処理におけるネジ部のラベル付
けに係る説明図
FIG. 5 is an explanatory diagram related to labeling of a screw portion in processing of an appearance inspection device.

【図6】外観検査装置の処理における凹凸部分の判定に
係る説明図
FIG. 6 is an explanatory diagram related to the determination of uneven portions in the process of the appearance inspection device.

【図7】従来の外観検査装置の構成図FIG. 7 is a block diagram of a conventional appearance inspection device.

【図8】従来の外観検査装置による処理に関し、(a) 〜
(c) はその各処理工程に関連する画像の模式図
FIG. 8: Regarding processing by a conventional appearance inspection device,
(c) is a schematic diagram of images related to each processing step

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

1 瓶 2 回転台 3 照明部 4 撮像部 5 原画像取込み手段 6 微分・2値化・論理和手段 7 細線化手段 8 ラベリング手段 9 凹凸検出手段 10 画像処理部 11 判定部 DESCRIPTION OF SYMBOLS 1 Bottle 2 Rotating table 3 Illumination section 4 Imaging section 5 Original image capturing means 6 Differentiating / binarizing / logical summing means 7 Thinning means 8 Labeling means 9 Concavo-convex detecting means 10 Image processing section 11 Judging section

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】軸線の回りに回転される透光性瓶のネジ付
き口部を側外方から照らすとともに、この照らされた前
記口部の内周面箇所を斜め外方から撮像する工程と;撮
像された前記口部の内周面一周分の濃淡画像信号を取り
込む工程と;取り込まれた前記濃淡画像信号を、前記口
部の周方向と、軸線方向とについてそれぞれ微分処理し
た後に、所定しきい値に基づき2値化処理する工程と;
この2値化処理したものについて、論理和をとった後に
細線化処理する、または細線化処理の後に論理和をとる
工程と;この細線化処理の後に、細線化部分の内、他と
隔離されて存在する部分にラベル付けするラベリング処
理をする工程と;このラベリング処理によって得られた
ラベル数が基準数を超えることに基づき、第1の欠陥あ
りと判定する工程と;前記細線化処理の後に、前記ネジ
の端部を除く細線化部分において許容限度以上の凹凸部
分を求め、この許容限度以上の凹凸部分の存在に基づ
き、第2の欠陥ありと判定する工程と;を備えることを
特徴とする瓶口の外観検査方法。
1. A step of illuminating a threaded mouth portion of a translucent bottle which is rotated around an axis from a lateral outside, and imaging an inner peripheral surface portion of the illuminated mouth portion from an oblique outside. A step of capturing a captured grayscale image signal for one round of an inner peripheral surface of the mouth portion; a predetermined process after differentiating the captured grayscale image signal with respect to the circumferential direction of the mouth portion and the axial direction. A step of performing binarization processing based on a threshold value;
A process of taking a logical sum and then performing a thinning process on the binarized one, or taking a logical sum after the thinning process; and after the thinning process, the thinned part is separated from the others. A labeling process for labeling existing portions; a step of determining that there is a first defect based on the number of labels obtained by this labeling process exceeding a reference number; and; after the thinning process. A step of obtaining a concavo-convex portion exceeding an allowable limit in the thinned portion excluding the end portion of the screw and determining that there is a second defect based on the existence of the concavo-convex portion exceeding the allowable limit. Method of visual inspection of bottle mouth.
【請求項2】請求項1に記載の方法において、ネジに係
る細線化部分のラベリング処理は、口部の内周面一周分
の展開された細線化部分で、その展開の方向に係る各端
部での軸線方向座標が同一のもの同士は連続していると
判断することに基づいておこなわれることを特徴とする
瓶口の外観検査方法。
2. The method according to claim 1, wherein the labeling process of the thinned portion related to the screw is a thinned portion that has been developed for one round of the inner peripheral surface of the mouth, and each end in the direction of the development. A method for inspecting the appearance of a bottle mouth, which is performed based on the determination that parts having the same axial direction coordinate are continuous.
【請求項3】請求項1または2に記載の方法において、
許容限度以上の凹凸部分は、細線化部分で任意に選ばれ
る第1の画素と、これを起点として各側に所定画素数だ
け隔たる第2,第3の各画素とを結ぶ線分とのなす角度
が許容値以下であることに基づいて求められることを特
徴とする瓶口の外観検査方法。
3. The method according to claim 1, wherein
The concavo-convex portion that exceeds the allowable limit is a line segment that connects the first pixel arbitrarily selected in the thinned portion and the second and third pixels that are separated from each other by a predetermined number of pixels on each side. A method for inspecting the appearance of a bottle mouth, which is obtained based on that an angle formed is equal to or less than an allowable value.
JP3324891A 1991-12-10 1991-12-10 Bottle mouth appearance inspection method Expired - Fee Related JP2973663B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3324891A JP2973663B2 (en) 1991-12-10 1991-12-10 Bottle mouth appearance inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3324891A JP2973663B2 (en) 1991-12-10 1991-12-10 Bottle mouth appearance inspection method

Publications (2)

Publication Number Publication Date
JPH05157707A true JPH05157707A (en) 1993-06-25
JP2973663B2 JP2973663B2 (en) 1999-11-08

Family

ID=18170781

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3324891A Expired - Fee Related JP2973663B2 (en) 1991-12-10 1991-12-10 Bottle mouth appearance inspection method

Country Status (1)

Country Link
JP (1) JP2973663B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0683388A1 (en) 1994-05-20 1995-11-22 Eisai Co., Ltd. Method of detecting a crack or chip
JP2005214991A (en) * 2005-04-19 2005-08-11 Toyo Glass Co Ltd Apparatus and method for inspecting thread part of glass bottle
EP1988386A3 (en) * 2007-05-02 2010-07-28 Emhart Glass S.A. Machine for inspecting glass containers
JP4986255B1 (en) * 2011-08-03 2012-07-25 東洋ガラス株式会社 Container mouth inspection method and apparatus
CN104438126A (en) * 2014-12-10 2015-03-25 天津普达软件技术有限公司 Removal method of defective bottle parisons
US9996937B2 (en) 2014-12-26 2018-06-12 Fujitsu Limited Image apparatus, image processing method, and computer readable, non-transitory medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0683388A1 (en) 1994-05-20 1995-11-22 Eisai Co., Ltd. Method of detecting a crack or chip
JP2005214991A (en) * 2005-04-19 2005-08-11 Toyo Glass Co Ltd Apparatus and method for inspecting thread part of glass bottle
EP1988386A3 (en) * 2007-05-02 2010-07-28 Emhart Glass S.A. Machine for inspecting glass containers
US7898655B2 (en) 2007-05-02 2011-03-01 Emhart Glass S.A. Machine for inspecting glass containers
JP4986255B1 (en) * 2011-08-03 2012-07-25 東洋ガラス株式会社 Container mouth inspection method and apparatus
WO2013018207A1 (en) * 2011-08-03 2013-02-07 東洋ガラス株式会社 Container mouth portion inspection method and device
CN103718025A (en) * 2011-08-03 2014-04-09 东洋玻璃株式会社 Container mouth portion inspection method and device
CN104438126A (en) * 2014-12-10 2015-03-25 天津普达软件技术有限公司 Removal method of defective bottle parisons
US9996937B2 (en) 2014-12-26 2018-06-12 Fujitsu Limited Image apparatus, image processing method, and computer readable, non-transitory medium

Also Published As

Publication number Publication date
JP2973663B2 (en) 1999-11-08

Similar Documents

Publication Publication Date Title
JP3669698B2 (en) Inspection method and inspection apparatus for printed matter
US7329855B2 (en) Optical inspection of glass bottles using multiple cameras
WO2017141611A1 (en) Defect detection apparatus, defect detection method, and program
JPH07159337A (en) Fault inspection method for semiconductor element
JP2973663B2 (en) Bottle mouth appearance inspection method
JP4986255B1 (en) Container mouth inspection method and apparatus
JP2017166957A (en) Defect detection device, defect detection method and program
JP2000163579A (en) Appearance inspection method and device
JP4216485B2 (en) Pattern inspection method and apparatus
JP2003149160A (en) Appearance inspection method and appearance inspection system
JP3155106B2 (en) Bottle seal appearance inspection method and apparatus
JPH03175343A (en) Method for extracting flaw by inspection appearance
JPH109835A (en) Surface flaw inspection apparatus
JPH05203584A (en) Device for detecting characteristic amount on work surface
JP3618589B2 (en) Defect inspection method and apparatus
JP5033076B2 (en) Appearance inspection method and apparatus
JPH043820B2 (en)
JPH0519938B2 (en)
JPH06160289A (en) Inner face inspection equipment for circular vessel
JPH0324447A (en) Bottle-mouth inspecting method
JPH04270951A (en) Method for inspecting bottle
JPH02108167A (en) Optical inspecting device
JP2017146248A (en) Defect detection device, defect detection method, and program
JP2006133127A (en) Method for inspecting appearance of container
JP2000258353A (en) Defect inspection method and device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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: 20070903

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20080903

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20080903

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090903

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees