JP4986255B1 - Container mouth inspection method and apparatus - Google Patents

Container mouth inspection method and apparatus Download PDF

Info

Publication number
JP4986255B1
JP4986255B1 JP2011546515A JP2011546515A JP4986255B1 JP 4986255 B1 JP4986255 B1 JP 4986255B1 JP 2011546515 A JP2011546515 A JP 2011546515A JP 2011546515 A JP2011546515 A JP 2011546515A JP 4986255 B1 JP4986255 B1 JP 4986255B1
Authority
JP
Japan
Prior art keywords
inspection
ring
gate
screw
inspection gate
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.)
Active
Application number
JP2011546515A
Other languages
Japanese (ja)
Other versions
JPWO2013018207A1 (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
Application granted granted Critical
Publication of JP4986255B1 publication Critical patent/JP4986255B1/en
Publication of JPWO2013018207A1 publication Critical patent/JPWO2013018207A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/9054Inspection of sealing surface and container finish

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

ガラスびんのねじの始端の欠陥を精度よく検査できるようにする。
容器の上方から容器口部をカメラで撮像し、該撮像画像の中のリング状のねじ画像の上にリング状検査ゲートを作成し、該リング状検査ゲートの中において所定の濃淡差を超える暗い部分を探し、該暗い部分を含む前記リング状検査ゲートの一部の領域にねじ端検査ゲートを作成する。該ねじ端検査ゲート内において、予め登録してあるねじ端の登録画像とパターンマッチするねじ端画像を探し、パターンマッチしたねじ端の両側の、リング状検査ゲートの一部の領域に左右部検査ゲートを作成する。該左右部検査ゲート内において、所定の濃淡差及び面積を超える暗い部分を検出したときに当該暗い部分を欠陥として判定する。
【選択図】図12
Enables accurate inspection of defects at the beginning of glass bottle screws.
The container mouth is imaged from above the container with a camera, a ring-shaped inspection gate is created on the ring-shaped screw image in the captured image, and the darkness exceeding a predetermined gray level difference in the ring-shaped inspection gate A portion of the ring-shaped inspection gate including the dark portion is searched for and a screw end inspection gate is formed. In the screw end inspection gate, a screw end image that matches the registered image of the screw end that has been registered in advance is searched, and left and right side inspections are performed on a part of the ring-shaped inspection gate on both sides of the pattern matched screw end. Create a gate. In the left and right inspection gates, when a dark part exceeding a predetermined density difference and area is detected, the dark part is determined as a defect.
[Selection] Figure 12

Description

本発明は、ガラスびんなどの容器の口部のねじ及び天面の欠陥(欠け)の有無を検査する容器口部検査方法及び装置で、特にコンベアで搬送中の容器を検査できるものに関する。   The present invention relates to a container mouth inspection method and apparatus for inspecting the presence or absence of defects (chips) in the mouth of a container such as a glass bottle, and more particularly to a container inspecting a container being conveyed by a conveyor.

コンベアで搬送中の容器のねじを検査する装置は、下記特許文献1に開示されている。これは、容器口部の外周面からの光を反射するミラーと、ミラーからの光を撮像するカメラをそなえ、カメラで撮像したねじの始端から終端までが映っている画像を画像処理装置で処理し、画像中の画素が暗い画素から明るい画素に変わったところ又は明るい画素から暗い画素に変わったところを見つけ、この暗から明又は明から暗に変わった画素の部分がねじの始端あるいはねじに形成された欠陥(欠け)と判定するものである。   An apparatus for inspecting a screw of a container being conveyed by a conveyor is disclosed in Patent Document 1 below. This includes a mirror that reflects the light from the outer peripheral surface of the container mouth and a camera that captures the light from the mirror, and an image processing device processes images from the beginning to the end of the screw imaged by the camera. When the pixel in the image has changed from a dark pixel to a bright pixel or from a bright pixel to a dark pixel, the portion of the pixel that has changed from dark to bright or bright to dark is the start of the screw or screw. It is determined as a formed defect (chip).

特開2010−151473号公報JP 2010-151473 A

上記従来の装置は、暗から明又は明から暗に変わった部分をねじの始端又は欠陥と判定するものであるから、ねじの始端の欠陥を発見することができないという問題がある。しかも、ねじの欠陥は、ねじの始端に発生する場合が多い。   The above-described conventional apparatus has a problem in that a defect at the start of the screw cannot be found because the portion that has changed from dark to light or from bright to dark is determined as the start or defect of the screw. Moreover, screw defects often occur at the beginning of the screw.

本発明は、コンベアで搬送中の容器の口部検査において、ねじの始端の欠陥も発見できるようにすることを課題とするものである。   An object of the present invention is to make it possible to find a defect at the start of a screw in the mouth inspection of a container being conveyed by a conveyor.

(請求項1)
本発明は、容器の上方から容器口部をカメラで撮像するステップと、
該撮像画像の中のリング状のねじ画像の上にリング状検査ゲートを作成するステップと、
該リング状検査ゲートの中において所定の濃淡差を超える部分を探すステップと、
越える部分を含む前記リング状検査ゲートの一部の領域にねじ端検査ゲートを作成するステップと、
該ねじ端検査ゲート内において、予め登録してあるねじ端の登録画像とパターンマッチするねじ端画像を探すステップと、
パターンマッチしたねじ端の両側の、前記リング状検査ゲートの一部の領域に左右部検査ゲートを作成するステップと、
該左右部検査ゲート内において、所定の明るさ以下で所定の面積を超える暗い部分を検出するステップを有し、当該所定の明るさ以下で所定の面積を超える暗い部分を欠陥として判定することを特徴とする容器口部検査方法である。
(Claim 1)
The present invention includes the step of imaging the container mouth from above the container with a camera;
Creating a ring-shaped inspection gate on a ring-shaped screw image in the captured image;
A step to search for parts component that exceeds a predetermined shading difference in inside of the ring-shaped test gate,
Creating a screw end inspection gate in a partial region of the ring-shaped inspection gate including the crossing portion;
In the screw end inspection gate, searching for a screw end image that matches a registered image of a screw end registered in advance;
Creating left and right inspection gates in a partial region of the ring-shaped inspection gate on both sides of the pattern matched screw ends;
In left and right portions inspection gate, comprising the step of detecting the dark portion exceeding a predetermined area at a predetermined less brightness, determining a dark portion exceeding a predetermined area below the predetermined brightness as defect It is the container mouth part inspection method characterized.

ねじの欠けは、ほとんど、ねじ端(ねじ上端の切り始め部)及びねじの1条目に発生するので、容器口部を上から撮像した画像によりねじの欠陥(欠け)検査を行うことができる。上から撮像した画像は単純であるので、検査精度がよくなる。   Most of the chipping of the screw occurs at the screw end (starting portion of the upper end of the screw) and the first thread of the screw. Therefore, the screw defect (chip) can be inspected by an image obtained by imaging the container mouth from above. Since the image taken from above is simple, the inspection accuracy is improved.

後述するように、ねじ端に欠けがあると、通常のねじ端の画像の暗い部分に隣接して暗い部分が発生するので、左右部検査ゲートにおいて濃淡の検査を行うことで、ねじ端の欠けを検出することができる。   As will be described later, if there is a chip at the screw end, a dark part will occur adjacent to the dark part of the normal screw end image. Can be detected.

(請求項2)
また本発明は、さらに、前記リング状検査ゲートであって前記ねじ端検査ゲート以外の部分を半径方向の線で複数に分割した分割検査ゲートを作成するステップと、該各分割検査ゲートにおいて所定の明るさ以下で所定の面積を超える暗い部分を検出するステップを有し、当該所定の明るさ以下で所定の及び面積を超える暗い部分を欠陥として判定する請求項1に記載の容器口部検査方法である。
(Claim 2)
The present invention further includes a step of creating a divided inspection gate in which the portion other than the screw end inspection gate is divided into a plurality of portions along a radial line, and a predetermined inspection is performed in each divided inspection gate. The container mouth inspection method according to claim 1, further comprising a step of detecting a dark portion that is less than brightness and exceeds a predetermined area, and that a dark portion that is less than the predetermined brightness and exceeds the predetermined area is determined as a defect. It is.

これにより、ねじ1条目において、ねじ端以外の一般部の欠けを精度よく検出することができる。   Thereby, the chip | tip of general parts other than a screw end can be accurately detected in the 1st thread.

(請求項3)
また本発明は、さらに、前記リング状検査ゲートを含むリング状の領域を半径方向の線で複数に分割した外周エッジ検出用分割検査ゲートを作成するステップと、該各外周エッジ検出用分割検査ゲートを外側から内側にサーチし所定の明るさ以上となる外周エッジの位置を検出するステップを有し、隣り合う外周エッジ検出用分割検査ゲートの外周エッジ位置から中心までの距離の差が所定のしきい値を超えるときに欠陥有りと判定する請求項1に記載の容器口部検査方法である。
(Claim 3)
The present invention further includes a step of creating a divided inspection gate for detecting an outer edge by dividing a ring-shaped region including the ring-shaped inspection gate into a plurality of lines along a radial direction, and each divided inspection gate for detecting an outer edge. And searching for the position of the outer peripheral edge where the brightness is equal to or greater than a predetermined brightness, and the difference between the distance from the outer peripheral edge position of the adjacent peripheral edge detection division inspection gate to the center is predetermined. The container mouth inspection method according to claim 1, wherein it is determined that there is a defect when the threshold value is exceeded.

これにより、ねじ1条目において、ねじ外周部の欠けを精度よく検出することができる。   Thereby, the chip | tip of a screw outer peripheral part can be accurately detected in the 1st thread | sled.

(請求項
また本発明は、容器口部を照らす照明と、
容器口部を上から撮像するカメラと、
該カメラで撮像した口部画像の中のリング状のねじ画像の上にリング状検査ゲートを作成し、該リング状検査ゲートの中において所定の濃淡差を超える部分を探し、該越える部分を含む前記リング状検査ゲートの一部の領域にねじ端検査ゲートを作成し、該ねじ端検査ゲート内において、予め登録してあるねじ端の登録画像とパターンマッチするねじ端画像を探す検査ゲート検出手段と、
パターンマッチしたねじ端の両側の、前記リング状検査ゲートの一部の領域に左右部検査ゲートを作成し、該左右部検査ゲート内において、所定の明るさ以下で所定の面積を超える暗い部分を検出し、当該所定の明るさ以下で所定の面積を超える暗い部分を欠陥として判定するねじ端左右部欠け検出手段を有することを特徴とする容器口部検査装置である。
(Claim 4 )
The present invention also provides illumination for illuminating the container mouth,
A camera that images the container mouth from above;
Create a ring-shaped test gates on the ring-shaped thread image in the mouth image captured by the camera, looking for a part component that exceeds a predetermined shading difference in inside of the ring-shaped test gate, the exceeding portion An inspection gate for creating a screw end inspection gate in a partial region of the ring-shaped inspection gate including the image and searching for a screw end image that matches a registered image of the screw end registered in advance in the screw end inspection gate Detection means;
Left and right inspection gates are created in a part of the ring inspection gate on both sides of the pattern matched screw ends, and dark portions exceeding a predetermined area with a predetermined brightness or less in the left and right inspection gates. It is a container mouth inspection device characterized by having a screw end left and right part chipping detection means for detecting and determining as a defect a dark portion which is equal to or less than the predetermined brightness and exceeds a predetermined area.

本発明装置は、請求項1の検査方向で検査を行うので、ねじ端の欠けを精度よく検出することができる。   Since the apparatus of the present invention performs the inspection in the inspection direction of claim 1, it is possible to accurately detect the chipping of the screw end.

(請求項
また本発明は、さらに、前記リング状検査ゲートであって前記ねじ端検査ゲート以外の部分を半径方向の線で複数に分割した分割検査ゲートを作成し、該各分割検査ゲートにおいて所定の明るさ以下で所定の面積を超える暗い部分を検出し、当該所定の明るさ以下で所定の面積を超える暗い部分を欠陥として判定するねじ一般部欠け検出手段を有する請求項に記載の容器口部検査装置である。
(Claim 5 )
Further, the present invention further creates a divided inspection gate in which a portion other than the screw end inspection gate, which is the ring-shaped inspection gate, is divided into a plurality of radial lines, and each divided inspection gate has a predetermined brightness. detecting the dark portion exceeding a predetermined area below the container opening the inspection according to claim 4 having a screw general portion missing detecting means for determining the dark portion exceeding a predetermined area below the predetermined brightness as defect Device.

本発明装置は、請求項2の検査方向で検査を行うので、ねじ1条目において、ねじ端以外の一般部の欠けを精度よく検出することができる。   Since this invention apparatus test | inspects in the test | inspection direction of Claim 2, it can detect accurately the chip | tip of general parts other than a screw end in the 1st thread | thread.

(請求項7)
また本発明は、さらに、前記リング状検査ゲートを含むリング状の領域を半径方向の線で複数に分割した外周エッジ検出用分割検査ゲートを作成し、該外周エッジ検出用分割検査ゲートを外側から内側にサーチして所定の明るさ以上となる外周エッジの位置を検出し、隣り合う外周エッジ検出用分割検査ゲートの外周エッジ位置から中心までの距離の差が所定のしきい値を超えるときに欠陥有りと判定するねじ外周欠け検出手段を有する請求項5に記載の容器口部検査装置である。
(Claim 7)
Further, the present invention further creates a divided inspection gate for detecting an outer edge by dividing a ring-shaped region including the ring-shaped inspection gate into a plurality of lines along a radial direction, and the divided inspection gate for detecting the outer edge is formed from the outside. When searching the inside to detect the position of the outer edge where the brightness is equal to or greater than the predetermined brightness, the difference in the distance from the outer edge to the center of the adjacent outer edge detection division inspection gate exceeds a predetermined threshold The container opening inspection device according to claim 5, further comprising a screw outer peripheral chip detection unit that determines that there is a defect.

本発明装置は、請求項3の検査方向で検査を行うので、ねじ1条目において、ねじ外周部の欠けを精度よく検出することができる。   Since this invention apparatus test | inspects in the test | inspection direction of Claim 3, the chip | tip of a screw outer peripheral part can be detected with a sufficient precision in the 1st thread | thread.

(請求項
また本発明は、前記照明及びカメラが容器の搬送手段の上に設けられ、カメラが、搬送手段で搬送されている容器を撮像する請求項に記載の容器口部検査装置である。
(Claim 7 )
Moreover, this invention is a container opening | mouth inspection apparatus of Claim 4 with which the said illumination and a camera are provided on the conveyance means of a container, and a camera images the container currently conveyed by the conveyance means.

本発明装置は、コンベアなどで搬送中の容器の口部検査を精度よく行うことができる。   The device of the present invention can accurately inspect the mouth of a container being conveyed by a conveyor or the like.

本発明の口部検査方法及び装置は、容器口部を上から撮像した単純な画像によりねじの欠陥(欠け)検査を行うので、精度よく検査できる。また、左右部検査ゲートにおける濃淡の検査を行うことで、ねじ端の欠けを高精度で検出することができる。   In the mouth inspection method and apparatus of the present invention, since a screw defect (chip) inspection is performed with a simple image obtained by imaging the container mouth from above, the inspection can be performed with high accuracy. Further, by performing the density inspection at the left and right inspection gates, it is possible to detect the chipping of the screw end with high accuracy.

実施例の容器口部検査装置1のブロック図である。It is a block diagram of container mouth part inspection device 1 of an example. 本発明の実施形態の説明図である。It is explanatory drawing of embodiment of this invention. ドーム照明の断面図である。It is sectional drawing of dome illumination. 容器口部検査装置1のフローチャートである。3 is a flowchart of the container mouth portion inspection apparatus 1. 欠陥のない容器口部の側面図及び撮像画像模式図である。It is the side view and captured image schematic diagram of a container mouth part without a defect. 欠陥のある容器口部の側面図及び撮像画像模式図である。It is the side view and captured image schematic diagram of a container opening part with a defect. 検査ゲート作成のフローチャートである。It is a flowchart of inspection gate creation. 外周縁エッジ検出の説明図である。It is explanatory drawing of outer periphery edge detection. 内周円エッジ検出の説明図である。It is explanatory drawing of inner periphery circular edge detection. リング状検査ゲート22作成の説明図である。It is explanatory drawing of ring-shaped inspection gate 22 preparation. ねじ端左右部欠け検出のフローチャートである。It is a flowchart of screw end right and left part chipping detection. ねじ端左右部欠け検出の説明図である。It is explanatory drawing of a screw end right-and-left part chipping detection. ねじ一般部欠け検出のフローチャートである。It is a flowchart of a screw general part chip | tip detection. ねじ一般部欠け検出の説明図である。It is explanatory drawing of a screw general part chip | tip detection. ねじ外周部欠け検出のフローチャートである。It is a flowchart of a screw outer peripheral part chip | tip detection. ねじ外周部欠け検出の説明図である。It is explanatory drawing of screw outer peripheral part chip | tip detection. 天面部欠け検出のフローチャートである。It is a flowchart of a top surface part chip | tip detection. 天面部欠け検出の説明図である。It is explanatory drawing of a top surface part chip | tip detection.

図1に示すように、実施例の容器口部検査装置1は、カメラ11、照明12、メモリ10a、検査ゲート検出手段2、ねじ端左右部欠け検出手段3、ねじ一般部欠け検出手段4、ねじ外周部欠け検出手段5、天面部欠け検出手段6を有する。検査ゲート検出手段2は、リング状検査ゲート検出手段2aとねじ端位置検出手段2bからなる。照明12からの光は容器口部天面、ねじなどで反射し、その反射光をカメラ11で撮像する。撮像した画像はメモリ10aに蓄積される。メモリ10aから読み出された画像データは、検査ゲート検出手段2でリング状検査ゲートの作成、ねじ端位置の検出が行われる。さらに、画像データはねじ端左右部欠け検出手段3、ねじ一般部欠け検出手段4、ねじ外周部欠け検出手段5、天面部欠け検出手段6に送られ、各検査が行われる。各検出手段で不良と判定された場合は、不良信号が出力される。不良信号はメモリに記録される他、警告装置の作動や不良容器排除装置の作動などに利用することができる。   As shown in FIG. 1, the container mouth inspection device 1 of the embodiment includes a camera 11, an illumination 12, a memory 10 a, an inspection gate detection unit 2, a screw end left and right part chipping detection unit 3, a screw general part chipping detection unit 4, The screw outer peripheral portion chipping detection means 5 and the top surface portion chipping detection means 6 are provided. The inspection gate detection means 2 includes a ring-shaped inspection gate detection means 2a and a screw end position detection means 2b. Light from the illumination 12 is reflected by the top surface of the container mouth, a screw, and the like, and the reflected light is imaged by the camera 11. The captured image is stored in the memory 10a. The image data read from the memory 10a is subjected to creation of a ring-shaped inspection gate and detection of the screw end position by the inspection gate detection means 2. Further, the image data is sent to the screw end left and right part chipping detection means 3, the screw general part chipping detection means 4, the screw outer peripheral part chipping detection means 5, and the top surface chipping detection means 6 for each inspection. If each detection means determines that the failure is detected, a failure signal is output. In addition to being recorded in the memory, the failure signal can be used for the operation of a warning device, the operation of a defective container removal device, and the like.

カメラ11は、例えば市販の高速エリアセンサカメラを用いることができる。照明は、容器口部にムラなく光を照射できるものであればどのようなものでもよいが、例えば赤色LEDドーム照明は非常に好適である。図3は赤色ドーム照明の断面図である。ドーム状反射体の頂部には穴12bが形成され、内周部下端に複数の赤色LED12aが設けられ、赤色LED12aの赤色光がドーム状反射体で反射し、下方に照射される。   For example, a commercially available high-speed area sensor camera can be used as the camera 11. The illumination may be anything as long as it can irradiate light evenly on the container mouth portion. For example, red LED dome illumination is very suitable. FIG. 3 is a cross-sectional view of the red dome illumination. A hole 12b is formed at the top of the dome-shaped reflector, and a plurality of red LEDs 12a are provided at the lower end of the inner periphery. The red light of the red LED 12a is reflected by the dome-shaped reflector and irradiated downward.

メモリ10aは、パーソナルコンピュータ(PC)に附属又は接続したものを用いることができる。検査ゲート検出手段2、ねじ端左右部欠け検出手段3、ねじ一般部欠け検出手段4、ねじ外周部欠け検出手段5、天面部欠け検出手段6は、PC又はこれに接続したI/O回路においてソフトウエアにより作動する。   As the memory 10a, a memory attached to or connected to a personal computer (PC) can be used. The inspection gate detection means 2, the screw end left and right part chipping detection means 3, the screw general part chipping detection means 4, the screw outer peripheral part chipping detection means 5, and the top surface chipping detection means 6 are in a PC or an I / O circuit connected thereto. Operated by software.

本発明の口部検査は、図2に示すように、コンベアで搬送中の容器に対して行うことができる。容器7はコンベア14の上を矢印方向(右方向)に搬送されている。コンベア14の搬送面は検査精度を保つために黒色に着色されていることが望ましい。コンベア14には、搬送面が所定距離移動するごとにパルスを発するエンコーダ14aが設けられている。コンベア14の上方には照明12(ドーム照明)が、その上方にはカメラ11が固定されている。また、カメラの真下に来た容器を検知するタイミングセンサ15が設けられている。符号10はPCで、メモリ10a、検査ゲート検出手段2、ねじ端左右部欠け検出手段3、ねじ一般部欠け検出手段4、ねじ外周部欠け検出手段5、及び天面部欠け検出手段6が設けられている。符号13は排除制御部である。   As shown in FIG. 2, the mouth inspection of the present invention can be performed on a container being conveyed by a conveyor. The container 7 is conveyed on the conveyor 14 in the arrow direction (right direction). It is desirable that the transport surface of the conveyor 14 be colored black in order to maintain inspection accuracy. The conveyor 14 is provided with an encoder 14a that generates a pulse each time the transport surface moves a predetermined distance. An illumination 12 (dome illumination) is fixed above the conveyor 14, and a camera 11 is fixed above it. In addition, a timing sensor 15 is provided for detecting the container that has come directly under the camera. Reference numeral 10 denotes a PC, which is provided with a memory 10a, an inspection gate detection means 2, a screw end left / right part chipping detection means 3, a screw general part chipping detection means 4, a screw outer periphery chipping detection means 5, and a top surface chipping detection means 6. ing. Reference numeral 13 denotes an exclusion control unit.

容器7がカメラ11の真下に来ると、タイミングセンサ15が検知し、タイミング信号が排除制御部13を経てPCに送られ、カメラ11のシャッターが切られる。その撮像した画像はPCに送られ、各種検査が行われる。検査で不良と判定された場合、不良信号がPCから排除制御部13に送られ、排除制御部13はタイミングセンサ15のタイミング信号とエンコーダ14aのパルス信号からその容器がエアノズル13aの正面に到達するタイミングでエアノズル13aを作動し、欠陥のある容器を吹き飛ばしてコンベア14上から排除する。   When the container 7 comes directly below the camera 11, the timing sensor 15 detects it, and a timing signal is sent to the PC via the exclusion control unit 13, and the shutter of the camera 11 is released. The captured image is sent to a PC for various inspections. When it is determined as defective in the inspection, a defect signal is sent from the PC to the rejection control unit 13, and the rejection control unit 13 reaches the front of the air nozzle 13a from the timing signal of the timing sensor 15 and the pulse signal of the encoder 14a. The air nozzle 13a is actuated at the timing, and the defective container is blown away and removed from the conveyor 14.

次に、図4により、容器口部検査装置1における処理の概要を説明する。
ステップ101……データ処理指令ONか?
という判定が先ず行われ、YESであると、
ステップ102……データ処理(不良を検出)する
へ進み、検査ゲート検出手段2でリング状検査ゲートの作成、ねじ端位置の検出が行われると共に、ねじ端左右部欠け検出手段3、ねじ一般部欠け検出手段4、ねじ外周部欠け検出手段5、天面部欠け検出手段6で検査が行われる。この後、
ステップ103……不良か?
という判定が行われ、YESであると
ステップ104……不良を記録する
へ進み、PCのメモリに不良の情報が記録され、ステップ105へ進む。NOであると、そのままステップ105へ進む。
ステップ105……次のデータ処理指令
からはステップ101へ戻り、次のラインデータについて上記の処理(ステップ101〜105)が繰り返される。
Next, the outline of the processing in the container mouth inspection apparatus 1 will be described with reference to FIG.
Step 101 ... Is the data processing command ON?
Is determined first, and if it is YES,
Step 102: Proceed to data processing (detection of defect), the inspection gate detection means 2 creates a ring-shaped inspection gate and detects the screw end position, and the screw end right and left chipping detection means 3, the screw general part The inspection is performed by the chip detection means 4, the screw outer periphery chip detection means 5, and the top surface chip detection means 6. After this,
Step 103 ... Is it defective?
If YES, the process proceeds to Step 104... Recording a defect, the defect information is recorded in the memory of the PC, and the process proceeds to Step 105. If NO, the process proceeds to step 105 as it is.
Step 105: Returning to the step 101 from the next data processing command, the above processing (steps 101 to 105) is repeated for the next line data.

図5は、容器7の欠陥のない口部に関し、上段に側面図を、下段にカメラで撮像した口部画像の模式図を示している。上段の側面図において、符号70はねじ、71はねじ端、75は天面である。下段の口部画像において、1条目のねじ画像70aが明るいリング状に、その内側に天面画像75aがやや暗いリング状に、ねじ画像70aの外側及び天面画像75aの内側は暗く写っている。明るいねじ画像70aにおいて、ねじ端画像71aは暗くなっている。   FIG. 5 is a schematic diagram of a mouth image taken with a camera in the upper part and a side view in the upper part of the mouth part without defects of the container 7. In the upper side view, reference numeral 70 denotes a screw, 71 denotes a screw end, and 75 denotes a top surface. In the lower mouth image, the first screw image 70a is a bright ring, the top image 75a is a slightly dark ring inside, and the outside of the screw image 70a and the inside of the top image 75a are dark. . In the bright screw image 70a, the screw end image 71a is dark.

図6は、容器7の欠陥を持つ口部に関し、上段に側面図を、下段にカメラで撮像した口部画像の模式図を示している。上段の側面図において、欠け72はねじ端の欠け、欠け73はねじ一般部の欠け、欠け74はねじ外周部の欠け、欠け76は天面の欠けである。下段の口部画像において、ねじ端に欠けがある場合、暗い欠け画像72aと欠け画像72bが隣接して表れる。ねじ一般部の欠け画像73aは、ねじ画像70aのリングの中に暗く表れる。ねじ外周部の欠け画像74aは、ねじ画像70aの外周部に暗く表れる。天面の欠け画像76aは、リング状の天面画像75aの中に暗く表れる。   FIG. 6 is a schematic diagram of a mouth image of the mouth part having a defect in the container 7, which is a side view in the upper stage and a camera imaged in the lower stage. In the upper side view, the chip 72 is a chip at the screw end, the chip 73 is a chip at the general part of the screw, the chip 74 is a chip at the outer periphery of the screw, and the chip 76 is a chip at the top surface. In the lower mouth image, when there is a chip at the screw end, a dark chipped image 72a and a chipped image 72b appear adjacent to each other. The chipped image 73a of the general screw portion appears dark in the ring of the screw image 70a. The chipped image 74a at the outer periphery of the screw appears dark on the outer periphery of the screw image 70a. The chipped image 76a on the top surface appears dark in the ring-shaped top surface image 75a.

(検査ゲート作成)
次に、図7〜12に基づいて検査ゲートの作成について説明する。
ステップ201……ねじ画像部分に外周円範囲を設定する
によって、口部画像に、図8の上段に太い鎖線で示す内外の2つの円の間の外周円範囲20を設定する。この2つの鎖線円の中心座標及び半径は予め設定してある。内外2つの円の中心から放射状に検査ラインが自動で引かれ、内外2つの円の間で検査ライン上エッジ検出を行う。濃度が明から暗、暗から明に急激に変わるところをエッジとして検出する。暗から明に変化しかつ一番大きい円を検出する条件で外の円から内の円に向かってエッジ検査を行うと、ねじ部外周がエッジとして検出され、検出されたねじ部外周の点から近似して円が描かれる。すると、図8の下段に示すように、近似で検出された円はねじ画像70aの外周に実質的に一致し、外周円エッジ20aが形成される。
ステップ202……ねじ画像の外周円エッジが検出でき、中心位置が算出されたか?
によって、図8下段に示すように外周円エッジ20aが形成されたか、またその中心位置O1が算出されたかが判断され、NOの場合はNGとして不良信号が出され、YESの場合は
ステップ203……外周円エッジの中心位置を起点にして、ねじ画像部分に内周円範囲を設定する
の処理が行われる。これは、図9の上段に太い鎖線で示す内外の2つの円の間の内周円範囲21を設定する。この2つの鎖線円の中心は外周円エッジ20aの中心O1で、半径は予め設定してある。その後、内外2つの円の中心から放射状に検査ラインが自動で引かれ、内外2つの円の間で検査ライン上エッジ検出を行う。暗から明に変化する一番大きい円を検出する条件で、内の円から外の円に向かってエッジ検査を行うと、図9の下段に示すように、小さい方の鎖線円がねじ画像70aの内周に実質的に一致し、内周円エッジ21aが形成される。これにより、ねじ画像70aの撮像画面における位置(座標)が決定する。
ステップ204……ねじ画像の内周円エッジが検出でき、中心位置が算出されたか?
によって、図9下段に示すように内周円エッジ21aが形成されたか、またその中心位置O2が算出されたかが判断され、NOの場合はNGとして不良信号が出され、YESの場合はステップ205に進む。
以上ステップ201〜ステップ204は、リング状検査ゲート検出手段2aにおいて処理され、以後のステップ205〜ステップ209はねじ端位置検出手段2bにおいて処理される。
ステップ205……ねじ端を検出するためねじ画像にリング状検査ゲートを設定する
の処理が行われる。図10はリング状検査ゲート22の例である。このように、リング状検査ゲート22は、外周円エッジ20aと合わさるように、内周円エッジ21aよりも数画素分(例えば2〜3画素分)外側になるように設定することが望ましい。
ステップ206……所定以上の濃淡差がある暗い部分が検出できたか?
では、図10に矢印で示すようにリング状検査ゲート22内を円周方向に沿って濃淡の差分を行っていき、明から暗になるエッジと、暗から明になるエッジのペアを探す。濃淡差が大きく、ペアの間隔が設定に近いほどねじ端として検出する。ペアの間隔は予め定めておく。
ステップ207……検出された部分にねじ端検査ゲートを設定する
で、図12に示すように、検出された暗い部分を含むようにねじ端検査ゲート23を設定する。ねじ端検査ゲートの大きさは予め定めておく。その後、
ステップ208……ねじ端検査ゲート内で、登録画像とパターンマッチングする
によって、ねじ端の位置を検出する。図12の符号77は登録されている典型的なねじ端画像で、これとねじ端検査ゲート23内の画像のパターンマッチングを行う。パターンマッチ比率は予め定めておく。その後、
ステップ209……設定したパターンマッチ比率を越えたねじ端画像があるか?
の判断が行われ、マッチングした場合はその画像はねじ端であると判断されてねじ端左右部欠け検出手段3に進み、パターンマッチ比率を超えない画像しか見つけられない場合はNGとして不良信号が出される。
(Inspection gate creation)
Next, the creation of the inspection gate will be described with reference to FIGS.
Step 201: By setting the outer circumference circle range in the screw image portion, the outer circumference circle range 20 between the inner and outer circles indicated by the thick chain line in the upper part of FIG. 8 is set in the mouth image. The center coordinates and radius of these two chain circles are set in advance. The inspection line is automatically drawn radially from the center of the inner and outer two circles, and the upper edge of the inspection line is detected between the inner and outer two circles. A point where the density rapidly changes from light to dark and from dark to light is detected as an edge. When the edge inspection is performed from the outer circle toward the inner circle under the condition that changes from dark to bright and the largest circle is detected, the outer periphery of the screw part is detected as an edge, and the detected point on the outer periphery of the screw part is detected. An approximate circle is drawn. Then, as shown in the lower part of FIG. 8, the circle detected by the approximation substantially coincides with the outer periphery of the screw image 70a, and the outer peripheral circle edge 20a is formed.
Step 202 .. Could the outer peripheral circle edge of the screw image be detected and the center position calculated?
Thus, as shown in the lower part of FIG. 8, it is determined whether the outer circumferential edge 20a has been formed and the center position O1 has been calculated. If NO, a failure signal is output as NG, and if YES, step 203... Starting from the center position of the outer circle edge, a process for setting the inner circle range in the screw image portion is performed. This sets an inner circumferential circle range 21 between two inner and outer circles indicated by a thick chain line in the upper part of FIG. The center of these two chain line circles is the center O1 of the outer peripheral circle edge 20a, and the radius is preset. Thereafter, the inspection line is automatically drawn radially from the center of the inner and outer two circles, and the upper edge of the inspection line is detected between the inner and outer two circles. When the edge inspection is performed from the inner circle to the outer circle under the condition of detecting the largest circle that changes from dark to light, as shown in the lower part of FIG. 9, the smaller chain line circle shows the screw image 70a. Substantially coincides with the inner circumference of the inner circumference, and an inner circumference circular edge 21a is formed. Thereby, the position (coordinates) on the imaging screen of the screw image 70a is determined.
Step 204 .. Could the inner circumferential edge of the screw image be detected and the center position calculated?
As shown in the lower part of FIG. 9, it is determined whether the inner circumferential edge 21a is formed and the center position O2 is calculated. If NO, a failure signal is output as NG, and if YES, the process goes to step 205. move on.
Steps 201 to 204 are processed in the ring-shaped inspection gate detection means 2a, and the subsequent steps 205 to 209 are processed in the screw end position detection means 2b.
Step 205... A process of setting a ring-shaped inspection gate in the screw image is performed to detect the screw end. FIG. 10 shows an example of the ring-shaped inspection gate 22. As described above, the ring-shaped inspection gate 22 is desirably set to be outside by several pixels (for example, two to three pixels) from the inner peripheral circular edge 21a so as to be aligned with the outer peripheral circular edge 20a.
Step 206 .. Did a dark part with a density difference greater than a predetermined value be detected?
Then, as shown by an arrow in FIG. 10, the difference in density is performed in the ring-shaped inspection gate 22 along the circumferential direction, and a pair of edges from light to dark and edges from dark to light is searched. The larger the density difference is and the closer the pair interval is to the setting, the more the screw end is detected. The pair interval is determined in advance.
In step 207..., The screw end inspection gate is set in the detected portion. As shown in FIG. 12, the screw end inspection gate 23 is set so as to include the detected dark portion. The size of the screw end inspection gate is determined in advance. afterwards,
Step 208: The position of the screw end is detected by pattern matching with the registered image in the screw end inspection gate. Reference numeral 77 in FIG. 12 denotes a registered typical screw end image, and pattern matching between this and the image in the screw end inspection gate 23 is performed. The pattern match ratio is determined in advance. afterwards,
Step 209. Is there a screw end image exceeding the set pattern match ratio?
In the case of matching, it is determined that the image is a screw end, the process proceeds to the screw end left and right part chipping detection means 3, and if only an image that does not exceed the pattern match ratio is found, a failure signal is indicated as NG. Is issued.

(ねじ端左右部欠け検出)
次に、図11,12に基づいてねじ端左右部欠け検出について説明する。
ステップ301……ねじ端の左右に左右部検査ゲートを設定する
によって、パターンマッチで検出したねじ端の左側及び右側に隣接して、左右部検査ゲート24を設定する。左右部検査ゲート24の大きさは予め定めておく。その後、
ステップ302……左右部検査ゲートの明るさ・面積しきい値を設定する
によって、ねじ端左右部欠け検出におけるしきい値を設定する。明るさしきい値は具体的には設定したしきい値より暗い画素を検出し、面積しきい値は当該明るさしきい値以下の暗い画素となっている固まりの画素数しきい値である。その後
ステップ303……左右部検査ゲートで、明るさしきい値より暗い画素はあるか?
によって、各左右部検査ゲート内において、明るさしきい値以下の画素があるかどうか判断され、NOの場合は良品(ねじ端左右部の欠けなし)と判定され、YESの場合は、
ステップ304……左右部検査ゲートで面積しきい値を超えた画像はあるか?
によって、明るさしきい値以下となっている固まりの画素数が面積しきい値を越えているかどうか判断され、NOの場合は良品(ねじ端左右部の欠けなし)と判定され、YESの場合はねじ端左右部の欠け(欠陥)ありと判定される。
(Detection of left and right part of screw end detection)
Next, the detection of the chipped left and right part chipping will be described with reference to FIGS.
Step 301... The left and right inspection gates 24 are set adjacent to the left and right sides of the screw ends detected by pattern matching by setting the left and right inspection gates on the left and right sides of the screw ends. The size of the left and right inspection gates 24 is determined in advance. afterwards,
Step 302... The threshold value in detecting the left and right part missing of the screw end is set by setting the brightness / area threshold value of the left and right part inspection gates. Specifically, the brightness threshold detects pixels that are darker than the set threshold, and the area threshold is the threshold for the number of pixels in the cluster that are darker than the brightness threshold. . After that, step 303... Is there a pixel darker than the brightness threshold value in the left and right side inspection gates?
From each of the left and right inspection gates, it is determined whether or not there is a pixel equal to or lower than the brightness threshold value. If NO, it is determined that the product is non-defective (no missing left and right parts of the screw end). If YES,
Step 304: Is there an image that exceeds the area threshold at the left and right inspection gates?
To determine whether the number of pixels in the cluster that are below the brightness threshold exceeds the area threshold. If NO, it is determined that the product is non-defective (no missing left and right parts of the screw end). If YES Is determined to have chipping (defects) on the left and right sides of the screw end.

図12は、ねじ端が欠けている場合の例で、リング状検査ゲート22内に欠け画像72a、72bが暗くなっている。欠け画像72aは登録画像77の形状に似ているためパターンマッチするが、これに隣接して左右部検査ゲート24が設定され検査されるので、欠け画像72bが検出されることによって欠陥ありと判定される。本発明では、このようにしてねじ端の欠けが検出される。   FIG. 12 shows an example in which the screw ends are missing, and the missing images 72 a and 72 b are dark in the ring-shaped inspection gate 22. Since the missing image 72a resembles the shape of the registered image 77, the pattern matches. However, since the left and right inspection gates 24 are set and inspected adjacent thereto, it is determined that there is a defect by detecting the missing image 72b. Is done. In the present invention, the chipping of the screw end is thus detected.

(ねじ一般部欠け検出)
次に、図13,14に基づいてねじ一般部欠け検出について説明する。
ステップ401……リング状検査ゲートを半径方向の線で分割した分割検査ゲートを設定する
によって、図14に示すように、リング状検査ゲート22の、ねじ端検査ゲート23(パターンマッチしたもの)以外の部分を、半径方向の線で複数に分割した分割検査ゲート25を作成する。分割検査ゲートはねじ端検査ゲート部分を除外する。その後、
ステップ402……分割検査ゲートの明るさ・面積しきい値を設定する
によって、ねじ一般部欠け検出におけるしきい値を設定する。明るさしきい値は具体的には設定したしきい値より暗い画素を検出し、面積しきい値は当該明るさしきい値以下の暗い画素となっている固まりの画素数しきい値である。その後
ステップ403……分割検査ゲートで、明るさしきい値より暗い画素はあるか?
によって、各分割検査ゲート内において、明るさしきい値以下の画素があるかどうか判断され、NOの場合は良品(ねじ一般部の欠けなし)と判定され、YESの場合は、
ステップ04……分割検査ゲートで面積しきい値を超えた画像はあるか?
によって、明るさしきい値以下となっている固まりの画素数が面積しきい値を越えているかどうか判断され、NOの場合は良品(ねじ一般部の欠けなし)と判定され、YESの場合はねじ一般部の欠け(欠陥)ありと判定される。
(Detection of chipping in general screw parts)
Next, the general screw part detection will be described with reference to FIGS.
Step 401... By setting a divided inspection gate obtained by dividing the ring-shaped inspection gate by a radial line, as shown in FIG. 14, the ring-shaped inspection gate 22 other than the screw end inspection gate 23 (pattern-matched) The divided inspection gate 25 is created by dividing the portion of the portion into a plurality of lines along the radial direction. The split inspection gate excludes the screw end inspection gate portion. afterwards,
Step 402... The threshold value for detecting a general screw chipping is set by setting the brightness / area threshold value of the divided inspection gate. Specifically, the brightness threshold detects pixels that are darker than the set threshold, and the area threshold is the threshold for the number of pixels in the cluster that are darker than the brightness threshold. . After that, in step 403..., Is there a pixel that is darker than the brightness threshold in the divided inspection gate?
From each of the divided inspection gates, it is determined whether or not there is a pixel that is equal to or less than the brightness threshold value. If NO, it is determined that the product is non-defective (no missing general screw portion). If YES,
Step 4 04 ...... Is there an image that exceeds the area threshold at the division inspection gate?
To determine whether or not the number of pixels of the cluster that are below the brightness threshold exceeds the area threshold. If NO, it is determined that the product is non-defective (no missing general screw portion). If YES, It is determined that there is a chipping (defect) in the general screw portion.

図14に示すのは、ねじ一般部の欠け73によって欠け画像73aがある場合の例で、欠け画像73aが分割検査ゲートの他の部分よりも暗いため、ねじ一般部の欠け(欠陥)ありと判定される。   FIG. 14 shows an example in which there is a chipped image 73a due to the chipped portion 73 of the general screw portion. Since the chipped image 73a is darker than the other parts of the divided inspection gate, there is a chipped (defect) in the general screw portion. Determined.

(ねじ外周部欠け検出)
次に、図15,16に基づいてねじ外周部欠け検出について説明する。
ステップ501……リング状検査ゲートを含むリング状領域を半径方向の線で分割した外周エッジ検出用分割検査ゲートを設定する
によって口部画像に外周エッジ検出用分割検査ゲート26を設定する。図16に示すように、このときのリング状領域は、ねじ外周エッジ20aが中間に入っていることが望ましい。外周エッジ検出用分割検査ゲート26は、ねじ端検査ゲート23(パターンマッチしたもの)部分を除外する。
ステップ502……外周エッジ検出用分割検査ゲートで外周エッジを検出する感度を設定する
で、図16下段で太い矢印で示すように、外周エッジ検出用分割検査ゲートを外側から内側にサーチして感度設定した明るさ以上となる外周エッジの位置を検出する。感度設定により濃淡差の高いエッジを検出するか、濃淡差が低いエッジを検出するかを設定することができる。
ステップ503……隣り合う外周エッジ検出用分割検査ゲートの外周エッジ差のしきい値を設定する
で、各外周エッジ検出用検査ゲートごとに検出した外周エッジ位置から中心座標までの距離を計算する(図16下段破線矢印)。隣接ゲート同士で計算した距離の差を外周一周にわたって計算することで外周の凹凸が計算される。差分したときの差のしきい値を設定する。その後、
ステップ504……外周エッジ差しきい値を超えた画像はあるか?
によって、図16の下段に矢印で示すように、各外周エッジ検出用分割検査ゲートの外側方向から内側方向にスキャンし、検出したエッジ位置から中心座標までの距離を計算し、隣り合う各外周エッジ検出用分割検査ゲートごとに差を求め、これがしきい値を超えるものがあるかどうかが判断され、NOの場合は良品(ねじ外周部の欠けなし)と判定され、YESの場合はねじ外周部の欠け(欠陥)ありと判定される。
(Screw outer periphery detection)
Next, detection of the outer periphery of the screw will be described with reference to FIGS.
Step 501... The peripheral edge detection divided inspection gate 26 is set in the mouth image by setting the peripheral edge detection divided inspection gate obtained by dividing the ring-shaped region including the ring-shaped inspection gate by the radial line. As shown in FIG. 16, the ring-shaped region at this time desirably has the screw outer peripheral edge 20a in the middle. The peripheral edge detection division inspection gate 26 excludes the screw end inspection gate 23 (pattern matched) portion.
Step 502... Setting the sensitivity for detecting the peripheral edge by the peripheral edge detection divided inspection gate As shown by the thick arrow in the lower part of FIG. 16, the peripheral edge detection divided inspection gate is searched from the outside to the inside. Detects the position of the outer edge that exceeds the set brightness. Depending on the sensitivity setting, it is possible to set whether to detect an edge having a high density difference or an edge having a low density difference.
Step 503: By setting a threshold value of the peripheral edge difference between adjacent peripheral edge detection divided inspection gates, the distance from the peripheral edge position detected for each peripheral edge detection inspection gate to the center coordinate is calculated ( FIG. 16 (lower dotted arrow). The unevenness on the outer periphery is calculated by calculating the difference in distance calculated between adjacent gates over the entire outer periphery. Set the threshold value for the difference. afterwards,
Step 504... Does any image exceed the outer edge difference threshold value?
As shown by arrows in the lower part of FIG. 16, each outer edge detection division inspection gate scans from the outer side to the inner side, calculates the distance from the detected edge position to the center coordinate, and each adjacent outer edge The difference is determined for each detection division inspection gate, and it is determined whether there is any that exceeds the threshold value. If NO, it is determined that the product is non-defective (no chipping on the outer periphery of the screw). If YES, the outer periphery of the screw is determined. It is determined that there is a chipping (defect).

図16下段に示すのは、ねじ外周部の欠け74によって、欠け画像74aのある場合で、これによって当該部分の外周エッジ検出用分割検査ゲートの検出したエッジから中心までの長さが隣り合うものよりも短くなり、ねじ外周部欠けが検出される。   The lower part of FIG. 16 shows a case where there is a chipped image 74a due to a chip 74 at the outer periphery of the screw, and the lengths from the edge to the center detected by the divided inspection gate for detecting the outer peripheral edge of the part are adjacent to each other. Shorter than that, and chipping of the outer periphery of the screw is detected.

(天面欠け検出)
次に、図17,18に基づいてねじ外周部欠け検出について説明する。
ステップ601……口天面部を半径方向の線で分割した天面分割検査ゲートを設定する
の処理によって、口部画像の中のリング状の天面画像75aの上にリング状の天面検査ゲート27を設定する。天面検査ゲート27の設定方法はいろいろあるが、例えば、内周円エッジ21aよりも半径が数画素小さな円を天面検査ゲートの外周とし、それよりも半径が適宜画素数小さな円を内周とする方法がある。さらに、天面検査ゲート27を半径方向の線で分割し、図18に示すように天面分割検査ゲート27aを設定する。その後、
ステップ602……天面分割検査ゲートの明るさ・面積しきい値を設定する
によって、天面欠け検出におけるしきい値を設定する。明るさのしきい値は、具体的には設定したしきい値より暗い画素または明るい画素を検出し、面積しきい値は当該明るさしきい値より暗い画素または明るい画素となっている固まりの画素数しきい値である。その後、
ステップ603……天面分割検査ゲートで、明るさしきい値を超えた画像はあるか?
によって、各天面分割検査ゲート内において、明るさしきい値を越える画素があるかどうか判断され、NOの場合は良品(天面の欠けなし)と判定され、YESの場合は、
ステップ604……天面分割検査ゲートで面積しきい値を超えた画像はあるか?
によって、明るさしきい値を越える固まりの画素数が面積しきい値を越えているかどうか判断され、NOの場合は良品(天面の欠けなし)と判定され、YESの場合は天面の欠け(欠陥)ありと判定される。
(Top face detection)
Next, detection of the outer periphery of the screw will be described with reference to FIGS.
Step 601: A ring-shaped top surface inspection gate is formed on the ring-shaped top surface image 75a in the mouth image by the processing of setting a top surface division inspection gate obtained by dividing the top surface portion by a radial line. 27 is set. There are various methods for setting the top surface inspection gate 27. For example, a circle whose radius is several pixels smaller than the inner circumferential edge 21a is set as the outer periphery of the top surface inspection gate, and a circle whose radius is appropriately smaller than the number of pixels is set as the inner periphery. There is a method. Further, the top surface inspection gate 27 is divided by a line in the radial direction, and a top surface division inspection gate 27a is set as shown in FIG. afterwards,
Step 602... The threshold value for detecting the top surface defect is set by setting the brightness / area threshold value of the top surface division inspection gate. Brightness threshold, specifically detects the dark pixels or bright pixels than the threshold value set, the area threshold of mass has become a dark pixels or bright pixels than the brightness threshold This is the pixel number threshold. afterwards,
Step 603: Is there any image that exceeds the brightness threshold at the top division inspection gate?
From each of the top surface division inspection gates, it is determined whether or not there is a pixel that exceeds the brightness threshold value. If NO, it is determined that the pixel is non-defective (no chip on the top surface). If YES,
Step 604: Is there an image that exceeds the area threshold at the top division inspection gate?
To determine whether the number of pixels that exceed the brightness threshold exceeds the area threshold. If NO, it is determined that the product is non-defective (no chip on the top), and if YES, the top is missing. It is determined that there is a (defect).

図18に示すのは、天面の欠け76によって欠け画像76aがある場合の例で、欠け画像76aが天面分割検査ゲートの他の部分よりも明るい暗いため、天面の欠け(欠陥)ありと判定される。   FIG. 18 shows an example in which there is a chipped image 76a due to the top surface chipping 76. Since the chipped image 76a is darker and brighter than the other parts of the top surface division inspection gate, there is a top surface chipping (defect). It is determined.

検査ゲート検出手段2でNGと判定され、又はねじ端左右部欠け検出手段3、ねじ一般部欠け検出手段4、ねじ外周部欠け検出手段5、天面部欠け検出手段6のいずれかの検出手段で欠陥有りと判定された容器は、図2のエアノズル13aによって排除される。   It is determined as NG by the inspection gate detection means 2 or any one of the detection means of the screw end left and right part chipping detection means 3, the screw general part chipping detection means 4, the screw outer periphery chipping detection means 5 and the top surface chipping detection means 6. The container determined to have a defect is eliminated by the air nozzle 13a in FIG.

1 口部検査装置
10 パーソナルコンピュータ
10a メモリ
11 カメラ
12 ドーム照明
13 排除制御部
13a エアノズル
14 コンベア
14a エンコーダ
15 タイミングセンサ
2 検査ゲート検出手段
2a リング状検査ゲート検出手段
2b ねじ端位置検出手段
20 外周円範囲
20a 外周円エッジ
21 内周円範囲
21a 内周円エッジ
22 リング状検査ゲート
23 ねじ端検査ゲート
24 左右部検査ゲート
25 分割検査ゲート
26 外周エッジ検出用分割ゲート
27 天面検査ゲート
27a 天面分割検査ゲート
3 ねじ端左右部欠け検出手段
4 ねじ一般部欠け検出手段
5 ねじ外周部欠け検出手段
6 天面部欠け検出手段
7 ガラスびん
70 ねじ
70a ねじ画像
71 ねじ端
71a ねじ端画像
72 欠け
72a 欠け画像
72b 欠け画像
73 欠け
73a 欠け画像
74 欠け
74a 欠け画像
75 天面
75a 天面画像
76 欠け
76a 欠け画像
77 登録画像
DESCRIPTION OF SYMBOLS 1 Mouth inspection apparatus 10 Personal computer 10a Memory 11 Camera 12 Dome illumination 13 Exclusion control part 13a Air nozzle 14 Conveyor 14a Encoder 15 Timing sensor 2 Inspection gate detection means 2a Ring-shaped inspection gate detection means 2b Screw end position detection means 20 Outer circumference circle range 20a Peripheral circle edge 21 Inner circle range 21a Inner circle edge 22 Ring-shaped inspection gate 23 Screw end inspection gate 24 Left and right part inspection gate 25 Divided inspection gate 26 Divided gate for outer periphery edge detection 27 Top surface inspection gate 27a Top surface division inspection Gate 3 Screw end left / right chipping detection means 4 Screw general section chipping detection means 5 Screw outer periphery chipping detection means 6 Top surface chipping detection means 7 Glass bottle 70 Screw 70a Screw image 71 Screw end 71a Screw end image 72 Chipping 72a Chipping image 7 2b chipped image 73 chipped 73a chipped image 74 chipped 74a chipped image 75 top surface 75a top surface image 76 chipped 76a chipped image 77 registered image

Claims (7)

容器の上方から容器口部をカメラで撮像するステップと、
該撮像画像の中のリング状のねじ画像の上にリング状検査ゲートを作成するステップと、
該リング状検査ゲートの中において所定の濃淡差を超える部分を探すステップと、
越える部分を含む前記リング状検査ゲートの一部の領域にねじ端検査ゲートを作成するステップと、
該ねじ端検査ゲート内において、予め登録してあるねじ端の登録画像とパターンマッチするねじ端画像を探すステップと、
パターンマッチしたねじ端の両側の、前記リング状検査ゲートの一部の領域に左右部検査ゲートを作成するステップと、
該左右部検査ゲート内において、所定の明るさ以下で所定の面積を超える暗い部分を検出するステップを有し、当該所定の明るさ以下で所定の面積を超える暗い部分を欠陥として判定することを特徴とする容器口部検査方法。
Imaging the container mouth from above the container with a camera;
Creating a ring-shaped inspection gate on a ring-shaped screw image in the captured image;
A step to search for parts component that exceeds a predetermined shading difference in inside of the ring-shaped test gate,
Creating a screw end inspection gate in a partial region of the ring-shaped inspection gate including the crossing portion;
In the screw end inspection gate, searching for a screw end image that matches a registered image of a screw end registered in advance;
Creating left and right inspection gates in a partial region of the ring-shaped inspection gate on both sides of the pattern matched screw ends;
In left and right portions inspection gate, comprising the step of detecting the dark portion exceeding a predetermined area at a predetermined less brightness, determining a dark portion exceeding a predetermined area below the predetermined brightness as defect A method for inspecting a container mouth.
さらに、前記リング状検査ゲートであって前記ねじ端検査ゲート以外の部分を半径方向の線で複数に分割した分割検査ゲートを作成するステップと、該各分割検査ゲートにおいて所定の明るさ以下で所定の面積を超える暗い部分を検出するステップを有し、当該所定の明るさ以下で所定の及び面積を超える暗い部分を欠陥として判定する請求項1に記載の容器口部検査方法。Furthermore, creating a split inspection gates said a ring-shaped test gate is divided into a plurality of portions other than the threaded end inspection gates in radial lines, given in respective divided inspection gate at a predetermined less brightness 2. The container mouth inspection method according to claim 1, further comprising a step of detecting a dark portion exceeding an area of the second portion , and determining a dark portion that is equal to or less than the predetermined brightness and exceeds the predetermined and area as a defect. さらに、前記リング状検査ゲートを含むリング状の領域を半径方向の線で複数に分割した外周エッジ検出用分割検査ゲートを作成するステップと、該各外周エッジ検出用分割検査ゲートを外側から内側にサーチし所定の明るさ以上となる外周エッジの位置を検出するステップを有し、隣り合う外周エッジ検出用分割検査ゲートの外周エッジ位置から中心までの距離の差が所定のしきい値を超えるときに欠陥有りと判定する請求項1に記載の容器口部検査方法。Further, a step of creating a divided inspection gate for detecting the peripheral edge by dividing the ring-shaped region including the ring-shaped inspection gate into a plurality of lines along a radial direction, and each of the divided inspection gates for detecting the peripheral edge from the outside to the inside A step of searching and detecting a position of an outer peripheral edge that is equal to or greater than a predetermined brightness, and a difference in distance from the outer peripheral edge position of the adjacent peripheral edge detection division inspection gate to the center exceeds a predetermined threshold value The container mouth inspection method according to claim 1, wherein it is determined that there is a defect. 容器口部を照らす照明と、
容器口部を上から撮像するカメラと、
該カメラで撮像した口部画像の中のリング状のねじ画像の上にリング状検査ゲートを作成し、該リング状検査ゲートの中において所定の濃淡差を超える部分を探し、該越える部分を含む前記リング状検査ゲートの一部の領域にねじ端検査ゲートを作成し、該ねじ端検査ゲート内において、予め登録してあるねじ端の登録画像とパターンマッチするねじ端画像を探す検査ゲート検出手段と、
パターンマッチしたねじ端の両側の、前記リング状検査ゲートの一部の領域に左右部検査ゲートを作成し、該左右部検査ゲート内において、所定の明るさ以下で所定の面積を超える暗い部分を検出し、当該所定の明るさ以下で所定の面積を超える暗い部分を欠陥として判定するねじ端左右部欠け検出手段を有することを特徴とする容器口部検査装置。
Lighting to illuminate the container mouth,
A camera that images the container mouth from above;
Create a ring-shaped test gates on the ring-shaped thread image in the mouth image captured by the camera, looking for a part component that exceeds a predetermined shading difference in inside of the ring-shaped test gate, the exceeding portion An inspection gate for creating a screw end inspection gate in a partial region of the ring-shaped inspection gate including the image and searching for a screw end image that matches a registered image of the screw end registered in advance in the screw end inspection gate Detection means;
Left and right inspection gates are created in a part of the ring inspection gate on both sides of the pattern matched screw ends, and dark portions exceeding a predetermined area with a predetermined brightness or less in the left and right inspection gates. A container mouth inspection device comprising: screw end right and left chipping detection means for detecting and determining, as a defect, a dark portion having a predetermined brightness or less and exceeding a predetermined area as a defect.
さらに、前記リング状検査ゲートであって前記ねじ端検査ゲート以外の部分を半径方向の線で複数に分割した分割検査ゲートを作成し、該各分割検査ゲートにおいて所定の明るさ以下で所定の面積を超える暗い部分を検出し、当該所定の明るさ以下で所定の面積を超える暗い部分を欠陥として判定するねじ一般部欠け検出手段を有する請求項に記載の容器口部検査装置。Further, a divided inspection gate is formed by dividing the ring-shaped inspection gate other than the screw end inspection gate into a plurality of radial lines, and each divided inspection gate has a predetermined area with a predetermined brightness or less. 5. The container mouth part inspection device according to claim 4 , further comprising: a screw general part chipping detection unit that detects a dark part that exceeds the predetermined brightness and determines a dark part that is less than or equal to the predetermined brightness and exceeds a predetermined area as a defect. さらに、前記リング状検査ゲートを含むリング状の領域を半径方向の線で複数に分割した外周エッジ検出用分割検査ゲートを作成し、該外周エッジ検出用分割検査ゲートを外側から内側にサーチして所定の明るさ以上となる外周エッジの位置を検出し、隣り合う外周エッジ検出用分割検査ゲートの外周エッジ位置から中心までの距離の差が所定のしきい値を超えるときに欠陥有りと判定するねじ外周欠け検出手段を有する請求項に記載の容器口部検査装置。Further, a divided inspection gate for detecting an outer edge is formed by dividing a ring-shaped region including the ring-shaped inspection gate into a plurality of radial lines, and the divided inspection gate for detecting the outer edge is searched from outside to inside. Detect the position of the outer edge where the brightness is more than the predetermined brightness, and determine that there is a defect when the difference in the distance from the outer edge to the center of the adjacent inspection edge for detecting the outer edge exceeds a predetermined threshold The container mouth inspection device according to claim 4 , further comprising a screw outer peripheral chip detection unit. 前記照明及びカメラが容器の搬送手段の上に設けられ、カメラが、搬送手段で搬送されている容器を撮像する請求項に記載の容器口部検査装置。The container mouth inspection device according to claim 4 , wherein the illumination and the camera are provided on a container transport unit, and the camera images the container transported by the transport unit.
JP2011546515A 2011-08-03 2011-08-03 Container mouth inspection method and apparatus Active JP4986255B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2011/067742 WO2013018207A1 (en) 2011-08-03 2011-08-03 Container mouth portion inspection method and device

Publications (2)

Publication Number Publication Date
JP4986255B1 true JP4986255B1 (en) 2012-07-25
JPWO2013018207A1 JPWO2013018207A1 (en) 2015-03-02

Family

ID=46678971

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011546515A Active JP4986255B1 (en) 2011-08-03 2011-08-03 Container mouth inspection method and apparatus

Country Status (4)

Country Link
JP (1) JP4986255B1 (en)
KR (1) KR101587982B1 (en)
CN (1) CN103718025B (en)
WO (1) WO2013018207A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019066198A (en) * 2017-09-28 2019-04-25 東洋ガラス株式会社 Container opening inspection device and container opening inspection method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6796704B2 (en) * 2017-02-28 2020-12-09 東洋ガラス株式会社 Container inspection device and container inspection method
CN112700440B (en) * 2021-01-18 2022-11-04 上海闻泰信息技术有限公司 Object defect detection method and device, computer equipment and storage medium
JP2023094962A (en) * 2021-12-24 2023-07-06 東レエンジニアリング株式会社 Wafer external appearance inspecting device
CN116858838B (en) * 2023-05-25 2024-03-19 苏州誉阵自动化科技有限公司 Bottle defect detection system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6396095A (en) * 1986-10-13 1988-04-26 株式会社キリンテクノシステム Inspection device for screw mouth section of bottle
JPH01316647A (en) * 1988-03-31 1989-12-21 Fuji Electric Co Ltd Container inspecting method
JPH05157707A (en) * 1991-12-10 1993-06-25 Fuji Electric Co Ltd Appearance inspection method of bottle top
JPH0968504A (en) * 1995-08-31 1997-03-11 Toshiba Eng Co Ltd Method and device for inspection of appearance of bottle mouth
JP2001311696A (en) * 2000-04-27 2001-11-09 Kirin Techno-System Corp Setting method for inspection region in container inspection
JP2004271205A (en) * 2003-03-05 2004-09-30 Precision:Kk Defect inspection device of container mouth part
JP2010151473A (en) * 2008-12-24 2010-07-08 Kirin Techno-System Co Ltd Apparatus for inspecting screw-top bottle

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11510256A (en) * 1995-08-04 1999-09-07 イメージ プロセッシング システムズ,インク. Bottle thread inspection system and method of operation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6396095A (en) * 1986-10-13 1988-04-26 株式会社キリンテクノシステム Inspection device for screw mouth section of bottle
JPH01316647A (en) * 1988-03-31 1989-12-21 Fuji Electric Co Ltd Container inspecting method
JPH05157707A (en) * 1991-12-10 1993-06-25 Fuji Electric Co Ltd Appearance inspection method of bottle top
JPH0968504A (en) * 1995-08-31 1997-03-11 Toshiba Eng Co Ltd Method and device for inspection of appearance of bottle mouth
JP2001311696A (en) * 2000-04-27 2001-11-09 Kirin Techno-System Corp Setting method for inspection region in container inspection
JP2004271205A (en) * 2003-03-05 2004-09-30 Precision:Kk Defect inspection device of container mouth part
JP2010151473A (en) * 2008-12-24 2010-07-08 Kirin Techno-System Co Ltd Apparatus for inspecting screw-top bottle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019066198A (en) * 2017-09-28 2019-04-25 東洋ガラス株式会社 Container opening inspection device and container opening inspection method

Also Published As

Publication number Publication date
KR20140031392A (en) 2014-03-12
JPWO2013018207A1 (en) 2015-03-02
CN103718025B (en) 2016-03-02
CN103718025A (en) 2014-04-09
KR101587982B1 (en) 2016-01-22
WO2013018207A1 (en) 2013-02-07

Similar Documents

Publication Publication Date Title
JP6945245B2 (en) Visual inspection equipment
US4775889A (en) Bottle mouth defect inspection apparatus
JP6922539B2 (en) Surface defect determination method and surface defect inspection device
JP4986255B1 (en) Container mouth inspection method and apparatus
JP2016070732A (en) Inspection device and inspection method
JPH0736001B2 (en) Bottle defect inspection method
JPWO2004036198A1 (en) Method and apparatus for creating reference image in glass bottle inspection apparatus
JP7382519B2 (en) Glass bottle inspection method, glass bottle manufacturing method, and glass bottle inspection device
JP2015040796A (en) Defect detection device
WO2018142614A1 (en) Glass bottle inspection device
JP3989739B2 (en) Inspection device
JP2010151473A (en) Apparatus for inspecting screw-top bottle
JP2008026149A (en) Visual examination device
JP5959430B2 (en) Bottle cap appearance inspection device and appearance inspection method
JP2007333661A (en) Method and apparatus for visual inspection of electronic component
JP2015190872A (en) Device for inspecting bottoms of bottles
JPS6157837A (en) Inspecting device for outer appearance
JP2003172709A (en) Inspection device
TW202100988A (en) Glass bottle inspection method and glass bottle manufacturing method
JP6073261B2 (en) Bottle bottom inspection device
JP2010038723A (en) Flaw inspecting method
JP2017166956A (en) Defect detection device detection method and program
JP4967132B2 (en) Defect inspection method for object surface
JPS62113050A (en) Bottle mouth inspection system
JPH10339613A (en) Method for inspecting bonding point in wire bonding

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120420

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120420

R150 Certificate of patent or registration of utility model

Ref document number: 4986255

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150511

Year of fee payment: 3