JP2023100280A - Inspection system and inspection method detecting presence or absence of defect on external surface of object subjected to inspection - Google Patents

Inspection system and inspection method detecting presence or absence of defect on external surface of object subjected to inspection Download PDF

Info

Publication number
JP2023100280A
JP2023100280A JP2022000791A JP2022000791A JP2023100280A JP 2023100280 A JP2023100280 A JP 2023100280A JP 2022000791 A JP2022000791 A JP 2022000791A JP 2022000791 A JP2022000791 A JP 2022000791A JP 2023100280 A JP2023100280 A JP 2023100280A
Authority
JP
Japan
Prior art keywords
inspection
neural network
image data
defect
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2022000791A
Other languages
Japanese (ja)
Inventor
哲行 神谷
Tetsuyuki Kamiya
知宏 前田
Tomohiro Maeda
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.)
Kiso kk
Original Assignee
Kiso kk
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 Kiso kk filed Critical Kiso kk
Priority to JP2022000791A priority Critical patent/JP2023100280A/en
Publication of JP2023100280A publication Critical patent/JP2023100280A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

To provide a technology that can enhance the inspection capability of an inspection system that detects a defect on an external surface of an object subjected to inspection using an image analysis technology by an artificial intelligence.SOLUTION: An inspection system includes: a neural network which accepts the input of inspection image data representing an image obtained by imaging an object subjected to inspection, and which outputs the presence or absence of the defect on the object subjected to inspection on the basis of an already-learnt model prepared by machine learning in advance; and an adjusting unit that adjusts the neural network in such a way that the effect of a certain feature quantity on an output result increases using at least one certain feature quantity identified among a plurality of feature quantities on the basis of the inspection image data, and a feature quantity table created using the output by the intermediate layer of a learning neural network utilized when the already-learnt model is created.SELECTED DRAWING: Figure 3

Description

本開示は、検査対象の外面上の欠陥の有無を検出する検査システムおよび検査方法に関する。 The present disclosure relates to an inspection system and inspection method for detecting the presence or absence of defects on the outer surface of an object to be inspected.

近年では、例えば、下記の特許文献1に開示されているように、製品等の検査対象の外面上の欠陥を検出するために、人工知能(AI:Artificial Intelligence)による画像解析技術が利用される場合がある。そうしたAIによる画像解析技術を利用すれば、数秒とかからず、98%を超える高い精度で検査結果を得ることも可能である。AIによる画像解析技術において欠陥の検出精度を高める方法としては、例えば、ディープラーニングなどの機械学習により多くの欠陥の特徴を学習させる方法や、検査対象の画像データからより多くの特徴量を検出するようにニューラルネットワークを設計する方法等がある。 In recent years, for example, as disclosed in Patent Document 1 below, image analysis technology by artificial intelligence (AI) is used to detect defects on the outer surface of an inspection target such as a product. Sometimes. If such AI-based image analysis technology is used, it is possible to obtain inspection results with high accuracy exceeding 98% in less than a few seconds. As a method to improve the detection accuracy of defects in image analysis technology using AI, for example, there is a method of learning the characteristics of many defects by machine learning such as deep learning, and a method of detecting more feature amounts from the image data of the inspection target. There is a method of designing a neural network as follows.

特開2019-2788号公報Japanese Patent Application Laid-Open No. 2019-2788

しかしながら、上記したような従来の方法では、欠陥の検出精度がある程度で頭打ちになってしまったり、欠陥の検出時間が長くなってしまったりしていた。本開示は、AIによる画像解析技術を利用して検査対象の外面上の欠陥を検出する検査システムの検出性能を、従来とは異なる方法で高めることができる技術を提供することを目的とする。 However, in the above-described conventional methods, the defect detection accuracy reaches a certain level or the defect detection time becomes long. An object of the present disclosure is to provide a technology that can improve the detection performance of an inspection system that detects defects on the outer surface of an inspection target using AI-based image analysis technology by a method different from the conventional method.

上述した課題を解決するための第1の形態は、検査対象の外面上の欠陥の有無を検出する検査システムとして提供される。この形態の検査システムは、前記検査対象を撮像した画像を表す検査画像データの入力を受け付け、機械学習によって予め準備された学習済みモデルを用いて、前記検査対象における前記欠陥の有無を出力するニューラルネットワークと、前記検査画像データに基づいて複数の特徴量のうちから特定された少なくとも1つの特定特徴量と、前記学習済みモデルを作成した学習用ニューラルネットワークの中間層の出力を用いて作成された特徴量テーブルと、を用いて、前記特定特徴量が出力結果に及ぼす影響が大きくなるように、前記ニューラルネットワークを調整する調整部と、を備える。 A first form for solving the above-described problems is provided as an inspection system for detecting the presence or absence of defects on the outer surface of an inspection object. The inspection system of this form receives input of inspection image data representing an image of the inspection object, and uses a learned model prepared in advance by machine learning to output the presence or absence of the defect in the inspection object. Created using a network, at least one specific feature quantity specified from among a plurality of feature quantities based on the inspection image data, and the output of the intermediate layer of the learning neural network that created the trained model. and an adjusting unit that adjusts the neural network using a feature amount table so that the specific feature amount has a greater influence on an output result.

第2の形態の検査システムにおいて、前記調整部は、入力された前記検査画像データに対して、前記複数の特徴量のうちから前記特定特徴量を特定する特徴量ニューラルネットワークを備えてよい。 In the inspection system of the second aspect, the adjustment unit may include a feature amount neural network that specifies the specific feature amount from among the plurality of feature amounts for the input inspection image data.

第3の形態の検査システムは、さらに、前記検査対象を撮像した画像を分割した複数の分割画像を表す複数の分割画像データを生成する画像処理部を備え、前記ニューラルネットワークは、前記検査画像データとして、前記複数の分割画像データの並列な入力を受け付け、前記検査対象における前記欠陥の有無を出力してよい。 The inspection system of the third embodiment further includes an image processing unit that generates a plurality of divided image data representing a plurality of divided images obtained by dividing an image of the inspection target, wherein the neural network generates the inspection image data , the parallel input of the plurality of divided image data may be received, and the presence or absence of the defect in the inspection object may be output.

第4の形態は、検査対象を撮像した画像を表す検査画像データの入力を受け付け、機械学習によって予め準備された学習済みモデルを用いて、前記検査対象における外面上の欠陥の有無を出力するニューラルネットワークを用いて前記検査対象を検査する方法として提供される。この形態の方法は、コンピュータが、前記検査画像データに基づいて複数の特徴量のうちから少なくとも1つの特定特徴量を特定し、前記特定特徴量と、前記学習済みモデルを作成した学習用ニューラルネットワークの中間層の出力を用いて作成された特徴量テーブルと、を用いて、前記特定特徴量が出力結果に及ぼす影響が大きくなるように、前記ニューラルネットワークを調整する工程と、コンピュータが、調整された前記ニューラルネットワークに、前記検査画像データを入力して、前記検査対象の表面のキズの有無を検出する工程と、を備える。 A fourth form is a neural network that receives input of inspection image data representing an image of an object to be inspected and outputs whether or not there is a defect on the outer surface of the object to be inspected using a learned model prepared in advance by machine learning. It is provided as a method of inspecting the inspection target using a network. In this method, a computer identifies at least one specific feature quantity from among a plurality of feature quantities based on the inspection image data, and a learning neural network that creates the specific feature quantity and the trained model. a feature table created using the output of the intermediate layer of and adjusting the neural network so that the specific feature has a greater influence on the output result; and inputting the inspection image data to the neural network to detect the presence or absence of scratches on the surface of the inspection object.

上記第1の形態の検査システムによれば、入力される検査画像データに応じて事前に動的に調整されたニューラルネットワークによって、検査対象の外面上の欠陥を検出することができる。よって、検査対象の外面上の欠陥の検出精度を高めることや、その検出時間を短縮することができ、検査システムの検査性能を高めることができる。 According to the inspection system of the first aspect, defects on the outer surface of the inspection object can be detected by the neural network dynamically adjusted in advance according to the input inspection image data. Therefore, it is possible to improve the detection accuracy of defects on the outer surface of the inspection object, shorten the detection time, and improve the inspection performance of the inspection system.

上記第2の形態の検査システムによれば、調整部は、特徴量ニューラルネットワークの利用により、検査画像データの特徴に応じたより適切な特定特徴量を抽出することが可能になる。よって、検査システムの検査性能を、さらに高めることができる。 According to the inspection system of the second aspect, the adjusting section can extract a more appropriate specific feature amount according to the feature of the inspection image data by using the feature amount neural network. Therefore, the inspection performance of the inspection system can be further enhanced.

上記第3の形態の検査システムによれば、高解像度の検査画像データであっても、ニューラルネットワークが短時間で処理することが可能になる。 According to the inspection system of the third embodiment, even high-resolution inspection image data can be processed by the neural network in a short time.

上記第4の形態の方法によれば、入力される検査画像データに応じてニューラルネットワークの重み付けや層配置が動的に調整された上で、検査画像データがニューラルネットワークに入力される。これにより、この形態の方法を実行する検査システムによる欠陥の検出精度を高めることや、当該欠陥の検出時間を短縮することができ、その検査性能を高めることができる。 According to the method of the fourth aspect, the weighting and layer arrangement of the neural network are dynamically adjusted according to the input inspection image data, and then the inspection image data is input to the neural network. As a result, it is possible to improve the defect detection accuracy of the inspection system that executes the method of this embodiment, shorten the time required to detect the defect, and improve the inspection performance.

検査システムの構成を示す概略ブロック図。1 is a schematic block diagram showing the configuration of an inspection system; FIG. 検査処理のフローチャート。A flowchart of inspection processing. 検査処理における検査部の処理内容を模式的に示す説明図。FIG. 4 is an explanatory diagram schematically showing the processing contents of an inspection unit in inspection processing; 学習済みデータ生成システムにおける特徴量テーブルおよび学習済みモデルの生成方法を模式的に示す説明図。FIG. 4 is an explanatory diagram schematically showing a method of generating a feature quantity table and a trained model in a trained data generation system;

以下、本開示の検査対象の外面上の欠陥の有無を検出する検査システムおよび検査方法の実施形態を、各図を参照して詳細に説明する。 Hereinafter, embodiments of an inspection system and an inspection method for detecting the presence or absence of defects on the outer surface of an object to be inspected according to the present disclosure will be described in detail with reference to the drawings.

1.実施形態:
図1は、本実施形態における検査システム100の構成を示す概略ブロック図である。本実施形態の検査システム100は、人工知能(AI:Artificial Intelligence)による画像解析技術を利用して検査対象PIにおける外面上の欠陥の有無を検出する検査処理を実行する。本実施形態では、検査システム100の検査対象PIは金属部品であり、その外面上の欠陥は、金属表面に形成されたキズである。検査システム100は、例えば、10~100μm程度の寸法のキズを検出可能であるとしてもよい。
1. Embodiment:
FIG. 1 is a schematic block diagram showing the configuration of an inspection system 100 according to this embodiment. The inspection system 100 of the present embodiment uses image analysis technology based on artificial intelligence (AI) to perform inspection processing for detecting the presence or absence of defects on the outer surface of the inspection target PI. In this embodiment, the inspection target PI of the inspection system 100 is a metal part, and the defects on the outer surface are scratches formed on the metal surface. The inspection system 100 may be able to detect flaws on the order of 10-100 μm in size, for example.

検査システム100は、検査対象PIを撮像し、その撮像した画像を表す検査画像データIDを生成して出力する画像取得部10と、AIによる画像解析技術により検査画像データIDを検査する検査部20とを備える。 The inspection system 100 includes an image acquisition unit 10 that captures an image of an inspection target PI, generates and outputs inspection image data ID representing the captured image, and an inspection unit 20 that inspects the inspection image data ID using image analysis technology using AI. and

画像取得部10は、検査対象PIを撮像する撮像部12と、撮像部12を制御する撮像実行部15と、を備える。撮像部12は、例えば、撮像素子としてCCDセンサやCMOSセンサを備えるデジタルカメラ等によって構成される。撮像部12の解像度は、1000万~3000万画素の範囲内であることが好ましく、例えば、2000万画素程度であるとしてもよい。 The image acquisition unit 10 includes an imaging unit 12 that captures an image of the inspection object PI, and an imaging execution unit 15 that controls the imaging unit 12 . The imaging unit 12 is configured by, for example, a digital camera or the like having a CCD sensor or a CMOS sensor as an imaging element. The resolution of the imaging unit 12 is preferably in the range of 10 million to 30 million pixels, and may be about 20 million pixels, for example.

撮像実行部15は、中央処理装置(CPU)や主記憶装置(RAM)を備えるコンピュータによって構成される。撮像実行部15は、所定のプログラムに従って、あるいは、ユーザーの操作に従って、撮像部12に検査対象PIを撮像させる。また、撮像実行部15は、撮像部12に撮像させた検査対象PIの撮像画像を表す検査画像データIDを生成して検査部20に出力する。 The imaging execution unit 15 is configured by a computer having a central processing unit (CPU) and a main memory device (RAM). The image capturing execution unit 15 causes the image capturing unit 12 to capture an image of the inspection object PI according to a predetermined program or user's operation. In addition, the imaging execution unit 15 generates inspection image data ID representing a captured image of the inspection target PI captured by the imaging unit 12 and outputs the inspection image data ID to the inspection unit 20 .

検査部20は、CPUやRAMを備えるコンピュータによって構成される。検査部20では、RAM上に読み込まれた命令やプログラムをCPUが実行することにより、以下に説明する各機能部21,23,25,28の機能が実現される。検査部20は、画像処理部21と、ニューラルネットワーク23と、調整部25と、出力部28とを備える。 The inspection unit 20 is configured by a computer having a CPU and a RAM. In the inspection unit 20, the functions of the functional units 21, 23, 25, and 28, which will be described below, are realized by the CPU executing the instructions and programs read into the RAM. The inspection unit 20 includes an image processing unit 21 , a neural network 23 , an adjustment unit 25 and an output unit 28 .

画像処理部21は、画像取得部10から検査画像データIDを取得し、ニューラルネットワーク23と調整部25とにそれぞれ入力する。画像処理部21は、ニューラルネットワーク23に対しては、検査画像データIDを、後述する複数の分割画像データIDdの形で入力する。 The image processing unit 21 acquires the inspection image data ID from the image acquisition unit 10, and inputs it to the neural network 23 and the adjustment unit 25, respectively. The image processing unit 21 inputs inspection image data ID to the neural network 23 in the form of a plurality of divided image data IDd, which will be described later.

本明細書において、「ニューラルネットワーク」は、AI技術で用いられる用語であり、人間の脳内の神経細胞のつながりを表現した数学モデルを意味する。本実施形態のニューラルネットワーク23は、後に参照する図3に示されているように、相互に接続する複数のノードによって多層的に構成されたネットワーク構造によって表現される。ニューラルネットワーク23は、データが入力される入力層と、並列に配列された複数のノードの層によって構成され、入力データの解析過程を規定する中間層と、入力データの解析結果を出力する出力層と、によって構成される。 As used herein, "neural network" is a term used in AI technology, and means a mathematical model that expresses connections between nerve cells in the human brain. The neural network 23 of this embodiment is represented by a network structure composed of multiple layers of interconnected nodes, as shown in FIG. 3, which will be referred to later. The neural network 23 is composed of an input layer to which data is input, a layer of a plurality of nodes arranged in parallel, an intermediate layer that defines the analysis process of the input data, and an output layer that outputs the analysis results of the input data. and

なお、本実施形態では、ニューラルネットワーク23は、画像解析に好適な、畳み込みニューラルネットワーク(CNN:Convolutional Neural Network)によって実現されている。 In this embodiment, the neural network 23 is implemented by a convolutional neural network (CNN) suitable for image analysis.

ニューラルネットワーク23は、画像処理部21から検査画像データIDの入力を受け付け、機械学習によって予め準備された学習済みモデルTMを用いて、検査対象PIにおける欠陥の有無を出力する。 The neural network 23 receives input of the inspection image data ID from the image processing unit 21, and outputs whether or not there is a defect in the inspection object PI using a learned model TM prepared in advance by machine learning.

調整部25は、画像処理部21から入力される検査画像データIDに基づいて、ニューラルネットワーク23での画像の解析過程を規定する複数の特徴量のうちから少なくとも1つの特定特徴量を特定する。調整部25は、特定特徴量を特定するための特徴量ニューラルネットワーク26を備えている。特徴量ニューラルネットワーク26については後述する。 Based on the inspection image data ID input from the image processing unit 21 , the adjustment unit 25 identifies at least one specific feature amount from among a plurality of feature amounts that define the image analysis process in the neural network 23 . The adjustment unit 25 includes a feature amount neural network 26 for specifying specific feature amounts. The feature amount neural network 26 will be described later.

調整部25は、ニューラルネットワーク23に検査画像データIDが入力される前に、前述の特定特徴量と、学習データ生成システム200が生成する後述する特徴量テーブルFVTとを用いて、ニューラルネットワーク23を調整する。「ニューラルネットワーク23を調整する」とは、ニューラルネットワーク23の中間層におけるノード間の結合とその重み付けを調整することを意味する。調整部25によるニューラルネットワーク23の調整、および、学習データ生成システム200による特徴量テーブルFVTの生成についての詳細は後述する。 Before the inspection image data ID is input to the neural network 23, the adjustment unit 25 adjusts the neural network 23 using the above-described specific feature amount and a later-described feature amount table FVT generated by the learning data generation system 200. adjust. “Adjusting the neural network 23” means adjusting the connections between nodes in the intermediate layer of the neural network 23 and their weightings. Details of the adjustment of the neural network 23 by the adjustment unit 25 and the generation of the feature amount table FVT by the learning data generation system 200 will be described later.

出力部28は、検査部20での欠陥の検出結果を外部に出力する処理を実行する。本実施形態では、出力部28は、検出結果を、例えば、図示しないモニタやプリンタ等、ユーザーに対する情報の報知を実行するデバイスに出力する。また、出力部28は、検出結果を図示しない外部記憶装置に出力して記憶させる。 The output unit 28 performs a process of outputting the defect detection result of the inspection unit 20 to the outside. In this embodiment, the output unit 28 outputs the detection result to a device such as a monitor or printer (not shown) that notifies the user of information. The output unit 28 also outputs the detection result to an external storage device (not shown) for storage.

図2および図3を参照して、検査システム100において実行される検査処理を説明する。図2は、検査処理のフローチャートである。図3は、検査処理における検査部20の処理内容を模式的に示す説明図である。 The inspection process performed in the inspection system 100 will be described with reference to FIGS. 2 and 3. FIG. FIG. 2 is a flowchart of inspection processing. FIG. 3 is an explanatory diagram schematically showing the processing contents of the inspection unit 20 in inspection processing.

ステップS10では、画像取得部10が、検査対象PIを撮像した検査画像を表す検査画像データIDを取得する。画像取得部10は、撮像部12によって検査対象PIを撮像することにより、検査画像を取得し、撮像実行部15によって、その検査画像を表す検査画像データIDを生成して取得する。画像取得部10は、その検査画像データIDを検査部20の画像処理部21に出力する。 In step S10, the image acquisition unit 10 acquires inspection image data ID representing an inspection image of the inspection target PI. The image acquisition unit 10 acquires an inspection image by imaging the inspection target PI with the imaging unit 12 , and generates and acquires inspection image data ID representing the inspection image with the imaging execution unit 15 . The image acquisition section 10 outputs the inspection image data ID to the image processing section 21 of the inspection section 20 .

ステップS20では、検査部20は、以下のように、検査画像データIDに基づいて特定特徴量を特定する。検査部20の画像処理部21は、検査画像データIDを調整部25に入力する。調整部25に入力された検査画像データIDは、そのまま特徴量ニューラルネットワーク26に入力される。特徴量ニューラルネットワーク26は、機械学習により、入力された画像の特徴を解析可能に設計されている。特徴量ニューラルネットワーク26は、入力された検査画像データIDを解析して、ニューラルネットワーク23で用いられる複数の特徴量のうちで欠陥の検出に適した特徴量がいずれであるのかを特定し、その結果を出力する。本明細書では、この特定された特徴量を「特定特徴量」と呼んでいる。 In step S20, the inspection unit 20 identifies the specific feature quantity based on the inspection image data ID as follows. The image processing section 21 of the inspection section 20 inputs the inspection image data ID to the adjustment section 25 . The inspection image data ID input to the adjustment unit 25 is input to the feature amount neural network 26 as it is. The feature amount neural network 26 is designed to be able to analyze the features of the input image by machine learning. The feature quantity neural network 26 analyzes the input inspection image data ID, identifies which of the plurality of feature quantities used in the neural network 23 is suitable for defect detection, and identifies the feature quantity suitable for defect detection. Print the result. In this specification, this identified feature amount is called a "specific feature amount".

特定特徴量は、ニューラルネットワーク23で用いられる複数の特徴量のうちから少なくとも1つが特定される。ニューラルネットワーク23で用いられる複数の特徴量がN個であった場合、n個の特定特徴量が特定される。Nは2以上の任意の自然数であり、nは、Nより小さい任意の自然数である(N>n)。本実施形態では、Nは、50~100の範囲内の自然数としてよく、nは、1~5の範囲内の自然数としてよい。 At least one of a plurality of feature amounts used in the neural network 23 is specified as the specific feature amount. When there are N multiple feature amounts used in the neural network 23, n specific feature amounts are specified. N is any natural number equal to or greater than 2, and n is any natural number smaller than N (N>n). In this embodiment, N may be a natural number within the range of 50-100, and n may be a natural number within the range of 1-5.

ステップS30では、調整部25は、特定特徴量と、特徴量テーブルFVTとを用いて、ニューラルネットワーク23を調整する。特徴量テーブルFVTは、上述したように、後述する学習データ生成システム200において予め生成されているものである。特徴量テーブルFVTには、ニューラルネットワーク23で用いられる複数の特徴量と、その複数の特徴量のそれぞれに対応する関数とが対応付けられている。 In step S30, the adjustment unit 25 adjusts the neural network 23 using the specific feature amount and the feature amount table FVT. As described above, the feature quantity table FVT is generated in advance in the learning data generation system 200, which will be described later. The feature quantity table FVT is associated with a plurality of feature quantities used in the neural network 23 and functions corresponding to each of the plurality of feature quantities.

調整部25は、特定特徴量が出力結果に及ぼす影響が大きくなるように、ニューラルネットワーク23を調整する。これにより、ニューラルネットワーク23では、特定特徴量が、他の特徴量よりも大きく重み付けされて解析が行われることになる。 The adjustment unit 25 adjusts the neural network 23 so that the specific feature amount has a greater influence on the output result. As a result, in the neural network 23, the specific feature amount is weighted more heavily than the other feature amounts, and the analysis is performed.

ステップS40では、検査部20の画像処理部21は、検査画像データIDから複数の分割画像データIDdを生成する。複数の分割画像データIDdは、検査対象PIを撮像した画像を分割した複数の分割画像のそれぞれを表しており、複数の分割画像データIDdは、検査対象PIを撮像した画像を表す検査画像データIDの一態様である。 In step S40, the image processing section 21 of the inspection section 20 generates a plurality of divided image data IDd from the inspection image data ID. The plurality of divided image data IDd represents each of the plurality of divided images obtained by dividing the image of the inspection target PI, and the plurality of divided image data IDd represents the inspection image data ID representing the image of the inspection target PI. It is one aspect of

ステップS50では、検査部20の画像処理部21は、検査画像データIDをニューラルネットワーク23に入力する。本実施形態では、画像処理部21は、ステップS40で生成した複数の分割画像データIDdをニューラルネットワーク23に並列に入力する。これにより、分割前の検査画像が高解像度であったとしても、ニューラルネットワーク23における並列処理により効率的に短時間で検出結果を得ることが可能である。 In step S<b>50 , the image processing section 21 of the inspection section 20 inputs inspection image data ID to the neural network 23 . In this embodiment, the image processing unit 21 inputs the plurality of divided image data IDd generated in step S40 to the neural network 23 in parallel. As a result, even if the inspection image before division has a high resolution, the parallel processing in the neural network 23 can efficiently obtain the detection result in a short time.

図3を参照する。ニューラルネットワーク23の入力層は、入力される分割画像データIDdと同数のノードを有しており、各ノードに1つずつ対応する分割画像データIDdが入力される。また、ニューラルネットワーク23の中間層は、複数の特徴量のそれぞれに対応する複数の層によって構成されている。なお、中間層における各ノードの結合は、上述したように、ステップS30において調整部25によって調整される。ニューラルネットワーク23の出力層は、入力された検査画像データIDが表す画像に検出対象である欠陥の有る可能性を示す値と、当該欠陥がない可能性を示す値とを出力する2つのノードによって構成されている。 Please refer to FIG. The input layer of the neural network 23 has the same number of nodes as the input divided image data IDd, and the divided image data IDd corresponding to each node is input. Further, the intermediate layer of the neural network 23 is composed of a plurality of layers corresponding to each of the plurality of feature quantities. Note that the coupling of each node in the intermediate layer is adjusted by the adjustment unit 25 in step S30 as described above. The output layer of the neural network 23 consists of two nodes that output a value indicating the possibility that the image represented by the input inspection image data ID contains a defect to be detected and a value indicating the possibility that the defect does not exist. It is configured.

ステップS60では、検査部20の出力部28が、入力された検査画像データIDに対してニューラルネットワーク23が出力した出力結果に基づいて、検査対象PIの外面上の欠陥の有無の検査結果を出力する。 In step S60, the output unit 28 of the inspection unit 20 outputs an inspection result as to whether or not there is a defect on the outer surface of the inspection target PI based on the output result output by the neural network 23 for the input inspection image data ID. do.

上記のように、検査処理では、検査部20において、ニューラルネットワーク23に検査画像データIDが入力される前に特定特徴量が重み付けされるように、ニューラルネットワーク23が調整されている。よって、例えば、検査対象PIが金属光沢を有する部品であった場合でも、そうした光沢がある部品の画像に適した特定特徴量が特定され、光沢によってキズの認識がしにくいような場合でも、高い検出精度でキズを検出することが可能になる。このように、ニューラルネットワーク23の中間層におけるノード間の結合が、検査画像データIDに適した状態へと動的に調整されれば、ニューラルネットワーク23による欠陥の検出を効率化でき、欠陥の検出精度を高めることができる。よって、検査システム100による検査対象PIの外面上の欠陥の検出性能が高められる。 As described above, in the inspection process, the neural network 23 is adjusted in the inspection unit 20 so that the specific feature amount is weighted before the inspection image data ID is input to the neural network 23 . Therefore, for example, even if the inspection target PI is a component with metallic luster, a specific feature amount suitable for the image of such a glossy component is specified, and even if it is difficult to recognize a flaw due to the gloss, a high It becomes possible to detect flaws with high detection accuracy. In this way, if the connections between nodes in the intermediate layer of the neural network 23 are dynamically adjusted to a state suitable for the inspection image data ID, the defect detection by the neural network 23 can be made efficient, and the defect detection Accuracy can be improved. Therefore, the detection performance of defects on the outer surface of the inspection object PI by the inspection system 100 is enhanced.

図4は、学習データ生成システム200における特徴量テーブルFVTおよび学習済みモデルTMの生成方法を模式的に示す説明図である。 FIG. 4 is an explanatory diagram schematically showing a method of generating the feature quantity table FVT and the trained model TM in the learning data generation system 200. As shown in FIG.

学習データ生成システム200は、検査システム100によって上述の検査処理を実行する前に、検査部20で使用される学習済みモデルTMと、特徴量テーブルFVTと、を生成する。学習済みモデルTM、および、特徴量テーブルFVTを生成する際には、まず、学習用データセットDSTが準備される。 The learning data generation system 200 generates the learned model TM used by the inspection unit 20 and the feature amount table FVT before the inspection system 100 executes the inspection process described above. When generating the trained model TM and the feature quantity table FVT, first, a learning data set DST is prepared.

学習用データセットDSTには、検査システム100の検出対象となる欠陥の画像を表す複数の学習画像データIDtと、各学習画像データIDtが表す欠陥に対応する情報であるアノテーションデータADと、が含まれる。複数の学習画像データIDtはそれぞれ、形状や位置、写り方等が異なる様々なパターンの欠陥の画像を表している。アノテーションデータADは、欠陥に関する情報として、欠陥にラベル付けするためのラベル情報や、画像上での欠陥の座標などを含んでいる。 The learning data set DST includes a plurality of learning image data IDt representing images of defects to be detected by the inspection system 100, and annotation data AD that is information corresponding to the defects represented by each learning image data IDt. be Each of the plurality of learning image data IDt represents images of various patterns of defects having different shapes, positions, appearances, and the like. The annotation data AD includes, as information about defects, label information for labeling defects, coordinates of defects on an image, and the like.

学習用データセットDSTの各データは、機械学習のための学習用ニューラルネットワーク201に入力される。本実施形態では、機械学習としてディープラーニングが適用される。学習画像データIDtについては、検査部20のニューラルネットワーク23に入力される分割画像データIDdと同様に、複数に分割されて学習用ニューラルネットワーク201に並列に入力される。学習用データセットDSTが学習用ニューラルネットワーク201に入力されることにより、検査部20で用いられる学習済みモデルTMが生成される。 Each piece of data in the learning data set DST is input to a learning neural network 201 for machine learning. In this embodiment, deep learning is applied as machine learning. As with the divided image data IDd input to the neural network 23 of the inspection unit 20, the learning image data IDt is divided into a plurality of pieces and input to the learning neural network 201 in parallel. By inputting the learning data set DST to the learning neural network 201, the trained model TM used in the inspection unit 20 is generated.

また、特徴量テーブルFVTは、学習済みモデルTMを生成した、学習用ニューラルネットワーク201の中間層の出力を用いて生成される。特徴量テーブルFVTは、学習用ニューラルネットワーク201の中間層から出力される、規定された特徴量それぞれに対応する関数によって構成される。検査部20のニューラルネットワーク23の中間層を規定する特徴量がN個である場合、特徴量テーブルFVTは、そのN個の特徴量とN個の関数F~Fとの対応関係を表す情報として生成される。この特徴量テーブルFVTを利用することにより、検査部20では、上述したような特定特徴量に基づくニューラルネットワーク23の調整が可能となる。 Also, the feature amount table FVT is generated using the intermediate layer output of the learning neural network 201 that generated the trained model TM. The feature quantity table FVT is composed of functions corresponding to each defined feature quantity output from the intermediate layer of the learning neural network 201 . When there are N feature quantities that define the intermediate layer of the neural network 23 of the inspection unit 20, the feature quantity table FVT represents the correspondence relationship between the N feature quantities and the N functions F 1 to F N. Generated as information. By using this feature amount table FVT, the inspection unit 20 can adjust the neural network 23 based on the specific feature amount as described above.

以上のように、本実施形態の検査システム100によれば、検査画像データIDの特徴に応じて特定された特定特徴量によって、ニューラルネットワーク23の中間層におけるノードの結合と重み付けが、検査画像データIDに適した状態に動的に調整される。従って、ニューラルネットワーク23による欠陥の検出が効率化されるとともに、欠陥の検出精度が高められる。よって、検査システム100による検査対象PIの外面上の欠陥の検出性能が高められる。 As described above, according to the inspection system 100 of the present embodiment, the connection and weighting of the nodes in the intermediate layer of the neural network 23 are performed by the specific feature amount specified according to the feature of the inspection image data ID. It is dynamically adjusted to the appropriate state for the ID. Therefore, defect detection by the neural network 23 is made more efficient, and defect detection accuracy is enhanced. Therefore, the detection performance of defects on the outer surface of the inspection object PI by the inspection system 100 is enhanced.

2.他の実施形態:
本開示の技術は、上述の実施形態の構成に限定されることはない。例えば、以下のように
改変することが可能である。
2. Other embodiments:
The technology of the present disclosure is not limited to the configurations of the above-described embodiments. For example, it is possible to modify as follows.

(1)上記実施形態の検査システム100において、検査対象PIとして金属部品以外の他の製品の外面上の欠陥の有無が検出されてもよい。例えば、検査対象PIは、プラスチック製の部品やゴム製の部品であってもよいし、部品ではなく、完成品であってもよい。上記実施形態の検査システム100は、外表面のキズ以外の欠陥を検出するものとしてもよい。例えば、検査システム100は、検査対象PIの外面上の歪みや、寸法誤差、色むら、汚損等を検出するものとしてもよい。 (1) In the inspection system 100 of the above-described embodiment, the presence or absence of defects on the outer surface of a product other than metal parts may be detected as the inspection object PI. For example, the PI to be inspected may be a part made of plastic or a part made of rubber, or may be a finished product instead of a part. The inspection system 100 of the above embodiment may detect defects other than scratches on the outer surface. For example, the inspection system 100 may detect distortion, dimensional errors, color unevenness, stains, etc. on the outer surface of the inspection object PI.

(2)上記実施形態の検査システム100において、画像取得部10は省略されてもよい。この場合には、予めシステム外で準備された検査画像データIDが検査部20に入力される構成であってもよい。 (2) In the inspection system 100 of the above embodiment, the image acquisition section 10 may be omitted. In this case, inspection image data ID prepared in advance outside the system may be input to the inspection unit 20 .

(3)上記実施形態の検査システム100は、検査部20が画像処理部21を有していない構成であってもよい。ニューラルネットワーク23には、検査画像データIDが分割されることなく、入力されてもよい。 (3) The inspection system 100 of the above embodiment may be configured such that the inspection section 20 does not have the image processing section 21 . The inspection image data ID may be input to the neural network 23 without being divided.

(4)上記実施形態の検査システム100において、特定特徴量は、特徴量ニューラルネットワーク26以外の手段によって特定されてもよい。例えば、特定特徴量は、検査画像データIDから導出される輝度等のパラメータに対して対応する特定特徴量を出力する予め準備されたマップやテーブル、あるいはパラメータ設定によって特定されてもよい。 (4) In the inspection system 100 of the above embodiment, the specific feature quantity may be specified by means other than the feature quantity neural network 26 . For example, the specific feature amount may be specified by a prepared map or table that outputs a specific feature amount corresponding to a parameter such as brightness derived from the inspection image data ID, or by parameter setting.

(5)上記実施形態において、検査部20のニューラルネットワーク23はディープラーニング以外の機械学習に対応するものであってもよい。また、上記実施形態の検査システム100において、検査部20のニューラルネットワーク23の出力層のノードは2以上であってもよい。ニューラルネットワーク23は、出力結果として、欠陥の有無だけでなく、欠陥の種類を示す出力結果を出力するように構成されていてもよい。 (5) In the above embodiment, the neural network 23 of the inspection unit 20 may be compatible with machine learning other than deep learning. In the inspection system 100 of the above embodiment, the number of nodes in the output layer of the neural network 23 of the inspection unit 20 may be two or more. The neural network 23 may be configured to output not only the presence/absence of a defect but also the type of defect as an output result.

(6)上記実施形態における調整部25によってニューラルネットワーク23を動的に調整する構成は、検査対象の外面上の欠陥の有無を検出する検査システム100以外のシステムに適用されてもよい。例えば、航空写真の画像データから特徴的な建造物を検出するようなシステムに適用されてもよい。 (6) The configuration in which the adjustment unit 25 dynamically adjusts the neural network 23 in the above embodiment may be applied to a system other than the inspection system 100 that detects the presence or absence of defects on the outer surface of the inspection object. For example, it may be applied to a system for detecting characteristic buildings from image data of aerial photographs.

本開示の技術は、検査対象の外面上の欠陥の有無を検出する検査システムおよび検査方法以外の種々の形態で実現することが可能である。例えば、検査システムが組みこまれた製品の生産システムや、検査装置、検査方法を実行する制御ユニット、検査方法を実行するための機能を実現するためのプログラム、そのプログラムが記録された記憶媒体等の形態で実現することも可能である。 The technology of the present disclosure can be implemented in various forms other than inspection systems and inspection methods for detecting the presence or absence of defects on the outer surface of an inspection target. For example, a product production system incorporating an inspection system, an inspection device, a control unit that executes an inspection method, a program for realizing a function for executing the inspection method, a storage medium in which the program is recorded, etc. It is also possible to implement in the form of

10…画像取得部,12…撮像部,15…撮像実行部,20…検査部,21…画像処理部,23…ニューラルネットワーク,25…調整部,26…特徴量ニューラルネットワーク,100…検査システム,200…学習データ生成システム,201…学習用ニューラルネットワーク,AD…アノテーションデータ,DST…学習用データセット,FVT…特徴量テーブル,ID…検査画像データ,IDd…分割画像データ,IDt…学習画像データ,PI…検査対象,TM…学習済みモデル

DESCRIPTION OF SYMBOLS 10... Image acquisition part 12... Imaging part 15... Imaging execution part 20... Inspection part 21... Image processing part 23... Neural network 25... Adjustment part 26... Feature amount neural network 100... Inspection system, 200... learning data generation system, 201... learning neural network, AD... annotation data, DST... learning data set, FVT... feature amount table, ID... inspection image data, IDd... divided image data, IDt... learning image data, PI: inspection target, TM: trained model

Claims (4)

検査対象の外面上の欠陥の有無を検出する検査システムであって、
前記検査対象を撮像した画像を表す検査画像データの入力を受け付け、機械学習によって予め準備された学習済みモデルを用いて、前記検査対象における前記欠陥の有無を出力するニューラルネットワークと、
前記検査画像データに基づいて複数の特徴量のうちから特定された少なくとも1つの特定特徴量と、前記学習済みモデルを作成した学習用ニューラルネットワークの中間層の出力を用いて作成された特徴量テーブルと、を用いて、前記特定特徴量が出力結果に及ぼす影響が大きくなるように、前記ニューラルネットワークを調整する調整部と、
を備える、検査システム。
An inspection system for detecting the presence or absence of defects on the outer surface of an inspection object,
a neural network that receives an input of inspection image data representing an image of the inspection object and outputs the presence or absence of the defect in the inspection object using a trained model prepared in advance by machine learning;
A feature quantity table created using at least one specified feature quantity specified from among a plurality of feature quantities based on the inspection image data and an output of an intermediate layer of a learning neural network that created the trained model. and an adjustment unit that adjusts the neural network so that the specific feature amount has a greater influence on the output result,
An inspection system comprising:
請求項1記載の検査システムであって、
前記調整部は、入力された前記検査画像データに対して、前記複数の特徴量のうちから前記特定特徴量を特定する特徴量ニューラルネットワークを備える、検査システム。
An inspection system according to claim 1,
The inspection system, wherein the adjustment unit includes a feature amount neural network that identifies the specific feature amount from among the plurality of feature amounts for the input inspection image data.
請求項1または請求項2記載の検査システムであって、さらに、
前記検査対象を撮像した画像を分割した複数の分割画像を表す複数の分割画像データを生成する画像処理部を備え、
前記ニューラルネットワークは、前記検査画像データとして、前記複数の分割画像データの並列な入力を受け付け、前記検査対象における前記欠陥の有無を出力する、検査システム。
The inspection system according to claim 1 or claim 2, further comprising:
An image processing unit that generates a plurality of divided image data representing a plurality of divided images obtained by dividing an image obtained by imaging the inspection object,
The inspection system, wherein the neural network receives parallel input of the plurality of divided image data as the inspection image data, and outputs whether or not the defect exists in the inspection target.
検査対象を撮像した画像を表す検査画像データの入力を受け付け、機械学習によって予め準備された学習済みモデルを用いて、前記検査対象における外面上の欠陥の有無を出力するニューラルネットワークを用いて前記検査対象を検査する方法であって、
コンピュータが、前記検査画像データに基づいて複数の特徴量のうちから少なくとも1つの特定特徴量を特定し、前記特定特徴量と、前記学習済みモデルを作成した学習用ニューラルネットワークの中間層の出力を用いて作成された特徴量テーブルと、を用いて、前記特定特徴量が出力結果に及ぼす影響が大きくなるように、前記ニューラルネットワークを調整する工程と、
コンピュータが、調整された前記ニューラルネットワークに、前記検査画像データを入力して、前記検査対象の表面のキズの有無を検出する工程と、
を備える、方法。
The inspection is performed using a neural network that receives input of inspection image data representing an image of an inspection object and outputs whether or not there is a defect on the outer surface of the inspection object using a learned model prepared in advance by machine learning. A method of inspecting an object, comprising:
A computer identifies at least one specific feature quantity from among a plurality of feature quantities based on the inspection image data, and outputs the specific feature quantity and an intermediate layer of the learning neural network that created the trained model. A step of adjusting the neural network by using a feature amount table created using, so that the specific feature amount has a greater influence on the output result;
a computer inputting the inspection image data to the adjusted neural network to detect the presence or absence of scratches on the surface of the inspection target;
A method.
JP2022000791A 2022-01-06 2022-01-06 Inspection system and inspection method detecting presence or absence of defect on external surface of object subjected to inspection Pending JP2023100280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022000791A JP2023100280A (en) 2022-01-06 2022-01-06 Inspection system and inspection method detecting presence or absence of defect on external surface of object subjected to inspection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022000791A JP2023100280A (en) 2022-01-06 2022-01-06 Inspection system and inspection method detecting presence or absence of defect on external surface of object subjected to inspection

Publications (1)

Publication Number Publication Date
JP2023100280A true JP2023100280A (en) 2023-07-19

Family

ID=87201675

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022000791A Pending JP2023100280A (en) 2022-01-06 2022-01-06 Inspection system and inspection method detecting presence or absence of defect on external surface of object subjected to inspection

Country Status (1)

Country Link
JP (1) JP2023100280A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0720141U (en) * 1993-09-21 1995-04-11 松本 輝昭 Cooking stove for barbecue
US5735260A (en) * 1996-04-30 1998-04-07 Hanover Catalog Holdings, Inc. Tile for use with a cooking grill
CN103654446A (en) * 2012-08-31 2014-03-26 广东德豪润达电气股份有限公司 Quick-heating toaster
JP3189881U (en) * 2014-01-23 2014-04-03 株式会社グリーンライフ kitchenware
JP2015084889A (en) * 2013-10-30 2015-05-07 株式会社ロゴスコーポレーション Hearth cover, and barbecue grill having the same
CN105310521A (en) * 2014-07-23 2016-02-10 佛山市南海五蕴家具有限公司 Low-cooking-fume charbroiler

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0720141U (en) * 1993-09-21 1995-04-11 松本 輝昭 Cooking stove for barbecue
US5735260A (en) * 1996-04-30 1998-04-07 Hanover Catalog Holdings, Inc. Tile for use with a cooking grill
CN103654446A (en) * 2012-08-31 2014-03-26 广东德豪润达电气股份有限公司 Quick-heating toaster
JP2015084889A (en) * 2013-10-30 2015-05-07 株式会社ロゴスコーポレーション Hearth cover, and barbecue grill having the same
JP3189881U (en) * 2014-01-23 2014-04-03 株式会社グリーンライフ kitchenware
CN105310521A (en) * 2014-07-23 2016-02-10 佛山市南海五蕴家具有限公司 Low-cooking-fume charbroiler

Similar Documents

Publication Publication Date Title
CN108229526B (en) Network training method, network training device, image processing method, image processing device, storage medium and electronic equipment
JP7004145B2 (en) Defect inspection equipment, defect inspection methods, and their programs
CN114240939B (en) Method, system, equipment and medium for detecting appearance defects of mainboard components
TWI743837B (en) Training data increment method, electronic apparatus and computer-readable medium
US11315233B2 (en) Learning model generating device, and type identification system for generating learning model and using generated learning model to infer type of image defect
CN112534243A (en) Inspection apparatus and method
CN117274258A (en) Method, system, equipment and storage medium for detecting defects of main board image
Valente et al. Print defect mapping with semantic segmentation
CN117636045A (en) Wood defect detection system based on image processing
CN113469944A (en) Product quality inspection method and device and electronic equipment
JP2023100280A (en) Inspection system and inspection method detecting presence or absence of defect on external surface of object subjected to inspection
CN116994049A (en) Full-automatic flat knitting machine and method thereof
CN105354833A (en) Shadow detection method and apparatus
JP7258509B2 (en) Image processing device, image processing method, and image processing program
JPWO2020158630A1 (en) Detector, learner, computer program, detection method and learner generation method
JP2022029262A (en) Image processing apparatus, image processing method, image processing program, and learning device
JP2021051601A (en) Image recognition device, image recognition system, method for recognizing image, and program
JP7270314B1 (en) inspection method, inspection system, neural network
TWI843591B (en) Method for creating flaw image detection model, method for detecting flaw image and electronic device
JP7386287B1 (en) Inspection method and inspection device
US20240020822A1 (en) Teacher data preparation method and preparation device
WO2021229901A1 (en) Image inspection device, image inspection method, and prelearned model generation device
US20220092357A1 (en) Information processing apparatus, information processing method, and storage medium
WO2023171205A1 (en) Appearance inspection system, appearance inspection method, and program
JP2023008416A (en) Abnormality detection system and abnormality detection method