JP7505256B2 - Image inspection device, image inspection method, and trained model generation device - Google Patents
Image inspection device, image inspection method, and trained model generation device Download PDFInfo
- Publication number
- JP7505256B2 JP7505256B2 JP2020085943A JP2020085943A JP7505256B2 JP 7505256 B2 JP7505256 B2 JP 7505256B2 JP 2020085943 A JP2020085943 A JP 2020085943A JP 2020085943 A JP2020085943 A JP 2020085943A JP 7505256 B2 JP7505256 B2 JP 7505256B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- inspection
- restored
- label information
- unit
- 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
Links
- 238000007689 inspection Methods 0.000 title claims description 243
- 238000000034 method Methods 0.000 title claims description 23
- 230000002950 deficient Effects 0.000 claims description 67
- 230000007547 defect Effects 0.000 claims description 17
- 238000003384 imaging method Methods 0.000 claims description 10
- 238000013528 artificial neural network Methods 0.000 claims description 7
- 230000002194 synthesizing effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 27
- 238000004891 communication Methods 0.000 description 19
- 238000012545 processing Methods 0.000 description 15
- 238000012805 post-processing Methods 0.000 description 10
- 238000007781 pre-processing Methods 0.000 description 9
- 238000004364 calculation method Methods 0.000 description 6
- 230000005856 abnormality Effects 0.000 description 4
- 230000011218 segmentation Effects 0.000 description 4
- 239000004065 semiconductor Substances 0.000 description 2
- 238000013527 convolutional neural network Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000000463 material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- Chemical & Material Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
Description
本発明は、画像検査装置、画像検査方法及び学習済みモデル生成装置に関する。 The present invention relates to an image inspection device, an image inspection method, and a trained model generation device.
従来、対象物を撮影した画像に基づいて、当該対象物の検査を行う画像検査装置が知られている。 Conventionally, image inspection devices are known that inspect an object based on an image of the object.
例えば、特許文献1には、入力される判定対象画像データに基づいて異常を判定する異常判定を行う異常判定装置において、正常画像データ群から抽出される特徴量から正常画像データを再構成するための再構成用パラメータを用いて、判定対象画像データの特徴量から再構成画像データを生成し、生成した再構成画像データと該判定対象画像データとの差異情報に基づいて異常判定を行うための異常判定処理を実行する処理実行手段を有するものが記載されている。
For example,
特許文献1の異常判定装置は、判定対象画像データが複数チャネルの画像データを含む場合、再構成用パラメータを用いて各チャネルの画像データの特徴量から再構成画像データをチャネルごとに生成し、生成した各再構成画像データと該判定対象画像データの各チャネルの画像データとの差異情報に基づいて異常判定を行っている。
When the image data to be judged includes image data of multiple channels, the anomaly judgment device of
特許文献1では、学習済みモデルである学習したオートエンコーダを用い、判定対象画像から再構成画像を生成している。ここで、例えば、良品の検査対象物の画像に局所的に特殊なパターンが存在する場合、学習済みモデルの表現能力が低いと、当該学習済みモデルの生成する画像において、特殊パターンを復元することができないことがあった。この場合、良品である検査対象物の画像を誤って不良であると判定してしまうおそれがあった。
In
また、良品の検査対象物の画像において、ある位置又は部分で良品であるパターンが別の位置又は部分では不良品である場合、学習済みモデルが生成した画像において不良品のパターンが生成されてしまい、不良品の検査対象物を見逃してしまうことがあった。 In addition, if an image of a good inspection object shows a pattern that is good in one location or part but defective in another location or part, the image generated by the trained model may show a defective pattern, causing the defective inspection object to be overlooked.
そこで、本発明は、特殊パターンを復元することができるとともに、不良品のパターンの生成を抑制することのできる画像検査装置、画像検査方法及び学習済みモデル生成装置を提供することを目的の1つとする。 Therefore, one of the objectives of the present invention is to provide an image inspection device, an image inspection method, and a trained model generation device that can restore special patterns and suppress the generation of defective patterns.
本発明の一態様に係る画像検査装置は、良品の検査対象物の画像を分割した画像である良品分割画像及び良品分割画像のラベル情報を入力として復元分割画像を出力するように学習させた学習済みモデルに、検査対象物の画像を分割した画像である検査分割画像及び検査分割画像のラベル情報を入力して、復元分割画像を生成する分割画像生成部と、分割画像生成部により生成された復元分割画像に基づいて検査対象物の検査を行う検査部と、を備える。 An image inspection device according to one aspect of the present invention includes a segmented image generation unit that inputs inspection segmented images, which are images obtained by segmenting an image of a non-defective inspection object, and label information for the inspection segmented images, to a trained model that has been trained to output restored segmented images using as input non-defective segmented images, which are images obtained by segmenting an image of a non-defective inspection object, and label information for the non-defective segmented images, to generate restored segmented images, and an inspection unit that inspects the inspection object based on the restored segmented images generated by the segmented image generation unit.
この態様によれば、検査分割画像とその検査分割画像のラベル情報に応じた復元分割画像を生成することができる。このため、その検査分割画像が特定の位置に特殊パターンを含む場合には、その特殊パターンを復元することが可能となる。さらに、その検査分割画像が部分的に不良品のパターンを含む場合であっても、良品のパターンを含む復元分割画像を生成できるため、不良品のパターンが生成されることが抑制される。 According to this aspect, it is possible to generate an inspection split image and a restored split image according to the label information of the inspection split image. Therefore, if the inspection split image includes a special pattern at a specific position, it is possible to restore the special pattern. Furthermore, even if the inspection split image partially includes a defective product pattern, it is possible to generate a restored split image including a non-defective product pattern, thereby preventing the generation of a defective product pattern.
上記態様において、分割画像生成部は、検査分割画像及び検査分割画像のラベル情報からそれぞれ構成される複数の入力データセットを学習済みモデルにそれぞれ入力して、複数の復元分割画像を生成し、検査部は、複数の復元分割画像に基づいて検査対象物の検査を行ってもよい。 In the above aspect, the segmented image generation unit may input a plurality of input data sets, each of which is composed of an inspection segmented image and label information of the inspection segmented image, to the trained model to generate a plurality of restored segmented images, and the inspection unit may inspect the inspection object based on the plurality of restored segmented images.
この態様によれば、複数の復元分割画像に基づいた検査を行うことができるため、より正確に検査対象物の検査を行うことが可能になる。 According to this aspect, inspection can be performed based on multiple restored split images, making it possible to inspect the object more accurately.
上記態様において、複数の復元分割画像を合成することにより復元画像を生成する復元画像生成部をさらに備え、検査部は、検査対象物の画像と復元画像との差分に基づいて、検査対象物の検査を行ってもよい。 In the above aspect, the apparatus may further include a restored image generating unit that generates a restored image by combining a plurality of restored divided images, and the inspection unit may inspect the object to be inspected based on the difference between the image of the object to be inspected and the restored image.
この態様によれば、検査対象物の画像と復元画像との差分が明確となり、より精度よく検査対象物の検査を行うことが可能になる。 According to this aspect, the difference between the image of the object to be inspected and the restored image becomes clear, making it possible to inspect the object to be inspected more accurately.
上記態様において、学習済みモデルは、入力層を含む複数の層を備えたニューラルネットワークであり、分割画像生成部は、検査分割画像を入力層に入力し、ラベル情報を入力層の次元よりも低い次元を有する層に入力してもよい。 In the above aspect, the trained model is a neural network having multiple layers including an input layer, and the segmented image generation unit may input the inspection segmented image to the input layer and input label information to a layer having a dimension lower than that of the input layer.
この態様によれば、ラベル情報がニューラルネットワークにおける入力層の次元よりも低い次元の層に入力されると、ラベル情報が入力層に入力されるよりも学習済みモデルの出力にラベル情報が大きく寄与する。この結果、より適切に復元分割画像を生成することが可能になる。 According to this aspect, when label information is input to a layer with a dimension lower than that of the input layer in the neural network, the label information contributes more to the output of the trained model than when the label information is input to the input layer. As a result, it becomes possible to generate a more appropriately restored segmented image.
上記態様において、分割画像生成部は、第1検査分割画像が第2検査分割画像と類似している場合には、第1検査分割画像及び第2検査分割画像のラベル情報を学習済みモデルに入力してもよい。 In the above aspect, if the first inspection split image is similar to the second inspection split image, the split image generation unit may input label information of the first inspection split image and the second inspection split image into the trained model.
この態様によれば、類似した検査分割画像について、同一のラベル情報を使用することが可能になる。 According to this aspect, it becomes possible to use the same label information for similar inspection division images.
上記態様において、検査部は、検査対象物の良否判定を行ってもよい。 In the above embodiment, the inspection unit may determine whether the object being inspected is good or bad.
この態様によれば、検査対象物の検査をより詳細に行うことができる。 This aspect allows for more detailed inspection of the object being inspected.
上記態様において、検査部は、検査対象物の欠陥を検出してもよい。 In the above aspect, the inspection unit may detect defects in the object being inspected.
この態様によれば、検査対象物の検査をより詳細に行うことができる。 This aspect allows for more detailed inspection of the object being inspected.
上記態様において、検査対象物の画像を撮像する撮像部をさらに備えてもよい。 In the above embodiment, an imaging unit may be further provided for capturing an image of the object to be inspected.
この態様によれば、検査対象物の画像を簡便に取得することができる。 This aspect makes it easy to obtain images of the object being inspected.
上記態様において、検査対象物の画像を複数の検査分割画像に分割する分割部をさらに備えてもよい。 In the above aspect, the device may further include a division unit that divides the image of the object to be inspected into a plurality of inspection divided images.
この態様によれば、検査対象物の画像が予め分割されていなくとも、検査対象物の検査を行うことが可能になる。 According to this aspect, it is possible to inspect the object to be inspected even if the image of the object to be inspected has not been divided in advance.
本発明の他の態様に係る画像検査方法は、プロセッサを備えるコンピュータによる画像検査方法であって、プロセッサが、良品の検査対象物の画像を分割した画像である良品分割画像及び良品分割画像のラベル情報を入力として復元分割画像を出力するように学習させた学習済みモデルに、検査対象物の画像を分割した画像である検査分割画像及び検査分割画像のラベル情報を入力し、復元分割画像を生成することと、生成された復元分割画像に基づいて検査対象物の検査を行うことと、を含む。 An image inspection method according to another aspect of the present invention is an image inspection method by a computer having a processor, in which the processor inputs inspection split images, which are images obtained by dividing an image of an inspection object that is a good product, and label information for the inspection split images, into a trained model that has been trained to output restored split images using as input good product split images, which are images obtained by dividing an image of an inspection object that is a good product, and label information for the good product split images, to generate restored split images, and inspect the inspection object based on the generated restored split images.
この態様によれば、検査分割画像とその検査分割画像のラベル情報に応じた復元分割画像を生成することができる。このため、その検査分割画像が特定の位置に特殊パターンを含む場合には、その特殊パターンを復元することが可能となる。さらに、その検査分割画像が部分的に不良品のパターンを含む場合であっても、良品のパターンを含む復元分割画像を生成できるため、不良品のパターンが生成されることが抑制される。 According to this aspect, it is possible to generate an inspection split image and a restored split image according to the label information of the inspection split image. Therefore, if the inspection split image includes a special pattern at a specific position, it is possible to restore the special pattern. Furthermore, even if the inspection split image partially includes a defective product pattern, it is possible to generate a restored split image including a non-defective product pattern, thereby preventing the generation of a defective product pattern.
本発明の他の態様に係る学習済みモデル生成装置は、良品の検査対象物の画像を分割した良品分割画像及び良品分割画像のラベル情報の組み合わせによりそれぞれ構成される複数の学習データセットを用いて学習処理を実施し、良品分割画像及びラベル情報を入力として復元分割画像を出力する学習済みモデルを生成するモデル生成部、備える。 A trained model generating device according to another aspect of the present invention includes a model generating unit that performs a training process using a plurality of training data sets each of which is composed of a combination of good-item divided images obtained by dividing an image of a good-item inspection object and label information for the good-item divided images, and generates a trained model that receives the good-item divided images and the label information as inputs and outputs restored divided images.
この態様によれば、検査分割画像とその検査分割画像のラベル情報に応じた復元分割画像を生成することができる。このため、その検査分割画像が特定の位置に特殊パターンを含む場合には、その特殊パターンを復元することが可能となる。さらに、その検査分割画像が部分的に不良品のパターンを含む場合であっても、良品のパターンを含む復元分割画像を生成できるため、不良品のパターンが生成されることが抑制される。 According to this aspect, it is possible to generate an inspection split image and a restored split image according to the label information of the inspection split image. Therefore, if the inspection split image includes a special pattern at a specific position, it is possible to restore the special pattern. Furthermore, even if the inspection split image partially includes a defective product pattern, it is possible to generate a restored split image including a non-defective product pattern, thereby preventing the generation of a defective product pattern.
本発明によれば、特殊パターンを復元することができるとともに、不良品のパターンの生成を抑制することのできる画像検査装置、画像検査方法及び学習済みモデル生成装置を提供することができる。 The present invention provides an image inspection device, an image inspection method, and a trained model generation device that can restore special patterns and suppress the generation of defective patterns.
添付図面を参照して、本発明の好適な実施形態について説明する。 A preferred embodiment of the present invention will be described with reference to the attached drawings.
図1は、本発明の一実施形態に係る画像検査システム1の概略構成図である。画像検査システム1は、画像検査装置20及び照明25を含む。照明25は、検査対象物30に光Lを照射する。画像検査装置20は、反射光Rを撮影し、検査対象物30の画像(以下、「検査画像」とも称する。)に基づいて、検査対象物30の検査を行う。画像検査装置20は、通信ネットワーク15を介して、学習済みモデル生成装置10に接続されている。学習済みモデル生成装置10は、画像検査装置20が検査対象物30の検査を行うために用いる学習済みモデルを生成する。
Figure 1 is a schematic diagram of an
図2は、本実施形態に係る学習済みモデル生成装置10の構成を示す機能ブロック図である。学習済みモデル生成装置10は、記憶部100、学習データ生成部110、モデル生成部120及び通信部130を備える。
FIG. 2 is a functional block diagram showing the configuration of the trained
記憶部100は、各種の情報を記憶する。本実施形態では、記憶部100は、良品画像DB102、学習用データDB104及び学習済みモデルDB106を備える。良品画像DB102には、複数の良品画像が格納されている。良品画像は、良品の検査対象物の画像である。また、学習用データDB104には、良品画像を分割した分割良品画像及び良品分割画像のラベル情報の組み合わせによりそれぞれ構成される、複数の学習データセットが格納されている。さらに、学習済みモデルDB106には、後述する学習済みモデル生成装置10により生成された学習済みモデルが格納されている。
The
学習データ生成部110は、モデル生成部120が学習処理を行うために用いられる学習データセットを生成することができる。図3を参照して、学習データ生成部110が生成する学習データセットについて説明する。
The training
学習データ生成部110は、良品画像DB102から良品画像を取得して、良品画像40を分割することにより複数の良品分割画像を生成する。本実施形態では、学習データ生成部110は、良品画像40を縦及び横にそれぞれ4分割することにより、計16個の良品分割画像を生成する。なお、良品画像40は、2~15個の良品分割画像に分割されてもよいし、17個以上の良品分割画像に分割されてもよい。また、良品分割画像の形状は矩形に限定されるものではなく、いかなる形状であって良い。
The learning
また、学習データ生成部110は、複数の良品分割画像のそれぞれにラベル情報を付与して、良品分割画像及び付与されたラベル情報によりそれぞれ構成される複数の学習データセットを生成する。学習データ生成部110は、予め指定されたアルゴリズムに基づきラベル情報を良品分割画像に付与してもよいし、ユーザの操作に基づいてラベル情報を良品分割画像に付与してもよい。
The learning
例えば、互いに異なる複数の良品画像のそれぞれについて、良品分割画像が生成されているとする。この場合、生成された良品分割画像のうち、良品画像における位置が同一である良品分割画像のすべてには、同一のラベル情報が付与される。 For example, suppose that a good-quality divided image is generated for each of a number of mutually different good-quality images. In this case, the same label information is assigned to all of the generated good-quality divided images that are located at the same position in the good-quality image.
また、良品画像における位置が互いに異なるものの、互いに類似する2つの良品分割画像のそれぞれに付与されるラベル情報は、同一のラベル情報であって良いし、異なるラベル情報であってもよい。ここで、2つの良品分割画像が類似しているか否かの判定は、例えば、2つの良品分割画像の一致度が所定の閾値以上であるか否かに基づいて行われてもよい。 The label information assigned to two similar good-quality divided images that are different in position in the good-quality image may be the same label information or different label information. Here, the determination of whether the two good-quality divided images are similar may be made based on, for example, whether the degree of agreement between the two good-quality divided images is equal to or greater than a predetermined threshold value.
学習データ生成部110は、良品分割画像にラベル情報を付与すると、どの位置の良品分割画像にどのラベル情報を付与したのかを表す情報を、学習済みモデルDB106に格納してもよい。
When the learning
例えば、第1良品分割画像400には、ラベル情報(A)が付与されており、第1良品分割画像400及びラベル情報(A)が1つの学習データセットを構成している。同様にして、学習データ生成部110は、第2良品分割画像402及びラベル情報(B)の学習データセット、及び第3良品分割画像404及びラベル情報(C)の学習データセット等、16個の良品分割画像のそれぞれに基づく学習データセットを生成する。
For example, the first good-quality divided
ここで、図4~図7を参照して、学習データ生成部110が良品分割画像に付与するラベル情報の具体例を説明する。図4は、良品画像300の一例を示す図である。図4に示す良品画像300は、4つのパターン(第1パターン302、第2パターン304、第3パターン306及び第4パターン308)が含まれている。また、図4に示す良品画像300は、図3に示した良品画像40と同様に、縦及び横にそれぞれ4分割されており、合計16個の良品分割画像に分割される。
Now, with reference to Figs. 4 to 7, specific examples of label information that the learning
図5~図7のそれぞれは、16個の良品分割画像のそれぞれに付与されるラベル情報の一例を示す図である。なお、図5~図7では、図4に示した4つのパターンを省略して示している。また、図5~図7の良品分割画像に示されている数字は、ラベル情報を表しているものとする。 Each of Figures 5 to 7 shows an example of label information assigned to each of the 16 non-defective divided images. Note that in Figures 5 to 7, the four patterns shown in Figure 4 are omitted. Also, the numbers shown on the non-defective divided images in Figures 5 to 7 represent the label information.
図5に示す良品画像300では、ラスタスキャンの順番で、16個の良品分割画像のそれぞれにラベル情報が付与されている。すなわち、図5に示す良品画像300では、矢印で示した順番に、16個の良品分割画像のそれぞれに、0~15のラベル情報が付与されている。例えば、一番上の行の4つの良品分割画像のそれぞれには、左端の良品分割画像320から順番に、0~3のラベル情報が付与されている。また、一番上から2番目の行の4つの良品分割画像のそれぞれには、一番左側の良品分割画像322から順番に、4~7のラベル情報が付与されている。さらに、一番上から3番目及び4番目の行のそれぞれの4つの良品分割画像には、8~15のラベル情報が矢印の順番で付与されている。
In the good-
なお、ここでは、一番上の左端の良品分割画像320をラベル情報が0となる開始の良品分割画像であるものとして説明したが、いずれの良品分割画像が開始の良品分割画像であってもよい。また、ラベル情報の数値は、ラスタスキャンの順番に限らず、いかなる順番で良品分割画像に付与されてもよい。
Note that, here, the top left non-defective divided
図6に示す良品画像300では、16個の良品分割画像のそれぞれに、整数X及びYの組みを示す(X,Y)の直交座標系の形式でラベル情報が付与されている。ここで、Xは、列の番号を示しており、Yは、行の番号を示している。また、Xは、左端の列の番号を0として、右側に行くにつれて1ずつ大きくなる。さらに、Yは、一番上の行の番号を0として、下側に行くにつれて1ずつ大きくなる。したがって、(X,Y)は、左端から(X-1)番目の列の一番上から(Y-1)番目に位置する良品分割画像を示している。例えば、左端から2番目の列の一番上から4番目に位置する良品分割画像346には、(1,3)のラベル情報が付与されている。
In the
なお、X及びYの値は、上述した数値に限定されるものではなく、良品分割画像の位置(すなわち、行および列)を特定することができる数値であれば、いかなる数値であってもよい。また、上述の例では、ラベル情報が、(X,Y)の直交座標系の形式で表されるものとして説明したが、ラベル情報の形式はこれに限らず、例えば、(ρ,θ)の極座標系の形式であってもよい。 The values of X and Y are not limited to the above values, and may be any values that can identify the position (i.e., row and column) of the non-defective divided image. In the above example, the label information is described as being expressed in the form of an (X, Y) Cartesian coordinate system, but the form of the label information is not limited to this, and may be, for example, in the form of a (ρ, θ) polar coordinate system.
図7では、16個の良品分割画像のそれぞれには、良品分割画像が属するカテゴリに応じたラベル情報が付与されている。具体的には、16個の良品分割画像のそれぞれは、良品分割画像同士の類似度に応じてカテゴリに分類され、それぞれの良品分割画像にはカテゴリに応じたラベル情報が付与されている。より具体的には、類似する複数の良品分割画像のそれぞれは、同一のカテゴリに分類される。このとき、同一のカテゴリに属する良品分割画像には、同一のラベル情報が付与されている。 In FIG. 7, each of the 16 good product divided images is assigned label information according to the category to which the good product divided image belongs. Specifically, each of the 16 good product divided images is classified into a category according to the similarity between the good product divided images, and each good product divided image is assigned label information according to the category. More specifically, each of multiple similar good product divided images is classified into the same category. At this time, the same label information is assigned to good product divided images that belong to the same category.
例えば、図4に示すように、左端の4つの良品分割画像のうち、3つの良品分割画像320,322及び326は類似している。このため、これらの3つの良品分割画像320,322及び326のそれぞれは、同一のカテゴリに分類される。また、3つの良品分割画像320,322及び326のそれぞれには、同一のラベル情報として、0のラベル情報が付与されている。同様に、左端から2番目の列の4つの良品分割画像のうち、3つの良品分割画像340,342及び346も類似している。このため、これらの3つの良品分割画像340,342及び346のそれぞれには、同一のラベル情報として、1のラベル情報が付与されている。また、左端の列の上から3番目の良品分割画像324は、他の良品分割画像のいずれとも類似しないため、他の良品分割画像のラベル情報とは異なるラベル情報として、3のラベル情報が付与されている。さらに、パターンを含まない良品分割画像には、同一のラベル情報として、2のラベル情報が付与されている。
For example, as shown in FIG. 4, of the four good-quality divided images on the left side, three good-quality divided
ここでは、良品分割画像同士の類似度に基づいて、ラベル情報が生成されるものとして説明したが、ラベル情報の生成方法はこれに限られない。例えば、良品画像が複数の部位を含んでいる場合には、それぞれの部位ごとにラベル情報が付与されてもよい。一例として、スマートフォンが検査対象物として外観検査される場合について説明する。この場合、良品画像に含まれる複数の良品分割画像のそれぞれが、スマートフォンのディスプレイの領域(以下、「第1領域」と称する。)と、ディスプレイ以外の部分の領域(以下、この領域を「第2領域」と称する。)とに分類されるものとする。例えば、第1領域のカテゴリに分類される良品分割画像には1のラベル情報が付与され、第2領域のカテゴリに分類される良品分割画像には2のラベル情報が付与されてもよい。 Here, the label information is generated based on the similarity between the good-quality divided images, but the method of generating the label information is not limited to this. For example, if the good-quality image includes multiple parts, label information may be assigned to each part. As an example, a case where a smartphone is visually inspected as an inspection target will be described. In this case, each of the multiple good-quality divided images included in the good-quality image is classified into an area of the smartphone display (hereinafter referred to as a "first area") and an area other than the display (hereinafter referred to as a "second area"). For example, label information of 1 may be assigned to the good-quality divided images classified into the category of the first area, and label information of 2 may be assigned to the good-quality divided images classified into the category of the second area.
学習データ生成部110は、生成した学習データセットを学習用データDB104に格納する。本実施形態では、学習データ生成部110は、複数の良品画像について生成した学習データセットを学習用データDB104に格納するものとする。
The training
モデル生成部120は、複数の学習データセットを用いて学習処理を実施し、良品分割画像及びラベル情報を入力として復元分割画像を出力する学習済みモデルを生成する。ここで、復元分割画像は、良品分割画像を復元する画像である。
The
図8は、本実施形態に係るモデル生成部120が学習させるモデルを説明するための図である。本実施形態では、モデル生成部120は、モデルに良品分割画像及びラベル情報を同時に入力することにより、モデルを学習させる。画像とその付加情報をニューラルネットワークに同時に入力することによりニューラルネットワークを学習させる技術は、例えば参考文献1に記載されている。
(参考文献1)村瀬, 平川, 山下, 藤吉, 「自己状態を付与したCNNによる自動運転制御の高精度化」, PRMU2017-82, vol. 117, no. 238, pp. 85-90
8 is a diagram for explaining a model trained by the
(Reference 1) Murase, Hirakawa, Yamashita, Fujiyoshi, "Improving the accuracy of autonomous driving control using CNN with self-state information", PRMU2017-82, vol. 117, no. 238, pp. 85-90
図8には、モデル生成部120による学習処理の対象となるモデル50が示されている。本実施形態では、モデル50は、入力層を含む複数の層を備えたニューラルネットワークを含む。より具体的には、モデル50は、オートエンコーダであり、入力層500、出力層508及び入力層500と出力層508との間に配置されている複数の層から構成されている。入力層500に入力データが入力されると、入力データは中間層504において特徴ベクトルに圧縮され、出力層508から出力データが出力される。なお、学習済みモデルを構築するために用いられるモデルは、オートエンコーダに限定されるものではない。また、ニューラルネットワークを構成する層の数は、5層に限定されるものではない。
Figure 8 shows a
モデル生成部120は、モデル50に良品分割画像及びラベル情報を入力する。良品分割画像を入力することは、良品分割画像に含まれる複数の画素値のそれぞれを入力することである。これにより、モデル50の出力層508から画像が出力データとして出力される。モデル生成部120は、出力データが良品分割画像を復元するデータとなるように、モデル50に含まれる各層の間の重みづけパラメータを更新することにより、モデル50を学習させる。まとめると、モデル生成部120は、複数の学習データセットをモデル50にそれぞれ入力して、重みづけパラメータを更新することにより、学習済みモデルを生成する。モデル生成部120は、生成した学習済みモデルを学習済みモデルDB106に格納する。
The
なお、本実施形態では、モデル生成部120は、モデル50の入力層500に良品分割画像を入力し、ラベル情報を入力層の次元よりも低い次元を有する中間層504に入力する。これにより、ラベル情報が、良品分割画像の画素よりも大きく学習に寄与するようになり、より適切な学習済みモデルを生成することが可能になる。
In this embodiment, the
なお、ラベル情報は、中間層504とは異なる層に入力されてもよい。ラベル情報は、例えば入力層500に入力されてもよい。また、モデル50に入力される良品分割画像及びラベル情報の少なくともいずれかは、モデル50に入力される前に、必要に応じて重みづけがされていてもよい。これにより、より適切にモデル50が学習され得る。
The label information may be input to a layer other than the
図2に戻って、学習済みモデル生成装置10が備える通信部130について説明する。通信部130は、各種の情報を送受信することができる。例えば、通信部130は、通信ネットワーク15を介して、学習済みモデルを画像検査装置20に送信することができる。このとき、良品画像におけるどの位置の良品分割画像にどのラベル情報が付与されたのかを表す情報も、画像検査装置20に送信される。
Returning to FIG. 2, the
図9は、本実施形態に係る画像検査装置20の構成を示す機能ブロック図である。画像検査装置20は、通信部200、記憶部210、撮像部220及び処理部230を備える。
Figure 9 is a functional block diagram showing the configuration of an
通信部200は、各種の情報を送受信することができる。例えば、通信部200は、通信ネットワーク15を介して、学習済みモデル生成装置10から学習済みモデルを受信することができる。また、通信部200は、学習済みモデルなどを記憶部210に格納することができる。
The
記憶部210は、各種の情報を記憶している。本実施形態では、記憶部210は、学習済みモデルDB106を備える。学習済みモデルDB106には、学習済みモデルが格納されている。また、学習済みモデルDB106には、良品画像におけるどの位置の良品分割画像にどのラベル情報が付与されたのかを表す情報も格納されている。記憶部210に記憶されている各種の情報は、必要に応じて処理部230により参照される。
The
撮像部220は、各種の公知の撮像装置を含み、検査対象物30の画像を撮像する。本実施形態では、撮像部220は、検査対象物30からの反射光Rを受光し、検査対象物30の画像を撮像する。撮像部220は、撮像した画像を処理部230に伝達する。
The
処理部230は、各種の処理を検査対象物の画像に施し、検査対象物の検査を行うことができる。図10は、本実施形態に係る処理部230の構成を示す機能ブロック図である。処理部230は、前処理部231、分割部232、ラベル情報付与部233、分割画像生成部234、復元画像生成部235、後処理部236及び検査部237を備える。
The
前処理部231は、検査対象物の画像に各種の前処理を施す。前処理部231は、例えば、検査対象物の画像に位置ずれを補正する処理を施すことができる。前処理部231は、前処理を施した画像を分割部232に伝達する。
The
分割部232は、検査対象物の画像を分割して、複数の検査分割画像を生成することができる。本実施形態では、分割部232は、学習済みモデル生成装置10における良品画像の分割と同様の方法により、検査対象物の画像を分割する。具体的には、分割部232は、検査対象物の画像を、縦及び横にそれぞれ4分割して、16個の検査分割画像を生成する。分割部232は、生成した検査分割画像をラベル情報付与部233に伝達する。
The
ラベル情報付与部233は、検査分割画像にラベル情報を付与する。ラベル情報付与部233は、学習済みモデルDB212を参照して、学習済みモデルの生成の際に、良品画像におけるどの位置の良品分割画像にどのラベル情報が付与されたのかを表す情報を参照し、検査分割画像に、対応する位置の良品分割画像のラベル情報を付与する。検査分割画像及び付与されたラベル情報の組みは、入力データセットとなる。ラベル情報付与部233は、複数の検査分割画像のそれぞれにラベル情報を付与して複数の入力データセットを生成し、複数の入力データセットを分割画像生成部234に伝達する。
The label
分割画像生成部234は、学習済みモデルに入力データセット(検査分割画像及びラベル情報の組み)を入力して、復元分割画像を生成することができる。学習済みモデルは、学習済みモデル生成装置10により生成された、良品分割画像及びラベル情報を入力として復元分割画像を出力するように学習させた学習済みモデルである。
The segmented
本実施形態では、分割画像生成部234は、検査分割画像及びラベル情報からそれぞれ構成される複数の入力データセットを学習済みモデルにそれぞれ入力して、複数の復元分割画像を生成する。生成される複数の復元分割画像のそれぞれは、複数の入力データセットのそれぞれに対応している。復元分割画像は、良品分割画像を復元した画像である。このため、検査分割画像に欠陥などが含まれている場合には、欠陥が除去された画像が復元分割画像として学習済みモデルから出力される。本実施形態では、分割画像生成部234は、検査画像に基づき生成された16個の検査分割画像のそれぞれについて復元分割画像を生成し、生成した16個の復元分割画像を復元画像生成部235に伝達する。
In this embodiment, the split
復元画像生成部235は、複数の復元分割画像を合成することにより復元画像を生成する。本実施形態では、復元画像生成部235は、分割画像生成部234により生成された16個の復元分割画像を合成することにより、復元画像を生成する。具体的には、復元画像生成部235は、生成した16個の復元分割画像のそれぞれを対応する検査分割画像の位置に配置して合成することにより、復元画像を生成する。復元画像は、良品画像を復元した画像である。このため、検査画像に欠陥が含まれている場合には欠陥が除去された画像が復元画像として生成される。
The restored
図11を参照して、処理部230が検査画像42に基づいて復元画像44を生成するまでの処理の一例を説明する。
With reference to FIG. 11, an example of the process in which the
分割部232は、検査画像42を縦及び横にそれぞれ4分割し、16個の検査分割画像を生成する。ラベル情報付与部233は、生成された16個の検査分割画像のそれぞれにラベル情報を付与する。例えば、第1検査分割画像420にはラベル情報(A)が付与され、第2検査分割画像422にはラベル情報(B)が付与され、第3検査分割画像424にはラベル情報(C)が付与される。検査分割画像とラベル情報の組みが入力データセットとなる。
The
なお、上述したように類似している検査分割画像には同一のラベル情報が付与されていてもよい。このため、例えば、第1検査分割画像420及び第2検査分割画像422が互いに類似している場合には、第1検査分割画像420に第2検査分割画像422のラベル情報(B)が付与されてもよい。あるいは、第2検査分割画像422に第1検査分割画像のラベル情報(A)が付与されてもよい。
As described above, similar inspection split images may be assigned the same label information. For this reason, for example, if the first
分割画像生成部234は、生成された16個の入力データセットを学習済みモデルにそれぞれ入力し、16個の復元分割画像を生成する。例えば、第1復元分割画像440は第1検査分割画像420に基づき生成され、第2復元分割画像442は第2検査分割画像422に基づき生成され、第3復元分割画像444は第3検査分割画像424に基づき生成されている。復元画像生成部235は、生成された16個の復元分割画像を合成することにより復元画像44を生成する。
The split
図10に戻って、後処理部236について説明する。後処理部236は、復元画像に後処理を施すことができる。例えば、後処理部236は、復元画像と検査画像との差分を算出して、差分画像を生成することができる。具体的には、後処理部236は、復元画像を構成する複数の画素値のそれぞれから、検査画像のそれぞれ対応する画素値の差分を算出することにより差分画像を生成することができる。
Returning to FIG. 10, the
図12~図14を参照して、後処理部236が生成する差分画像について説明する。図12は、本実施形態に係る検査対象物30の画像60の一例を示す図である。また、図13は、画像60に基づき生成された復元画像62の一例を示す図である。さらに、図14は、検査対象物の画像60と復元画像62との差分である差分画像64を示す図である。図12に示すように、画像60には、線状の欠陥画像600が含まれている。欠陥画像は、検査対象物の欠陥の画像である。一方、図13に示すように、復元画像62では、欠陥画像が除去されている。このため、検査対象物の画像60と復元画像62との差分を示す差分画像64には、主に欠陥画像640が含まれている。本実施形態では、この欠陥画像640を含む差分画像64に基づき、検査対象物の検査が行われる。
The difference image generated by the
図10に戻って、検査部237について説明する。検査部237は、分割画像生成部234により生成された復元分割画像に基づいて、検査対象物30の検査を行うことができる。本実施形態では、検査部237は、複数の復元分割画像に基づいて検査対象物30の検査を行う。
Returning to FIG. 10, the
本実施形態では、検査部237は、検査画像と復元画像との差分に基づいて、検査対象物を検査する。具体的には、検査部237は、後処理部236により生成された差分画像に基づいて検査対象物の検査を行う。
In this embodiment, the
また、検査部237は、検査対象物30の欠陥を検出することができる。例えば、検査部237は、図14に示した差分画像64に含まれる欠陥画像640を検出することにより、検査対象物30の欠陥を検出することができる。あるいは、検査部237は、検査対象物30の良否判定を行ってもよい。具体的には、検査部237は、差分画像64に含まれる欠陥画像の大きさに基づいて、検査対象物30の良否判定を行ってもよい。より具体的には、検査部237は、差分画像64に含まれる欠陥画像の大きさが所定の閾値を超える場合には、検査対象物が不良品であることを判定することができる。
The
図15は、本実施形態に係る学習済みモデル生成装置10及び画像検査装置20の物理的構成を示す図である。学習済みモデル生成装置10及び画像検査装置20は、演算部に相当するCPU(Central Processing Unit)10aと、記憶部に相当するRAM(Random Access Memory)10bと、記憶部に相当するROM(Read only Memory)10cと、通信部10dと、入力部10eと、表示部10fと、を有する。これらの各構成は、バスを介して相互にデータ送受信可能に接続される。
Figure 15 is a diagram showing the physical configuration of the trained
なお、本例では、学習済みモデル生成装置10及び画像検査装置20のそれぞれが、一台のコンピュータで構成されるものとして説明するが、学習済みモデル生成装置10及び画像検査装置20のそれぞれは、複数のコンピュータが組み合わされて実現されてもよい。また、画像検査装置20及び学習済みモデル生成装置10が一台のコンピュータで構成されてもよい。また、図15で示す構成は一例であり、学習済みモデル生成装置10及び画像検査装置20は、これら以外の構成を有してもよいし、これらの構成のうち一部を有さなくてもよい。
In this example, the trained
CPU10aは、RAM10b又はROM10cに記憶されたプログラムの実行に関する制御やデータの演算、加工を行う演算部である。学習済みモデル生成装置10が備えるCPU10aは、学習データを用いて学習処理を実施して、学習済みモデルを生成するプログラム(学習プログラム)を実行する演算部である。また、画像検査装置20が備えるCPU10aは、検査対象物の画像を用いて、検査対象物の検査を行うプログラム(画像検査プログラム)を実行する演算部である。CPU10aは、入力部10eや通信部10dから種々のデータを受け取り、データの演算結果を表示部10fに表示したり、RAM10bに格納したりする。
The
RAM10bは、記憶部のうちデータの書き換えが可能なものであり、例えば半導体記憶素子で構成されてよい。RAM10bは、CPU10aが実行するプログラム、学習データ、学習済みモデルといったデータを記憶してよい。なお、これらは例示であって、RAM10bには、これら以外のデータが記憶されていてもよいし、これらの一部が記憶されていなくてもよい。
ROM10cは、記憶部のうちデータの読み出しが可能なものであり、例えば半導体記憶素子で構成されてよい。ROM10cは、例えば画像検査プログラム、学習プログラム及び書き換えが行われないデータを記憶してよい。
通信部10dは、画像検査装置20を他の機器に接続するインターフェースである。通信部10dは、インターネット等の通信ネットワークに接続されてよい。
The
入力部10eは、ユーザからデータの入力を受け付けるものであり、例えば、キーボード及びタッチパネルを含んでよい。入力部10eは、例えば良品分割画像又は検査分割画像のラベル情報等の入力を受け付けてもよい。
The
表示部10fは、CPU10aによる演算結果を視覚的に表示するものであり、例えば、LCD(Liquid Crystal Display)により構成されてよい。表示部10fは、例えば、検査対象物の検査結果等を表示してよい。
The
画像検査プログラムは、RAM10bやROM10c等のコンピュータによって読み取り可能な記憶媒体に記憶されて提供されてもよいし、通信部10dにより接続される通信ネットワークを介して提供されてもよい。学習済みモデル生成装置10では、CPU10aが学習プログラムを実行することにより、図2等を用いて説明した様々な動作が実現される。また、画像検査装置20では、CPU10aが画像検査プログラムを実行することにより、図9及び図10等を用いて説明した様々な動作が実現される。なお、これらの物理的な構成は例示であって、必ずしも独立した構成でなくてもよい。例えば、学習済みモデル生成装置10及び画像検査装置20のそれぞれは、CPU10aとRAM10bやROM10cが一体化したLSI(Large-Scale Integration)を備えていてもよい。
The image inspection program may be provided by being stored in a computer-readable storage medium such as
図16は、学習済みモデル生成装置10が学習済みモデルを生成する流れの一例を示すフローチャートである。
Figure 16 is a flowchart showing an example of the flow by which the trained
まず、学習データ生成部110が、良品画像DB102に格納されている良品画像を、複数の良品分割画像に分割する(ステップS101)。このとき、良品画像DB102に複数の良品画像が格納されている場合には、学習データ生成部110は、複数の良品画像のそれぞれを分割して、それぞれの良品画像に対応する良品分割画像を生成してもよい。
First, the learning
次いで、学習データ生成部110は、ステップS103において生成した良品分割画像のそれぞれにラベル情報を付与し、複数の学習データセットを生成する(ステップS103)。学習データ生成部110は、生成した学習データセットを学習用データDB104に格納する。
Next, the training
次いで、モデル生成部120は、学習用データDB104に格納されている複数の学習データセットを用いて学習処理を実行し、良品分割画像及びラベル情報を入力として復元分割画像を出力する学習済みモデルを生成する(ステップS105)。モデル生成部120は、生成した学習済みモデルを学習済みモデルDB106に格納する。
Next, the
次いで、通信部130は、ステップS105において生成された学習済みモデルを画像検査装置20に送信する(ステップS107)。これにより、画像検査装置20は、学習済みモデル生成装置10により生成された学習済みモデルを使用できるようになる。
Next, the
図17は、画像検査装置20が、検査対象物の画像に基づき、学習済みモデルを用いて検査対象物の検査を行う流れの一例を示すフローチャートである。
Figure 17 is a flowchart showing an example of the process in which the
まず、画像検査装置20が備える撮像部220が、検査対象物の画像を撮像する(ステップS201)。撮像部220は、撮像した画像を処理部230に伝達する。
First, the
次いで、処理部230が備える前処理部231が、ステップS201において撮像された画像に前処理を施す(ステップS203)。次いで、分割部232が、ステップS203において前処理を施された検査画像を分割して、複数の検査分割画像を生成する(ステップS205)。次いで、ラベル情報付与部233は、ステップS205において生成された複数の検査分割画像のそれぞれにラベル情報を付与し、複数の入力データセットを生成する(ステップS207)。
Next, the
次いで、分割画像生成部234は、ステップS207において生成された複数の入力データセットを学習済みモデルにそれぞれ入力して、複数の復元分割画像を生成する(ステップS209)。次いで、復元画像生成部235は、ステップS209において生成された複数の復元分割画像を合成することにより、復元画像を生成する(ステップS211)。次いで、後処理部236は、ステップS201において撮像された検査画像と、ステップS211において生成された復元画像との差分を算出して差分画像を生成する(ステップS213)。
Next, the segmented
次いで、検査部237は、ステップS213において生成された差分画像に基づいて検査対象物の検査を行う(ステップS215)。
Next, the
本実施形態によれば、検査分割画像のラベル情報に応じて、復元分割画像が生成される。このため、部分的に特殊パターンが含まれている場合であっても、特殊パターンを復元することができると。また、ある位置又は部分で良品であるパターンが別の位置又は部分では不良品であっても、良品のパターンを適切に復元することができる。この結果、不良品のパターンの生成を抑制することができる。 According to this embodiment, a restored split image is generated according to the label information of the inspection split image. Therefore, even if a special pattern is partially included, the special pattern can be restored. Furthermore, even if a pattern that is good in one position or part is defective in another position or part, the good pattern can be properly restored. As a result, the generation of defective patterns can be suppressed.
図18を参照して、本実施形態の効果についてより具体的に説明する。図18は、検査画像70の一例を示す図である。検査画像70は、6個の検査分割画像700、702、704、706、708及び710に分割される。この6個の検査分割画像の中で、検査分割画像702、706及び708は互いに類似しているものとする。また、検査分割画像704は、他の検査分割画像と異なる特殊パターンを含んでいる。
The effect of this embodiment will be described in more detail with reference to FIG. 18. FIG. 18 is a diagram showing an example of an
仮にラベル情報を用いずに、これら6個の検査分割画像を学習データとして学習済みモデルを生成したとする。この学習済みモデルに検査分割画像704を入力すると、学習済みモデルの表現能力が低い場合には、検査分割画像702、704又は708が出力され、特殊パターンが復元されない可能性がある。
Let us assume that a trained model is generated using these six inspection segmentation images as training data without using label information. If
一方、本実施形態に係る画像検査装置20は、検査分割画像に加えてラベル情報を用いる。このため、検査分割画像とその検査分割画像の位置に応じた復元分割画像を生成することができる。その結果、その検査分割画像が特定の位置に特殊パターンを含む場合であっても、特殊パターンを復元することが可能となる。例えば、検査分割画像704のように特殊なパターンを示す検査分割画像であっても、適切に復元することが可能になる。
On the other hand, the
また、良品の検査対象物の画像において、ある位置又は部分で良品であるパターンが別の位置又は部分では不良品である場合がある。このような場合にも、本実施形態に係る画像検査装置20によれば、不良品のパターンを含む検査分割画像を良品の復元分割画像を生成できるため、不良品のパターンが生成されることが抑制される。この結果、不良品の見逃しを抑制することができる。
In addition, in an image of a good inspection object, a pattern that is good in one position or part may be defective in another position or part. Even in such a case, the
以上説明した実施形態は、本発明の理解を容易にするためのものであり、本発明を限定して解釈するためのものではない。実施形態が備える各要素及びその配置、材料、条件、形状、サイズ等は、例示したものに限定されるわけではなく適宜変更することができる。また、異なる実施形態で示した構成同士を部分的に置換し又は組み合わせることが可能である。 The above-described embodiments are intended to facilitate understanding of the present invention, and are not intended to limit the present invention. The elements of the embodiments and their arrangements, materials, conditions, shapes, sizes, etc. are not limited to those exemplified, and may be modified as appropriate. In addition, configurations shown in different embodiments may be partially substituted or combined.
[附記]
良品の検査対象物の画像を分割した画像である良品分割画像及び良品分割画像のラベル情報を入力として復元分割画像を出力するように学習させた学習済みモデルに、検査対象物(30)の画像を分割した画像である検査分割画像及び検査分割画像のラベル情報を入力して、復元分割画像を生成する分割画像生成部(234)と、
分割画像生成部(234)により生成された復元分割画像に基づいて検査対象物の検査を行う検査部(237)と、
を備える画像検査装置(20)。
[Additional Note]
a divided image generating unit (234) that generates a restored divided image by inputting an inspection divided image, which is an image obtained by dividing an image of an inspection object (30), and label information for the inspection divided image, into a trained model that has been trained to output a restored divided image using as input a non-defective divided image, which is an image obtained by dividing an image of an inspection object of a non-defective product, and label information for the non-defective divided image;
an inspection unit (237) that inspects an object to be inspected based on the restored divided image generated by the divided image generation unit (234);
An image inspection device (20) comprising:
1…画像検査システム、10…学習済みモデル生成装置、110…学習データ生成部、120…モデル生成部、20…画像検査装置、210…記憶部、220…撮像部、230…処理部、231…前処理部、232…分割部、233…ラベル情報付与部、234…分割画像生成部、235…復元画像生成部、236…後処理部、237…検査部、25…照明、30…検査対象物、40…良品画像、42…検査画像、62…復元画像、64…差分画像、400…第1良品分割画像、402…第2良品分割画像、404…第3良品分割画像、420…第1検査分割画像、422…第2検査分割画像、424…第3検査分割画像、440…第1復元分割画像、442…第2復元分割画像、444…第3復元分割画像、500…入力層、504…中間層、508…出力層、600…欠陥画像 1...Image inspection system, 10...Trained model generation device, 110...Training data generation unit, 120...Model generation unit, 20...Image inspection device, 210...Storage unit, 220...Imaging unit, 230...Processing unit, 231...Preprocessing unit, 232...Segmentation unit, 233...Label information assignment unit, 234...Segmented image generation unit, 235...Restored image generation unit, 236...Post-processing unit, 237...Inspection unit, 25...Illumination, 30...Inspection object, 40...Good product image image, 42... inspection image, 62... restored image, 64... difference image, 400... first good product divided image, 402... second good product divided image, 404... third good product divided image, 420... first inspection divided image, 422... second inspection divided image, 424... third inspection divided image, 440... first restored divided image, 442... second restored divided image, 444... third restored divided image, 500... input layer, 504... intermediate layer, 508... output layer, 600... defect image
Claims (10)
前記分割画像生成部により生成された復元分割画像に基づいて前記検査対象物の検査を行う検査部と、
を備え、
前記検査分割画像に前記検査分割画像のラベル情報を付与するラベル情報付与部をさらに備える、画像検査装置。 a segmented image generating unit that inputs an inspection segmented image, which is an image obtained by segmenting an image of an inspection object, and label information about the inspection segmented image to a trained model that has been trained to output a restored segmented image using a non-defective segmented image, which is an image obtained by segmenting an image of an inspection object that is a non-defective item, and label information about the non-defective segmented image, and generates the restored segmented image;
an inspection unit that inspects the inspection object based on the restored divided image generated by the divided image generation unit;
Equipped with
The image inspection device further includes a label information adding unit that adds label information of the inspection divided image to the inspection divided image.
前記検査部は、前記複数の復元分割画像に基づいて前記検査対象物の検査を行う、
請求項1に記載の画像検査装置。 The segmented image generation unit inputs a plurality of input data sets each composed of the inspection segmented image and label information of the inspection segmented image to the trained model, and generates a plurality of the restored segmented images;
The inspection unit inspects the inspection object based on the plurality of restored divided images.
The image inspection device according to claim 1 .
前記検査部は、前記検査対象物の画像と前記復元画像との差分に基づいて、前記検査対象物の検査を行う、
請求項2に記載の画像検査装置。 a restored image generating unit that generates a restored image by synthesizing the plurality of restored divided images,
the inspection unit inspects the object to be inspected based on a difference between the image of the object to be inspected and the restored image.
3. The image inspection device according to claim 2.
前記分割画像生成部は、前記検査分割画像を前記入力層に入力し、前記ラベル情報を前記入力層の次元よりも低い次元を有する層に入力する、
請求項1から3のいずれか1項に記載の画像検査装置。 The trained model is a neural network having a plurality of layers including an input layer,
the segmented image generation unit inputs the inspection segmented image to the input layer, and inputs the label information to a layer having a dimension lower than a dimension of the input layer;
4. An image inspection device according to claim 1.
請求項1から4のいずれか1項に記載の画像検査装置。 When the first inspection split image is similar to the second inspection split image, the split image generation unit inputs label information of the first inspection split image and the second inspection split image into the trained model.
5. An image inspection device according to claim 1.
請求項1から5のいずれか1項に記載の画像検査装置。 The inspection unit judges whether the object to be inspected is good or bad.
6. An image inspection device according to claim 1.
請求項1から6のいずれか1項に記載の画像検査装置。 The inspection unit detects defects in the inspection object.
7. An image inspection device according to claim 1.
請求項1から7のいずれか1項に記載の画像検査装置。 Further comprising an imaging unit for capturing an image of the inspection object.
8. An image inspection device according to claim 1.
請求項1から8のいずれか1項に記載の画像検査装置。 A division unit that divides the image of the inspection object into a plurality of the inspection divided images.
9. An image inspection device according to claim 1.
良品の検査対象物の画像を分割した画像である良品分割画像及び前記良品分割画像のラベル情報を入力として復元分割画像を出力するように学習させた学習済みモデルに、検査対象物の画像を分割した画像である検査分割画像及び前記検査分割画像のラベル情報を入力し、前記復元分割画像を生成することと、
前記生成された復元分割画像に基づいて前記検査対象物の検査を行うことと、
を含み、
前記検査分割画像に前記検査分割画像のラベル情報を付与することをさらに含む、画像検査方法。 1. A computer-implemented image inspection method comprising:
A trained model is trained to output a restored divided image using a non-defective divided image, which is an image obtained by dividing an image of an inspection object, and label information about the non-defective divided image as input, and to generate the restored divided image.
inspecting the inspection object based on the generated restored divided image;
Including,
The image inspection method further includes adding label information of the inspection divided image to the inspection divided image.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020085943A JP7505256B2 (en) | 2020-05-15 | 2020-05-15 | Image inspection device, image inspection method, and trained model generation device |
PCT/JP2021/008956 WO2021229901A1 (en) | 2020-05-15 | 2021-03-08 | Image inspection device, image inspection method, and prelearned model generation device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020085943A JP7505256B2 (en) | 2020-05-15 | 2020-05-15 | Image inspection device, image inspection method, and trained model generation device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2021179902A JP2021179902A (en) | 2021-11-18 |
JP7505256B2 true JP7505256B2 (en) | 2024-06-25 |
Family
ID=78511634
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020085943A Active JP7505256B2 (en) | 2020-05-15 | 2020-05-15 | Image inspection device, image inspection method, and trained model generation device |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP7505256B2 (en) |
WO (1) | WO2021229901A1 (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002023480A1 (en) | 2000-09-18 | 2002-03-21 | Olympus Optical Co., Ltd. | System and method for managing image data file |
JP2012026982A (en) | 2010-07-27 | 2012-02-09 | Panasonic Electric Works Sunx Co Ltd | Inspection device |
JP2018205163A (en) | 2017-06-06 | 2018-12-27 | 株式会社デンソー | Visual inspection device, conversion data generator, and program |
JP2019133303A (en) | 2018-01-30 | 2019-08-08 | 株式会社Preferred Networks | Information processor and information processing program and information processing method |
WO2019186915A1 (en) | 2018-03-29 | 2019-10-03 | 三菱電機株式会社 | Abnormality inspection device and abnormality inspection method |
JP2020052520A (en) | 2018-09-25 | 2020-04-02 | エヌ・ティ・ティ・コムウェア株式会社 | Determination device, determination method, and program |
WO2020065908A1 (en) | 2018-09-28 | 2020-04-02 | 日本電気株式会社 | Pattern recognition device, pattern recognition method, and pattern recognition program |
JP2020064364A (en) | 2018-10-15 | 2020-04-23 | オムロン株式会社 | Learning device, image generating device, learning method, and learning program |
-
2020
- 2020-05-15 JP JP2020085943A patent/JP7505256B2/en active Active
-
2021
- 2021-03-08 WO PCT/JP2021/008956 patent/WO2021229901A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002023480A1 (en) | 2000-09-18 | 2002-03-21 | Olympus Optical Co., Ltd. | System and method for managing image data file |
JP2012026982A (en) | 2010-07-27 | 2012-02-09 | Panasonic Electric Works Sunx Co Ltd | Inspection device |
JP2018205163A (en) | 2017-06-06 | 2018-12-27 | 株式会社デンソー | Visual inspection device, conversion data generator, and program |
JP2019133303A (en) | 2018-01-30 | 2019-08-08 | 株式会社Preferred Networks | Information processor and information processing program and information processing method |
WO2019186915A1 (en) | 2018-03-29 | 2019-10-03 | 三菱電機株式会社 | Abnormality inspection device and abnormality inspection method |
JP2020052520A (en) | 2018-09-25 | 2020-04-02 | エヌ・ティ・ティ・コムウェア株式会社 | Determination device, determination method, and program |
WO2020065908A1 (en) | 2018-09-28 | 2020-04-02 | 日本電気株式会社 | Pattern recognition device, pattern recognition method, and pattern recognition program |
JP2020064364A (en) | 2018-10-15 | 2020-04-23 | オムロン株式会社 | Learning device, image generating device, learning method, and learning program |
Also Published As
Publication number | Publication date |
---|---|
JP2021179902A (en) | 2021-11-18 |
WO2021229901A1 (en) | 2021-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6924413B2 (en) | Data generator, data generation method and data generation program | |
WO2019117065A1 (en) | Data generation device, data generation method and data generation program | |
KR100954703B1 (en) | Method and system for detecting defects | |
EP4266246A1 (en) | Automated defect classification and detection | |
CN106296689B (en) | Flaw detection method, system and device | |
US20220076404A1 (en) | Defect management apparatus, method and non-transitory computer readable medium | |
TW201606854A (en) | Automatic calibration sample selection for die-to-database photomask inspection | |
JP2023123387A (en) | Defect detection method and system | |
KR102569285B1 (en) | Method and system for training machine learning model for detecting abnormal region in pathological slide image | |
JP6596260B2 (en) | Teaching support method and image classification method | |
Arima et al. | Visualization and location estimation of defective parts of industrial products using convolutional autoencoder | |
KR102437115B1 (en) | Apparatus and method of defect inspection using structure prediction based on deep learning | |
KR102178238B1 (en) | Apparatus and method of defect classification using rotating kernel based on machine-learning | |
JP7505256B2 (en) | Image inspection device, image inspection method, and trained model generation device | |
Kumar et al. | Fault detection on the 3-D printed objective surface by using the SVM algorithm | |
JP7437610B2 (en) | Image inspection device, image inspection method, and trained model generation device | |
WO2020195958A1 (en) | Learning method, determination method, program, learning system, learning data set generation method, and learning data set | |
JP7070308B2 (en) | Estimator generator, inspection device, estimator generator method, and estimator generator | |
JP2021174194A (en) | Learning data processing device, learning device, learning data processing method, and program | |
JP2022123217A (en) | Image inspection device, image inspection method, and learned model creation device | |
Oz et al. | A nested autoencoder approach to automated defect inspection on textured surfaces | |
WO2022172470A1 (en) | Image inspection device, image inspection method, and trained model generation device | |
JP2023104488A (en) | Machine learning device, machine learning method, machine learning program, inspection device, inspection method, and inspection program | |
WO2022172475A1 (en) | Image inspection device, image inspection method, and trained model generation device | |
JP7471207B2 (en) | Inspection device, inspection method, and inspection program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230308 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20231114 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20240111 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20240305 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20240425 |
|
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: 20240514 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20240527 |