Image processing device, image processing method, and program
The image processing device employs a combination of segmentation models to correct fiber detection results, enhancing accuracy in identifying individual fibers and reducing misidentification, particularly for entangled or overlapping fibers and background dirt.
Patent Information
- Application Number
- PCT/JP2024/012035
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-27
- Filing Date
- 2024-03-26
- Publication Date
- 2024-10-03
AI Technical Summary
Conventional image processing technologies face challenges in accurately detecting individual fibers, especially when they are entangled or overlapping, and often misidentify linear dirt as fibers, resulting in low detection accuracy.
An image processing device and method that utilizes a combination of instance segmentation and semantic segmentation models, specifically Mask R-CNN or YOLACT for instance segmentation and DeepLab or U-Net for semantic segmentation, to correct fiber detection results by calculating the logical product of area division results for individuals and types, and applying dilation or smoothing processing to enhance detection accuracy.
The solution enables high-accuracy recognition of individual fibers, reducing misidentification of entangled or overlapping fibers and background dirt, thereby improving detection precision and reliability.
Smart Images

Figure JP2024012035_03102024_PF_FP_ABST
Abstract
Description
Image processing device, image processing method and program
[0001] The present disclosure relates to an image processing device, an image processing method, and a program.
[0002] Techniques for image segmentation using machine learning models are known. In image segmentation, the results of segmentation may be corrected to improve accuracy.
[0003] For example, Patent Document 1 discloses a metal structure segmentation method using a trained machine learning model. The segmentation method disclosed in Patent Document 1 determines a correction that brings the segmentation result closer to a correct one based on the segmentation result of a selected image, and applies the correction to the segmentation result of images excluding the selected image.
[0004] Japanese Patent Application Laid-Open No. 2022-188504
[0005] However, conventional techniques have a problem in that they have low accuracy when detecting individual fibers from an image of multiple fibers. For example, if an image includes a location where multiple fibers are tangled, the tangled fibers cannot be accurately identified. Similarly, if an image includes a location where multiple fibers are overlapping, the overlapping fibers cannot be accurately identified. Furthermore, if there is linear dirt or the like in the background, the image may be erroneously detected as a fiber.
[0006] An aspect of the present disclosure aims to accurately recognize fibers contained in an image.
[0007] The present disclosure has the following configuration.
[0008] [1] An image processing device comprising: an image acquisition unit configured to acquire a target image in which a plurality of fibers are captured; a first region division unit configured to generate a region division result for each individual by detecting each of the fibers included in the target image using a trained region division model for each individual; a second region division unit configured to generate a region division result for each type by recognizing a region in which the plurality of fibers are captured from the target image using a trained region division model for each type; a region correction unit configured to correct the region division result for each individual using the region division result for each type; and a result output unit configured to output a result of correction of the region division result for each individual.
[0009] [2] The image processing device according to [1] above, wherein the area correction unit is configured to generate the correction result by calculating a logical product of the area segmentation result for each individual and the area segmentation result for each type.
[0010] [3] The image processing device according to [1] above, wherein the area correction unit is configured to generate the correction result by selecting the area segmentation result for each individual or the area segmentation result for each type based on a result of comparing the score of the area segmentation result for each individual with the score of the area segmentation result for each type for each unit of the target image.
[0011] [4] The image processing device according to any one of [1] to [3] above, wherein the region segmentation model for each individual is a model that performs instance segmentation, and the region segmentation model for each type is a model that performs semantic segmentation.
[0012] [5] The image processing device according to [4] above, wherein the region segmentation model for each individual is Mask R-CNN or YOLACT.
[0013] [6] The image processing device according to the above [4] or [5], wherein the area division model for each individual has an adjustable bounding box size.
[0014] [7] The image processing device according to any one of [4] to [6] above, wherein the area division model for each individual is capable of adjusting the size of a mask for each individual.
[0015] [8] The image processing device according to any one of [4] to [7] above, wherein the area division model for each type is DeepLab or U-Net.
[0016] [9] The image processing device according to any one of [1] to [8] above, wherein the area correction unit is configured to correct an area in which the fiber is detected in the area segmentation result for each individual.
[0017]
[10] The image processing device according to [9] above, wherein the area correction unit is configured to enlarge the areas divided for each individual by dilation processing or smoothing processing.
[0018]
[11] An image processing method in which a computer executes the steps of: acquiring a target image in which a plurality of fibers are captured; generating a region segmentation result for each individual by detecting each of the fibers included in the target image using a trained region segmentation model for each individual; generating a region segmentation result for each type by recognizing regions in which the plurality of fibers are captured from the target image using a trained region segmentation model for each type; correcting the region segmentation result for each individual using the region segmentation result for each type; and outputting the corrected region segmentation result for each individual.
[0019]
[12] A program for causing a computer to execute the steps of: acquiring a target image in which a plurality of fibers are captured; generating a region segmentation result for each individual by detecting each of the fibers included in the target image using a trained region segmentation model for each individual; generating a region segmentation result for each type by recognizing regions in which the plurality of fibers are captured from the target image using a trained region segmentation model for each type; correcting the region segmentation result for each individual using the region segmentation result for each type; and outputting the corrected region segmentation result for each individual.
[0020] According to one aspect of the present disclosure, fibers contained in an image can be recognized with high accuracy.
[0021] FIG. 1 is a diagram illustrating an example of a target image. FIG. 2 is a diagram illustrating an example of a detection result using conventional technology. FIG. 3 is a block diagram illustrating an example of the overall configuration of an object detection system. FIG. 4 is a block diagram illustrating an example of the hardware configuration of a computer. FIG. 5 is a block diagram illustrating an example of the functional configuration of the object detection system. FIG. 6 is a flowchart illustrating an example of a processing procedure of an object detection method. FIG. 7 is a diagram illustrating an example of a mask score before expansion. FIG. 8 is a diagram illustrating an example of a mask score after binarization. FIG. 9 is a diagram illustrating an example of a mask score after expansion. FIG. 10 is a diagram illustrating an example of a mask score after correction. FIG. 11 is a diagram illustrating an example of a detection result in an embodiment. FIG. 12 is a diagram illustrating an example of an analysis screen. FIG. 13 is a diagram illustrating an example of an image confirmation screen. FIG. 14 is a diagram illustrating an example of a first result confirmation screen. FIG. 15 is a diagram illustrating an example of a first result confirmation screen. FIG. 16 is a diagram illustrating an example of a second result confirmation screen. FIG. 17 is a diagram illustrating an example of a second result confirmation screen. FIG. 18 is a diagram illustrating an example of a correction result confirmation screen. FIG. 19 is a diagram illustrating an example of a target image. FIG. 20 is a diagram illustrating an example of a region segmentation result using U-Net. FIG. 21 is a diagram showing an example of the region segmentation result by DeepLab.
[0022] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. In this specification and drawings, components having substantially the same functional configurations are designated by the same reference numerals, and redundant description will be omitted.
[0023] [Embodiment] One embodiment of the present disclosure is an object detection system that detects an object from an image of the object. Hereinafter, an image that is the target of object detection will also be referred to as a "target image." In this embodiment, the target image is an image that captures a state in which a large number of fibers are dispersed on the surface of an observation sample, and includes a plurality of fibers that are entangled with each other or a plurality of fibers that are overlapping each other. In this embodiment, the fiber is, as an example, carbon fiber. However, the fiber to be detected is not limited to carbon fiber, and may be fiber of any material.
[0024] In the task of detecting objects in images, segmentation using machine learning models is sometimes performed, including instance segmentation and semantic segmentation based on deep learning.
[0025] Instance segmentation is the task of detecting individual objects contained in an image. Instance segmentation may involve detecting rectangular regions (bounding boxes) in which objects are captured from an image, or detecting and identifying individual objects pixel by pixel. Object detection results obtained by instance segmentation may include, for each detected object, two-dimensional data (mask score) indicating the region in which the object is captured, a score indicating the likelihood of the object, a mask obtained by binarizing the mask score using a threshold, and information indicating the bounding box. The size of the bounding box may be adjustable. The size of the mask for each individual may be adjustable by setting a score threshold. By specifying a larger bounding box size or setting a lower score threshold, the region of each individual can be identified as larger. The object detection result may also include a confidence level for the object detection result.
[0026] A machine learning model that performs instance segmentation is an example of an “individual region segmentation model.” Also, the mask score included in the object detection result by instance segmentation is an example of an “individual region segmentation result.”
[0027] The machine learning model for instance segmentation can be Mask R-CNN (Mask Region-Based Convolutional Neural Networks) or YOLACT (You Only Look At Coefficients). Details of Mask R-CNN are disclosed in Reference 1.
[0028] [Reference 1] Kaiming He, Georgia Gkioxari, Piotr Dollar, Ross Girshick, "Mask R-CNN", Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017.
[0029] Semantic segmentation is the task of dividing an image into regions that represent one or more types (classes). Semantic segmentation involves predicting a label (class label) that indicates a class for each unit (e.g., pixel) in the image. The result of semantic segmentation can include two-dimensional data (semantic scores) that include class labels corresponding to each pixel in the image. The result of segmentation can also include a confidence level for the result.
[0030] A machine learning model that performs semantic segmentation is an example of a “type-specific region segmentation model.” Also, the semantic score included in the region segmentation result by semantic segmentation is an example of a “type-specific region segmentation result.”
[0031] U-Net, DeepLab, or the like can be used as a machine learning model for performing semantic segmentation. Details of U-Net are disclosed in Reference 2. Details of DeepLab (DeepLabv3) are disclosed in Reference 3.
[0032] [Reference 2] Olaf Ronneberger, Philipp Fischer, and Thomas Brox, "U-Net: Convolutional Networks for Biomedical Image Segmentation", Medical Image Computing and Computer-Assisted Intervention (MICCAI), 2015. [Reference 3] LC Chen, G. Papandreou, F. Schroff, and H. Adam, "Rethinking Atrous Convolution for "Semantic Image Segmentation", European Conference on Computer Vision (ECCV), 2017.
[0033] When instance segmentation is performed on an image capturing a large number of fibers dispersed on a sample surface, detection accuracy can be low. For example, if the image contains multiple fibers that are entangled with each other, it may be impossible to accurately detect each fiber. Also, if the background of the image contains linear stains or streaks, the stains may be mistakenly recognized as fibers.
[0034] 1 is a diagram showing an example of a target image in this embodiment. As shown in FIG. 1, the target image 900 in this embodiment is an image captured of a state in which a large number of fibers are dispersed on a metal surface. The target image 900 captures a plurality of fibers 901 entangled with each other and non-fiber streaks 902.
[0035] FIG. 2 is a diagram showing an example of a conventional object detection result. FIG. 2 shows the result of detecting fibers using Mask R-CNN from the target image shown in FIG. 1. In the object detection result shown in FIG. 2, different objects are represented by different colors. As shown in FIG. 2, in the conventional object detection result 910, an area 911 in which an image of multiple tangled fibers is captured is detected as multiple separate fibers. Furthermore, an area 912 in which an image of a streak that is not a fiber is detected as a fiber.
[0036] The object detection system 1 of this embodiment aims to accurately recognize fibers contained in an image. In particular, the object detection system 1 of this embodiment accurately detects multiple entangled fibers or multiple overlapping fibers. Furthermore, the object detection system 1 of this embodiment reduces erroneous recognition of linear stains or streaks contained in the background.
[0037] <Overall Configuration of Object Detection System> The overall configuration of the object detection system in this embodiment will be described with reference to Fig. 3. Fig. 3 is a block diagram showing an example of the overall configuration of the object detection system in this embodiment.
[0038] 3, the object detection system 1 in this embodiment includes an image acquisition device 10, an image processing device 20, and a user terminal 30. The image acquisition device 10, the image processing device 20, and the user terminal 30 are connected to each other so as to be able to communicate data with each other via a communication network N1 such as a local area network (LAN) or the Internet.
[0039] The image acquisition device 10 is an optical device that acquires an image of a target object to be detected. The image acquisition device 10 may be a digital camera that captures still images or a video camera that captures moving images. Depending on the size of the object to be detected, an optical microscope, a scanning electron microscope (SEM), a transmission electron microscope (TEM), or the like may be used as the image acquisition device 10. The image acquisition device 10 may also be an information processing device such as a personal computer connected to various cameras, or an inspection device equipped with various cameras.
[0040] The image processing device 20 is an information processing device such as a personal computer, workstation, or server that generates an output image showing the result of detecting an object from the target image acquired by the image acquisition device 10. The image processing device 20 receives the target image from the user terminal 30. The image processing device 20 detects the object from the acquired target image and transmits an output image showing the detection result to the user terminal 30.
[0041] The user terminal 30 is an information processing terminal such as a personal computer, tablet terminal, smartphone, etc. operated by a user. The user terminal 30 acquires a target image from the image acquisition device 10 in response to a user operation and transmits the image to the image processing device 20. The user terminal 30 receives an output image indicating the detection result from the image processing device 20 and outputs it to the user.
[0042] Note that the overall configuration of the object detection system 1 shown in Figure 3 is one example, and various system configuration examples are possible depending on the application and purpose. For example, the object detection system 1 may include multiple units of one or more of the image acquisition device 10, the image processing device 20, and the user terminal 30. For example, the image processing device 20 may be realized by multiple computers, or may be realized as a cloud computing service. The division of devices such as the image acquisition device 10, the image processing device 20, and the user terminal 30 shown in Figure 3 is one example.
[0043] <Hardware Configuration of Object Detection System> The hardware configuration of the object detection system 1 according to this embodiment will be described with reference to FIG.
[0044] <Hardware Configuration of Computer> The image acquisition device 10, the image processing device 20, and the user terminal 30 in this embodiment are realized by, for example, a computer. Fig. 4 is a block diagram showing an example of the hardware configuration of a computer 500 in this embodiment.
[0045] 4, the computer 500 includes a CPU (Central Processing Unit) 501, a ROM (Read Only Memory) 502, a RAM (Random Access Memory) 503, a HDD (Hard Disk Drive) 504, an input device 505, a display device 506, a communication I / F (Interface) 507, and an external I / F 508. The CPU 501, the ROM 502, and the RAM 503 form a so-called computer. The hardware components of the computer 500 are connected to each other via a bus line 509. The input device 505 and the display device 506 may be connected to the external I / F 508 for use.
[0046] The CPU 501 is a computing device that reads programs and data from a storage device such as the ROM 502 or the HDD 504 onto the RAM 503 and executes processing to realize overall control and functions of the computer 500 .
[0047] The ROM 502 is an example of a non-volatile semiconductor memory (storage device) that can retain programs and data even when the power is turned off. The ROM 502 functions as a main storage device that stores various programs, data, etc. required for the CPU 501 to execute various programs installed in the HDD 504. Specifically, the ROM 502 stores boot programs such as a Basic Input / Output System (BIOS) and an Extensible Firmware Interface (EFI) that are executed when the computer 500 starts up, as well as data such as OS (Operating System) settings and network settings.
[0048] The RAM 503 is an example of a volatile semiconductor memory (storage device) in which programs and data are erased when the power is turned off. The RAM 503 is, for example, a dynamic random access memory (DRAM) or a static random access memory (SRAM). The RAM 503 provides a working area in which various programs installed in the HDD 504 are expanded when executed by the CPU 501.
[0049] The HDD 504 is an example of a non-volatile storage device that stores programs and data. The programs and data stored in the HDD 504 include an OS, which is basic software that controls the entire computer 500, and applications that provide various functions on the OS. Note that the computer 500 may use a storage device that uses flash memory as a storage medium (e.g., an SSD (Solid State Drive)) instead of the HDD 504.
[0050] The input device 505 includes a touch panel, operation keys and buttons, a keyboard and mouse, a microphone for inputting sound data such as voice, and the like, which are used by the user to input various signals.
[0051] The display device 506 is composed of a display such as a liquid crystal display or organic electroluminescence (EL) display for displaying a screen, a speaker for outputting sound data such as voice, and the like.
[0052] The communication I / F 507 is an interface that connects to a communication network and enables the computer 500 to perform data communication.
[0053] The external I / F 508 is an interface with external devices, such as a drive device 510.
[0054] The drive device 510 is a device for loading a recording medium 511. The recording medium 511 here includes media that record information optically, electrically, or magnetically, such as CD-ROMs, flexible disks, and magneto-optical disks. The recording medium 511 may also include semiconductor memories that record information electrically, such as ROMs and flash memories. This allows the computer 500 to read from and / or write to the recording medium 511 via the external I / F 508.
[0055] The various programs to be installed in the HDD 504 are installed, for example, by setting the distributed recording medium 511 in a drive device 510 connected to the external I / F 508 and reading the various programs recorded on the recording medium 511 by the drive device 510. Alternatively, the various programs to be installed in the HDD 504 may be installed by being downloaded via the communication I / F 507 from a network different from the communication network.
[0056] <Functional Configuration of Object Detection System> The functional configuration of the object detection system in this embodiment will be described with reference to Fig. 5. Fig. 5 is a block diagram showing an example of the functional configuration of the object detection system 1 in this embodiment.
[0057] <Functional Configuration of Image Acquisition Device> As shown in FIG. 5, the image acquisition device 10 in this embodiment includes an imaging control unit 101 and an image storage unit 102.
[0058] The imaging control unit 101 is realized by a camera connected to the external I / F 508 shown in Fig. 4. The image storage unit 102 is realized by the HDD 504 shown in Fig. 4.
[0059] The imaging control unit 101 adjusts the imaging conditions (angle of view, imaging magnification, etc.) of the camera so that multiple fibers can be imaged, and captures the target image. The imaging control unit 101 may capture the target image in response to a user operation, or may capture the target image when a predetermined condition is met. An example of the predetermined condition is when an inspection object is transported to a predetermined position in the inspection device. The imaging control unit 101 may capture a still image, or may capture a video and extract an image in which multiple fibers are reflected.
[0060] The image storage unit 102 stores the target image captured by the imaging control unit 101. Information about the target image may be stored in association with the target image in the image storage unit 102. The information about the target image may include, for example, the image capture date and time, information indicating the image capture target, imaging conditions, etc.
[0061] <Functional configuration of image processing device> As shown in Figure 5, the image processing device 20 in this embodiment includes a model storage unit 200, an image acquisition unit 201, an object detection unit 202 (an example of a first area division unit), an area division unit 203 (an example of a second area division unit), an area correction unit 204, and a result output unit 205.
[0062] The model storage unit 200 is realized by the HDD 504 shown in Fig. 4. The image acquisition unit 201, the object detection unit 202, the area division unit 203, the area correction unit 204, and the result output unit 205 are realized by the processing that the CPU 501 executes by a program loaded from the HDD 504 onto the RAM 503 shown in Fig. 4.
[0063] The model storage unit 200 stores a trained object detection model and a trained area segmentation model.
[0064] The object detection model is a machine learning model that performs instance segmentation. The object detection model takes an image as input and outputs an object detection result that detects each object included in the image. The object detection result includes an area segmentation result for each individual that recognizes the area in which each object is captured. As an example of the object detection model in this embodiment, Mask R-CNN is used. The object detection model is also referred to as an individual area segmentation model.
[0065] The object detection model in this embodiment is trained to detect individual fibers captured in an input image. The object detection model is trained using training data in which training labels are assigned to images of a sample surface on which multiple fibers are dispersed. The training labels include information indicating the range of the area in which each fiber is captured and identification information that identifies the fiber.
[0066] The region segmentation model is a machine learning model that performs semantic segmentation. The region segmentation model receives an image as input and outputs region segmentation results for each type that recognizes regions in the image in which desired objects are captured. As an example, DeepLabv3 is used as the region segmentation model in this embodiment. The region segmentation model is also referred to as a region segmentation model for each type.
[0067] The region segmentation model in this embodiment is trained to divide an input image into a region where any fiber is captured and other regions. The region segmentation model is trained using training data in which training labels are assigned to images of a metal surface on which multiple fibers are dispersed. The training labels include information indicating the range of the region where the fiber is captured.
[0068] The image acquisition unit 201 acquires the target image by receiving the target image from the user terminal 30. The image acquisition unit 201 may acquire the target image from the image acquisition device 10 in response to a request from the user terminal 30.
[0069] The object detection unit 202 uses a trained object detection model read from the model storage unit 200 to detect individual fibers contained in the target image acquired by the image acquisition unit 201, thereby generating object detection results corresponding to each fiber contained in the target image.
[0070] The area division unit 203 uses a trained area division model read out from the model storage unit 200 to recognize an area in which fibers are captured (hereinafter also referred to as a "fiber area") from the target image acquired by the image acquisition unit 201, and generates an area division result indicating the fiber area.
[0071] The region correction unit 204 corrects a region where fibers are detected (hereinafter also referred to as a "fiber detection region") in the object detection result generated by the object detection unit 202. The region correction unit 204 may correct the fiber detection region, for example, by integrating the object detection result generated by the object detection unit 202 with the region segmentation result generated by the region division unit 203. The region correction unit 204 may correct the fiber detection region by, for example, performing a dilation process or a smoothing process, and then integrating the corrected fiber detection region with the region segmentation result generated by the region division unit 203.
[0072] The result output unit 205 transmits an output image indicating the correction result by the area correction unit 204 to the user terminal 30 .
[0073] <Functional Configuration of User Terminal 30> As shown in FIG. 5, the user terminal 30 in this embodiment includes an image transmission unit 301 and a result display unit 302.
[0074] The image transmission unit 301 and the result display unit 302 are realized by the processing that the CPU 501 executes by the program loaded from the HDD 504 onto the RAM 503 shown in FIG.
[0075] In response to a user's operation, the image transmission unit 301 acquires a target image from the image acquisition device 10. The image transmission unit 301 transmits the target image acquired from the image acquisition device 10 to the image processing device 20.
[0076] The result display unit 302 receives the output image from the image processing device 20. The result display unit 302 displays the received output image on the display device 506.
[0077] <Processing Procedure of Object Detection System> The processing procedure of the image processing method executed by the object detection system 1 in this embodiment will be described with reference to Fig. 6 to Fig. 11. Fig. 6 is a flowchart showing an example of the processing procedure of the image processing method in this embodiment.
[0078] In step S1, the imaging control unit 101 of the image acquisition device 10 adjusts the angle of view of the camera so that a plurality of fibers are captured, and captures an image of the target. Next, the imaging control unit 101 stores the captured image of the target in the image storage unit 102.
[0079] In step S2, the image transmission unit 301 of the user terminal 30 transmits a request to acquire the target image to the image acquisition device 10 in response to a user operation. In response to the acquisition request received from the user terminal 30, the image acquisition device 10 reads out the target image stored in the image storage unit 102 and transmits it to the user terminal 30. The image transmission unit 301 transmits the target image received from the image acquisition device 10 to the image processing device 20.
[0080] In step S3, the image acquisition unit 201 of the image processing device 20 receives the target image from the user terminal 30. Next, the image acquisition unit 201 sends the received target image to the object detection unit 202 and the region division unit 203.
[0081] In step S4, the object detection unit 202 of the image processing device 20 receives the target image from the image acquisition unit 201. Next, the object detection unit 202 reads out the trained object detection model from the model storage unit 200.
[0082] Next, the object detection unit 202 inputs the target image into the trained object detection model. The object detection model detects individual fibers contained in the target image and outputs an object detection result for the target image. In this way, the object detection unit 202 acquires the object detection result for the target image. The object detection unit 202 then sends the object detection result to the area correction unit 204.
[0083] The object detection result for the target image includes a detection result corresponding to each fiber detected from the target image and a reliability of the object detection result. The detection result for each fiber includes a mask score indicating the fiber detection region and a score indicating the likelihood of the fiber being an object. The detection result for each fiber may also include information indicating a mask and a bounding box obtained by binarizing the mask score using a threshold value.
[0084] The object detection unit 202 may discard detection results corresponding to each fiber whose object-likeness score (0 to 1) is equal to or less than a predetermined threshold. The threshold may be set arbitrarily, but may be set to 0.3, for example.
[0085] In step S5, the area division unit 203 of the image processing device 20 receives the target image from the image acquisition unit 201. Next, the area division unit 203 reads out the trained area division model from the model storage unit 200.
[0086] Next, the region division unit 203 inputs the target image into the trained region division model. The region division model recognizes a fiber region from the target image and outputs the region division result of the target image. As a result, the region division unit 203 obtains the region division result of the target image. Then, the region division unit 203 sends the region division result to the region correction unit 204.
[0087] The segmentation result of the target image includes a semantic score indicating the fiber region and a reliability of the segmentation result.
[0088] In step S6, the area correction unit 204 of the image processing device 20 receives the object detection result from the object detection unit 202. The area correction unit 204 also receives the area segmentation result from the area segmentation unit 203. Next, the area correction unit 204 corrects the object detection result based on the area segmentation result.
[0089] For example, the region correction unit 204 corrects the object detection result by expanding the fiber detection region using a dilation process or a smoothing process. Here, an example of a process for correcting the fiber detection region using a dilation process will be described with reference to FIGS. 7 to 10 .
[0090] 7 is a diagram showing an example of a mask score before dilation. As shown in FIG. 7, a fiber detection region in which one fiber is detected is shown in the mask score 931 before dilation. It can be seen that the mask score 931 shown in FIG. 7 has discontinuous ends and the peripheral portion is unclear.
[0091] First, the region correction unit 204 performs threshold processing on the mask score 931 to binarize it. Fig. 8 is a diagram showing an example of the mask score after binarization. As shown in Fig. 8, the binarized mask score 932 is binarized so that the fiber detection region takes on a value of 1 and other regions take on a value of 0. It can be seen that the binarized mask score 932 clearly shows the peripheral portions of the fibers.
[0092] The mask score after binarization may be output by an object detection model.
[0093] Next, the region correction unit 204 performs a dilation process on the mask score. This expands the fiber detection region. FIG. 9 is a diagram showing an example of the mask score after dilation. As shown in FIG. 9, it can be seen that the fiber detection region is generally expanded in the mask score 933 after dilation compared to the mask score 931 before dilation shown in FIG. 7.
[0094] The expansion process described above can also be performed by specifying a larger bounding box size or setting a lower score threshold.
[0095] Then, the region correction unit 204 generates a corrected mask score based on the binarized mask score 932 and the dilated mask score 933. Specifically, the region correction unit 204 uses the binarized mask score 932 inside a region of interest (ROI), and uses the dilated mask score 933 outside the ROI. FIG. 10 is a diagram showing an example of a corrected mask score. As shown in FIG. 10, the corrected mask score 934 clearly shows both ends and peripheral portions of the fiber, indicating that the fiber outline has been detected with high accuracy.
[0096] Returning to FIG. 6 , in step S7, the area correction unit 204 of the image processing device 20 integrates the area segmentation result with the corrected object detection result. As a result, the area correction unit 204 obtains the corrected result of the object detection result. Then, the area correction unit 204 sends the corrected result of the object detection result to the result output unit 205.
[0097] For example, the region correction unit 204 may integrate the region segmentation result and the corrected object detection result by calculating the logical product of the object detection result and the region segmentation result. In this case, the region correction unit 204 calculates the logical product of each object detection result corresponding to each fiber and the region segmentation result. This generates a detection result corresponding to each fiber (hereinafter also referred to as an "individual detection result").
[0098] Furthermore, for example, the region correction unit 204 may integrate the region segmentation result and the corrected object detection result by selecting the object detection result or the region segmentation result based on the result of comparing the score of the object detection result with the score of the region segmentation result for each pixel of the target image. In this case, the region correction unit 204 compares the mask score of each object detection result corresponding to each fiber with the semantic score of the region segmentation result for each pixel of the target image, and selects the result with the higher score if the scores are different, or selects the result with the higher reliability if the scores are equal. This generates individual detection results corresponding to each fiber.
[0099] The region correction unit 204 may discard an individual detection result with a lower mask score if the area of overlap between the individual detection results corresponding to each fiber and the individual detection results corresponding to other fibers is equal to or greater than a predetermined threshold. This is because detection results with a large overlapping area are considered to be detecting the same fiber. The threshold may be set arbitrarily, but can be set to 0.7, for example (i.e., a detection result is rejected if 70% of the area overlaps).
[0100] The region correction unit 204 then generates a corrected result by overlaying the individual detection results corresponding to each fiber from top to bottom in descending order of the score indicating the object-likeliness. Finally, the region correction unit 204 adds, as fiber regions, regions of the fiber region indicated in the region segmentation result that are not indicated as fiber detection regions in the object detection result to the corrected result.
[0101] The region correction unit 204 may calculate the number and distribution of fiber lengths and fiber diameters, as well as statistical values such as the average, median, and standard deviation for the fiber regions included in the correction results.
[0102] Fig. 11 is a diagram showing an example of a detection result in this embodiment. Fig. 11 shows the result of detecting fibers by the image processing device 20 from the target image shown in Fig. 1. As shown in Fig. 11, in the detection result 920 in this embodiment, an area 921 in which an image of multiple fibers entangled with each other is captured is detected as multiple fibers entangled with other fibers. Furthermore, an area 922 in which an image of a streak that is not fiber is not detected as fiber.
[0103] 6 , in step S8, the result output unit 205 of the image processing device 20 receives the correction result from the area correction unit 204. Next, the result output unit 205 generates an output image indicating the detection result of the fibers captured in the target image based on the correction result. Then, the result output unit 205 transmits the output image to the user terminal 30.
[0104] The output image may be a mask image in which identification information for identifying the detected fiber is set for each pixel. The output image may be an image in which the region of each detected fiber and identification information for identifying each fiber are displayed in the target image. The output image may be an image in which a probability value is displayed for each detected fiber.
[0105] In step S9, the result display unit 302 of the user terminal 30 receives the output image from the image processing device 20. Then, the result display unit 302 displays the received output image on the display device 506. The result display unit 302 may display the above-mentioned statistical values calculated for each fiber region at the request of the user.
[0106] <User Interface of Object Detection System> The user interface of the object detection system 1 in this embodiment will be described with reference to FIGS. 12 to 18. FIG.
[0107] <Analysis Screen> Fig. 12 is a diagram showing an example of the analysis screen. The analysis screen is a screen for inputting a target image to be analyzed and executing object detection for the target image.
[0108] As shown in FIG. 12, the analysis screen 1000 has a target selection field 1001 , a target input field 1002 , a reference button 1003 , an analysis execution button 1004 , four confirmation buttons 1011 to 1014 , and an output button 1015 .
[0109] In the initial display, the target selection field 1001, the target input field 1002, and the reference button 1003 are controlled so that they can be pressed or input. On the other hand, in the initial display, the analysis execution button 1004, the confirmation buttons 1011 to 1014, and the output button 1015 are controlled so that they cannot be pressed.
[0110] The target selection field 1001 is an input field for specifying a method for selecting a target image. In the example of FIG. 12, a file and a folder can be selected as options for the analysis target. If a file is selected, it is possible to select one file as the target image. If a folder is selected, all files stored in the specified folder are selected as the target images.
[0111] The target input field 1002 is an input field for specifying the location of the target image. If a file is selected in the target selection field 1001, information indicating the location of the file is input in the target input field 1002. If a folder is selected in the target selection field 1001, information indicating the location of the folder is input in the target input field 1002. The information indicating the location of the file or folder is, for example, the local path or URL (Uniform Resource Locator) of the file or folder.
[0112] Pressing the browse button 1003 displays a file selection dialog. By selecting a file or folder in the file selection dialog, information indicating the location of the file or folder is entered in the target input field 1002. When information indicating the location of the file or folder is entered in the target input field 1002, the analysis execution button 1004 is controlled to be pressable.
[0113] The analysis execution button 1004 is a button for executing object detection for a target image. The target image is a file input in the target input field 1002 or a file stored in a folder input in the target input field 1002. When object detection for the target image is completed, the confirmation buttons 1011 to 1014 and the output button 1015 are controlled to be pressable.
[0114] Pressing the Confirm button 1011 displays an image confirmation screen for displaying the target image. Pressing the Confirm button 1012 displays a first result confirmation screen for displaying the region segmentation results for each type. Pressing the Confirm button 1013 displays a second result confirmation screen for displaying the region segmentation results for each individual. Pressing the Confirm button 1014 displays a correction result confirmation screen for displaying the correction results. Pressing the Output button 1015 saves electronic data showing the analysis results for the target image.
[0115] <Image Confirmation Screen> Fig. 13 is a diagram showing an example of the image confirmation screen. As shown in Fig. 13, the image confirmation screen 1100 has an image display field 1101 and an end button 1102.
[0116] The target image is displayed in an image display field 1101. When an end button 1102 labeled "close" is pressed, the image confirmation screen 1100 closes and the analysis screen 1000 is displayed.
[0117] 14 is a diagram showing a first example of a first result confirmation screen 1200. As shown in FIG. 14, a first result confirmation screen 1200 has an image display field 1201, an end button 1202, and a confirmation button 1203.
[0118] Image display field 1201 displays the region segmentation results for each type of target image. When an end button 1202 marked "Close" is pressed, first result confirmation screen 1200 closes and analysis screen 1000 is displayed. When a confirmation button 1203 marked "Confirm Accuracy" is pressed, a score indicating the recognition accuracy of each object is displayed in image display field 1201.
[0119] 15 is a diagram showing a second example of the first result confirmation screen. Compared to the first example of the first result confirmation screen shown in FIG. 14 , the first result confirmation screen 1200 in the second example further includes a threshold setting field 1204 and an Reflect button 1205.
[0120] The threshold setting field 1204 is an input field for setting a threshold for binarizing the semantic score. When the reflect button 1205 is pressed, an image in which the semantic score has been binarized based on the threshold set in the threshold setting field 1204 is displayed in the image display field 1201.
[0121] The threshold value set by operating the threshold value setting field 1204 and the reflect button 1205 is used only to confirm the detection result on the analysis screen 1000. Therefore, the set threshold value is not continuously used in the object detection system 1.
[0122] 16 is a diagram showing a first example of a second result confirmation screen 1300. As shown in FIG. 16, a second result confirmation screen 1300 has an image display field 1301, an end button 1302, and a confirmation button 1303.
[0123] Image display field 1301 displays the region segmentation results for each individual in the target image. When an end button 1302 marked "Close" is pressed, second result confirmation screen 1300 closes and analysis screen 1000 is displayed. When a confirmation button 1303 marked "Confirm accuracy" is pressed, a score indicating the recognition accuracy of each object is displayed in image display field 1301.
[0124] 17 is a diagram showing a second example of the second result confirmation screen. Compared to the first example of the second result confirmation screen shown in FIG. 16 , the second result confirmation screen 1300 in the second example further includes a first threshold setting field 1304, a second threshold setting field 1305, and an Apply button 1306.
[0125] The first threshold setting field 1304 is an input field for setting a threshold for the score indicating object-likeness. The second threshold setting field 1305 is an input field for setting a threshold for binarizing the mask score. When the reflect button 1306 is pressed, detection results with low scores indicating object-likeness are rejected based on the thresholds set in the first threshold setting field 1304 and the second threshold setting field 1305, and an image with the binarized mask score is displayed in the image display field 1301.
[0126] The thresholds set by operating the first threshold setting field 1304, the second threshold setting field 1305, and the reflect button 1306 are used only to confirm the detection results on the analysis screen 1000. Therefore, the set thresholds are not used continuously in the object detection system 1.
[0127] <<Correction Result Confirmation Screen>> Fig. 18 is a diagram showing an example of the correction result confirmation screen. As shown in Fig. 18, the correction result confirmation screen 1400 has an image display field 1401, an end button 1402, a confirmation button 1403, a fiber display button 1404, and an entanglement display button 1405.
[0128] Image display field 1401 displays the correction results of the region segmentation results for each individual. When an end button 1402 marked "Close" is pressed, correction result confirmation screen 1400 closes and analysis screen 1000 is displayed. When a confirmation button 1403 marked "Confirm accuracy" is pressed, a score indicating the recognition accuracy of each object is displayed in image display field 1401.
[0129] When the fiber display button 1404 labeled "fiber only" is pressed, the detection results excluding multiple entangled fibers from among the fibers detected in the target image are displayed in the image display field 1401. When the entanglement display button 1405 labeled "fiber + entanglement" is pressed, the detection results including multiple entangled fibers from among the fibers detected in the target image are displayed in the image display field 1401.
[0130] <Comparison between U-Net and DeepLab> For example, U-Net or DeepLab is used as a machine learning model for performing semantic segmentation. In this embodiment, either U-Net or DeepLab can be used as the region segmentation model. However, if DeepLabv3 is used as the region segmentation model, there is a higher possibility of improving accuracy. The reason for this will be explained below.
[0131] U-Net extracts global features from the input image by upsampling multiple times in the encoder and downsampling the same number of times in the decoder. The upsampling in the encoder is performed using the convolution process, which is standard in convolutional neural networks.
[0132] On the other hand, DeepLabv3 uses dilation convolution to increase the kernel size, extracting global features of the input image while reducing the amount of calculation. Dilation convolution is a convolution process that reduces the number of parameters by increasing the convolution kernel and setting some of the kernel to 0.
[0133] As described above, DeepLabv3 can incorporate more global features by introducing dilated convolution. As a result, DeepLabv3 can incorporate global features of an image more effectively than U-Net, and it is expected that the accuracy of region recognition will improve.
[0134] The comparison results between U-Net and DeepLabv3 will be described with reference to Fig. 19 to Fig. 21. Fig. 19 is a diagram showing an example of a target image used for the comparison. Fig. 20 is a diagram showing an example of the region segmentation result by U-Net. Fig. 21 is a diagram showing an example of the region segmentation result by DeepLabv3.
[0135] As shown in Figure 19, the target image 940 used for comparison is an image capturing a state in which a large number of fibers are dispersed. As shown in Figure 20, the region segmentation result 950 by U-Net contains fibers that are not accurately recognized. For example, the target image 940 includes a region 941 that contains relatively thick fibers and relatively thin fibers. In the region segmentation result 950 by U-Net, it can be seen that the relatively thin fibers are interrupted in a region 951 corresponding to the region 941 in the target image 940, and therefore are not accurately recognized.
[0136] 21, in the region segmentation result 960 by DeepLabv3, the recognition accuracy of the fibers captured in the target image 940 is improved compared to U-Net. For example, in the region segmentation result 960 by DeepLabv3, it can be seen that all fibers are accurately recognized in region 961 corresponding to region 941 in the target image 940.
[0137] <Effects of the embodiment> The image processing device 20 in this embodiment corrects the region segmentation results obtained by the region segmentation model for each individual object using the region segmentation results obtained by the region segmentation model for each type. The region segmentation model for each individual object can identify the regions of individual objects included in an image, and the region segmentation model for each type can recognize the contours of objects captured in an image with high accuracy. Therefore, by correcting the region segmentation results for each individual object using the region segmentation results for each type, it is possible to detect individual fibers whose contours are recognized with high accuracy. Therefore, the image processing device 20 in this embodiment can accurately recognize fibers included in an image.
[0138] The image processing device 20 in this embodiment is considered to be particularly effective when appropriately evaluating textile materials under the RoHS Directive and REACH Regulations.
[0139] The image processing device 20 in this embodiment expands the area in which fibers are detected in the area segmentation result for each individual. Individual area segmentation models tend to have a tendency to have reduced detection accuracy at the periphery of the detected object. However, by expanding the area segmentation result for each individual to the outside of the periphery of the object, it is possible to complement the outline of the object recognized with high accuracy using the area segmentation model for each type. Therefore, the image processing device 20 in this embodiment can accurately recognize the periphery of fibers or areas where multiple fibers are entangled.
[0140] The image processing device 20 in this embodiment calculates the logical product of the region segmentation results for each individual and the region segmentation results for each type. That is, fibers recognized in both the region segmentation results for each individual and the region segmentation results for each type are included in the correction result. Therefore, the image processing device 20 in this embodiment can reduce the possibility of falsely detecting background stains or the like that should not be detected.
[0141] The image processing device 20 in this embodiment selects the segmentation result for each individual or the segmentation result for each type based on the result of comparing the score of the segmentation result for each individual with the score of the segmentation result for each type for each pixel of the target image. That is, the result with the higher score between the segmentation result for each individual and the segmentation result for each type can be included in the correction result. Therefore, the image processing device 20 in this embodiment can reduce the possibility of falsely detecting background stains or the like that should not actually be detected.
[0142] In this embodiment, image analysis of fibers has been described, but it can also be performed on particles. For example, even if particles overlap, the particles can be accurately identified.
[0143] [Supplementary Note] Each function of the above-described embodiments can be realized by one or more processing circuits. Here, the term "processing circuit" in this specification includes a processor programmed to execute each function by software, such as a processor implemented by an electronic circuit, as well as devices such as an ASIC (Application Specific Integrated Circuit), a DSP (Digital Signal Processor), an FPGA (Field Programmable Gate Array), and conventional circuit modules designed to execute each of the above-described functions.
[0144] Although the embodiments of the present disclosure have been described in detail above, the embodiments disclosed herein are illustrative in all respects and are not limiting. The embodiments can be modified and improved in various ways without departing from the scope and spirit of the appended claims. The matters described in the above embodiments can be configured in other ways as long as they are not inconsistent, and can be combined as long as they are not inconsistent.
[0145] This application claims priority from Japanese Patent Application No. 2023-50607, filed with the Japan Patent Office on March 27, 2023, the entire contents of which are incorporated herein by reference.
[0146] REFERENCE SIGNS LIST 1 Object detection system 10 Image acquisition device 101 Imaging control unit 102 Image storage unit 20 Image processing device 200 Model storage unit 201 Image acquisition unit 202 Object detection unit 203 Area division unit 204 Area correction unit 205 Result output unit 30 User terminal 301 Image transmission unit 302 Result display unit
Claims
1. An image processing device comprising: an image acquisition unit configured to acquire a target image in which a plurality of fibers are captured; a first region division unit configured to generate a region division result for each individual by detecting each of the fibers included in the target image using a trained region division model for each individual; a second region division unit configured to generate a region division result for each type by recognizing an area in which the plurality of fibers are captured from the target image using a trained region division model for each type; a region correction unit configured to correct the region division result for each individual using the region division result for each type; and a result output unit configured to output a result of the correction of the region division result for each individual.
2. An image processing device according to claim 1, wherein the area correction unit is configured to generate the correction result by calculating a logical product of the area segmentation result for each individual and the area segmentation result for each type.
3. An image processing device as described in claim 1, wherein the area correction unit is configured to generate the correction result by selecting the area segmentation result for each individual or the area segmentation result for each type based on a result of comparing the score of the area segmentation result for each individual with the score of the area segmentation result for each type for each unit of the target image.
4. An image processing device according to any one of claims 1 to 3, wherein the region segmentation model for each individual is a model that performs instance segmentation, and the region segmentation model for each type is a model that performs semantic segmentation.
5. An image processing device according to claim 4, wherein the region segmentation model for each individual is Mask R-CNN or YOLACT.
6. An image processing device according to claim 4 or 5, wherein the area division model for each individual has an adjustable bounding box size.
7. An image processing device according to any one of claims 4 to 6, wherein the area division model for each individual is capable of adjusting a mask size for each individual.
8. An image processing device according to any one of claims 4 to 7, wherein the area division model for each type is DeepLab or U-Net.
9. An image processing device according to any one of claims 1 to 8, wherein the area correction unit is configured to correct the area in which the fibers are detected in the area division result for each individual.
10. An image processing device according to claim 9, wherein the area correction unit is configured to enlarge the areas divided for each individual by dilation processing or smoothing processing.
11. An image processing method in which a computer executes the steps of: acquiring a target image in which a plurality of fibers are captured; generating an individual-by-individual region segmentation result that detects each of the fibers contained in the target image using a trained individual-by-individual region segmentation model; generating a type-by-type region segmentation result that recognizes regions in which the plurality of fibers are captured from the target image using a trained type-by-type region segmentation model; correcting the individual-by-individual region segmentation result using the type-by-type region segmentation result; and outputting the corrected individual-by-individual region segmentation result.
12. A program for causing a computer to execute the steps of: acquiring a target image in which a plurality of fibers are captured; generating an area segmentation result for each individual that detects each of the fibers contained in the target image using a trained area segmentation model for each individual; generating an area segmentation result for each type that recognizes areas in which the plurality of fibers are captured from the target image using a trained area segmentation model for each type; correcting the area segmentation result for each individual using the area segmentation result for each type; and outputting the corrected area segmentation result for each individual.
Citation Information
Patent Citations
Metallographic structure segmentation method
JP2022188504A
Evaluation method of stress on electrolyte membrane of fuel cell, and fuel cell system
JP2023050607A
Information processing device, information processing method, and information processing program
JP2022180958A
Point cloud segmentation method, computer program and computer device
JP2022501740A
Artificial leather and production method therefor
WO2021085427A1
Cited By
Data Check System
JP2026155029A
