JP3241666B2 - Glass container defect inspection equipment - Google Patents

Glass container defect inspection equipment

Info

Publication number
JP3241666B2
JP3241666B2 JP20287898A JP20287898A JP3241666B2 JP 3241666 B2 JP3241666 B2 JP 3241666B2 JP 20287898 A JP20287898 A JP 20287898A JP 20287898 A JP20287898 A JP 20287898A JP 3241666 B2 JP3241666 B2 JP 3241666B2
Authority
JP
Japan
Prior art keywords
image
glass container
edge
disturbance light
inspection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP20287898A
Other languages
Japanese (ja)
Other versions
JP2000019130A (en
Inventor
崇 原田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyo Glass Co Ltd
Original Assignee
Toyo Glass 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 Toyo Glass Co Ltd filed Critical Toyo Glass Co Ltd
Priority to JP20287898A priority Critical patent/JP3241666B2/en
Publication of JP2000019130A publication Critical patent/JP2000019130A/en
Application granted granted Critical
Publication of JP3241666B2 publication Critical patent/JP3241666B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、コップ、鉢、花
瓶、広口びんなどの口部が大きく開口したガラス容器の
胴部の欠陥、すなわち、容器の胴部の内外面に付着した
ガラス片などの異物や汚れ、ガラス内部の泡、異物、色
ムラなどを検出する装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a defect of a body portion of a glass container having a large opening such as a cup, a pot, a vase, a jar, and the like, that is, a glass piece attached to the inner and outer surfaces of the body portion of the container. The present invention relates to an apparatus for detecting foreign substances and dirt, bubbles inside glass, foreign substances, and color unevenness.

【0002】[0002]

【従来の技術】従来、ガラス容器に付着したガラス片な
どの欠陥を検査する装置は、口部や底部を検査するもの
はあったが、胴部について検査するものはなかった。胴
部の検査は、口部を検査する装置の設置位置を下げて胴
部の検査に流用することもあったが、安定した検査を行
うことはできず、結局は目視検査に頼らざるをえなかっ
た。
2. Description of the Related Art Conventionally, some devices for inspecting defects such as glass fragments adhered to a glass container inspect the mouth and the bottom, but none inspect the body. In the torso inspection, the installation position of the device that inspects the mouth was sometimes lowered and used for the torso inspection, but stable inspection could not be performed, and eventually visual inspection had to be relied on. Did not.

【0003】[0003]

【発明が解決しようとする課題】従来、ガラス容器の胴
部の欠陥の検査は、目視に頼らざるをえなかったので、
検査員に過酷な作業を強いることとなり、また、目視に
よってはガラス片の付着したものを完全に排除すること
は困難で、ガラス容器の口切り工程において発生するガ
ラス容器内外の胴部に付着するガラス片により消費者が
怪我をするというクレームが発生していた。本発明は、
このようなガラス容器の胴部の欠陥を自動的に検出し、
検査員の目視検査に頼らずに不良品を排除することを可
能とするためになされたものである。
Conventionally, inspection of defects in the body of a glass container has had to rely on visual inspection.
The inspector is forced to perform severe work, and it is difficult to completely remove the attached glass pieces by visual inspection, and the glass adhered to the inside and outside body of the glass container generated in the opening process of the glass container The complaint had caused complaints that the consumer was hurt. The present invention
Automatically detects such defects in the body of the glass container,
The purpose is to eliminate defective products without relying on visual inspection by inspectors.

【0004】[0004]

【課題を解決するための手段】本発明は、検査対象であ
るガラス容器の上方から検査光を照射する光源部と、前
記ガラス容器の側方に設けられガラス容器の胴部の画像
を取り込むことのできるカメラと、前記カメラで取り込
んだ画像を処理する画像処理部とを有し、該画像処理部
は、前記画像をエッジ部外乱光画像検出輝度しきい値で
ある所定の輝度Vs1において2値化しVs1以下の画
像を消去する第1の2値化処理と、第1の2値化処理を
行った画面において、設定した所定位置を画面端から横
方向スキャンし、ガラス容器エッジ部の外乱光画像を検
出するエッジ部外乱光検出処理と、エッジ部外乱光を検
出した部分を縦方向に所定の幅マスクするエッジ部外乱
光マスク処理と、エッジ部外乱光マスク処理を行った画
像をガラス片画像検出輝度しきい値である所定の輝度V
s2において2値化し、Vs2以下の画像を消去する第
2の2値化処理と、第2の2値化処理を行った画像に対
して残った画像に番号を付けるラベリング処理と、ラベ
リングした画像の画素数が所定の値SL〜SHの範囲に
あることを判断する欠陥判断処理とを行うものであるこ
とを特徴とするガラス容器の欠陥検査装置である。
According to the present invention, there is provided a light source unit for irradiating inspection light from above a glass container to be inspected, and capturing an image of a body of the glass container provided on a side of the glass container. And an image processing unit for processing an image captured by the camera, wherein the image processing unit converts the image with an edge disturbance light image detection luminance threshold.
A first binarization process for binarizing at a predetermined luminance Vs1 and erasing an image equal to or lower than Vs1, and a set predetermined position is horizontally scanned from an edge of the screen on the screen on which the first binarization processing is performed. An edge disturbance light detection process for detecting a disturbance light image of an edge portion of a glass container, an edge disturbance light mask process for vertically masking a portion where the edge disturbance light is detected in a predetermined width, and an edge disturbance light mask The processed image is converted to a predetermined brightness V which is a glass piece image detection brightness threshold.
a second binarization process for binarizing in s2 and erasing an image equal to or lower than Vs2, a labeling process for numbering remaining images with respect to the image subjected to the second binarization process, and a labeled image And a defect judging process for judging that the number of pixels is within a range of predetermined values SL to SH.

【0005】この装置は、特に胴部に折れ目を有さず、
滑らかな曲線で構成されているガラス容器に適したもの
で、ガラス容器に上方の光源部から検査光を照射し、そ
の反射・屈折光をカメラで受光し、その画像からエッジ
部外乱光を除去した後に、残った画像の輝度と面積で欠
陥の有無を判定するものである。
[0005] This device has no fold especially in the trunk,
Suitable for glass containers with smooth curves, irradiates the glass container with inspection light from an upper light source, receives reflected / refracted light with a camera, and removes edge disturbance light from the image. Then, the presence or absence of a defect is determined based on the luminance and area of the remaining image.

【0006】ガラス容器に、付着したガラス片などの欠
陥があると、光源からの光がその欠陥で乱反射や屈折を
おこし、それをカメラで捕らえると、欠陥部分がその他
の部分に対して大きな輝度となっている。したがって、
検査したガラス容器に輝度の大きな部分がある場合に
は、そのガラス容器には欠陥があるのであるが、一般
に、ガラス容器に検査光を照射してその画像を取り込む
と、欠陥以外にも輝度が大きくなる要素、すなわち外乱
光があり、その外乱光を除去しなければ正確な検査をす
ることができない。外乱光の第一はエッジ部外乱光であ
る。これは、ガラス容器の周囲に輝度の大きな部分が生
じるものである。
If the glass container has a defect such as a piece of glass attached thereto, the light from the light source causes irregular reflection or refraction due to the defect. It has become. Therefore,
If the inspected glass container has a portion with a high luminance, the glass container has a defect.In general, when the glass container is irradiated with the inspection light and the image is captured, the luminance other than the defect is reduced. There is an element that increases, that is, disturbance light, and accurate inspection cannot be performed unless the disturbance light is removed. The first of the disturbance lights is the edge disturbance light. This is because a large portion of luminance is generated around the glass container.

【0007】このエッジ部外乱光は、画像処理部におい
て次のように取り除かれる。まず、カメラで取り込んだ
画像を所定の輝度Vs1において2値化しVs1以下の
画像を消去する第1の2値化処理を行う。この処理画面
において、設定した所定位置を画面端から横方向スキャ
ンし、ガラス容器エッジ部の外乱光画像を検出するエッ
ジ部外乱光検出処理を行う。この場合所定位置は通常ガ
ラス容器の高さ方向の中央付近とするが、容器の形状に
より適当な位置を定める。エッジ部外乱光を検出する
と、その部分を縦方向に所定の幅マスクするエッジ部外
乱光マスク処理を行う。これにより、エッジ部外乱光が
マスクされて除去される。
The edge disturbance light is removed in the image processing section as follows. First, a first binarization process of binarizing an image captured by a camera at a predetermined luminance Vs1 and erasing images below Vs1 is performed. In this processing screen, a set predetermined position is scanned in the horizontal direction from the screen edge, and edge disturbance light detection processing for detecting a disturbance light image of the edge portion of the glass container is performed. In this case, the predetermined position is usually near the center in the height direction of the glass container, but an appropriate position is determined according to the shape of the container. When the edge disturbance light is detected, an edge disturbance light masking process for masking the portion in the vertical direction by a predetermined width is performed. Thus, the edge disturbance light is masked and removed.

【0008】エッジ部外乱光を除去した画像を所定の輝
度Vs2において2値化し、Vs2以下の画像を消去す
る第2の2値化処理を行う。これにより、種々の原因に
よる外乱光を排除する。更に、残った画像に番号を付け
るラベリング処理を行い、ラベリングした画像の画素数
が所定の値SL〜SHの範囲にあることを判断する欠陥
判断処理を行う。欠陥の大きさは、経験的にSL〜SH
の所定の大きさであることがほとんどであり、SL以下
の場合は小さな塵などが付着している場合であり、SH
より大きい場合は何等かの外乱光である。
[0010] A second binarization process for binarizing an image from which edge disturbance light has been removed at a predetermined luminance Vs2 and erasing images below Vs2 is performed. This eliminates disturbance light due to various causes. Further, a labeling process for numbering the remaining images is performed, and a defect determination process for determining that the number of pixels of the labeled image is within a range of a predetermined value SL to SH is performed. The size of the defect is empirically SL-SH
In most cases, small dust or the like is attached when the size is less than SL.
If it is larger, it is some sort of disturbance light.

【0009】平面形状が多角形状などで、胴部が滑らか
な平面又は曲面のみ構成されておらずに折り目を有する
ガラス容器は、エッジ部外乱光の他に折り目部外乱光が
生じる。折り目部外乱光は、画像処理部において次のよ
うに除去される。
A glass container having a polygonal shape or the like and a fold not formed of only a smooth plane or curved surface at the body portion generates disturbance light at the fold portion in addition to disturbance light at the edge portion. The fold disturbance light is removed in the image processing unit as follows.

【0010】カメラで取り込んだ画像を第1の2値化処
理、ガラス容器エッジ部の外乱光画像を検出するエッジ
部外乱光検出処理、エッジ部外乱光を除去するエッジ部
外乱光マスク処理、所定の輝度Vs2において2値化
し、Vs2以下の画像を消去する第2の2値化処理を行
い、残った画像に番号を付けるラベリング処理を行うま
では前述の装置の場合と同様である。折り目部外乱光を
除去する場合には、ラベリングした画像の縦横比が所定
の値以上となる折り目部を検出し、その部分をマスクす
る折り目部マスク処理を行う。これにより折り目部外乱
光が除去される。その後は前記の場合と同様に、画像の
画素数が所定の値SL〜SHの範囲にあることを判断す
る欠陥判断処理を行い、ガラス容器に欠陥があるかどう
かを判断する。
A first binarization process for an image captured by a camera, an edge disturbance light detection process for detecting a disturbance light image of an edge portion of a glass container, an edge disturbance light masking process for removing the edge disturbance light, a predetermined process The process is the same as that of the above-described apparatus until a second binarization process of binarizing the image at the luminance Vs2, erasing images below Vs2, and performing a labeling process of numbering the remaining images is performed. When removing disturbance light at the fold portion, a fold portion in which the aspect ratio of the labeled image is equal to or more than a predetermined value is detected, and a fold portion masking process for masking that portion is performed. As a result, fold disturbance light is removed. Thereafter, as in the case described above, a defect determination process for determining that the number of pixels of the image is within the range of the predetermined value SL to SH is performed to determine whether or not the glass container has a defect.

【0011】カメラを約90°ごとに4台設置し、これ
らのカメラを同時に作動させてガラス容器の画像を取り
込むと、ガラス容器の胴部の全周を検査できるだけでな
く、あるカメラの画像においてエッジ部や折り目部の外
乱光を除去するためにマスクした部分を、他のカメラの
画像で検査することができるから、欠陥を見逃すおそれ
がほとんどなくなる。4台のカメラで取り込んだ画像の
うち1つの画像について欠陥が発見されれば、そのガラ
ス容器には欠陥が存在することになる。
When four cameras are installed at approximately 90 ° intervals and these cameras are simultaneously operated to capture an image of the glass container, not only can the entire circumference of the body of the glass container be inspected, Since a portion masked to remove disturbance light at an edge portion or a fold portion can be inspected with an image of another camera, there is almost no possibility of missing a defect. If a defect is found in one of the images captured by the four cameras, the glass container has a defect.

【0012】光源部を井桁状に組み合わせた4本の直線
状光源とすると、ガラス容器に対してむら無く光が当た
り、正確な検査を行うことができる。また、平行な向き
の2組の直線状光源の間隔を自在に変更できるようにす
ると、ガラス容器の大きさに応じて光源の間隔を調整
し、好ましい状態で検査光を照射することができる。
If the light source section is composed of four linear light sources combined in a cross-girder shape, the light can be evenly applied to the glass container, and an accurate inspection can be performed. Further, if the interval between the two sets of linear light sources in the parallel direction can be freely changed, the interval between the light sources can be adjusted according to the size of the glass container, and the inspection light can be emitted in a preferable state.

【0013】平行な向きの対となる直線状光源の間隔w
を、検査対象であるガラス容器の口径(内径)プラスマ
イナス10mm程度とすることにより、カメラで取り込
んだ画像の欠陥の輝度が大きくなり、欠陥を見逃しにく
くなる。
The distance w between the linear light sources forming a pair in the parallel direction
Is set to about ± 10 mm of the diameter (inner diameter) of the glass container to be inspected, the luminance of the defect of the image captured by the camera becomes large, and it becomes difficult to overlook the defect.

【0014】この装置は、検査対象であるガラス容器が
ストレートコンベア上を移動しているときに検査を行う
ようにすることができる。その場合、光源部はストレー
トコンベアの検査を行う位置の真上に設置し、カメラも
その周囲に配置する。ストレートコンベア上で検査する
ことにより、特段の検査テーブルを設ける必要がなくな
り、装置コストが低減される。更に、検査タイミングや
欠陥ガラス容器の排除タイミングを生成し、プッシャー
などの排除装置を作動させる制御を設けることで、全
自動で検査を行い、かつ、欠陥製品を自動的に排除する
ことも可能となる。この場合、検査位置の上流側に流れ
て来たガラス容器を検知する容器センサを設け、容器セ
ンサの検知信号を受けた制御はそのガラス容器が検査
位置に到達するタイミングを算出し、そのタイミングに
検査信号を画像処理部に送る。また制御部は、画像処理
部が欠陥判断を行った場合に該部から送られる欠陥信号
を受け、検査を受けたガラス容器がプッシャーなどの排
除装置の位置に達する排除タイミングを生成し、そのタ
イミングに排除信号を送って排除装置を作動させ、欠陥
ガラス容器を排除する。
This apparatus can perform an inspection while a glass container to be inspected is moving on a straight conveyor. In that case, the light source unit is installed directly above the position where the straight conveyor is inspected, and the camera is also arranged therearound. By performing the inspection on the straight conveyor, it is not necessary to provide a special inspection table, and the apparatus cost is reduced. In addition, it is possible to automatically perform inspections and automatically eliminate defective products by providing a control unit that generates inspection timing and timing for removing defective glass containers and operates a removal device such as a pusher. Becomes In this case, a container sensor for detecting the glass container flowing upstream of the inspection position is provided, and the control unit that has received the detection signal of the container sensor calculates the timing at which the glass container reaches the inspection position, and the timing And sends an inspection signal to the image processing unit. The control unit receives a defect signal sent from the image processing unit when the image processing unit makes a defect determination, generates an exclusion timing at which the inspected glass container reaches a position of an exclusion device such as a pusher, and generates the timing. To send a rejection signal to operate the rejection device to reject defective glass containers.

【0015】[0015]

【発明の実施の形態】以下、実施例を表した図面に基づ
いて本発明を詳細に説明する。図1は実施例の検査装置
の概要を示す説明図、図2は光源部の上面図、図3はガ
ラス容器の口径と輝度比の関係を示す説明図、図4はガ
ラス容器とカメラの関係を示す上面図、図5は画像処理
部におけるエッジ部外乱光の除去処理と欠陥判断処理の
アルゴリズムを示すブロック図、図6は図5における画
像処理の説明図、図7は折り目部外乱光の除去処理と欠
陥判断処理のアルゴリズムを示すブロック図、図8は図
7における画像処理の説明図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the drawings showing embodiments. 1 is an explanatory view showing an outline of the inspection apparatus of the embodiment, FIG. 2 is a top view of a light source unit, FIG. 3 is an explanatory view showing a relationship between a diameter of a glass container and a luminance ratio, and FIG. 4 is a relationship between a glass container and a camera. FIG. 5 is a block diagram showing an algorithm of an edge part disturbance light removal processing and a defect judgment processing in the image processing unit. FIG. 6 is an explanatory view of the image processing in FIG. 5, and FIG. 7 is a fold part disturbance light. FIG. 8 is a block diagram showing an algorithm of the removal processing and the defect determination processing, and FIG. 8 is an explanatory diagram of the image processing in FIG.

【0016】図1の検査装置は、光源部1、4台のカメ
ラ2、3、4、5、画像処理部6、制御部7、容器間隔
調整部8、コンベア速度感知部9、容器センサ10及び
排除装置11からなる。検査対象となるガラス容器はコ
ンベア12上を図1の左から右に流れており、各容器の
間隔は上流側の容器間隔調整部8で所定間隔に調整され
る。容器センサ10は間隔調整されて流れてきたガラス
容器Gを検知し、検知信号を制御部7に送る。検知信号
を受けた制御7は、この検知信号とコンベア移動速度
検知機9からの速度信号から、そのガラス容器が検査位
置に到達するタイミングを算出し、そのタイミングに検
査信号を画像処理部6に送る。検査信号を受けた画像処
理部6は、4台のカメラ2、3、4、5の画像を取り込
んで所定の画像処理を行い、欠陥があると判断した場合
には欠陥信号を制御部7に送る。欠陥信号を受けた制御
部7はそのガラス容器がプッシャーなどの排除装置11
の位置に達する排除タイミングを生成し、そのタイミン
グに排除装置11に排除信号を送ってこれを作動させ、
欠陥ガラス容器を排除する。
The inspection apparatus shown in FIG. 1 includes a light source unit 1, four cameras 2, 3, 4, 5, an image processing unit 6, a control unit 7, a container interval adjusting unit 8, a conveyor speed sensing unit 9, and a container sensor 10. And the elimination device 11. The glass container to be inspected flows on the conveyor 12 from left to right in FIG. 1, and the interval between the containers is adjusted to a predetermined interval by the container interval adjusting unit 8 on the upstream side. The container sensor 10 detects the glass container G flowing at the adjusted interval, and sends a detection signal to the control unit 7. The control unit 7 having received the detection signal calculates the timing at which the glass container reaches the inspection position based on the detection signal and the speed signal from the conveyor moving speed detector 9, and outputs the inspection signal to the image processing unit 6 at that timing. Send to Upon receiving the inspection signal, the image processing unit 6 captures the images of the four cameras 2, 3, 4, and 5, performs predetermined image processing, and, when it determines that there is a defect, sends the defect signal to the control unit 7. send. Upon receiving the defect signal, the control unit 7 sets the glass container to an elimination device 11 such as a pusher.
Is generated, an exclusion signal is sent to the exclusion device 11 at that timing, and this is activated.
Eliminate defective glass containers.

【0017】光源部1は、図2に示されるように、4本
の直線状光源である直管蛍光燈14を組み合わせたもの
で、検査位置の真上に設けられている。互いに平行な対
となる直管蛍光燈の間隔wは自由に変更できるようにな
っている。直管蛍光燈の間隔wと、カメラで取り込んだ
画像の輝度比について、種々のガラス容器について実験
した結果を図3に示す。同図において、横軸はガラス容
器の口径(内径)から直管蛍光燈の間隔w(mm)をマ
イナスした値、縦軸は輝度比である。このように、直管
蛍光燈の間隔wを、検査対象であるガラス容器の口径
(内径)プラスマイナス10mm程度とすることで、輝
度比が大きくなることが発見された。したがって、蛍光
燈の間隔wをこの範囲に設定することで、カメラで取り
込んだ画像の欠陥の輝度が大きくなり、欠陥を見逃しに
くくなる。4台のカメラの周囲には、なるべく外乱光を
減らすために暗幕13が設けられている。
As shown in FIG. 2, the light source unit 1 is a combination of four straight light sources, ie, straight tube fluorescent lamps 14, and is provided right above the inspection position. The interval w between the pair of straight tube fluorescent lamps parallel to each other can be freely changed. FIG. 3 shows the results of experiments on various glass containers with respect to the interval w between the straight fluorescent lamps and the luminance ratio of the image captured by the camera. In the figure, the horizontal axis represents the value obtained by subtracting the interval w (mm) between the straight fluorescent lamps from the diameter (inner diameter) of the glass container, and the vertical axis represents the luminance ratio. As described above, it has been discovered that the brightness ratio is increased by setting the interval w between the straight fluorescent lamps to about ± 10 mm of the diameter (inner diameter) of the glass container to be inspected. Therefore, by setting the interval w between the fluorescent lamps in this range, the luminance of the defect of the image captured by the camera increases, and the defect is hardly overlooked. A blackout curtain 13 is provided around the four cameras to reduce disturbance light as much as possible.

【0018】次に、胴部に折れ目を有さず、滑らかな曲
線で構成されているガラス容器(円筒形の容器など)に
ついての画像処理を図5、6に基づいて説明する。検査
に先立って、初期設定により検査対象となるガラス容器
に適切なパラメータの値を設定する。パラメータは、縦
方向マスクのマスク幅x、Vs1(エッジ部外乱光画像
検出輝度しきい値)、Vs2(ガラス片画像検出輝度し
きい値)、SL(ラベリング後画像の画素数(=面積)
しきい値、このしきい値以下の画像を消去する)、SH
(ラベリング後画像の画素数しきい値、このしきい値以
上の画像を消去する)などである。
Next, image processing for a glass container (such as a cylindrical container) having a smooth curve without a fold in the body will be described with reference to FIGS. Prior to the inspection, appropriate parameter values are set in the glass container to be inspected by initial setting. The parameters are the mask width x of the vertical mask, Vs1 (the threshold value of the edge disturbance image detection luminance), Vs2 (the glass piece image detection luminance threshold), and SL (the number of pixels (= area) of the image after labeling).
Threshold, images below this threshold are erased), SH
(Threshold of the number of pixels of the image after labeling, and erasing an image having the threshold or more).

【0019】カメラで取り込んだ画像は、図6(a)に
示されるように、エッジ部外乱光、その他の外乱光、付
着したガラス片などの欠陥の部分が他の部分に対して輝
度が大きく、光っている。この画像の検査範囲15の内
部領域が検査対象となる。この画像に対して、所定の輝
度Vs1において2値化しVs1以下の画像を消去する
第1の2値化処理を行う。これにより、Vs1以下の輝
度の外乱光の画像が除去される。この処理画面(b)に
おいて、設定した所定位置(通常は画面中央に設定)の
横方向スキャンライン16を画面の両端から横方向スキ
ャンし、ガラス容器エッジ部の外乱光画像を検出するエ
ッジ部外乱光検出処理を行う。これにより、A部分とB
部分でエッジ部外乱光が検出されている。エッジ部外乱
光を検出すると、A、B部分を中心にして所定の幅xを
縦方向にマスクするエッジ部外乱光マスク処理を行う。
これにより、エッジ部外乱光がマスクされて除去され
る。エッジ部外乱光を除去した画像を所定の輝度Vs2
において2値化し、Vs2以下の輝度の画像を消去する
第2の2値化処理を行う。これにより、種々の原因によ
る外乱光が排除され、(c)の画像となる。更に、残っ
た画像に番号を付ける(R1、R2、R3)ラベリング処
理を行う。次に、ラベリングした画像の画素数(面積)
が所定のしきい値SL〜SHの範囲にあることを判断す
る欠陥判断処理を行う。欠陥の大きさは、経験的にSL
〜SHの範囲の所定の大きさであることがほとんどであ
り、SL以下の場合は小さな塵などが付着している場合
であり、SHより大きい場合は何等かの外乱光である。
(c)においては、R1はSL以下、R3はSH以上とし
て消去され、R2がSL〜SHの範囲で欠陥として認識
されている。
As shown in FIG. 6 (a), an image captured by a camera has an edge portion disturbance light, other disturbance light, and a defective portion such as an attached glass piece having a higher luminance than other portions. ,It is shining now. The area inside the inspection range 15 of this image is to be inspected. This image is subjected to a first binarization process for binarizing the image at a predetermined luminance Vs1 and deleting an image below Vs1. As a result, an image of disturbance light having a luminance of Vs1 or less is removed. In this processing screen (b), a horizontal scan line 16 at a set predetermined position (usually set at the center of the screen) is horizontally scanned from both ends of the screen, and an edge disturbance which detects a disturbance light image of the edge of the glass container is detected. Light detection processing is performed. As a result, part A and B
Edge disturbance light is detected in the portion. When the edge disturbance light is detected, an edge disturbance light masking process for vertically masking a predetermined width x around the portions A and B is performed.
Thus, the edge disturbance light is masked and removed. An image from which edge disturbance light has been removed is converted to a predetermined luminance Vs2.
, A second binarization process for erasing an image having a luminance equal to or lower than Vs2 is performed. Thus, disturbance light due to various causes is eliminated, and the image shown in FIG. Further, a labeling process for numbering (R1, R2, R3) the remaining images is performed. Next, the number of pixels (area) of the labeled image
Is determined to be within a range of a predetermined threshold value SL to SH. The size of the defect is empirically SL
In most cases, the size is a predetermined size in the range from SH to SH. When the size is less than SL, small dust or the like is attached. When the size is larger than SH, some disturbance light is generated.
In (c), R1 is erased as SL or less, R3 is erased as SH or more, and R2 is recognized as a defect in the range of SL to SH.

【0020】次に、胴部に折れ目を有するガラス容器
(多角形状の容器など)についての画像処理を図7、8
に基づいて説明する。折れ目を有するガラス容器につい
ては、エッジ部外乱光に加えて折り目部外乱光が生じる
ので、これを除去しなければならない。なお、エッジ部
外乱光の除去は図5、6の説明と同じであるので、簡略
化のため、図7、8ではエッジ部外乱光がないものとし
て表している。この場合、初期設定する検査パラメータ
は前記の場合に加えてX/Y比(Vs2を越えてラベリ
ングした画像の縦と横の長さの比、この設定値を越える
縦長のものを折り目部と認識する)を設定する必要があ
る。
Next, image processing for a glass container having a fold in its body (a polygonal container or the like) will be described with reference to FIGS.
It will be described based on. In the case of a glass container having a fold, the disturbance light at the fold portion is generated in addition to the disturbance light at the edge portion. Since the removal of the edge disturbance light is the same as that described with reference to FIGS. 5 and 6, for simplicity, FIGS. 7 and 8 show that there is no edge disturbance light. In this case, the inspection parameters to be initially set are, in addition to the above case, the X / Y ratio (the ratio of the height to the width of the image labeled beyond Vs2, and the portrait longer than this set value is recognized as a fold. Must be set).

【0021】図8において、カメラで取り込んだ画像
(d)には折り目部外乱光をはじめとする外乱光と付着
したガラス片などの欠陥の部分が他の部分に対して輝度
が大きく、光っている。この画像の検査範囲15の内部
領域が検査対象となる。この画像に対して、所定の輝度
Vs2において2値化し、Vs2以下の輝度の画像を消
去する第2の2値化処理を行う。これにより、種々の原
因による外乱光が排除され、(e)の画像となる。更
に、残った画像に番号を付ける(R1、R2、R3、R4、
R5)ラベリング処理を行う。次に、ラベリングした画
像のX/Y比(縦横比)が所定の値以上となる折り目部
を検出し、その部分を縦方向にマスクする折り目部マス
ク処理を行う。この場合、R4、R5が折り目部と認識さ
れ、Y1、Y2の幅で縦方向にマスクされて消去される。
次に、折り目部が消去された画像(f)に対して、ラベ
リングした画像の画素数(面積)が所定のしきい値SL
〜SHの範囲にあることを判断する欠陥判断処理を行
う。欠陥の大きさは、経験的にSL〜SHの範囲の所定
の大きさであることがほとんどであり、SL以下の場合
は小さな塵などが付着している場合であり、SHより大
きい場合は何等かの外乱光である。(c)においては、
R1はSL以下、R3はSH以上として消去され、R2が
SL〜SHの範囲で欠陥として認識されている。
In FIG. 8, in the image (d) captured by the camera, disturbance light such as disturbance light at the fold portion and a defective portion such as a piece of glass adhered have a higher luminance than other portions and shine. I have. The area inside the inspection range 15 of this image is to be inspected. The image is binarized at a predetermined luminance Vs2, and a second binarization process for deleting an image having a luminance equal to or lower than Vs2 is performed. Thus, disturbance light due to various causes is eliminated, and the image shown in FIG. Further, the remaining images are numbered (R1, R2, R3, R4,
R5) Perform labeling processing. Next, a fold portion where the X / Y ratio (aspect ratio) of the labeled image is equal to or more than a predetermined value is detected, and a fold portion mask process for masking the portion in the vertical direction is performed. In this case, R4 and R5 are recognized as folds, and are erased by being masked in the vertical direction at the widths of Y1 and Y2.
Next, with respect to the image (f) from which the fold portion has been deleted, the number of pixels (area) of the labeled image is set to a predetermined threshold SL.
欠 陥 SH is determined. The size of the defect is almost empirically determined to be a predetermined size in the range of SL to SH. When the size is smaller than SL, small dust or the like is attached. This is the disturbance light. In (c),
R1 is erased as SL or less, R3 is erased as SH or more, and R2 is recognized as a defect in the range of SL to SH.

【0022】上記の装置により、ある一定期間のガラス
容器の検査を行い、このうち62個を排除したが、その
欠陥の内訳は、ガラス片付着=23%、白汚れ=19
%、泡=15%、色筋=15%、プレスマーク=6%、
異物=2%、埃=20%であった。また、この検査で欠
陥なしとされたガラス容器について目視検査を行ったが
欠陥は発見されなかった。
The above apparatus was used to inspect the glass container for a certain period of time, and 62 of them were excluded. The breakdown of the defects was as follows.
%, Foam = 15%, color stripe = 15%, press mark = 6%,
Foreign matter = 2%, dust = 20%. Further, a visual inspection was performed on a glass container determined to be free from defects by this inspection, but no defects were found.

【0023】[0023]

【発明の効果】本発明の検査装置は、ガラス片の付着の
ようなガラス容器の胴部の欠陥を自動的に検出し、検査
員の目視検査に頼らずに高精度で不良品を排除すること
を可能としたので、検査員に過酷な作業を強いることな
く、また、検査漏れにより消費者が付着したガラス片で
怪我をすることも防ぐことができる。ガラス片の付着以
外にも、泡、異物汚れなどの欠陥を排除できるので、ガ
ラス容器の外観検査も兼ねるものである。
The inspection apparatus of the present invention automatically detects a defect in the body of a glass container such as adhesion of a glass piece, and eliminates defective products with high accuracy without relying on a visual inspection by an inspector. This makes it possible to prevent the inspector from having to perform any severe work and to prevent the consumer from being injured by the attached glass piece due to the omission of the inspection. In addition to the adhesion of glass pieces, defects such as bubbles and contamination of foreign matter can be eliminated, so that the glass container also serves as an appearance inspection.

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

【図1】実施例の検査装置の概要を示す説明図である。FIG. 1 is an explanatory diagram illustrating an outline of an inspection apparatus according to an embodiment.

【図2】光源部の上面図である。FIG. 2 is a top view of a light source unit.

【図3】ガラス容器の口径と輝度比の関係を示す説明図
である。
FIG. 3 is an explanatory diagram showing a relationship between a diameter of a glass container and a luminance ratio.

【図4】ガラス容器とカメラの関係を示す上面図であ
る。
FIG. 4 is a top view showing a relationship between a glass container and a camera.

【図5】画像処理部におけるエッジ部外乱光の除去処理
と欠陥判断処理のアルゴリズムを示すブロック図であ
る。
FIG. 5 is a block diagram illustrating an algorithm of a process of removing disturbance light in an edge portion and a process of determining a defect in an image processing unit.

【図6】図5における画像処理の説明図である。FIG. 6 is an explanatory diagram of the image processing in FIG. 5;

【図7】折り目部外乱光の除去処理と欠陥判断処理のア
ルゴリズムを示すブロック図である。
FIG. 7 is a block diagram illustrating an algorithm of a process of removing disturbance light from a fold and a process of determining a defect;

【図8】図7における画像処理の説明図である。FIG. 8 is an explanatory diagram of the image processing in FIG. 7;

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

1 光源部 2 カメラ 3 カメラ 4 カメラ 5 カメラ 6 画像処理部 7 制御部 8 容器間隔調整部 9 コンベア移動速度検知機 10 容器センサ 11 排除装置 12 コンベア 13 暗幕 14 直管蛍光燈 15 検査範囲 16 スキャンライン DESCRIPTION OF SYMBOLS 1 Light source part 2 Camera 3 Camera 4 Camera 5 Camera 6 Image processing part 7 Control part 8 Container spacing adjustment part 9 Conveyor speed detector 10 Container sensor 11 Elimination device 12 Conveyor 13 Dark curtain 14 Straight fluorescent lamp 15 Inspection range 16 Scan line

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G01N 21/88 G01N 21/90 G01B 11/30 G06T 1/00 G06T 7/00 ──────────────────────────────────────────────────続 き Continued on the front page (58) Fields investigated (Int.Cl. 7 , DB name) G01N 21/88 G01N 21/90 G01B 11/30 G06T 1/00 G06T 7/00

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 検査対象であるガラス容器の上方から検
査光を照射する光源部と、前記ガラス容器の側方に設け
られガラス容器の胴部の画像を取り込むことのできるカ
メラと、前記カメラで取り込んだ画像を処理する画像処
理部とを有し、 該画像処理部は、 前記画像をエッジ部外乱光画像検出輝度しきい値である
所定の輝度Vs1において2値化しVs1以下の画像を
消去する第1の2値化処理と、 第1の2値化処理を行った画面において、設定した所定
位置を画面端から横方向スキャンし、ガラス容器エッジ
部の外乱光画像を検出するエッジ部外乱光検出処理と、 エッジ部外乱光を検出した部分を縦方向に所定の幅マス
クするエッジ部外乱光マスク処理と、 エッジ部外乱光マスク処理を行った画像をガラス片画像
検出輝度しきい値である所定の輝度Vs2において2値
化し、Vs2以下の画像を消去する第2の2値化処理
と、 第2の2値化処理を行った画像に対して残った画像に番
号を付けるラベリング処理と、 ラベリングした画像の画素数が所定の値SL〜SHの範
囲にあることを判断する欠陥判断処理とを行うものであ
ることを特徴とするガラス容器の欠陥検査装置
1. A light source unit for irradiating inspection light from above a glass container to be inspected, a camera provided on a side of the glass container and capable of capturing an image of a body of the glass container, and a camera. An image processing unit that processes the captured image, wherein the image processing unit binarizes the image at a predetermined luminance Vs1 that is an edge part disturbance light image detection luminance threshold, and binarizes the image to Vs1 or less. A first binarization process for erasing an image and, on a screen on which the first binarization process has been performed, a set predetermined position is horizontally scanned from an edge of the screen to detect a disturbance light image at an edge portion of the glass container. An image obtained by performing an edge disturbance light detection process, an edge disturbance light mask process for vertically masking a portion where the edge disturbance light is detected in a predetermined width, and a glass piece image obtained by performing the edge disturbance light mask process
A second binarization process for binarizing the image at a predetermined luminance Vs2 which is a detection luminance threshold value and erasing an image equal to or lower than Vs2, and an image remaining after the image subjected to the second binarization process. A defect inspection apparatus for a glass container, comprising: a labeling process for numbering; and a defect determination process for determining that the number of pixels of the labeled image is within a predetermined range of SL to SH.
【請求項2】 検査対象であるガラス容器の上方から検
査光を照射する光源部と、前記ガラス容器の側方に設け
られガラス容器の胴部の画像を取り込むことのできるカ
メラと、前記カメラで取り込んだ画像を処理する画像処
理部とを有し、 該画像処理部は、 前記画像をエッジ部外乱光画像検出輝度しきい値である
所定の輝度Vs1において2値化しVs1以下の画像を
消去する第1の2値化処理と、 第1の2値化処理を行った画面において、画面端から設
定した所定の範囲を横方向スキャンし、ガラス容器エッ
ジ部の外乱光画像を検出するエッジ部外乱光検出処理
と、 エッジ部外乱光を検出した部分を縦方向に所定の幅マス
クするエッジ部外乱光マスク処理と、 エッジ部外乱光マスク処理を行った画像をガラス片画像
検出輝度しきい値である所定の輝度Vs2において2値
化し、Vs2以下の画像を消去する第2の2値化処理
と、 第2の2値化処理を行った画像に対して残った画像に番
号を付けるラベリング処理と、 ラベリングした画像の縦横比が所定の値以上となる折り
目部を検出し、その部分を縦方向にマスクする折り目部
マスク処理と、 折り目部マスク処理を行った画像の画素数が所定の値S
L〜SHの範囲にあることを判断する欠陥判断処理とを
行うものであることを特徴とするガラス容器の欠陥検査
装置
2. A light source unit for irradiating inspection light from above a glass container to be inspected, a camera provided on a side of the glass container and capable of capturing an image of a body of the glass container, An image processing unit that processes the captured image, wherein the image processing unit binarizes the image at a predetermined luminance Vs1 that is an edge part disturbance light image detection luminance threshold, and binarizes the image to Vs1 or less. A first binarization process for erasing an image, and in a screen on which the first binarization process has been performed, a predetermined range set from an edge of the screen is horizontally scanned to detect a disturbance light image at an edge portion of the glass container. The image obtained by performing the edge disturbance light detection process, the edge disturbance light mask process for vertically masking the portion where the edge disturbance light is detected by a predetermined width, and the glass fragment image
A second binarization process for binarizing the image at a predetermined luminance Vs2 which is a detection luminance threshold value and erasing an image equal to or lower than Vs2, and an image remaining after the image subjected to the second binarization process. Labeling processing for numbering, fold part mask processing for detecting a fold part where the aspect ratio of the labeled image is a predetermined value or more, and masking that part in the vertical direction, and pixels of the image subjected to the fold part mask processing The number is a given value S
A defect determination process for determining that the defect is in the range of L to SH.
【請求項3】 請求項1又は2の検査装置において、カ
メラを約90°ごとに4台設置し、これらのカメラを同
時に作動させてガラス容器の画像を取り込むことを特徴
とするガラス容器の欠陥検査装置
3. The defect of the glass container according to claim 1, wherein four cameras are installed at approximately 90 ° intervals, and these cameras are simultaneously operated to capture an image of the glass container. Inspection device
【請求項4】 請求項1、2又は3の検査装置におい
て、光源部を井桁状に組み合わせた4本の直線状光源と
し、かつ、平行な向きの2組の直線状光源の間隔を変更
自在としたことを特徴とするガラス容器の欠陥検査装置
4. The inspection apparatus according to claim 1, 2 or 3, wherein the light sources are four linear light sources combined in a grid pattern, and the interval between two sets of linear light sources in parallel directions is freely changeable. Inspection apparatus for glass containers
【請求項5】 請求項4の検査装置において、平行な向
きの2組の直線状光源の間隔を、検査対象であるガラス
容器の口径(内径)プラスマイナス10mmとしたこと
を特徴とするガラス容器の欠陥検査装置
5. The glass container according to claim 4, wherein the distance between the two sets of linear light sources in the parallel direction is equal to the diameter (inner diameter) of the glass container to be inspected plus or minus 10 mm. Defect inspection equipment
【請求項6】 請求項1〜5の何れかの検査装置におい
て、検査対象であるガラス容器がストレートコンベア上
を移動しているときに検査を行うように光源部及びカメ
ラを配置し、更に、ガラス容器を検知する前記コンベア
の上流側の容器センサからの信号を受け、検査タイミン
グを生成し検査信号を画像処理に送ると共に、画像処
理部が欠陥判断を行った場合に該部から送られる欠陥信
号を受け、排除タイミングを生成し、プッシャーなどの
排除装置を作動させる制御部を設けたことを特徴とする
ガラス容器の欠陥検査装置
6. The inspection apparatus according to claim 1, wherein a light source unit and a camera are arranged so as to perform inspection when a glass container to be inspected is moving on a straight conveyor. It receives a signal from a container sensor on the upstream side of the conveyor that detects a glass container, generates an inspection timing, sends an inspection signal to the image processing unit, and is sent from the image processing unit when the image processing unit determines a defect. A defect inspection apparatus for a glass container, comprising a control unit that receives a defect signal, generates an exclusion timing, and operates an elimination device such as a pusher.
JP20287898A 1998-07-03 1998-07-03 Glass container defect inspection equipment Expired - Fee Related JP3241666B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20287898A JP3241666B2 (en) 1998-07-03 1998-07-03 Glass container defect inspection equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20287898A JP3241666B2 (en) 1998-07-03 1998-07-03 Glass container defect inspection equipment

Publications (2)

Publication Number Publication Date
JP2000019130A JP2000019130A (en) 2000-01-21
JP3241666B2 true JP3241666B2 (en) 2001-12-25

Family

ID=16464706

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20287898A Expired - Fee Related JP3241666B2 (en) 1998-07-03 1998-07-03 Glass container defect inspection equipment

Country Status (1)

Country Link
JP (1) JP3241666B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022116248A1 (en) * 2020-12-04 2022-06-09 华擎智能科技(苏州)有限公司 Defect detecting device

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3620397B2 (en) * 2000-03-28 2005-02-16 セイコーエプソン株式会社 Pointed position detection system, presentation system, and information storage medium
US6621573B2 (en) * 2001-02-27 2003-09-16 Emhart Glass, S.A. Glass container inspection machine
WO2004036199A1 (en) * 2002-10-18 2004-04-29 Kirin Techno-System Corporation Glass bottle mouth part inspection device
JP5634680B2 (en) * 2009-03-26 2014-12-03 麒麟麦酒株式会社 Inspection device
EP2618136A4 (en) 2010-09-17 2017-12-13 Toyo Seikan Kaisha, Ltd. Gob inspection system for glass product
JP6207008B2 (en) * 2013-05-24 2017-10-04 サントリーホールディングス株式会社 Inspection apparatus and inspection method
JP6260132B2 (en) * 2013-07-31 2018-01-17 シンフォニアテクノロジー株式会社 Speed detector for parts feeder and parts feeder
JP6260133B2 (en) * 2013-07-31 2018-01-17 シンフォニアテクノロジー株式会社 Parts feeder
CN109738434A (en) * 2018-12-03 2019-05-10 珠海迈超智能装备有限公司 A kind of glass detection device
JP2021038950A (en) * 2019-08-30 2021-03-11 アサヒビール株式会社 Inspection device
CN113538420A (en) * 2021-09-07 2021-10-22 深圳新视智科技术有限公司 Defect detection method and system based on double cameras and multiple light sources

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022116248A1 (en) * 2020-12-04 2022-06-09 华擎智能科技(苏州)有限公司 Defect detecting device

Also Published As

Publication number Publication date
JP2000019130A (en) 2000-01-21

Similar Documents

Publication Publication Date Title
JP3241666B2 (en) Glass container defect inspection equipment
JPH0513257B2 (en)
JPH06294760A (en) Inspecting apparatus for foreign substance in base part of transparent glass vessel
JP2004037248A (en) Inspection device and inspection method for through hole
JP2005017004A (en) System for inspecting foreign matter in glass bottle
JPS6348444A (en) Method and device for automatic inspection of surface of glass substrate
JPH0634573A (en) Bottle inspector
KR20140031392A (en) Container mouth portion inspection method and device
JP2003247953A (en) Liquid crystal panel appearance inspection method and inspection device
JP2005017003A (en) Vial inspection system
JPH04216445A (en) Device for inspecting bottle
JPH04118546A (en) Bottle inspection device
JP3155106B2 (en) Bottle seal appearance inspection method and apparatus
JPH09318559A (en) Visual inspection method for transparent glass container and apparatus therefor
JPH08304295A (en) Method and apparatus for detecting surface defect
JPH05126761A (en) Empty-bottle separating apparatus
JP2858194B2 (en) O-ring inspection method
JP4723894B2 (en) Glass bottle thread inspection device and inspection method
JP3682249B2 (en) Glass bottle thread inspection device
JPH04309850A (en) Inspection of defective of glass cylindrical body
JPH0634575A (en) Bottle inspection method
JPH043820B2 (en)
JPH04270951A (en) Method for inspecting bottle
KR20190139604A (en) Apparatus and method for surface inspection
JPH0587781B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071019

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20081019

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20081019

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20091019

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20091019

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20101019

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees