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 PDF

Info

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
Application number
JP2020085943A
Other languages
Japanese (ja)
Other versions
JP2021179902A (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.)
Omron Corp
Original Assignee
Omron Corp
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 Omron Corp filed Critical Omron Corp
Priority to JP2020085943A priority Critical patent/JP7505256B2/en
Priority to PCT/JP2021/008956 priority patent/WO2021229901A1/en
Publication of JP2021179902A publication Critical patent/JP2021179902A/en
Application granted granted Critical
Publication of JP7505256B2 publication Critical patent/JP7505256B2/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image 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, Patent Document 1 describes an abnormality determination device that performs abnormality determination based on inputted image data to be determined, which has a process execution means that generates reconstructed image data from the features of the image data to be determined using reconstruction parameters for reconstructing normal image data from features extracted from a group of normal image data, and executes an abnormality determination process to determine an abnormality based on difference information between the generated reconstructed image data and the image data to be determined.

特許文献1の異常判定装置は、判定対象画像データが複数チャネルの画像データを含む場合、再構成用パラメータを用いて各チャネルの画像データの特徴量から再構成画像データをチャネルごとに生成し、生成した各再構成画像データと該判定対象画像データの各チャネルの画像データとの差異情報に基づいて異常判定を行っている。 When the image data to be judged includes image data of multiple channels, the anomaly judgment device of Patent Document 1 uses reconstruction parameters to generate reconstructed image data for each channel from the features of the image data of each channel, and judges anomalies based on difference information between each reconstructed image data generated and the image data of each channel of the image data to be judged.

特開2018-5773号公報JP 2018-5773 A

特許文献1では、学習済みモデルである学習したオートエンコーダを用い、判定対象画像から再構成画像を生成している。ここで、例えば、良品の検査対象物の画像に局所的に特殊なパターンが存在する場合、学習済みモデルの表現能力が低いと、当該学習済みモデルの生成する画像において、特殊パターンを復元することができないことがあった。この場合、良品である検査対象物の画像を誤って不良であると判定してしまうおそれがあった。 In Patent Document 1, a trained autoencoder, which is a trained model, is used to generate a reconstructed image from an image to be judged. Here, for example, when a special pattern exists locally in an image of a good inspection object, if the trained model has low expressive power, it may not be possible to reconstruct the special pattern in the image generated by the trained model. In this case, there is a risk that the image of the good inspection object may be erroneously judged to be defective.

また、良品の検査対象物の画像において、ある位置又は部分で良品であるパターンが別の位置又は部分では不良品である場合、学習済みモデルが生成した画像において不良品のパターンが生成されてしまい、不良品の検査対象物を見逃してしまうことがあった。 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.

本発明の一実施形態に係る画像検査システムの概略構成図である。1 is a schematic configuration diagram of an image inspection system according to an embodiment of the present invention. 同実施形態に係る学習済みモデル生成装置の構成を示す機能ブロック図である。FIG. 2 is a functional block diagram showing the configuration of a trained model generation device according to the embodiment. 学習データ生成部が生成する学習データセットについて説明する図である。FIG. 2 is a diagram illustrating a learning data set generated by a learning data generating unit. 良品画像の一例を示す図である。FIG. 13 is a diagram showing an example of a non-defective product image. 図4の良品画像に含まれる複数の良品分割画像のそれぞれに付与されるラベル情報の一例を示す図である。5 is a diagram showing an example of label information assigned to each of a plurality of non-defective divided images included in the non-defective image of FIG. 4 . FIG. 図4の良品画像に含まれる複数の良品分割画像のそれぞれに付与されるラベル情報の一例を示す図である。5 is a diagram showing an example of label information assigned to each of a plurality of non-defective divided images included in the non-defective image of FIG. 4 . FIG. 図4の良品画像に含まれる複数の良品分割画像のそれぞれに付与されるラベル情報の一例を示す図である。5 is a diagram showing an example of label information assigned to each of a plurality of non-defective divided images included in the non-defective image of FIG. 4 . FIG. 本発明の一実施形態に係るモデル生成部が学習させるモデルを説明するための図である。FIG. 2 is a diagram for explaining a model trained by a model generation unit according to an embodiment of the present invention. 同実施形態に係る画像検査装置の構成を示す機能ブロック図である。FIG. 2 is a functional block diagram showing the configuration of the image inspection device according to the embodiment. 同実施形態に係る処理部の構成を示す機能ブロック図である。2 is a functional block diagram showing a configuration of a processing unit according to the embodiment. FIG. 処理部が検査画像に基づいて復元画像を生成するまでの処理を説明するための図である。11 is a diagram for explaining a process up to when a processing unit generates a restored image based on an inspection image. FIG. 検査画像の一例を示す図である。FIG. 13 is a diagram showing an example of an inspection image. 検査画像に基づき生成された復元画像の一例を示す図である。FIG. 13 is a diagram showing an example of a restored image generated based on an inspection image. 検査画像と復元画像の差である差分画像を示す図である。FIG. 13 is a diagram showing a difference image which is the difference between an inspection image and a restored image. 本実施形態に係る画像検査装置及び学習済みモデル生成装置の物理的構成を示す図である。FIG. 1 is a diagram showing the physical configuration of an image inspection device and a trained model generation device according to an embodiment of the present invention. 学習済みモデル生成装置が学習済みモデルを生成する流れの一例を示すフローチャートである。1 is a flowchart illustrating an example of a flow in which a trained model generation device generates a trained model. 画像検査装置が、検査対象物の画像に基づき、学習済みモデルを用いて検査対象物の検査を実行する流れの一例を示すフローチャートである。13 is a flowchart showing an example of a flow in which an image inspection device performs inspection of an object to be inspected using a trained model based on an image of the object to be inspected. 検査画像の一例を示す図である。FIG. 13 is a diagram showing an example of an inspection image.

添付図面を参照して、本発明の好適な実施形態について説明する。 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 image inspection system 1 according to one embodiment of the present invention. The image inspection system 1 includes an image inspection device 20 and a light 25. The light 25 irradiates light L onto an object to be inspected 30. The image inspection device 20 captures reflected light R and inspects the object to be inspected 30 based on an image of the object to be inspected 30 (hereinafter also referred to as an "inspection image"). The image inspection device 20 is connected to a trained model generation device 10 via a communication network 15. The trained model generation device 10 generates a trained model that is used by the image inspection device 20 to inspect the object to be inspected 30.

図2は、本実施形態に係る学習済みモデル生成装置10の構成を示す機能ブロック図である。学習済みモデル生成装置10は、記憶部100、学習データ生成部110、モデル生成部120及び通信部130を備える。 FIG. 2 is a functional block diagram showing the configuration of the trained model generation device 10 according to this embodiment. The trained model generation device 10 includes a storage unit 100, a training data generation unit 110, a model generation unit 120, and a communication unit 130.

記憶部100は、各種の情報を記憶する。本実施形態では、記憶部100は、良品画像DB102、学習用データDB104及び学習済みモデルDB106を備える。良品画像DB102には、複数の良品画像が格納されている。良品画像は、良品の検査対象物の画像である。また、学習用データDB104には、良品画像を分割した分割良品画像及び良品分割画像のラベル情報の組み合わせによりそれぞれ構成される、複数の学習データセットが格納されている。さらに、学習済みモデルDB106には、後述する学習済みモデル生成装置10により生成された学習済みモデルが格納されている。 The storage unit 100 stores various types of information. In this embodiment, the storage unit 100 includes a good-quality image DB 102, a training data DB 104, and a trained model DB 106. A plurality of good-quality images are stored in the good-quality image DB 102. The good-quality images are images of good-quality inspection objects. In addition, the training data DB 104 stores a plurality of training data sets, each of which is composed of a combination of divided good-quality images obtained by dividing a good-quality image and label information of the divided good-quality images. In addition, the trained model DB 106 stores trained models generated by the trained model generation device 10 described below.

学習データ生成部110は、モデル生成部120が学習処理を行うために用いられる学習データセットを生成することができる。図3を参照して、学習データ生成部110が生成する学習データセットについて説明する。 The training data generation unit 110 can generate a training data set that is used by the model generation unit 120 to perform the training process. The training data set generated by the training data generation unit 110 will be described with reference to FIG. 3.

学習データ生成部110は、良品画像DB102から良品画像を取得して、良品画像40を分割することにより複数の良品分割画像を生成する。本実施形態では、学習データ生成部110は、良品画像40を縦及び横にそれぞれ4分割することにより、計16個の良品分割画像を生成する。なお、良品画像40は、2~15個の良品分割画像に分割されてもよいし、17個以上の良品分割画像に分割されてもよい。また、良品分割画像の形状は矩形に限定されるものではなく、いかなる形状であって良い。 The learning data generation unit 110 acquires a good-quality image from the good-quality image DB 102, and generates a plurality of good-quality divided images by dividing the good-quality image 40. In this embodiment, the learning data generation unit 110 divides the good-quality image 40 vertically and horizontally into four, thereby generating a total of 16 good-quality divided images. Note that the good-quality image 40 may be divided into 2 to 15 good-quality divided images, or into 17 or more good-quality divided images. Furthermore, the shape of the good-quality divided images is not limited to a rectangle, and may be any shape.

また、学習データ生成部110は、複数の良品分割画像のそれぞれにラベル情報を付与して、良品分割画像及び付与されたラベル情報によりそれぞれ構成される複数の学習データセットを生成する。学習データ生成部110は、予め指定されたアルゴリズムに基づきラベル情報を良品分割画像に付与してもよいし、ユーザの操作に基づいてラベル情報を良品分割画像に付与してもよい。 The learning data generation unit 110 also assigns label information to each of the multiple non-defective divided images to generate multiple learning data sets, each of which is composed of the non-defective divided images and the assigned label information. The learning data generation unit 110 may assign label information to the non-defective divided images based on a pre-specified algorithm, or may assign label information to the non-defective divided images based on a user operation.

例えば、互いに異なる複数の良品画像のそれぞれについて、良品分割画像が生成されているとする。この場合、生成された良品分割画像のうち、良品画像における位置が同一である良品分割画像のすべてには、同一のラベル情報が付与される。 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 data generation unit 110 assigns label information to the non-defective divided images, the learning data generation unit 110 may store information indicating which position of the non-defective divided images has been assigned which label information in the trained model DB 106.

例えば、第1良品分割画像400には、ラベル情報(A)が付与されており、第1良品分割画像400及びラベル情報(A)が1つの学習データセットを構成している。同様にして、学習データ生成部110は、第2良品分割画像402及びラベル情報(B)の学習データセット、及び第3良品分割画像404及びラベル情報(C)の学習データセット等、16個の良品分割画像のそれぞれに基づく学習データセットを生成する。 For example, the first good-quality divided image 400 is assigned label information (A), and the first good-quality divided image 400 and the label information (A) constitute one learning data set. Similarly, the learning data generation unit 110 generates learning data sets based on each of the 16 good-quality divided images, such as a learning data set of the second good-quality divided image 402 and label information (B) and a learning data set of the third good-quality divided image 404 and label information (C).

ここで、図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 data generation unit 110 assigns to the good-quality divided images will be described. Fig. 4 is a diagram showing an example of a good-quality image 300. The good-quality image 300 shown in Fig. 4 includes four patterns (a first pattern 302, a second pattern 304, a third pattern 306, and a fourth pattern 308). Similarly to the good-quality image 40 shown in Fig. 3, the good-quality image 300 shown in Fig. 4 is divided into four vertically and horizontally, resulting in a total of 16 good-quality divided images.

図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-quality image 300 shown in FIG. 5, label information is assigned to each of the 16 good-quality divided images in the order of raster scan. That is, in the good-quality image 300 shown in FIG. 5, label information of 0 to 15 is assigned to each of the 16 good-quality divided images in the order shown by the arrows. For example, label information of 0 to 3 is assigned to each of the four good-quality divided images in the top row, starting from the good-quality divided image 320 on the left side. Furthermore, label information of 4 to 7 is assigned to each of the four good-quality divided images in the second row from the top, starting from the good-quality divided image 322 on the left side. Furthermore, label information of 8 to 15 is assigned to each of the four good-quality divided images in the third and fourth rows from the top, in the order shown by the arrows.

なお、ここでは、一番上の左端の良品分割画像320をラベル情報が0となる開始の良品分割画像であるものとして説明したが、いずれの良品分割画像が開始の良品分割画像であってもよい。また、ラベル情報の数値は、ラスタスキャンの順番に限らず、いかなる順番で良品分割画像に付与されてもよい。 Note that, here, the top left non-defective divided image 320 has been described as the starting non-defective divided image with label information of 0, but any non-defective divided image may be the starting non-defective divided image. Also, the numerical values of the label information may be assigned to the non-defective divided images in any order, not limited to the order of raster scan.

図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 good product image 300 shown in FIG. 6, each of the 16 good product divided images is given label information in the form of an orthogonal coordinate system of (X, Y) indicating a pair of integers X and Y. Here, X indicates the column number, and Y indicates the row number. X is 0 for the leftmost column, and increases by 1 as it moves to the right. Y is 0 for the topmost row, and increases by 1 as it moves downward. Therefore, (X, Y) indicates the good product divided image located in the (Y-1)th position from the top of the (X-1)th column from the left. For example, the good product divided image 346 located in the fourth position from the top of the second column from the left is given label information of (1, 3).

なお、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 images 320, 322, and 326 are similar. Therefore, each of these three good-quality divided images 320, 322, and 326 is classified into the same category. In addition, each of the three good-quality divided images 320, 322, and 326 is given label information of 0 as the same label information. Similarly, of the four good-quality divided images in the second column from the left side, three good-quality divided images 340, 342, and 346 are also similar. Therefore, each of these three good-quality divided images 340, 342, and 346 is given label information of 1 as the same label information. In addition, the third good-quality divided image 324 from the top of the leftmost column is not similar to any of the other good-quality divided images, so it is given label information of 3 as label information different from the label information of the other good-quality divided images. Furthermore, non-defective segmented images that do not contain patterns are given the same label information, label information 2.

ここでは、良品分割画像同士の類似度に基づいて、ラベル情報が生成されるものとして説明したが、ラベル情報の生成方法はこれに限られない。例えば、良品画像が複数の部位を含んでいる場合には、それぞれの部位ごとにラベル情報が付与されてもよい。一例として、スマートフォンが検査対象物として外観検査される場合について説明する。この場合、良品画像に含まれる複数の良品分割画像のそれぞれが、スマートフォンのディスプレイの領域(以下、「第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 data generation unit 110 stores the generated training data set in the training data DB 104. In this embodiment, the training data generation unit 110 stores the training data set generated for multiple good product images in the training data DB 104.

モデル生成部120は、複数の学習データセットを用いて学習処理を実施し、良品分割画像及びラベル情報を入力として復元分割画像を出力する学習済みモデルを生成する。ここで、復元分割画像は、良品分割画像を復元する画像である。 The model generation unit 120 performs a learning process using multiple learning datasets, and generates a trained model that receives a good-quality segmented image and label information as input and outputs a restored segmented image. Here, the restored segmented image is an image that restores the good-quality segmented image.

図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 model generation unit 120 according to this embodiment. In this embodiment, the model generation unit 120 trains the model by simultaneously inputting a non-defective divided image and label information to the model. A technique for training a neural network by simultaneously inputting an image and its additional information to the neural network is described in, for example, Reference 1.
(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 model 50 that is the target of the learning process by the model generation unit 120. In this embodiment, the model 50 includes a neural network with multiple layers including an input layer. More specifically, the model 50 is an autoencoder, and is composed of an input layer 500, an output layer 508, and multiple layers arranged between the input layer 500 and the output layer 508. When input data is input to the input layer 500, the input data is compressed into a feature vector in the intermediate layer 504, and output data is output from the output layer 508. Note that the model used to construct the trained model is not limited to an autoencoder. In addition, the number of layers constituting the neural network is not limited to five layers.

モデル生成部120は、モデル50に良品分割画像及びラベル情報を入力する。良品分割画像を入力することは、良品分割画像に含まれる複数の画素値のそれぞれを入力することである。これにより、モデル50の出力層508から画像が出力データとして出力される。モデル生成部120は、出力データが良品分割画像を復元するデータとなるように、モデル50に含まれる各層の間の重みづけパラメータを更新することにより、モデル50を学習させる。まとめると、モデル生成部120は、複数の学習データセットをモデル50にそれぞれ入力して、重みづけパラメータを更新することにより、学習済みモデルを生成する。モデル生成部120は、生成した学習済みモデルを学習済みモデルDB106に格納する。 The model generation unit 120 inputs the good-quality segmented image and label information to the model 50. Inputting the good-quality segmented image means inputting each of the multiple pixel values contained in the good-quality segmented image. As a result, an image is output as output data from the output layer 508 of the model 50. The model generation unit 120 trains the model 50 by updating the weighting parameters between each layer contained in the model 50 so that the output data becomes data that restores the good-quality segmented image. In summary, the model generation unit 120 generates a trained model by inputting multiple training data sets to the model 50 and updating the weighting parameters. The model generation unit 120 stores the generated trained model in the trained model DB 106.

なお、本実施形態では、モデル生成部120は、モデル50の入力層500に良品分割画像を入力し、ラベル情報を入力層の次元よりも低い次元を有する中間層504に入力する。これにより、ラベル情報が、良品分割画像の画素よりも大きく学習に寄与するようになり、より適切な学習済みモデルを生成することが可能になる。 In this embodiment, the model generation unit 120 inputs the good-product segmented image to the input layer 500 of the model 50, and inputs the label information to the intermediate layer 504, which has a dimension lower than the dimension of the input layer. This allows the label information to contribute more to learning than the pixels of the good-product segmented image, making it possible to generate a more appropriate trained model.

なお、ラベル情報は、中間層504とは異なる層に入力されてもよい。ラベル情報は、例えば入力層500に入力されてもよい。また、モデル50に入力される良品分割画像及びラベル情報の少なくともいずれかは、モデル50に入力される前に、必要に応じて重みづけがされていてもよい。これにより、より適切にモデル50が学習され得る。 The label information may be input to a layer other than the intermediate layer 504. The label information may be input to the input layer 500, for example. In addition, at least one of the non-defective segmented image and the label information input to the model 50 may be weighted as necessary before being input to the model 50. This allows the model 50 to learn more appropriately.

図2に戻って、学習済みモデル生成装置10が備える通信部130について説明する。通信部130は、各種の情報を送受信することができる。例えば、通信部130は、通信ネットワーク15を介して、学習済みモデルを画像検査装置20に送信することができる。このとき、良品画像におけるどの位置の良品分割画像にどのラベル情報が付与されたのかを表す情報も、画像検査装置20に送信される。 Returning to FIG. 2, the communication unit 130 provided in the trained model generating device 10 will be described. The communication unit 130 can transmit and receive various information. For example, the communication unit 130 can transmit the trained model to the image inspection device 20 via the communication network 15. At this time, information indicating which label information has been assigned to which position of the non-defective divided image in the non-defective image is also transmitted to the image inspection device 20.

図9は、本実施形態に係る画像検査装置20の構成を示す機能ブロック図である。画像検査装置20は、通信部200、記憶部210、撮像部220及び処理部230を備える。 Figure 9 is a functional block diagram showing the configuration of an image inspection device 20 according to this embodiment. The image inspection device 20 includes a communication unit 200, a storage unit 210, an imaging unit 220, and a processing unit 230.

通信部200は、各種の情報を送受信することができる。例えば、通信部200は、通信ネットワーク15を介して、学習済みモデル生成装置10から学習済みモデルを受信することができる。また、通信部200は、学習済みモデルなどを記憶部210に格納することができる。 The communication unit 200 can transmit and receive various types of information. For example, the communication unit 200 can receive a trained model from the trained model generation device 10 via the communication network 15. The communication unit 200 can also store the trained model and the like in the memory unit 210.

記憶部210は、各種の情報を記憶している。本実施形態では、記憶部210は、学習済みモデルDB106を備える。学習済みモデルDB106には、学習済みモデルが格納されている。また、学習済みモデルDB106には、良品画像におけるどの位置の良品分割画像にどのラベル情報が付与されたのかを表す情報も格納されている。記憶部210に記憶されている各種の情報は、必要に応じて処理部230により参照される。 The memory unit 210 stores various types of information. In this embodiment, the memory unit 210 includes a trained model DB 106. Trained models are stored in the trained model DB 106. The trained model DB 106 also stores information indicating which label information is assigned to which position of a good-quality divided image in a good-quality image. The various types of information stored in the memory unit 210 are referenced by the processing unit 230 as necessary.

撮像部220は、各種の公知の撮像装置を含み、検査対象物30の画像を撮像する。本実施形態では、撮像部220は、検査対象物30からの反射光Rを受光し、検査対象物30の画像を撮像する。撮像部220は、撮像した画像を処理部230に伝達する。 The imaging unit 220 includes various known imaging devices and captures an image of the inspection object 30. In this embodiment, the imaging unit 220 receives reflected light R from the inspection object 30 and captures an image of the inspection object 30. The imaging unit 220 transmits the captured image to the processing unit 230.

処理部230は、各種の処理を検査対象物の画像に施し、検査対象物の検査を行うことができる。図10は、本実施形態に係る処理部230の構成を示す機能ブロック図である。処理部230は、前処理部231、分割部232、ラベル情報付与部233、分割画像生成部234、復元画像生成部235、後処理部236及び検査部237を備える。 The processing unit 230 can perform various processes on the image of the inspection object to inspect the inspection object. FIG. 10 is a functional block diagram showing the configuration of the processing unit 230 according to this embodiment. The processing unit 230 includes a pre-processing unit 231, a division unit 232, a label information assignment unit 233, a divided image generation unit 234, a restored image generation unit 235, a post-processing unit 236, and an inspection unit 237.

前処理部231は、検査対象物の画像に各種の前処理を施す。前処理部231は、例えば、検査対象物の画像に位置ずれを補正する処理を施すことができる。前処理部231は、前処理を施した画像を分割部232に伝達する。 The preprocessing unit 231 performs various preprocessing operations on the image of the object to be inspected. For example, the preprocessing unit 231 can perform processing to correct positional deviation on the image of the object to be inspected. The preprocessing unit 231 transmits the image that has been subjected to the preprocessing operations to the division unit 232.

分割部232は、検査対象物の画像を分割して、複数の検査分割画像を生成することができる。本実施形態では、分割部232は、学習済みモデル生成装置10における良品画像の分割と同様の方法により、検査対象物の画像を分割する。具体的には、分割部232は、検査対象物の画像を、縦及び横にそれぞれ4分割して、16個の検査分割画像を生成する。分割部232は、生成した検査分割画像をラベル情報付与部233に伝達する。 The division unit 232 can divide the image of the inspection object to generate multiple inspection split images. In this embodiment, the division unit 232 divides the image of the inspection object using a method similar to that used to divide a non-defective product image in the trained model generation device 10. Specifically, the division unit 232 divides the image of the inspection object vertically and horizontally into four parts, thereby generating 16 inspection split images. The division unit 232 transmits the generated inspection split images to the label information assignment unit 233.

ラベル情報付与部233は、検査分割画像にラベル情報を付与する。ラベル情報付与部233は、学習済みモデルDB212を参照して、学習済みモデルの生成の際に、良品画像におけるどの位置の良品分割画像にどのラベル情報が付与されたのかを表す情報を参照し、検査分割画像に、対応する位置の良品分割画像のラベル情報を付与する。検査分割画像及び付与されたラベル情報の組みは、入力データセットとなる。ラベル情報付与部233は、複数の検査分割画像のそれぞれにラベル情報を付与して複数の入力データセットを生成し、複数の入力データセットを分割画像生成部234に伝達する。 The label information assignment unit 233 assigns label information to the inspection split image. The label information assignment unit 233 refers to the trained model DB 212 to refer to information indicating which label information was assigned to which position of the good-quality split image in the good-quality image when generating the trained model, and assigns the label information of the good-quality split image at the corresponding position to the inspection split image. The combination of the inspection split image and the assigned label information becomes an input dataset. The label information assignment unit 233 assigns label information to each of the multiple inspection split images to generate multiple input datasets, and transmits the multiple input datasets to the split image generation unit 234.

分割画像生成部234は、学習済みモデルに入力データセット(検査分割画像及びラベル情報の組み)を入力して、復元分割画像を生成することができる。学習済みモデルは、学習済みモデル生成装置10により生成された、良品分割画像及びラベル情報を入力として復元分割画像を出力するように学習させた学習済みモデルである。 The segmented image generation unit 234 can input an input data set (a combination of an inspection segmented image and label information) to the trained model to generate a restored segmented image. The trained model is a trained model generated by the trained model generation device 10 that has been trained to output a restored segmented image using a non-defective segmented image and label information as input.

本実施形態では、分割画像生成部234は、検査分割画像及びラベル情報からそれぞれ構成される複数の入力データセットを学習済みモデルにそれぞれ入力して、複数の復元分割画像を生成する。生成される複数の復元分割画像のそれぞれは、複数の入力データセットのそれぞれに対応している。復元分割画像は、良品分割画像を復元した画像である。このため、検査分割画像に欠陥などが含まれている場合には、欠陥が除去された画像が復元分割画像として学習済みモデルから出力される。本実施形態では、分割画像生成部234は、検査画像に基づき生成された16個の検査分割画像のそれぞれについて復元分割画像を生成し、生成した16個の復元分割画像を復元画像生成部235に伝達する。 In this embodiment, the split image generation unit 234 inputs a plurality of input data sets, each of which is composed of an inspection split image and label information, into the trained model to generate a plurality of restored split images. Each of the generated restored split images corresponds to each of the plurality of input data sets. The restored split images are images restored from non-defective split images. Therefore, if the inspection split image contains a defect or the like, an image from which the defect has been removed is output from the trained model as the restored split image. In this embodiment, the split image generation unit 234 generates a restored split image for each of the 16 inspection split images generated based on the inspection images, and transmits the generated 16 restored split images to the restored image generation unit 235.

復元画像生成部235は、複数の復元分割画像を合成することにより復元画像を生成する。本実施形態では、復元画像生成部235は、分割画像生成部234により生成された16個の復元分割画像を合成することにより、復元画像を生成する。具体的には、復元画像生成部235は、生成した16個の復元分割画像のそれぞれを対応する検査分割画像の位置に配置して合成することにより、復元画像を生成する。復元画像は、良品画像を復元した画像である。このため、検査画像に欠陥が含まれている場合には欠陥が除去された画像が復元画像として生成される。 The restored image generating unit 235 generates a restored image by combining multiple restored divided images. In this embodiment, the restored image generating unit 235 generates a restored image by combining 16 restored divided images generated by the divided image generating unit 234. Specifically, the restored image generating unit 235 generates a restored image by placing each of the generated 16 restored divided images at the position of the corresponding inspection divided image and combining them. The restored image is an image obtained by restoring a non-defective image. Therefore, if the inspection image contains a defect, an image with the defect removed is generated as the restored image.

図11を参照して、処理部230が検査画像42に基づいて復元画像44を生成するまでの処理の一例を説明する。 With reference to FIG. 11, an example of the process in which the processing unit 230 generates a restored image 44 based on the inspection image 42 will be described.

分割部232は、検査画像42を縦及び横にそれぞれ4分割し、16個の検査分割画像を生成する。ラベル情報付与部233は、生成された16個の検査分割画像のそれぞれにラベル情報を付与する。例えば、第1検査分割画像420にはラベル情報(A)が付与され、第2検査分割画像422にはラベル情報(B)が付与され、第3検査分割画像424にはラベル情報(C)が付与される。検査分割画像とラベル情報の組みが入力データセットとなる。 The division unit 232 divides the inspection image 42 vertically and horizontally into four parts, generating 16 inspection split images. The label information assignment unit 233 assigns label information to each of the 16 generated inspection split images. For example, the first inspection split image 420 is assigned label information (A), the second inspection split image 422 is assigned label information (B), and the third inspection split image 424 is assigned label information (C). The combination of the inspection split image and the label information becomes the input data set.

なお、上述したように類似している検査分割画像には同一のラベル情報が付与されていてもよい。このため、例えば、第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 inspection split image 420 and the second inspection split image 422 are similar to each other, the first inspection split image 420 may be assigned the label information (B) of the second inspection split image 422. Alternatively, the second inspection split image 422 may be assigned the label information (A) of the first inspection split image.

分割画像生成部234は、生成された16個の入力データセットを学習済みモデルにそれぞれ入力し、16個の復元分割画像を生成する。例えば、第1復元分割画像440は第1検査分割画像420に基づき生成され、第2復元分割画像442は第2検査分割画像422に基づき生成され、第3復元分割画像444は第3検査分割画像424に基づき生成されている。復元画像生成部235は、生成された16個の復元分割画像を合成することにより復元画像44を生成する。 The split image generating unit 234 inputs each of the 16 generated input data sets into the trained model, and generates 16 restored split images. For example, the first restored split image 440 is generated based on the first inspection split image 420, the second restored split image 442 is generated based on the second inspection split image 422, and the third restored split image 444 is generated based on the third inspection split image 424. The restored image generating unit 235 generates the restored image 44 by synthesizing the generated 16 restored split images.

図10に戻って、後処理部236について説明する。後処理部236は、復元画像に後処理を施すことができる。例えば、後処理部236は、復元画像と検査画像との差分を算出して、差分画像を生成することができる。具体的には、後処理部236は、復元画像を構成する複数の画素値のそれぞれから、検査画像のそれぞれ対応する画素値の差分を算出することにより差分画像を生成することができる。 Returning to FIG. 10, the post-processing unit 236 will be described. The post-processing unit 236 can perform post-processing on the restored image. For example, the post-processing unit 236 can calculate the difference between the restored image and the inspection image to generate a difference image. Specifically, the post-processing unit 236 can generate a difference image by calculating the difference between the corresponding pixel values of the inspection image from each of the multiple pixel values that make up the restored image.

図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 post-processing unit 236 will be described with reference to Figs. 12 to 14. Fig. 12 is a diagram showing an example of an image 60 of the inspection object 30 according to this embodiment. Fig. 13 is a diagram showing an example of a restored image 62 generated based on the image 60. Fig. 14 is a diagram showing a difference image 64 which is the difference between the image 60 of the inspection object and the restored image 62. As shown in Fig. 12, the image 60 includes a linear defect image 600. The defect image is an image of a defect in the inspection object. On the other hand, as shown in Fig. 13, the defective image has been removed from the restored image 62. Therefore, the difference image 64 which shows the difference between the image 60 of the inspection object and the restored image 62 mainly includes a defect image 640. In this embodiment, the inspection object is inspected based on the difference image 64 which includes the defect image 640.

図10に戻って、検査部237について説明する。検査部237は、分割画像生成部234により生成された復元分割画像に基づいて、検査対象物30の検査を行うことができる。本実施形態では、検査部237は、複数の復元分割画像に基づいて検査対象物30の検査を行う。 Returning to FIG. 10, the inspection unit 237 will be described. The inspection unit 237 can inspect the inspection object 30 based on the restored split images generated by the split image generation unit 234. In this embodiment, the inspection unit 237 inspects the inspection object 30 based on a plurality of restored split images.

本実施形態では、検査部237は、検査画像と復元画像との差分に基づいて、検査対象物を検査する。具体的には、検査部237は、後処理部236により生成された差分画像に基づいて検査対象物の検査を行う。 In this embodiment, the inspection unit 237 inspects the inspection object based on the difference between the inspection image and the restored image. Specifically, the inspection unit 237 inspects the inspection object based on the difference image generated by the post-processing unit 236.

また、検査部237は、検査対象物30の欠陥を検出することができる。例えば、検査部237は、図14に示した差分画像64に含まれる欠陥画像640を検出することにより、検査対象物30の欠陥を検出することができる。あるいは、検査部237は、検査対象物30の良否判定を行ってもよい。具体的には、検査部237は、差分画像64に含まれる欠陥画像の大きさに基づいて、検査対象物30の良否判定を行ってもよい。より具体的には、検査部237は、差分画像64に含まれる欠陥画像の大きさが所定の閾値を超える場合には、検査対象物が不良品であることを判定することができる。 The inspection unit 237 can also detect defects in the inspection object 30. For example, the inspection unit 237 can detect defects in the inspection object 30 by detecting the defect image 640 included in the difference image 64 shown in FIG. 14. Alternatively, the inspection unit 237 can determine whether the inspection object 30 is good or bad. Specifically, the inspection unit 237 can determine whether the inspection object 30 is good or bad based on the size of the defect image included in the difference image 64. More specifically, the inspection unit 237 can determine that the inspection object is defective when the size of the defect image included in the difference image 64 exceeds a predetermined threshold value.

図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 model generating device 10 and image inspection device 20 according to this embodiment. The trained model generating device 10 and image inspection device 20 each have a CPU (Central Processing Unit) 10a corresponding to a calculation unit, a RAM (Random Access Memory) 10b corresponding to a storage unit, a ROM (Read only Memory) 10c corresponding to a storage unit, a communication unit 10d, an input unit 10e, and a display unit 10f. Each of these components is connected via a bus so that they can send and receive data to each other.

なお、本例では、学習済みモデル生成装置10及び画像検査装置20のそれぞれが、一台のコンピュータで構成されるものとして説明するが、学習済みモデル生成装置10及び画像検査装置20のそれぞれは、複数のコンピュータが組み合わされて実現されてもよい。また、画像検査装置20及び学習済みモデル生成装置10が一台のコンピュータで構成されてもよい。また、図15で示す構成は一例であり、学習済みモデル生成装置10及び画像検査装置20は、これら以外の構成を有してもよいし、これらの構成のうち一部を有さなくてもよい。 In this example, the trained model generation device 10 and the image inspection device 20 are each described as being configured with a single computer, but the trained model generation device 10 and the image inspection device 20 may each be realized by combining multiple computers. Also, the image inspection device 20 and the trained model generation device 10 may be configured with a single computer. Also, the configuration shown in FIG. 15 is an example, and the trained model generation device 10 and the image inspection device 20 may have other configurations or may not have some of these configurations.

CPU10aは、RAM10b又はROM10cに記憶されたプログラムの実行に関する制御やデータの演算、加工を行う演算部である。学習済みモデル生成装置10が備えるCPU10aは、学習データを用いて学習処理を実施して、学習済みモデルを生成するプログラム(学習プログラム)を実行する演算部である。また、画像検査装置20が備えるCPU10aは、検査対象物の画像を用いて、検査対象物の検査を行うプログラム(画像検査プログラム)を実行する演算部である。CPU10aは、入力部10eや通信部10dから種々のデータを受け取り、データの演算結果を表示部10fに表示したり、RAM10bに格納したりする。 The CPU 10a is a calculation unit that controls the execution of programs stored in the RAM 10b or ROM 10c and calculates and processes data. The CPU 10a of the trained model generation device 10 is a calculation unit that executes a program (learning program) that performs learning processing using training data and generates a trained model. The CPU 10a of the image inspection device 20 is a calculation unit that executes a program (image inspection program) that inspects an object to be inspected using an image of the object to be inspected. The CPU 10a receives various data from the input unit 10e and the communication unit 10d, and displays the calculation results of the data on the display unit 10f or stores them in the RAM 10b.

RAM10bは、記憶部のうちデータの書き換えが可能なものであり、例えば半導体記憶素子で構成されてよい。RAM10bは、CPU10aが実行するプログラム、学習データ、学習済みモデルといったデータを記憶してよい。なお、これらは例示であって、RAM10bには、これら以外のデータが記憶されていてもよいし、これらの一部が記憶されていなくてもよい。 RAM 10b is a storage unit in which data can be rewritten, and may be composed of, for example, a semiconductor memory element. RAM 10b may store data such as programs executed by CPU 10a, learning data, and learned models. Note that these are merely examples, and RAM 10b may store data other than these, or some of these data may not be stored.

ROM10cは、記憶部のうちデータの読み出しが可能なものであり、例えば半導体記憶素子で構成されてよい。ROM10cは、例えば画像検査プログラム、学習プログラム及び書き換えが行われないデータを記憶してよい。 ROM 10c is a memory unit from which data can be read, and may be composed of, for example, a semiconductor memory element. ROM 10c may store, for example, an image inspection program, a learning program, and data that is not rewritten.

通信部10dは、画像検査装置20を他の機器に接続するインターフェースである。通信部10dは、インターネット等の通信ネットワークに接続されてよい。 The communication unit 10d is an interface that connects the image inspection device 20 to other devices. The communication unit 10d may be connected to a communication network such as the Internet.

入力部10eは、ユーザからデータの入力を受け付けるものであり、例えば、キーボード及びタッチパネルを含んでよい。入力部10eは、例えば良品分割画像又は検査分割画像のラベル情報等の入力を受け付けてもよい。 The input unit 10e accepts data input from a user and may include, for example, a keyboard and a touch panel. The input unit 10e may accept input of, for example, label information of a non-defective divided image or an inspection divided image.

表示部10fは、CPU10aによる演算結果を視覚的に表示するものであり、例えば、LCD(Liquid Crystal Display)により構成されてよい。表示部10fは、例えば、検査対象物の検査結果等を表示してよい。 The display unit 10f visually displays the results of calculations performed by the CPU 10a and may be configured, for example, with an LCD (Liquid Crystal Display). The display unit 10f may display, for example, the results of an inspection of an object to be inspected.

画像検査プログラムは、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 RAM 10b or ROM 10c, or may be provided via a communication network connected by the communication unit 10d. In the trained model generating device 10, the CPU 10a executes the training program to realize various operations described using FIG. 2 and the like. In the image inspection device 20, the CPU 10a executes the image inspection program to realize various operations described using FIG. 9 and FIG. 10 and the like. Note that these physical configurations are merely examples and do not necessarily have to be independent configurations. For example, each of the trained model generating device 10 and the image inspection device 20 may include an LSI (Large-Scale Integration) in which the CPU 10a is integrated with the RAM 10b and ROM 10c.

図16は、学習済みモデル生成装置10が学習済みモデルを生成する流れの一例を示すフローチャートである。 Figure 16 is a flowchart showing an example of the flow by which the trained model generation device 10 generates a trained model.

まず、学習データ生成部110が、良品画像DB102に格納されている良品画像を、複数の良品分割画像に分割する(ステップS101)。このとき、良品画像DB102に複数の良品画像が格納されている場合には、学習データ生成部110は、複数の良品画像のそれぞれを分割して、それぞれの良品画像に対応する良品分割画像を生成してもよい。 First, the learning data generating unit 110 divides a good-quality image stored in the good-quality image DB 102 into a plurality of good-quality divided images (step S101). At this time, if a plurality of good-quality images are stored in the good-quality image DB 102, the learning data generating unit 110 may divide each of the plurality of good-quality images to generate good-quality divided images corresponding to each of the good-quality images.

次いで、学習データ生成部110は、ステップS103において生成した良品分割画像のそれぞれにラベル情報を付与し、複数の学習データセットを生成する(ステップS103)。学習データ生成部110は、生成した学習データセットを学習用データDB104に格納する。 Next, the training data generation unit 110 assigns label information to each of the non-defective segmented images generated in step S103, and generates multiple training data sets (step S103). The training data generation unit 110 stores the generated training data sets in the training data DB 104.

次いで、モデル生成部120は、学習用データDB104に格納されている複数の学習データセットを用いて学習処理を実行し、良品分割画像及びラベル情報を入力として復元分割画像を出力する学習済みモデルを生成する(ステップS105)。モデル生成部120は、生成した学習済みモデルを学習済みモデルDB106に格納する。 Next, the model generation unit 120 executes a learning process using multiple learning data sets stored in the learning data DB 104, and generates a trained model that receives the good-quality segmented image and the label information as input and outputs a restored segmented image (step S105). The model generation unit 120 stores the generated trained model in the trained model DB 106.

次いで、通信部130は、ステップS105において生成された学習済みモデルを画像検査装置20に送信する(ステップS107)。これにより、画像検査装置20は、学習済みモデル生成装置10により生成された学習済みモデルを使用できるようになる。 Next, the communication unit 130 transmits the trained model generated in step S105 to the image inspection device 20 (step S107). This enables the image inspection device 20 to use the trained model generated by the trained model generation device 10.

図17は、画像検査装置20が、検査対象物の画像に基づき、学習済みモデルを用いて検査対象物の検査を行う流れの一例を示すフローチャートである。 Figure 17 is a flowchart showing an example of the process in which the image inspection device 20 inspects an object to be inspected using a trained model based on an image of the object to be inspected.

まず、画像検査装置20が備える撮像部220が、検査対象物の画像を撮像する(ステップS201)。撮像部220は、撮像した画像を処理部230に伝達する。 First, the imaging unit 220 included in the image inspection device 20 captures an image of the object to be inspected (step S201). The imaging unit 220 transmits the captured image to the processing unit 230.

次いで、処理部230が備える前処理部231が、ステップS201において撮像された画像に前処理を施す(ステップS203)。次いで、分割部232が、ステップS203において前処理を施された検査画像を分割して、複数の検査分割画像を生成する(ステップS205)。次いで、ラベル情報付与部233は、ステップS205において生成された複数の検査分割画像のそれぞれにラベル情報を付与し、複数の入力データセットを生成する(ステップS207)。 Next, the preprocessing unit 231 included in the processing unit 230 performs preprocessing on the image captured in step S201 (step S203). Next, the division unit 232 divides the inspection image that has been preprocessed in step S203 to generate multiple inspection split images (step S205). Next, the label information assignment unit 233 assigns label information to each of the multiple inspection split images generated in step S205, and generates multiple input data sets (step S207).

次いで、分割画像生成部234は、ステップS207において生成された複数の入力データセットを学習済みモデルにそれぞれ入力して、複数の復元分割画像を生成する(ステップS209)。次いで、復元画像生成部235は、ステップS209において生成された複数の復元分割画像を合成することにより、復元画像を生成する(ステップS211)。次いで、後処理部236は、ステップS201において撮像された検査画像と、ステップS211において生成された復元画像との差分を算出して差分画像を生成する(ステップS213)。 Next, the segmented image generating unit 234 inputs the multiple input data sets generated in step S207 into the trained model, respectively, to generate multiple restored segmented images (step S209). Next, the restored image generating unit 235 generates a restored image by synthesizing the multiple restored segmented images generated in step S209 (step S211). Next, the post-processing unit 236 calculates the difference between the inspection image captured in step S201 and the restored image generated in step S211 to generate a difference image (step S213).

次いで、検査部237は、ステップS213において生成された差分画像に基づいて検査対象物の検査を行う(ステップS215)。 Next, the inspection unit 237 inspects the object to be inspected based on the difference image generated in step S213 (step S215).

本実施形態によれば、検査分割画像のラベル情報に応じて、復元分割画像が生成される。このため、部分的に特殊パターンが含まれている場合であっても、特殊パターンを復元することができると。また、ある位置又は部分で良品であるパターンが別の位置又は部分では不良品であっても、良品のパターンを適切に復元することができる。この結果、不良品のパターンの生成を抑制することができる。 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 inspection image 70. The inspection image 70 is divided into six inspection split images 700, 702, 704, 706, 708, and 710. Of these six inspection split images, inspection split images 702, 706, and 708 are similar to each other. Furthermore, inspection split image 704 includes a special pattern that is different from the other inspection split images.

仮にラベル情報を用いずに、これら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 inspection segmentation image 704 is input to this trained model, if the trained model has low expressive power, inspection segmentation images 702, 704, or 708 will be output, and the special pattern may not be restored.

一方、本実施形態に係る画像検査装置20は、検査分割画像に加えてラベル情報を用いる。このため、検査分割画像とその検査分割画像の位置に応じた復元分割画像を生成することができる。その結果、その検査分割画像が特定の位置に特殊パターンを含む場合であっても、特殊パターンを復元することが可能となる。例えば、検査分割画像704のように特殊なパターンを示す検査分割画像であっても、適切に復元することが可能になる。 On the other hand, the image inspection device 20 according to this embodiment uses label information in addition to the inspection split image. Therefore, it is possible to generate an inspection split image and a restored split image according to the position of the inspection split image. As a result, even if the inspection split image includes a special pattern at a specific position, it becomes possible to restore the special pattern. For example, even an inspection split image that shows a special pattern, such as inspection split image 704, can be properly restored.

また、良品の検査対象物の画像において、ある位置又は部分で良品であるパターンが別の位置又は部分では不良品である場合がある。このような場合にも、本実施形態に係る画像検査装置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 image inspection device 20 according to this embodiment can generate a restored divided image of a good product from an inspection split image that includes a defective pattern, thereby preventing the generation of a defective pattern. As a result, it is possible to prevent defective products from being overlooked.

以上説明した実施形態は、本発明の理解を容易にするためのものであり、本発明を限定して解釈するためのものではない。実施形態が備える各要素及びその配置、材料、条件、形状、サイズ等は、例示したものに限定されるわけではなく適宜変更することができる。また、異なる実施形態で示した構成同士を部分的に置換し又は組み合わせることが可能である。 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検査分割画像が第2検査分割画像と類似している場合には、前記第1検査分割画像及び前記第2検査分割画像のラベル情報を前記学習済みモデルに入力する、
請求項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.
JP2020085943A 2020-05-15 2020-05-15 Image inspection device, image inspection method, and trained model generation device Active JP7505256B2 (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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