JP6387477B1 - Inspection device, inspection method, and inspection program - Google Patents

Inspection device, inspection method, and inspection program Download PDF

Info

Publication number
JP6387477B1
JP6387477B1 JP2018515903A JP2018515903A JP6387477B1 JP 6387477 B1 JP6387477 B1 JP 6387477B1 JP 2018515903 A JP2018515903 A JP 2018515903A JP 2018515903 A JP2018515903 A JP 2018515903A JP 6387477 B1 JP6387477 B1 JP 6387477B1
Authority
JP
Japan
Prior art keywords
abnormality
determined
partial
partial image
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.)
Active
Application number
JP2018515903A
Other languages
Japanese (ja)
Other versions
JPWO2018235266A1 (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Application granted granted Critical
Publication of JP6387477B1 publication Critical patent/JP6387477B1/en
Publication of JPWO2018235266A1 publication Critical patent/JPWO2018235266A1/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

  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Analytical Chemistry (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

本発明は、起こり得る異常が多様な場合であっても、検査対象物に関する異常の有無を精度良く検出することができる検査装置、検査方法及び検査プログラムを提供することを目的とする。検査装置10は、検査対象物100の画像を複数の第1部分画像に分割する第1分割部と、画像を、複数の第1部分画像とは異なる複数の第2部分画像に分割する第2分割部と、複数の第1部分画像を、異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像に分類する第1分類部と、複数の第2部分画像を、異常が含まれていると判定される第2部分画像と異常が含まれていないと判定される第2部分画像に分類する第2分類部と、異常が含まれていると判定される第1部分画像と、異常が含まれていると判定される第2部分画像との重なりに基づいて、検査対象物100に関する異常の有無を判定する判定部と、を備える。An object of the present invention is to provide an inspection apparatus, an inspection method, and an inspection program capable of accurately detecting the presence / absence of an abnormality related to an inspection object even when there are various abnormalities that may occur. The inspection apparatus 10 includes a first dividing unit that divides the image of the inspection object 100 into a plurality of first partial images, and a second that divides the image into a plurality of second partial images different from the plurality of first partial images. A first classification unit that classifies the plurality of first partial images into a first partial image that is determined to include an abnormality and a first partial image that is determined to include no abnormality; A second classification unit that classifies a plurality of second partial images into a second partial image that is determined to include an abnormality and a second partial image that is determined to include no abnormality; and an abnormality A determination unit that determines whether there is an abnormality related to the inspection object 100 based on an overlap between the first partial image determined to be abnormal and the second partial image determined to include abnormality. .

Description

本発明は、検査装置、検査方法及び検査プログラムに関する。   The present invention relates to an inspection apparatus, an inspection method, and an inspection program.

従来、生産ラインを流れる検査対象物の画像を撮影して、検査対象物に関する異常の有無を検出することがあった。検査対象物の異常は、例えば検査対象物に付いている傷や汚れであったり、検査対象物に混入した異物であったりする。   Conventionally, there has been a case where an image of an inspection object flowing through a production line is taken to detect the presence or absence of an abnormality related to the inspection object. The abnormality of the inspection object is, for example, a scratch or a dirt attached to the inspection object, or a foreign matter mixed in the inspection object.

異常検出に関して、例えば下記特許文献1には、学習済みの第1のニューラルネットワークによって検査対象信号を正常と正常以外とに分類する第1処理部と、学習済みの第2のニューラルネットワークによって、第1処理部により正常以外に分類された検査対象信号から正常以外の領域を含む部分信号を抽出し、部分信号について異常の種類を分類する第2処理部と、を備える検査装置が記載されている。   Regarding abnormality detection, for example, in Patent Document 1 below, a first processing unit that classifies signals to be inspected into normal and non-normal using a learned first neural network, and a learned second neural network, There is described an inspection apparatus including a second processing unit that extracts a partial signal including a region other than normal from an inspection target signal classified as non-normal by one processing unit and classifies the type of abnormality for the partial signal. .

特開2012−26982号公報JP 2012-26982 A

特許文献1に記載の検査装置によれば、第1処理部によって検査対象物に関する異常の有無を検出することができ、第2処理部によって異常の種類を分類することができる。しかしながら、異常の有無の検出精度は、第1処理部によって検査対象信号を正常と正常以外とに分類する分類精度に依存しており、起こり得る異常が多様である場合には、第1処理部の分類精度が十分に高くならず、必ずしも異常の有無の検出精度が高くなかった。   According to the inspection apparatus described in Patent Literature 1, it is possible to detect the presence or absence of abnormality related to the inspection object by the first processing unit, and it is possible to classify the type of abnormality by the second processing unit. However, the detection accuracy of the presence or absence of abnormality depends on the classification accuracy of classifying the inspection target signal into normal and non-normal by the first processing unit, and when there are various possible abnormalities, the first processing unit The classification accuracy was not sufficiently high, and the detection accuracy was not necessarily high.

そこで、本発明は、起こり得る異常が多様な場合であっても、検査対象物に関する異常の有無を精度良く検出することができる検査装置、検査方法及び検査プログラムを提供することを目的とする。   Therefore, an object of the present invention is to provide an inspection apparatus, an inspection method, and an inspection program that can accurately detect the presence or absence of an abnormality related to an inspection object even when there are various abnormalities that may occur.

本発明の一態様に係る検査装置は、検査対象物の画像を複数の第1部分画像に分割する第1分割部と、画像を、複数の第1部分画像とは異なる複数の第2部分画像に分割する第2分割部と、複数の第1部分画像を、異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像に分類する第1分類部と、複数の第2部分画像を、異常が含まれていると判定される第2部分画像と異常が含まれていないと判定される第2部分画像に分類する第2分類部と、異常が含まれていると判定される第1部分画像と、異常が含まれていると判定される第2部分画像との重なりに基づいて、検査対象物に関する異常の有無を判定する判定部と、を備える。   An inspection apparatus according to an aspect of the present invention includes a first division unit that divides an image of an inspection object into a plurality of first partial images, and a plurality of second partial images that are different from the plurality of first partial images. A second division unit that divides the first partial image into a first partial image that is determined to include an abnormality and a first partial image that is determined to include no abnormality. A first classification unit, and a second classification unit that classifies the plurality of second partial images into a second partial image that is determined to include an abnormality and a second partial image that is determined to include no abnormality. The determination unit that determines whether there is an abnormality related to the inspection object based on an overlap between the first partial image that is determined to include abnormality and the second partial image that is determined to include abnormality And comprising.

この態様によれば、画像を複数の第1部分画像と、複数の第1部分画像とは異なる複数の第2部分画像とに分割し、複数の第1部分画像と複数の第2部分画像それぞれに異常が含まれていると判定される場合に、それらの部分画像の重なりに基づいて検査対象物に関する異常の有無を判定することで、誤判定が少なくなり、起こり得る異常が多様な場合であっても、検査対象物に関する異常の有無を精度良く検出することができる。   According to this aspect, the image is divided into a plurality of first partial images and a plurality of second partial images different from the plurality of first partial images, and each of the plurality of first partial images and the plurality of second partial images. When it is determined that there is an abnormality, the presence or absence of an abnormality related to the inspection object is determined based on the overlap of the partial images, thereby reducing misjudgment and various possible abnormalities. Even if it exists, the presence or absence of abnormality relating to the inspection object can be detected with high accuracy.

上記態様において、判定部は、異常が含まれていると判定される第1部分画像と、異常が含まれていると判定される第2部分画像とが重畳する場合に、当該重畳箇所に異常が存在すると判定してもよい。   In the above aspect, when the first partial image that is determined to include an abnormality and the second partial image that is determined to include an abnormality are superimposed, the determination unit includes an abnormality at the overlapping portion. May be determined to exist.

この態様によれば、検査対象物に関する異常の有無のみならず、異常が存在する箇所を精度良く特定することができる。   According to this aspect, not only the presence / absence of an abnormality related to the inspection object but also a location where the abnormality exists can be identified with high accuracy.

上記態様において、判定部は、異常が含まれていると判定される第1部分画像と、異常が含まれていないと判定される第2部分画像とが重畳する場合又は異常が含まれていないと判定される第1部分画像と、異常が含まれていると判定される第2部分画像とが重畳する場合に、当該異常が含まれていると判定される第1部分画像又は当該異常が含まれていると判定される第2部分画像の箇所には異常が存在しないと判定してもよい。   In the above aspect, the determination unit includes a case where the first partial image determined to include an abnormality and a second partial image determined to include no abnormality are superimposed or no abnormality is included. When the first partial image determined to be included and the second partial image determined to include an abnormality are superimposed, the first partial image determined to include the abnormality or the abnormality It may be determined that there is no abnormality in the portion of the second partial image that is determined to be included.

この態様によれば、重畳する第1部分画像及び第2部分画像のいずれか一方に異常が含まれていると判定される場合に、当該異常が含まれていると判定される第1部分画像又は第2部分画像の箇所には異常が存在しないと判定することで、異常の存在の誤判定が防止される。   According to this aspect, when it is determined that an abnormality is included in any one of the first partial image and the second partial image to be superimposed, the first partial image that is determined to include the abnormality. Alternatively, by determining that there is no abnormality at the location of the second partial image, erroneous determination of the presence of abnormality is prevented.

上記態様において、異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像を区別可能に表示し、異常が含まれていると判定される第2部分画像と異常が含まれていないと判定される第2部分画像を区別可能に表示して、画像を表示する表示部をさらに備えてもよい。   In the above aspect, the first partial image that is determined to include an abnormality and the first partial image that is determined to include no abnormality are displayed so as to be distinguishable, and is determined to include an abnormality. You may further provide the display part which displays a 2nd partial image and the 2nd partial image determined not to contain abnormality so that distinction is possible.

この態様によれば、検査対象物のどのような箇所に異常が含まれていると判定されたのか、視覚的に認識することができ、第1分類部及び第2分類部による分類結果を容易に把握することができる。   According to this aspect, it is possible to visually recognize in which part of the inspection object it is determined that the abnormality is included, and the classification result by the first classification unit and the second classification unit can be easily obtained. Can grasp.

上記態様において、表示部は、異常が含まれていると判定される第1部分画像と、異常が含まれていると判定される第2部分画像とを区別可能に表示してもよい。   In the above aspect, the display unit may display the first partial image that is determined to include an abnormality and the second partial image that is determined to include an abnormality so as to be distinguishable.

この態様によれば、第1分類部による分類結果と、第2分類部による分類結果とが視覚的に区別可能に示されることで、第1分類部と第2分類部による分類結果の差異を容易に把握することができる。   According to this aspect, the classification result by the first classification unit and the classification result by the second classification unit are shown to be visually distinguishable, so that the difference between the classification results by the first classification unit and the second classification unit can be determined. It can be easily grasped.

上記態様において、複数の第2部分画像それぞれは、複数の第1部分画像それぞれよりも小さくてもよい。   In the above aspect, each of the plurality of second partial images may be smaller than each of the plurality of first partial images.

この態様によれば、複数の第1部分画像と、複数の第1部分画像それぞれよりも小さい複数の第2部分画像とに異常が含まれているか否か判定することで、異常のサイズや形状が多様である場合であっても、異常の有無及び存在箇所を精度良く判定することができる。   According to this aspect, by determining whether or not an abnormality is included in the plurality of first partial images and the plurality of second partial images smaller than each of the plurality of first partial images, the size and shape of the abnormality Even if there are various cases, it is possible to accurately determine the presence / absence and location of an abnormality.

上記態様において、複数の第2部分画像のうち少なくとも2つは、複数の第1部分画像のうちいずれか1つと重畳してもよい。   In the above aspect, at least two of the plurality of second partial images may overlap with any one of the plurality of first partial images.

この態様によれば、第1部分画像と、第1部分画像に重畳する少なくとも2つの第2部分画像とに異常が含まれているか否か判定することで、異常のサイズや形状が多様である場合であっても、異常の有無及び存在箇所を精度良く判定することができる。   According to this aspect, by determining whether or not an abnormality is included in the first partial image and at least two second partial images superimposed on the first partial image, the size and shape of the abnormality are various. Even if it is a case, the presence or absence and abnormality location of abnormality can be determined accurately.

上記態様において、第1分割部は、複数の第1部分画像が互いに重畳しないように画像を分割し、第2分割部は、複数の第2部分画像が互いに重畳しないように画像を分割してもよい。   In the above aspect, the first dividing unit divides the image so that the plurality of first partial images do not overlap each other, and the second dividing unit divides the image so that the plurality of second partial images do not overlap each other. Also good.

この態様によれば、複数の部分画像の枚数を過度に増大させることなく画像を分割して、検査対象物の異常の有無を判定することができ、第1分類部、第2分類部及び判定部の処理負荷を抑えることができる。   According to this aspect, it is possible to divide an image without excessively increasing the number of partial images, and to determine the presence or absence of an abnormality of the inspection object. The first classification unit, the second classification unit, and the determination The processing load on the part can be suppressed.

上記態様において、第1分類部は、異常が含まれている第1部分画像及び異常が含まれていない第1部分画像を学習用データとして学習された、第1学習済みモデルを含み、第2分類部は、異常が含まれている第2部分画像及び異常が含まれていない第2部分画像を学習用データとして学習された、第2学習済みモデルを含んでもよい。   In the above aspect, the first classifying unit includes a first learned model that has been learned using the first partial image that includes the abnormality and the first partial image that does not include the abnormality as learning data. The classification unit may include a second learned model in which the second partial image including the abnormality and the second partial image including no abnormality are learned as learning data.

この態様によれば、それぞれ異なる学習用データで学習された第1学習済みモデル及び第2学習済みモデルを用いることで、第1分類部と第2分類部とで異なる観点から異常の有無を分類することができる。   According to this aspect, by using the first learned model and the second learned model learned with different learning data, the first classification unit and the second classification unit classify the presence or absence of abnormality from different viewpoints. can do.

本発明の他の態様に係る検査方法は、コンピュータが、検査対象物の画像を複数の第1部分画像に分割するステップと、画像を、複数の第1部分画像とは異なる複数の第2部分画像に分割するステップと、複数の第1部分画像を、異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像に分類するステップと、複数の第2部分画像を、異常が含まれていると判定される第2部分画像と異常が含まれていないと判定される第2部分画像に分類するステップと、異常が含まれていると判定される第1部分画像と、異常が含まれていると判定される第2部分画像との重なりに基づいて、検査対象物に関する異常の有無を判定するステップと、を含む。   An inspection method according to another aspect of the present invention includes a step in which a computer divides an image of an inspection object into a plurality of first partial images, and the plurality of second portions different from the plurality of first partial images. Dividing into a plurality of images; classifying the plurality of first partial images into a first partial image that is determined to include an abnormality and a first partial image that is determined to include no abnormality; When a plurality of second partial images are classified into a second partial image that is determined to include an abnormality and a second partial image that is determined to include no abnormality, and an abnormality is included Determining whether or not there is an abnormality related to the inspection object based on an overlap between the determined first partial image and the second partial image determined to contain an abnormality.

この態様によれば、画像を複数の第1部分画像と、複数の第1部分画像とは異なる複数の第2部分画像とに分割し、複数の第1部分画像と複数の第2部分画像それぞれに異常が含まれていると判定される場合に、それらの部分画像の重なりに基づいて検査対象物に関する異常の有無を判定することで、誤判定が少なくなり、起こり得る異常が多様な場合であっても、検査対象物に関する異常の有無を精度良く検出することができる。   According to this aspect, the image is divided into a plurality of first partial images and a plurality of second partial images different from the plurality of first partial images, and each of the plurality of first partial images and the plurality of second partial images. When it is determined that there is an abnormality, the presence or absence of an abnormality related to the inspection object is determined based on the overlap of the partial images, thereby reducing misjudgment and various possible abnormalities. Even if it exists, the presence or absence of abnormality relating to the inspection object can be detected with high accuracy.

本発明の他の態様に係る検査プログラムは、コンピュータを、検査対象物の画像を複数の第1部分画像に分割する第1分割部、画像を、複数の第1部分画像とは異なる複数の第2部分画像に分割する第2分割部、複数の第1部分画像を、異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像に分類する第1分類部、複数の第2部分画像を、異常が含まれていると判定される第2部分画像と異常が含まれていないと判定される第2部分画像に分類する、第1分類部とは異なる第2分類部、及び異常が含まれていると判定される第1部分画像と、異常が含まれていると判定される第2部分画像との重なりに基づいて、検査対象物に関する異常の有無を判定する判定部、として機能させる。   An inspection program according to another aspect of the present invention includes a computer, a first division unit that divides an image of an inspection object into a plurality of first partial images, and a plurality of first images different from the plurality of first partial images. A second dividing unit that divides the image into two partial images, and classifies the plurality of first partial images into a first partial image that is determined to include an abnormality and a first partial image that is determined to include no abnormality. A first classification unit that classifies a plurality of second partial images into a second partial image that is determined to include an abnormality and a second partial image that is determined to include no abnormality Inspection object based on the second classification part different from the part and the overlap of the first partial image determined to contain the abnormality and the second partial image determined to contain the abnormality It functions as a determination unit that determines whether or not there is an abnormality related to the.

この態様によれば、画像を複数の第1部分画像と、複数の第1部分画像とは異なる複数の第2部分画像とに分割し、複数の第1部分画像と複数の第2部分画像それぞれに異常が含まれていると判定される場合に、それらの部分画像の重なりに基づいて検査対象物に関する異常の有無を判定することで、誤判定が少なくなり、起こり得る異常が多様な場合であっても、検査対象物に関する異常の有無を精度良く検出することができる。   According to this aspect, the image is divided into a plurality of first partial images and a plurality of second partial images different from the plurality of first partial images, and each of the plurality of first partial images and the plurality of second partial images. When it is determined that there is an abnormality, the presence or absence of an abnormality related to the inspection object is determined based on the overlap of the partial images, thereby reducing misjudgment and various possible abnormalities. Even if it exists, the presence or absence of abnormality relating to the inspection object can be detected with high accuracy.

本発明によれば、起こり得る異常が多様な場合であっても、検査対象物に関する異常の有無を精度良く検出することができる検査装置、検査方法及び検査プログラムを提供することができる。   According to the present invention, it is possible to provide an inspection apparatus, an inspection method, and an inspection program that can accurately detect the presence or absence of an abnormality related to an inspection target even if there are various abnormalities that may occur.

本発明の実施形態に係る検査装置のネットワーク構成を示す図である。It is a figure which shows the network structure of the test | inspection apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る検査装置の物理的な構成を示す図である。It is a figure which shows the physical structure of the inspection apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る検査装置の機能ブロック図である。It is a functional block diagram of the inspection apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る検査装置により取得される検査対象物の画像を示す図である。It is a figure which shows the image of the test target object acquired by the test | inspection apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る検査装置により分割された第1部分画像を示す図である。It is a figure which shows the 1st partial image divided | segmented by the test | inspection apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る検査装置により分割された第2部分画像を示す図である。It is a figure which shows the 2nd partial image divided | segmented by the test | inspection apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る検査装置により分割された第3部分画像を示す図である。It is a figure which shows the 3rd partial image divided | segmented by the test | inspection apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る検査装置の表示部に表示される検査対象物の画像を示す図である。It is a figure which shows the image of the test target object displayed on the display part of the test | inspection apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る検査装置により実行される第1処理のフローチャートである。It is a flowchart of the 1st process performed by the test | inspection apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る検査装置により実行される第2処理のフローチャートである。It is a flowchart of the 2nd process performed by the test | inspection apparatus which concerns on embodiment of this invention.

添付図面を参照して、本発明の実施形態について説明する。なお、各図において、同一の符号を付したものは、同一又は同様の構成を有する。   Embodiments of the present invention will be described with reference to the accompanying drawings. In addition, in each figure, what attached | subjected the same code | symbol has the same or similar structure.

図1は、本発明の実施形態に係る検査装置10のネットワーク構成を示す図である。検査装置10は、専用又は汎用のコンピュータであり、例えば、本実施形態に係る検査プログラムがインストールされた汎用のコンピュータであってよい。検査装置10は、通信ネットワークNを介して、学習用画像データベースDB及びカメラ30と接続される。通信ネットワークNは、有線又は無線の通信網であり、例えばLAN(Local Area Network)やインターネットであってよい。   FIG. 1 is a diagram showing a network configuration of an inspection apparatus 10 according to an embodiment of the present invention. The inspection apparatus 10 is a dedicated or general-purpose computer, and may be a general-purpose computer in which the inspection program according to the present embodiment is installed, for example. The inspection apparatus 10 is connected to the learning image database DB and the camera 30 via the communication network N. The communication network N is a wired or wireless communication network, and may be a LAN (Local Area Network) or the Internet, for example.

検査装置10は、カメラ30によって撮影された検査対象物100の画像を、通信ネットワークNを介して取得し、学習済みのモデルによって検査対象物100に異常があるか否かを判定する。ここで、学習済みのモデルとは、例えば学習済みのニューラルネットワークである。検査装置10は、学習用画像データベースDBに格納された画像を用いて、モデルの学習を行う。   The inspection apparatus 10 acquires an image of the inspection object 100 photographed by the camera 30 via the communication network N, and determines whether or not the inspection object 100 is abnormal based on the learned model. Here, the learned model is, for example, a learned neural network. The inspection device 10 learns a model using an image stored in the learning image database DB.

カメラ30は、検査対象物100の画像を撮影する。カメラ30によって撮影された画像の全部又は一部は、学習用画像データベースDBに格納される。カメラ30は、可視光を撮影する一般的なデジタルカメラであってよいが、赤外線やX線等を撮影するカメラであってもよいし、電子顕微鏡等のように光以外によって検査対象物100を撮影するカメラであってもよい。   The camera 30 captures an image of the inspection object 100. All or a part of the images photographed by the camera 30 is stored in the learning image database DB. The camera 30 may be a general digital camera that captures visible light, but may also be a camera that captures infrared rays, X-rays, or the like. It may be a camera for photographing.

図2は、本発明の実施形態に係る検査装置10の物理的な構成を示す図である。検査装置10は、ハードウェアプロセッサに相当するCPU(Central Processing Unit)10aと、メモリに相当するRAM(Random Access Memory)10bと、メモリに相当するROM(Read Only Memory)10cと、通信インタフェース10dと、入力部10eと、表示部10fとを有する。これら各構成は、バスを介して相互にデータ送受信可能に接続される。   FIG. 2 is a diagram illustrating a physical configuration of the inspection apparatus 10 according to the embodiment of the present invention. The inspection apparatus 10 includes a CPU (Central Processing Unit) 10a corresponding to a hardware processor, a RAM (Random Access Memory) 10b corresponding to a memory, a ROM (Read Only Memory) 10c corresponding to a memory, and a communication interface 10d. , An input unit 10e and a display unit 10f. These components are connected to each other via a bus so that data can be transmitted and received.

CPU10aは、RAM10b又はROM10cに記憶されたプログラムの実行に関する制御やデータの演算、加工を行う制御部である。CPU10aは、検査対象物の検査に関するプログラム(検査プログラム)を実行する演算装置である。CPU10aは、入力部10eや通信インタフェース10dから種々の入力データを受け取り、入力データの演算結果を表示部10fに表示したり、RAM10bやROM10cに格納したりする。   The CPU 10a is a control unit that performs control related to execution of a program stored in the RAM 10b or the ROM 10c, and calculates and processes data. The CPU 10a is an arithmetic device that executes a program (inspection program) related to inspection of an inspection object. The CPU 10a receives various input data from the input unit 10e and the communication interface 10d, and displays the calculation result of the input data on the display unit 10f or stores it in the RAM 10b or the ROM 10c.

RAM10bは、データの書き換えが可能な記憶部であり、例えば半導体記憶素子で構成される。RAM10bは、CPU10aが実行するアプリケーション等のプログラムやデータを記憶する。   The RAM 10b is a storage unit in which data can be rewritten, and is composed of, for example, a semiconductor storage element. The RAM 10b stores programs such as applications executed by the CPU 10a and data.

ROM10cは、データの読み出しのみが可能な記憶部であり、例えば半導体記憶素子で構成される。ROM10cは、例えばファームウェア等のプログラムやデータを記憶する。   The ROM 10c is a storage unit that can only read data, and is composed of, for example, a semiconductor storage element. The ROM 10c stores programs such as firmware and data, for example.

通信インタフェース10dは、検査装置10を通信ネットワークNに接続するインタフェースである。   The communication interface 10d is an interface that connects the inspection apparatus 10 to the communication network N.

入力部10eは、ユーザからデータの入力を受け付けるものであり、例えば、キーボードやマウス、タッチパネルで構成される。   The input unit 10e receives data input from the user, and includes, for example, a keyboard, a mouse, and a touch panel.

表示部10fは、CPU10aによる演算結果を視覚的に表示するものであり、例えばLCD(Liquid Crystal Display)により構成される。   The display unit 10f visually displays the calculation result by the CPU 10a, and is configured by an LCD (Liquid Crystal Display), for example.

検査プログラムは、RAM10bやROM10c等のコンピュータによって読み取り可能な記憶媒体に記憶されて提供されてもよいし、通信インタフェース10dにより接続される通信ネットワークNを介して提供されてもよい。検査装置10では、CPU10aが検査プログラムを実行することにより、次図を用いて説明する様々な機能が実現される。なお、これらの物理的な構成は例示であって、必ずしも独立した構成でなくてもよい。例えば、検査装置10は、CPU10aとRAM10bやROM10cが一体化したLSI(Large-Scale Integration)を備えていてもよい。また、検査装置10は、GPU(Graphics Processing Unit)やFPGA(Field-Programmable Gate Array)、ASIC(Application Specific Integrated Circuit)等の演算回路を備えてもよい。   The inspection program may be provided by being stored in a computer-readable storage medium such as the RAM 10b or the ROM 10c, or may be provided via the communication network N connected by the communication interface 10d. In the inspection apparatus 10, various functions described with reference to the following drawings are realized by the CPU 10 a executing the inspection program. In addition, these physical structures are illustrations, Comprising: It does not necessarily need to be an independent structure. For example, the inspection apparatus 10 may include an LSI (Large-Scale Integration) in which a CPU 10a, a RAM 10b, and a ROM 10c are integrated. Further, the inspection apparatus 10 may include an arithmetic circuit such as a GPU (Graphics Processing Unit), an FPGA (Field-Programmable Gate Array), or an ASIC (Application Specific Integrated Circuit).

図3は、本発明の実施形態に係る検査装置10の機能ブロック図である。検査装置10は、取得部11、分割部12、分類部13、判定部14及び学習部16を備える。   FIG. 3 is a functional block diagram of the inspection apparatus 10 according to the embodiment of the present invention. The inspection apparatus 10 includes an acquisition unit 11, a division unit 12, a classification unit 13, a determination unit 14, and a learning unit 16.

取得部11は、通信ネットワークNを介して、カメラ30又は学習用画像データベースDBより、検査対象物100の画像を取得する。   The acquisition unit 11 acquires an image of the inspection object 100 from the camera 30 or the learning image database DB via the communication network N.

分割部12は、第1分割部12a、第2分割部12b及び第3分割部12cを含む。第1分割部12aは、検査対象物100の画像を複数の第1部分画像に分割する。第2分割部12bは、検査対象物100の画像を、複数の第1部分画像とは異なる複数の第2部分画像に分割する。また、第3分割部12cは、検査対象物100の画像を、複数の第1部分画像及び複数の第2部分画像のいずれとも異なる複数の第3部分画像に分割する。   The dividing unit 12 includes a first dividing unit 12a, a second dividing unit 12b, and a third dividing unit 12c. The first dividing unit 12a divides the image of the inspection object 100 into a plurality of first partial images. The second dividing unit 12b divides the image of the inspection object 100 into a plurality of second partial images different from the plurality of first partial images. The third dividing unit 12c divides the image of the inspection object 100 into a plurality of third partial images that are different from any of the plurality of first partial images and the plurality of second partial images.

複数の第2部分画像それぞれは、複数の第1部分画像それぞれよりも小さくてよい。同様に、複数の第3部分画像それぞれは、複数の第2部分画像それぞれよりも小さくてよい。また、複数の第2部分画像のうち少なくとも2つは、複数の第1部分画像のうちいずれか1つと重畳してよい。同様に、複数の第3部分画像のうち少なくとも2つは、複数の第2部分画像のうちいずれか1つと重畳してよい。   Each of the plurality of second partial images may be smaller than each of the plurality of first partial images. Similarly, each of the plurality of third partial images may be smaller than each of the plurality of second partial images. In addition, at least two of the plurality of second partial images may be superimposed on any one of the plurality of first partial images. Similarly, at least two of the plurality of third partial images may be superimposed on any one of the plurality of second partial images.

第1分割部12aは、複数の第1部分画像が互いに重畳しないように検査対象物100の画像を分割してよい。もっとも、第1分割部12aは、複数の第1部分画像のうち全部又は一部が互いに重畳するように検査対象物100の画像を分割してもよい。第2分割部12b及び第3分割部12cについても同様である。   The first dividing unit 12a may divide the image of the inspection object 100 so that the plurality of first partial images do not overlap each other. However, the first dividing unit 12a may divide the image of the inspection object 100 so that all or some of the plurality of first partial images overlap each other. The same applies to the second dividing unit 12b and the third dividing unit 12c.

より具体的には、本実施形態に係る分割部12は、検査対象物100の画像を矩形の部分画像に分割する。ここで、第1部分画像の長辺及び短辺は、それぞれ第2部分画像の長辺及び短辺より長く、第2部分画像の長辺及び短辺は、それぞれ第3部分画像の長辺及び短辺より長くてよい。もっとも、分割部12は、検査対象物100の画像を、矩形以外の形状、例えば多角形や楕円等の形状を有する部分画像に分割してもよい。なお、本実施形態に係る分割部12は、検査対象物100の画像を3種類の部分画像に分割するが、分割部12は、検査対象物100の画像を少なくとも2種類の部分画像に分割すればよく、4種類以上の部分画像に分割してもよい。   More specifically, the dividing unit 12 according to the present embodiment divides the image of the inspection object 100 into rectangular partial images. Here, the long side and short side of the first partial image are longer than the long side and short side of the second partial image, respectively, and the long side and short side of the second partial image are respectively long side and short side of the third partial image. It may be longer than the short side. But the division part 12 may divide | segment the image of the test object 100 into the partial images which have shapes other than a rectangle, for example, shapes, such as a polygon and an ellipse. The dividing unit 12 according to the present embodiment divides the image of the inspection object 100 into three types of partial images, but the dividing unit 12 divides the image of the inspection object 100 into at least two types of partial images. What is necessary is just to divide | segment into four or more types of partial images.

分類部13は、第1分類部13a、第2分類部13b及び第3分類部13cを含む。第1分類部13aは、複数の第1部分画像を、異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像に分類する。第2分類部13bは、複数の第2部分画像を、異常が含まれていると判定される第2部分画像と異常が含まれていないと判定される第2部分画像に分類する。また、第3分類部13cは、複数の第3部分画像を、異常が含まれていると判定される第3部分画像と異常が含まれていないと判定される第3部分画像に分類する。   The classification unit 13 includes a first classification unit 13a, a second classification unit 13b, and a third classification unit 13c. The first classification unit 13a classifies the plurality of first partial images into a first partial image that is determined to include abnormality and a first partial image that is determined to include no abnormality. The second classification unit 13b classifies the plurality of second partial images into a second partial image that is determined to include abnormality and a second partial image that is determined to include no abnormality. The third classification unit 13c classifies the plurality of third partial images into a third partial image that is determined to include an abnormality and a third partial image that is determined to include no abnormality.

第1分類部13aは、異常が含まれている第1部分画像及び異常が含まれていない第1部分画像を学習用データとして学習された、第1学習済みモデルを含んでよい。また、第2分類部13bは、異常が含まれている第2部分画像及び異常が含まれていない第2部分画像を学習用データとして学習された、第2学習済みモデルを含んでよい。同様に、第3分類部13cは、異常が含まれている第3部分画像及び異常が含まれていない第3部分画像を学習用データとして学習された、第3学習済みモデルを含んでよい。ここで、第1学習済みモデル、第2学習済みモデル及び第3学習済みモデルは、共通のモデルを異なる学習用データで学習した学習済みモデルであってもよいし、異なるモデルを異なる学習用データで学習した学習済みモデルであってもよい。第1学習済みモデル、第2学習済みモデル及び第3学習済みモデルは、例えば、学習済みのニューラルネットワークであってよいが、サポートベクターマシン等の任意のモデルであってよい。   The first classification unit 13a may include a first learned model in which a first partial image including abnormality and a first partial image not including abnormality are learned as learning data. Further, the second classification unit 13b may include a second learned model in which a second partial image including an abnormality and a second partial image including no abnormality are learned as learning data. Similarly, the third classification unit 13c may include a third learned model in which a third partial image that includes an abnormality and a third partial image that does not include an abnormality are learned as learning data. Here, the first learned model, the second learned model, and the third learned model may be learned models obtained by learning a common model with different learning data, or different models may be different learning data. It may be a learned model learned in (1). The first learned model, the second learned model, and the third learned model may be, for example, a learned neural network, but may be any model such as a support vector machine.

なお、分類部13は、学習済みモデルを含まないものであってもよく、所定の方法で部分画像に異常が含まれているか否かを分類するものであってもよい。例えば、分類部13は、部分画像に基づいて評価値を算出して、評価値と閾値を比較することで、異常が含まれている部分画像と異常が含まれていない部分画像を分類するものであってもよい。   Note that the classification unit 13 may not include the learned model, or may classify whether or not the partial image includes abnormality by a predetermined method. For example, the classification unit 13 calculates an evaluation value based on a partial image, and compares the evaluation value with a threshold value to classify a partial image that includes an abnormality and a partial image that does not include the abnormality. It may be.

学習部16は、学習用画像データベースDBから学習用の第1部分画像、第2部分画像及び第3部分画像を取得して、第1分類部13a、第2分類部13b及び第3分類部13cをそれぞれ学習させる。ここで、学習とは、学習用データを分類部13に入力し、出力された結果の正誤に基づいて分類部13の構成を修正することで、分類部13による分類精度を向上させていくことをいう。具体的には、第1分類部13a、第2分類部13b及び第3分類部13cがニューラルネットワークを含む場合、学習部16は、学習用データとして学習用の第1部分画像、第2部分画像及び第3部分画像を第1分類部13a、第2分類部13b及び第3分類部13cにそれぞれ入力し、異常が含まれている部分画像と異常が含まれていない部分画像とを正しく分類できたかを評価する値に基づいて、当該評価値を向上させるように、ニューラルネットワークに含まれるユニットの重み付けを最適化する。   The learning unit 16 acquires the first partial image, the second partial image, and the third partial image for learning from the learning image database DB, and the first classification unit 13a, the second classification unit 13b, and the third classification unit 13c. To learn each. Here, learning is to improve the classification accuracy of the classification unit 13 by inputting learning data to the classification unit 13 and correcting the configuration of the classification unit 13 based on the correctness of the output result. Say. Specifically, when the first classification unit 13a, the second classification unit 13b, and the third classification unit 13c include a neural network, the learning unit 16 uses the first partial image and the second partial image for learning as learning data. And the third partial image can be input to the first classification unit 13a, the second classification unit 13b, and the third classification unit 13c, respectively, so that the partial image including the abnormality and the partial image not including the abnormality can be correctly classified. Based on the value for evaluating whether or not, the weighting of the units included in the neural network is optimized so as to improve the evaluation value.

判定部14は、異常が含まれていると判定される第1部分画像と、異常が含まれていると判定される第2部分画像との重なりに基づいて、検査対象物100に関する異常の有無を判定する。判定部14は、少なくとも2種類の部分画像の重なりに基づいて、検査対象物100に関する異常の有無を判定してよいが、異常が含まれていると判定される第1部分画像と、異常が含まれていると判定される第2部分画像と、異常が含まれていると判定される第3部分画像との重なりに基づいて、検査対象物100に関する異常の有無を判定してもよい。   The determination unit 14 determines whether or not there is an abnormality related to the inspection object 100 based on the overlap between the first partial image that is determined to include abnormality and the second partial image that is determined to include abnormality. Determine. The determination unit 14 may determine the presence / absence of an abnormality related to the inspection object 100 based on the overlap of at least two types of partial images, but the first partial image determined to include an abnormality and the abnormality Based on the overlap between the second partial image that is determined to be included and the third partial image that is determined to be abnormal, the presence / absence of an abnormality related to the inspection object 100 may be determined.

判定部14は、異常が含まれていると判定される第1部分画像と、異常が含まれていると判定される第2部分画像とが重畳する場合に、当該重畳箇所に異常が存在すると判定してよい。判定部14は、少なくとも2種類の部分画像について、異常が含まれている部分画像が重畳する場合に、当該重畳箇所に異常が存在すると判定してよいが、異常が含まれていると判定される第1部分画像と、異常が含まれていると判定される第2部分画像と、異常が含まれていると判定される第3部分画像とが重畳する場合に、当該重畳箇所に異常が存在すると判定してもよい。   When the first partial image that is determined to include an abnormality and the second partial image that is determined to include an abnormality are superimposed, the determination unit 14 has an abnormality at the overlapping portion. You may judge. The determination unit 14 may determine that an abnormality exists in the superimposed portion when a partial image including abnormality is superimposed on at least two types of partial images, but is determined to include abnormality. The first partial image, the second partial image that is determined to contain an abnormality, and the third partial image that is determined to contain an abnormality are superimposed on each other. You may determine that it exists.

また、判定部14は、異常が含まれていると判定される第1部分画像と、異常が含まれていないと判定される第2部分画像とが重畳する場合又は異常が含まれていないと判定される第1部分画像と、異常が含まれていると判定される第2部分画像とが重畳する場合に、当該異常が含まれていると判定される第1部分画像又は当該異常が含まれていると判定される第2部分画像の箇所には異常が存在しないと判定してよい。判定部14は、重畳する少なくとも2種類の部分画像について、いずれか一方の部分画像に異常が含まれており、他方の部分画像に異常が含まれていない場合に、当該異常が含まれていると判定される箇所には異常が存在しないと判定してよいが、重畳する3種類以上の部分画像について、いずれか1種類の部分画像に異常が含まれているが、他の種類の部分画像に異常が含まれていない場合に、当該異常が含まれていると判定される箇所には異常が存在しないと判定してもよい。   In addition, the determination unit 14 superimposes the first partial image determined to include an abnormality and the second partial image determined to include no abnormality or no abnormality. When the first partial image to be determined overlaps with the second partial image to be determined to include an abnormality, the first partial image to be determined to include the abnormality or the abnormality is included. It may be determined that there is no abnormality in the portion of the second partial image that is determined to be. The determination unit 14 includes an abnormality when at least two types of superimposed partial images include an abnormality in one of the partial images and the other partial image does not include the abnormality. It may be determined that there is no abnormality in the portion determined to be, but for any of the three or more types of partial images to be superimposed, any one type of partial image includes an abnormality, but other types of partial images If no abnormality is included in the case, it may be determined that there is no abnormality at a place where it is determined that the abnormality is included.

表示部10fは、異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像を区別可能に表示し、異常が含まれていると判定される第2部分画像と異常が含まれていないと判定される第2部分画像を区別可能に表示して、検査対象物100の画像を表示する。また、表示部10fは、異常が含まれていると判定される第3部分画像と異常が含まれていないと判定される第3部分画像を区別可能に表示して、検査対象物100の画像を表示してよい。さらに、表示部10fは、異常が含まれていると判定される第1部分画像と、異常が含まれていると判定される第2部分画像とを区別可能に表示し、異常が含まれていると判定される第1部分画像及び異常が含まれていると判定される第2部分画像と、異常が含まれていると判定される第3部分画像とを区別可能に表示してよい。   The display unit 10f displays the first partial image that is determined to include an abnormality and the first partial image that is determined to include no abnormality so as to be distinguishable, and is determined to include an abnormality. The second partial image and the second partial image that is determined not to include an abnormality are displayed so as to be distinguishable, and an image of the inspection object 100 is displayed. In addition, the display unit 10f displays the third partial image that is determined to include an abnormality and the third partial image that is determined to include no abnormality so as to be distinguishable. May be displayed. Further, the display unit 10f displays the first partial image that is determined to include an abnormality and the second partial image that is determined to include an abnormality so as to be distinguishable. The first partial image that is determined to be present and the second partial image that is determined to include the abnormality may be displayed in a distinguishable manner from the third partial image that is determined to include the abnormality.

図4は、本発明の実施形態に係る検査装置10により取得される検査対象物100の画像Pを示す図である。画像Pは、検査対象物100を所定の方向から撮影した画像である。本例では、画像Pは、検査対象物100に傷Sが付いていることを示しており、検査対象物100に異常が有る場合を示している。なお、本例では、一枚の画像Pにより検査対象物100に異常が有るか否かを判定する場合について説明するが、検査装置10は、検査対象物100に関する複数の画像に基づいて、検査対象物100に異常が有るか否かを判定してもよい。   FIG. 4 is a diagram showing an image P of the inspection object 100 acquired by the inspection apparatus 10 according to the embodiment of the present invention. The image P is an image obtained by photographing the inspection object 100 from a predetermined direction. In this example, the image P indicates that the inspection object 100 has a scratch S, and the inspection object 100 has an abnormality. In this example, a case where it is determined whether there is an abnormality in the inspection target object 100 using one image P will be described. However, the inspection apparatus 10 performs an inspection based on a plurality of images related to the inspection target object 100. You may determine whether the target object 100 has abnormality.

図5は、本発明の実施形態に係る検査装置10により分割された第1部分画像P1を示す図である。本例において、第1分割部12aは、画像Pを16枚の第1部分画像P1に分割する。第1部分画像P1は、矩形の画像であり、互いに重畳しない。複数の第1部分画像P1が互いに重畳しないように画像Pを分割することで、複数の第1部分画像P1の枚数を過度に増大させることなく、検査対象物100の異常の有無を判定することができ、第1分類部13aの処理負荷を抑えることができる。   FIG. 5 is a diagram showing the first partial image P1 divided by the inspection apparatus 10 according to the embodiment of the present invention. In the present example, the first dividing unit 12a divides the image P into 16 first partial images P1. The first partial images P1 are rectangular images and do not overlap each other. By dividing the image P so that the plurality of first partial images P1 do not overlap each other, the presence or absence of abnormality of the inspection object 100 is determined without excessively increasing the number of the plurality of first partial images P1. And the processing load on the first classification unit 13a can be suppressed.

第1分類部13aは、16枚の第1部分画像P1を、異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像に分類する。本例の場合、第1分類部13aは、16枚の第1部分画像P1のうち1枚の第1部分画像に異常が含まれていると判定し、他の15枚の第1部分画像には異常が含まれていないと判定する。   The first classification unit 13a classifies the 16 first partial images P1 into a first partial image that is determined to include an abnormality and a first partial image that is determined to include no abnormality. In the case of this example, the first classification unit 13a determines that one of the 16 first partial images P1 includes an abnormality, and adds the other 15 first partial images to the first partial image P1. Determines that no abnormality is included.

表示部10fは、異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像を区別可能に表示する。本例の場合、表示部10fは、異常が含まれていると判定される第1部分画像P1aを、第1種のハッチングによって強調して示し、異常が含まれていないと判定される第1部分画像P1を、破線による枠線で示している。これにより、検査対象物100のどのような箇所に異常が含まれていると判定されたのか、視覚的に認識することができ、第1分類部13aによる分類結果を容易に把握することができる。なお、表示部10fによって異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像を区別可能に表示する態様は任意であり、異常が含まれていると判定される第1部分画像P1aのハッチング表示を透過処理して傷Sが視認可能なように表示してもよい。   The display unit 10f displays the first partial image determined to contain an abnormality and the first partial image determined to contain no abnormality so as to be distinguishable. In the case of this example, the display unit 10f highlights the first partial image P1a determined to include an abnormality by first type hatching, and determines that the abnormality is not included in the first partial image P1a. The partial image P1 is indicated by a broken line. Thereby, it is possible to visually recognize at which part of the inspection object 100 it is determined that the abnormality is included, and it is possible to easily grasp the classification result by the first classification unit 13a. . In addition, the aspect which displays so that the 1st partial image determined that abnormality is contained by the display part 10f and the 1st partial image determined that abnormality is not included is arbitrary, and abnormality is included. Alternatively, the hatched display of the first partial image P1a determined to be transparent may be subjected to a transparent process so that the scratch S can be visually recognized.

図6は、本発明の実施形態に係る検査装置10により分割された第2部分画像P2を示す図である。本例において、第2分割部12bは、画像Pを25枚の第2部分画像P2に分割する。第2部分画像P2は、矩形の画像であり、互いに重畳しない。複数の第2部分画像P2が互いに重畳しないように画像Pを分割することで、複数の第2部分画像P2の枚数を過度に増大させることなく、検査対象物100の異常の有無を判定することができ、第2分類部13bの処理負荷を抑えることができる。   FIG. 6 is a diagram showing the second partial image P2 divided by the inspection apparatus 10 according to the embodiment of the present invention. In this example, the second dividing unit 12b divides the image P into 25 second partial images P2. The second partial image P2 is a rectangular image and does not overlap each other. By dividing the image P so that the plurality of second partial images P2 do not overlap each other, the presence or absence of abnormality of the inspection object 100 is determined without excessively increasing the number of the plurality of second partial images P2. And the processing load on the second classification unit 13b can be suppressed.

また、第2部分画像P2は、第1部分画像P1よりも小さく、第2部分画像P2のうち少なくとも2つは、複数の第1部分画像P1のうちいずれか1つと重畳する。第1部分画像P1と、第1部分画像P1に重畳する少なくとも2つの第2部分画像P2とに異常が含まれているか否か判定することで、異常のサイズや形状が多様である場合であっても、異常の有無及び存在箇所を精度良く判定することができる。   The second partial image P2 is smaller than the first partial image P1, and at least two of the second partial images P2 overlap with any one of the plurality of first partial images P1. This is a case where the size and shape of the abnormality are various by determining whether or not the abnormality is included in the first partial image P1 and at least two second partial images P2 superimposed on the first partial image P1. However, the presence / absence and presence of abnormality can be determined with high accuracy.

第2分類部13bは、25枚の第2部分画像P2を、異常が含まれていると判定される第2部分画像と異常が含まれていないと判定される第2部分画像に分類する。本例の場合、第2分類部13bは、25枚の第2部分画像P2のうち3枚の第2部分画像に異常が含まれていると判定し、他の22枚の第2部分画像には異常が含まれていないと判定する。   The second classification unit 13b classifies the 25 second partial images P2 into a second partial image that is determined to include abnormality and a second partial image that is determined to include no abnormality. In the case of this example, the second classification unit 13b determines that an abnormality is included in three second partial images out of the 25 second partial images P2, and includes the other 22 second partial images. Determines that no abnormality is included.

表示部10fは、異常が含まれていると判定される第2部分画像と異常が含まれていないと判定される第2部分画像を区別可能に表示する。本例の場合、表示部10fは、異常が含まれていると判定される第2部分画像P2a,P2b,P2cを、第2種のハッチングによって強調して示し、異常が含まれていないと判定される第2部分画像P2を、破線による枠線で示している。これにより、検査対象物100のどのような箇所に異常が含まれていると判定されたのか、視覚的に認識することができ、第2分類部13bによる分類結果を容易に把握することができる。   The display unit 10f displays the second partial image determined to include an abnormality and the second partial image determined to include no abnormality so as to be distinguishable. In the case of this example, the display unit 10f shows the second partial images P2a, P2b, and P2c, which are determined to include an abnormality, as highlighted by the second type of hatching, and determines that no abnormality is included. The second partial image P2 to be performed is indicated by a broken line. Thereby, it is possible to visually recognize in which part of the inspection object 100 it is determined that the abnormality is included, and it is possible to easily grasp the classification result by the second classification unit 13b. .

また、表示部10fは、異常が含まれていると判定される第1部分画像P1aと、異常が含まれていると判定される第2部分画像P2a,P2b,P2cとを区別可能に表示する。具体的には、表示部10fは、異常が含まれていると判定される第1部分画像P1aを第1種のハッチングで示したが、異常が含まれていると判定される第2部分画像P2a,P2b,P2cを第2種のハッチングで示す。   In addition, the display unit 10f displays the first partial image P1a that is determined to include an abnormality and the second partial images P2a, P2b, and P2c that are determined to include an abnormality so as to be distinguishable. . Specifically, the display unit 10f indicates the first partial image P1a that is determined to include an abnormality with the first type of hatching, but the second partial image that is determined to include an abnormality. P2a, P2b, and P2c are indicated by the second type of hatching.

第2分類部13bによって異常が含まれていると判定される第2部分画像P2b,P2cには、実際には異常が含まれていない。このような場合であっても、後に詳細に説明するように、検査装置10は、異常が含まれていると判定される第2部分画像P2b,P2cの箇所に異常が存在するとは判定せず、異常の有無を正しく判定することができる。   The second partial images P2b and P2c that are determined to include an abnormality by the second classification unit 13b do not actually include an abnormality. Even in such a case, as will be described in detail later, the inspection apparatus 10 does not determine that there is an abnormality at the location of the second partial images P2b and P2c that are determined to include the abnormality. The presence or absence of abnormality can be correctly determined.

図7は、本発明の実施形態に係る検査装置10により分割された第3部分画像P3を示す図である。本例において、第3分割部12cは、画像Pを64枚の第3部分画像P3に分割する。第3部分画像P3は、矩形の画像であり、互いに重畳しない。複数の第3部分画像P3が互いに重畳しないように画像Pを分割することで、複数の第3部分画像P3の枚数を過度に増大させることなく、検査対象物100の異常の有無を判定することができ、第3分類部13cの処理負荷を抑えることができる。   FIG. 7 is a diagram showing a third partial image P3 divided by the inspection apparatus 10 according to the embodiment of the present invention. In this example, the third dividing unit 12c divides the image P into 64 third partial images P3. The third partial image P3 is a rectangular image and does not overlap each other. By dividing the image P so that the plurality of third partial images P3 do not overlap each other, the presence or absence of abnormality of the inspection object 100 is determined without excessively increasing the number of the plurality of third partial images P3. And the processing load of the third classification unit 13c can be suppressed.

また、第3部分画像P3は、第1部分画像P1及び第2部分画像P2よりも小さく、第3部分画像P3のうち少なくとも2つは、複数の第1部分画像P1のうちいずれか1つと重畳し、複数の第2部分画像P2のうちいずれか1つと重畳する。第1部分画像P1及び第2部分画像P2と、第1部分画像P1及び第2部分画像P2に重畳する少なくとも2つの第3部分画像P3とに異常が含まれているか否か判定することで、異常のサイズや形状が多様である場合であっても、異常の有無及び存在箇所を精度良く判定することができる。   Further, the third partial image P3 is smaller than the first partial image P1 and the second partial image P2, and at least two of the third partial images P3 are superimposed on any one of the plurality of first partial images P1. And it superimposes with any one among several 2nd partial images P2. By determining whether or not an abnormality is included in the first partial image P1 and the second partial image P2 and at least two third partial images P3 superimposed on the first partial image P1 and the second partial image P2, Even when there are various sizes and shapes of abnormalities, it is possible to accurately determine the presence / absence and location of the abnormality.

第3分類部13cは、64枚の第3部分画像P3を、異常が含まれていると判定される第3部分画像と異常が含まれていないと判定される第3部分画像に分類する。本例の場合、第3分類部13cは、64枚の第3部分画像P3のうち4枚の第3部分画像に異常が含まれていると判定し、他の60枚の第3部分画像には異常が含まれていないと判定する。   The third classification unit 13c classifies the 64 third partial images P3 into a third partial image that is determined to include abnormality and a third partial image that is determined to include no abnormality. In the case of this example, the third classification unit 13c determines that the abnormality is included in the four third partial images out of the 64 third partial images P3, and includes the other 60 third partial images. Determines that no abnormality is included.

表示部10fは、異常が含まれていると判定される第3部分画像と異常が含まれていないと判定される第3部分画像を区別可能に表示する。本例の場合、表示部10fは、異常が含まれていると判定される第3部分画像P3a,P3b,P3c,P3dを、第3種のハッチングによって強調して示し、異常が含まれていないと判定される第3部分画像P3を、破線による枠線で示している。ここで、表示部10fは、異常が含まれていると判定される第1部分画像P1a及び異常が含まれていると判定される第2部分画像P2a,P2b,P2cと、異常が含まれていると判定される第3部分画像P3a,P3b,P3c,P3dとを区別可能に表示する。具体的には、表示部10fは、異常が含まれていると判定される第1部分画像P1aを第1種のハッチングで示し、異常が含まれていると判定される第2部分画像P2a,P2b,P2cを第2種のハッチングで示したが、異常が含まれていると判定される第3部分画像P3a,P3b,P3c,P3dを第3種のハッチングで示す。   The display unit 10f displays the third partial image determined to include an abnormality and the third partial image determined to include no abnormality so as to be distinguishable. In the case of this example, the display unit 10f shows the third partial images P3a, P3b, P3c, and P3d that are determined to include an abnormality by highlighting them with the third type of hatching, and no abnormality is included. The third partial image P <b> 3 determined to be indicated by a broken line. Here, the display unit 10f includes the first partial image P1a that is determined to include abnormality, the second partial images P2a, P2b, and P2c that are determined to include abnormality, and the abnormality. The third partial images P3a, P3b, P3c, and P3d that are determined to be present are displayed in a distinguishable manner. Specifically, the display unit 10f indicates the first partial image P1a that is determined to include an abnormality with the first type of hatching, and the second partial image P2a that is determined to include the abnormality. P2b and P2c are indicated by the second type of hatching, but third partial images P3a, P3b, P3c, and P3d that are determined to include an abnormality are indicated by the third type of hatching.

第3分類部13cによって異常が含まれていると判定される第3部分画像P3dには、実際には異常が含まれていない。このような場合であっても、後に詳細に説明するように、検査装置10は、異常が含まれていると判定される第3部分画像P3dの箇所に異常が存在するとは判定せず、異常の有無を正しく判定することができる。   The third partial image P3d that is determined to include an abnormality by the third classification unit 13c does not actually include an abnormality. Even in such a case, as will be described in detail later, the inspection apparatus 10 does not determine that there is an abnormality in the portion of the third partial image P3d that is determined to include abnormality, The presence or absence of can be correctly determined.

図8は、本発明の実施形態に係る検査装置10の表示部10fに表示される検査対象物100の画像Pを示す図である。表示部10fは、異常が含まれていると判定される第1部分画像P1aと、異常が含まれていると判定される第2部分画像P2a,P2b,P2cと、異常が含まれていると判定される第3部分画像P3a,P3b,P3c,P3dとを区別可能に表示する。第1分類部13aによる分類結果と、第2分類部13bによる分類結果と、第3分類部13cによる分類結果とが視覚的に区別可能に示されることで、第1分類部13a、第2分類部13b及び第3分類部13cによる分類結果の差異を容易に把握することができる。   FIG. 8 is a diagram illustrating an image P of the inspection object 100 displayed on the display unit 10f of the inspection apparatus 10 according to the embodiment of the present invention. The display unit 10f includes a first partial image P1a that is determined to include an abnormality, second partial images P2a, P2b, and P2c that are determined to include an abnormality, and an abnormality. The determined third partial images P3a, P3b, P3c, and P3d are displayed in a distinguishable manner. The classification result by the first classification unit 13a, the classification result by the second classification unit 13b, and the classification result by the third classification unit 13c are shown to be visually distinguishable, so that the first classification unit 13a and the second classification unit It is possible to easily grasp the difference between the classification results by the unit 13b and the third classification unit 13c.

検査装置10の判定部14は、異常が含まれていると判定される第1部分画像P1aと、異常が含まれていると判定される第2部分画像P2a,P2b,P2cと、異常が含まれていると判定される第3部分画像P3a,P3b,P3c,P3dとの重なりに基づいて、検査対象物100に関する異常の有無を判定する。   The determination unit 14 of the inspection apparatus 10 includes the first partial image P1a that is determined to include abnormality, the second partial images P2a, P2b, and P2c that are determined to include abnormality, and the abnormality. Based on the overlap with the third partial images P <b> 3 a, P <b> 3 b, P <b> 3 c, and P <b> 3 d that are determined to be detected, it is determined whether there is an abnormality related to the inspection object 100.

本実施形態に係る検査装置10によれば、画像Pを複数の第1部分画像P1と、複数の第2部分画像P2と、複数の第3部分画像P3とに分割し、第1部分画像、第2部分画像及び第3部分画像それぞれに異常が含まれていると判定される場合に、それらの部分画像の重なりに基づいて検査対象物に関する異常の有無を判定することで、誤判定が少なくなり、起こり得る異常が多様な場合であっても、検査対象物に関する異常の有無を精度良く検出することができる。   According to the inspection apparatus 10 according to the present embodiment, the image P is divided into a plurality of first partial images P1, a plurality of second partial images P2, and a plurality of third partial images P3. When it is determined that an abnormality is included in each of the second partial image and the third partial image, erroneous determination is reduced by determining whether there is an abnormality related to the inspection object based on the overlap of the partial images. Thus, even if there are various possible abnormalities, it is possible to accurately detect the presence / absence of an abnormality related to the inspection object.

本例の場合、異常が含まれていると判定される第1部分画像P1aと、異常が含まれていると判定される第2部分画像P2aと、異常が含まれていると判定される第3部分画像P3a,P3b,P3cとが重畳するため、判定部14は、重畳箇所Rに異常が存在すると判定する。このように、異常が含まれていると判定される複数種類の部分画像の重畳箇所に異常が存在すると判定することで、検査対象物に関する異常の有無のみならず、異常が存在する箇所を精度良く特定することができる。   In the case of this example, the first partial image P1a determined to include an abnormality, the second partial image P2a determined to include an abnormality, and the first partial image P2a determined to include an abnormality. Since the three partial images P3a, P3b, and P3c are overlapped, the determination unit 14 determines that there is an abnormality in the overlapping portion R. In this way, by determining that there is an abnormality at the overlapping part of multiple types of partial images that are determined to contain an abnormality, not only the presence / absence of the abnormality related to the inspection object but also the location where the abnormality exists is accurate. Can be identified well.

また、判定部14は、異常が含まれていると判定される第2部分画像P2b,P2c及び異常が含まれていると判定される第3部分画像P3dについて、異常が含まれていないと判定される他の種類の部分画像と重畳するため、異常が含まれていると判定される第2部分画像P2b,P2c又は異常が含まれていると判定される第3部分画像P3dの箇所には異常が存在しないと判定する。このように、重畳する第1部分画像、第2部分画像及び第3部分画像のいずれかに異常が含まれていると判定され、他の種類の部分画像には異常が含まれていないと判定される場合に、当該異常が含まれていると判定される第1部分画像、第2部分画像又は第3部分画像の箇所には異常が存在しないと判定することで、異常の存在の誤判定が防止される。   In addition, the determination unit 14 determines that the second partial images P2b and P2c that are determined to include an abnormality and the third partial image P3d that is determined to include an abnormality do not include any abnormality. The second partial images P2b and P2c that are determined to include an abnormality or the third partial image P3d that is determined to include an abnormality are superimposed on other types of partial images that are included. It is determined that there is no abnormality. In this way, it is determined that an abnormality is included in any of the first partial image, the second partial image, and the third partial image to be superimposed, and it is determined that no abnormality is included in other types of partial images. If it is determined that there is no abnormality in the location of the first partial image, the second partial image, or the third partial image that is determined to include the abnormality, an erroneous determination of the presence of the abnormality Is prevented.

さらに、複数の第2部分画像P2それぞれが、複数の第1部分画像P1それぞれよりも小さく、複数の第3部分画像P3それぞれが、複数の第2部分画像P2それぞれよりも小さいことで、異常のサイズや形状が多様である場合であっても、異常の有無及び存在箇所を精度良く判定することができる。   Furthermore, each of the plurality of second partial images P2 is smaller than each of the plurality of first partial images P1, and each of the plurality of third partial images P3 is smaller than each of the plurality of second partial images P2. Even when there are various sizes and shapes, it is possible to accurately determine the presence / absence and location of an abnormality.

図9は、本発明の実施形態に係る検査装置10により実行される第1処理のフローチャートである。第1処理は、検査対象物100の画像Pを第1部分画像P1、第2部分画像P2及び第3部分画像P3にそれぞれ分割して、異常の有無を判定して、異常が含まれていると判定される部分画像の重なりに基づいて、検査対象物100に関する異常の有無を判定する処理である。   FIG. 9 is a flowchart of the first process executed by the inspection apparatus 10 according to the embodiment of the present invention. In the first process, the image P of the inspection object 100 is divided into a first partial image P1, a second partial image P2, and a third partial image P3, and the presence / absence of abnormality is determined. This is a process for determining the presence or absence of abnormality related to the inspection object 100 based on the overlap of the partial images determined to be.

検査装置10は、はじめに検査対象物100の画像Pを取得する(S10)。そして、画像Pを第1分割部12aによって複数の第1部分画像P1に分割し(S11)、画像Pを第2分割部12bによって複数の第2部分画像P2に分割し(S12)、画像Pを第3分割部12cによって複数の第3部分画像P3に分割する(S13)。   The inspection apparatus 10 first acquires an image P of the inspection object 100 (S10). Then, the image P is divided into a plurality of first partial images P1 by the first dividing unit 12a (S11), and the image P is divided into a plurality of second partial images P2 by the second dividing unit 12b (S12). Is divided into a plurality of third partial images P3 by the third dividing unit 12c (S13).

次に、第1分類部13aは、複数の第1部分画像P1を、異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像に分類し(S14)、第2分類部13bは、複数の第2部分画像P2を、異常が含まれていると判定される第2部分画像と異常が含まれていないと判定される第2部分画像に分類し(S15)、第3分類部13cは、複数の第3部分画像P3を、異常が含まれていると判定される第3部分画像と異常が含まれていないと判定される第3部分画像に分類する(S16)。   Next, the first classification unit 13a classifies the plurality of first partial images P1 into a first partial image that is determined to include an abnormality and a first partial image that is determined to include no abnormality. (S14) The second classification unit 13b then determines that the plurality of second partial images P2 are a second partial image that is determined to include an abnormality and a second partial image that is determined to include no abnormality. (S15), and the third classifying unit 13c determines that the plurality of third partial images P3 are determined to contain no abnormality and the third partial image that is judged to contain abnormality. Classification into partial images (S16).

その後、表示部10fは、異常が含まれていると判定される第1部分画像、異常が含まれていると判定される第2部分画像及び異常が含まれていると判定される第3部分画像を、それぞれ区別可能な態様で表示する(S17)。   Thereafter, the display unit 10f includes a first partial image that is determined to include abnormality, a second partial image that is determined to include abnormality, and a third portion that is determined to include abnormality. The images are displayed in a distinguishable manner (S17).

判定部14は、異常が含まれていると判定される第1部分画像と、異常が含まれていると判定される第2部分画像と、異常が含まれていると判定される第3部分画像とが重畳するか否かを判定する(S18)。これら3種類の部分画像が重畳すると判定された場合(S18:Yes)、判定部14は、当該重畳箇所に異常が存在すると判定する(S19)。一方、これら3種類の部分画像が重畳しないと判定された場合(S18:No)、すなわち少なくとも1種類の部分画像には異常が含まれていないと判定される場合、判定部14は、異常が含まれていると判定された部分画像の箇所には異常が存在しないと判定する(S20)。以上により、第1処理が終了する。   The determination unit 14 includes a first partial image that is determined to include abnormality, a second partial image that is determined to include abnormality, and a third portion that is determined to include abnormality. It is determined whether or not the image is superimposed (S18). When it is determined that these three types of partial images are to be superimposed (S18: Yes), the determination unit 14 determines that there is an abnormality at the overlapping portion (S19). On the other hand, when it is determined that these three types of partial images do not overlap (S18: No), that is, when it is determined that no abnormality is included in at least one type of partial image, the determination unit 14 determines that there is an abnormality. It is determined that there is no abnormality in the portion of the partial image determined to be included (S20). Thus, the first process ends.

図10は、本発明の実施形態に係る検査装置10により実行される第2処理のフローチャートである。第2処理は、第1処理に先立って実行される処理であり、第1分類部13a、第2分類部13b及び第3分類部13cに対して、異常が含まれている部分画像と異常が含まれていない部分画像の分類を学習させる処理である。   FIG. 10 is a flowchart of the second process executed by the inspection apparatus 10 according to the embodiment of the present invention. The second process is a process executed prior to the first process, and the partial image including the abnormality and the abnormality are included in the first classification unit 13a, the second classification unit 13b, and the third classification unit 13c. This is a process for learning the classification of partial images that are not included.

検査装置10の学習部16は、学習用画像データベースDBから、学習用の第1部分画像を取得する(S30)。同様に学習部16は、学習用画像データベースDBから、学習用の第2部分画像の取得と(S31)、学習用の第3部分画像の取得を行う(S32)。ここで、学習用の第1部分画像は、異常が含まれている第1部分画像及び異常が含まれていない第1部分画像を含み、それぞれの第1部分画像には異常の有無がタグ付けされている。また、学習用の第2部分画像は、異常が含まれている第2部分画像及び異常が含まれていない第2部分画像を含み、それぞれの第2部分画像には異常の有無がタグ付けされている。同様に、学習用の第3部分画像は、異常が含まれている第3部分画像及び異常が含まれていない第3部分画像を含み、それぞれの第3部分画像には異常の有無がタグ付けされている。   The learning unit 16 of the inspection apparatus 10 acquires a first partial image for learning from the learning image database DB (S30). Similarly, the learning unit 16 acquires the second partial image for learning from the learning image database DB (S31), and acquires the third partial image for learning (S32). Here, the first partial image for learning includes a first partial image that includes abnormality and a first partial image that does not include abnormality, and each first partial image is tagged with the presence or absence of abnormality. Has been. Further, the second partial image for learning includes a second partial image that includes abnormality and a second partial image that does not include abnormality, and each second partial image is tagged with the presence or absence of abnormality. ing. Similarly, the third partial image for learning includes a third partial image that includes abnormality and a third partial image that does not include abnormality, and each third partial image is tagged with the presence or absence of abnormality. Has been.

学習部16は、学習用の第1部分画像を用いて第1分類部13aの学習を実行し(S33)、学習用の第2部分画像を用いて第2分類部13bの学習を実行し(S34)、学習用の第3部分画像を用いて第3分類部13cの学習を実行する(S35)。具体的には、第1分類部13a、第2分類部13b及び第3分類部13cがニューラルネットワークを含む場合、学習部16は、学習用の第1部分画像、第2部分画像及び第3部分画像を第1分類部13a、第2分類部13b及び第3分類部13cにそれぞれ入力し、異常が含まれている部分画像と異常が含まれていない部分画像とを正しく分類できたかを評価する値に基づいて、当該評価値を向上させるように、ニューラルネットワークに含まれるユニットの重み付けを最適化する。   The learning unit 16 performs learning of the first classification unit 13a using the first partial image for learning (S33), and performs learning of the second classification unit 13b using the second partial image for learning ( S34), the learning of the third classification unit 13c is performed using the third partial image for learning (S35). Specifically, when the first classification unit 13a, the second classification unit 13b, and the third classification unit 13c include a neural network, the learning unit 16 uses the first partial image, the second partial image, and the third part for learning. The images are input to the first classifying unit 13a, the second classifying unit 13b, and the third classifying unit 13c, respectively, and it is evaluated whether or not the partial image including the abnormality and the partial image including no abnormality are correctly classified. Based on the value, the weights of the units included in the neural network are optimized so as to improve the evaluation value.

以上により第2処理が終了し、第1分類部13aは、第1学習済みモデルを含むこととなり、第2分類部13bは、第2学習済みモデルを含むこととなり、第3分類部13cは、第3学習済みモデルを含むこととなる。ここで、第1学習済みモデル、第2学習済みモデル及び第3学習済みモデルは、それぞれ異なる学習用データ(学習用の第1部分画像、学習用の第2部分画像及び学習用の第3部分画像)を用いて学習された、異なる構成を有するモデルであってよい。具体的には、第1分類部13aは、第1学習済みニューラルネットワークを含み、第2分類部13bは、第1学習済みニューラルネットワークと構成が異なる第2学習済みニューラルネットワークを含み、第3分類部13cは、第1学習済みニューラルネットワーク及び第2学習済みニューラルネットワークいずれとも構成が異なる第3学習済みニューラルネットワークを含んでよい。   Thus, the second process ends, the first classification unit 13a includes the first learned model, the second classification unit 13b includes the second learned model, and the third classification unit 13c The third learned model will be included. Here, the first learned model, the second learned model, and the third learned model have different learning data (a first partial image for learning, a second partial image for learning, and a third part for learning). It may be a model having a different configuration learned using (image). Specifically, the first classification unit 13a includes a first learned neural network, the second classification unit 13b includes a second learned neural network having a configuration different from that of the first learned neural network, and a third classification. The unit 13c may include a third learned neural network having a different configuration from both the first learned neural network and the second learned neural network.

本実施形態に係る検査装置10によれば、それぞれ異なる学習用データで学習された第1学習済みモデル、第2学習済みモデル及び第3学習済みモデルを用いることで、第1分類部13a、第2分類部13b及び第3分類部13cとで異なる観点から異常の有無を分類することができる。   According to the inspection apparatus 10 according to the present embodiment, the first classification unit 13a, the first learned model, the second learned model, and the third learned model that are learned with different learning data are used. The presence / absence of abnormality can be classified from different viewpoints in the second classification unit 13b and the third classification unit 13c.

以上説明した実施形態は、本発明の理解を容易にするためのものであり、本発明を限定して解釈するためのものではない。実施形態が備える各要素並びにその配置、材料、条件、形状及びサイズ等は、例示したものに限定されるわけではなく適宜変更することができる。また、異なる実施形態で示した構成同士を部分的に置換し又は組み合わせることが可能である。   The embodiments described above are for facilitating the understanding of the present invention, and are not intended to limit the present invention. Each element included in the embodiment and its arrangement, material, condition, shape, size, and the like are not limited to those illustrated, and can be changed as appropriate. In addition, the structures shown in different embodiments can be partially replaced or combined.

Claims (11)

検査対象物の画像の全体を複数の第1部分画像に分割する第1分割部と、
前記画像の全体を、前記複数の第1部分画像とは異なる複数の第2部分画像に分割する第2分割部と、
前記複数の第1部分画像を、異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像に分類する第1分類部と、
前記複数の第2部分画像を、異常が含まれていると判定される第2部分画像と異常が含まれていないと判定される第2部分画像に分類する第2分類部と、
前記異常が含まれていると判定される第1部分画像と、前記異常が含まれていると判定される第2部分画像との重なりに基づいて、前記検査対象物に関する異常の有無を判定する判定部と、を備え、
前記複数の第1部分画像及び前記複数の第2部分画像は、それぞれ第1方向に延伸する第1辺及び前記第1方向と交わる第2方向に沿って延伸する第2辺を有する矩形であり、前記複数の第1部分画像の前記第1辺及び前記第2辺は、それぞれ前記複数の第2部分画像の前記第1辺及び前記第2辺より長い、
査装置。
A first dividing unit that divides the entire image of the inspection object into a plurality of first partial images;
A second dividing unit that divides the entire image into a plurality of second partial images different from the plurality of first partial images;
A first classification unit that classifies the plurality of first partial images into a first partial image that is determined to include an abnormality and a first partial image that is determined to include no abnormality;
A second classification unit that classifies the plurality of second partial images into a second partial image that is determined to include an abnormality and a second partial image that is determined to include no abnormality;
Based on the overlap between the first partial image determined to include the abnormality and the second partial image determined to include the abnormality, the presence / absence of abnormality related to the inspection object is determined. A determination unit ;
The plurality of first partial images and the plurality of second partial images are rectangles each having a first side extending in a first direction and a second side extending along a second direction intersecting with the first direction. The first side and the second side of the plurality of first partial images are longer than the first side and the second side of the plurality of second partial images, respectively.
Inspection equipment.
前記判定部は、前記異常が含まれていると判定される第1部分画像と、前記異常が含まれていると判定される第2部分画像とが重畳する場合に、当該重畳箇所に異常が存在すると判定する、
請求項1に記載の検査装置。
When the first partial image that is determined to include the abnormality and the second partial image that is determined to include the abnormality are superimposed, the determination unit has an abnormality at the overlapping portion. Determine that it exists,
The inspection apparatus according to claim 1.
前記判定部は、前記異常が含まれていると判定される第1部分画像と、前記異常が含まれていないと判定される第2部分画像とが重畳する場合又は前記異常が含まれていないと判定される第1部分画像と、前記異常が含まれていると判定される第2部分画像とが重畳する場合に、当該異常が含まれていると判定される第1部分画像又は当該異常が含まれていると判定される第2部分画像の箇所には異常が存在しないと判定する、
請求項1又は2に記載の検査装置。
The determination unit includes a case where the first partial image determined to include the abnormality and a second partial image determined to not include the abnormality or the abnormality is not included The first partial image that is determined to include the abnormality and the second partial image that is determined to include the abnormality overlap the first partial image that is determined to include the abnormality or the abnormality It is determined that there is no abnormality in the portion of the second partial image that is determined to include
The inspection apparatus according to claim 1 or 2.
前記異常が含まれていると判定される第1部分画像と前記異常が含まれていないと判定される第1部分画像を区別可能に表示し、前記異常が含まれていると判定される第2部分画像と前記異常が含まれていないと判定される第2部分画像を区別可能に表示して、前記画像を表示する表示部をさらに備える、
請求項1から3のいずれか一項に記載の検査装置。
The first partial image that is determined to contain the abnormality and the first partial image that is judged to contain no abnormality are displayed in a distinguishable manner, and the first partial image that is determined to contain the abnormality is displayed. A display unit for displaying the image, wherein the two partial images and the second partial image determined not to contain the abnormality are displayed in a distinguishable manner;
The inspection apparatus according to any one of claims 1 to 3.
前記表示部は、前記異常が含まれていると判定される第1部分画像と、前記異常が含まれていると判定される第2部分画像とを区別可能に表示する、
請求項4に記載の検査装置。
The display unit displays the first partial image determined to include the abnormality and the second partial image determined to include the abnormality in a distinguishable manner.
The inspection apparatus according to claim 4.
前記複数の第2部分画像それぞれは、前記複数の第1部分画像それぞれよりも小さい、
請求項1から5のいずれか一項に記載の検査装置。
Each of the plurality of second partial images is smaller than each of the plurality of first partial images.
The inspection apparatus according to any one of claims 1 to 5.
前記複数の第2部分画像のうち少なくとも2つは、前記複数の第1部分画像のうちいずれか1つと重畳する、
請求項1から6のいずれか一項に記載の検査装置。
At least two of the plurality of second partial images are superposed on any one of the plurality of first partial images;
The inspection apparatus according to any one of claims 1 to 6.
前記第1分割部は、前記複数の第1部分画像が互いに重畳しないように前記画像を分割し、
前記第2分割部は、前記複数の第2部分画像が互いに重畳しないように前記画像を分割する、
請求項1から7のいずれか一項に記載の検査装置。
The first dividing unit divides the image so that the plurality of first partial images do not overlap each other,
The second dividing unit divides the images so that the plurality of second partial images do not overlap each other.
The inspection apparatus according to any one of claims 1 to 7.
前記第1分類部は、異常が含まれている第1部分画像及び異常が含まれていない第1部分画像を学習用データとして学習された、第1学習済みモデルを含み、
前記第2分類部は、異常が含まれている第2部分画像及び異常が含まれていない第2部分画像を学習用データとして学習された、第2学習済みモデルを含む、
請求項1から8のいずれか一項に記載の検査装置。
The first classifying unit includes a first learned model that is learned as learning data using a first partial image that includes abnormality and a first partial image that does not include abnormality,
The second classification unit includes a second learned model in which a second partial image including abnormality and a second partial image not including abnormality are learned as learning data.
The inspection apparatus according to any one of claims 1 to 8.
コンピュータが、
検査対象物の画像の全体を複数の第1部分画像に分割するステップと、
前記画像の全体を、前記複数の第1部分画像とは異なる複数の第2部分画像に分割するステップと、
前記複数の第1部分画像を、異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像に分類するステップと、
前記複数の第2部分画像を、異常が含まれていると判定される第2部分画像と異常が含まれていないと判定される第2部分画像に分類するステップと、
前記異常が含まれていると判定される第1部分画像と、前記異常が含まれていると判定される第2部分画像との重なりに基づいて、前記検査対象物に関する異常の有無を判定するステップと、を含み、
前記複数の第1部分画像及び前記複数の第2部分画像は、それぞれ第1方向に延伸する第1辺及び前記第1方向と交わる第2方向に沿って延伸する第2辺を有する矩形であり、前記複数の第1部分画像の前記第1辺及び前記第2辺は、それぞれ前記複数の第2部分画像の前記第1辺及び前記第2辺より長い、
査方法。
Computer
Dividing the entire image of the inspection object into a plurality of first partial images;
Dividing the entire image into a plurality of second partial images different from the plurality of first partial images;
Classifying the plurality of first partial images into a first partial image determined to include an abnormality and a first partial image determined to include no abnormality;
Classifying the plurality of second partial images into a second partial image that is determined to include an abnormality and a second partial image that is determined to include no abnormality;
Based on the overlap between the first partial image determined to include the abnormality and the second partial image determined to include the abnormality, the presence / absence of abnormality related to the inspection object is determined. And including steps ,
The plurality of first partial images and the plurality of second partial images are rectangles each having a first side extending in a first direction and a second side extending along a second direction intersecting with the first direction. The first side and the second side of the plurality of first partial images are longer than the first side and the second side of the plurality of second partial images, respectively.
Test査方method.
コンピュータを、
検査対象物の画像の全体を複数の第1部分画像に分割する第1分割部、
前記画像の全体を、前記複数の第1部分画像とは異なる複数の第2部分画像に分割する第2分割部、
前記複数の第1部分画像を、異常が含まれていると判定される第1部分画像と異常が含まれていないと判定される第1部分画像に分類する第1分類部、
前記複数の第2部分画像を、異常が含まれていると判定される第2部分画像と異常が含まれていないと判定される第2部分画像に分類する、前記第1分類部とは異なる第2分類部、及び
前記異常が含まれていると判定される第1部分画像と、前記異常が含まれていると判定される第2部分画像との重なりに基づいて、前記検査対象物に関する異常の有無を判定する判定部、として機能させ、
前記複数の第1部分画像及び前記複数の第2部分画像は、それぞれ第1方向に延伸する第1辺及び前記第1方向と交わる第2方向に沿って延伸する第2辺を有する矩形であり、前記複数の第1部分画像の前記第1辺及び前記第2辺は、それぞれ前記複数の第2部分画像の前記第1辺及び前記第2辺より長い、
査プログラム。

Computer
A first dividing unit that divides the entire image of the inspection object into a plurality of first partial images;
A second dividing unit that divides the entire image into a plurality of second partial images different from the plurality of first partial images;
A first classification unit that classifies the plurality of first partial images into a first partial image that is determined to include an abnormality and a first partial image that is determined to include no abnormality;
Different from the first classification unit that classifies the plurality of second partial images into a second partial image that is determined to include an abnormality and a second partial image that is determined to include no abnormality. A second classification unit, and a first partial image that is determined to include the abnormality, and a second partial image that is determined to include the abnormality. Function as a determination unit that determines the presence or absence of abnormality ,
The plurality of first partial images and the plurality of second partial images are rectangles each having a first side extending in a first direction and a second side extending along a second direction intersecting with the first direction. The first side and the second side of the plurality of first partial images are longer than the first side and the second side of the plurality of second partial images, respectively.
Inspection program.

JP2018515903A 2017-06-23 2017-06-23 Inspection device, inspection method, and inspection program Active JP6387477B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2017/023213 WO2018235266A1 (en) 2017-06-23 2017-06-23 Inspection device, inspection method, and inspection program

Publications (2)

Publication Number Publication Date
JP6387477B1 true JP6387477B1 (en) 2018-09-05
JPWO2018235266A1 JPWO2018235266A1 (en) 2019-06-27

Family

ID=63444288

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018515903A Active JP6387477B1 (en) 2017-06-23 2017-06-23 Inspection device, inspection method, and inspection program

Country Status (2)

Country Link
JP (1) JP6387477B1 (en)
WO (1) WO2018235266A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021059681A1 (en) 2019-09-24 2021-04-01 株式会社イシダ Inspection device
US12013351B2 (en) 2019-09-24 2024-06-18 Ishida Co., Ltd. Inspection device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7289658B2 (en) * 2018-09-07 2023-06-12 株式会社フジクラ Classification device, classification method, classification program, and inspection device
JP7293687B2 (en) * 2019-02-04 2023-06-20 東京電力ホールディングス株式会社 Information processing method, program, water intake control system, and learned model generation method
JP6703672B1 (en) * 2019-07-16 2020-06-03 株式会社テクムズ Defect detection method for inspection target product, apparatus therefor, and computer program therefor
JP7450517B2 (en) * 2020-10-23 2024-03-15 株式会社荏原製作所 Machining surface determination device, machining surface determination program, machining surface determination method, and machining system
JPWO2022215382A1 (en) * 2021-04-05 2022-10-13

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4173441A (en) * 1977-03-28 1979-11-06 E. I. Du Pont De Nemours And Company Web inspection system and method therefor
JPH11111796A (en) * 1997-10-02 1999-04-23 Mitsubishi Electric Corp Method and device for analyzing defect
JP2010266430A (en) * 2009-04-15 2010-11-25 Jfe Steel Corp Method and apparatus for inspecting defect of steel plate surface
JP2011058926A (en) * 2009-09-09 2011-03-24 Ricoh Elemex Corp Method and device for inspecting image
JP2011122985A (en) * 2009-12-11 2011-06-23 Ricoh Co Ltd Printed material inspection apparatus, printed material inspection method, program and storage medium
JP2012026982A (en) * 2010-07-27 2012-02-09 Panasonic Electric Works Sunx Co Ltd Inspection device
WO2014175413A1 (en) * 2013-04-25 2014-10-30 株式会社ブリヂストン Inspection device
JP2015026287A (en) * 2013-07-26 2015-02-05 新電元工業株式会社 Solder inspection device, solder inspection method and electronic component
JP2016126769A (en) * 2014-12-26 2016-07-11 古河機械金属株式会社 Inspection result output device, inspection result output method, and program

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4173441A (en) * 1977-03-28 1979-11-06 E. I. Du Pont De Nemours And Company Web inspection system and method therefor
JPH11111796A (en) * 1997-10-02 1999-04-23 Mitsubishi Electric Corp Method and device for analyzing defect
JP2010266430A (en) * 2009-04-15 2010-11-25 Jfe Steel Corp Method and apparatus for inspecting defect of steel plate surface
JP2011058926A (en) * 2009-09-09 2011-03-24 Ricoh Elemex Corp Method and device for inspecting image
JP2011122985A (en) * 2009-12-11 2011-06-23 Ricoh Co Ltd Printed material inspection apparatus, printed material inspection method, program and storage medium
JP2012026982A (en) * 2010-07-27 2012-02-09 Panasonic Electric Works Sunx Co Ltd Inspection device
WO2014175413A1 (en) * 2013-04-25 2014-10-30 株式会社ブリヂストン Inspection device
JP2015026287A (en) * 2013-07-26 2015-02-05 新電元工業株式会社 Solder inspection device, solder inspection method and electronic component
JP2016126769A (en) * 2014-12-26 2016-07-11 古河機械金属株式会社 Inspection result output device, inspection result output method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021059681A1 (en) 2019-09-24 2021-04-01 株式会社イシダ Inspection device
US12013351B2 (en) 2019-09-24 2024-06-18 Ishida Co., Ltd. Inspection device

Also Published As

Publication number Publication date
JPWO2018235266A1 (en) 2019-06-27
WO2018235266A1 (en) 2018-12-27

Similar Documents

Publication Publication Date Title
JP6387477B1 (en) Inspection device, inspection method, and inspection program
EP3502966B1 (en) Data generation apparatus, data generation method, and data generation program
JP5956814B2 (en) Appearance inspection apparatus, appearance inspection method, and computer program
JP6584250B2 (en) Image classification method, classifier configuration method, and image classification apparatus
WO2019117068A1 (en) Data generation device, data generation method, and data generation program
CN111429482A (en) Target tracking method and device, computer equipment and storage medium
JP7034840B2 (en) Visual inspection equipment and methods
JP5914732B2 (en) Image verification method, image verification apparatus, and program
US20220067514A1 (en) Inference apparatus, method, non-transitory computer readable medium and learning apparatus
CN109389110A (en) A kind of area determination method and device
WO2023029491A1 (en) Panel array short circuit detection method and apparatus, electronic device, and storage medium
US11769248B2 (en) Image processing device, image processing method, and image processing non-transitory computer readable medium for verifying detectable range of defect image
ES2710860T3 (en) Identification device for moving image region and method thereof
JP5764527B2 (en) Image verification method, image verification apparatus, and program
JP6882772B2 (en) Inspection equipment, inspection method and inspection program
CN113016023B (en) Information processing method and computer-readable non-transitory recording medium
JP6223897B2 (en) Abnormality detection device and abnormality detection system
CN116718351A (en) Point inspection method and device for imaging equipment, electronic equipment and storage medium
CN114846513A (en) Motion analysis system and motion analysis program
US20230080978A1 (en) Machine learning method and information processing apparatus for machine learning
KR102000938B1 (en) Method for Setting Inspection Criteria Automatically by Indicating Regions and Smart Learning Method for X-ray Inspection Using the Same
JP6446945B2 (en) Incompatible detection device, incompatible detection method, and program
JP2017164068A (en) Determination device, analysis device, calculation device, determination method, analysis method, calculation method, determination program, analysis program, and calculation program
CN110288662A (en) Display detection method and system
WO2023175647A1 (en) Person detection device, person detection method and person detection program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180326

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180326

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20180326

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20180713

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: 20180720

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180813

R150 Certificate of patent or registration of utility model

Ref document number: 6387477

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250