JP2023035618A - Anomaly detection device and anomaly detection method - Google Patents

Anomaly detection device and anomaly detection method Download PDF

Info

Publication number
JP2023035618A
JP2023035618A JP2021142617A JP2021142617A JP2023035618A JP 2023035618 A JP2023035618 A JP 2023035618A JP 2021142617 A JP2021142617 A JP 2021142617A JP 2021142617 A JP2021142617 A JP 2021142617A JP 2023035618 A JP2023035618 A JP 2023035618A
Authority
JP
Japan
Prior art keywords
image
unit
abnormality
detection device
anomaly detection
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
JP2021142617A
Other languages
Japanese (ja)
Inventor
裕喜 竹内
Hiroyoshi Takeuchi
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.)
Daihatsu Motor Co Ltd
Original Assignee
Daihatsu Motor Co Ltd
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 Daihatsu Motor Co Ltd filed Critical Daihatsu Motor Co Ltd
Priority to JP2021142617A priority Critical patent/JP2023035618A/en
Publication of JP2023035618A publication Critical patent/JP2023035618A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide an anomaly detection device and anomaly detection method, which enable accurate detection of shape anomalies of target objects.SOLUTION: An anomaly detection device is provided, comprising an acquisition unit configured to acquire a captured image, captured by an image capturing device, of a predetermined object of a part being conveyed on a conveying path, a division unit configured to divide an image portion of the target object in the captured image acquired by the acquisition unit into multiple images, and a determination unit configured to perform anomaly determination processing on an input of the multiple images divided by the division unit using a predetermined learning model and obtain a determination result indicative of the presence or absence of anomalies as an output.SELECTED DRAWING: Figure 3

Description

特許法第30条第2項適用申請有り 掲載年月日 令和3年8月20日 掲載アドレス http://gijutsu12/Giken/index.htmlApplied for application of Article 30, Paragraph 2 of the Patent Act Date of publication August 20, 2021 Address of publication http://gijutsu12/Giken/index. html

本発明は、異常検知装置および異常検知方法に関する。 The present invention relates to an anomaly detection device and an anomaly detection method.

従来の自動搬送の製造ラインにおいては、要所に撮像装置を設置し、部品に対して目視確認またはルールベースに基づく撮像画像に対する画像判定を行っている。このような製造ラインにおける撮像装置の撮像画像に対する画像判定についての技術として、対象物の表面の画像を取得する取得部と、取得部で取得された対象物の表面の画像から得られる、対象物の表面において鏡面反射成分と拡散反射成分の比率が互いに異なる複数の反射状態に基づいて、対象物の表面の色を判定する処理である色判定処理を行う判定部と、を備えた検査システムが開示されている(例えば特許文献1参照)。 In a conventional automatic transport production line, imaging devices are installed at key points to perform visual confirmation of parts or image judgment of captured images based on a rule base. As a technique for image determination for images captured by an imaging device in such a production line, an acquisition unit that acquires an image of the surface of an object, and an image of the surface of the object that is obtained from the image of the surface of the object acquired by the acquisition unit. an inspection system comprising: (see, for example, Patent Document 1).

国際公開第2019/112040号WO2019/112040

しかしながら、従来の製造ラインにおける技術では、自動車部品のように凹凸等の特徴的な曲線部分が多く存在する部品に対して、単純な色判定処理等に基づく画像処理では、形状の異常を検知することが困難であるという課題がある。 However, in conventional manufacturing line technology, image processing based on simple color determination processing, etc. cannot detect shape abnormalities for parts such as automobile parts that have many characteristic curved portions such as unevenness. There is a problem that it is difficult to

本発明は、上述の課題に鑑みてなされたものであって、対象物について精度よく形状の異常を検知することができる異常検知装置および異常検知方法を提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide an anomaly detection device and an anomaly detection method capable of accurately detecting an anomaly in the shape of an object.

上述した課題を解決し、目的を達成するために、本発明に係る異常検知装置は、撮像装置により撮像された、搬送経路上で搬送される部品における所定の対象物に対する撮像画像を取得する取得部と、前記取得部により取得された前記撮像画像における前記対象物の画像部分を、複数の画像に分割する分割部と、前記分割部により分割された前記複数の画像を入力として、所定の学習モデルを用いた異常判定処理により、異常の有無を示す判定結果を出力として得る判定部と、を備えることを特徴とする。 In order to solve the above-described problems and achieve the object, an abnormality detection device according to the present invention acquires a captured image of a predetermined object in a component transported on a transport path, which is imaged by an imaging device. a dividing unit that divides the image portion of the object in the captured image acquired by the acquiring unit into a plurality of images; a determination unit that obtains as an output a determination result indicating the presence or absence of an abnormality by an abnormality determination process using a model.

本発明によれば、対象物について精度よく形状の異常を検知することができる。 ADVANTAGE OF THE INVENTION According to this invention, the abnormality of a shape can be detected accurately about a target object.

図1は、実施形態に係る異常検知システムの全体構成の一例を示す図である。FIG. 1 is a diagram showing an example of the overall configuration of an anomaly detection system according to an embodiment. 図2は、実施形態に係る異常検知装置のハードウェア構成の一例を示す図である。FIG. 2 is a diagram illustrating an example of the hardware configuration of the abnormality detection device according to the embodiment; 図3は、実施形態に係る異常検知装置の機能的なブロック構成の一例を示す図である。FIG. 3 is a diagram illustrating an example of a functional block configuration of the anomaly detection device according to the embodiment; 図4は、撮像されたルーフ部材の撮像画像およびフランジ部を含む抽出画像の一例を示す図である。FIG. 4 is a diagram showing an example of an extracted image including a picked-up image of the roof member and a flange portion. 図5は、フランジ部の正常画像の一例を示す図である。FIG. 5 is a diagram showing an example of a normal image of the flange portion. 図6は、フランジ部の異常画像の一例を示す図である。FIG. 6 is a diagram showing an example of an abnormal image of the flange portion. 図7は、フランジ部の抽出画像を分割した状態を説明する図である。FIG. 7 is a diagram for explaining a state in which the extracted image of the flange portion is divided. 図8は、撮像画像のフランジ部の形状についての判定結果を重畳表示した状態の一例を示す図である。FIG. 8 is a diagram showing an example of a superimposed display of the determination result regarding the shape of the flange portion of the captured image. 図9は、実施形態に係る異常検知システムの異常検知処理の流れの一例を示すフローチャートである。FIG. 9 is a flowchart showing an example of the flow of anomaly detection processing of the anomaly detection system according to the embodiment.

以下に、図1~図9を参照しながら、本発明に係る異常検知装置および異常検知方法の実施形態を詳細に説明する。また、以下の実施形態によって本発明が限定されるものではなく、以下の実施形態における構成要素には、当業者が容易に想到できるもの、実質的に同一のもの、およびいわゆる均等の範囲のものが含まれる。さらに、以下の実施形態の要旨を逸脱しない範囲で構成要素の種々の省略、置換、変更および組み合わせを行うことができる。 1 to 9, embodiments of an abnormality detection device and an abnormality detection method according to the present invention will be described in detail below. In addition, the present invention is not limited by the following embodiments, and the constituent elements in the following embodiments can be easily conceived by those skilled in the art, substantially the same, and so-called equivalent ranges. is included. Furthermore, various omissions, replacements, changes and combinations of components can be made without departing from the gist of the following embodiments.

(異常検知システムの全体構成)
図1は、実施形態に係る異常検知システムの全体構成の一例を示す図である。図1を参照しながら、本実施形態に係る異常検知システム1の全体構成について説明する。
(Overall configuration of anomaly detection system)
FIG. 1 is a diagram showing an example of the overall configuration of an anomaly detection system according to an embodiment. An overall configuration of an anomaly detection system 1 according to the present embodiment will be described with reference to FIG.

図1に示す異常検知システム1は、搬送ライン3(搬送経路)において、撮像装置により撮像された画像が示す部品における所定の対象物の形状の異常を検知するためのシステムである。図1に示すように、異常検知システム1は、PLC(Programmable Logic Controller)11と、撮像装置12と、異常検知装置10と、表示装置13と、サーバ装置20と、を含む。 An anomaly detection system 1 shown in FIG. 1 is a system for detecting an anomaly in the shape of a predetermined object in a part indicated by an image captured by an imaging device on a transport line 3 (transport path). As shown in FIG. 1, the anomaly detection system 1 includes a PLC (Programmable Logic Controller) 11, an imaging device 12, an anomaly detection device 10, a display device 13, and a server device 20.

PLC11は、搬送ライン3における車体等の部品30の設置動作、組付け動作および搬送動作等を制御する産業用制御装置である。PLC11は、部品30が搬送ライン3上において、撮像装置12による撮像に適した所定位置に搬送されたタイミングで、当該所定位置に搬送されたことを示す搬送信号を、異常検知装置10へ送信する。PLC11からの搬送信号は、直接、またはリレー部品等を介して異常検知装置10へ送信されるものとすればよい。例えば、PLC11は、撮像装置12による撮像に適した所定位置に多関節ロボット等の制御により部品30を設置したタイミング、または、リミッタスイッチ、近接センサもしくは光電センサ等により当該所定位置に部品30が搬送されたことを検知されたタイミングで、搬送信号を異常検知装置10へ送信する。なお、異常検知装置10は、搬送ライン3に設置されたリミッタスイッチ、近接センサもしくは光電センサ等から、所定位置に部品30が搬送されたことを示す搬送信号を受信するものとしてもよい。 The PLC 11 is an industrial control device that controls the installation operation, assembly operation, transport operation, and the like of the parts 30 such as the vehicle body on the transport line 3 . The PLC 11 transmits a transport signal indicating that the component 30 has been transported to a predetermined position on the transport line 3 at a timing suitable for imaging by the imaging device 12 to the abnormality detection device 10. . A carrier signal from the PLC 11 may be sent to the abnormality detection device 10 directly or via a relay component or the like. For example, the PLC 11 controls the timing when the part 30 is placed at a predetermined position suitable for imaging by the imaging device 12 by controlling an articulated robot or the like, or the part 30 is conveyed to the predetermined position by a limiter switch, a proximity sensor, a photoelectric sensor, or the like. A carrier signal is transmitted to the abnormality detection device 10 at the timing when it is detected. The abnormality detection device 10 may receive a transport signal indicating that the component 30 has been transported to a predetermined position from a limiter switch, a proximity sensor, a photoelectric sensor, or the like installed on the transport line 3 .

撮像装置12は、部品30における所定の対象物であるルーフ部材のフランジ部を含む領域を撮像する撮像装置である。撮像装置12は、撮像した撮像画像を異常検知装置10へ送信する。本実施形態では、部品30は、自動車の車体であるものとし、所定の対象物は、車体のルーフ部材のフランジ部であるものとして説明する。なお、部品30および所定の対象物は、これらに限定されるものではない。 The image capturing device 12 is an image capturing device that captures an image of a region including the flange portion of the roof member, which is a predetermined target object in the component 30 . The imaging device 12 transmits the captured image to the abnormality detection device 10 . In this embodiment, it is assumed that the component 30 is the vehicle body of an automobile, and the predetermined object is the flange portion of the roof member of the vehicle body. Note that the part 30 and the predetermined object are not limited to these.

なお、撮像装置12による撮像画像は、静止画データであってもよく、動画データであってもよい。 The image captured by the imaging device 12 may be still image data or moving image data.

異常検知装置10は、撮像装置12で撮像された撮像画像に含まれる部品30のルーフ部材のフランジ部について、形状の異常を検知するための装置である。異常検知装置10は、例えば、シングルボードコンピュータによって実現される。なお、異常検知装置10はシングルボードコンピュータであることに限定されず、通常のPC(Personal Computer)またはワークステーション等の情報処理装置であってもよい。異常検知装置10は、画像処理プログラム101と、前処理プログラム102と、異常判定プログラム103と、を含む。 The abnormality detection device 10 is a device for detecting an abnormality in the shape of the flange portion of the roof member of the component 30 included in the captured image captured by the imaging device 12 . The anomaly detection device 10 is realized by, for example, a single board computer. The abnormality detection device 10 is not limited to being a single board computer, and may be an information processing device such as a normal PC (Personal Computer) or workstation. The abnormality detection device 10 includes an image processing program 101 , a preprocessing program 102 and an abnormality determination program 103 .

画像処理プログラム101は、撮像装置12により撮像された撮像画像から、ルーフ部材のフランジ部の画像を抽出する等の画像処理を行うプログラムである。なお、画像処理プログラム101における抽出方法は、撮像画像の所定の領域の切り出し処理、テンプレートマッチング等による所定のアルゴリズムに基づく抽出処理、または、教師あり学習等により生成した所定の学習モデルを用いるYOLO(You Only Look Once)等を用いた既存の抽出処理のいずれに基づく方法であってもよい。 The image processing program 101 is a program for performing image processing such as extracting an image of the flange portion of the roof member from the captured image captured by the imaging device 12 . Note that the extraction method in the image processing program 101 includes extraction processing of a predetermined region of the captured image, extraction processing based on a predetermined algorithm such as template matching, or YOLO ( It may be a method based on any existing extraction process using You Only Look Once).

前処理プログラム102は、画像処理プログラム101により抽出された抽出画像に対して、後段の異常判定プログラム103による異常判定のための所定の前処理を実行するためのプログラムである。前処理プログラム102は、所定の前処理として、具体的には、異常判定プログラム103による異常判定処理の負荷を軽減するために、抽出画像を複数の画像に分割する。 The preprocessing program 102 is a program for executing predetermined preprocessing for abnormality determination by the abnormality determination program 103 in the latter stage on the extracted image extracted by the image processing program 101 . The preprocessing program 102 divides the extracted image into a plurality of images as predetermined preprocessing, specifically, in order to reduce the load of abnormality determination processing by the abnormality determination program 103 .

異常判定プログラム103は、前処理プログラム102により分割された各分割画像について、所定の学習モデル104を用いて異常判定処理を実行するためのプログラムである。具体的には、異常判定プログラム103は、各分割画像を入力として、学習モデル104による判別処理により、正常か異常かの判定結果の出力を得る。学習モデル104は、ルーフ部材のフランジ部の画像に、ラベルとしての正常または異常の情報を組み合わせた教師データを用いて、例えば機械学習の教師あり学習の一例であるCNN(Convolutional Neural Network:畳み込みニューラルネットワーク)等により生成される学習モデルである。また、CNNの場合、前処理プログラム102により抽出画像から分割される分割画像は、垂直および水平のピクセル数が同一の画像(正方形の画像)に分割する必要がある。ただし、抽出画像から直接、正方形の画像に分割する必要は必ずしもなく、学習モデル104による異常判定の精度が確保できる範囲で、分割後の画像を正方形となるように画像サイズを変更するものとしてもよい。なお、学習モデル104を生成する学習アルゴリズムは、CNNに限定されるものではなく、その他の学習アルゴリズムによって生成されるものとしてもよい。また、本実施形態では、フランジ部の画像から、学習モデル104を用いた異常判定処理の結果として、当該フランジ部の形状が正常か異常かの判定結果、および当該判定結果の信頼性の程度を示す信頼度が得られるものとして説明する。 The abnormality determination program 103 is a program for executing abnormality determination processing using a predetermined learning model 104 for each divided image divided by the preprocessing program 102 . Specifically, the abnormality determination program 103 receives each divided image as an input, and performs determination processing by the learning model 104 to obtain an output of a determination result as to whether the image is normal or abnormal. The learning model 104 uses teacher data obtained by combining the image of the flange portion of the roof member with normal or abnormal information as a label, for example, a CNN (Convolutional Neural Network), which is an example of supervised learning of machine learning. It is a learning model generated by a network). In the case of CNN, the divided images divided from the extracted image by the preprocessing program 102 must be divided into images (square images) having the same number of vertical and horizontal pixels. However, it is not always necessary to directly divide the extracted image into square images, and it is possible to change the image size so that the divided image becomes a square within a range in which the accuracy of abnormality determination by the learning model 104 can be secured. good. Note that the learning algorithm for generating the learning model 104 is not limited to CNN, and may be generated by other learning algorithms. Further, in the present embodiment, as a result of abnormality determination processing using the learning model 104 from the image of the flange portion, the result of determining whether the shape of the flange portion is normal or abnormal and the degree of reliability of the determination result are obtained. It is assumed that the indicated reliability is obtained.

表示装置13は、異常判定プログラム103による判定結果等を表示する、LCD(Liquid Crystal Display:液晶ディスプレイ)またはOELD(Organic Electro-Luminescent Display:有機ELディスプレイ)等の表示装置である。 The display device 13 is a display device such as an LCD (Liquid Crystal Display) or an OELD (Organic Electro-Luminescent Display) that displays the results of determination by the abnormality determination program 103 .

サーバ装置20は、異常判定プログラム103による判定結果等を蓄積するサーバ装置である。 The server device 20 is a server device that accumulates determination results and the like by the abnormality determination program 103 .

(異常検知装置のハードウェア構成)
図2は、実施形態に係る異常検知装置のハードウェア構成の一例を示す図である。図2を参照しながら、本実施形態に係る異常検知装置10のハードウェア構成について説明する。
(Hardware configuration of anomaly detection device)
FIG. 2 is a diagram illustrating an example of the hardware configuration of the abnormality detection device according to the embodiment; The hardware configuration of the abnormality detection device 10 according to this embodiment will be described with reference to FIG.

図2に示すように、異常検知装置10は、CPU(Central Processing Unit)201と、RAM(Random Access Memory)202と、ROM(Read Only Memory)203と、補助記憶装置204と、ネットワークI/F205と、入出力I/F206と、表示出力I/F207と、撮像I/F208と、を備えている。これらの各部は、バスライン210を介して互いにデータ通信が可能となるように接続されている。 As shown in FIG. 2, the abnormality detection device 10 includes a CPU (Central Processing Unit) 201, a RAM (Random Access Memory) 202, a ROM (Read Only Memory) 203, an auxiliary storage device 204, and a network I/F 205. , an input/output I/F 206 , a display output I/F 207 , and an imaging I/F 208 . These units are connected via a bus line 210 so as to enable data communication with each other.

CPU201は、異常検知装置10全体の動作を制御する演算装置である。RAM202は、CPU201のワークエリアとして使用される揮発性記憶装置である。ROM203は、IPL(Initial Program Loader)のようなCPU201が最初に実行するプログラム等を記憶する不揮発性記憶装置である。なお、CPU201、RAM202およびROM203は、例えば1つの基板に実装されたSoC(System on a Chip)として構成されていてもよい。 The CPU 201 is an arithmetic device that controls the operation of the abnormality detection device 10 as a whole. A RAM 202 is a volatile storage device used as a work area for the CPU 201 . The ROM 203 is a non-volatile storage device that stores programs such as an IPL (Initial Program Loader) that the CPU 201 executes first. Note that the CPU 201, the RAM 202, and the ROM 203 may be configured as an SoC (System on a Chip) mounted on one substrate, for example.

補助記憶装置204は、上述した画像処理プログラム101、前処理プログラム102、異常判定プログラム103および学習モデル104、ならびにこれらのプログラムで用いられる各種データ等を記憶するHDD(Hard Disk Drive)、SSD(Solid State Drive)、eMMC(embedded Multi Media Card)またはmicroSDカード等の補助記憶装置である。 Auxiliary storage device 204 stores image processing program 101, preprocessing program 102, abnormality determination program 103, learning model 104, and various data used in these programs. State Drive), eMMC (embedded Multi Media Card), or an auxiliary storage device such as a microSD card.

ネットワークI/F205は、ネットワーク等に接続してデータ通信するためのインターフェースである。図2に示す例では、ネットワークI/F205は、サーバ装置20に接続されており、異常検知装置10における上述の判定結果等をサーバ装置20へ送信する。また、ネットワークI/F205は、例えば、TCP(Transmission Control Protocol)/IP(Internet Protocol)のプロトコルで通信可能にするEthernet(登録商標)規格のインターフェースである。なお、ネットワークI/F205は、有線通信に限定されるものではなく、Wi-Fi(登録商標)等に基づく無線通信のインターフェースであってもよい。 A network I/F 205 is an interface for connecting to a network or the like for data communication. In the example shown in FIG. 2 , the network I/F 205 is connected to the server device 20 and transmits the above-described determination results and the like of the abnormality detection device 10 to the server device 20 . Also, the network I/F 205 is an Ethernet (registered trademark) standard interface that enables communication using TCP (Transmission Control Protocol)/IP (Internet Protocol) protocols, for example. Note that the network I/F 205 is not limited to wired communication, and may be a wireless communication interface based on Wi-Fi (registered trademark) or the like.

入出力I/F206は、PLC11と通信をするためのGPIO(General Purpose Input/Output)等のインターフェースである。入出力I/F206は、例えば、PLC11から上述の搬送信号を受信し、異常判定プログラム103による判定結果を示す信号(正常または異常を示す信号)をPLC11へ送信する。 The input/output I/F 206 is an interface such as GPIO (General Purpose Input/Output) for communicating with the PLC 11 . The input/output I/F 206 , for example, receives the carrier signal from the PLC 11 and transmits to the PLC 11 a signal indicating the result of determination by the abnormality determination program 103 (signal indicating normality or abnormality).

表示出力I/F207は、異常判定プログラム103による判定結果等の表示データを表示装置13へ送信するためのHDMI(登録商標)(High-Definition Multimedia Interface)等のインターフェースである。 The display output I/F 207 is an interface such as HDMI (registered trademark) (High-Definition Multimedia Interface) for transmitting display data such as determination results by the abnormality determination program 103 to the display device 13 .

撮像I/F208は、撮像装置12から撮像画像を受信するためのUSB(Universal Serial Bus)等のインターフェースである。 The imaging I/F 208 is an interface such as a USB (Universal Serial Bus) for receiving captured images from the imaging device 12 .

なお、図1に示す異常検知装置10のハードウェア構成は一例を示すものであり、当該構成に限定されるものではない。例えば、グラフィック処理に特化したGPU(Graphics Processing Unit)等を備えているものとしてもよい。 Note that the hardware configuration of the abnormality detection device 10 shown in FIG. 1 is an example, and is not limited to this configuration. For example, it may include a GPU (Graphics Processing Unit) that specializes in graphic processing.

(異常検知装置の機能的なブロック構成)
図3は、実施形態に係る異常検知装置の機能的なブロック構成の一例を示す図である。図4は、撮像されたルーフ部材の撮像画像およびフランジ部を含む抽出画像の一例を示す図である。図5は、フランジ部の正常画像の一例を示す図である。図6は、フランジ部の異常画像の一例を示す図である。図7は、フランジ部の抽出画像を分割した状態を説明する図である。図8は、撮像画像のフランジ部の形状についての判定結果を重畳表示した状態の一例を示す図である。図3~図8を参照しながら、本実施形態に係る異常検知装置10の機能的なブロック構成および動作について説明する。
(Functional block configuration of anomaly detection device)
FIG. 3 is a diagram illustrating an example of a functional block configuration of the anomaly detection device according to the embodiment; FIG. 4 is a diagram showing an example of an extracted image including a picked-up image of the roof member and a flange portion. FIG. 5 is a diagram showing an example of a normal image of the flange portion. FIG. 6 is a diagram showing an example of an abnormal image of the flange portion. FIG. 7 is a diagram for explaining a state in which the extracted image of the flange portion is divided. FIG. 8 is a diagram showing an example of a superimposed display of the determination result regarding the shape of the flange portion of the captured image. The functional block configuration and operation of the abnormality detection device 10 according to the present embodiment will be described with reference to FIGS. 3 to 8. FIG.

図3に示すように、異常検知装置10は、取得部301と、工程通信部302と、抽出部303と、前処理部304(分割部)と、異常判定部305(判定部)と、表示制御部306と、生成部307と、記憶部308と、を有する。 As shown in FIG. 3, the abnormality detection device 10 includes an acquisition unit 301, a process communication unit 302, an extraction unit 303, a preprocessing unit 304 (dividing unit), an abnormality determination unit 305 (determination unit), and a display It has a control unit 306 , a generation unit 307 and a storage unit 308 .

取得部301は、撮像装置12により撮像された、車体である部品30のルーフ部材のフランジ部を含む撮像画像を、撮像I/F208を介して取得する機能部である。ここで、図4(a)に、撮像画像の一例として、撮像装置12により撮像された、部品30のルーフ部材31のフランジ部31aを含む撮像画像IMG1を示している。また、取得部301は、後述する工程通信部302から部品30についての上述の搬送信号を受信した旨を受け取った場合、撮像装置12により撮像された撮像画像の取得を開始する。なお、工程通信部302により搬送信号を受信したタイミングで、撮像装置12による撮像動作の開始、かつ取得部301による撮像画像の取得動作の開始が行われるものとしてもよい。取得部301は、取得した撮像画像を、抽出部303へ出力する。取得部301は、例えば、図2に示すCPU201により画像処理プログラム101が実行されることによって実現される。 The acquisition unit 301 is a functional unit that acquires, via the imaging I/F 208 , a captured image including the flange portion of the roof member of the component 30 that is the vehicle body, captured by the imaging device 12 . Here, FIG. 4A shows a captured image IMG1 including the flange portion 31a of the roof member 31 of the component 30 captured by the imaging device 12 as an example of the captured image. In addition, when the acquisition unit 301 receives from the process communication unit 302 described later that the above-described transport signal regarding the component 30 has been received, the acquisition unit 301 starts acquisition of the captured image captured by the imaging device 12 . Note that the imaging operation by the imaging device 12 and the acquisition operation of the captured image by the acquisition unit 301 may be started at the timing when the carrier signal is received by the process communication unit 302 . The acquisition unit 301 outputs the acquired captured image to the extraction unit 303 . The acquisition unit 301 is realized, for example, by executing the image processing program 101 by the CPU 201 shown in FIG.

工程通信部302は、入出力I/F206を介して通信を行う機能部である。例えば、工程通信部302は、部品30が搬送ライン3上において、撮像装置12による撮像に適した所定位置に搬送されたタイミングでPLC11から搬送信号を受信し、当該搬送信号を受信した旨を、取得部301へ出力する。また、工程通信部302は、異常判定部305による判定結果を示す信号(正常または異常を示す信号)をPLC11へ送信する。工程通信部302は、例えば、図2に示すCPU201により所定のプログラムが実行されることによって実現される。 The process communication unit 302 is a functional unit that communicates via the input/output I/F 206 . For example, the process communication unit 302 receives a transport signal from the PLC 11 at the timing when the component 30 is transported to a predetermined position suitable for imaging by the imaging device 12 on the transport line 3, and notifies that the transport signal has been received. Output to acquisition unit 301 . In addition, the process communication unit 302 transmits a signal indicating the result of determination by the abnormality determination unit 305 (signal indicating normality or abnormality) to the PLC 11 . The process communication unit 302 is realized, for example, by executing a predetermined program by the CPU 201 shown in FIG.

抽出部303は、取得部301により取得された撮像画像から、所定の対象物の画像部分を抽出する機能部である。具体的には、抽出部303は、取得部301により取得された撮像画像から、部品30のルーフ部材のフランジ部の画像を抽出する。例えば、図4(b)では、抽出部303は、取得部301から受け取った撮像画像である図4(a)に示す撮像画像IMG1から、部品30のルーフ部材31のフランジ部31aを含む画像として抽出画像EIMG1を抽出した例を示している。また、図5に示す抽出画像EIMG1は、抽出部303により撮像画像から抽出された、形状が正常なフランジ部31aを含む抽出画像の一例を示す。一方、図6に示す抽出画像EIMG2は、抽出部303により撮像画像から抽出された、異常な形状部分を有するフランジ部31aを含む抽出画像の一例を示す。図6では、抽出画像EIMG2に示すフランジ部31aに、異常な形状部分として、3か所の異常部分31bを含む例を示している。 The extraction unit 303 is a functional unit that extracts an image portion of a predetermined target object from the captured image acquired by the acquisition unit 301 . Specifically, the extraction unit 303 extracts the image of the flange portion of the roof member of the component 30 from the captured image acquired by the acquisition unit 301 . For example, in FIG. 4B, the extraction unit 303 extracts an image including the flange portion 31a of the roof member 31 of the component 30 from the captured image IMG1 shown in FIG. An example of extracting an extracted image EIMG1 is shown. An extracted image EIMG1 shown in FIG. 5 is an example of an extracted image including the normal-shaped flange portion 31a, which is extracted from the captured image by the extraction unit 303. As shown in FIG. On the other hand, an extracted image EIMG2 shown in FIG. 6 shows an example of an extracted image including the flange portion 31a having an abnormal shape extracted from the captured image by the extraction unit 303. In FIG. FIG. 6 shows an example in which the flange portion 31a shown in the extracted image EIMG2 includes three abnormal portions 31b as abnormal shape portions.

抽出部303による抽出方法は、撮像画像の所定の領域の切り出し処理、テンプレートマッチング等による所定のアルゴリズムに基づく抽出処理、または、教師あり学習等により生成した所定の学習モデルを用いるYOLO等を用いた既存の抽出処理のいずれに基づく方法であってもよい。抽出部303は、抽出したフランジ部31aの抽出画像、前処理部304へ出力する。抽出部303は、例えば、図2に示すCPU201により画像処理プログラム101が実行されることによって実現される。 The extraction method by the extraction unit 303 is extraction processing of a predetermined region of the captured image, extraction processing based on a predetermined algorithm such as template matching, or YOLO using a predetermined learning model generated by supervised learning or the like. The method may be based on any existing extraction process. The extraction unit 303 outputs the extracted image of the flange portion 31 a to the preprocessing unit 304 . The extracting unit 303 is realized by executing the image processing program 101 by the CPU 201 shown in FIG. 2, for example.

前処理部304は、抽出部303により抽出されたフランジ部31aの抽出画像に対して、後段の異常判定部305による異常判定処理のための所定の前処理を実行する機能部である。前処理部304は、所定の前処理として、具体的には、異常判定部305による異常判定処理の負荷を軽減するために、抽出画像を複数の画像に分割する。図7に示す例では、前処理部304は、例えば、抽出部303より抽出された抽出画像EIMG1について、5つの分割画像SIMGに分割している。なお、異常判定部305が用いる学習モデル104がCNNに基づくものである場合、上述のように、抽出画像から分割される分割画像は、垂直および水平のピクセル数が同一の画像(正方形の画像)に分割する必要がある。ただし、抽出画像から直接、正方形の画像に分割する必要は必ずしもなく、学習モデル104による異常判定の精度が確保できる範囲で、分割後の画像を正方形となるように画像サイズを変更するものとしてもよい。前処理部304は、分割した複数の分割画像を、異常判定部305へ出力する。 The preprocessing unit 304 is a functional unit that executes predetermined preprocessing for abnormality determination processing by the abnormality determination unit 305 in the subsequent stage on the extracted image of the flange portion 31 a extracted by the extraction unit 303 . The preprocessing unit 304 divides the extracted image into a plurality of images as predetermined preprocessing, specifically, in order to reduce the load of abnormality determination processing by the abnormality determination unit 305 . In the example shown in FIG. 7, the preprocessing unit 304 divides the extraction image EIMG1 extracted by the extraction unit 303, for example, into five divided images SIMG. In addition, when the learning model 104 used by the abnormality determination unit 305 is based on CNN, as described above, the divided images obtained by dividing the extracted image are images having the same number of vertical and horizontal pixels (square images). must be split into However, it is not always necessary to directly divide the extracted image into square images, and it is possible to change the image size so that the divided image becomes a square within a range in which the accuracy of abnormality determination by the learning model 104 can be secured. good. The preprocessing unit 304 outputs the plurality of divided images to the abnormality determination unit 305 .

抽出部303により抽出された抽出画像が高解像度のデータサイズが大きな画像である場合、異常判定部305による異常判定処理に大きな負荷がかかるところ、上述のように、前処理部304により抽出画像を複数の分割画像に分割することによって、当該異常判定処理の負荷を低減することができる。また、異常判定部305による異常判定処理の負荷を低減するために、抽出画像を縮小してデータサイズを小さくすることも考えられるが、抽出画像に含まれるフランジ部31aの形状の解像度が下がり、当該異常判定処理の精度が低下するため、好ましくない。なお、図7の例では、所定の対象物として横長のフランジ部31aであるために、水平方向に分割しているが、これに限定されるものではなく、抽出画像に含まれる所定の対象物の形状および大きさに応じて、垂直方向、または水平方向および垂直方向に分割するものとしてもよい。また、前処理部304により抽出画像を必ず分割しなければならないわけではなく、抽出画像のデータサイズおよび形状によっては、異常判定部305により抽出画像に対して直接、異常判定処理が実行されるものとしてもよい。この場合、前処理部304により抽出画像を分割するか否かは、設定に切り替えられるものとしてもよく、または、抽出画像のデータサイズまたは形状に応じて自動で切り替えらえるものとしてもよい。 When the extraction image extracted by the extraction unit 303 is a high-resolution image with a large data size, the abnormality determination processing by the abnormality determination unit 305 is heavily loaded. By dividing the image into a plurality of divided images, the load of the abnormality determination process can be reduced. Further, in order to reduce the load of the abnormality determination processing by the abnormality determination unit 305, it is conceivable to reduce the data size by reducing the extracted image, but the resolution of the shape of the flange portion 31a included in the extracted image is reduced. This is not preferable because the accuracy of the abnormality determination process is lowered. In the example of FIG. 7, since the predetermined object is the horizontally long flange portion 31a, it is divided in the horizontal direction. Depending on the shape and size of the , it may be divided vertically or horizontally and vertically. In addition, it is not always necessary to divide the extracted image by the preprocessing unit 304, and depending on the data size and shape of the extracted image, the abnormality determination unit 305 directly executes abnormality determination processing on the extracted image. may be In this case, whether or not to divide the extracted image by the preprocessing unit 304 may be switched by setting, or may be automatically switched according to the data size or shape of the extracted image.

前処理部304は、例えば、図2に示すCPU201により前処理プログラム102が実行されることによって実現される。 The preprocessing unit 304 is implemented by executing the preprocessing program 102 by the CPU 201 shown in FIG. 2, for example.

異常判定部305は、前処理部304により分割された各分割画像について、記憶部308に記憶された学習モデル104を用いて異常判定処理を実行する機能部である。具体的には、異常判定部305は、各分割画像を入力として、学習モデル104による判別処理により、正常か異常かの判定結果(異常の有無を示す判定結果)の出力を行う。この場合、異常判定部305は、分割画像ごとに異常判定処理を行うため、いずれの分割画像に異常があるかを区別して出力することが可能である。また、異常判定部305は、分割画像ごとに、フランジ部31aの形状が正常か異常かの判定結果、および当該判定結果の信頼性の程度を示す信頼度を出力する。異常判定部305は、分割画像ごとの判定結果および信頼度を表示制御部306およびサーバ装置20へ出力し、分割画像ごとの判定結果を工程通信部302へ出力する。そして、工程通信部302は、分割画像ごとの判定結果を、PLC11へ送信し、PLC11は、いずれかの分割画像の判定結果に異常を示すものがある場合には、搬送ライン3に対する所定の処理(ライン停止等)を実行する。異常判定部305は、例えば、図2に示すCPU201により異常判定プログラム103が実行されることによって実現される。 The abnormality determination unit 305 is a functional unit that executes abnormality determination processing using the learning model 104 stored in the storage unit 308 for each divided image divided by the preprocessing unit 304 . Specifically, the abnormality determination unit 305 receives each divided image as an input, and performs determination processing by the learning model 104 to output a determination result as to whether it is normal or abnormal (determination result indicating whether there is an abnormality). In this case, since the abnormality determination unit 305 performs abnormality determination processing for each divided image, it is possible to distinguish which divided image has an abnormality and output it. Further, the abnormality determination unit 305 outputs a determination result as to whether the shape of the flange portion 31a is normal or abnormal, and a degree of reliability indicating the degree of reliability of the determination result for each divided image. The abnormality determination unit 305 outputs the determination result and reliability for each divided image to the display control unit 306 and the server device 20 , and outputs the determination result for each divided image to the process communication unit 302 . Then, the process communication unit 302 transmits the determination result for each divided image to the PLC 11, and the PLC 11 performs predetermined processing on the transport line 3 when there is an abnormality in the determination result of any of the divided images. (line stop, etc.). The abnormality determination unit 305 is implemented by executing the abnormality determination program 103 by the CPU 201 shown in FIG. 2, for example.

なお、異常判定部305による異常判定処理は、学習モデル104を用いた判別処理を利用するものとしているが、これに限定されるものではなく、テンプレートマッチング等の学習モデルを用いない所定のアルゴリズムに基づく異常判定処理を実行するものとしてもよい。この場合においても、前処理部304により抽出画像を複数の分割画像に分割することによって、当該異常判定処理の負荷を低減することができる。 The abnormality determination processing by the abnormality determination unit 305 is assumed to use the discrimination processing using the learning model 104, but is not limited to this, and may be performed using a predetermined algorithm such as template matching that does not use the learning model. It is also possible to execute the abnormality determination process based on the Even in this case, by dividing the extracted image into a plurality of divided images by the preprocessing unit 304, the load of the abnormality determination process can be reduced.

表示制御部306は、異常判定部305から受け取った判定結果を表示装置13に表示させる機能部である。例えば、表示制御部306は、取得部301により取得された撮像画像に対して、当該判定結果を重畳して表示する。なお、当該撮像画像に対して、当該判定結果に加えて、当該判定結果の信頼度を重畳させて表示するものとしてもよい。図8に示す例では、表示制御部306は、取得部301により取得された撮像画像IMG2において、異常判定部305による異常判定処理で判別されたフランジ部31aにおける異常部分に対して、異常を示す判定結果としての「anomaly」、および当該異常判定処理の信頼度を含む重畳表示部SPNa、SPNbをそれぞれ重畳させて表示している。なお、表示制御部306は、例えば、信頼度の数値に応じて、重畳表示部の表示色等の態様を異なるように表示させてもよい。 The display control unit 306 is a functional unit that causes the display device 13 to display the determination result received from the abnormality determination unit 305 . For example, the display control unit 306 superimposes and displays the determination result on the captured image acquired by the acquisition unit 301 . In addition to the determination result, the reliability of the determination result may be superimposed on the captured image and displayed. In the example shown in FIG. 8, the display control unit 306 indicates an abnormality in the abnormal portion of the flange portion 31a determined by the abnormality determination processing by the abnormality determination unit 305 in the captured image IMG2 acquired by the acquisition unit 301. "anomaly" as the determination result and superimposed display parts SPNa and SPNb including the reliability of the abnormality determination process are superimposed and displayed. It should be noted that the display control unit 306 may, for example, cause the display color of the superimposed display unit to be displayed differently depending on the numerical value of the reliability.

このように、判定結果を表示装置13に表示させることによって、搬送ライン3の作業者は、判定結果を視覚的に認識することができる。また、撮像画像のフランジ部31aの異常部分に、判定結果を重畳させて表示することによって、作業者は、学習モデル104により判別された、フランジ部31aにおける形状の異常部分を容易に確認することができる。また、撮像画像のフランジ部31aの異常部分に、学習モデル104を用いた識別処理の信頼度を重畳させて表示することによって、学習モデル104に基づく異常判定処理の信頼性を確認することができる。 By displaying the determination result on the display device 13 in this way, the operator of the transfer line 3 can visually recognize the determination result. In addition, by superimposing the determination result on the abnormal portion of the flange portion 31a of the captured image and displaying it, the operator can easily confirm the abnormal portion of the shape of the flange portion 31a determined by the learning model 104. can be done. Further, by superimposing the reliability of the identification processing using the learning model 104 on the abnormal portion of the flange portion 31a of the captured image and displaying it, the reliability of the abnormality determination processing based on the learning model 104 can be confirmed. .

表示制御部306は、例えば、図2に示すCPU201により異常判定プログラム103等のプログラムが実行されることによって実現される。 The display control unit 306 is realized, for example, by executing a program such as the abnormality determination program 103 by the CPU 201 shown in FIG.

生成部307は、ルーフ部材のフランジ部の画像に、ラベルとしての正常または異常の情報を組み合わせた教師データを用いて、例えば機械学習の教師あり学習の一例であるCNN等により学習モデル104を予め生成する機能部である。生成部307は、生成した学習モデル104を記憶部308に記憶させる。生成部307は、例えば、図2に示すCPU201により、上述の教師あり学習を実現する学習プログラムが実行されることによって実現される。 The generation unit 307 generates the learning model 104 in advance by CNN, which is an example of supervised learning of machine learning, for example, using supervised data obtained by combining the image of the flange portion of the roof member with normal or abnormal information as a label. This is the function part to generate. The generation unit 307 causes the storage unit 308 to store the generated learning model 104 . The generation unit 307 is implemented by, for example, the CPU 201 shown in FIG. 2 executing a learning program that implements the above-described supervised learning.

記憶部308は、画像処理プログラム101、前処理プログラム102、異常判定プログラム103および学習モデル104、ならびにこれらのプログラムで用いられる各種データ等を記憶する機能部である。なお、上述の図1で示したように、画像処理プログラム101、前処理プログラム102、学習モデル104を用いる異常判定プログラム103は、別々のプログラムとしているが、これに限定されるものではなく、例えば、1つのプログラムとして構成されているものとしてもよい。記憶部308は、図2に示す補助記憶装置204によって実現される。 The storage unit 308 is a functional unit that stores the image processing program 101, the preprocessing program 102, the abnormality determination program 103, the learning model 104, and various data used in these programs. As shown in FIG. 1 above, the image processing program 101, the preprocessing program 102, and the abnormality determination program 103 using the learning model 104 are separate programs. , may be configured as one program. The storage unit 308 is implemented by the auxiliary storage device 204 shown in FIG.

なお、図3に示した異常検知装置10の各機能部は、機能を概念的に示したものであって、このような構成に限定されるものではない。例えば、図3で独立した機能部として図示した複数の機能部を、1つの機能部として構成してもよい。一方、図3の1つの機能部が有する機能を複数に分割し、複数の機能部として構成するものとしてもよい。 Note that each functional unit of the abnormality detection device 10 shown in FIG. 3 conceptually shows the function, and is not limited to such a configuration. For example, a plurality of functional units illustrated as independent functional units in FIG. 3 may be configured as one functional unit. On the other hand, the function of one functional unit in FIG. 3 may be divided into a plurality of functions to form a plurality of functional units.

(異常検知システムの異常検知処理の流れ)
図9は、実施形態に係る異常検知システムの異常検知処理の流れの一例を示すフローチャートである。図9を参照しながら、本実施形態に係る異常検知システム1の異常検知処理の流れについて説明する。
(Flow of anomaly detection processing of the anomaly detection system)
FIG. 9 is a flowchart showing an example of the flow of anomaly detection processing of the anomaly detection system according to the embodiment. The flow of abnormality detection processing of the abnormality detection system 1 according to the present embodiment will be described with reference to FIG. 9 .

<ステップS11>
まず、部品30が搬送ライン3上において、撮像装置12による撮像に適した所定位置に搬送されたタイミングで、PLC11から当該所定位置に搬送されたことを示す搬送信号が、工程通信部302により受信された場合(ステップS11:Yes)、異常検知装置10は待機モードから通常の動作モードに復帰し、工程通信部302は、当該搬送信号を受信した旨を、取得部301へ出力し、ステップS12へ移行する。部品30が所定位置に搬送されていない場合(ステップS11:No)、当該所定位置に搬送されるまで待機する。ここで、待機モードとは、例えば省電力状態の動作モードである。
<Step S11>
First, the process communication unit 302 receives a transport signal from the PLC 11 indicating that the component 30 has been transported to a predetermined position on the transport line 3 at a timing suitable for imaging by the imaging device 12. If so (step S11: Yes), the abnormality detection device 10 returns from the standby mode to the normal operation mode, the process communication unit 302 outputs to the acquisition unit 301 that the transport signal has been received, and step S12 Move to If the component 30 has not been transported to the predetermined position (step S11: No), it waits until it is transported to the predetermined position. Here, the standby mode is, for example, an operation mode in a power saving state.

<ステップS12>
取得部301は、工程通信部302から搬送信号を受信した旨を受け取った場合、撮像装置12により撮像された撮像画像の取得を開始し、取得した撮像画像を、抽出部303へ出力する。そして、ステップS13へ移行する。
<Step S12>
Upon receiving the receipt of the carrier signal from the process communication unit 302 , the acquisition unit 301 starts acquiring the captured image captured by the imaging device 12 and outputs the acquired captured image to the extraction unit 303 . Then, the process proceeds to step S13.

<ステップS13>
抽出部303は、取得部301により取得された撮像画像から、所定の対象物としての部品30のルーフ部材31のフランジ部31aの画像部分を抽出する。抽出部303は、抽出したフランジ部31aの抽出画像、前処理部304へ出力する。そして、ステップS14へ移行する。
<Step S13>
The extraction unit 303 extracts an image portion of the flange portion 31a of the roof member 31 of the component 30 as a predetermined object from the captured image acquired by the acquisition unit 301 . The extraction unit 303 outputs the extracted image of the flange portion 31 a to the preprocessing unit 304 . Then, the process proceeds to step S14.

<ステップS14>
前処理部304は、後段の異常判定部305による異常判定処理のための前処理として、抽出部303により抽出されたフランジ部31aの抽出画像を複数の画像に分割する。前処理部304は、分割した複数の分割画像を、異常判定部305へ出力する。そして、ステップS15へ移行する。
<Step S14>
The preprocessing unit 304 divides the extraction image of the flange portion 31a extracted by the extraction unit 303 into a plurality of images as preprocessing for the abnormality determination processing by the abnormality determination unit 305 in the subsequent stage. The preprocessing unit 304 outputs the plurality of divided images to the abnormality determination unit 305 . Then, the process proceeds to step S15.

<ステップS15>
異常判定部305は、前処理部304により分割された各分割画像について、記憶部308に記憶された学習モデル104を用いて異常判定処理を実行する。具体的には、異常判定部305は、各分割画像を入力として、学習モデル104による判別処理により、正常か異常かの判定結果の出力を行う。また、異常判定部305は、分割画像ごとに、フランジ部31aの形状が正常か異常かの判定結果、および当該判定結果の信頼性の程度を示す信頼度を出力する。異常判定部305は、分割画像ごとの判定結果および信頼度を表示制御部306およびサーバ装置20へ出力し、分割画像ごとの判定結果を工程通信部302へ出力する。そして、ステップS16へ移行する。
<Step S15>
The abnormality determination unit 305 executes abnormality determination processing using the learning model 104 stored in the storage unit 308 for each divided image divided by the preprocessing unit 304 . Specifically, the abnormality determination unit 305 receives each divided image as an input, performs determination processing by the learning model 104, and outputs a determination result as to whether the image is normal or abnormal. Further, the abnormality determination unit 305 outputs a determination result as to whether the shape of the flange portion 31a is normal or abnormal, and a degree of reliability indicating the degree of reliability of the determination result for each divided image. The abnormality determination unit 305 outputs the determination result and reliability for each divided image to the display control unit 306 and the server device 20 , and outputs the determination result for each divided image to the process communication unit 302 . Then, the process proceeds to step S16.

<ステップS16>
表示制御部306は、取得部301により取得された撮像画像に対して、当該判定結果を重畳して表示する。そして、ステップS17へ移行する。
<Step S16>
The display control unit 306 superimposes and displays the determination result on the captured image acquired by the acquisition unit 301 . Then, the process proceeds to step S17.

<ステップS17>
工程通信部302は、分割画像ごとの判定結果を、PLC11へ送信する。PLC11は、いずれかの分割画像の判定結果に異常を示すものがある場合には、搬送ライン3に対する所定の処理(ライン停止等)を実行する。そして、異常検知装置10は待機モードへ移行する。そして、異常検知処理を終了する。
<Step S17>
The process communication unit 302 transmits the determination result for each divided image to the PLC 11 . The PLC 11 executes a predetermined process (line stop, etc.) on the transport line 3 when any of the determination results of the divided images indicates an abnormality. Then, the abnormality detection device 10 shifts to the standby mode. Then, the abnormality detection process ends.

以上のように、本実施形態に係る異常検知装置10では、取得部301が、撮像装置12により撮像された、搬送ライン3上で搬送される部品30におけるルーフ部材31のフランジ部31aに対する撮像画像を取得し、前処理部304が、取得部301により取得された撮像画像におけるフランジ部31aの画像部分を、複数の画像に分割し、異常判定部305が、前処理部304により分割された複数の分割画像を入力として、学習モデル104を用いた異常判定処理により、異常の有無を示す判定結果を出力として得るものとしている。これによって、所定の対象物としてのフランジ部31aについて精度よく形状の異常を検知することができる。また、撮像画像のフランジ部31aの画像部分を複数の分割画像に分割するため、異常判定部305による異常判定処理の負荷を低減することができる。 As described above, in the abnormality detection device 10 according to the present embodiment, the acquisition unit 301 captures an image of the flange portion 31a of the roof member 31 of the component 30 transported on the transport line 3, which is captured by the imaging device 12. is acquired, the preprocessing unit 304 divides the image portion of the flange portion 31a in the captured image acquired by the acquisition unit 301 into a plurality of images, and the abnormality determination unit 305 divides the plurality of images divided by the preprocessing unit 304 The divided image is input, and an abnormality determination process using the learning model 104 is performed to obtain a determination result indicating the presence or absence of an abnormality as an output. As a result, it is possible to accurately detect an abnormality in the shape of the flange portion 31a as a predetermined object. In addition, since the image portion of the flange portion 31a of the captured image is divided into a plurality of divided images, the load of abnormality determination processing by the abnormality determination unit 305 can be reduced.

また、異常検知装置10では、抽出部303が、取得部301により取得された撮像画像からフランジ部31aの画像部分を抽出画像として抽出し、前処理部304が、抽出部303により抽出された抽出画像を、複数の画像に分割するものとしている。これによって、所定の対象物としてのフランジ部31aを含む画像部分を抽出したうえで異常判定処理が行われるので、フランジ部31aに対する異常検知の精度を向上させることができる。 Further, in the abnormality detection device 10, the extraction unit 303 extracts the image portion of the flange portion 31a from the captured image acquired by the acquisition unit 301 as an extracted image, and the preprocessing unit 304 extracts the image extracted by the extraction unit 303. It is assumed that the image is divided into a plurality of images. As a result, the abnormality determination process is performed after extracting the image portion including the flange portion 31a as the predetermined object, so that the accuracy of abnormality detection for the flange portion 31a can be improved.

また、異常検知装置10では、工程通信部302が、部品30が搬送ライン3上の所定位置に搬送されたことを示す搬送信号を受信し、取得部301が、工程通信部302により搬送信号が受信された場合に、撮像装置12により撮像された撮像画像の取得を開始するものとしている。これによって、搬送信号が受信された時点から、撮像画像の取得処理が開始されて、異常判定処理までの一連の処理が実行されるので、異常検知装置10の処理負荷を低減することができる。 In the abnormality detection device 10, the process communication unit 302 receives a transport signal indicating that the part 30 has been transported to a predetermined position on the transport line 3, and the acquisition unit 301 receives the transport signal from the process communication unit 302. Acquisition of a captured image captured by the imaging device 12 is started when the command is received. As a result, the processing load of the abnormality detection device 10 can be reduced since the captured image acquisition processing is started from the time the carrier signal is received and a series of processing is executed up to the abnormality determination processing.

また、異常検知装置10では、工程通信部302により搬送信号が受信された場合、待機モードから復帰させ、異常判定部305による異常判定処理が終了すると、待機モードへ移行させるものとしている。これによって、異常検知装置10としてシングルボードコンピュータ等を採用することができ、処理負荷を低減することができる。 In the abnormality detection device 10, when the process communication unit 302 receives the transport signal, the standby mode is resumed, and when the abnormality determination processing by the abnormality determination unit 305 is completed, the abnormality detection device 10 is switched to the standby mode. Thereby, a single board computer or the like can be adopted as the abnormality detection device 10, and the processing load can be reduced.

1 異常検知システム
3 搬送ライン
10 異常検知装置
11 PLC
12 撮像装置
13 表示装置
20 サーバ装置
30 部品
31 ルーフ部材
31a フランジ部
31b 異常部分
101 画像処理プログラム
102 前処理プログラム
103 異常判定プログラム
104 学習モデル
301 取得部
302 工程通信部
303 抽出部
304 前処理部
305 異常判定部
306 表示制御部
307 生成部
308 記憶部
1 Abnormality Detection System 3 Transfer Line 10 Abnormality Detection Device 11 PLC
12 imaging device 13 display device 20 server device 30 part 31 roof member 31a flange 31b abnormal portion 101 image processing program 102 preprocessing program 103 abnormality determination program 104 learning model 301 acquisition unit 302 process communication unit 303 extraction unit 304 preprocessing unit 305 Abnormality determination unit 306 Display control unit 307 Generation unit 308 Storage unit

Claims (6)

撮像装置により撮像された、搬送経路上で搬送される部品における所定の対象物に対する撮像画像を取得する取得部と、
前記取得部により取得された前記撮像画像における前記対象物の画像部分を、複数の画像に分割する分割部と、
前記分割部により分割された前記複数の画像を入力として、所定の学習モデルを用いた異常判定処理により、異常の有無を示す判定結果を出力として得る判定部と、
を備えた異常検知装置。
an acquisition unit that acquires a captured image of a predetermined object in a component that is transported on a transport route, which is captured by an imaging device;
a division unit that divides an image portion of the object in the captured image acquired by the acquisition unit into a plurality of images;
a determining unit that receives the plurality of images divided by the dividing unit as input and obtains as an output a determination result indicating the presence or absence of an abnormality through abnormality determination processing using a predetermined learning model;
Anomaly detection device with
前記取得部により取得された前記撮像画像から前記対象物の画像部分を抽出画像として抽出する抽出部を、さらに備え、
前記分割部は、前記抽出部により抽出された前記抽出画像を、前記複数の画像に分割する請求項1に記載の異常検知装置。
further comprising an extraction unit that extracts an image portion of the object from the captured image acquired by the acquisition unit as an extracted image,
The anomaly detection device according to claim 1, wherein the dividing section divides the extracted image extracted by the extracting section into the plurality of images.
前記部品が前記搬送経路上の所定位置に搬送されたことを示す信号を受信する受信部を、さらに備え、
前記取得部は、前記受信部により前記信号が受信された場合に、前記撮像装置により撮像された前記撮像画像の取得を開始する請求項1または2に記載の異常検知装置。
further comprising a receiving unit that receives a signal indicating that the component has been transported to a predetermined position on the transport route;
The anomaly detection device according to claim 1 or 2, wherein the acquisition unit starts acquisition of the captured image captured by the imaging device when the signal is received by the reception unit.
前記受信部により前記信号が受信された場合、待機モードから復帰させ、前記判定部による前記異常判定処理が終了すると、前記待機モードへ移行させる請求項3に記載の異常検知装置。 4. The abnormality detection device according to claim 3, wherein when the signal is received by the receiving section, the standby mode is returned, and when the abnormality determination processing by the determination section is completed, the abnormality detection device is shifted to the standby mode. 前記部品における所定の対象物の画像と、正常か異常かを示すラベルとを組み合わせた教師データを用いて、教師あり学習により前記学習モデルを生成する生成部を、さらに備えた請求項1~4のいずれか一項に記載の異常検知装置。 Claims 1 to 4, further comprising a generation unit that generates the learning model by supervised learning using teacher data that combines an image of a predetermined object in the part and a label indicating whether it is normal or abnormal. The abnormality detection device according to any one of 1. 撮像装置により撮像された、搬送経路上で搬送される部品における所定の対象物に対する撮像画像を取得する取得ステップと、
取得した前記撮像画像における前記対象物の画像部分を、複数の画像に分割する分割ステップと、
分割した前記複数の画像を入力として、所定の学習モデルを用いた異常判定処理により、異常の有無を示す判定結果を出力として得る判定ステップと、
を有する異常検知方法。
an acquisition step of acquiring a captured image of a predetermined object in a component transported on a transport route, which is imaged by an imaging device;
a dividing step of dividing the image portion of the object in the acquired captured image into a plurality of images;
a judgment step of obtaining, as an output, a judgment result indicating the presence or absence of an abnormality through an abnormality judgment process using a predetermined learning model using the plurality of divided images as an input;
An anomaly detection method comprising:
JP2021142617A 2021-09-01 2021-09-01 Anomaly detection device and anomaly detection method Pending JP2023035618A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021142617A JP2023035618A (en) 2021-09-01 2021-09-01 Anomaly detection device and anomaly detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021142617A JP2023035618A (en) 2021-09-01 2021-09-01 Anomaly detection device and anomaly detection method

Publications (1)

Publication Number Publication Date
JP2023035618A true JP2023035618A (en) 2023-03-13

Family

ID=85504259

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021142617A Pending JP2023035618A (en) 2021-09-01 2021-09-01 Anomaly detection device and anomaly detection method

Country Status (1)

Country Link
JP (1) JP2023035618A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016133953A (en) * 2015-01-19 2016-07-25 株式会社メガチップス Determination device, control program and determination method
WO2017183547A1 (en) * 2016-04-19 2017-10-26 日本電気株式会社 Examination device
WO2018158950A1 (en) * 2017-03-03 2018-09-07 三菱電機株式会社 Work aptitude determination device, work aptitude determination method, and work aptitude determination program
WO2020012523A1 (en) * 2018-07-09 2020-01-16 富士通株式会社 Information processing device, information processing method, and information processing program
JP2020013507A (en) * 2018-07-20 2020-01-23 株式会社エヌテック Labeled image data creation method, inspection method, program, labeled image data creation device, and inspection device
JP2020035097A (en) * 2018-08-28 2020-03-05 株式会社モルフォ Image identification device, image identification method, and image identification program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016133953A (en) * 2015-01-19 2016-07-25 株式会社メガチップス Determination device, control program and determination method
WO2017183547A1 (en) * 2016-04-19 2017-10-26 日本電気株式会社 Examination device
WO2018158950A1 (en) * 2017-03-03 2018-09-07 三菱電機株式会社 Work aptitude determination device, work aptitude determination method, and work aptitude determination program
WO2020012523A1 (en) * 2018-07-09 2020-01-16 富士通株式会社 Information processing device, information processing method, and information processing program
JP2020013507A (en) * 2018-07-20 2020-01-23 株式会社エヌテック Labeled image data creation method, inspection method, program, labeled image data creation device, and inspection device
JP2020035097A (en) * 2018-08-28 2020-03-05 株式会社モルフォ Image identification device, image identification method, and image identification program

Similar Documents

Publication Publication Date Title
US9898815B2 (en) Fault diagnostic device of robot system for judging fault by camera image
US20150352721A1 (en) Truck Unloader Visualization
US20150296324A1 (en) Method and Apparatus for Interacting Between Equipment and Mobile Devices
US9576363B2 (en) Object picking system, object detecting device, object detecting method
JP2017096750A (en) Positioning method, positioning apparatus, program and computer readable recording medium
CN104023906A (en) Work management apparatus and work management system
US20210343026A1 (en) Information processing apparatus, control method, and program
US20160301869A1 (en) Translation display device, translation display method, and control program
EP1080447B1 (en) Image processing inspection apparatus
JP2023035618A (en) Anomaly detection device and anomaly detection method
JP2023035620A (en) Anomaly detection device and display method
JP2018152729A (en) Method and apparatus for monitoring state of monitored space
CN114503040A (en) Work instruction system and work instruction method
KR20170026802A (en) Apparatus and Method for managing quality of process management
US20090322759A1 (en) Line plotting method
CN109213092B (en) Method for parameterizing a sensor
CN109146916A (en) A kind of moving body track method and device
CN115398364B (en) Numerical control device and numerical control system
JP2017092757A (en) Image processing system and image processing method
US20210279854A1 (en) Inspection terminal device, inspection device, inspection system, and inspection program
CN104570934A (en) Product machining part detection method and system
KR20150115469A (en) An Automatic inspection method for Cable Harness
JP7407778B2 (en) Verification device and display method
JP7407777B2 (en) Verification device and method
CN113379729A (en) Image tiny anomaly detection method and device and computer readable storage medium

Legal Events

Date Code Title Description
A80 Written request to apply exceptions to lack of novelty of invention

Free format text: JAPANESE INTERMEDIATE CODE: A80

Effective date: 20210928

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231128

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240111

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240305

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240423