JPH0493756A - Apparatus for detecting foreign matter in bottle - Google Patents

Apparatus for detecting foreign matter in bottle

Info

Publication number
JPH0493756A
JPH0493756A JP20913490A JP20913490A JPH0493756A JP H0493756 A JPH0493756 A JP H0493756A JP 20913490 A JP20913490 A JP 20913490A JP 20913490 A JP20913490 A JP 20913490A JP H0493756 A JPH0493756 A JP H0493756A
Authority
JP
Japan
Prior art keywords
bottle
image
foreign matter
images
pixel
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.)
Pending
Application number
JP20913490A
Other languages
Japanese (ja)
Inventor
Takashi Onishi
大西 巍
Yasutaka Osawa
大沢 保孝
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.)
Mitsubishi Heavy Industries Ltd
Original Assignee
Mitsubishi Heavy Industries 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 Mitsubishi Heavy Industries Ltd filed Critical Mitsubishi Heavy Industries Ltd
Priority to JP20913490A priority Critical patent/JPH0493756A/en
Publication of JPH0493756A publication Critical patent/JPH0493756A/en
Pending 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
    • G01N21/9027Dirt detection in containers in containers after filling

Landscapes

  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

PURPOSE:To make it possible to prevent erroneous detection due to the deviation of images by operating the minimum value of the absolute value of the output difference between the picture element of a reference image and the image at a corresponding position and the picture element at the surrounding part. CONSTITUTION:A bottle 11 which is conveyed with a conveyer is rotated with spin belts 2-1 and 2-2. After the rotation is stopped, the image is picked up with CCD cameras 6-1 and 6-2 when the bottle passes through position sensors 3-1 and 3-2. At this time, a foreign matter 11a continues rotation together with liquid by inertial force after the stop of the rotation of the bottle. Therefore, two images of the foreign matter 11a are picked up at the different positions. An image processing device 7 operates the minimum value of the absolute value of the output difference based on the output signals. The signals caused by flaws, contamination and the like of the bottle are removed from the value, and only the foreign matter in the content liquid is detected. In this way, the slight deviation between the images which are picked up with two CCD cameras can be completely eliminated, and the high-speed inspection with less erroneous detection can be performed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、透明びんの内容液中に浮遊する異物の検出装
置に関するもので、動く物体のみを検出することを目的
とした検出装置にも適用できる。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a detection device for foreign objects floating in the liquid contained in a transparent bottle, and is also applicable to a detection device whose purpose is to detect only moving objects. Applicable.

〔従来の技術〕[Conventional technology]

びん液中の浮遊異物を検出する装置として、移動するび
んを同方向、等距離より2台のカメラで画像をとらえ、
これらの画像画素子の輝度の差を演算して異物のみを抽
出する検査装置(特願昭63227571号)、びんを
静止させて1台のカメラで2枚の画像をとり、これらの
画素子の差を演算して浮遊異物を抽出する装置(特開昭
62−220844号)などが提案されている。
As a device to detect floating foreign objects in bottle liquid, two cameras capture images of moving bottles from the same direction and at the same distance.
An inspection device (Japanese Patent Application No. 63227571) that calculates the difference in the brightness of these image pixels and extracts only foreign matter, holds the bottle still and takes two images with one camera, A device (Japanese Unexamined Patent Publication No. 62-220844) that extracts floating foreign matter by calculating the difference has been proposed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

前述の従来技術には次のような問題点がある。 The above-mentioned conventional technology has the following problems.

(1)1台のカメラでびんを2回撮像してこれらの画素
子の差から浮遊異物のみを抽出する検出装置(特開昭6
2−220844号)では、撮像前に異物に運動を与え
るためにびんを回転させて撮像時にはぴんとカメラの位
置関係を静止させる必要がある。このため、ラインで流
れてきたびんは撮像のため−たん動きを止め、撮像終了
後再び移動させる必要がある。この方法ではこのびん運
動の加減速のため、時間がかがり高速処理ができないこ
とや、びんにかかる加速度のため泡が発生してこれがノ
イズとなって誤検出の原因になるなどの不具合がある。
(1) A detection device that images a bottle twice with one camera and extracts only floating foreign matter from the difference between these pixel elements (Japanese Patent Laid-Open No. 6
No. 2-220844), it is necessary to rotate the bottle to give motion to the foreign object before imaging, and to keep the positional relationship between the camera and the camera still during imaging. For this reason, it is necessary for the bottles flowing along the line to stop moving temporarily for imaging, and then to be moved again after imaging is completed. This method has disadvantages such as the acceleration and deceleration of the bottle movement, which takes time and prevents high-speed processing, and the acceleration applied to the bottle generates bubbles, which become noise and cause false detection.

(2)上記(1)項の不具合を解消するため、2台のカ
メラで移動中のびんを同方向より2回盪像し、これらの
画像の差より異物を抽出する装置(特願昭63−227
571号)がある。この方法では、びんの加減速がない
ため、泡の発生なしに高速で検査ができる利点があるが
、ぴんとカメラの2組の位置関係が互いにわずかにずれ
たり、カメラ特性の差がある場合などには、2つの画像
にズレが生してびんのフチやキズや汚しなど、びんに固
定される画像信号の境界が異物信号として誤検出される
場合が発生する。
(2) In order to solve the problem mentioned in item (1) above, a device (patent application 1983-1988) was developed which images a moving bottle twice from the same direction using two cameras and extracts foreign substances from the difference between these images. 227
No. 571). With this method, there is no acceleration or deceleration of the bottle, so it has the advantage of being able to inspect at high speed without generating bubbles. In this case, the two images may be misaligned, and the border of the image signal fixed to the bottle, such as the edge of the bottle, scratches, dirt, etc., may be erroneously detected as a foreign object signal.

本発明は上記(2)項の検査方法において、画像のズレ
による誤検出を、画像処理により防止することを目的と
するものである。
The present invention aims to prevent erroneous detection due to image shift by image processing in the inspection method described in item (2) above.

〔課題を解決するための手段] 2組の画像読取装置と、同画像読取装置の出力信号を演
算する画像処理装置と、同画像処理装置の異物判定信号
に基づき不良びんを選別するセパレータとを具えたびん
内異物検出袋夏において、一方の基準画像の画素子と、
同画素子に対応する位置の他方の画像の画素子およびそ
の周辺画素子の出力とを比較する。
[Means for solving the problem] Two sets of image reading devices, an image processing device that calculates an output signal of the image reading device, and a separator that selects defective bottles based on a foreign matter determination signal of the image processing device are provided. In the summer, the pixel of one reference image and
The pixel of the other image at the position corresponding to the same pixel element and the outputs of its surrounding pixel elements are compared.

その出力の差の絶対埴の最小値を演算し、この値により
びんのキズ、文字、汚し等による信号を除去し、内容液
中の異物だけを検出する。
The absolute minimum value of the difference between the outputs is calculated, and signals caused by scratches, letters, dirt, etc. on the bottle are removed, and only foreign objects in the liquid are detected.

〔作用〕[Effect]

2組の画像読取装置と、同画像読取装置の出力信号を演
算する画像処理装置と、同画像処理装置の異物判定信号
に基づき不良びんを選別するセパレータとを具えたびん
内異物検出装置に、基準画面の画素と比較画面周辺画素
との出力の差(絶対値)の最小値を演算する機能を付加
することにより、2台のカメラで撮像された画像のわず
かなズレを完全に消去できる。
A foreign object detection device in a bottle includes two sets of image reading devices, an image processing device that calculates an output signal of the image reading device, and a separator that selects defective bottles based on a foreign object determination signal of the image processing device. By adding a function to calculate the minimum value of the difference (absolute value) between the outputs of pixels on the reference screen and surrounding pixels on the comparison screen, it is possible to completely eliminate slight deviations in images captured by the two cameras.

〔実施例〕〔Example〕

本発明に係わるびん内異物検出装置の実施例を第1図に
、この画像処理のフローを第2図に示す。
An embodiment of the in-bottle foreign matter detection device according to the present invention is shown in FIG. 1, and the flow of this image processing is shown in FIG.

第1図において、コンベア1により搬送されるびん11
は、スピンベルト2−1.2−2により回転を与えられ
、回転停止後、位置センサー3−1.3−2を通過時、
光#(ストロボ) 5−1.5−2を発光させてCC[
]]カメラ6−16−2により邊像される。異物11a
は、びんの回転停止後も液とともに慣性力により回転を
続けるから、2つの画像では異なる位置に撮像される。
In FIG. 1, bottles 11 are conveyed by a conveyor 1.
is given rotation by the spin belt 2-1.2-2, and after it stops rotating, when it passes the position sensor 3-1.3-2,
Light # (strobe) Lights up 5-1.5-2 and CC [
]] A close-up image is taken by the camera 6-16-2. Foreign object 11a
Since the bottle continues to rotate together with the liquid due to inertial force even after the bottle stops rotating, the two images are taken at different positions.

2つの画像の差分をとれば異物の位置ズレにより異物の
み差があられれる。この信号の大小によりセパレータ8
の動作を制御すれば良品、不良品にびんを区分けできる
By taking the difference between the two images, only the difference due to the positional shift of the foreign object can be removed. Depending on the magnitude of this signal, the separator 8
By controlling the operation of the bottle, it is possible to classify the bottles into good and defective ones.

なお、4は光源コントローラ、9は不良品ライン、10
は良品ラインである。
In addition, 4 is a light source controller, 9 is a defective product line, and 10 is a light source controller.
is a good product line.

2−′)の画像の差δを、第1の画像の1つの画素子の
輝度Sijと、第2の画像の対応する画素子の輝度S’
ijと同画素子の周辺8画素との9ケの差の絶対値の最
小値にとる演算si能を付加する手段を採用する。即ち
(i、j)位置の差分をδ、J−11in  (l S
t、J−3’  i+I、j’l 、l St、i”’
 r、= l 、l Sr、J−5’ i−+、J1.
  l 5=1−5’ 6 ++−= +ll 、:S
*、J−5’ r1=”+ l 、Is;、J−5’ 
rJ+l  、l 5l−J−5’ I+l、J−11
、l s、、 JSr2a−+ 1.l S;、J−5
;−+、i−+ l lとする。
2-') is expressed as the brightness Sij of one pixel element in the first image and the brightness S' of the corresponding pixel element in the second image.
A means for adding an operation si function to take the minimum value of the absolute values of nine differences between ij and eight surrounding pixels of the same pixel element is adopted. That is, the difference between the positions (i, j) is δ, J-11in (l S
t, J-3' i+I, j'l, l St, i"'
r, = l, l Sr, J-5' i-+, J1.
l 5=1-5' 6 ++-= +ll , :S
*, J-5' r1=”+ l, Is;, J-5'
rJ+l, l 5l-J-5' I+l, J-11
, l s,, JSr2a-+ 1. lS;, J-5
;-+, i-+ l l.

同様に第2の画面を基準とした差分δ′も上と同形の式
で定義できる。これは上式のSとS′を入れかえた演算
を行なえばよい、ここで座標ijの差分δS、Jを δSi、j −max (δl+j δ’、、j+で表
し、 δS ij≠OまたはδS ij≧ε(定数)なる(i
Similarly, the difference δ' with respect to the second screen can also be defined by the same formula as above. This can be done by replacing S and S' in the above equation. Here, the difference δS, J in coordinates ij is expressed as δSi, j -max (δl+j δ',, j+, and δS ij≠O or δS ij ≧ε (constant) (i
.

j)i!ii素子は異物ありと判定する。j) i! The ii element determines that there is a foreign object.

以下この演算機能を「差分フィルター」という。Hereinafter, this calculation function will be referred to as a "difference filter."

[作用] 上記の演算に際し、1画素分の位置的ズレがあっても、
対応する相手画面の周辺9百素との輝度比較により画像
差が演算されるがら、そのズレが1i!!素分以内であ
ればびんに静止する汚しなどの画像信号を除去できる。
[Operation] In the above calculation, even if there is a positional shift of one pixel,
The image difference is calculated by comparing the brightness with the surrounding 900 elements of the corresponding opponent's screen, and the difference is 1i! ! If it is within the elementary range, it is possible to remove image signals such as stains on a bottle.

基準画面は第1の画像と第2の画像の2つをとったが、
1つのみでも同し機能を果すことは演算アルゴリズムか
ら明らかである、ただし基準画像を第1.第2両画面と
することで、浮遊異物の検出確率が上がる。
Two reference screens were taken, the first image and the second image.
It is clear from the calculation algorithm that the same function can be achieved even with only one. However, if the reference image is the first one. By using the second and both screens, the probability of detecting floating foreign objects increases.

例えば、第1の画像に異物が検出されず第2の画像にの
み異物が検出される場合、第1の画像を基準とした演算
のみでは異物信号が検出できない(第3図参照)。
For example, if a foreign object is not detected in the first image but only in the second image, the foreign object signal cannot be detected only by calculation based on the first image (see FIG. 3).

本実施例では、周辺9画素との差をとったが、ズレが大
きい場合には、5 X 5 =25函素との比較を行な
えばよい。尚、異物はびん内で2枚の画像の取り込む間
に1画素分以上の移動があれば、この差分フィルターよ
り信号が除去されることはない。
In this embodiment, the difference from the surrounding nine pixels is calculated, but if the deviation is large, a comparison with 5 x 5 = 25 pixels may be performed. Note that if the foreign object moves by one pixel or more during the capture of two images within the bottle, the signal will not be removed by this differential filter.

第2図は、画像処理のフローを示すもので、ここで本発
明の主要部をなしている差分フィルターの機能を第3図
により説明する。
FIG. 2 shows the flow of image processing, and the function of the differential filter, which is the main part of the present invention, will now be explained with reference to FIG.

第3図のi−2,i−1,i、 i +1. i +2
及びj−2j−1,j、j ±1.j+2は、画像上の
一部の画素子の位置を示す座標、Aが異物、Bがキズ信
号とする。イ装置(Lm) (1=i−2〜i  +2
.  m=j−2〜j+2)に対応する1、0の数字は
1が暗、0が明の輝度を表し簡単のため2値化している
。画像1と2とでズレが水平方向垂直方向に各1画素生
じたとすると画像1のキズ信号Bは、画像2のようにず
れる。
i-2, i-1, i, i +1 in FIG. i +2
and j-2j-1,j,j ±1. j+2 is the coordinate indicating the position of a part of the pixel on the image, A is a foreign object, and B is a scratch signal. i device (Lm) (1=i-2~i+2
.. The numbers 1 and 0 corresponding to m=j-2 to j+2) represent brightness, with 1 being dark and 0 being bright, and are binarized for simplicity. Assuming that images 1 and 2 are misaligned by one pixel each in the horizontal and vertical directions, the flaw signal B of image 1 is misaligned as in image 2.

一方、異物は液の回転と共に大きく動き、例えば図の画
像2の位置にきたものとする。先に説明した基準画面と
その周辺9百素の差分フィルター演算すれば、s−s’
についてδ、δ′−3についてδ′のような差分値が得
られ、いずれもキズ信号を除去することになる。δとδ
′のwax演算δSは、図に示すように、1つの異物に
ついて2つの異物信号を検出することになる。
On the other hand, it is assumed that the foreign object moves significantly as the liquid rotates and comes to the position of image 2 in the figure, for example. If we calculate the difference filter between the reference screen and its surrounding 900 pixels as explained earlier, we get s-s'
Difference values such as δ for δ and δ′ for δ′−3 are obtained, and both of them remove the flaw signal. δ and δ
As shown in the figure, the wax calculation δS of ' will detect two foreign object signals for one foreign object.

〔発明の効果〕〔Effect of the invention〕

本発明は、二組の画像読取装置と、同画像読取装置の出
力信号を演算する画像処理装置と、同画像処理装置の異
物判定信号に基づき不良びんを選別するセパレータとを
具えたびん内異物検出装置において、一方の基準画像の
画素子と、同画素子に対応する位置の他方の画像の画素
子およびその周辺画素子の出力とを比較して、その差の
絶対値の最小値を演算し、この値によりびんのキズ、文
字、汚し等による信号を除去し、内容液中の異物だけを
検出する機能を有する画像処理装置を具えたことにより
、次の効果を有する。
The present invention provides a method for detecting foreign matter in a bottle, which includes two sets of image reading devices, an image processing device that calculates an output signal of the image reading device, and a separator that selects defective bottles based on a foreign material determination signal of the image processing device. In the detection device, the pixel of one reference image is compared with the output of the pixel of the other image at the position corresponding to the same pixel and its surrounding pixel, and the minimum absolute value of the difference is calculated. However, by providing an image processing device having a function of removing signals caused by scratches, letters, stains, etc. on the bottle based on this value and detecting only foreign matter in the liquid contained in the bottle, the following effects are achieved.

特願昭63−227571号等として特許出願されてい
る従来の検びん装置に、基準画面と比較画面周辺画素の
最小値を演算する機能を付加したことにより、2つのカ
メラで撮像された画像のわずかなズレを完全に消去でき
、高速で、誤検出の少ない信転性の高い実びん検査を提
供することができる。
By adding a function to calculate the minimum value of the peripheral pixels of the reference screen and comparison screen to the conventional bottle inspection device for which a patent has been applied for in Japanese Patent Application No. 63-227571, etc., it is possible to improve the Slight deviations can be completely eliminated, and it is possible to provide high-speed, highly reliable actual bottle inspection with few false positives.

また従来人間が目視で行っていた目視検査を自動化し、
省力化することができる。
In addition, we have automated visual inspections that were previously performed by humans.
It can save labor.

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

第1図は本発明の実施例に係るびん内異物検出装置の概
略構成図、第2図は異物検出の手順のフローと画像処理
内容を示す図、第3図は差分フィルターの機能を示す図
である。 1・・・コンベア、     2−1.2−2・・・ス
ピンベルト3−1.3−2・・・びん位置センサ。 5−1.5−2・・・光源、    6−1.6−2・
・・カメラ。 7・・・画像処理装置 11・・・びん。 8・・・セパレータ。 11a・・・異物
Fig. 1 is a schematic configuration diagram of a foreign object detection device in a bottle according to an embodiment of the present invention, Fig. 2 is a diagram showing the procedure flow of foreign object detection and image processing contents, and Fig. 3 is a diagram showing the function of a differential filter. It is. 1... Conveyor, 2-1.2-2... Spin belt 3-1.3-2... Bottle position sensor. 5-1.5-2...Light source, 6-1.6-2.
··camera. 7... Image processing device 11... Bottle. 8...Separator. 11a...Foreign object

Claims (1)

【特許請求の範囲】[Claims]  二組の画像読取装置と、同画像読取装置の出力信号を
演算する画像処理装置と、同画像処理装置の異物判定信
号に基づき不良びんを選別するセパレータとを具えたび
ん内異物検出装置において、一方の基準画像の画素子と
、同画素子に対応する位置の他方の画像の画素子および
その周辺画素子の出力とを比較して、その差の絶対値の
最小値を演算し、この値によりびんのキズ、文字、汚レ
等による信号を除去し、内容液中の異物だけを検出する
機能を有する画像処理装置を具えたことを特徴とするび
ん内異物検出装置。
A foreign object detection device in a bottle includes two sets of image reading devices, an image processing device that calculates output signals of the image reading devices, and a separator that selects defective bottles based on the foreign object determination signal of the image processing devices, Compare the pixel of one reference image with the output of the pixel of the other image at the position corresponding to the same pixel and its surrounding pixel, calculate the minimum absolute value of the difference, and calculate this value. 1. A foreign object detection device in a bottle, comprising an image processing device having a function of detecting only foreign objects in the liquid content by removing signals caused by scratches, letters, dirt, etc. on the bottle.
JP20913490A 1990-08-09 1990-08-09 Apparatus for detecting foreign matter in bottle Pending JPH0493756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20913490A JPH0493756A (en) 1990-08-09 1990-08-09 Apparatus for detecting foreign matter in bottle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20913490A JPH0493756A (en) 1990-08-09 1990-08-09 Apparatus for detecting foreign matter in bottle

Publications (1)

Publication Number Publication Date
JPH0493756A true JPH0493756A (en) 1992-03-26

Family

ID=16567857

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20913490A Pending JPH0493756A (en) 1990-08-09 1990-08-09 Apparatus for detecting foreign matter in bottle

Country Status (1)

Country Link
JP (1) JPH0493756A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002122550A (en) * 2000-08-11 2002-04-26 Ajinomoto Faruma Kk Device and method for inspection of foreign matter in flexible plastic container

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002122550A (en) * 2000-08-11 2002-04-26 Ajinomoto Faruma Kk Device and method for inspection of foreign matter in flexible plastic container

Similar Documents

Publication Publication Date Title
JPH04166751A (en) Method and apparatus for inspecting defect in bottle and the like
JPH04220551A (en) Method and apparatus for inspecting flaw of transparent body
JPH04252940A (en) Method and apparatus for inspecting flaw of end part of body
JP4328333B2 (en) Glass bottle inspection equipment
JP3934359B2 (en) Foreign matter inspection device in liquid filled in transparent container
JPH0736004B2 (en) Inspection method and device
JP5776467B2 (en) Defect inspection equipment
JP5509465B2 (en) Glass bottle inspection equipment
JPH0493756A (en) Apparatus for detecting foreign matter in bottle
JP4309405B2 (en) Glass bottle inspection equipment
JPH02257044A (en) Device for inspecting bottle
JPH1010054A (en) Inspection device for surface defect
JP3155106B2 (en) Bottle seal appearance inspection method and apparatus
JPH07174672A (en) Wheel-tread-fault inspection apparatus
JPH043820B2 (en)
JP4177204B2 (en) Container foreign matter inspection system
JPH06102199A (en) Method and device for automatic cloth inspection
JPH0275941A (en) Bottle inspection device
JP3682249B2 (en) Glass bottle thread inspection device
JP2002267612A (en) Device and system for inspecting foreign matter in liquid filled in transparent container or the like
JPH04148854A (en) Surface-defect detecting apparatus
JPS63292386A (en) Counting device for moving object
JP2005214991A (en) Apparatus and method for inspecting thread part of glass bottle
US20210100256A1 (en) Foreign Material Inspection System
JP2000055827A (en) Method and device for inspecting mouth part of glass container, etc.