Masking method for workpiece to be inspected

The method automates masking for workpieces with positional and size variations using a semantic segmentation model, enhancing efficiency and reliability in flaw detection by adapting mask settings.

JP2024155346AInactive Publication Date: 2024-10-31DAIDO STEEL CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2023069998
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-21
Publication Date
2024-10-31
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Conventional masking methods for workpieces require manual adjustment for positional deviations and individual size differences, leading to inefficiency and increased effort, potentially missing flaw detection due to fixed mask areas.

Method used

A method utilizing machine learning, specifically a semantic segmentation model, to automatically set masking regions based on learned image coordinate groups, reducing manual intervention and adapting to positional deviations and size variations.

Benefits of technology

Automates the masking process, significantly reducing the number of steps and ensuring reliable flaw detection by accurately setting mask areas despite positional and dimensional differences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024155346000001_ABST
    Figure 2024155346000001_ABST
Patent Text Reader

Abstract

To provide a masking method for a workpiece to be inspected that automates masking work for the workpiece to be inspected having a position shift and a size individual difference to greatly reduce work man-hours.SOLUTION: The present invention relates to a method for masking a non-inspection region of a workpiece to be inspected, and the method includes: letting a semantic segmentation model read and learn a required number of images of the workpiece to be inspected which are masked in advance as a data set paired with an image coordinate group of masked regions; and supplying an image of a new workpiece to be inspected which is not masked to the semantic segmentation model made to learn the images to automatically set a masked region on the image.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a method for masking a workpiece to be inspected, and more particularly to a method for masking a workpiece to be inspected that can automatically generate a masking area on an image of a test object. [Background technology]

[0002] When imaging a workpiece to detect defects, etc., shadows are cast by protrusions, etc. on the workpiece depending on the direction of the illumination light used for imaging, so the shadowed parts in the image 3 (Fig. 6) of the workpiece to be inspected are masked to form a mask area 31 and excluded from the inspection target to prevent false detection. Patent Document 1 discloses a masking method in which attributes of the part to be masked are detected in advance, and parts having those attributes are extracted from the target screen using a neural network and automatically masked. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] WO2018 / 225775 Summary of the Invention [Problem to be solved by the invention]

[0004] However, even for the same type of workpiece, if there is a positional shift during transportation or individual dimensional differences, minute scratches, etc. may be overlooked if the mask area is always set in the same position. That is, while the flaw 32 is detected well by setting the mask area 31 for the test workpiece image 3 shown in Fig. 6, if the mask area 31 is set in the same position for the test workpiece image 3 (Fig. 7) in which a position shift has occurred, part of the flaw 32 is masked, and the flaw 32 may not be detected reliably. To avoid this, in the past, an appropriate mask area was manually set on the inspection screen for each test workpiece to ensure that the detection of minute scratches, etc. was not overlooked, but there was a problem that it required a lot of effort when the mask area to be set was complex or there were many mask areas.

[0005] The present invention is intended to solve these problems, and aims to provide a method for masking a test workpiece that can automate the masking work of a test workpiece that has positional misalignment or individual dimensional differences, thereby significantly reducing the amount of work required. [Means for solving the problem]

[0006] In order to achieve the above object, the present invention provides a method for masking non-inspection areas of a test workpiece having positional deviations or individual dimensional differences, in which a required number of images of the test workpiece (1) that have been masked in advance are read into a machine learning means (2) as a data set paired with a group of image coordinates of the masked areas (13), and the machine learning means (2) is made to learn the images. A new, unmasked image of the test workpiece (1) is then provided to the machine learning means (2) that has been made to learn the images, and a masked area (14) is automatically set on the image.

[0007] Preferably, the machine learning means uses a semantic segmentation model, and preferably, the image coordinates are coordinates that form a bounding box surrounding the masked region.

[0008] The reference characters in parentheses indicate, for reference, the correspondence with specific means described in the embodiments described later. Effect of the Invention

[0009] As described above, according to the masking method for a workpiece to be inspected of the present invention, the masking work for a workpiece to be inspected which has individual differences in position or dimensions can be automated, thereby making it possible to significantly reduce the number of man-hours required. [Brief description of the drawings]

[0010] [Figure 1] 2 is a flowchart showing a processing procedure of the method of the present invention. [Diagram 2] 11 is a partially enlarged perspective view of a test workpiece in which a mask region is not set. FIG. [Diagram 3]FIG. 2 is a partially enlarged perspective view of a test workpiece on which a mask region has been automatically set. [Figure 4] This is a conceptual diagram showing the structure of semantic segmentation. [Diagram 5] FIG. 2 is a partially enlarged perspective view of a test workpiece in which a mask region is manually set. [Figure 6] FIG. 11 is a partially enlarged perspective view of a test workpiece in which a mask region is manually set, showing a conventional example. [Figure 7] FIG. 11 is a partially enlarged perspective view of a test workpiece in which a mask region is manually set, showing a conventional example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] It should be noted that the embodiment described below is merely an example, and various design improvements made by those skilled in the art without departing from the gist of the present invention are also included in the scope of the present invention.

[0012] The masking method of the present invention is carried out by the following procedure (see FIG. 1).

[0013] [Create Dataset] First, a learning data set is created. This data set is created by importing an image of the test workpiece into a computer, manually masking non-inspection areas on the image as in the conventional method, obtaining the position coordinates of an appropriate number of pixels that form a bounding box (rectangle or polygon) surrounding the masked area (mask area), and creating a data set from the learning test workpiece image with the mask area drawn and the above coordinates.

[0014] The test workpiece images that make up the data set are selected from a wide variety of test workpieces of the same type, including those whose position has shifted due to mechanical positioning error or whose dimensions have varied due to individual dimensional differences, and a sufficient number (e.g., 70 images) is prepared for the learning described below.

[0015] An example of a test work image 1' is shown in Fig. 2, and in this embodiment, the test work image 1' is a fin formation portion of a turbine wheel. Since an area 12 along the base of the fin 11 is shaded by the illumination light and has uneven brightness, this area is treated as a non-inspection area and manually masked to create a mask area 13 as shown in Fig. 3. Then, text data of the coordinates of an appropriate number of pixel positions that form a bounding box surrounding the mask area 13 is paired with image data of the test work for learning to create multiple (e.g., 70) data sets.

[0016] [Creating a learning model] Next, the above data set is given to a known semantic segmentation model (hereinafter simply referred to as a segmentation model) configured in a computer for learning. As shown in Fig. 4, an example of the segmentation model 2 is composed of a front-stage encoder unit 21 using a neural network (CNN) having a convolutional layer and a pooling layer, and a rear-stage decoder unit 22 in which the CNN is inversely implemented. The encoder unit 21 of the segmentation model 2 optimizes internal parameters by being given the necessary number of the above data sets, and the encoder unit 21 has information on image pixels that become mask regions as features.

[0017] [Create Auto Mask] When a new test work image 1 in which no mask area is set is input to the trained segmentation model 2, all image data containing information on the image pixels that should become the mask area among all the pixels of the test work image 1 is generated in the decoder unit 22 of the segmentation model 2 by referring to the above features, and an image in which the mask area 14 is drawn within the test work image 1 is output (Figure 5).

[0018] In this way, even if the newly supplied test workpiece is misaligned or has individual dimensional differences, the trained segmentation model 2 automatically draws an appropriate mask area 14 in the required portion of the test workpiece image 1.

[0019] The machine learning method is not limited to semantic segmentation models, and the image data does not necessarily have to be coordinates that form a bounding box. [Explanation of symbols]

[0020] 1, 1´...subject work, 2...semantic segmentation model (machine learning method).

Claims

1. A method for masking non-inspection areas of a test workpiece having positional misalignment or individual dimensional differences, comprising the steps of: having a machine learning means read in a required number of images of the test workpiece that have been masked in advance as a data set paired with a group of image coordinates of the masked areas, and having the machine learning means learn the images; and providing the machine learning means with an image of a new, unmasked test workpiece to automatically set a masked area on the image.

2. The method for masking a test workpiece according to claim 1 , wherein the machine learning means is a semantic segmentation model.

3. 2. The method of claim 1, wherein the set of image coordinates is a set of coordinates that form a bounding box that encloses the masked area.

Citation Information

Patent Citations

  • Image tampering detection method based on Mask R-CNN

    CN111340784A

  • Visual inspection method and apparatus

    JP2009097922A

  • Generative adversarial network for processing and generating image and label map

    JP2023021046A

  • Instance-Level Semantic Segmentation System

    US20180108137A1

  • Anomaly detection based on an autoencoder and clustering

    WO2021191405A1