JP2000162156A - Method for detecting defect of bottle drum part - Google Patents

Method for detecting defect of bottle drum part

Info

Publication number
JP2000162156A
JP2000162156A JP10340402A JP34040298A JP2000162156A JP 2000162156 A JP2000162156 A JP 2000162156A JP 10340402 A JP10340402 A JP 10340402A JP 34040298 A JP34040298 A JP 34040298A JP 2000162156 A JP2000162156 A JP 2000162156A
Authority
JP
Japan
Prior art keywords
image
light
dark
defect
change points
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
JP10340402A
Other languages
Japanese (ja)
Inventor
Yasuyo Miyata
康世 宮田
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.)
Omron Kirin Techno System Co Ltd
Original Assignee
Kirin Techno System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kirin Techno System Co Ltd filed Critical Kirin Techno System Co Ltd
Priority to JP10340402A priority Critical patent/JP2000162156A/en
Publication of JP2000162156A publication Critical patent/JP2000162156A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To detect a defect of blister of defects of a bottle drum part. SOLUTION: This method comprises the step 1 of taking the image of the drum part of a bottle 2 by a CCD camera 4 with the light transmitted by a light shielding plate 10 having a plurality of oblique clearances and processing the resulting stripe pattern image to provide a binary image consisting of a bright and dark stripe pattern; the step 2 of scanning the image of the step 1 in the vertical direction of the bottle and extracting change points changed from bright to dark or dark to bright to provide an image consisting of the change points; the step 3 of tracing the change point contact with any one of the four edges of the window from one edge of the four edges to the other edge, and providing an image consisting of only the traced change points; the step 4 of scanning the image of the step 2 and the image of the step 3, and providing an image obtained by erasing the traced change points of the step 3 from the image of the step 2; and the step 5 of scanning the image of the step 4 and judging the presence of a defect when the number of the change points exceeds a set number within a set range.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、壜胴部の欠陥を撮
像により検出する方法に関し、特に、屈折性欠陥の検出
に好適な方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for detecting a defect in a bottle body by imaging, and more particularly to a method suitable for detecting a refractive defect.

【0002】[0002]

【従来の技術】ガラス壜の胴部(壜胴部と呼ぶ)の欠陥
は、入射した光を遮ぎる遮光性欠陥と入射した光を屈折
させる屈折性欠陥とに分類される。遮光性欠陥とともに
屈折性欠陥をも検出する方法として、本件出願人は特公
平6−90150号公報の方法を開示している。公報の
方法は、拡散照明と壜との間に斜方向の複数の隙間をも
つ遮光板(斜スリット板と記載されている)を配置し、
壜胴部を透過した光による縞模様の画像を走査して近接
した三点の明るさを比較するものである。
2. Description of the Related Art Defects in the body of a glass bottle (referred to as a bottle body) are classified into light-blocking defects that block incident light and refractive defects that refract incident light. As a method for detecting a refractive defect as well as a light-shielding defect, the present applicant discloses a method disclosed in Japanese Patent Publication No. 6-90150. In the method of the publication, a light-shielding plate (described as an oblique slit plate) having a plurality of oblique gaps is arranged between the diffused illumination and the bottle,
It scans a striped image formed by light transmitted through the bottle body and compares the brightness of three adjacent points.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、前述の
公報の方法では、壜の肉厚のむらが大きいと縞模様が乱
れて、欠陥検出が困難になることがある。そこで本発明
者は、屈折性欠陥の一つである泡と呼ばれる欠陥の内
で、特に、うす泡と呼ばれる欠陥に注目して、乱れた縞
模様の画像処理方法を検討した。うす泡はガラスの表面
にある薄いレンズ状の気泡である。本発明は、上述の事
情に鑑みなされたもので、壜胴部の欠陥のうちで、うす
泡と呼ばれる欠陥を検出することができる壜胴部の欠陥
検出方法を提供することを目的とする。
However, in the method disclosed in the above-mentioned publication, if the thickness of the bottle is large, the stripe pattern may be disturbed and the defect detection may be difficult. Therefore, the present inventor has studied an image processing method of a disturbed stripe pattern by focusing on a defect called a light bubble among defects called a bubble which is one of refractive defects. Thin bubbles are thin lenticular bubbles on the surface of glass. SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has as its object to provide a bottle body defect detection method capable of detecting a defect called light foam among bottle body defects.

【0004】[0004]

【課題を解決するための手段】上述した目的を達成する
ために、本発明は、斜方向の複数の隙間をもつ遮光板を
透過した光により壜胴部をCCDカメラで撮像し、得ら
れた縞模様の画像を処理して欠陥を検出する方法におい
て、画面のウィンドウ内で明暗の縞模様からなる二値画
像を得るステップ1と、ステップ1の画像を壜の縦方向
に走査して、明から暗または暗から明へ変化した変化点
を抽出し変化点からなる画像を得るステップ2と、ステ
ップ2の画像を走査して、ウィンドウの周囲四辺のいず
れかに接している変化点を四辺の一辺から他辺へトレー
スし、トレースできた変化点のみからなる画像を得るス
テップ3と、ステップ3の画像とステップ2の画像を走
査して、ステップ3でトレースできた変化点をステップ
2の画像から消去した画像を得るステップ4と、ステッ
プ4の画像を走査して、設定範囲の内で変化点の数が設
定数を超えた場合は欠陥が有ると判定するステップ5と
からなることを特徴とするものである。
SUMMARY OF THE INVENTION In order to achieve the above-mentioned object, the present invention obtains an image of a bottle body with a CCD camera using light transmitted through a light shielding plate having a plurality of oblique gaps. In the method of detecting a defect by processing a striped image, a step 1 of obtaining a binary image consisting of bright and dark striped patterns in a window of a screen, and scanning the image of the step 1 in the vertical direction of the bottle to obtain a bright image. Extracting a change point which has changed from dark to dark or dark to light to obtain an image consisting of the change point, and scanning the image of step 2 to find a change point which is in contact with any of the four sides around the window. Step 3 of tracing from one side to the other side to obtain an image consisting only of the traced change points; scanning the image of step 3 and the image of step 2; Erase from Step 4 of obtaining a corrected image, and Step 5 of scanning the image of Step 4 and determining that there is a defect when the number of change points exceeds the set number within the set range. Things.

【0005】本発明によれば、CCDカメラで撮像し、
得られた縞模様の画像を処理することにより明暗の縞模
様からなる二値画像を得る。得られた二値画像では、う
す泡の部分は縞の一部が分岐または孤立した画像となる
ことに注目し、二値画像から明から暗または暗から明へ
変化した変化点を抽出して変化点からなる画像を得たの
ち、ウィンドウの周囲四辺のいずれかに接している変化
点を四辺の一辺から他辺へトレースしてトレースできた
変化点のみからなる画像を得る。上記得られた二つの画
像を走査して、後者の画像においてトレースできた変化
点を前者の画像から消去することにより、縞の一部が分
岐した画像と、ウィンドウの周囲四辺のいずれにも接し
ていない孤立した画像のみを抽出する。この抽出された
画像から所定の設定範囲内で変化点の数をカウントし、
変化点の数が設定数を超えた場合に、うす泡の欠陥があ
ると判定する。
According to the present invention, an image is taken by a CCD camera,
By processing the obtained striped image, a binary image composed of bright and dark striped patterns is obtained. In the obtained binary image, note that the thin bubble part is an image in which some of the stripes are branched or isolated, and extract the change points that changed from light to dark or dark to light from the binary image. After obtaining the image consisting of the changing points, the changing point contacting any one of the four sides of the window is traced from one side of the four sides to the other side to obtain an image consisting only of the traced change points. By scanning the two images obtained above and erasing the change points traceable in the latter image from the former image, it is possible to make contact with any of the image in which a part of the stripe branches and the four sides around the window. Only isolated images that have not been extracted are extracted. Count the number of change points within a predetermined setting range from the extracted image,
When the number of change points exceeds the set number, it is determined that there is a light bubble defect.

【0006】[0006]

【発明の実施の形態】以下、本発明に係る壜胴部の欠陥
検出方法の一実施形態を図1乃至図10を参照して説明
する。図1は本発明の壜胴部の欠陥検出方法を実施する
検査装置を示す正面図である。図1に示すように、検査
装置は、回転台1に載置されたガラス壜2に投光するた
めの光源3aと光拡散板3bとからなる拡散照明3と、
拡散照明3とガラス壜2との間に配置され斜方向の複数
の隙間をもつ遮光板10と、ガラス壜2を挟んで拡散照
明3の反対側に配置されガラス壜2を側方(水平方向)
から撮影するCCDカメラ4と、CCDカメラ4で撮影
された画像を処理する画像処理装置5とから構成されて
いる。CCDカメラ4の光軸は水平又は略水平に設定さ
れている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a method for detecting a defect in a bottle body according to the present invention will be described below with reference to FIGS. FIG. 1 is a front view showing an inspection apparatus for implementing the method for detecting a defect of a bottle body according to the present invention. As shown in FIG. 1, the inspection apparatus includes a diffused illumination 3 including a light source 3a for projecting light onto a glass bottle 2 mounted on a turntable 1 and a light diffusion plate 3b;
A light-shielding plate 10 disposed between the diffused illumination 3 and the glass bottle 2 and having a plurality of oblique gaps, and a glass bottle 2 disposed on the opposite side of the diffused illumination 3 with the glass bottle 2 interposed between the diffused illumination 3 and the glass bottle 2 )
The camera comprises a CCD camera 4 for photographing from a camera, and an image processing device 5 for processing an image photographed by the CCD camera 4. The optical axis of the CCD camera 4 is set to be horizontal or substantially horizontal.

【0007】図2は図1のII−II矢視図であり、遮光板
10の構成を示す図である。図2に示すように、遮光板
10には斜め方向の複数の隙間10sが形成されてい
る。上述の構成において、回転台1によって壜2を回転
させながら、CCDカメラ4によってガラス壜2の側方
から撮影し多数の画面を得る。この場合、拡散照明3か
らの光が遮光板10の隙間10sを透過してガラス壜2
が照明されると、一部の照明光はガラス壜2を透過して
CCDカメラ4に入射する。
FIG. 2 is a view taken in the direction of arrows II-II in FIG. As shown in FIG. 2, a plurality of gaps 10 s in an oblique direction are formed in the light shielding plate 10. In the configuration described above, while the bottle 2 is rotated by the turntable 1, images are taken from the side of the glass bottle 2 by the CCD camera 4 to obtain a large number of screens. In this case, the light from the diffused illumination 3 passes through the gap 10s of the light shielding plate 10 and
Is illuminated, part of the illumination light passes through the glass bottle 2 and enters the CCD camera 4.

【0008】図3はCCDカメラ4によって得られた画
面を示す図である。図3に示すように、遮光板10を透
過した光により壜胴部をCCDカメラ4で撮像すると、
縞模様の画像を有した画面7が得られる。ガラス壜2に
は、肉厚のむらがあるため、縞模様がところどころ変形
している。画面7の中央部にウィンドウWを設定し、画
像処理装置5によりウィンドウW内での画像データを処
理する。画像処理は以下の手順にて行われる。
FIG. 3 is a view showing a screen obtained by the CCD camera 4. As shown in FIG. 3, when the bottle body is imaged by the CCD camera 4 using the light transmitted through the light shielding plate 10,
A screen 7 having a striped image is obtained. Since the glass bottle 2 has uneven thickness, the stripe pattern is deformed in some places. A window W is set in the center of the screen 7, and image data in the window W is processed by the image processing device 5. Image processing is performed in the following procedure.

【0009】画像処理は、ステップ1として、画面7の
ウィンドウW内で明暗の縞模様からなる二値画像を得
る。図4は二値画像を得る段階を説明する図であり、図
4(a)はCCDカメラで得られたウィンドウW内の原
画像を示し、図4(b)は原画像より得られた二値画像
の一部を示す。CCDカメラで撮像した原画像では、図
4(a)に示すように、遮光部(画素□内に×印で示
す)を暗とし、通光部(画素□のみで示す)を明とする
と、境界部(画素□内に斜線/で示す)は明と暗との間
の明るさとなる。従って、ある明るさを閾値として明る
さデータを二値化すると、明と暗との明るさのうち閾値
よりも明るい部分は明(例えば1)となり、暗い部分は
暗(例えば0)となる。よって、マトリックス状に1ま
たは0の配列からなる画像となる。明から暗への変化は
1から0への変化となる。図4(b)において、□のみ
で示す部分は明(1)であり、□内に×印で示す部分は
暗(0)である。
In the image processing, as step 1, a binary image composed of bright and dark stripes is obtained in a window W of the screen 7. 4A and 4B are diagrams for explaining a stage of obtaining a binary image. FIG. 4A shows an original image in a window W obtained by a CCD camera, and FIG. 4B shows a binary image obtained from the original image. 3 shows a part of a value image. In the original image captured by the CCD camera, as shown in FIG. 4A, assuming that a light-shielding portion (indicated by a cross in a pixel □) is dark and a light-transmitting portion (indicated only by a pixel □) is bright. The boundary (indicated by oblique lines in the pixel □) has a brightness between light and dark. Therefore, when the brightness data is binarized using a certain brightness as a threshold, a portion brighter than the threshold among the brightnesses of light and dark becomes light (for example, 1), and a dark portion becomes dark (for example, 0). Therefore, an image having an array of 1s or 0s in a matrix is obtained. The change from light to dark is a change from 1 to 0. In FIG. 4B, a portion indicated by only □ is light (1), and a portion indicated by x in □ is dark (0).

【0010】図5は、図4に示す段階を経て得られた明
暗の縞模様からなる二値画像を示す図である。図の周囲
四辺がウィンドウWである。欠陥であるうす泡の部分は
複数の縞が出現した画像となる。CCDカメラで撮像し
た原画像では複数の縞の一部は明と暗との間の明るさな
ので、二値画像では原画像の明るさの程度により、縞の
一部がつながって分岐した画像(A部)となるか、又
は、ウィンドウWに接しない孤立した画像(B部)とな
る。図5で示すものは画像の一例であるが、縞の一部が
分岐または孤立するのがうす泡の部分の画像の特徴であ
る。欠陥検出はこの特徴を抽出することになる。C部は
壜の合わせ目と呼ばれる縦方向の凸部による画像であ
る。図5においては、合わせ目の画像は明が縦方向はつ
ながったものであるが、二値化の闘値により暗が縦方向
につながることもある。D部は横すじと呼ばれる線状の
凹の画像であり、欠陥ではない。
FIG. 5 is a view showing a binary image composed of bright and dark stripes obtained through the steps shown in FIG. The four sides around the figure are windows W. The light bubble portion which is a defect is an image in which a plurality of stripes appear. In the original image captured by the CCD camera, some of the stripes have a brightness between light and dark, so in a binary image, depending on the brightness of the original image, an image in which some of the stripes are connected and branched ( A) or an isolated image that does not touch the window W (B). FIG. 5 shows an example of an image, which is a feature of an image of a thin bubble portion where a part of a stripe is branched or isolated. Defect detection will extract this feature. The part C is an image formed by vertical projections called seams of the bottle. In FIG. 5, the seam image is one in which light is connected in the vertical direction, but darkness may be connected in the vertical direction due to the threshold value of binarization. The portion D is a linear concave image called a horizontal streak and is not a defect.

【0011】次に、画像処理は、ステップ2として、ス
テップ1の画像を壜の縦方向に走査して、明から暗また
は暗から明へ変化した変化点を抽出し、変化点からなる
画像を得る。図6は、図5の画像を縦方向に走査して、
明から暗または暗から明へ変化した変化点からなる画像
である。変化点の連続したものが線として表示されてい
る。次に、画像処理は、ステップ3として、ステップ2
の画像を走査して、ウィンドウの周囲四辺のいずれかに
接している変化点を四辺の一辺から他辺へトレースし、
トレースできた変化点のみからなる画像を得る。すなわ
ち、ウィンドウWの周囲四辺のいずれかに接している変
化点を四辺の一辺から他辺へトレースする。
Next, in the image processing, as a step 2, the image of the step 1 is scanned in the longitudinal direction of the bottle to extract a change point changed from light to dark or from dark to light, and an image composed of the change points is extracted. obtain. FIG. 6 scans the image of FIG. 5 in the vertical direction,
This is an image composed of changing points that change from light to dark or dark to light. Consecutive change points are displayed as lines. Next, in the image processing, as Step 3, Step 2
Scan the image of the above, trace the change point in contact with any of the four sides of the window from one side of the four sides to the other side,
An image consisting only of the traced change points is obtained. That is, a change point in contact with any of the four sides around the window W is traced from one side of the four sides to the other side.

【0012】次に、トレースの方法を図6および図7を
参照して説明する。図7はトレースの方法を説明する図
であり、図6の右側上部のみを示す。初めに、xのラ
インをyから走査する。最初に出現した変化点に例え
ば10のラベル(識別番号)をつける。そして、図7の
ようにxのラインを走査してxでラベル10が出現
したy座標をみる。ここで変化点が出現すればラベル1
0をつける。出現しないときは上下に一画素はなれたy
座標をみる。これで出現しないときは二画素はなれたy
座標をみる。いくらはなれた座標までみるかは設定によ
る。変化点が出現すればラベル10をつける。これをラ
インxまでくりかえす。次に、再びxのラインを走
査する。ラベル10の次の変化点にラベル11をつけ
る。同様に、xのラインで最後に出現する変化点21
までトレースする。ラベル16〜19のトレースはC部
で終了となる。
Next, a tracing method will be described with reference to FIGS. FIG. 7 is a diagram for explaining the tracing method, and shows only the upper right portion of FIG. First, to scan the line of x 0 from y 0. For example, a label (identification number) of 10 is given to the first appearing change point. The View y coordinate label 10 x 0 by scanning a line of x 1 appeared as shown in Figure 7. If a change point appears here, label 1
Add 0. When it does not appear, it is one pixel up and down
Look at the coordinates. When this does not appear, two pixels are separated y
Look at the coordinates. How far the coordinates are determined depends on the setting. If a change point appears, a label 10 is attached. This is repeated up to line xn . Then, to scan the line of x 0 again. The label 11 is attached to the next change point of the label 10. Similarly, the change point 21 which appears in the last line of x 0
Trace up to The tracing of the labels 16 to 19 ends in part C.

【0013】次に、yのラインをxから走査する。
に出現する変化点にラベル9,8をつけ、xまで
トレースする。次に、xのラインをyからトレース
する。xに出現する変化点のうちラベル16,17に
対応する二点はトレースされていないので、ラベル1
6,17をつけ、xからx側へトレースする。トレ
ースはC部で終了となる。同様にyのラインをx
ら走査する。図8(a)は、図6の画像を走査して、ウ
ィンドウの周囲四辺のいずれかに接している変化点を四
辺の一辺から他辺へトレースし、トレースできた変化点
のみからなる画像を示す図である。変化点の連続したも
のが線として表示されている。図8(b)は図8(a)
のX部拡大図である。
[0013] Next, to scan the line of y 0 from x 0.
Labels 9 and 8 are assigned to the change points appearing in y 0 and trace up to x n . Then, tracing the line of x n from y 0. Since two points corresponding to labels 16 and 17 among the change points appearing in xn are not traced, label 1
With a 6 and 17, the trace from x n to x 0 side. The tracing ends at C section. Similarly to scan the lines y n from x n. FIG. 8A scans the image of FIG. 6 and traces a change point in contact with any of the four sides around the window from one side of the four sides to the other side. FIG. Consecutive change points are displayed as lines. FIG. 8 (b) is the same as FIG.
It is an X section enlarged view of.

【0014】次に、画像処理は、ステップ4として、ス
テップ3の画像とステップ2の画像を走査して、ステッ
プ3でトレースできた変化点をステップ2の画像から消
去した画像を得る。図9は、図6の画像から図8のトレ
ースできた変化点を消去した画像である。図6の変化点
の座標と同一の座標に図8でも変化点があるときに、図
6の変化点を消去する。これにより、縞の一部が分岐し
た画像と、ウィンドウWの周囲四辺のいずれにも接して
いない孤立した画像のみを抽出することができる。図5
のA,B,Dは、トレースできなかった変化点の連続し
た線A,B,Dとして図9で表示されている。図5の合
わせ目Cは消去されている。
Next, in the image processing, in step 4, the image in step 3 and the image in step 2 are scanned to obtain an image in which the change points traced in step 3 are deleted from the image in step 2. FIG. 9 is an image obtained by deleting the traced change points in FIG. 8 from the image in FIG. When there is a change point in FIG. 8 at the same coordinates as the coordinates of the change point in FIG. 6, the change point in FIG. 6 is deleted. As a result, it is possible to extract only an image in which a part of the stripe branches and an isolated image that is not in contact with any of the four sides around the window W. FIG.
A, B, and D are displayed in FIG. 9 as continuous lines A, B, and D of the change points that could not be traced. The joint C in FIG. 5 has been deleted.

【0015】次に、画像処理は、ステップ5として、ス
テップ4の画像を走査して、設定範囲の内で変化点の数
が設定数を超えた場合は欠陥があると判定する。すなわ
ち、図9の画像を走査して設定範囲の内で変化点の数が
設定数を超えた場合は欠陥があると判定する。判定は次
のようにする。図10は画像の所定の設定範囲内の変化
点を示す図である。図10で走査途中の画素(x,y
)に注目したとき、例えばxm−7まで及びyn−3
までの範囲の画素(32個の画素)のデータを読み出
す。前述の範囲を判定にあたっての設定範囲と呼ぶ。設
定範囲の内で変化点であることを示すデータの画素の数
(図では12個)が設定数を超えた場合はうす泡の欠陥
があると判定する。欠陥であるA,Bに比べて欠陥では
ないDは変化点の数が少ないので、設定数の大きさによ
り区別することができる。なお、画像は壜により変化す
るため、設定範囲、設定数は数多くのサンプルテストの
結果により決定され必要により変更されるものである。
Next, in the image processing, as step 5, the image of step 4 is scanned, and if the number of change points exceeds the set number within the set range, it is determined that there is a defect. That is, when the image in FIG. 9 is scanned and the number of change points exceeds the set number within the set range, it is determined that there is a defect. The judgment is as follows. FIG. 10 is a diagram showing a change point within a predetermined setting range of an image. In FIG. 10, the pixel (x m , y
n ), for example, up to xm -7 and yn -3
The data of the pixels (32 pixels) in the range up to are read. The above-mentioned range is referred to as a setting range for determination. When the number of pixels (12 in the figure) of the data indicating the change point within the set range exceeds the set number, it is determined that there is a light bubble defect. D, which is not a defect, has a smaller number of change points than D, which is a defect, and can be distinguished by the magnitude of the set number. Since the image changes depending on the bottle, the setting range and the setting number are determined based on the results of many sample tests and are changed as necessary.

【0016】[0016]

【発明の効果】以上説明したように、本発明によれば、
うす泡による縞模様の乱れの特徴を抽出するので、うす
泡欠陥を確実に検出することができる。
As described above, according to the present invention,
Since the feature of the disorder of the stripe pattern due to the light bubbles is extracted, the light bubble defect can be reliably detected.

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

【図1】本発明の壜胴部の欠陥検出方法を実施する検査
装置を示す正面図である。
FIG. 1 is a front view showing an inspection apparatus for carrying out a method for detecting a defect of a bottle body according to the present invention.

【図2】図1のII−II矢視図であり、遮光板の構成を示
す図である。
FIG. 2 is a view taken in the direction of arrows II-II in FIG. 1, and is a view showing a configuration of a light shielding plate.

【図3】CCDカメラによって得られた画面を示す図で
ある。
FIG. 3 is a diagram showing a screen obtained by a CCD camera.

【図4】二値画像を得る段階を説明する図であり、図4
(a)はCCDカメラで得られた原画像を示し、図4
(b)は原画像より得られた二値画像の一部を示す。
FIG. 4 is a diagram for explaining a step of obtaining a binary image.
(A) shows an original image obtained by a CCD camera, and FIG.
(B) shows a part of the binary image obtained from the original image.

【図5】図4に示す段階を経て得られた明暗の縞模様か
らなる二値画像である。
FIG. 5 is a binary image composed of bright and dark stripes obtained through the steps shown in FIG. 4;

【図6】図5の画像を縦方向に走査して、明から暗また
は暗から明へ変化した変化点からなる画像を示す図であ
る。
FIG. 6 is a diagram showing an image formed by scanning the image of FIG. 5 in the vertical direction and including a change point changed from light to dark or dark to light;

【図7】トレースの方法を説明する図であり、図6の右
側上部のみを示す。
FIG. 7 is a diagram for explaining a tracing method, and shows only the upper right part of FIG. 6;

【図8】図8(a)は、図6の画像を走査して、ウィン
ドウの周囲四辺のいずれかに接している変化点を四辺の
一辺から他辺へトレースし、トレースできた変化点のみ
からなる画像を示す図であり、図8(b)は図8(a)
のX部拡大図である。
FIG. 8 (a) scans the image of FIG. 6 and traces the change points in contact with any of the four sides of the window from one side of the four sides to the other side; FIG. 8B is a diagram showing an image composed of FIG.
It is an X section enlarged view of.

【図9】図6の画像から図8のトレースできた変化点を
消去した画像を示す図である。
9 is a diagram showing an image in which the traced change points in FIG. 8 are deleted from the image in FIG. 6;

【図10】画像の所定の設定範囲内の変化点を示す図で
ある。
FIG. 10 is a diagram showing a change point within a predetermined setting range of an image.

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

1 回転台 2 ガラス壜 3 拡散照明 3a 光源 3b 光拡散板 4 CCDカメラ 5 画像処理装置 7 画面 10 遮光板 10s 隙間 W ウィンドウ Reference Signs List 1 turntable 2 glass bottle 3 diffused illumination 3a light source 3b light diffusion plate 4 CCD camera 5 image processing device 7 screen 10 light shielding plate 10s gap W window

フロントページの続き Fターム(参考) 2G051 AA12 AA90 AB06 BB07 CA03 CB02 DA08 EA11 EA16 ED08 5B057 BA02 BA15 CA02 CA06 CA12 CA16 CE15 DA03 DB02 DB05 DB08 DC16 5L096 BA03 BA18 CA07 CA14 FA06 FA08 FA17 GA17 Continued on front page F term (reference) 2G051 AA12 AA90 AB06 BB07 CA03 CB02 DA08 EA11 EA16 ED08 5B057 BA02 BA15 CA02 CA06 CA12 CA16 CE15 DA03 DB02 DB05 DB08 DC16 5L096 BA03 BA18 CA07 CA14 FA06 FA08 FA17 GA17

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 斜方向の複数の隙間をもつ遮光板を透過
した光により壜胴部をCCDカメラで撮像し、得られた
縞模様の画像を処理して欠陥を検出する方法において、 画面のウィンドウ内で明暗の縞模様からなる二値画像を
得るステップ1と、 ステップ1の画像を壜の縦方向に走査して、明から暗ま
たは暗から明へ変化した変化点を抽出し変化点からなる
画像を得るステップ2と、 ステップ2の画像を走査して、ウィンドウの周囲四辺の
いずれかに接している変化点を四辺の一辺から他辺へト
レースし、トレースできた変化点のみからなる画像を得
るステップ3と、 ステップ3の画像とステップ2の画像を走査して、ステ
ップ3でトレースできた変化点をステップ2の画像から
消去した画像を得るステップ4と、 ステップ4の画像を走査して、設定範囲の内で変化点の
数が設定数を超えた場合は欠陥が有ると判定するステッ
プ5とからなることを特徴とする壜胴部の欠陥検出方
法。
1. A method for detecting a defect by taking an image of a bottle body with a CCD camera using light transmitted through a light shielding plate having a plurality of oblique gaps and processing an obtained striped image to detect a defect. Step 1 of obtaining a binary image consisting of light and dark stripes in a window, and scanning the image of Step 1 in the vertical direction of the bottle to extract a change point changed from light to dark or dark to light, and Step 2 of obtaining an image, and scanning the image of Step 2 to trace a change point in contact with any of the four sides of the window from one side of the four sides to another side, and an image consisting of only the traced change points Step 3 of obtaining the image, Step 4 of scanning the image of Step 3 and the image of Step 2 to obtain an image in which the change points traced in Step 3 are eliminated from the image of Step 2, and Scanning the image of Step 4 Defect detection method of Bindo unit, characterized by comprising a determining 5 which defect is present when the number of change points within the set range exceeds a set number.
JP10340402A 1998-11-30 1998-11-30 Method for detecting defect of bottle drum part Pending JP2000162156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10340402A JP2000162156A (en) 1998-11-30 1998-11-30 Method for detecting defect of bottle drum part

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10340402A JP2000162156A (en) 1998-11-30 1998-11-30 Method for detecting defect of bottle drum part

Publications (1)

Publication Number Publication Date
JP2000162156A true JP2000162156A (en) 2000-06-16

Family

ID=18336615

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10340402A Pending JP2000162156A (en) 1998-11-30 1998-11-30 Method for detecting defect of bottle drum part

Country Status (1)

Country Link
JP (1) JP2000162156A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011167642A (en) * 2010-02-19 2011-09-01 Npo Hiroshima Junkangata Shakai Suishin Kiko Identification method of transparent container
CN110672626A (en) * 2019-11-14 2020-01-10 上海感图网络科技有限公司 Method for detecting particle defects on surface of middle frame of mobile phone shell

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011167642A (en) * 2010-02-19 2011-09-01 Npo Hiroshima Junkangata Shakai Suishin Kiko Identification method of transparent container
CN110672626A (en) * 2019-11-14 2020-01-10 上海感图网络科技有限公司 Method for detecting particle defects on surface of middle frame of mobile phone shell
CN110672626B (en) * 2019-11-14 2023-03-14 上海感图网络科技有限公司 Method for detecting particle defects on surface of middle frame of mobile phone shell

Similar Documents

Publication Publication Date Title
TWI484161B (en) Defect inspection system and filming device for defect inspection, image processing device for defect inspection, image processing program for defect inspection, recording media, and image processing method for defect inspection used therein
EP1006350A1 (en) Method for detecting defects in bottles
JP2001527645A (en) Uneven defect detection method and detection device
JP3185559B2 (en) Surface defect inspection equipment
JP4633245B2 (en) Surface inspection apparatus and surface inspection method
TWI512284B (en) Bubble inspection system for glass
KR20050110005A (en) Detection of macro-defects using micro-inspection inputs
JP2008170256A (en) Flaw detection method, flaw detection program and inspection device
JPH07159337A (en) Fault inspection method for semiconductor element
JP3332208B2 (en) Defect detection method and apparatus for netted glass
JP3695120B2 (en) Defect inspection method
JP2009281759A (en) Color filter defect inspection method, inspection apparatus, and color filter manufacturing method using it
JP2000162156A (en) Method for detecting defect of bottle drum part
JP5136277B2 (en) Defect detection method for netted or lined glass
JPH0283438A (en) Apparatus for evaluating deposit or the like on surface of transparent plate
JP3284462B2 (en) Bottle body defect detection method
JP2003329428A (en) Device and method for surface inspection
JP2003156451A (en) Defect detecting device
JP3284463B2 (en) Bottle body defect detection method
TWI510776B (en) Bubble inspection processing method for glass
JP2014106141A (en) Defect inspection device and defect inspection method
JP2010008125A (en) Bubble sorting method in glass substrate
JP5231779B2 (en) Appearance inspection device
JPH0949717A (en) Method and apparatus for detecting surface flaw of work
JPH10115514A (en) Method and apparatus for inspection of surface smoothness