JPH04216444A - Device for inspecting bottle - Google Patents

Device for inspecting bottle

Info

Publication number
JPH04216444A
JPH04216444A JP2402610A JP40261090A JPH04216444A JP H04216444 A JPH04216444 A JP H04216444A JP 2402610 A JP2402610 A JP 2402610A JP 40261090 A JP40261090 A JP 40261090A JP H04216444 A JPH04216444 A JP H04216444A
Authority
JP
Japan
Prior art keywords
bottle
image
value
noise
circumferential direction
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.)
Withdrawn
Application number
JP2402610A
Other languages
Japanese (ja)
Inventor
Yasuyuki Miwa
三輪 泰之
Sumio Ikejiri
池尻 澄雄
Masaru Terajima
寺島 優
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.)
Asahi Chemical Industry Co Ltd
Original Assignee
Asahi Chemical Industry 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 Asahi Chemical Industry Co Ltd filed Critical Asahi Chemical Industry Co Ltd
Priority to JP2402610A priority Critical patent/JPH04216444A/en
Publication of JPH04216444A publication Critical patent/JPH04216444A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/90Investigating the presence of flaws or contamination in a container or its contents
    • G01N21/9018Dirt detection in containers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/90Investigating the presence of flaws or contamination in a container or its contents
    • G01N21/9045Inspection of ornamented or stippled container walls

Abstract

PURPOSE:To improve the detecting accuracy of a defective foreign substance by removing noise signals corresponding to a scratch occurring in the outer circumference part of a bottle among the image signals for one picture obtained as the result of image pickup to the bottom of the bottle. CONSTITUTION:An inspected bottle 1 is held by a rotating wheel 6 and a bottle- supporting plate 7 and carried, and the bottom of the bottle is emitted at an inspecting position by an illuminator 2. At this time, it is prevented by a shading plate 3 that the light from the illuminator 2 makes directly incidence to an image pickup camera 4. The picture signals taken by the camera 4 are input to a picture processing apparatus 5. An address value of measure along a circumferential direction is previously stored within a memory in the apparatus 5. The brightness value of the picture element aimed at is corrected by the brightness value of each picture element of the circumferential direction following this address, and a scratch noise is removed. Thus, the judgment of the defective part and scratch noise part can be made.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、瓶底部に混入の異物を
瓶底部に関する画像情報に基づき検出する瓶検査装置。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bottle inspection device that detects foreign matter mixed into the bottom of a bottle based on image information regarding the bottom of the bottle.

【0002】0002

【従来の技術】一般にジュース、ビール等のほぼ透明な
液を収容する瓶には洗浄ミス等が原因で瓶の内面に付着
物などが残ったり、大きな傷等のつくことがあり、こう
いった欠陥のあるびんは、当然のことながら商品価値を
低下させるだけでなく、食品衛生および、安全上大きな
問題となる。
[Prior Art] In general, bottles that contain almost transparent liquids such as juice and beer may have deposits left on the inside of the bottle or large scratches due to cleaning errors, etc. Defective bottles naturally not only reduce commercial value but also pose a major problem in terms of food hygiene and safety.

【0003】従来このような欠陥があるかどうかの検査
は目視によって行なわれてきたが、目視にて瓶内を検査
し欠陥の有無を判定するのでは、検査員の体調や、能力
等に結果が左右されることになり、時には信じられない
程大きな欠陥を見逃すこともある。このような目視検査
は人間の視覚に頼る部分が多いので欠陥の見逃しが多く
なることは、避けられない。これら提案は主に瓶胴部と
瓶底部を検査する方法・装置である。たとえば瓶胴部(
瓶口側面も含む)を検査する提案では高速回転している
被検査瓶に一方から光を照射し、その反対側に設置した
CCDカメラで透過画像を捉え、電気信号に変換し、画
像処理装置で欠陥の有無を判定する技術が示されている
。また、瓶底部を検査する提案では、瓶底面の下方から
照明をあて、その透過像を瓶口上部に設置したCCDカ
メラで捉えて、この信号をデジタル化し画像処理を行う
技術が示されている。
Conventionally, inspection for the presence of such defects has been carried out visually, but visually inspecting the inside of the bottle to determine the presence or absence of defects has a negative impact on the physical condition and ability of the inspector. This can sometimes lead to incredibly large defects being overlooked. Since such visual inspection relies largely on human vision, it is inevitable that many defects will be overlooked. These proposals mainly concern methods and devices for inspecting bottle bodies and bottle bottoms. For example, the bottle body (
In the proposal to inspect the bottle (including the side of the mouth), light is irradiated from one side onto the bottle being rotated at high speed, and a CCD camera installed on the other side captures the transmitted image, converts it into an electrical signal, and sends it to an image processing device. shows a technique for determining the presence or absence of defects. In addition, a proposal to inspect the bottom of a bottle suggests a technology that illuminates the bottom of the bottle from below, captures the transmitted image with a CCD camera installed above the mouth of the bottle, and digitizes this signal for image processing. .

【0004】0004

【発明が解決しようとする課題】しかしながら、上述し
た従来の瓶検査装置は主として空瓶を対象としており、
液を充填した後の瓶検査については、目視に頼れるもの
が主流になってきた。また液充填後の瓶において特に重
大な欠陥として挙げられるのは、異物などが液中に混入
したり、瓶に付着したりする場合で、しかもそれが瓶底
に存在する場合、目視検査でもその確認が困難なものと
なっている。こうした液充填後の瓶底部の自動検査を撮
影画像により実施する場合、瓶上方に設置されたテレビ
(TV)カメラから得られる画像では瓶の王冠・栓など
により瓶底部全体の画像が得られない。また瓶胴部の側
方に設置されたTVカメラ等で、瓶底部を撮像して瓶底
部の欠陥を検査するには、数代のカメラによる画像処理
が必要で、コストと検査時間がかかることになる。この
ため、照明を瓶上方からかもしくは瓶側面から行い、画
像入力を瓶下方に設置したTVカメラで行なうことにな
る。
[Problem to be Solved by the Invention] However, the above-mentioned conventional bottle inspection apparatus is mainly intended for empty bottles.
Visual inspection has become the mainstream for inspecting bottles after filling them with liquid. In addition, a particularly serious defect in bottles after filling with liquid is when foreign matter gets mixed into the liquid or adheres to the bottle, and if it is present on the bottom of the bottle, it can be detected even by visual inspection. It is difficult to confirm. When carrying out automatic inspection of the bottom of the bottle after filling with liquid using photographed images, the image obtained from a television (TV) camera installed above the bottle cannot capture the entire bottom of the bottle due to the crown and stopper of the bottle. . In addition, in order to image the bottom of the bottle using a TV camera installed on the side of the bottle body and inspect it for defects, image processing using several cameras is required, which increases cost and inspection time. become. For this reason, illumination is performed from above or from the side of the bottle, and image input is performed by a TV camera installed below the bottle.

【0005】一般的に、ジュース・ビール等の瓶には、
側面にエンボスや擦り傷(リサイクル瓶は瓶を繰り返し
使用するため、その製造工程のコンベア上で瓶と瓶とが
こすれて擦り傷になる)、等が存在する。このため、瓶
上方もしくは瓶側面から照明して瓶下方のTVカメラで
撮像した画像の中には、光の屈折・全反射・乱反射によ
り生じた上記擦り傷のノイズ画像が混在し、瓶内の異物
画像と識別し難いという問題があり、それらの影響を除
去するための処理が必要となる。
[0005] Generally, bottles for juice, beer, etc.
There are embossments and scratches on the sides (recycled bottles are used repeatedly, so the bottles rub against each other on the conveyor during the manufacturing process, causing scratches). For this reason, images captured by a TV camera below the bottle with illumination from the top or side of the bottle include noise images of the scratches mentioned above caused by refraction, total internal reflection, and diffused reflection of light, and foreign objects inside the bottle. There is a problem that it is difficult to distinguish them from images, and processing is required to remove their influence.

【0006】そこで、本発明の目的は、上述したような
従来の問題点の解決を図り、瓶底部の撮影画像の中から
瓶底部等の擦傷により生じたノイズ部分を除去すること
の可能な瓶検査装置のノイズ除去を提案することにある
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to solve the above-mentioned conventional problems, and to provide a bottle that can remove noise caused by scratches on the bottom of the bottle from a photographed image of the bottom of the bottle. The purpose is to propose noise removal for inspection equipment.

【0007】[0007]

【課題を解決するための手段】このような目的を達成す
るために、本目的は、瓶底部よりも上方から瓶胴部の下
半部に投射する光源と、前記瓶底部からの光情報を画像
信号に変換する撮像手段と、撮像の結果として得られた
1画面分の画像信号の内で前記瓶の画像から着目画素の
周辺の一定画素数以上連続する画像信号を用いて算出さ
れる参照値と着目画素の輝度レベルとの差を設定閾値と
比較してこれより小さい着目画素を検出除去し最終的に
残った1画面分の画像信号を欠陥として認識する画像信
号処理手段とを備えたことを特徴とする。
[Means for Solving the Problems] In order to achieve such an object, the present object includes a light source that projects onto the lower half of the bottle body from above the bottle bottom, and a light source that projects light information from the bottle bottom. A reference that is calculated using an imaging means that converts into an image signal, and image signals that are continuous from the image of the bottle to a certain number of pixels or more around the pixel of interest among the image signals for one screen obtained as a result of imaging. and image signal processing means that compares the difference between the luminance level of the pixel of interest and the luminance level of the pixel of interest with a set threshold value, detects and removes the pixel of interest that is smaller than this, and finally recognizes the image signal for one screen that remains as a defect. It is characterized by

【0008】[0008]

【作用】本発明では、瓶内部に混入する異物はガラス破
片・ヘアピン・王冠等であり、瓶底部にカメラの焦点を
合わせておく限り、それらの画像の面積は小さく、輝度
変化は非常に大きく急激なものとなることに着目し、一
定画素数(面積)以上連続で一定値以上のレベルとなる
画像信号を瓶周辺部の擦傷に対応のノズル信号とみなし
て除去する。さらに、瓶側部にエンボスが有る場合、こ
のエンボスにより生じるノイズ信号も除去される。
[Operation] In the present invention, the foreign objects that enter the bottle are glass fragments, hairpins, crowns, etc., and as long as the camera is focused on the bottom of the bottle, the area of the image is small and the brightness change is very large. Focusing on the fact that the signal increases rapidly, image signals that continuously exceed a certain number of pixels (area) and have a level above a certain value are removed as nozzle signals corresponding to scratches on the periphery of the bottle. Furthermore, if there is an embossment on the side of the bottle, the noise signal caused by this embossment is also removed.

【0009】[0009]

【実施例】以下、図面を参照して本発明実施例の詳細を
説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of the present invention will be explained in detail with reference to the drawings.

【0010】図1,2,3は本発明実施例の基本構成を
示す。
FIGS. 1, 2, and 3 show the basic configuration of an embodiment of the present invention.

【0011】本実施例の瓶検査装置は瓶の底部に対する
撮像の結果として得られた1画面分の  画像信号の中
から、前記瓶の外周部に生じた擦傷に対応のノイズ記号
を除去する瓶検査装置である。
The bottle inspection device of this embodiment removes noise symbols corresponding to scratches occurring on the outer periphery of the bottle from one screen worth of image signals obtained as a result of imaging the bottom of the bottle. It is an inspection device.

【0012】以下、図1を用いて、本発明実施例の基本
構成を示す。図1において、100は着目画素周辺の画
素の輝度レベルから参照値を算出する手段であり、入力
された画像信号より参照値を求める。次に200にて、
入力画像の着目画素の輝度値から前記参照値を減算し差
値を算出する。
The basic configuration of an embodiment of the present invention will be described below with reference to FIG. In FIG. 1, 100 is means for calculating a reference value from the luminance level of pixels around the pixel of interest, and the reference value is calculated from the input image signal. Next, at 200,
The reference value is subtracted from the luminance value of the pixel of interest in the input image to calculate a difference value.

【0013】更に300にて前記差値と設定閾値とを比
較し差値が設定閾値より大きい場合に欠陥と判断する。
Further, at 300, the difference value is compared with a set threshold value, and if the difference value is larger than the set threshold value, it is determined that there is a defect.

【0014】次に本発明を適用した瓶検査装置について
図2および図3を参照して説明する。
Next, a bottle inspection device to which the present invention is applied will be explained with reference to FIGS. 2 and 3.

【0015】図2に示すように被検査瓶1は回転ホイー
ル6と瓶支持板7に保持されて搬送され、被検査瓶1が
撮像カメラ4の上部に位置したときに瓶底画像を検査カ
メラ4により撮像し、その後画像処理装置5において、
撮像結果に基き、瓶内に混入した異物の有無の検査を行
う。図3に示すように検査カメラ4の上方に遮光板3お
よび照明2が設置されており、被検査瓶1が検査位置に
きた時に照明2により瓶底部が照らされる。遮光版3は
照明2からの光が撮像カメラ4に直接入射するのを防ぐ
ためのものである。
As shown in FIG. 2, the bottle 1 to be inspected is conveyed while being held by a rotating wheel 6 and a bottle support plate 7, and when the bottle 1 to be inspected is positioned above the imaging camera 4, an image of the bottom of the bottle is captured by the inspection camera. 4, and then in the image processing device 5,
Based on the imaging results, the bottle is inspected for foreign matter. As shown in FIG. 3, a light shielding plate 3 and a light 2 are installed above the inspection camera 4, and when the bottle 1 to be inspected comes to the inspection position, the bottom of the bottle is illuminated by the light 2. The light shielding plate 3 is for preventing the light from the illumination 2 from directly entering the imaging camera 4.

【0016】ここで、照明2と撮像カメラ4の位置は以
下の様に設定される。照明2から出射された光は被検査
瓶1に入射し瓶表面や瓶と内容液との界面等で屈折し透
過してゆくが、この屈折・透過光が撮像カメラ4のレン
ズに入射しない位置に設置される。この為、撮像カメラ
4がとらえる画像は基本的にエンボス・瓶表面の傷・内
容液中の異物等による乱反射光になる。
[0016] Here, the positions of the illumination 2 and the imaging camera 4 are set as follows. The light emitted from the illumination 2 enters the bottle 1 to be inspected, is refracted and transmitted at the bottle surface, the interface between the bottle and the liquid inside, etc., but there is a position where this refracted and transmitted light does not enter the lens of the imaging camera 4. will be installed in Therefore, the image captured by the imaging camera 4 basically consists of diffusely reflected light due to embossing, scratches on the bottle surface, foreign objects in the liquid, etc.

【0017】本検査はこうした乱反射による画像から内
容液中の異物を検出しようとするものである。上述の処
理手順で得られたジュース瓶の底部の画像を図4に示す
。内容液中の欠陥8、擦り傷ノイズ9がとらえられてい
る。ここで、ジュース瓶の胴部側面には瓶どうしの接触
により生じた擦り傷が一面に存在しており、この部分に
照明2による光を照射すると、瓶表面で反射した光が瓶
中を全反射により伝わり、図4左部に示す様な擦り傷ノ
イズ9として現われる。この擦り傷は瓶の円周方向に沿
ってほぼ全周に生じているため、円周方向に長い画像と
なる。
[0017] This test attempts to detect foreign matter in the liquid content from images resulting from such diffused reflection. An image of the bottom of the juice bottle obtained by the above procedure is shown in FIG. Defects 8 and scratch noises 9 in the liquid content are captured. Here, there are scratches caused by contact between the bottles on the side of the body of the juice bottle, and when this area is irradiated with light from illumination 2, the light reflected from the bottle surface is totally reflected inside the bottle. 4, and appears as scratch noise 9 as shown on the left side of FIG. These scratches occur almost all around the circumference of the bottle, resulting in an image that is long in the circumferential direction.

【0018】こうした画像から欠陥8を認識する際、擦
り傷ノイズとして異物画像と区別する必要がある。一般
にこのような場合、出力画像の輝度値の大小で判定する
場合が多いが繰り返し使用した瓶の場合、擦り傷ノイズ
9が欠陥信号8と輝度レベルにおいて同程度かそれ以上
大きいことが多くあり、単純に輝度値の大小を比較する
だけでは実用に供しない。そこで、本発明ではこうした
擦り傷ノイズの画像が欠陥の画像に比べて、円周方向の
輝度の連続的な変化が緩やかである事を利用し、以下の
処理を画像処理装置5において実行し、擦り傷ノイズを
除去する。
When recognizing the defect 8 from such an image, it is necessary to distinguish it from a foreign object image as scratch noise. Generally, in such cases, judgment is often made based on the magnitude of the brightness value of the output image, but in the case of bottles that have been used repeatedly, the scratch noise 9 is often the same or higher in brightness level than the defect signal 8. It is not practical to simply compare the magnitude of brightness values. Therefore, in the present invention, the following process is executed in the image processing device 5 by taking advantage of the fact that the continuous change in brightness in the circumferential direction of images of scratch noise is gentler than images of defects, and Remove noise.

【0019】円周方向に画素の輝度値を入力する方法を
説明する為検査画像の一例を図5に示す。図中のマス目
は画素を示しており、直交座標系で画素位置を示してい
る。本処理の場合、瓶の円周方向に後述のフィルター処
理を行うため、予め円周方向に沿ったマス目のアドレス
値を画像処理装置5のメモリー内に記憶しておく。この
アドレスに従った円周方向の各画素の輝度値をal〜a
kだとする。今着目画素の輝度値がaiだとすると、以
下のフィルター処理により着目画素の輝度値を補正する
ことにより擦り傷ノイズを除去する。
An example of an inspection image is shown in FIG. 5 to explain the method of inputting the luminance values of pixels in the circumferential direction. The squares in the figure indicate pixels, and the pixel positions are indicated in an orthogonal coordinate system. In the case of this process, address values of squares along the circumferential direction are stored in advance in the memory of the image processing device 5 in order to perform filter processing to be described later in the circumferential direction of the bottle. The brightness value of each pixel in the circumferential direction according to this address is set from al to a.
Suppose it is k. Assuming that the brightness value of the current pixel of interest is ai, the scratch noise is removed by correcting the brightness value of the pixel of interest using the following filter process.

【0020】[0020]

【数1】[Math 1]

【0021】このフィルタ処理は、着目画素を中心とし
た2N+1個の一定長さの輝度レベルの平均を算出しそ
の平均値にX倍を乗じた値(参照値)を着目画素の輝度
レベルから減ずることである。ここでXは0.3〜5程
度の数値であり、大きな値にすると高輝度の画素が連続
して存在する部分の消去効果が強くなり擦り傷ノイズの
除去が容易に行なわれるが、欠陥が擦り傷ノイズと重な
った場合や大きな欠陥の場合に擦り傷ノイズと同様に消
去されることになるため、0.5〜2程度の数値が適当
である。
[0021] This filter processing calculates the average of the luminance levels of 2N+1 fixed lengths centered on the pixel of interest, and subtracts the value (reference value) obtained by multiplying the average value by X times from the luminance level of the pixel of interest. That's true. Here, X is a numerical value of about 0.3 to 5, and when it is set to a large value, the erasing effect becomes stronger in areas where high-brightness pixels are continuously present, and scratch noise can be easily removed. If it overlaps with noise or is a large defect, it will be erased in the same way as scratch noise, so a value of about 0.5 to 2 is appropriate.

【0022】より詳しく図8により説明する。This will be explained in more detail with reference to FIG.

【0023】図8は、撮像カメラ4で撮像された画像信
号において、瓶の円周方向の輝度分布を示したものおよ
び、前記輝度分布に(1)式で示されるフィルター処理
を施したもの、更に設定閾値と比較しこれより小さい画
素を検出除去した画像信号の分布を示したものである。 ここで(1)式のフィルター処理はX=1として行なっ
ている。図8の上2つの図はフィルター処理前後の輝度
分布を示しており、フィルタ処理前の分布に示される様
に欠陥部の信号は急激に変化しているのに対して、擦り
傷ノイズは輝度が緩やかに変化しているのが分る。この
為、擦り傷部は着目画素の輝度レベルと平均値に大きな
差がなく、補正後の輝度レベルai’は数値0に近い値
となる。
FIG. 8 shows the luminance distribution in the circumferential direction of the bottle in the image signal captured by the imaging camera 4, and the luminance distribution subjected to the filter processing shown in equation (1). Furthermore, the distribution of the image signal is shown in which pixels smaller than the set threshold are detected and removed by comparison with the set threshold. Here, the filtering process of equation (1) is performed with X=1. The upper two diagrams in Figure 8 show the luminance distribution before and after filter processing.As shown in the distribution before filter processing, the signal of the defective part changes rapidly, whereas the scratch noise has a lower luminance. I can see that it is changing slowly. Therefore, in the scratched portion, there is no large difference between the brightness level of the pixel of interest and the average value, and the brightness level ai′ after correction becomes a value close to zero.

【0024】一方、欠陥画像は欠陥の外縁部で輝度が急
激に変化しており、かつフィルタ処理の一定長さの範囲
(本例では2N+1)が欠陥のサイズより大きい為、着
目画素の輝度レベルは平均値より大きなものとなる。
On the other hand, in the defect image, the brightness changes rapidly at the outer edge of the defect, and the range of a certain length for filtering (2N+1 in this example) is larger than the size of the defect, so the brightness level of the pixel of interest changes. is larger than the average value.

【0025】以上の処理により、図8中央に示す輝度分
布が得られ、設定閾値をN2とS2の中間の値とするこ
とにより図8の下図に示す様に、欠陥部と擦り傷ノイズ
部の判別可能となる。
Through the above processing, the brightness distribution shown in the center of FIG. 8 is obtained, and by setting the threshold value to an intermediate value between N2 and S2, it is possible to distinguish between defective parts and scratch noise parts, as shown in the lower part of FIG. It becomes possible.

【0026】尚、本例ではフィルター処理の一定長さの
範囲が欠陥のサイズより大きなものの例を示したが、欠
陥サイズの方が大きいものに対しても、その外縁の輝度
が急激に変化している為、外縁部に対してはその輝度値
が平均値よりも充分大きな値となり擦り傷ノイズとの識
別が可能になる。
[0026] In this example, we have shown an example in which the range of a certain length for filter processing is larger than the defect size, but even if the defect size is larger, the brightness at the outer edge changes rapidly. Therefore, the brightness value of the outer edge portion becomes a value sufficiently larger than the average value, making it possible to distinguish it from scratch noise.

【0027】このような処理を実行するための画像処理
装置5の回路構成の一例を図6に示す。
FIG. 6 shows an example of the circuit configuration of the image processing device 5 for executing such processing.

【0028】図6において、中央演算処理装置(CPU
)100、リードオンリメモリ110、ランダムアクセ
スメモリ(RAM)120、キーボード入力装置130
、表示装置140、アナログ−デジタル(A/D)変換
器150が共通バスに接続されている。CPU100は
キーボード入力装置130からの実行命令の入力に応じ
ROM110に格納された図7の制御手順を実行する。
In FIG. 6, the central processing unit (CPU
) 100, read-only memory 110, random access memory (RAM) 120, keyboard input device 130
, a display device 140, and an analog-to-digital (A/D) converter 150 are connected to the common bus. The CPU 100 executes the control procedure shown in FIG. 7 stored in the ROM 110 in response to an execution command input from the keyboard input device 130.

【0029】すなわち、撮像カメラ4から撮像結果とし
て出力される1画面の画像信号(アナログ形態)はA/
D変換器150においてデジタル形態で画素毎の輝度レ
ベルを示す信号に変換され、CPU100によりRAM
120に書き込まれる(U7のステップ10)。
That is, the image signal (analog form) of one screen outputted from the imaging camera 4 as the imaging result is A/
It is converted into a signal indicating the brightness level of each pixel in digital form in the D converter 150, and is stored in the RAM by the CPU 100.
120 (step 10 of U7).

【0030】CPU100はRAM120の中から、円
周付近の画素の輝度データを読出し、上述のフィルタ処
理を施してフィルタ補正後の輝度データをRAM120
に更新的に書き込む(図7のステップS20〜S50の
ループ処理)フィルタ処理を終了した後、CPU100
はRAM120の画像データとしきい値比較を行って、
しきい以上の輝度データを有する欠陥画像を検出する。 この欠陥画像の有無についてはCPU100の指示で表
示装置140に表示される(図7のステップS60)。
The CPU 100 reads the luminance data of pixels near the circumference from the RAM 120, performs the above-described filter processing, and stores the filter-corrected luminance data in the RAM 120.
After finishing the filter processing (loop processing of steps S20 to S50 in FIG. 7), the CPU 100
performs a threshold comparison with the image data of RAM120,
A defective image having luminance data above a threshold is detected. The presence or absence of this defective image is displayed on the display device 140 according to an instruction from the CPU 100 (step S60 in FIG. 7).

【0031】図4に示すようなフィルタ補正前の画像の
円周方向の輝度レベルの分布は図8に示したものとなる
。この信号レベル分布に対してフィルター処理を施した
結果を図8下部に示す。この図に示すように一定長さ以
上の擦り傷ノイズについては輝度信号レベルとノイズレ
ベルの比率S/N比が著しく改善されているのが判かる
。なお、本実施例では減算する平均値の平均範囲は円周
方向8deg分とした。
The luminance level distribution in the circumferential direction of the image before filter correction as shown in FIG. 4 is as shown in FIG. The lower part of FIG. 8 shows the result of filtering this signal level distribution. As shown in this figure, it can be seen that the ratio S/N ratio between the luminance signal level and the noise level is significantly improved for scratch noise of a certain length or more. In this example, the average range of the average value to be subtracted is 8 degrees in the circumferential direction.

【0032】ここで、本実施例のフィルター処理を行う
と図8に示すように信号レベルが小さくなり、欠陥レベ
ルとノイズレベルとのマージンが小さくなってしまうこ
とがある。このため、本実施例ではフィルター処理後の
信号に数値1〜3の定数を乗じることにより補正後の輝
度レベルを増幅し、閾値による欠陥判定を行った。
Here, when the filter processing of this embodiment is performed, the signal level becomes small as shown in FIG. 8, and the margin between the defect level and the noise level may become small. Therefore, in this embodiment, the corrected brightness level was amplified by multiplying the filtered signal by a constant of 1 to 3, and defect determination was performed using a threshold value.

【0033】本実施例に限らず、本実施例を種々変更し
て次のように本発明を実施することができる。
The present invention is not limited to this embodiment, and the present invention can be implemented in various ways as described below.

【0034】 1)本実施例では平均を行う範囲を円周方向8deg分
としたが2deg以上であれば有効である。この平均処
理の範囲は、大きくするほど、欠陥信号は大きな値で検
出できるが擦り傷ノイズの消去効果も小さなものとなる
。一方、平均化処理の範囲を小さくすると、擦り傷ノイ
ズも小さくなるが欠陥信号も小さいものとなる。平均化
処理の範囲は瓶の種類によって最適値に設定するべきで
あり、一般的には円周方向2〜90deg程度が望まし
い。
1) In this embodiment, the range for averaging is 8 degrees in the circumferential direction, but it is effective if it is 2 degrees or more. As the range of this averaging process becomes larger, defect signals can be detected with larger values, but the effect of erasing scratch noise becomes smaller. On the other hand, if the range of the averaging process is made smaller, the scratch noise becomes smaller, but the defect signal also becomes smaller. The range of the averaging process should be set to an optimal value depending on the type of bottle, and is generally desirably about 2 to 90 degrees in the circumferential direction.

【0035】 2)本実施例では円周方向の画素の抽出に際しては、メ
モリー内に記憶しておいたアドレスに従って各画素の輝
度値を読み出したが、適宜、瓶中心・瓶の半径からアド
レス値を計算により求めてもかまわない。また、あるア
ドレスの輝度値をそのまま用いたが、より円周方向に正
確な輝度値を求めるためには、近傍画素の輝度値から補
問により円周方向に沿った輝度値を求めることも可能で
ある。
2) In this embodiment, when extracting pixels in the circumferential direction, the brightness value of each pixel was read out according to the address stored in the memory. may be obtained by calculation. In addition, although the brightness value of a certain address was used as is, in order to obtain a more accurate brightness value in the circumferential direction, it is also possible to calculate the brightness value along the circumferential direction from the brightness values of neighboring pixels using supplementary questions. It is.

【0036】 3)本実施例では瓶底部の擦傷ノイズについてのみ除去
する例を示したが瓶底部にエンボスが有るとき、このエ
ンボスにより生じるノイズ画像をも除去できる。この場
合、フィルタ処理は1画面文の画像信号に対して施す。
3) In this embodiment, an example was shown in which only scratch noise on the bottom of the bottle is removed, but when there is an emboss on the bottom of the bottle, it is also possible to remove the noise image caused by the emboss. In this case, filter processing is performed on the image signal of one screen sentence.

【0037】[0037]

【発明の効果】以上、説明したように、本発明によれば
、瓶検査の対象とはならない瓶底部の擦傷画像を除去で
きるので、従来の空瓶底部検査方法より簡単な処理でし
かも短時間で、瓶底に存在している欠陥異物を検出でき
その検出精度が高まるという効果が得られる。
[Effects of the Invention] As explained above, according to the present invention, it is possible to remove images of scratches on the bottom of the bottle, which are not subject to bottle inspection. Therefore, it is possible to detect defective foreign substances present at the bottom of the bottle, and the detection accuracy can be improved.

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

【図1】本発明実施例の基本構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the basic configuration of an embodiment of the present invention.

【図2】本発明実施例の瓶の配置を示す上面図である。FIG. 2 is a top view showing the arrangement of bottles in an embodiment of the present invention.

【図3】本発明実施例の側面構成を示す構造図である。FIG. 3 is a structural diagram showing a side configuration of an embodiment of the present invention.

【図4】本発明実施例のフィルタ処理前後の画像を模式
的に示す説明図である。
FIG. 4 is an explanatory diagram schematically showing images before and after filter processing according to the embodiment of the present invention.

【図5】検査画像において円周方向に画素データを取り
込む手順を示す説明図である。
FIG. 5 is an explanatory diagram showing a procedure for capturing pixel data in a circumferential direction in an inspection image.

【図6】図3の画像処理装置5の回路構成を示すブロッ
ク図である。
6 is a block diagram showing a circuit configuration of the image processing device 5 of FIG. 3. FIG.

【図7】図6のCPU100の実行する処理手順を示す
フローチャートである。
7 is a flowchart showing a processing procedure executed by the CPU 100 in FIG. 6. FIG.

【図8】本発明実施例のフィルタ処理前後の輝度信号を
波形を示す波形図である。
FIG. 8 is a waveform diagram showing waveforms of a luminance signal before and after filter processing according to an embodiment of the present invention.

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

4  撮像カメラ 5  画像処理装置 100  CPU 110  ROM 120  RAM 4 Imaging camera 5 Image processing device 100 CPU 110 ROM 120 RAM

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  瓶底部よりも上方から瓶胴部の下半部
に投射する光源と、前記瓶底部からの光情報を画像信号
に変換する撮像手段と、撮像の結果として得られた1画
面分の画像信号の内で前記瓶の画像から着目画素の周辺
の一定画素数以上連続する画像信号を用いて算出される
参照値と着目画素の輝度レベルとの差を設定閾値と比較
してこれより小さい着目画素を検出除去し、最終的に残
った1画面分の画像信号を欠陥として認識する画像信号
処理手段とを備えたことを特徴とする瓶検査装置。
1. A light source that projects onto the lower half of the bottle body from above the bottle bottom, an imaging means that converts light information from the bottle bottom into an image signal, and one screen obtained as a result of imaging. The difference between the brightness level of the pixel of interest and the reference value calculated using image signals that are consecutive for a certain number of pixels or more around the pixel of interest from the image of the bottle within the image signals of the number of minutes is compared with a set threshold value. 1. A bottle inspection device comprising: image signal processing means for detecting and removing smaller pixels of interest and finally recognizing one screen's worth of image signals remaining as a defect.
JP2402610A 1990-12-17 1990-12-17 Device for inspecting bottle Withdrawn JPH04216444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2402610A JPH04216444A (en) 1990-12-17 1990-12-17 Device for inspecting bottle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2402610A JPH04216444A (en) 1990-12-17 1990-12-17 Device for inspecting bottle

Publications (1)

Publication Number Publication Date
JPH04216444A true JPH04216444A (en) 1992-08-06

Family

ID=18512410

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2402610A Withdrawn JPH04216444A (en) 1990-12-17 1990-12-17 Device for inspecting bottle

Country Status (1)

Country Link
JP (1) JPH04216444A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0875674A (en) * 1994-09-05 1996-03-22 Kirin Techno Syst:Kk Inspecting device for sediment foreign matter in bottle
JPH10185824A (en) * 1996-12-24 1998-07-14 Kooei:Kk Device for inspecting small product and method using the device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0875674A (en) * 1994-09-05 1996-03-22 Kirin Techno Syst:Kk Inspecting device for sediment foreign matter in bottle
JPH10185824A (en) * 1996-12-24 1998-07-14 Kooei:Kk Device for inspecting small product and method using the device

Similar Documents

Publication Publication Date Title
EP0595261A1 (en) Method of inspecting solid body for foreign matter
JPH0736001B2 (en) Bottle defect inspection method
US5510610A (en) Apparatus for detecting defects on the bottom of bottles by manipulating an image to remove knurls
JPH06100555B2 (en) Defect inspection method and device for transparent object
JPH11311510A (en) Method and apparatus for inspection of very small uneven part
JP3241666B2 (en) Glass container defect inspection equipment
JPH0634573A (en) Bottle inspector
JPH04270951A (en) Method for inspecting bottle
JPH0634574A (en) Bottle inspector
JPH04216444A (en) Device for inspecting bottle
JPH04216445A (en) Device for inspecting bottle
JPH04118546A (en) Bottle inspection device
JPH04240557A (en) Method for detecting flaw
JPH0634575A (en) Bottle inspection method
JPH0448251A (en) Bottle inspecting device
JPH0711414B2 (en) Glass bottle uneven thickness inspection method
JPH0862155A (en) Object 0bserving apparatus
JP3044951B2 (en) Circular container inner surface inspection device
JP3044961B2 (en) Circular container inner surface inspection device
JPH05203584A (en) Device for detecting characteristic amount on work surface
JPH043820B2 (en)
JP4723894B2 (en) Glass bottle thread inspection device and inspection method
JP3682249B2 (en) Glass bottle thread inspection device
JP3055322B2 (en) Circular container inner surface inspection device
JP2715897B2 (en) IC foreign matter inspection apparatus and method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980312