JP2023137057A - Method of generating defect prediction model, bottle appearance inspection method and bottle appearance inspection device - Google Patents
Method of generating defect prediction model, bottle appearance inspection method and bottle appearance inspection device Download PDFInfo
- Publication number
- JP2023137057A JP2023137057A JP2022043054A JP2022043054A JP2023137057A JP 2023137057 A JP2023137057 A JP 2023137057A JP 2022043054 A JP2022043054 A JP 2022043054A JP 2022043054 A JP2022043054 A JP 2022043054A JP 2023137057 A JP2023137057 A JP 2023137057A
- Authority
- JP
- Japan
- Prior art keywords
- defect
- bottle
- image
- inspected
- prediction model
- 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
Links
- 230000007547 defect Effects 0.000 title claims abstract description 290
- 238000007689 inspection Methods 0.000 title claims abstract description 119
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000010801 machine learning Methods 0.000 claims abstract description 6
- 238000003384 imaging method Methods 0.000 claims description 40
- 238000011179 visual inspection Methods 0.000 claims description 40
- 239000011521 glass Substances 0.000 claims description 22
- 238000005286 illumination Methods 0.000 claims description 22
- 230000037303 wrinkles Effects 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 9
- 238000012549 training Methods 0.000 claims description 2
- 230000002950 deficient Effects 0.000 description 60
- 238000003860 storage Methods 0.000 description 29
- 238000012360 testing method Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 4
- 238000013473 artificial intelligence Methods 0.000 description 3
- 239000006260 foam Substances 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 238000013135 deep learning Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 239000002184 metal Substances 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 239000000919 ceramic Substances 0.000 description 1
- 238000004040 coloring Methods 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001678 irradiating effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000007637 random forest analysis Methods 0.000 description 1
- 239000002994 raw material Substances 0.000 description 1
- 238000012706 support-vector machine Methods 0.000 description 1
Images
Abstract
Description
この発明は、種々の態様のガラスびんについて、びんを撮像して取得した画像により外観に現れるびんの欠陥の有無を検査するための欠陥予測モデルの生成方法、びん外観検査方法、およびびん外観検査装置に関する。 The present invention relates to a method for generating a defect prediction model for inspecting the presence or absence of defects that appear on the exterior of glass bottles of various embodiments using images obtained by imaging the bottles, a method for inspecting the appearance of bottles, and a method for inspecting the appearance of bottles. Regarding equipment.
びんの欠陥には、異物、泡、汚れなど、種々のものがあるが、これらのびんの欠陥を、カメラで撮像して取得したびんの画像によって検査することは公知である。従来、びんの欠陥を濃淡画像上で判別するのに、びんに対するカメラと照明装置との位置関係を、カメラがびんからの透過光を受けてびんの透過画像を取得できるように設定する。欠陥は、透過画像中に陰として出現するもので、明度の低い陰の領域の面積(画素数)を計測し、その面積の大きさの程度によってびんの欠陥を検出している。 BACKGROUND OF THE INVENTION There are various types of defects in bottles, such as foreign objects, bubbles, and dirt, and it is known to inspect these bottle defects using an image of the bottle captured by a camera. Conventionally, in order to identify bottle defects on a gray-scale image, the positional relationship between a camera and an illumination device with respect to the bottle is set so that the camera can receive transmitted light from the bottle and obtain a transmitted image of the bottle. Defects appear as shadows in the transmitted image, and the area (number of pixels) of the low-brightness shadow area is measured, and bottle defects are detected based on the size of the area.
びんの欠陥のうち、びんの表面近くに出現する泡(以下「表面泡」という。)については、透過画像から検出するのが難しい。そこで、表面泡を濃淡画像上で判別するのに、びんに対するカメラと照明装置との位置関係を、カメラがびんからの反射光を受けてびんの反射画像を取得できるように設定する。表面泡は、透過画像中で陰ではなく周囲より明るく映る部分として出現するもので、明度が所定の値より高い領域の面積(画素数)を計測し、その面積の大きさの程度により表面泡を検出している。 Among bottle defects, bubbles that appear near the surface of the bottle (hereinafter referred to as "surface bubbles") are difficult to detect from a transmitted image. Therefore, in order to identify surface bubbles on a gray-scale image, the positional relationship between the camera and the lighting device with respect to the bottle is set so that the camera can receive reflected light from the bottle and obtain a reflected image of the bottle. Surface bubbles appear in a transmitted image as an area that appears brighter than the surrounding area, rather than as a shadow.The area (number of pixels) of the area where the brightness is higher than a predetermined value is measured, and the surface bubbles are determined based on the size of the area. is being detected.
近年、AI関連技術の進歩が目覚ましく、外観に現れる物の傷や欠陥を人口知能により判別する外観検査装置が提案されている。特許文献1は、検査対象を走査して得られる画像信号を用いて欠陥の形状や等級を人工知能により判別する欠陥検査装置を開示している。また、特許文献2には、対象物の画像データを学習用データとして深層学習によって学習済モデルを作成し、その学習済モデルを用いて、検査対象を撮像して得られた画像データから、あらかじめ設定された形態の画像を示す画像データを識別する画像識別システムが開示されている。
In recent years, advances in AI-related technology have been remarkable, and visual inspection devices have been proposed that use artificial intelligence to identify scratches and defects on objects.
ところで、びんには、表面に凹凸状の変形部分を有するラムネびんのようなびんや、表面に社名、商品名、装飾などのレリーフ(浮彫)が施されたびんなど、種々の態様のびんがある。この種のびんについて、びんの外観に現れるびんの欠陥を画像上で判別してびんの良否を検査する場合、変形部分やレリーフの部分が画像上に陰として現れるため、欠陥による陰を変形部分やレリーフによる陰と区別して判別する必要がある。 By the way, there are various types of bottles, such as bottles with uneven deformed parts on the surface, such as ramune bottles, and bottles with reliefs such as company names, product names, decorations, etc. on the surface. be. For this type of bottle, when inspecting the quality of the bottle by identifying defects that appear on the bottle's appearance on an image, deformed parts and relief parts appear as shadows on the image, so the shadows caused by defects are It is necessary to distinguish it from shadows caused by relief or relief.
しかし、その種のびんについて、変形部分やレリーフの部分の影響を受けない高精度の外観検査は困難であり、良品を不良品と誤判定する結果、良品を破棄する数量が増すという問題がある。良品の破棄数を減らすために、検査精度を下げると、不良品を良品と誤判定する結果、不良品が市場に出回るという問題を生じさせる。 However, it is difficult to conduct a high-precision visual inspection of these types of bottles, which is not affected by deformed or relief parts, and the problem is that non-defective products are incorrectly judged as defective, resulting in an increase in the number of non-defective products that are discarded. . If the inspection accuracy is lowered in order to reduce the number of discarded non-defective products, defective products will be erroneously determined as non-defective products, resulting in the problem of defective products being put on the market.
従来、変形部分やレリーフの部分の影響を受けない高精度なびんの外観検査装置、さらには、外観に現れるびんの欠陥を人口知能により判別するびんの外観検査装置は提案されていない。 Hitherto, no high-precision bottle appearance inspection apparatus that is not affected by deformed parts or relief parts, and furthermore, a bottle appearance inspection apparatus that uses artificial intelligence to determine defects in bottles that appear on the outside, have not been proposed.
この発明は、上記の問題に着目してなされたもので、高精度の外観検査を行うための欠陥予測モデルの生成方法、びん外観検査方法、およびびん外観検査装置を提供することを目的とする。 The present invention has been made in view of the above-mentioned problems, and aims to provide a method for generating a defect prediction model, a bottle appearance inspection method, and a bottle appearance inspection device for performing highly accurate appearance inspection. .
本発明のびんの外観に現れる欠陥の有無を予測するための欠陥予測モデルを生成する方法は、学習用画像を取得する学習用画像取得ステップと、
前記学習用画像に欠陥情報を付与して教師データを生成する生成ステップと、
前記教師データを用いて機械学習を行うことにより、検査対象画像を入力した場合に、前記検査対象画像内の欠陥の有無を予測する欠陥予測モデルを生成する学習ステップとを備える。
A method for generating a defect prediction model for predicting the presence or absence of defects appearing on the appearance of a bottle according to the present invention includes a learning image acquisition step of acquiring a learning image;
a generation step of adding defect information to the learning image to generate teacher data;
and a learning step of generating a defect prediction model that predicts the presence or absence of a defect in the image to be inspected when the image to be inspected is input by performing machine learning using the teacher data.
上記の欠陥予測モデルを生成する方法によれば、学習用画像に欠陥情報を付与しているので、高精度の外観検査を行うことができる。 According to the method of generating the defect prediction model described above, since defect information is added to the learning image, highly accurate visual inspection can be performed.
前記欠陥情報は、前記学習用画像内の欠陥の位置を示す情報を含むことが好ましい。 Preferably, the defect information includes information indicating a position of a defect within the learning image.
前記欠陥情報は、欠陥の種類を示す情報を含み、前記欠陥の種類は、キズ、表面泡、しわ、異物、汚れ、内面泡および異質ガラスの少なくともいずれかであることが好ましい。 The defect information includes information indicating the type of defect, and the defect type is preferably at least one of scratches, surface bubbles, wrinkles, foreign matter, dirt, inner bubbles, and foreign glass.
本発明のびん外観検査方法は、検査対象のびんの検査対象画像を取得する取得ステップと、上記に記載の欠陥予測モデルの生成方法により生成された欠陥予測モデルを用いて、前記検査対象画像内の欠陥の有無を予測する欠陥予測ステップと、を備える。 The bottle visual inspection method of the present invention includes an acquisition step of acquiring an inspection target image of a bottle to be inspected, and a defect prediction model generated by the defect prediction model generation method described above. a defect prediction step of predicting the presence or absence of a defect.
上記のびん外観検査方法においては、前記欠陥予測ステップでは、前記欠陥予測モデルは、前記検査対象画像内に欠陥が含まれるか否かの可能性を示す信頼度を、予測結果として出力することが好ましい。 In the above-mentioned bottle visual inspection method, in the defect prediction step, the defect prediction model may output, as a prediction result, a degree of reliability indicating the possibility of whether or not a defect is included in the image to be inspected. preferable.
上記のびん外観検査方法においては、前記信頼度を閾値と比較することにより、前記検査対象画像の欠陥の有無を判定する第1判定ステップをさらに備えることが好ましい。 The above-mentioned bottle visual inspection method preferably further includes a first determination step of determining whether or not there is a defect in the image to be inspected by comparing the reliability with a threshold value.
前記第1判定ステップで欠陥が有ると判定された前記検査対象画像について、画像を構成する各画素の周辺画素との明度差に基づく処理によって前記検査対象画像に欠陥が有るか否かをさらに判定する第2判定ステップをさらに備えることが好ましい。 Regarding the inspection target image determined to have a defect in the first determination step, it is further determined whether or not the inspection target image has a defect by processing based on the brightness difference between each pixel constituting the image and surrounding pixels. It is preferable to further include a second determination step.
本発明を装置の観点から記載すると、びん外観検査装置は、検査対象のびんの検査対象画像を取得する検査対象画像取得部と、上記に記載の欠陥予測モデルの生成方法により生成された欠陥予測モデルを用いて、前記検査対象画像内の欠陥の有無を予測する欠陥予測部と、を含む。 Describing the present invention from an apparatus perspective, the bottle visual inspection apparatus includes an inspection target image acquisition unit that acquires an inspection target image of a bottle to be inspected, and a defect prediction model generated by the defect prediction model generation method described above. A defect prediction unit that uses a model to predict the presence or absence of a defect in the image to be inspected.
びん外観検査装置において、前記欠陥予測モデルは、前記検査対象画像内に欠陥が有るか否かの可能性を示す信頼度を、予測結果として出力することが好ましい。 In the bottle visual inspection apparatus, it is preferable that the defect prediction model outputs a degree of reliability indicating the possibility of whether or not there is a defect in the image to be inspected as a prediction result.
前記信頼度を閾値と比較することにより、前記検査対象画像の欠陥の有無を判定する第1判定部をさらに備えることが好ましい。 It is preferable that the image forming apparatus further includes a first determination unit that determines the presence or absence of a defect in the image to be inspected by comparing the reliability with a threshold value.
前記第1判定部において欠陥を有すると判定された前記検査対象画像において、着目画素とその周辺画素との明度差に基づいて前記検査対象画像に欠陥が有るか否かを判定する第2判定部をさらに含むことが好ましい。 a second determination unit that determines whether or not the inspection target image has a defect based on a brightness difference between a pixel of interest and its surrounding pixels in the inspection target image determined to have a defect by the first determination unit; It is preferable to further include.
本発明のびん外観検査装置は、前記検査対象画像を撮像するための撮像装置をさらに備える。 The bottle visual inspection apparatus of the present invention further includes an imaging device for capturing the inspection target image.
前記撮像装置は、びんを直立姿勢で支持してびんを中心軸の周りに回転させるテーブルと、前記びんに照明光を照射する照明装置と、びんに向けて照射された照明光を受けて前記テーブル上のびんの前記検査対象画像を取得するカメラと、少なくとも前記カメラの撮像動作を制御する制御部とを含み、前記制御部は、びんの少なくとも全周にわたる画像を取得することが可能なシャッターのタイミングを与えるタイミング信号を生成して前記カメラへ出力することが好ましい。 The imaging device includes a table that supports the bottle in an upright position and rotates the bottle around a central axis, an illumination device that irradiates the bottle with illumination light, and a table that receives the illumination light that is irradiated toward the bottle. The camera includes a camera that captures the inspection target image of the bottle on the table, and a control unit that controls at least an imaging operation of the camera, and the control unit includes a shutter that is capable of capturing an image over at least the entire circumference of the bottle. It is preferable to generate a timing signal that provides the timing of and output it to the camera.
上記の構成によれば、高精度の外観検査を行うことができる。 According to the above configuration, highly accurate visual inspection can be performed.
本発明の実施形態について添付図面を参照して説明する。なお、本発明は、下記の実施形態に限定されるものではない。 Embodiments of the present invention will be described with reference to the accompanying drawings. Note that the present invention is not limited to the embodiments described below.
(びん検査システム1の概略構成)
図1は、本発明のびん外観検査装置20が含まれるびん検査システム1の概略構成を示している。図示のびん検査システム1は、スターホイール2の周囲に複数個の検査ステーションが円陣に配置された構成のものである。なお、図1には、最終の検査ステーションTAとそれ以外のひとつの検査ステーションTBが示してあり、他の検査ステーションについての図示を省略している。スターホイール2の外周面には、検査対象のびん10が導入される複数個の凹部2aが等角度毎に設けられている。
(Schematic configuration of bottle inspection system 1)
FIG. 1 shows a schematic configuration of a
製びん機(図示せず)から搬送されてくるびん10は、びん供給機構3によりスターホイール2の凹部2aへ供給される。スターホイール2は、図示しない回転駆動機構により図中、矢印で示す方向へ所定の角度づつ間欠送りされるもので、これにより検査用のびん10は各検査ステーションに順次導かれる。各検査ステーションにおいて、検査用のびん10は決められた項目の検査が実行される。本発明のびん外観検査装置20は、上記の検査ステーションのいずれか(例えば検査ステーションTB)に配置されるものである。びん10に対して各種項目の検査が実行された後、検査対象のびん10は検査の結果に応じて弁別機構4により良品と不良品とに弁別される。弁別機構4が「良品」と弁別した検査対象のびん10は、搬出コンベヤ上へ送り出されて次工程へ送られる。弁別機構4が「不良品」と弁別した検査対象のびん10は、図示しないリジェクト機構によりリジェクトされ、廃棄のためのテーブル上に回収される。
(びん10)
図2(A)、図2(B)には、びん外観検査装置20の検査対象のびん10の一例が示されている。図2(A)のびん10は、胴部13、底部15、口部16を有し、胴部13の上部がくびれ、表面に凹凸形状をなす変形部分11を含んでいる。本実施形態では、この変形部分11とその近傍を検査対象領域に設定して欠陥の有無を検査するが、検査対象領域は胴部13の他の領域であってもよい。なお、びん外観検査装置20は、図2(B)に示すような、表面に社名、商品名、装飾などのレリーフ(浮彫)が施されたびん10を検査対象とすることもできる。レリーフ部分12は、びん10の胴部13の表面より傾斜して盛り上がるような突起物、すなわち、断面が山形形状の突起物によって表されている。なお、検査対象のびん10は図2の例に限定されず、変形部分11やレリーフ部分12を有しないびん10を検査対象としてもよい。
(bottle 10)
2(A) and 2(B) show an example of a
びん10に現れる欠陥には、びん10の表面のキズ、びん10の表面に近い箇所に現れる泡(「表面泡」ともいう。)、しわ、たとえば金属や陶磁器片などの未溶解物(「異物」ともいう。)、製びんの過程などでびん10の表面に付着した汚れ、びん10の内壁内部に現れる泡(表面泡以外の泡であり、「内面泡」ともいう。)、ガラスびん10の原料として用いられる成分とは異なる成分を有するガラスであり、市中から回収される再利用ガラス中に含まれており、再利用ガラスを利用したガラスびん製造時に混入したもの(「異質ガラス」ともいう。)が含まれる。表面泡および内面泡を区別しない場合には「泡」ともいう。なお、本明細書において、びん10の欠陥とは、びん10の使用上問題となるキズ、表面泡、しわ、異物、汚れ、内面泡、異質ガラスをいい、びん10の使用に問題がないものは欠陥には含まれない。
Defects that appear on the
図2(A)、図2(B)に示すびん10は、検査対象のガラスびん10の例であるが、学習対象として用いられるガラスびん10の例であってもよい。検査対象のガラスびん10を「検査用のびん10」といい、学習対象として用いられるガラスびん10を「学習用のびん10」という。学習用のびん10と検査用のびん10を総称して単に「びん10」ということもある。
The
(びん外観検査装置20)
本発明のびん外観検査装置20は、図3、図4に示すように、びん10の画像を撮像するための撮像装置30と、撮像装置30により撮像された前記検査対象画像内の欠陥の有無を検査するための欠陥検査装置50とを備えている。
(Bottle appearance inspection device 20)
As shown in FIGS. 3 and 4, the bottle
(撮像装置30)
図3に示すように、撮像装置30は、びん10を直立姿勢で支持してびん10を中心軸Xの周りに回転させるテーブル31と、びん10に照明光を照射する照明装置32と、びん10に向けて照射された照明光を受けてテーブル31上のびん10の画像を取得するカメラ33と、カメラ33の撮像動作、照明装置32の点灯、消灯の各動作、テーブル31の動作などを制御する制御部34とを含んでいる。
(Imaging device 30)
As shown in FIG. 3, the
撮像装置30は、びん外観検査装置20による検査用びん10の検査の際に検査用びん10の画像(「検査対象画像」ともいう。)を撮像する。また、検査を実施していないときに、後述する欠陥予測モデル生成装置40で用いる学習用びん10の画像(「学習用画像」ともいう。)を撮像することもできる。学習用画像または検査対象画像を区別しない場合には単に「撮像画像」ともいう。
The
テーブル31は検査ステーションTBの位置に水平に設けられており、駆動機構31aにより中心軸X(軸芯)の周りに回転が可能になっている。テーブル31はスターホイール2とともにびん10の位置決め機構を構成する。照明装置32は、検査位置に定位したびん10の胴部13の撮像対象領域14に対して拡散光を照射する。
The table 31 is provided horizontally at the position of the inspection station TB, and can be rotated around a central axis X (axis) by a
カメラ33は、びん10と対面する位置であって、びん10からの透過光を受けてびん10の撮像対象領域14の撮像画像を取得することが可能な位置に配置される。撮像対象領域14とは、びん10の胴部13の所定の高さ領域であって、びん10の全周(びん10の回転角度が360度)以上、2周(びん10の回転角度が720度)以下、より好ましくは、全周以上、全周半(びん10の回転角度が540度)以下にわたる領域であり、カメラ33によりの撮像画像として取得される領域である。びん10の回転の開始時および終了時には後述するテーブル31上のびん10に揺れ等が生じてびん10が安定せず、欠陥が鮮明に撮像されない可能性がある。びん10の全周の画像を確実に取得するために、びん10の少なくとも全周以上にわたる領域を撮像することが好ましく、全周半程度にわたる領域を撮像することがより好ましい。
The
カメラ33として、一例では、複数の画素が縦一列に並べられたCCDラインセンサが用いられている。なお、カメラ33はラインセンサに限定されない。例えば、カメラ33としてエリアカメラを用い、撮像対象領域14を複数回に分けて撮像し、撮像した画像をつなぎ合わせて撮像対象領域14を含む撮像画像としてもよい。
As the
カメラ33は、びん10の少なくとも全周、好ましくは全周半にわたる画像データを取得するために、びん10が少なくとも1回転、好ましくは1回転半する間、シャッターが開状態となるように制御される。制御部34は、シャッターの開閉タイミングを与えるタイミング信号を生成してカメラ33へ出力する。
The
図5は、図2(A)に示すびん10について、カメラ33による撮像画像を展開して示したものであり、濃淡画像を構成する各画素は明度が256階調で表されている。図5の展開された撮像画像には、びん10の全周半(540度)にわたって展開された撮像領域が示されており、欠陥としての異物の画像C1~C3が3箇所に現れているが、実際にはびん10に含まれる異物は1つである。図5の撮像画像に現れた異物の画像C1~C3は、びん10の同じ異物が3度撮像されて現れたものである。図5の撮像画像において、左端は撮像開始位置、右端は撮像終了位置であり、左端および右端に現れている異物の画像C1、C3は、びん10が1周回転して異物が同じ回転角度位置にきたときに撮像されて現れたものである。異物の画像C2は、左端の異物の画像C1が取得された位置からびん10が半周回転したときに、同じ異物がびん10の裏側から撮像されて現れたものである。
FIG. 5 shows an expanded image taken by the
欠陥として異物、汚れ、内面泡、異質ガラスを検査する場合には、カメラ33はびん10と対面する位置であってびん10からの透過光を受けてびん10の画像を取得することが可能な位置に配置される。本実施形態では、図3(A)、図3(B)に示すように、カメラ33と照明装置32とは、びん10を挟んで対向する位置に直線上に配置される。異物、汚れ、内面泡、異質ガラスの欠陥の画像は、透過光を用いることで撮像画像に現れやすい。特に、照明装置32は拡散光源と偏光板を含み、直線偏光の照明光をびん10に照射することで、異質ガラスの画像が撮像画像に現れやすくなる。なお、透過光を用いることで、比較的大きい表面泡、比較的大きいキズ等の欠陥の画像も撮像画像に現れることがある。
When inspecting defects such as foreign matter, dirt, inner bubbles, or foreign glass, the
欠陥として表面泡、キズ、しわを検査する場合には、カメラ33はびん10と対面する位置であってびん10からの反射光を受けてびん10の画像を取得することが可能な位置に配置される。本実施形態では、図4(A)に示すように、カメラ33は、平面視において照明装置32に対してびん10の胴部13の表面の撮像箇所を含む一点10aを中心として中心角度が45度の位置に配置されている。なお、カメラ33の配置位置の中心角度は本実施形態には限定されず、例えば、中心角度は30度以上、60度以下であってよく、カメラ33がびん10の学習用画像および検査対象画像を撮像することが可能な程度の拡散光を得ることができればいずれの中心角度であってもよい。表面泡、キズ、しわの欠陥の画像は、反射光を用いることで撮像画像に現れやすい。なお、反射光を用いることで、欠陥が照明光を反射するような異物(例えば、びん表面に露出している金属等)、照明光を反射するような汚れ(例えば、白色の汚れ)、びん10表面に近い内面泡の欠陥も、撮像画像に現れることがある。なお、図4(A)、図4(B)においてはびん10、テーブル31、照明装置32、カメラ33のみを示し、他の構成の図示を省略している。
When inspecting surface bubbles, scratches, and wrinkles as defects, the
びん外観検査装置20の検査によって、撮像対象領域14に欠陥を有すると判断されるびん10を「不良品びん10」または「不良品」、撮像対象領域14に欠陥を有さないと判断されるびん10を「良品びん10」または「良品」ともいう。
A
びん検査システム1の検査ステーションの1つにカメラ33と照明装置32とを図3のように配置した第1のびん外観検査装置20を、他の検査ステーションにカメラ33と照明装置32とを図4のように配置した第2のびん外観検査装置20を、それぞれ設けることで、びん10は、透過光、反射光の両方により撮像され、キズ、表面泡、しわ、異物、汚れ、内面泡および異質ガラスの欠陥の有無を検査することができる。また、ひとつの検査ステーションが十分に広いスペースを有していれば、びん外観検査装置20において、1台のカメラ33に対して2つの照明装置32を図3及び図4に示すように配置してもよい。この場合、びん10を1回転以上させて透過光および反射光のうち一方の光による撮像を行い、さらにびん10を1回転以上させて透過光および反射光のうち他方の光による撮像を行う。
The first bottle
本実施形態では、制御部34は汎用のコンピュータから構成されており、図3に示すように欠陥検査装置50を構成する汎用コンピュータと兼ねてもよいが、欠陥検査装置50と別体の汎用コンピュータまたは専用コンピュータを用いてもよい。
In this embodiment, the
(欠陥予測モデル生成装置40)
欠陥検査装置50の具体的な機能を説明する前に、欠陥検査装置50で用いられる欠陥予測モデル生成装置40について説明する。図6は、欠陥予測モデル生成装置40の概略構成を示すブロック図である。欠陥予測モデル生成装置40は、検査用びん10の外観に現れる欠陥の有無を予測するための欠陥予測モデルMを生成するためのものである。欠陥予測モデル生成装置40は、汎用のコンピュータで構成することができ、ハードウェア構成として、CPUやGPUなどのプロセッサ、DRAMやSRAMなどの主記憶装置(図示省略)、および、HDDやSSDなどの記憶部44を備えている。記憶部44には、教師データ生成プログラム、学習用プログラム等の欠陥予測モデル生成装置40を動作させるための各種プログラム、パラメータ等が格納されている。
(Defect prediction model generation device 40)
Before explaining the specific functions of the
学習用画像は学習用びんを撮像することで取得される。学習用画像は、教師データを生成するための画像であり、学習用びん10の撮像対象領域14の画像データである。学習用画像には不良品びん10の画像が用いられる。なお、学習用画像には、良品びん10の画像のみが含まれていてもよく、良品のびん10の画像、不良品びん10の画像の両方が含まれていてもよい。学習用画像の数は特に限定されないが、機械学習が十分に実行可能な数であることが好ましい。学習用びんは、撮像装置30とは別途設けられた回転台やカメラ等により予め撮像され、学習用画像が後述する記憶部44に記憶されていてもよい。また、上述したようにびん外観検査装置20による検査が行われていない時に、撮像装置30を用いて撮像されてもよい。
The learning image is obtained by capturing an image of the learning bottle. The learning image is an image for generating teacher data, and is image data of the
欠陥予測モデル生成装置40は、図6に機能ブロックとして表された各構成を含むものであり、学習用画像取得部41と、欠陥情報付与部42と、学習部43とを備えている。本実施形態において、これらの各部は、欠陥予測モデル生成装置40のプロセッサが教師データ生成プログラムや学習用プログラムを主記憶装置に読み出して実行することによってソフトウェア的に実現される。
The defect prediction
学習用画像取得部41は、学習用画像を取得する。本実施形態では、撮像装置30から学習用びん10を撮像した学習用画像を取得する。なお、学習用画像が予め記憶部44に記憶されている場合には、学習用画像取得部41は記憶部44から学習用画像を読み出して取得する。また、学習用画像取得部41は外部との通信回線や記憶媒体を介して学習用画像を取得してもよい。
The learning
欠陥情報付与部42は欠陥情報を付与して教師データを生成する。欠陥情報とは、欠陥に関する情報である。不良品の学習用画像においては、欠陥情報には学習用画像内の欠陥の位置を示す情報が含まれる。ユーザは、入力装置60であるマウス、タッチパネル、モニタ等を用いた操作により、目視で学習用画像内の欠陥が有る領域を指定する。例えば、図5において、ユーザは点線で囲まれた領域を指定する。欠陥情報付与部42はこの指定された領域の座標データを、学習用画像内の欠陥の位置を示す情報として学習用画像に付与する。また、学習用画像に現れた欠陥ではない小さいキズ、表面泡、しわ、異物、汚れ、内面泡および異質ガラスに対しては、ユーザは欠陥として領域を指定しないか、または、位置を示す情報と欠陥なしという情報を付与し、後述する学習部43に欠陥ではない小さい異物や泡、薄い汚れ等を欠陥と認識しないように学習させる。
The defect
なお、学習用画像内の欠陥の位置を示す情報は、例えば、学習用画像内の欠陥を示す画素を色づけすることで付与されてもよく、欠陥が位置する座標データを入力装置60に入力することで付与されてもよい。また、欠陥情報として、欠陥の種類を示す情報を含んでいてもよい。欠陥の種類は、キズ、表面泡、しわ、異物、汚れ、内面泡および異質ガラスの少なくともいずれかである。さらに、欠陥情報は、学習用画像の欠陥の有無を示す情報であってもよい。
Note that the information indicating the position of the defect in the learning image may be provided by, for example, coloring pixels indicating the defect in the learning image, and inputting coordinate data where the defect is located into the
また、ユーザの操作により目視によりこれらの欠陥情報が付与されるのではなく、ユーザを介さずに欠陥情報を付与してもよい。例えば、画像上で欠陥を検出するプログラムや欠陥の種類を判別するプログラムを記憶部44に備え、これらのプログラムを動作させることにより欠陥情報が付与されてもよい。
In addition, instead of being visually provided with the defect information through a user's operation, the defect information may be provided without the user's intervention. For example, the
欠陥情報付与部42で欠陥情報が付与された学習用画像は、教師データとして記憶部44に格納される。
The learning image to which defect information has been added by the defect
学習部43は、教師データを用いて機械学習を行うことにより、検査対象画像を入力した場合に、検査対象画像内の欠陥の有無を予測する欠陥予測モデルMを生成する。また、欠陥予測モデルMが出力する予測の結果は、欠陥が有るか否かの可能性を示す信頼度であってもよく、欠陥の「有」「無」のみを示す情報であってもよく、検査対象画像内の欠陥の位置情報、および、欠陥の種類(キズ、表面泡、しわ、異物、汚れ、内面泡および異質ガラス)に関する情報であってもよい。学習法は特に限定されないが、例えば、ディープラーニング、サポートベクターマシン、ランダムフォレストなどを用いることができる。生成された欠陥予測モデルMは、記憶部44に格納され、その後、びん10の外観検査のために用いられる。
The
なお、学習用画像に良品びん10の画像のみが含まれる場合には、欠陥情報付与部42は、学習用画像に対して欠陥なしという欠陥情報を付与してもよい。
Note that when the learning image includes only images of
本実施形態では、欠陥予測モデル生成装置40はクラウド上に設けられていてもよいし、汎用コンピュータにより構成されていてもよい。また、後述する欠陥検査装置50が欠陥予測モデル生成装置40の機能を有してもよい。
In this embodiment, the defect prediction
(欠陥検査装置50)
図7は、欠陥検査装置50の概略構成を示すブロック図である。欠陥検査装置50は、欠陥予測モデルMの生成方法によって生成された欠陥予測モデルMを用いて、撮像装置30により撮像されたびん10の検査対象画像に欠陥が有るか否かを判定する。欠陥検査装置50は、汎用のコンピュータで構成することができ、ハードウェア構成として、CPUやGPUなどのプロセッサ、DRAMやSRAMなどの主記憶装置(図示省略)、および、HDDやSSDなどの記憶部56を備えている。
(Defect inspection device 50)
FIG. 7 is a block diagram showing a schematic configuration of the
記憶部56には、欠陥予測モデル生成装置40および欠陥予測モデル生成方法によって生成された欠陥予測モデルMの他、欠陥予測プログラム、欠陥の判定プログラムなどの欠陥検査装置50を動作させるための各種プログラムやパラメータが格納されている。また、検査対象画像が撮像装置30により撮像されたのち、記憶部56に記憶されてもよい。
In addition to the defect prediction model M generated by the defect prediction
欠陥検査装置50は、図7に機能ブロックとして表された各構成を含むものであり、検査対象画像取得部51と、欠陥予測部52と、第1判定部53と、第2判定部54と、出力部55とを備えている。本実施形態において、これらの各部は、欠陥検査装置50のプロセッサが各種プログラムを主記憶装置に読み出して実行することによってソフトウェア的に実現される。
The
検査対象画像取得部51は、検査対象画像を取得する。本実施形態では、撮像装置30から検査用びん10を撮像した検査対象画像を取得する。なお、検査対象画像は予め撮像されて記憶部56に記憶されていてもよく、この場合、検査対象画像取得部51は記憶部56から検査対象画像を読み出して取得する。また、検査対象画像取得部51は外部との通信回線や記憶媒体を介して検査対象画像を取得してもよい。
The inspection target image acquisition unit 51 acquires an inspection target image. In this embodiment, an inspection target image obtained by capturing an image of the
欠陥予測部52は、欠陥予測モデルMを用いて、検査対象画像内の欠陥の有無を予測する機能ブロックである。本実施形態では、欠陥予測部52は、記憶部56から欠陥予測モデルMを主記憶装置に読み出す。欠陥予測部52は、検査対象画像を欠陥予測モデルMに入力し、これに対して、欠陥予測モデルMは、検査対象画像内に欠陥が有るか否かの可能性を示す信頼度を、予測の結果として出力する。欠陥予測部52は欠陥予測モデルMが出力した信頼度のデータを予測の結果として第1判定部53に入力する。なお、欠陥予測モデルMは、欠陥の種類ごとに信頼度を出力してもよい。すなわち、検査対象画像に異物、表面泡、表面泡以外の泡、汚れがそれぞれ含まれるか否かの可能性を示す信頼度を出力する。また、欠陥予測モデルMは、検査対象画像上の欠陥の位置を示す情報を出力してもよい。さらに、欠陥予測モデルMは信頼度ではなく検査対象画像内の欠陥の「有」「無」の情報のみを出力してもよい。その場合、欠陥予測部52は、当該情報を第1判定部53に出力してもよいし、出力部55に出力してもよい。
The
第1判定部53は、欠陥予測部52から出力された信頼度を閾値と比較することにより、検査対象画像の欠陥の有無を判定する。第1判定部53は、記憶部56から閾値を読み出し、信頼度が閾値より高い場合に検査対象画像に欠陥が有ると判定し、閾値以下の場合に検査対象画像に欠陥が無いと判定する。第1判定部53は、検査対象画像に欠陥が有るか否かを判定結果として出力する。なお、欠陥予測モデルMが欠陥の種類ごとに信頼度を出力する場合には、第1判定部53は欠陥の種類ごとに判定を行い、異物、表面泡、表面泡以外の泡、汚れのいずれの欠陥が有るかを判定結果として出力する。欠陥が有る場合には、判定結果は第2判定部54に出力され、欠陥が無い場合には、判定結果は出力部55に出力される。
The
図8(A)~図8(D)は第1判定部53において欠陥が有ると判定された検査対象画像の例である。なお、図8(A)~図8(D)は検査対象画像全体を示すものではなく、検査対象画像のうち、欠陥と判定された部分が現れた一部分のみを切り取った画像である。図中、点線で囲まれた領域内の暗く現れた部分または白く現れた部分が欠陥と判定された部分である。点線は説明のために付したものであり、実際の検査対象画像には含まれない。図8(A)の点線の領域には表面泡が現れ、図8(B)の点線の領域には異物が現れている。一方、図8(C)の点線の領域にはびん10の表面に付いた薄い汚れが現れ、図8(D)の点線の領域には小さな異物が現れている。図8(C)、図8(D)のような小さな異物や泡、薄い汚れ等は、欠陥予測部52、第1判定部53により欠陥と判定される場合があるが、要求される品質によっては欠陥と判定する必要のないものである。
FIGS. 8A to 8D are examples of images to be inspected that are determined to have defects by the
なお、第1判定部53に検査対象画像内の欠陥の「有」「無」の情報のみが予測結果として入力された場合には、第1判定部53の判定結果は欠陥の「有」「無」の情報に沿ったものとなる。
Note that when only the information of "presence" or "absence" of a defect in the image to be inspected is inputted to the
第2判定部54は、第1判定部53で欠陥が有ると判定された検査対象画像をマスク走査し、マスク内の着目画素の周辺画素との明度差に基づく濃淡処理によって検査対象画像に欠陥が有るか否かを判定する。
The
検査対象画像は、濃淡画像であって各画素の明度が256階調で表されており、暗いほど明度の値は小さい。第2判定部54は、各画素について、所定の画素数だけ離れた近傍の他の画素との明度差を算出する処理(濃淡処理)を行う。続いて、第2判定部54は、記憶部56から濃淡閾値を主記憶装置に読み出し、濃淡画像において、明度差の値が濃淡閾値を超える画素を検出し、2値化処理により2値画像を生成する。この2値画像は、濃淡閾値を超えた画素を「1」、それ以外の画素を「0」とするものである。第2判定部54は、濃淡閾値を超えた画素のうち、連続している画素の数をカウントする。例えば、ある程度大きな異物は、異物の画像の輪郭を構成する画素が「1」、輪郭の内外の画素が「0」となり、輪郭を構成する「1」の画素が環状に連続するもので、輪郭追跡によって輪郭を構成する画素数(異物の周囲長に相当する)がカウントされる。なお、異物の輪郭ではなく、輪郭により囲まれる画素を異物を構成する画素としてその画素数(異物の面積に相当する)をカウントしてもよい。第2判定部54は、記憶部56から周囲長の閾値(サイズ閾値)を読み出し、カウントした画素数とサイズ閾値と比較する。カウントした画素数がサイズ閾値以上の場合には、検査対象画像は欠陥が有ると判定する。図8(C)、図8(D)に示される小さな異物や泡、薄い汚れ等は、第1判定部53において欠陥と判定された場合であっても、第2判定部54により欠陥ではないと判定される。
The image to be inspected is a grayscale image in which the brightness of each pixel is represented by 256 gradations, and the darker the image, the smaller the brightness value. The
なお、第2判定部54は、第1判定部53で欠陥が有ると判定された検査対象画像全体を走査して欠陥の有無の判定を行うのではなく、欠陥および欠陥の周囲を含む領域のみを走査して欠陥の有無の判定を行ってもよい。この場合、欠陥予測部52は欠陥予測モデルMに検査対象画像内の欠陥の位置情報を出力させ、第2判定部54は第1判定部53からまたは欠陥予測部52から位置情報を取得する。これにより、第2判定部54の演算量を軽減することができる。また、欠陥予測モデルMが予測結果として検査対象画像内の欠陥の種類を出力する場合には、記憶部56に予め欠陥の種類に応じた濃淡閾値、サイズ閾値を記憶させ、第2判定部54は欠陥の種類に応じた濃淡閾値、サイズ閾値を用いて欠陥の有無を判定してもよい。
Note that the
出力部55は第2判定部54による欠陥の有無の判定結果または第1判定部53による欠陥が無いとする判定結果を弁別機構4に出力する。また、出力部55は検査対象画像の欠陥の種類を出力してもよい。
The
本実施形態では、欠陥検査装置50はクラウド上に設けられていてもよい。
In this embodiment, the
(欠陥予測モデルMの生成方法)
本実施形態に係る欠陥予測モデルMの生成方法の処理手順について、図9に示すフローチャートを用いて説明する。欠陥予測モデルMの生成方法は欠陥予測モデル生成装置40によって実行される。
(Method for generating defect prediction model M)
The processing procedure of the method for generating the defect prediction model M according to this embodiment will be explained using the flowchart shown in FIG. The method for generating the defect prediction model M is executed by the defect prediction
ステップS1の学習用画像取得ステップでは、学習用画像取得部41が撮像装置30から学習用画像を取得する。続いて、ステップS2の生成ステップにおいて、ユーザの入力装置60の操作により、欠陥情報付与部42が学習用画像に欠陥情報を付与し、教師データを生成する。
In the learning image acquisition step of step S1, the learning
ステップS1、S2によって、1つの学習用画像から1つの教師データが生成される。予め定められた全ての学習用画像が処理されるまでステップS1、S2を繰り返し、全ての学習用画像が処理された場合には(ステップS3においてYES)、ステップS4の学習ステップへ移行する。ステップS4では、学習部43が教師データに基づいて機械学習を行うことにより、欠陥予測モデルMを生成する。
One piece of teacher data is generated from one learning image by steps S1 and S2. Steps S1 and S2 are repeated until all predetermined learning images have been processed, and when all the learning images have been processed (YES in step S3), the process moves to the learning step of step S4. In step S4, the
(びん10の外観検査方法)
本実施形態に係るびん10の外観検査方法の処理手順について、図10に示すフローチャートを用いて説明する。びん10の外観検査方法は、びん外観検査装置20の撮像装置30および欠陥検査装置50によって実行される。
(Appearance inspection method for bottle 10)
The processing procedure of the visual inspection method for the
ステップS11では、びん外観検査装置20の所定の検査ステーションTBに検査用びん10が導入され、撮像装置30のテーブル31上に検査用びん10が載置された否かを判断する。検査用びん10が導入されると(ステップS11でYES)、ステップS12において、撮像装置30の制御部34は照明装置32を点灯させ、ステップS13においてテーブル31を回転させ、ステップS14においてカメラ33に撮像を実行させる。撮像が終了すると、ステップS15において制御部34は照明を消灯させ、テーブル31の回転を停止させる。
In step S11, the
ステップS16の検査対象画像取得ステップにおいて、欠陥検査装置50の検査対象画像取得部51は検査対象画像を取得する。ステップS17の欠陥予測ステップにおいて、欠陥予測部52は、記憶部56から欠陥予測モデルMを主記憶装置に読み出し、欠陥予測モデルMを用いて、検査対象画像内の欠陥の有無を予測し、信頼度を予測の結果として出力する。ステップS18は第1判定ステップであり、第1判定部53は記憶部56から閾値を読み出し、信頼度が閾値より高い場合に検査対象画像に欠陥が有ると判定し、信頼度が閾値以下の場合には検査対象画像に欠陥が無いと判定し、判定結果を出力する。検査対象画像に欠陥が有ると判定された場合には、ステップS19へ移行する。検査対象画像に欠陥が無いと判定された場合には、ステップS22へ移行する。ステップS22では、出力部55は検査対象画像に係るびん10は良品であるという判定結果を弁別機構4に出力する。
In the inspection target image acquisition step of step S16, the inspection target image acquisition unit 51 of the
ステップS19において、第2判定部54は、欠陥が有ると判定された検査対象画像に対して、所定の画像処理を実行し、ステップS20の第2判定ステップにおいて、検査対象画像に欠陥が有るか否かを判定する。第2判定ステップにおいて欠陥が有るとの判定の場合には、ステップS21において、出力部55は検査対象画像に係る検査用びん10が不良品であるという判定結果を弁別機構4に出力する。欠陥が無いと判定の場合には、ステップS20からステップS22へ移行し、出力部55は検査対象画像に係る検査用びん10が良品であるという判定結果を弁別機構4に出力する。ステップS11~S22によって1つの検査用びん10の外観検査のステップが終了し、次の検査用びん10の検査のためにステップS11に戻る。検査済の検査用びん10がテーブル31上から送り出され、新たに検査用びん10がテーブル31上に導入されると、ステップS11~S22の外観検査が行われる。S11において検査用びん10が導入されず、検査が終了の場合には(S25においてYES)、びん10の外観検査の動作を終了する。
In step S19, the
本実施形態によれば、びん10の外観に現れる欠陥が有る学習用画像を用いてびん10の欠陥予測モデルMを生成しているので、高精度の外観検査が可能となる。特に、変形部分11を有するびん10やレリーフ部分12を有するびん10の画像を学習用画像として用いて欠陥予測モデルMを生成することで、それらのびん10に対して、変形部分11やレリーフ部分12の影響を受けない高精度の外観検査が可能となる。
According to this embodiment, the defect prediction model M of the
また、本実施形態では、第1判定部53において欠陥予測モデルMを用いて検査対象画像内の欠陥の有無を予測し、欠陥が有ると判定された検査対象画像に対しては、さらに第2判定部54において濃淡画像を構成する各画素の周辺画素との明度差計測に基づいて検査対象画像に欠陥が有るか否かを判定している。第1判定部53において良品びんに係る検査対象画像を欠陥予測モデルが誤って不良品びんに係る検査対象画像として判定した場合であっても、第2判定部54で第1判定部53とは異なる判定方法で再度欠陥判定を行うため、誤って良品びんに係る検査対象画像を不良品に係る検査対象画像と判定することが防がれ、より高精度の外観検査が可能となる。
Further, in this embodiment, the
(欠陥予測モデルMの判定性能の検証試験)
欠陥予測モデルMが検査対象画像を欠陥を有する画像として判定できるか否かの判定性能の検証試験を行った。まず、欠陥予測モデル生成装置40により欠陥予測モデルMを作成した。図2(A)に示す学習用びん10を300本用意した。学習用びん10は欠陥が有る不良品びん10が200本である。撮像装置30により各びん10の学習用画像を撮像し、欠陥情報を付与した。これら300枚の学習用画像を用いて、欠陥予測モデルMを作成した。
(Verification test of judgment performance of defect prediction model M)
A verification test was conducted to determine whether the defect prediction model M can determine an image to be inspected as having a defect. First, a defect prediction model M was created using the defect prediction
上記の欠陥予測モデルMの動作について試験を行った。検査用びん10として不良品びん10を75本、良品びん10を75本を用意した。これらの各検査用びん10を撮像装置30により撮像し、検査対象画像を得、欠陥予測モデルMに信頼度を出力させた。図11に試験結果を示す。図11のグラフの横軸は、検査対象の不良品びん10、良品びん10の各びん10に付されたびん番号であり、縦軸は信頼度である。信頼度が1に近づくほど、検査対象画像には欠陥が有る可能性が高いことを示している。
The operation of the defect prediction model M described above was tested. As
信頼度に基づき、検査対象画像に欠陥が有るか否かを判定した。閾値を0.45に設定し、信頼度が0.45以上である検査対象画像に係るびん10を不良品、信頼度が0.45より小さい検査対象画像に係るびん10を良品とした。判定結果を表1に示す。良品びん10の検査対象画像(「良品画像」ともいう。)の75枚は全て信頼度が0.45より低くなり、良品と判定された。また、不良品びん10の検査対象画像(「不良品画像」ともいう。)の75枚については、83%の画像が不良品、17%の画像が良品と判定された。このように欠陥予測モデルMによるびん10の欠陥の判定において、良品画像において誤って不良品として判定されることはなく、また、不良品画像においても83%を正しく不良品として判定できた。なお、17%の不良品が良品として判定されるが、誤って良品と判定されてもびん外観検査装置20による検査の後にさらに目視による検査がなされるため、不良品が市場に流出する恐れを確実に抑制することができる。
Based on the reliability, it was determined whether the image to be inspected had a defect. The threshold value was set to 0.45, and
また、閾値を0.4に設定した場合の判定結果を表2に示す。良品画像の75枚のうち、99%の画像が良品と判定され、1%のみが誤って不良品と判定された。また、不良品画像については、85%が不良品、15%が良品と判定された。このように良品画像であるにも関わらず誤って不良品として判定された画像は少なく、また、不良品画像においても85%を正しく不良品として判定できた。良品画像であるにも関わらず誤って不良品として判定された画像は、第2判定部54において再度の判定が行われ、良品と判断される。
Further, Table 2 shows the determination results when the threshold value was set to 0.4. Of the 75 non-defective images, 99% of the images were determined to be non-defective, and only 1% were erroneously determined to be defective. Furthermore, regarding images of defective products, 85% were determined to be defective products and 15% were determined to be non-defective products. As described above, there were few images that were incorrectly determined to be defective even though they were non-defective images, and 85% of the images of defective products were correctly determined to be defective. An image that is erroneously determined to be a defective product even though it is a non-defective image is judged again by the
以上、本発明の一実施形態について説明したが、本発明は上記実施形態に限定されるものではなく、本発明の趣旨を逸脱しない限りにおいて種々の変更が可能である。実施形態として記載され又は図面に示されている構成部品の寸法、材質、形状、その相対的配置等は、本発明の範囲をこれに限定する趣旨ではなく、単なる説明例にすぎない。一つの構成要素を「備える」、「具える」、「具備する」、「含む」、又は「有する」という表現は、他の構成要素の存在を除外する排他的な表現ではない Although one embodiment of the present invention has been described above, the present invention is not limited to the above embodiment, and various changes can be made without departing from the spirit of the present invention. The dimensions, materials, shapes, relative arrangements, etc. of the components described in the embodiments or shown in the drawings are not intended to limit the scope of the invention thereto, and are merely illustrative examples. The expressions "comprising," "comprising," "comprising," "containing," or "having" one component are not exclusive expressions that exclude the presence of other components.
1 びん検査システム
2 スターホイール
4 弁別機構
10 びん
11 変形部分
12 レリーフ部分
14 撮像対象領域
20 びん外観検査装置
30 撮像装置
31 テーブル
32 照明装置
33 カメラ
34 制御部
40 欠陥予測モデル生成装置
41 学習用画像取得部
42 欠陥情報付与部
43 学習部
50 欠陥検査装置
51 検査対象画像取得部
52 欠陥予測部
53 第1判定部
54 第2判定部
1
Claims (13)
学習用画像を取得する学習用画像取得ステップと、
前記学習用画像に欠陥情報を付与して教師データを生成する生成ステップと、
前記教師データを用いて機械学習を行うことにより、検査対象画像を入力した場合に、前記検査対象画像内の欠陥の有無を予測する欠陥予測モデルを生成する学習ステップとを備える、欠陥予測モデルの生成方法。 A method for generating a defect prediction model for predicting the presence or absence of defects appearing on the appearance of a bottle, the method comprising:
a learning image acquisition step of acquiring a learning image;
a generation step of adding defect information to the learning image to generate teacher data;
a learning step of generating a defect prediction model that predicts the presence or absence of a defect in the image to be inspected when the image to be inspected is input by performing machine learning using the training data; Generation method.
請求項1~3のいずれか一項に記載の欠陥予測モデルの生成方法により生成された欠陥予測モデルを用いて、前記検査対象画像内の欠陥の有無を予測する欠陥予測ステップと、を備えるびん外観検査方法。 an acquisition step of acquiring an image to be inspected of the bottle to be inspected;
A bottle comprising: a defect prediction step of predicting the presence or absence of a defect in the image to be inspected using the defect prediction model generated by the defect prediction model generation method according to any one of claims 1 to 3. Appearance inspection method.
請求項1~3のいずれか一項に記載の欠陥予測モデルの生成方法により生成された欠陥予測モデルを用いて、前記検査対象画像内の欠陥の有無を予測する欠陥予測部と、
を含むびん外観検査装置。 an inspection target image acquisition unit that acquires an inspection target image of a bottle to be inspected;
A defect prediction unit that predicts the presence or absence of a defect in the image to be inspected using the defect prediction model generated by the defect prediction model generation method according to any one of claims 1 to 3;
Bottle visual inspection equipment including:
前記制御部は、びんの少なくとも全周にわたる画像を取得することが可能なシャッターのタイミングを与えるタイミング信号を生成して前記カメラへ出力する請求項12に記載のびん外観検査装置。 The imaging device includes a table that supports the bottle in an upright position and rotates the bottle around a central axis, an illumination device that irradiates the bottle with illumination light, and a table that receives the illumination light that is irradiated toward the bottle. including a camera that acquires the inspection target image of the bottle on the table, and a control unit that controls at least the imaging operation of the camera;
13. The bottle visual inspection apparatus according to claim 12, wherein the control unit generates a timing signal that provides timing for a shutter that can capture images over at least the entire circumference of the bottle, and outputs the generated timing signal to the camera.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022043054A JP2023137057A (en) | 2022-03-17 | 2022-03-17 | Method of generating defect prediction model, bottle appearance inspection method and bottle appearance inspection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022043054A JP2023137057A (en) | 2022-03-17 | 2022-03-17 | Method of generating defect prediction model, bottle appearance inspection method and bottle appearance inspection device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2023137057A true JP2023137057A (en) | 2023-09-29 |
Family
ID=88145136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2022043054A Pending JP2023137057A (en) | 2022-03-17 | 2022-03-17 | Method of generating defect prediction model, bottle appearance inspection method and bottle appearance inspection device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2023137057A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117710366A (en) * | 2024-02-02 | 2024-03-15 | 杭州百子尖科技股份有限公司 | Quality inspection method and device for thermos cup and storage medium |
-
2022
- 2022-03-17 JP JP2022043054A patent/JP2023137057A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117710366A (en) * | 2024-02-02 | 2024-03-15 | 杭州百子尖科技股份有限公司 | Quality inspection method and device for thermos cup and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230162347A1 (en) | System and method for set up of production line inspection | |
JP6869490B2 (en) | Defect inspection equipment, defect inspection methods, and their programs | |
CN112088387B (en) | System and method for detecting defects in an imaged article | |
Eshkevari et al. | Automatic dimensional defect detection for glass vials based on machine vision: A heuristic segmentation method | |
US20220020136A1 (en) | Optimizing a set-up stage in an automatic visual inspection process | |
JP2004340770A (en) | Imaging inspection system | |
CN111220581A (en) | Fluorescence penetrant inspection system and method | |
JP2009097922A (en) | Visual inspection method and apparatus | |
WO2020079694A1 (en) | Optimizing defect detection in an automatic visual inspection process | |
CN112884743B (en) | Detection method and device, detection equipment and storage medium | |
CN111239142A (en) | Paste appearance defect detection device and method | |
JP2013186075A (en) | Foreign matter inspection device and foreign matter inspection method | |
JP2023137057A (en) | Method of generating defect prediction model, bottle appearance inspection method and bottle appearance inspection device | |
KR20220134019A (en) | Systems and methods for imaging reflective objects | |
JP2010204051A (en) | Inspection apparatus and inspection method | |
JP2005241304A (en) | Appearance inspection method | |
WO2022119870A1 (en) | Image augmentation techniques for automated visual inspection | |
JP2009236593A (en) | Visual inspection supporting device | |
JP2004286708A (en) | Defect detection apparatus, method, and program | |
JPH04270951A (en) | Method for inspecting bottle | |
CN111183351A (en) | Image sensor surface defect detection method and detection system | |
KR20190042180A (en) | Cover-glass analyzing method | |
CN117495846B (en) | Image detection method, device, electronic equipment and storage medium | |
CN116051541B (en) | Bearing end face gentle abrasion detection method and device based on stroboscopic light source | |
RU2789786C2 (en) | System and method for organization of control on production line |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A625 | Written request for application examination (by other person) |
Free format text: JAPANESE INTERMEDIATE CODE: A625 Effective date: 20240202 |