Region-of-interest extraction device, method, and system

The target region extraction device employs a deep learning neural network to divide image data into multiple classes, enabling precise area identification and processing, thereby addressing the inaccuracies in conventional methods and enhancing defect inspection accuracy in industrial settings.

WO2024176319A1PCT designated stage expired Publication Date: 2024-08-29FANUC LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/006068
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-20
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Conventional area detection methods in industrial defect inspection, such as those used in machining centers and robots, often fail to accurately identify the target region in images, leading to missed defects or incorrect determinations, especially in products with varying shapes.

Method used

A target region extraction device utilizing a deep learning machine trained by a neural network that divides image data into three or more classes, allowing for precise region extraction by annotating different characteristics in the image data and performing area-specific processing.

Benefits of technology

This approach enhances the precision of region extraction and defect detection by accurately identifying and processing distinct areas within the image data, reducing false detection rates and improving inspection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023006068_29082024_PF_FP_ABST
    Figure JP2023006068_29082024_PF_FP_ABST
Patent Text Reader

Abstract

A region-of-interest extraction device according to the present disclosure comprises: a model storage unit that stores a neural network model trained using a plurality of image data for training, in which different pieces of annotation information that correspond to a type of region are added to three or more regions of image data that have different characteristics, the image data being obtained by imaging a product; a data acquisition unit that acquires image data in which the appearance of the product is imaged; a region extraction unit that extracts, from the image data, three or more types of regions of the image data that have different characterstics, using the model stored in the model storage unit; a by-region processing unit that executes by-region processing corresponding to the type of region on the respective regions; and an output unit that outputs the results of the by-region processing.
Need to check novelty before this filing date? Find Prior Art

Description

Apparatus, method, and system for extracting target area

[0001] The present disclosure relates to an apparatus, method, and system for extracting an object region.

[0002] In manufacturing sites such as factories, products manufactured using industrial machines such as machining centers and robots are inspected (see, for example, Patent Document 1). When inspecting industrial products for defects such as scratches, it is extremely important to correctly determine and detect the target area (target pixel area) of the inspection in an image captured by a camera or other device as preprocessing for defect inspection. If this area detection is incorrect, a defect may be determined based on image information outside the target area, or conversely, a defect may be omitted from the determination area, resulting in an oversight.

[0003] Previous methods for detecting areas included defining an area as a contiguous area containing a set number of pixels with a certain brightness or higher, or defining the shape pattern of the inspection range in advance and performing pattern matching to define the area.

[0004] JP 2018-194542 A

[0005] Conventional area detection methods have problems such as large defects being excluded from the inspection area, and areas being misdetected in castings and other objects with varying shapes. Therefore, there is a need for technology that can extract areas from image data with greater accuracy.

[0006] The target area extraction device disclosed herein solves the above problem by extracting areas using a deep learning device that has been trained in advance using a neural network that divides image data containing the target product into three or more classes, and extracting each area more accurately.

[0007] One aspect of the present disclosure is a target region extraction device that includes: a model storage unit that stores a neural network model trained using a plurality of training image data in which image data obtained by capturing an image of a product is assigned different annotation information according to the type of the region for three or more regions with different characteristics in the image data; a data acquisition unit that acquires image data of an image of the appearance of the product; a region extraction unit that uses the model stored in the model storage unit to extract three or more types of regions with different characteristics from the image data; a region-specific processing unit that performs region-specific processing on each region corresponding to the type of the region; and an output unit that outputs the results of processing by the region-specific processing unit.

[0008] FIG. 1 is a hardware configuration diagram of a target region extraction device according to a first embodiment; FIG. 2 is a block diagram showing the functions of a target region extraction device according to a first embodiment; FIG. 3 is a schematic diagram illustrating division of image data by a region extraction unit; FIG. 4 is a schematic diagram showing an example of region-by-region processing by a region-by-region processing unit; FIG. 5 is a block diagram showing the functions of a target region extraction device according to a second embodiment; FIG. 6 is a schematic diagram showing an example of synthesis processing by a region synthesis unit; and FIG. 7 is a diagram showing an example of a robot used for appearance inspection.

[0009] Embodiments of the present disclosure will be described below with reference to the drawings. [First Embodiment] Fig. 1 is a schematic hardware configuration diagram showing the main components of a target area extraction device according to a first embodiment of the present disclosure. The target area extraction device 1 of the present disclosure can be implemented as a control device for controlling industrial machinery, such as a robot used for visual inspection. The target area extraction device 1 of the present disclosure can also be implemented on a personal computer attached to a control device for controlling industrial machinery used for visual inspection, or on a computer such as a personal computer, cell computer, fog computer 6, or cloud server 7 connected to the control device via a wired or wireless network. In this embodiment, an example is shown in which the target area extraction device 1 is implemented on a personal computer connected to a control device for controlling industrial machinery via a network.

[0010] The CPU 11 provided in the object region extraction device 1 according to this embodiment is a processor that provides overall control of the object region extraction device 1. The CPU 11 reads a system program stored in the ROM 12 via the bus 22, and controls the entire object region extraction device 1 in accordance with the system program. The RAM 13 temporarily stores temporary calculation data, display data, and various data input from outside.

[0011] The nonvolatile memory 14 is configured, for example, by a battery-backed memory (not shown) or an SSD (Solid State Drive), and maintains its stored state even when the power to the target area extraction device 1 is turned off. The nonvolatile memory 14 stores programs and data read from an external device 72 via the interface 15, programs and data input via the input device 71, programs and data acquired from the industrial machine 3, and the like. The data stored in the nonvolatile memory 14 may be expanded into the RAM 13 during execution / use. In addition, various system programs such as known analysis programs are written in the ROM 12 in advance.

[0012] The interface 15 is an interface for connecting the CPU 11 of the target area extraction device 1 to an external device 72 such as a USB device. For example, pre-stored control programs and data related to the operation of each industrial machine 3 can be read from the external device 72. Furthermore, control programs and setting data edited within the target area extraction device 1 can be stored in external storage means via the external device 72.

[0013] The interface 20 is an interface for connecting the CPU 11 of the target area extraction device 1 to a wired or wireless network 5. The network 5 is connected to industrial machines 3, fog computers 6, cloud servers 7, etc., and exchanges data with the target area extraction device 1.

[0014] The display device 70 displays various data loaded into the memory, data obtained as a result of executing programs, etc., output via the interface 17. An input device 71, which is comprised of a keyboard, pointing device, etc., passes instructions, data, etc., based on operations by an operator to the CPU 11 via the interface 18.

[0015] The industrial machine 3 is a machine used to perform visual inspections of products processed by machine tools, injection molding machines, etc. The industrial machine 3 is equipped with an image sensor 4 that captures at least an image of the product's appearance. An example of the industrial machine 3 is a robot that holds the image sensor 4, as shown in FIG. 7 . The target area extraction device 1 acquires image data showing the appearance of the product captured by the image sensor 4 from the industrial machine 3 via the network 5 and the interface 20. The acquired image data is stored in the RAM 13 to the non-volatile memory 14 and processed by the CPU 11.

[0016] The interface 21 is an interface for connecting the CPU 11 and the machine learning device 100. The machine learning device 100 includes a processor 101 that controls the entire machine learning device 100, a ROM 102 that stores system programs and the like, a RAM 103 that provides temporary storage for each process related to machine learning, and a non-volatile memory 104 that is used to store models and the like. The machine learning device 100 can observe each piece of information that can be acquired by the target area extraction device 1 via the interface 21. The target area extraction device 1 also acquires processing results output from the machine learning device 100 via the interface 21, and stores or displays the acquired results, or transmits them to another device via the network 5 or the like.

[0017] 2 is a schematic block diagram showing functions provided in the object region extraction device 1 according to the first embodiment of the present disclosure. Each function provided in the object region extraction device 1 according to this embodiment is realized by the CPU 11 of the object region extraction device 1 and the processor 101 of the machine learning device 100 shown in FIG. 1 executing a system program and controlling the operation of each part of the object region extraction device 1 and the machine learning device 100.

[0018] The target region extraction device 1 of this embodiment includes a data acquisition unit 110, a region extraction unit 120, a region-specific processing unit 140, and an output unit 150. In addition, a model storage unit 210 is prepared in advance on the RAM 103 to the non-volatile memory 104 of the machine learning device 100 as an area for storing a model for dividing the regions of the image data into three or more classes.

[0019] The data acquisition unit 110 may acquire image data of a product captured by the imaging sensor 4 provided in the industrial machine 3. The data acquisition unit 110 may also acquire image data acquired and stored by the external device 72, the fog computer 6, the cloud server 7, etc. The data acquisition unit 110 outputs the acquired image data to the area extraction unit 120.

[0020] The region extraction unit 120 uses a deep learning model stored in the model storage unit 210 to segment and extract regions from the image data input from the data acquisition unit 110. When creating this deep learning model, multiple pieces of training data are used, each with annotation information indicating the type of region to which the pixel belongs. The types of regions in the image data are not simply divided into two classes, such as inspection target and non-inspection target, but are divided into three or more classes that indicate the characteristics of the parts depicted in the regions. For example, the annotation information may include information indicating the flat surface region of the product depicted in the image data, information indicating the region with grooves, information indicating the region with holes, and information indicating the region without a product. During training, the training image data may be subjected to brightness correction (gamma correction) or a process of generating multiple images corresponding to defects and artificially overlaying them to augment the data to account for environmental changes, etc. The model of the deep learning device trained in this way is stored in the model storage unit 210 and used to segment the image data. When image data is provided, the region extraction unit 120 can segment the image data into regions corresponding to the respective annotation information. The region extraction unit 120 outputs data in which the image data region is segmented into three or more regions.

[0021] FIG. 3 is a schematic diagram illustrating image data segmentation by the region extraction unit 120. In the example of FIG. 3, the region extraction unit 120 uses a multilayer neural network model that has learned the following regions of product image data: a flat surface region, a hole region where holes are formed, a groove region where grooves are formed, and an outside-product region where no product is depicted. When product image data 301 is input, the region extraction unit 120 segments and extracts the image data 301 into a region corresponding to the surface region, a region corresponding to the hole region, a region corresponding to the groove region, and a region corresponding to the outside-product region. Data 303 is the region corresponding to the surface region extracted from the image data 301 by the region extraction unit 120 using a machine learning machine. In FIG. 3, the area depicted in white is the surface region. Data 304 is the region corresponding to the hole region extracted from the image data 301 by the region extraction unit 120 using a machine learning machine. In FIG. 3, the area depicted in diagonal lines is the hole region. Data 305 is obtained by the region extraction unit 120 extracting regions corresponding to groove regions from the image data 301 using a machine learning machine. In FIG. 3, the areas depicted in white are shown as groove regions. Data 306 is obtained by the region extraction unit 120 extracting regions corresponding to outside-product regions from the image data 301 using a machine learning machine. In FIG. 3, the areas shaded with diagonal lines are shown as outside-product regions. Techniques for dividing regions within image data in this way are already known as techniques such as segmentation, and therefore will not be described in this specification.

[0022] The region-specific processing unit 140 performs predetermined region-specific processing associated with the type of each region on each region extracted from the image data by the region extraction unit 120. The region-specific processing unit 140 may perform, for example, predetermined image processing associated with the type of each region as the region-specific processing. The region-specific processing unit 140 may also perform, for example, processing to extract some feature portion associated with the type of each region as the region-specific processing. The region-specific processing may include classical image processing, detection processing, and determination processing such as edge detection, shape pattern matching, and Fourier transform. It may also include image processing, detection processing, and determination processing based on machine learning using a neural network or the like.

[0023] FIG. 4 is a schematic diagram illustrating an example of region-by-region processing by the region-by-region processing unit 140. The example in FIG. 4 illustrates an example in which defect detection processes corresponding to each region of product image data extracted by the region extraction unit 120 are executed. There are various types of product defects. Furthermore, each region of the image data has different characteristics depending on its type, and the defects to be detected differ for each region. Therefore, applying different defect detection processes to each type of region to be processed is expected to improve detection accuracy and reduce the rate of false detection. In the example in FIG. 4, the surface region data 303 is subjected to region-by-region processing, which includes a "cutting mark irregularity detection process" to detect irregularities in the spacing between cutting marks and a "black spot detection process" to detect scratches caused by processing. Furthermore, the hole region data 304 is subjected to a "hole shape distortion detection process" because it is sufficient to determine that no product components are present there and that the holes are of the correct shape. Furthermore, for the data 305 relating to the groove region, since there is no particular need to detect disturbances in the cutting traces, only the "black spot detection process" is executed as the process for each region.

[0024] The area-specific processing unit 140 may exclude an area from the target of the predetermined area-specific processing depending on the type of area. In the example of Fig. 4, the data 306 related to the product area is excluded from the target of the area-specific processing because it is determined that the defect detection processing does not need to be performed on the data 306 related to the product area.

[0025] The region-specific processing performed by the region-specific processing unit 140 may be the same, but the parameters of the processing may be changed depending on the type of region. For example, in FIG. 4, the same black spot detection processing is performed on the surface region and the groove region. However, the groove region is often shaded, where light from the light source is difficult to enter. Therefore, the parameters related to the brightness threshold in the black spot detection processing may be changed to suit the dark areas.

[0026] The output unit 150 outputs data related to the results of the region-specific processing performed by the region-specific processing unit 140. For example, if the region-specific processing performed by the region-specific processing unit 140 involves performing predetermined image processing on each region, the output unit 150 outputs the results of the image processing. At this time, the output unit 150 may output a result in which each region image is combined into a single image data. For example, if the region-specific processing performed by the region-specific processing unit 140 involves detection processing or determination processing on each region, the output unit 150 outputs the results of the detection processing or determination processing. The output destination of the results from the output unit 150 may be the display device 70 or a higher-level computer such as the industrial machine 3, the fog computer 6, or the cloud server 7. Alternatively, the results may be output to a storage area previously provided on the non-volatile memory 14 or the like.

[0027] The target region extraction device 1 according to this embodiment, which has the above configuration, divides the image data of a given product into regions associated with three or more classes. Then, it performs region-specific processing on each region according to the type of region. Image data of an image of a product contains regions associated with at least two classes: regions where the product is captured and regions where the product is not captured. Each class of region typically contains multiple regions with different characteristics. This is because products captured in image data often have complex three-dimensional shapes. Even regions that contain a product may include multiple types of regions, such as regions to be inspected, out-of-focus regions, regions with different characteristics such as holes, chamfers, and grooves, and regions with engraved two-dimensional codes. Regions that do not contain a product may also include, for example, regions where an inspection table is captured and regions where the product is not captured. Each of these regions has different characteristics. Therefore, when attempting to divide the image data into two classes, regions where the product is captured and regions where the product is not captured, it is necessary to build a machine learning model that can identify regions with different characteristics as a single region. However, when learning using images, grouping images with different characteristics into a single class can make learning difficult. The target area extraction device 1 according to this embodiment divides image data containing products into multiple classes according to their characteristics for learning, which is expected to improve learning accuracy even with fewer images and a simple learning mechanism. This is expected to improve the accuracy of segmenting regions in image data containing products. Furthermore, compared to existing methods, it is possible to finely segment regions in product image data according to their characteristics and perform region-specific processing appropriate for each region, which is expected to improve detection and determination accuracy.

[0028] Second Embodiment A target region extraction device according to a second embodiment will be described below. The target region extraction device 1 according to this embodiment has the same hardware configuration as the target region extraction device 1 according to the first embodiment.

[0029] 5 is a schematic block diagram showing functions provided in the object region extraction device 1 according to the second embodiment of the present disclosure. Each function provided in the object region extraction device 1 according to this embodiment is realized by the CPU 11 of the object region extraction device 1 and the processor 101 of the machine learning device 100 shown in FIG. 1 executing a system program and controlling the operation of each part of the object region extraction device 1 and the machine learning device 100.

[0030] The target region extraction device 1 of this embodiment further includes a region synthesis unit 130 in addition to a data acquisition unit 110, a region extraction unit 120, a region-specific processing unit 140, and an output unit 150. Furthermore, a model storage unit 210 is prepared in advance on the RAM 103 to the non-volatile memory 104 of the machine learning device 100 as a region for storing a model for dividing the regions of image data of an image of a product into three or more classes.

[0031] The data acquisition unit 110, area extraction unit 120, area-specific processing unit 140, and output unit 150 according to this embodiment have the same functions as the data acquisition unit 110, area extraction unit 120, area-specific processing unit 140, and output unit 150 according to the first embodiment, respectively.

[0032] The region combining unit 130 according to this embodiment performs a combining process on two or more regions extracted from image data by the region extraction unit 120, superimposing them into a single region. The region combining unit 130 may, for example, superimpose and combine multiple regions that are the target of detection processing or determination processing. Alternatively, the region combining unit 130 may superimpose and combine multiple regions that are not the target of detection processing or determination processing. The type of region to be combined may be determined in advance by settings, etc. The combined region can be treated as a new type of region.

[0033] 6 is a schematic diagram showing an example of the merging process performed by the region merging unit 130. In the example of FIG. 6, data 303 relating to a surface region that is the target of defect detection processing and data 305 relating to a groove region within the regions of the product image data extracted by the region extraction unit 120 are merged into data 307 relating to a single defect detection target region. In addition, data 304 relating to a hole region that is not the target of defect detection processing and data 306 relating to an outside-product region are merged into data 308 relating to a single defect detection non-target region. The region-specific processing unit 140 performs region-specific processing on the region merged in this manner according to the type of the region.

[0034] The object region extraction device 1 according to this embodiment, which has the above configuration, divides the image data of a given product into regions corresponding to three or more classes. It then combines some of the divided regions into new regions. Then, it performs region-specific processing on each region according to its type. If image data of a captured product is simply divided into two classes—regions to be inspected and regions not to be inspected—each region will contain various regions with different characteristics. In other words, the machine learning model that divides the image data into these two classes must be able to identify regions with different characteristics as a single region. However, when learning using images, combining regions with different characteristics into a single class can make learning difficult. By dividing image data containing products into multiple classes according to their characteristics and conducting training, the object region extraction device 1 according to this embodiment is expected to improve learning accuracy even with a smaller number of images and a simpler learning mechanism. Then, by combining the divided regions into new regions tailored to the purpose, it is expected that accurate region segmentation of image data can be achieved.

[0035] Although the embodiments of the present disclosure have been described in detail above, the present disclosure is not limited to the individual embodiments described above. Various additions, substitutions, modifications, partial deletions, etc. are possible in these embodiments without departing from the gist of the invention or the idea and intent of the present disclosure derived from the content described in the claims and their equivalents. For example, in the above-described embodiments, the order of each operation and the order of each process are shown as examples and are not limited to these. The same applies when numerical values ​​or mathematical expressions are used in the description of the above-described embodiments.

[0036] The following are supplementary notes related to embodiments of the present disclosure. (Supplementary Note 1) A target region extraction device (1) according to one aspect of the present disclosure includes a model storage unit (210) that stores a neural network model trained using multiple sets of training image data in which image data obtained by capturing an image of a product is assigned different annotation information corresponding to the type of each region, a data acquisition unit (110) that acquires image data of the product's exterior, a region extraction unit (120) that uses the model stored in the model storage unit (210) to extract three or more types of regions in the image data that have different characteristics, a region-specific processing unit (140) that performs region-specific processing on each region corresponding to the type of the region, and an output unit (150) that outputs the results of the processing by the region-specific processing unit (140). (Supplementary Note 2) In a target region extraction device (1) according to another aspect of the present disclosure, the region-specific processing includes processing to exclude regions of a predetermined type from the processing target. (Supplementary Note 3) A target area extraction device (1) according to another aspect of the present disclosure further includes an area synthesis unit (130) that performs synthesis processing to combine at least two or more areas extracted by the area extraction unit (120) into one area, and the area-specific processing unit (140) performs area-specific processing on the areas synthesized by the area synthesis unit (130).

[0037] (Supplementary Note 4) A target region extraction method according to one aspect of the present disclosure includes the steps of: acquiring image data of an external appearance of a product by a computer; extracting three or more types of regions with different characteristics from the image data obtained by imaging the product using a model stored in a model storage unit that stores a neural network model trained using a plurality of training image data in which different annotation information according to the type of region is assigned to three or more regions with different characteristics in the image data; performing region-specific processing corresponding to the type of region on each region; and outputting the results of the region-specific processing.

[0038] (Supplementary Note 5) A visual inspection system according to one aspect of the present disclosure includes a target area extraction device, and the area-specific processing is a defect detection process for detecting defects in the product. (Supplementary Note 6) A visual inspection system according to another aspect of the present disclosure further includes a robot (3) that holds an image sensor (4), and detects defects in the product based on image data obtained by capturing an image of the product with the image sensor (4) held by the robot (3).

[0039] REFERENCE SIGNS LIST 1 Target area extraction device 3 Industrial machine 4 Imaging sensor 5 Network 6 Fog computer 7 Cloud server 11 CPU 12 ROM 13 RAM 14 Non-volatile memory 15 Interface 17, 18, 20, 21 Interface 22 Bus 70 Display device 71 Input device 72 External device 100 Machine learning device 101 Processor 102 ROM 103 RAM 104 Non-volatile memory 110 Data acquisition unit 120 Area extraction unit 130 Area synthesis unit 140 Area-specific processing unit 150 Output unit 210 Model storage unit

Claims

1. A target area extraction device comprising: a model storage unit that stores a neural network model trained using multiple training image data in which image data obtained by photographing a product is assigned different annotation information according to the type of the area for three or more areas with different characteristics in the image data; a data acquisition unit that acquires image data of the appearance of the product; a area extraction unit that uses the model stored in the model storage unit to extract three or more types of areas with different characteristics from the image data; a area-specific processing unit that performs area-specific processing on each area corresponding to the type of the area; and an output unit that outputs the results of processing by the area-specific processing unit.

2. The object region extraction device according to claim 1, wherein the region-by-region processing includes a process for excluding a predetermined type of region from the processing target.

3. The target area extraction device according to claim 1, further comprising an area synthesis unit that executes synthesis processing for superimposing at least two or more areas among the areas extracted by the area extraction unit to create a single area, and the area-specific processing unit executes area-specific processing on the areas synthesized by the area synthesis unit.

4. A target area extraction method in which a computer executes the following steps: acquiring image data of the exterior of a product; extracting three or more types of areas with different characteristics from the image data obtained by imaging the product using a model stored in a model storage unit that stores a neural network model trained using a plurality of training image data in which different annotation information corresponding to the type of area is added to three or more areas with different characteristics in the image data; executing area-specific processing corresponding to the type of area for each area; and outputting the results of the area-specific processing.

5. A visual inspection system comprising the object area extraction device according to any one of claims 1 to 3, wherein the area-specific processing is a defect detection processing for detecting defects in the product.

6. The appearance inspection system according to claim 5, further comprising a robot that holds an image sensor, and detecting defects in the product based on image data obtained by capturing an image of the product with the image sensor held by the robot.

Citation Information

Patent Citations

  • Method and device for inspecting defect on surface of shaft-like tool

    JP2010139317A

  • Image processing method, edge model creation method, robot system, and article manufacturing method

    JP2021039457A

  • System for generating image

    JP2021124933A

  • Data set generation device, method, program, and system

    WO2022097353A1