JP2021096124A - Inspection system and inspection program - Google Patents

Inspection system and inspection program Download PDF

Info

Publication number
JP2021096124A
JP2021096124A JP2019226749A JP2019226749A JP2021096124A JP 2021096124 A JP2021096124 A JP 2021096124A JP 2019226749 A JP2019226749 A JP 2019226749A JP 2019226749 A JP2019226749 A JP 2019226749A JP 2021096124 A JP2021096124 A JP 2021096124A
Authority
JP
Japan
Prior art keywords
inspection
trained model
items
cloth
individually
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
JP2019226749A
Other languages
Japanese (ja)
Inventor
太朗 森
Taro Mori
太朗 森
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.)
Arithmer Inc
Original Assignee
Arithmer Inc
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 Arithmer Inc filed Critical Arithmer Inc
Priority to JP2019226749A priority Critical patent/JP2021096124A/en
Publication of JP2021096124A publication Critical patent/JP2021096124A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

To provide an inspection system with which an inspection speed and inspection accuracy are balanced in accordance with the nature of an inspection object or the inspection items to be carried out.SOLUTION: The inspection system executes at least one inspection item among a plurality of set inspection items on an object. The inspection system comprises: a selection unit for selecting, on the basis of a set condition, whether to execute inspection of the object using a general prelearned model having nodes as output layers that indicate inspection results respectively corresponding to the plurality of inspection items, or execute inspection of the object after selecting one or more individual prelearned models that indicate inspection results of one of the plurality of inspection items; and an inspection execution unit for executing inspection of the object by an inspection scheme selected by the selection unit.SELECTED DRAWING: Figure 2

Description

本発明は、検査システムおよび検査プログラムに関する。 The present invention relates to inspection systems and inspection programs.

搬送される検査対象の織布を撮像装置で撮像し、得られた画像から織布の外観異常を検出する装置が知られている(例えば、特許文献1参照)。また、最近では画像を入力して様々な判断結果を出力する学習済みモデルが実用段階に達している。 There is known an apparatus that captures an image of a woven fabric to be inspected to be conveyed with an imaging device and detects an abnormality in the appearance of the woven fabric from the obtained image (see, for example, Patent Document 1). Recently, a trained model that inputs an image and outputs various judgment results has reached the practical stage.

特開平06−102199号公報Japanese Unexamined Patent Publication No. 06-102199

検査対象に対して複数の検査項目を検査する場合に、複数の検査項目に対する判断結果を一度に出力する学習済みモデルを利用すると、学習の不十分さ等の理由により、検査結果の精度が落ちる場合があった。一方で、検査項目ごとに十分に学習した学習済みモデルを個別に利用すると、検査結果の精度は向上するものの、検査項目ごとに検査を繰り返す手間と必要とする時間が増大してしまうという課題があった。 When inspecting multiple inspection items for an inspection target, if a trained model that outputs judgment results for multiple inspection items at once is used, the accuracy of the inspection results will drop due to reasons such as insufficient learning. There was a case. On the other hand, if the trained model that has been sufficiently learned for each test item is used individually, the accuracy of the test result is improved, but there is a problem that the time and effort required to repeat the test for each test item increases. there were.

本発明は、このような問題を解決するためになされたものであり、検査対象の性質や実施すべき検査項目等に応じて、検査速度と検査精度のバランスを図った検査システム等を提供するものである。 The present invention has been made to solve such a problem, and provides an inspection system or the like that balances inspection speed and inspection accuracy according to the nature of an inspection object, inspection items to be performed, and the like. It is a thing.

本発明の第1の態様における検査システムは、設定された複数の検査項目のうち少なくとも一つの検査項目の検査を対象物に対して実行する検査システムであって、設定された条件に基づいて、複数の検査項目のそれぞれに対応する検査結果を示す各ノードを出力層として有する総合学習済みモデルを用いて対象物の検査を実行するか、複数の検査項目のいずれかに対する検査結果を示す個別学習済みモデルの1つ以上を選択して対象物の検査を実行するかを選択する選択部と、選択部で選択された検査手法により対象物の検査を実行する検査実行部とを備える。 The inspection system according to the first aspect of the present invention is an inspection system that executes an inspection of at least one inspection item among a plurality of set inspection items on an object, and is based on the set conditions. Perform an object inspection using a comprehensively trained model that has each node as an output layer that shows the inspection results corresponding to each of the multiple inspection items, or individual learning that shows the inspection results for any of the multiple inspection items. It includes a selection unit that selects one or more of the completed models and selects whether to execute the inspection of the object, and an inspection execution unit that executes the inspection of the object by the inspection method selected by the selection unit.

本発明の第2の態様における検査プログラムは、設定された複数の検査項目のうち少なくとも一つの検査項目の検査を対象物に対して実行する検査プログラムであって、設定された条件に基づいて、複数の検査項目のそれぞれに対応する検査結果を示す各ノードを出力層として有する総合学習済みモデルを用いて対象物の検査を実行するか、複数の検査項目のいずれかに対する検査結果を示す個別学習済みモデルの1つ以上を選択して対象物の検査を実行するかを選択する選択ステップと、選択ステップで選択された検査手法により対象物の検査を実行する検査実行ステップとをコンピュータに実行させる。 The inspection program according to the second aspect of the present invention is an inspection program that executes an inspection of at least one inspection item among a plurality of set inspection items on an object, and is based on the set conditions. Perform an object inspection using a comprehensively trained model that has each node as an output layer that shows the inspection results corresponding to each of the multiple inspection items, or individual learning that shows the inspection results for any of the multiple inspection items. Have the computer perform a selection step that selects one or more of the completed models and selects whether to perform an inspection of the object, and an inspection execution step that executes the inspection of the object by the inspection method selected in the selection step. ..

本発明により、検査対象の性質や実施すべき検査項目等に応じて、検査速度と検査精度のバランスを図った検査システム等を提供することができる。 INDUSTRIAL APPLICABILITY According to the present invention, it is possible to provide an inspection system or the like that balances inspection speed and inspection accuracy according to the nature of an inspection target, inspection items to be performed, and the like.

本実施形態に係る検査システムを含む全体構成を示す概念図である。It is a conceptual diagram which shows the whole structure including the inspection system which concerns on this embodiment. 検査システムの全体構成を示す構成図である。It is a block diagram which shows the whole structure of an inspection system. 総合学習済みモデルの概念図である。It is a conceptual diagram of a comprehensively trained model. 個別学習済みモデルの概念図である。It is a conceptual diagram of an individually trained model. 検査対象物の検査処理を示すフロー図である。It is a flow chart which shows the inspection process of the inspection object.

以下、発明の実施の形態を通じて本発明を説明するが、特許請求の範囲に係る発明を下の実施形態に限定するものではない。また、実施形態で説明する構成の全てが課題を解決するための手段として必須であるとは限らない。 Hereinafter, the present invention will be described through embodiments of the invention, but the invention according to the claims is not limited to the following embodiments. Moreover, not all of the configurations described in the embodiments are indispensable as means for solving the problem.

図1は、本実施形態に係る検査システム10を含む全体構成を示す概念図である。検査システム10は、検査対象物である反物300に対して、外観異常に関する複数の検査項目に関する検査を行う。検査システム10は、主に、システムサーバー100、記憶部110、モニター120、カメラユニット130、および巻取モーター140を備える。 FIG. 1 is a conceptual diagram showing an overall configuration including the inspection system 10 according to the present embodiment. The inspection system 10 inspects the cloth 300, which is the object to be inspected, for a plurality of inspection items related to the appearance abnormality. The inspection system 10 mainly includes a system server 100, a storage unit 110, a monitor 120, a camera unit 130, and a take-up motor 140.

反物300は、巻取モーター140の回転により移送され、一方の巻取軸から他方の巻取軸へ巻き替えられる。巻取モーター140は、それぞれの巻取軸に設けられており、システムサーバー100からの指令により回転する。図においては矢印で示すように、左側の巻取軸から右側の巻取軸へ巻き替える様子を表すが、巻取モーター140を逆回転させると右側の巻取軸から左側の巻取軸へ巻き替えることができる。 The cloth 300 is transferred by the rotation of the take-up motor 140, and is rewound from one take-up shaft to the other take-up shaft. The take-up motor 140 is provided on each take-up shaft and rotates according to a command from the system server 100. In the figure, as shown by the arrow, the state of rewinding from the left winding shaft to the right winding shaft is shown, but when the winding motor 140 is rotated in the reverse direction, it winds from the right winding shaft to the left winding shaft. Can be replaced.

カメラユニット130は、点線で図示するように、移送される反物300の表面の一部を撮像する。カメラユニット130は、撮像した画像信号をシステムサーバー100へ送信する。なお、鮮明な画像を得るために反物300へ照射光を照射しても良い。照射装置は、反物300の性質等に応じて、カメラユニット130側から反物300を照射するように設置する場合と、反対側から照射するように設置する場合とが考えらえる。例えば、反物300に描かれた模様の影響を軽減したいような場合には、反対側から照射すると良い。 The camera unit 130 images a part of the surface of the transferred cloth 300 as shown by the dotted line. The camera unit 130 transmits the captured image signal to the system server 100. In addition, in order to obtain a clear image, the cloth 300 may be irradiated with irradiation light. Depending on the nature of the cloth 300 and the like, the irradiation device may be installed so as to irradiate the cloth 300 from the camera unit 130 side, or may be installed so as to irradiate the cloth 300 from the opposite side. For example, when it is desired to reduce the influence of the pattern drawn on the cloth 300, it is advisable to irradiate from the opposite side.

システムサーバー100は、連続的に取得される画像を逐次処理して、反物300の表面に異常があるかの検査を実行する。本実施形態においては、記憶部110に格納されているニューラルネットワークである学習済みモデルを利用して、異常の有無を検査する。システムサーバー100は、その検査結果をモニター120に表示する。検査作業者は、モニター120を観察することにより、反物300に存在し得る外観異常の有無を確認することができる。 The system server 100 sequentially processes the continuously acquired images and executes an inspection for an abnormality on the surface of the cloth 300. In the present embodiment, the presence or absence of an abnormality is inspected by using a trained model which is a neural network stored in the storage unit 110. The system server 100 displays the inspection result on the monitor 120. By observing the monitor 120, the inspection worker can confirm the presence or absence of an appearance abnormality that may exist in the cloth 300.

図2は、検査システム10の全体構成を示す構成図である。システムサーバー100は、制御とプログラムの実行処理を行うプロセッサ(CPU)101を備え、CPU101は、検査プログラムが指示する処理に応じて様々な演算を実行する機能演算部として、選択部102として機能したり、検査実行部103として機能したりする。 FIG. 2 is a configuration diagram showing the overall configuration of the inspection system 10. The system server 100 includes a processor (CPU) 101 that performs control and program execution processing, and the CPU 101 functions as a selection unit 102 as a functional calculation unit that executes various operations according to a process instructed by an inspection program. Or, it functions as an inspection execution unit 103.

記憶部110は、不揮発性の記憶媒体であり、例えば大容量のHDDによって構成されている。記憶部110は、システムサーバー100の制御や処理を実行するプログラムを格納するほか、検査対象物に関する各種ルックアップテーブルや、カメラユニット130が取得した画像データ等を蓄積する。本実施形態においては、記憶部110は、学習済みのニューラルネットワークである総合学習済みモデル111と、同じく学習済みのニューラルネットワークである複数の個別学習済みモデル112を記憶している。 The storage unit 110 is a non-volatile storage medium, and is composed of, for example, a large-capacity HDD. The storage unit 110 stores a program that executes control and processing of the system server 100, and also stores various look-up tables related to inspection objects, image data acquired by the camera unit 130, and the like. In the present embodiment, the storage unit 110 stores the integrated trained model 111, which is a trained neural network, and a plurality of individually trained models 112, which are also trained neural networks.

総合学習済みモデル111は、カメラユニット130からの画像データを入力する入力層と、複数の検査項目のそれぞれに対応する検査結果を示すノード群から構成される出力層とを有する。すなわち、総合学習済みモデル111は、設定された複数の検査項目について、並列的にそれぞれの結果を出力する単一の学習済みモデルである。個別学習済みモデル112のそれぞれは、カメラユニット130からの画像データを入力する入力層と、複数の検査項目のいずれかに対応する検査結果を示すノードから構成される出力層とを有する。すなわち、個別学習済みモデル112は、検査項目ごとに結果を出力する別個の個別学習済みモデル112a、112b、112c…の集合である。なお、記憶部110は、単体のハードウェアで構成されていなくても良く、例えば、プログラム等を格納する記憶媒体と学習済みモデルを記憶する記憶媒体が別々のハードウェアで構成されても良い。 The comprehensively trained model 111 has an input layer for inputting image data from the camera unit 130 and an output layer composed of a group of nodes showing inspection results corresponding to each of a plurality of inspection items. That is, the integrated trained model 111 is a single trained model that outputs the results of each of the set inspection items in parallel. Each of the individually trained models 112 has an input layer for inputting image data from the camera unit 130 and an output layer composed of nodes showing inspection results corresponding to any of a plurality of inspection items. That is, the individually trained model 112 is a set of separate individually trained models 112a, 112b, 112c ... That output results for each inspection item. The storage unit 110 does not have to be composed of a single piece of hardware. For example, a storage medium for storing a program or the like and a storage medium for storing a learned model may be composed of separate hardware.

モニター120は、例えば液晶パネルを含み、異常検知した画像を表示したり、インタフェース画面を表示したりする。入力デバイス121は、例えばキーボードを含み、検査作業者が検査対象に関する条件を設定したり、検査システムに対する指示を与えたりするために用いられる。カメラユニット130は、CPU101からの指示に応じて撮像を開始し、検査対象である反物300の画像を画像信号に変換してシステムサーバー100へ周期的に送信する。巻取モーター140は、システムサーバー100からの指示に応じて、順回転または逆回転することにより、反物300を一方の巻取軸から他方の巻取軸へ巻き替える。 The monitor 120 includes, for example, a liquid crystal panel, and displays an image in which an abnormality is detected or displays an interface screen. The input device 121 includes, for example, a keyboard, and is used by an inspection worker to set conditions related to an inspection target and give instructions to an inspection system. The camera unit 130 starts imaging in response to an instruction from the CPU 101, converts an image of the cloth 300 to be inspected into an image signal, and periodically transmits the image to the system server 100. The take-up motor 140 rewinds the cloth 300 from one take-up shaft to the other take-up shaft by rotating forward or reverse in response to an instruction from the system server 100.

CPU101が選択部102として機能する場合は、入力デバイス等を介して設定された条件に基づいて、総合学習済みモデル111を用いて反物300の検査を実行するか、個別学習済みモデル112の1つ以上を選択して反物300の検査を実行するかを選択する。また、CPU101が検査実行部103として機能する場合は、選択部102で選択された検査手法により反物300の検査を実行する。具体的な処理については後述する。 When the CPU 101 functions as the selection unit 102, the inspection of the cloth 300 is performed using the comprehensively trained model 111 based on the conditions set via the input device or the like, or one of the individually trained models 112. Select the above to select whether to perform the inspection of the cloth 300. When the CPU 101 functions as the inspection execution unit 103, the inspection of the cloth 300 is executed by the inspection method selected by the selection unit 102. The specific processing will be described later.

図3は、総合学習済みモデル111の概念図である。総合学習済みモデル111は、例えば、教師あり学習で学習された畳み込みニューラルネットワーク(CNN)である。入力層へは、カメラユニット130から送られてきた画像信号を入力画像用に前段処理したフレーム画像データが入力される。出力層は、設定された検査項目のそれぞれに対応するノードが設けられている。ここでは、検査項目として外観異常である「穴あり」「傷あり」「汚れあり」が設定されており、それぞれがノードa、ノードb、ノードcに対応付けられている。 FIG. 3 is a conceptual diagram of the comprehensively trained model 111. The integrated trained model 111 is, for example, a convolutional neural network (CNN) trained by supervised learning. The frame image data obtained by pre-processing the image signal sent from the camera unit 130 for the input image is input to the input layer. The output layer is provided with nodes corresponding to each of the set inspection items. Here, “with holes”, “with scratches”, and “with stains”, which are abnormal appearances, are set as inspection items, and each of them is associated with the node a, the node b, and the node c.

総合学習済みモデル111は、入力した画像データの画像中に、穴があいている領域が存在する確率をノードaに出力する。同様に、傷がある領域が存在する確率をノードbに、汚れがある領域が存在する確率をノードcに出力する。検査実行部103は、これらの出力値を取得し、それぞれが閾値を超えていれば、「穴あり」「傷あり」「汚れあり」と判断する。例えば、閾値として0.8が設定されており、ノードaの出力が0.87であれば、「穴あり」と判断する。それぞれのノードに対する閾値は、学習の程度等に応じて、調整される。 The comprehensively trained model 111 outputs the probability that a region having a hole exists in the image of the input image data to the node a. Similarly, the probability that a scratched area exists is output to the node b, and the probability that a dirty area exists is output to the node c. The inspection execution unit 103 acquires these output values, and if each of them exceeds the threshold value, determines that there are "holes", "scratches", and "dirt". For example, if 0.8 is set as the threshold value and the output of node a is 0.87, it is determined that there is a hole. The threshold value for each node is adjusted according to the degree of learning and the like.

総合学習済みモデル111は、予め正解が紐付けられた教師画像データを大量に学習することにより作成される。具体的には、教師画像データは、穴があいた反物を撮像した画像であれば、ノードaに1が紐付けられており、穴があいていない反物を撮像した画像であれば、ノードaに0が紐付けられている。同様に、傷がある反物を撮像した画像データであれば、ノードbに1が紐付けられており、傷がない反物を撮像した画像であれば、ノードbに0が紐付けられている。また、汚れがある反物を撮像した画像データであれば、ノードcに1が紐付けられており、汚れがない反物を撮像した画像であれば、ノードcに0が紐付けられている。例えば、穴あり、傷なし、汚れありの反物を撮像した画像データについては、ノードa=1、ノードb=0、ノードc=1の正解が予め紐付けられている。このような教師画像データを入力し、その出力と紐付けられた正解との誤差が小さくなるように、例えばバックプロバゲーションの手法によりエッジの重みが調整される。記憶部110に記憶されている総合学習済みモデル111は、このような教師画像データを大量に学習して作成されたものである。 The comprehensively trained model 111 is created by learning a large amount of teacher image data to which the correct answer is associated in advance. Specifically, as for the teacher image data, 1 is associated with node a if the image is an image of a piece of cloth with a hole, and if the image is an image of a piece of cloth without a hole, it is attached to node a. 0 is associated. Similarly, in the case of image data obtained by capturing an image of a piece of cloth with scratches, 1 is associated with node b, and in the case of an image of an image of a piece of cloth without scratches, 0 is associated with node b. Further, in the case of image data obtained by capturing an image of a dirty cloth, 1 is associated with the node c, and in the case of an image obtained by capturing an image of a clean cloth, 0 is associated with the node c. For example, the correct answers of node a = 1, node b = 0, and node c = 1 are linked in advance to the image data obtained by imaging a piece of cloth with holes, no scratches, and dirt. The edge weights are adjusted by, for example, a back propagation method so that the error between the output and the associated correct answer is reduced by inputting such teacher image data. The comprehensively trained model 111 stored in the storage unit 110 is created by learning a large amount of such teacher image data.

図4は、個別学習済みモデル112の概念図である。個別学習済みモデル112のそれぞれも、総合学習済みモデル111と同様に、例えば、教師あり学習で学習された畳み込みニューラルネットワーク(CNN)である。 FIG. 4 is a conceptual diagram of the individually trained model 112. Each of the individually trained models 112, like the integrated trained model 111, is, for example, a convolutional neural network (CNN) trained by supervised learning.

個別学習済みモデルA112aは、検査項目「穴あり」を判定する学習済みモデルである。個別学習済みモデルA112aは、カメラユニット130から送られてきた画像信号を入力画像用に前段処理したフレーム画像データが入力層へ入力されると、入力された画像データの画像中に、穴があいている領域が存在する確率を出力ノードに出力する。個別学習済みモデルA112aの出力層は、単一の出力ノードを有する。検査実行部103は、出力ノードの出力値を取得し、閾値を超えていれば、「穴あり」と判断する。例えば、閾値として0.8が設定されており、出力ノードの出力が0.92であれば、「穴あり」と判断する。 The individually trained model A112a is a trained model that determines the inspection item “with holes”. In the individually trained model A112a, when the frame image data obtained by pre-processing the image signal sent from the camera unit 130 for the input image is input to the input layer, a hole is formed in the image of the input image data. The probability that the existing area exists is output to the output node. The output layer of the individually trained model A112a has a single output node. The inspection execution unit 103 acquires the output value of the output node, and if it exceeds the threshold value, determines that there is a “hole”. For example, if 0.8 is set as the threshold value and the output of the output node is 0.92, it is determined that there is a hole.

個別学習済みモデルA112aは、予め正解が紐付けられた教師画像データを大量に学習することにより作成される。具体的には、教師画像データは、穴があいた反物を撮像した画像であれば、出力ノードとして1が紐付けられており、穴があいていない反物を撮像した画像であれば、0が紐付けられている。このような教師画像データを入力し、その出力と紐付けられた正解との誤差が小さくなるように、例えばバックプロバゲーションの手法によりエッジの重みが調整される。記憶部110に記憶されている個別学習済みモデルA112aは、このような教師画像データを大量に学習して作成されたものである。 The individually trained model A112a is created by learning a large amount of teacher image data to which the correct answer is associated in advance. Specifically, in the teacher image data, 1 is associated as an output node if the image is an image of a piece of cloth with a hole, and 0 is a string if the image is an image of a piece of cloth without a hole. It is attached. The edge weights are adjusted by, for example, a back propagation method so that the error between the output and the associated correct answer is reduced by inputting such teacher image data. The individually trained model A112a stored in the storage unit 110 is created by learning a large amount of such teacher image data.

個別学習済みモデルB112b、個別学習済みモデルC112cも、個別学習済みモデルA112aと同様である。すなわち、個別学習済みモデルB112bは、検査項目「傷あり」を判定する学習済みモデルであり、個別学習済みモデルC112cは、検査項目「汚れあり」を判定する学習済みモデルである。個別学習済みモデルB112bは、カメラユニット130から送られてきた画像信号を入力画像用に前段処理したフレーム画像データが入力層へ入力されると、入力された画像データの画像中に、傷がある領域が存在する確率を出力ノードに出力する。同様に、個別学習済みモデルC112cは、汚れがある領域が存在する確率を出力ノードに出力する。検査実行部103は、出力ノードの出力値を取得し、閾値を超えていれば、「傷あり」、「汚れあり」と判断する。 The individually trained model B112b and the individually trained model C112c are also the same as the individually trained model A112a. That is, the individually trained model B112b is a trained model for determining the inspection item "scratched", and the individually trained model C112c is a trained model for determining the inspection item "dirty". In the individually trained model B112b, when the frame image data obtained by pre-processing the image signal sent from the camera unit 130 for the input image is input to the input layer, there is a scratch in the image of the input image data. Output the probability that the area exists to the output node. Similarly, the individually trained model C112c outputs the probability that a dirty region exists to the output node. The inspection execution unit 103 acquires the output value of the output node, and if it exceeds the threshold value, determines that it is “scratched” or “dirty”.

個別学習済みモデルB112b、個別学習済みモデルC112cも、個別学習済みモデルA112aと同様に、予め正解が紐付けられた教師画像データを大量に学習することにより作成される。記憶部110に記憶されている個別学習済みモデルB112b、個別学習済みモデルC112cは、このように学習して作成されたものである。 The individually trained model B112b and the individually trained model C112c are also created by learning a large amount of teacher image data to which the correct answer is associated in advance, similarly to the individually trained model A112a. The individually trained model B112b and the individually trained model C112c stored in the storage unit 110 are created by learning in this way.

選択部102は、これから検査を行う反物300に対して設定された条件に基づいて、総合学習済みモデル111を用いて反物300の検査を実行するか、個別学習済みモデル112の1つ以上を選択して反物300の検査を実行するかを選択する。総合学習済みモデル111を用いて設定された複数の検査項目を一度に検査する場合と、個別学習済みモデル112の1つ以上を用いていくつかの検査項目を分けて検査する場合の使い分けについて説明する。 The selection unit 102 executes the inspection of the cloth 300 using the comprehensively trained model 111 based on the conditions set for the cloth 300 to be inspected, or selects one or more of the individually trained models 112. Then, select whether to perform the inspection of the cloth 300. Explains how to properly inspect a plurality of inspection items set by using the comprehensively trained model 111 and when inspecting several inspection items separately by using one or more of the individually trained models 112. To do.

上述のように、総合学習済みモデル111は、設定された複数の検査項目の検査結果を一度に出力する。したがって、学習段階においては、検査項目のそれぞれに対応する外観異常が存在する、または外観異常が存在しない、数多くの組み合わせ条件ごとに反物を撮像し、それらに正解を紐づけて教師画像データを準備する必要がある。反物も一種類ではなく、無地、パターン柄、絵柄模様、レース地、厚地等、多種多様に存在するので、それぞれの反物を対象として教師画像データを準備する必要がある。そのため、検査項目ごと、反物の種類ごとにみた場合には、学習できる教師画像データ数が少なくなりがちである。また、学習できる教師画像データ数が多い場合でも、種類の異なる反物を纏めて学習するので、エッジの重みが適切に調整しきれないこともある。すなわち、総合学習済みモデル111は、汎用性が高い一方で、検査結果の精度が十分でない場合もある。 As described above, the comprehensively trained model 111 outputs the inspection results of a plurality of set inspection items at once. Therefore, in the learning stage, the cloth is imaged for each of a large number of combination conditions in which there is an appearance abnormality corresponding to each of the inspection items or there is no appearance abnormality, and the correct answer is associated with them to prepare the teacher image data. There is a need to. There is not only one type of cloth, but there are various kinds such as plain, patterned, patterned, lace, and thick cloth, so it is necessary to prepare teacher image data for each cloth. Therefore, the number of teacher image data that can be learned tends to decrease when viewed for each inspection item and each type of cloth. Further, even when the number of teacher image data that can be learned is large, since different types of cloths are collectively learned, the edge weight may not be adjusted appropriately. That is, while the comprehensively trained model 111 is highly versatile, the accuracy of the test result may not be sufficient.

個別学習済みモデル112のそれぞれは、設定された複数の検査項目のうちのひとつの検査結果を出力する。したがって、そのひとつの外観異常について学習すれば良いので、検査結果の精度向上が望める。また、例えば絵柄模様が描かれた反物など、特殊な種類の反物については、その種類の反物に特化して学習することにより、専用の個別学習済みモデルを作成することもできる。例えば、絵柄模様が描かれた反物の汚れを判定する個別学習済みモデルを作成しても良い。個別学習済みモデル112は、個々の検査項目において高い検査精度を期待できる一方で、検査項目ごとに個別学習済みモデルを切り替えて検査する必要があるので、多くの検査項目を実行する場合にはそれだけ時間を要する。 Each of the individually trained models 112 outputs an inspection result of one of a plurality of set inspection items. Therefore, it is only necessary to learn about one of the appearance abnormalities, and it is expected that the accuracy of the inspection result will be improved. Further, for a special type of cloth such as a cloth on which a pattern is drawn, a dedicated individually trained model can be created by specially learning the cloth of that type. For example, an individually trained model for determining the stain on a piece of cloth on which a pattern is drawn may be created. While the individually trained model 112 can be expected to have high inspection accuracy for each inspection item, it is necessary to switch and inspect the individually trained model for each inspection item, so that is the case when many inspection items are executed. It takes time.

そこで、選択部102は、これから検査を行う反物300に対して設定された条件を確認し、当該条件に相応しい検査手法を選択する。例えば、反物300が無地である一般的な生地として設定されていたり、検査速度重視の設定がされていたりする場合には、選択部102は、総合学習済みモデル111を用いて反物300の検査を実行することを選択する。また、反物300が絵柄模様のある特殊な生地として設定されていたり、検査精度重視の設定がされていたりする場合には、選択部102は、個別学習済みモデル112の1つ以上を用いて反物300の検査を実行することを選択する。 Therefore, the selection unit 102 confirms the conditions set for the cloth 300 to be inspected, and selects an inspection method suitable for the conditions. For example, when the cloth 300 is set as a general cloth that is plain, or the inspection speed is emphasized, the selection unit 102 uses the comprehensively trained model 111 to inspect the cloth 300. Choose to do. Further, when the cloth 300 is set as a special cloth having a pattern or the inspection accuracy is emphasized, the selection unit 102 uses one or more of the individually trained models 112 to be used as the cloth. Choose to perform 300 tests.

特殊な生地が設定されている場合において、そのような特殊な生地を対象として学習した個別学習済みモデルが記憶部110に存在するのであれば、選択部102は、当該個別学習済みモデルを読み出して利用するように指定することもできる。また、検査を実行する検査項目が具体的に指定されている場合には、選択部102は、それらに対応するそれぞれの個別学習済みモデル112を用いて反物300の検査を実行することを選択する。換言すれば、指定されていない検査項目に対応する個別学習済みモデルを選択しない。また、反物300がレース生地として設定されているような場合には、選択部102は、レース地の糸間の隙間が穴と判断されてしまうことを避けるために穴検査用の個別学習済みモデルを除外し、他の検査項目に対応する個別学習済みモデルを選択するようにしても良い。 If a special fabric is set and an individually trained model trained for such a special fabric exists in the storage unit 110, the selection unit 102 reads out the individually trained model. You can also specify to use it. Further, when the inspection items to be inspected are specifically specified, the selection unit 102 selects to inspect the cloth 300 using each of the individually trained models 112 corresponding to them. .. In other words, do not select the individually trained model that corresponds to the unspecified inspection item. Further, when the cloth 300 is set as the lace fabric, the selection unit 102 is an individually trained model for hole inspection in order to prevent the gap between the threads of the lace fabric from being determined as a hole. May be excluded and the individually trained model corresponding to other inspection items may be selected.

次に、検査システム10の一連の検査処理について説明する。図5は、検査対象物である反物300の検査処理を示すフロー図である。フローは、検査作業者が入力デバイス121等を介して反物300に関する情報や検査指示に関する情報を入力した後に、検査開始の指示を行った時点から開始する。 Next, a series of inspection processes of the inspection system 10 will be described. FIG. 5 is a flow chart showing an inspection process of the cloth 300, which is an inspection target. The flow starts from the time when the inspection worker gives an instruction to start the inspection after inputting the information about the cloth 300 and the information about the inspection instruction through the input device 121 or the like.

選択部102は、ステップS101で、検査対象である反物300に対して予め設定された設定条件を取得する。設定条件は、例えば上述のように、反物300の性質や検査方針に関する条件を含む。選択部102は、ステップS102で、取得した設定条件に応じて、総合学習済みモデル111を用いて検査を実行するか、個別学習済みモデル112の1つ以上を選択して検査を実行するかを選択する。選択部102は、いずれかの検査手法を選択したら、その選択結果を検査実行部103へ引き渡す。検査実行部103は、受け取った選択結果に従って、記憶部110から総合学習済みモデル111、または個別学習済みモデル112を読み出す。個別学習済みモデル112を読み出す場合には、対象とする検査項目のうち、これから検査を実行する検査項目に対応する一つの個別学習済みモデルを読み出す。 In step S101, the selection unit 102 acquires preset setting conditions for the cloth 300 to be inspected. The setting conditions include, for example, as described above, conditions relating to the properties of the cloth 300 and the inspection policy. In step S102, the selection unit 102 determines whether to execute the inspection using the comprehensively trained model 111 or to select one or more of the individually trained models 112 and execute the inspection according to the acquired setting conditions. select. When the selection unit 102 selects any of the inspection methods, the selection unit 102 delivers the selection result to the inspection execution unit 103. The inspection execution unit 103 reads out the comprehensively trained model 111 or the individually trained model 112 from the storage unit 110 according to the received selection result. When reading out the individually trained model 112, one of the target inspection items corresponding to the inspection item to be inspected is read out.

検査実行部103は、ステップS103で、反物300の検査を開始する。具体的には、巻取モーター140の駆動を開始し、カメラユニット130による撮像を開始する。検査実行部103は、ステップS104で、カメラユニット130から送られてくる画像信号から生成された画像データを取得する。そして、ステップS103で読み出した学習済みモデルに取得した画像データを入力し、その出力から検査結果を判断する(ステップS106)。その判断が「異常なし」であればステップS107へ進み、「異常あり」であれば、ステップS112へ進む。 The inspection execution unit 103 starts the inspection of the cloth 300 in step S103. Specifically, the winding motor 140 is started to be driven, and the image pickup by the camera unit 130 is started. In step S104, the inspection execution unit 103 acquires the image data generated from the image signal sent from the camera unit 130. Then, the acquired image data is input to the trained model read in step S103, and the inspection result is determined from the output (step S106). If the determination is "no abnormality", the process proceeds to step S107, and if the determination is "abnormal", the process proceeds to step S112.

まず、「異常なし」と判断された場合の処理について説明する。ステップS107へ進んだら、検査実行部103は、検査対象である反物300をすべて巻き取ったか否かを判断する。巻き取り終えていなければ、ステップS104へ戻り、カメラユニット130から更に送られてくる画像信号を用いて、反物300の検査を継続する。巻き取り終えていれば、ステップS108へ進み、巻取モーター140の回転駆動を停止する。 First, the processing when it is determined that there is no abnormality will be described. When the process proceeds to step S107, the inspection execution unit 103 determines whether or not all the cloth 300 to be inspected has been wound up. If the winding is not completed, the process returns to step S104, and the inspection of the cloth 300 is continued using the image signal further sent from the camera unit 130. If the winding is completed, the process proceeds to step S108 to stop the rotational drive of the winding motor 140.

回転駆動を停止したら、ステップS109で、予定された全ての検査項目の検査が完了したか否かを確認する。具体的には、ステップS102で総合学習済みモデル111を用いて検査を実行することが選択されていれば、一度の巻取り作業で全ての検査項目の検査が完了するので、ステップS110へ進む。一方、ステップS102で個別学習済みモデル112の1つ以上を選択して検査を実行することが選択されていれば、まだ検査を実行していない検査項目が残っているかを確認する。残っていなければステップS110へ進み、残っていればステップS111へ進む。 After stopping the rotary drive, in step S109, it is confirmed whether or not the inspections of all the scheduled inspection items have been completed. Specifically, if it is selected in step S102 to execute the inspection using the comprehensively trained model 111, the inspection of all the inspection items is completed by one winding operation, so the process proceeds to step S110. On the other hand, if it is selected in step S102 to select one or more of the individually trained models 112 and execute the inspection, it is confirmed whether or not there are still inspection items for which the inspection has not been executed. If it does not remain, the process proceeds to step S110, and if it remains, the process proceeds to step S111.

ステップS111へ進んだ場合は、検査実行部103は、巻取モーター140の回転方向を反対方向へセットし、ステップS102へ戻る。ステップS102へ戻ったら、検査実行部103は、次に検査を実行する検査項目に対応する一つの個別学習済みモデルを記憶部110から読み出して、当該検査項目の検査を開始する。 If the process proceeds to step S111, the inspection execution unit 103 sets the rotation direction of the take-up motor 140 in the opposite direction, and returns to step S102. After returning to step S102, the inspection execution unit 103 reads out one individually learned model corresponding to the inspection item to be inspected next from the storage unit 110, and starts the inspection of the inspection item.

ステップS110へ進んだ場合には、検査実行部103は、いずれの検査項目に対しても正常であった旨をモニター120へ表示して、一連の検査処理を終了する。 When the process proceeds to step S110, the inspection execution unit 103 displays on the monitor 120 that all the inspection items are normal, and ends a series of inspection processes.

次に、ステップS106で「異常あり」と判断された場合の処理について説明する。ステップS112へ進むと、検査実行部103は、巻取モーター140の回転駆動を停止する。そして、ステップS113で、異常が検知された検査項目と、判断に用いられた画像データの画像をモニター120へ表示して、一連の検査処理を終了する。異常検知直後に反物300の巻取りを停止しているので、検査作業者は、モニター120に表示された画像のみならず、反物300の実際の様子を確認することもできる。なお、モニター120へ表示する画像は、異常個所に強調表示を施したり、正常個所にマスクを施したりする画像処理を行っても良い。また、検査作業者が検査再開の指示を行った場合に、検査を再開する処理フローを採用しても良い。 Next, the process when it is determined that “there is an abnormality” in step S106 will be described. Proceeding to step S112, the inspection execution unit 103 stops the rotational drive of the take-up motor 140. Then, in step S113, the inspection item in which the abnormality is detected and the image of the image data used for the determination are displayed on the monitor 120, and a series of inspection processes are completed. Since the winding of the cloth 300 is stopped immediately after the abnormality is detected, the inspection worker can check not only the image displayed on the monitor 120 but also the actual state of the cloth 300. The image to be displayed on the monitor 120 may be subjected to image processing such as highlighting an abnormal portion or masking a normal portion. Further, when the inspection worker gives an instruction to restart the inspection, a processing flow for restarting the inspection may be adopted.

以上説明した本実施形態においては、総合学習済みモデル111を用いて検査を実行するか、個別学習済みモデル112の1つ以上を選択して検査を実行するかの択一であったが、設定された条件によっては、総合学習済みモデル111を用いて検査を実行した後に、更に個別学習済みモデル112の1つ以上を選択して検査を実行しても良い。例えば、特定の一項目について精度よく検査結果を知りたい場合には、総合学習済みモデル111を用いて検査した後に、当該一項目に対応する個別学習済みモデルを用いて検査し直しても良い。 In the present embodiment described above, there is an option of executing the inspection using the comprehensively trained model 111 or selecting one or more of the individually trained models 112 and executing the inspection. Depending on the conditions given, after performing the test using the comprehensively trained model 111, one or more of the individually trained models 112 may be selected and the test may be performed. For example, when it is desired to know the inspection result accurately for a specific item, the inspection may be performed using the comprehensively trained model 111 and then re-inspected using the individually trained model corresponding to the one item.

また、以上説明した本実施形態においては検査対象を反物300としたが、検査対象はこれに限らない。検査対象は、好ましくは反物のようなシート状、またはフィルム状の素材であって巻き取りながら撮像可能なものであるが、これに限らず、例えば建材のような素材であっても構わない。このようは素材を検査対象とする場合には、カメラユニットを移動させながら素材表面の画像データを取得するように構成しても良い。 Further, in the present embodiment described above, the inspection target is the cloth 300, but the inspection target is not limited to this. The inspection target is preferably a sheet-like or film-like material such as a cloth, which can be imaged while being wound up, but is not limited to this, and may be a material such as a building material. In this way, when the material is to be inspected, the image data on the surface of the material may be acquired while moving the camera unit.

また、以上説明した本実施形態においては穴の有無、傷の有無、および汚れの有無を検査項目の例としたが、これらに加えて、あるいはこれらに置き換えて、別の検査項目を採用することもできる。また、個別学習済みモデルが選択される条件の例として、対象物である反物300の表面に絵柄模様が描かれている場合を説明したが、絵柄模様に限らずパターンが描かれているような場合を条件としても良い。対象物がフィルム状の素材である場合も同様である。 Further, in the present embodiment described above, the presence / absence of holes, the presence / absence of scratches, and the presence / absence of stains are examples of inspection items, but in addition to or in place of these, another inspection item shall be adopted. You can also. Further, as an example of the condition for selecting the individually trained model, the case where the pattern is drawn on the surface of the cloth 300 which is the object is described, but it seems that the pattern is drawn not limited to the pattern. The case may be a condition. The same applies when the object is a film-like material.

10 検査システム、100 システムサーバー、101 CPU、102 選択部、103 検査実行部、110 記憶部、111 総合学習済みモデル、112 個別学習済みモデル、120 モニター、121 入力デバイス、130 カメラユニット、140 巻取モーター、300 反物 10 inspection system, 100 system server, 101 CPU, 102 selection unit, 103 inspection execution unit, 110 storage unit, 111 comprehensively trained model, 112 individually trained model, 120 monitor, 121 input device, 130 camera unit, 140 winding Motor, 300 pieces

Claims (5)

設定された複数の検査項目のうち少なくとも一つの検査項目の検査を対象物に対して実行する検査システムであって、
設定された条件に基づいて、前記複数の検査項目のそれぞれに対応する検査結果を示す各ノードを出力層として有する総合学習済みモデルを用いて前記対象物の検査を実行するか、前記複数の検査項目のいずれかに対する検査結果を示す個別学習済みモデルの1つ以上を選択して前記対象物の検査を実行するかを選択する選択部と、
前記選択部で選択された検査手法により前記対象物の検査を実行する検査実行部と
を備える検査システム。
It is an inspection system that executes inspection of at least one inspection item out of a plurality of set inspection items on an object.
Based on the set conditions, the inspection of the object is executed using the comprehensively trained model having each node showing the inspection result corresponding to each of the plurality of inspection items as an output layer, or the plurality of inspections are performed. A selection unit that selects one or more of the individually trained models showing the inspection results for any of the items and selects whether to perform the inspection of the object.
An inspection system including an inspection execution unit that executes an inspection of the object by an inspection method selected by the selection unit.
前記対象物は、フィルムまたはシートであり、
前記総合学習済みモデルおよび前記個別学習済みモデルは、前記フィルムまたは前記シートを撮像した撮像画像の画像データが入力される請求項1に記載の検査システム。
The object is a film or sheet
The inspection system according to claim 1, wherein the comprehensively trained model and the individually trained model are input with image data of an image captured by capturing the film or the sheet.
前記複数の検査項目は、穴の有無、傷の有無、および汚れの有無を含む請求項2に記載の検査システム。 The inspection system according to claim 2, wherein the plurality of inspection items include the presence / absence of holes, the presence / absence of scratches, and the presence / absence of stains. 前記条件は、前記対象物であるフィルムまたはシートの表面に模様またはパターンが存在する場合に個別学習済みモデルを選択する旨を含む請求項2または3に記載の検査システム。 The inspection system according to claim 2 or 3, wherein the condition includes selecting an individually trained model when a pattern or pattern is present on the surface of the film or sheet which is the object. 設定された複数の検査項目のうち少なくとも一つの検査項目の検査を対象物に対して実行する検査プログラムであって、
設定された条件に基づいて、前記複数の検査項目のそれぞれに対応する検査結果を示す各ノードを出力層として有する総合学習済みモデルを用いて前記対象物の検査を実行するか、前記複数の検査項目のいずれかに対する検査結果を示す個別学習済みモデルの1つ以上を選択して前記対象物の検査を実行するかを選択する選択ステップと、
前記選択ステップで選択された検査手法により前記対象物の検査を実行する検査実行ステップと
をコンピュータに実行させる検査プログラム。
It is an inspection program that executes the inspection of at least one inspection item out of a plurality of set inspection items on the object.
Based on the set conditions, the inspection of the object is executed using the comprehensively trained model having each node showing the inspection result corresponding to each of the plurality of inspection items as an output layer, or the plurality of inspections are performed. A selection step that selects one or more of the individually trained models that show the inspection results for any of the items and selects whether to perform the inspection of the object.
An inspection program that causes a computer to execute an inspection execution step that executes an inspection of the object by the inspection method selected in the selection step.
JP2019226749A 2019-12-16 2019-12-16 Inspection system and inspection program Pending JP2021096124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019226749A JP2021096124A (en) 2019-12-16 2019-12-16 Inspection system and inspection program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019226749A JP2021096124A (en) 2019-12-16 2019-12-16 Inspection system and inspection program

Publications (1)

Publication Number Publication Date
JP2021096124A true JP2021096124A (en) 2021-06-24

Family

ID=76431059

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019226749A Pending JP2021096124A (en) 2019-12-16 2019-12-16 Inspection system and inspection program

Country Status (1)

Country Link
JP (1) JP2021096124A (en)

Similar Documents

Publication Publication Date Title
JP6921241B2 (en) Display screen quality inspection methods, equipment, electronic devices and storage media
US11449980B2 (en) System and method for combined automatic and manual inspection
JP2015172576A5 (en) Method and system for inspection of complex item
US20210149381A1 (en) Learned model generation method
US11658346B2 (en) Information processing method, learned model generation method, and apparatus
JP7191566B2 (en) Product inspection device
KR20210038143A (en) System and method of inspecting object based on artificial intelligence
US20210151786A1 (en) Display method and learned model generation method
US10551369B2 (en) Probabilistic defect detection in laid fiber ribbons
US11521120B2 (en) Inspection apparatus and machine learning method
JP2021096124A (en) Inspection system and inspection program
JP2021143884A (en) Inspection device, inspection method, program, learning device, learning method, and trained dataset
JP2018036279A5 (en)
US11493901B2 (en) Detection of defect in edge device manufacturing by artificial intelligence
CN110178020A (en) Improved glass checks system
JP2022029155A (en) Evaluation system, evaluation method, and evaluation program
WO2022221830A1 (en) Computer vision influencing for non-destructive testing
JP2011154463A (en) Failure analysis device
JP7119949B2 (en) Judgment device and judgment method
JP2022061240A (en) Appearance inspection assistance device, appearance inspection assistance method, and appearance inspection assistance program
JP2005077690A (en) Image forming apparatus and its operation verification method
WO2021166441A1 (en) Inspection device and program
US11790508B2 (en) Computer vision predictions for non-destructive testing
JP5145836B2 (en) Random inspection system
JP7332028B2 (en) Methods, apparatus, computer programs and media containing computer instructions for performing inspection of items