Training image collection system, training image collection method, and training image collection program
The learning image collection system addresses the challenge of collecting high-quality training data by generating and evaluating simulation images to select a reduced image set that meets inspection performance, effectively addressing the inclusion of unnecessary or degraded data in existing systems.
Patent Information
- Application Number
- PCT/JP2024/006867
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-10
- Filing Date
- 2024-02-26
- Publication Date
- 2024-09-19
AI Technical Summary
Existing learning-based image processing systems face challenges in collecting high-quality training data that covers all variations of the inspection target without unnecessary or degraded data, particularly in terms of positional shifts, focus shifts, and structural differences.
A learning image collection system that generates simulation images covering various inspection target variations, evaluates their quality, and selects a reduced image set to achieve predetermined inspection performance, using a processor to generate simulation images, evaluate deviations, and register high-quality captured images as learning data.
Enables efficient and appropriate collection of learning images for inspection engines, ensuring high-quality training data that meets inspection performance requirements by reducing unnecessary and degraded data.
Smart Images

Figure JP2024006867_19092024_PF_FP_ABST
Abstract
Description
Learning image collection system, learning image collection method, and learning image collection program
[0001] The present invention relates to a technique for collecting a group of learning images for an inspection engine that inspects an inspection object.
[0002] In recent years, there have been numerous reports showing that learning-based image processing, particularly deep learning, outperforms rule-based image processing in a wide range of fields, including recognition, classification, and inspection. Because the performance of learning-based image processing is highly dependent on the training data used, the quality of the training data is crucial. Requirements for high-quality training data include comprehensive coverage of variations in the training target, the absence of unnecessary data that does not contribute to learning, and the lack of degradation of the data due to unintended effects such as misalignment, focus loss, and structural differences.
[0003] For example, in order to cover all variations in the learning target in the learning data, Patent Document 1 states, "When machine learning is applied to image inspection, it is necessary to comprehensively learn all variations in the subject to be inspected. This example describes an example of efficiently selecting learning data using semiconductor device design data and SEM shooting conditions to cover all variations in pattern shape on a semiconductor device. In the case of semiconductors, the amount of deformation of the pattern shape differs depending on the pattern formation position on the semiconductor device due to variations in the manufacturing process, so it is effective to make selections that take into account the pattern formation position in addition to the pattern shape variations."
[0004] Japanese Patent Application Laid-Open No. 2020-035282
[0005] The method described in Patent Document 1 can acquire training data that covers all variations of the target object based on design data and imaging conditions. However, from the viewpoint of the quality of the training data, there is a problem in that the training data may contain unnecessary data or degraded data because only variations are guaranteed.
[0006] The present invention has been made in consideration of the above circumstances, and its purpose is to provide a technology that can easily and appropriately collect learning images for an inspection engine that inspects an inspection object.
[0007] In order to achieve the above-mentioned object, one aspect of a learning image collection system is a learning image collection system that collects a group of learning images for an inspection engine that inspects an inspection object, and has a processor. The processor generates a first group of simulation images corresponding to a plurality of variations of the inspection object, identifies a second group of simulation images that is a group of images obtained by reducing images from the first simulation image group and that can achieve a predetermined inspection performance relative to a group of evaluation images by training the inspection engine, accepts a group of captured images of the inspection object that correspond to each image in the second simulation image group, and registers the captured image group as a learning image group for the inspection engine.
[0008] According to the present invention, it is possible to easily and appropriately collect learning images for an inspection engine that inspects an inspection object.
[0009] FIG. 1 is a diagram illustrating the overall configuration of an imaging system according to the first embodiment. FIG. 2 is a diagram illustrating captured images and simulation images according to the first embodiment. FIG. 3 is a flowchart of a learning data collection process according to the first embodiment. FIG. 4 is a flowchart of an inspection target and environmental condition setting process according to the first embodiment. FIG. 5 is a flowchart of a provisional simulation image setting process according to the first embodiment. FIG. 6 is a flowchart of an example of a provisional simulation image setting process according to a modified example. FIG. 7 is a flowchart of a variation reduction process according to a modified example. FIG. 8 is a flowchart of a deviation evaluation process according to a modified example. FIG. 9 is an example of a GUI screen according to the first embodiment. FIG. 10 is a flowchart of a learning data collection process according to a second embodiment.
[0010] The following description of the embodiments will be given with reference to the drawings. Note that the embodiments described below do not limit the scope of the invention as claimed, and not all of the elements and combinations thereof described in the embodiments are necessarily essential to the solution of the invention.
[0011] First Embodiment <Configuration of an Imaging System 10> FIG. 1 is a diagram showing the overall configuration of an imaging system according to a first embodiment.
[0012] The imaging system 10 includes a processor system 100 as an example of a learning image collection system, and an imaging device 105. The imaging device 105 is a device capable of capturing an image of the surface or interior of an object to be inspected as digital data. Specifically, the imaging device 105 is a charge coupled device (CCD) camera, an optical microscope, a charged particle microscope, an ultrasonic inspection device, an X-ray inspection device, or the like. The imaging device 105 transmits the captured image of the object to the processor system 100. The object is not limited as long as it can be imaged by the imaging device 105, and may be, for example, an industrial part, daily necessities, food, or the like.
[0013] <<Details of the Processor System 100>> The processor system 100 includes a processor 102, a communication device 103, an input / output device 104, and a storage resource 110. Specifically, the processor system 100 is a computing device such as a personal computer, a tablet, a smartphone, a server, or a cloud. The processor 102 reads various programs and data stored in the storage resource 110 and executes various processes related to learning data collection. Specifically, the processor 102 is a central processing unit (CPU), a graphics processing unit (GPU), a field programmable gate array (FPGA), or other semiconductor device capable of performing calculations. The communication device 103 communicates information with an external device (such as an imaging device 105). The communication device 103 communicates information such as captured images with the imaging device 105 via, for example, a wired or wireless LAN (Local Area Network). The input / output device 104 includes an input device that accepts instructions from a user to the processor system 100, and an output device that outputs screens and the like generated by the processor system 100. Examples of the input device include a keyboard, a touch panel, a mouse, and a microphone. Examples of the output device include a display and a speaker. The output device outputs a screen (GUI screen) using a GUI (Graphical User Interface) described later.
[0014] <<<Details of the Storage Resource 110>>> The storage resource 110 holds various programs and various data. Specifically, the storage resource 110 is a RAM (Random Access Memory), a ROM (Read Only Memory), an HDD (Hard Disk Drive), etc. The storage resource 110 holds a simulation image generation program 111, an inspection engine learning program 112, an inspection engine evaluation program 113, a deviation degree evaluation program 114, a GUI execution program 115, a simulation image database 116, a captured image database 117, an information database 118, an inspection engine 119, and a deviation degree evaluation engine 120.
[0015] <<<<<Simulation Image Generation Program 111>>>> The simulation image generation program 111 is executed by the processor 102 to perform various processes related to simulation images. The simulation image generation program 111 generates a simulation image set (first simulation image group) with a predetermined number of variations based on the conditions of the inspection object and environment. The simulation image generation program 111 also generates a simulation image set (second simulation image group) with a reduced number of variations in accordance with performance information of the inspection engine 119 read from the information database 118. The simulation image sets include a training simulation image set for training the inspection engine 119 and an evaluation simulation image set for evaluating the performance of the inspection engine 119.
[0016] <<<<<Inspection Engine Learning Program 112>>>> The inspection engine learning program 112 reads a set of simulation images for learning from the simulation image database 116, and performs machine learning on the inspection engine 119 that performs a predetermined inspection task (inspection processing). Examples of predetermined inspection tasks include detecting anomalies and defects in an object.
[0017] <<<<<Inspection Engine Evaluation Program 113>>>> Inspection engine evaluation program 113 reads inspection engine 119 and a set of simulation images for evaluation from simulation image database 116, and evaluates the inspection performance of inspection engine 119. Inspection engine evaluation program 113 stores information on the inspection performance of inspection engine 119 in information database 118.
[0018] <<<<<Deviation degree evaluation program 114>>>> The deviation degree evaluation program 114 reads the deviation degree evaluation engine 120 and evaluates the degree of deviation between the simulation image received from the GUI execution program 115 and the captured image. The deviation degree evaluation program 114 stores deviation degree information evaluated by the deviation degree evaluation engine 120 in the information database 118. The deviation degree evaluation program 114 also outputs the deviation degree information to the GUI execution program 115.
[0019] <<<<<GUI Execution Program 115>>>> The GUI execution program 115 displays a GUI screen (see FIG. 9 ), accepts user instructions via the GUI screen, such as changing the parameter value of the deviation threshold value and changing the simulation image, and uses these as various inputs for the learning data collection process. The GUI execution program 115 also displays, on the GUI screen, simulation images read from the simulation image database 116 and captured images read from the captured image database 117. The GUI execution program 115 also displays, on the GUI screen, deviation degree information between the captured image and the simulation image read from the information database 118.
[0020] <<<<<Simulation Image Database 116 >>>>> The simulation image database 116 stores the simulation image set generated by the simulation image generation program 111 .
[0021] <<<<<Captured Image Database 117>>>> The captured image database 117 stores images (captured images) of objects captured by the imaging device 105. The captured images stored include provisional captured images (candidate images) displayed by the GUI execution program 115 and a group of captured images (group of learning images) registered as learning data by the GUI execution program 115.
[0022] <<<<<Information Database 118>>>> The information database 118 stores various information used in each step of the learning data collection process. The information database 118 stores, for example, the inspection performance information output by the inspection engine 119, the deviation degree information output by the deviation degree evaluation engine 120, etc.
[0023] <<<<<Inspection Engine 119>>>> The inspection engine 119 is an engine that performs a predetermined inspection task (inspection processing) through machine learning by the inspection engine learning program 112. The inspection engine 119 is, for example, a neural network model that inputs an image and outputs an inspection result for the image.
[0024] <<<<<Deviation degree evaluation engine 120>>>> The deviation degree evaluation engine 120 is an engine that is called by the deviation degree evaluation program 114 and evaluates the degree of deviation between the captured image and the simulation image for one or more evaluation items. Note that if there are multiple evaluation items for the degree of deviation, the deviation degree evaluation engine 120 may include multiple engines that evaluate each evaluation item. The deviation degree evaluation engine 120 is not limited to a learning model that has undergone machine learning, and may also be a rule-based engine.
[0025] <Details of the Learning Data Collection Process in the Imaging System 10> Before describing the learning data collection process that realizes the learning image collection method according to this embodiment, captured images and simulation images of the inspection target related to the learning data collection process will be described.
[0026] FIG. 2 is a diagram illustrating a captured image and a simulation image according to the first embodiment.
[0027] The inspection object 300 includes, for example, structures 301 to 304. The inspection object 300 has different variations depending on, for example, the variations in the shapes of the structures 301 to 304. The inspection object 300 is placed on, for example, a pedestal 315, and an image is captured by the imaging device 105 installed above the pedestal 315. The captured images of the inspection object 300 are, for example, as shown in captured images 306, 308, and 310.
[0028] Captured image 306 is a captured image of a certain inspection object 300. Captured image 308 is a captured image of inspection object 300 that has a different variation from the inspection object in captured image 306. The inspection object in captured image 308 has the same structures 301 and 303 as the inspection object in captured image 306, but structure 302 is larger and structure 304 is smaller. In the captured images of the inspection object, in addition to variations in the inspection object, there are also variations in the imaging conditions.
[0029] The captured image 310 is an example of a captured image in which the inspection object 300 is the same as that in the captured image 306, but the inspection object 300 is displaced in position and orientation, and an unwanted object 314 is also captured in the image. The position and orientation of the inspection object 300 and the inclusion of the unwanted object are not intended by the user, but they reduce the quality of the training data and the inspection performance of the inspection engine 119.
[0030] The 3DCG (Dimensional Computer Graphics) data 305 is data that represents the inspection object 300 in a 3DCG space. The simulation image 307 is an image generated by two-dimensionally projecting the 3DCG data 305 upward. The simulation image 307 is a simulation image corresponding to the captured image 306. It is difficult to make the simulation image 307 have the same image state as the captured image 306. Note that in FIG. 2, a dot pattern is used to indicate that the image states are not the same. The simulation image 309 is a simulation image corresponding to the captured image 308, and has a different variation from the inspection object 300 in the simulation image 307.
[0031] Next, the learning data collection process will be described.
[0032] FIG. 3 is a flowchart of the learning data collection process according to the first embodiment.
[0033] Here, the conditions of the inspection object and the environment, and the user-input information used in the processing may be input by the user at the time, or may be input and set in advance. For simplicity, the variations in the captured images of the inspection object will be described as only variations in the shape of the inspection object, but they may also include variations in the physical properties of the inspection object, and may also include various variations such as variations in the imaging conditions. While the description will be given of an example of good product learning, in which only normal inspection objects are used to learn anomaly detection, good / defective product learning may also be used, in which defect detection is learned using both normal inspection objects and inspection objects with defects. When performing good / defective product learning, for example, variations in the images of the inspection object may include variations in defects.
[0034] In step S201, the simulation image generation program 111 (strictly speaking, the processor 102 that executes the simulation image generation program 111) reads the conditions of the inspection object and the environment input by the user and performs processing to set up a simulation space. This processing corresponds to setting up a 3DCG space in which the imaging device 105, the inspection object 300, and the pedestal 315 are set up.
[0035] In step S202, the simulation image generation program 111 performs a provisional simulation image setting process in which it reads variation information (tolerance, stage, etc.) for the image of the inspection object input by the user, generates 3DCG data sets corresponding to each variation, and projects them two-dimensionally to generate a provisional simulation image set (first simulation image group). The tolerance is, for example, the allowable range (for example, ±10 mm) for the size of the structure of the inspection object 300, and the stage is, for example, a size stage within the tolerance range.
[0036] Specifically, the simulation image generation program 111 sets a provisional set of simulation images generated within the allowable range of variation as the training simulation images for the inspection engine 119. This process corresponds to projecting the 3DCG data 305 into two dimensions to generate simulation images 307, 309, etc. with different variations, and using these as training simulation images. The initial number of variations of the training simulation images is, for example, the number of combinations that cover all the shape variation settings input by the user. For example, if the shape variation of each of the structures 301 to 304 is set to 10 levels within the allowable range, the initial number of variations of the training simulation images will be 10,000.
[0037] Furthermore, the simulation image generation program 111 generates a provisional set of simulation images including variations outside the allowable range, and sets these as a set of simulation images (a group of images for evaluation) for evaluation by the inspection engine 119. Here, the simulation images outside the allowable range correspond to images of inspection targets that are defective.
[0038] In step S203, the inspection engine learning program 112 reads the training simulation image set and performs machine learning on the inspection engine 119 that performs a predetermined inspection task. Here, for example, the predetermined inspection task is anomaly detection. One method for anomaly detection is to use an autoencoder network that is trained using images of non-defective products so that the input image and the output image match. Anomaly detection is performed by utilizing the fact that when a defective product image is input, the network cannot reconstruct the defective part, resulting in a large difference between the input image and the output image.
[0039] In step S204, the inspection engine evaluation program 113 reads the inspection engine 119 and the evaluation simulation image set, and evaluates whether or not a predetermined inspection performance is satisfied based on the inspection results obtained by inputting the evaluation simulation images into the inspection engine 119. For example, the predetermined inspection performance may be an anomaly detection rate of 95% or higher.
[0040] In step S205, the inspection engine evaluation program 113 determines whether to end the trial of reducing the number of simulation images. In this embodiment, it is determined that the trial of reducing the number of simulation images is to be ended if it is determined in step S204 that the inspection performance is no longer satisfied. It may also be determined that the trial of reducing the number of simulation images is to be ended if the inspection performance is satisfied and the number of simulation images is equal to or less than a predetermined number, or if other conditions set by the user are satisfied.
[0041] As a result, if it is determined that the trial of reducing the simulation images is not to be ended (S205: NO), the inspection engine evaluation program 113 advances the process to step S206.
[0042] In step S206, the simulation image generation program 111 executes a variation reduction process to reduce the number of variations in the training simulation image. One method for reducing the number of variations in the training simulation image is to thin out simulation images that are close in distance or have a high degree of image correlation in the feature space. After reducing the variations, the simulation image generation program 111 proceeds to step S202. In step S202, the simulation image generation program 111 sets the simulation image with the reduced variations as a provisional simulation image for the training image of the inspection engine 119.
[0043] On the other hand, if it is determined that the trial of reducing the simulation images is to be ended (S205: YES), this means that the limit of variation reduction has been reached, and the inspection engine evaluation program 113 proceeds to step S207.
[0044] In step S207, the simulation image generation program 111 saves the learning simulation image set that satisfies the inspection performance (for example, if it is determined that the inspection performance is not met and the attempt to reduce the simulation images is terminated, the learning simulation image set that met the previous inspection performance) in the simulation image database 116 as a simulation image (reference simulation image: second simulation image) for collecting learning captured images.
[0045] After step S207, the deviation evaluation program 114 repeatedly executes the processing of loop 1 (S208 to S212) until the loop count i increases from 1 to N (the number of variations of the reference simulation image). The processing of loop 1 allows captured images corresponding to the simulation images of each variation to be collected. Note that when the processing of loop 1 is executed, it is assumed that the simulation images have been used as reference and that inspection objects corresponding to each simulation image have been prepared.
[0046] In step S208, the deviation degree evaluation program 114 acquires a provisional image of the inspection target captured by the imaging device 105. Here, the imaging device 105 may acquire the captured image in real time.
[0047] In step S209, the deviation degree evaluation program 114 reads the deviation degree evaluation engine 120, evaluates the degree of deviation between the simulation image and the captured image acquired in step S208, and executes a deviation evaluation process in which deviation degree information generated by the deviation degree evaluation engine 120 is stored in the information database 118. Methods for evaluating the degree of deviation include evaluation methods based on an image correlation value or a distance in a feature space.
[0048] In step S210, the deviation degree evaluation program 114 determines whether the deviation degree recorded in the deviation degree information is equal to or less than a predetermined threshold value. If the deviation degree is not equal to or less than the predetermined threshold value (S210: NO), the deviation degree evaluation program 114 proceeds to step S211. If the deviation degree is equal to or less than the predetermined threshold value (S210: YES), the deviation degree evaluation program 114 proceeds to step S212.
[0049] In step S211, the GUI execution program 115 displays the simulation image and the captured image on the GUI screen 900. Furthermore, the GUI execution program 115 reads the deviation degree information, displays an instruction (correction instruction) for reducing the degree of deviation between the captured image and the simulation image on the GUI screen 900, and proceeds to step S208. This allows the user to correct the captured image by, for example, changing the position of the inspection target in accordance with the instruction so as to reduce the degree of deviation.
[0050] In step S212, the deviation degree evaluation program 114 acquires a captured image of the inspection target using the imaging device 105. Here, in step S212, the captured image may have a higher resolution than the captured image acquired in step S208. Note that if the resolution of the captured image acquired in step S208 is higher, the captured image acquired in step S208 may be used without newly capturing an image.
[0051] The process of loop 1 is executed for the simulation image of each variation, and if a captured image corresponding to each simulation image can be acquired, the deviation degree evaluation program 114 advances the process to step S213.
[0052] In step S213, the GUI execution program 115 registers the captured images corresponding to the simulation images in the captured image database 117 as learning captured images.
[0053] According to the above-described process, a minimum set of simulation images that meets predetermined inspection performance can be created based on the inspection performance of the inspection engine trained with the simulation images. Furthermore, when capturing images corresponding to the simulation images, the degree of deviation between the simulation images and the captured images is evaluated, and instructions to reduce the degree of deviation are displayed. This allows captured images with little deviation from the simulation images to be captured, thereby enabling efficient collection of high-quality learning data. Furthermore, captured images with a degree of deviation below a threshold are registered as learning images, allowing collection of high-quality learning data.
[0054] Next, an example of the inspection target and environmental condition setting process in step S201 will be described.
[0055] FIG. 4 is a flowchart of the inspection target and environmental condition setting process according to the first embodiment.
[0056] In step S501, the simulation image generation program 111 reads prior information on the inspection target and environment. Here, the prior information is, for example, captured images of a plurality of inspection targets captured in advance.
[0057] In step S502, the simulation image generation program 111 estimates variations of the inspection target based on the prior information. For example, the simulation image generation program 111 performs image analysis on the captured image of the prior information to analyze the shapes of the structures 301 to 304 of the inspection target 300, and estimates the range of sizes of the structures of the actual inspection target.
[0058] In step S503, the simulation image generation program 111 sets the inspection target and environmental conditions based on the estimated variations, for example, by including information on the range of the actual size of each structure in the conditions.
[0059] This process makes it possible to determine variations taking into consideration not only the user information entered via the GUI but also the captured image of the actual inspection target. For example, if the allowable range for the size of a structure is ±10 mm and the actual range of the structure's size is ±5 mm, the variations can be determined by narrowing it down to this actual size range, and instead of comprehensive variations that follow the allowable range, variations can be set within a narrower range that is closer to reality.
[0060] Next, an example of the provisional simulation image setting process in step S202 will be described.
[0061] FIG. 5 is a flowchart of the provisional simulation image setting process according to the first embodiment.
[0062] In step S401, the simulation image generation program 111 generates multiple simulation images for learning for each variation. For example, by misaligning the structures 302 to 304 of the inspection target 300 at a level that does not affect inspection performance, multiple simulation images with the same shape variations are generated from a learning perspective. Here, a level that does not affect inspection performance refers to an image that does not change the performance of the inspection engine even if the image is replaced.
[0063] Next, the simulation image generation program 111 repeatedly executes the processing of loop 2 (S402, S403) until the loop count i reaches N (the number of simulation image variations). The processing of loop 2 allows the user to select a more appropriate simulation image for each variation.
[0064] In step S402, the GUI execution program 115 displays multiple simulation images corresponding to the variations on the GUI. In step S403, the GUI execution program 115 accepts a selection of one simulation image from the user and sends it to the simulation image generation program 111. In this step, the user selects simulation images that are similar to multiple inspection targets prepared in advance.
[0065] When the simulation images corresponding to the variations are selected by the processing of loop 2, the simulation image generation program 111 advances the processing to step S404.
[0066] In step S404, the simulation image generation program 111 sets the selected simulation image as a provisional simulation image.
[0067] According to this process, a simulation image that is similar to the object to be inspected can be selected from a plurality of simulation images, thereby reducing the man-hours required to prepare an object to be inspected that is similar to the simulation image.
[0068] Next, a provisional simulation image setting process according to a modified example will be described.
[0069] FIG. 6 is a flowchart of an example of a provisional simulation image setting process according to a modified example.
[0070] This provisional simulation image setting process includes a process of converting the simulation image so that it resembles the captured image.
[0071] Step S601 performs the same processing as step S501. In step S602, the simulation image generation program 111 extracts feature amount information from the simulation image and the captured image based on prior information. For example, the simulation image generation program 111 generates an engine (image quality conversion engine) that converts the simulation image to have image quality similar to that of the captured image of the inspection target. Here, the image quality conversion engine is a network that has been trained to output an image obtained by converting an input simulation image to have image quality similar to that of the captured image.
[0072] In step S603, the simulation image generation program 111 generates one training simulation image for each variation. In step S604, the simulation image generation program 111 converts the simulation image to resemble the captured image based on the extracted feature amount information. For example, the simulation image is converted to have image quality similar to that of the captured image using the image quality conversion engine described above.
[0073] In step S605, the simulation image generation program 111 sets the converted simulation image as a provisional simulation image.
[0074] This process allows the provisional simulation image to be a simulation image with image quality close to that of the captured image, and therefore by training the inspection engine using this simulation image, the inspection engine can be brought closer to the state learned using the captured image, thereby more appropriately reducing variations.
[0075] Next, an example of the variation reduction process in step S206 will be described.
[0076] FIG. 7 is a flowchart of a variation reduction process according to a modified example.
[0077] The variation reduction process reduces the variations of the simulation image based on clustering information in the feature amount space of the simulation image.
[0078] In step S701, the simulation image generation program 111 projects the simulation image for each variation onto a feature space. One method for projecting onto the feature space is to use the intermediate output of a trained network that can classify images into hundreds of classes with high accuracy.
[0079] In step S702, the simulation image generation program 111 clusters the simulation images in the feature space. Clustering methods include the k-means method.
[0080] In step S703, the simulation image generation program 111 determines and deletes simulation images to be reduced based on the size of each cluster and the number of images belonging to the cluster. For example, if the size of a cluster is small but the number of images belonging to the cluster is large, many simulation images belonging to this cluster are deleted. Note that, regardless of the cluster size, simulation images belonging to the boundary of the cluster may be avoided as much as possible.
[0081] This process is expected to maintain an appropriate distribution in the feature space of the simulation image and prevent a decline in the inspection performance of the inspection engine due to a reduction in the variation of the simulation image.
[0082] Next, an example of the deviation evaluation process in S209 will be described.
[0083] FIG. 8 is a flowchart of a deviation evaluation process according to a modified example.
[0084] The deviation evaluation process is a process of evaluating the degree of deviation between a captured image and a simulation image using semantic segmentation processing.
[0085] In step S801, the deviation degree evaluation program 114 performs semantic segmentation processing on the provisional captured image to separate the background and the structure of the inspection target. Here, the semantic segmentation processing can use a network that has been trained to separate the input image into segmentation images for each region to be evaluated for the deviation degree and output the segmented images. For example, the deviation degree evaluation program 114 separates the inspection target 300 into five parts: the background and each of the inspection target structures 301 to 304.
[0086] Next, the deviation degree evaluation program 114 repeatedly executes the processing of loop 3 (S802 to S806) for each deviation evaluation item until the loop count j becomes 1 to M (the number of deviation evaluation items). The processing of loop 3 allows the deviation degree to be evaluated for each deviation evaluation item.
[0087] In step S802, the deviation degree evaluation program 114 sets evaluation areas corresponding to the deviation evaluation items in the captured image using a segmentation image.
[0088] In step S803, the deviation degree evaluation program 114 uses the deviation degree evaluation engine 120 to calculate the degree of deviation between the simulation image and the captured image using an evaluation method corresponding to the deviation evaluation item. For example, if the deviation evaluation item is the structures 301 to 304, evaluation methods include calculating positional and orientation deviations based on feature point matching, and calculating structural differences based on alignment and area comparison. Furthermore, if the deviation evaluation item is the background, methods include detecting unwanted reflections based on labeling.
[0089] In step S804, the deviation degree evaluation program 114 records the deviation evaluation results of the deviation evaluation items in the deviation degree information.
[0090] In step S805, the deviation degree evaluation program 114 determines whether the deviation degree of the deviation evaluation item is below the threshold value. If the deviation degree is not below the threshold value (S805: NO), the program proceeds to step S806. If the deviation degree is below the threshold value (S805: YES), the program terminates the processing of loop 3 for this deviation evaluation item.
[0091] In step S806, the deviation degree evaluation program 114 records a deviation correction flag indicating that correction is required for the deviation evaluation item in the deviation degree information, and ends the processing of loop 3 for this deviation evaluation item.
[0092] When all deviation evaluation items have been processed by the processing of loop 3 (when j is the number of deviation evaluation items M), the deviation degree evaluation program 114 advances the processing to step S807.
[0093] In step S807, the deviation degree evaluation program 114 stores the deviation degree information in the information database 118.
[0094] This process allows the degree of deviation for each structure under inspection to be evaluated, enabling a more precise evaluation of the deviation between the captured image and the simulation image, which is useful for making adjustments to further reduce the degree of deviation between the captured image and the simulation image.
[0095] Next, the GUI screen will be described.
[0096] FIG. 9 shows an example of a GUI screen according to the first embodiment.
[0097] FIG. 9 shows an example of a GUI screen that displays the degree of deviation between the captured image and the simulation image.
[0098] The GUI screen 900 includes a simulation image ID field 901, a simulation image replacement button 902, a registration button 903, a parameter setting field 905, a simulation image display area 920, a captured image display area 921, a simulation image replacement candidate field 922, and a deviation adjustment announcement field 912.
[0099] The simulation image ID field 901 is an area for specifying the ID (number) of the simulation image to be displayed. The simulation image replacement button 902 is a button to be pressed when replacing a simulation image. The registration button 903 is a button to be pressed when registering a captured image corresponding to the captured image displayed in the captured image display area 921 as a learning captured image.
[0100] The parameter setting field 905 is a field for setting threshold values for the degree of deviation. The parameter setting field 905 includes areas for setting threshold values such as positional deviation 906, orientation deviation 907, structure 1 difference 908, structure 2 difference 909, structure 3 difference 910, and structure 4 difference 911. In the example of Fig. 9, the positional deviation, orientation deviation, and structure 1 difference are areas for setting threshold values for the degree of deviation for the deviation evaluation items related to the structure 301, and the structure 2 to structure 4 differences are areas for setting threshold values for the deviation evaluation items related to the structures 302 to 304, respectively.
[0101] The simulation image display area 920 displays a simulation image corresponding to the number specified in the simulation image ID field 901. The captured image display area 921 displays a provisional captured image of the inspection object captured by the imaging device 105. In this embodiment, the inspection object being captured by the imaging device 105 is displayed in real time (as a moving image). The simulation image replacement candidate area 922 displays a simulation image similar to the captured image displayed in the captured image display area 921.
[0102] The deviation adjustment announcement column 912 displays deviation adjustment information 913, which is information on instructions (correction instructions) for adjusting (reducing) the degree of deviation for evaluation items between the simulation image displayed in the simulation image display area 920 and the captured image displayed in the captured image display area 921.
[0103] The user can modify the imaging conditions of the inspection target by referring to the deviation adjustment information 913. When the imaging conditions are modified, the captured image displayed in the captured image display area 921 is changed from the captured image 310 to the captured image 306 captured after the imaging conditions were changed, and the information displayed in the deviation adjustment announcement field 912 is changed from the deviation adjustment information 913 to deviation adjustment information 914 between the simulation image 309 and the captured image 306. In the example of FIG. 9 , changing to the captured image 306 results in deviation adjustment information 914, allowing the user to confirm that the quality of the captured image has improved. Note that the deviation adjustment information 914 contains information corresponding to the deviation adjustment flag included in the deviation degree information. However, for example, if the structural difference is such that resetting the threshold value to a higher value does not cause any problems, the threshold value in the parameter setting field 905 may be reset to a higher value. In this way, the corresponding deviation adjustment information can be deleted from the deviation adjustment information 914.
[0104] Furthermore, when the simulation image replacement button 902 is pressed, the image in the simulation image display area 920 changes to the simulation image 307. Details of the replacement of the simulation image will be described in the second embodiment. When the degree of deviation between the simulation image and the captured image changes by replacing the simulation image, and the deviation adjustment flag disappears from the deviation degree information, the deviation adjustment information is no longer displayed in the deviation adjustment announcement field 912.
[0105] The GUI screen 900 allows users to visually check the simulation image and the captured image. Also, the captured image can be adjusted and acquired while checking deviation adjustment information for evaluation items that require adjustment, which prevents rework such as re-imaging and allows high-quality captured images to be collected efficiently.
[0106] Second Embodiment Next, an imaging system according to a second embodiment will be described.
[0107] The processor system of the imaging system according to the second embodiment differs from the processor system according to the first embodiment in part of the learning data collection process. The learning data collection process according to the second embodiment differs from the learning data collection process according to the first embodiment in that a simulation image similar to a provisional captured image of the inspection target is searched for from a simulation image set, and if there is no simulation image similar to the provisional captured image, a change of the inspection target is prompted.
[0108] Fig. 10 is a flowchart of the learning data collection process according to the second embodiment. In Fig. 10, steps that are the same as those in the learning data collection process shown in Fig. 3 are denoted by the same reference numerals.
[0109] First, the processor 102 executes the processes of steps S201 to S206.
[0110] Next, the processor 102 repeatedly executes the processing of loop 4 (S208, S209, S1001, S210, S1002, S212) until the loop count i becomes 1 to N (the number of variations). The processing of loop 4 allows the collection of captured images corresponding to the simulation images of each variation.
[0111] In step S1001, the deviation degree evaluation program 114 searches for a simulation image that is more similar to the provisional captured image from among simulation images other than the simulation image evaluated in step S209. Specifically, the deviation degree evaluation program 114 evaluates the degree of deviation between the provisional captured image and each simulation image and extracts the simulation image with the smallest degree of deviation. If the degree of deviation from the extracted simulation image is smaller than the degree of deviation from the simulation image evaluated in step S209, the more similar simulation image is recorded in the deviation degree information. On the other hand, if there is no simulation image with a smaller degree of deviation than the simulation image evaluated in step S209 and step S209 has been processed multiple times with the same simulation image, a flag indicating a change of the inspection target is recorded in the deviation degree information.
[0112] In step S1002, in addition to the processing of step S211, the GUI execution program 115 displays a more similar simulation image in the simulation image replacement candidate area 922 on the GUI screen 900. When the simulation image replacement button 902 on the GUI screen 900 is pressed, the deviation degree evaluation program 114 changes the simulation image to be evaluated in step S209 to a more similar simulation image. In addition, the GUI execution program 115 displays information indicating a change in the inspection target on the GUI screen 900. In this case, the user can select a new inspection target from multiple inspection targets prepared in advance and have it imaged. Note that if there are not enough inspection targets for the simulation image, the user can prepare a new inspection target by referring to the simulation image.
[0113] According to the training data collection process of the second embodiment, a simulation image that is more similar to the provisional captured image can be selected from the simulation image set, thereby enabling more efficient collection of training data. Furthermore, since there is an instruction to change the test object, the validity of multiple test objects prepared in advance can be efficiently confirmed based on the simulation images.
[0114] The present invention is not limited to the above-described embodiments and includes various modifications. For example, the above-described embodiments have been described in detail to clearly explain the present invention, and the present invention is not necessarily limited to those including all of the described configurations. Furthermore, it is possible to replace part of the configuration of one embodiment with the configuration of another embodiment, or to add the configuration of another embodiment to the configuration of one embodiment. Furthermore, it is possible to add, delete, or replace part of the configuration of each embodiment with other configurations.
[0115] For example, in the above embodiment, if the degree of deviation is not equal to or less than the threshold value, an instruction to reduce the degree of deviation is displayed on the GUI screen 900, and the user changes the captured image in accordance with the display. However, the present invention is not limited to this, and, for example, the captured image may be changed automatically in accordance with an instruction to reduce the degree of deviation without the user's intervention, for example, the position of the object to be inspected may be automatically changed before capturing the image.
[0116] In the above embodiment, when collecting learning data, the degree of discrepancy between the simulation image and the captured image is evaluated and an instruction to reduce the degree of discrepancy is output. However, for example, it is also possible to evaluate the degree of discrepancy between the captured image when inspecting the inspection object and an image of a good product (e.g., a simulation image of a good product) and output an instruction to reduce the degree of discrepancy. In this way, usability for inspectors can be improved during inspection, and the captured image can be automatically adjusted by issuing an instruction to reduce the degree of discrepancy.
[0117] In addition, in the above-described embodiments, some or all of the processing performed by the processor may be performed by a hardware circuit. Also, the program in the above-described embodiments may be installed from a program source. The program source may be a program distribution server or a recording medium (e.g., a portable recording medium).
[0118] 10...imaging system, 100...processor system, 102...processor, 103...communication device, 104...input / output device, 105...imaging device, 110...storage resource, 111...simulation image generation program, 112...inspection engine learning program, 113...inspection engine evaluation program, 114...deviation degree evaluation program, 115...GUI execution program, 116...simulation image database, 117...captured image database, 118...information database, 119...inspection engine, 120...deviation degree evaluation engine
Claims
1. A learning image collection system that collects a group of learning images for an inspection engine that inspects an object to be inspected, the system having a processor, which generates a first group of simulation images corresponding to a plurality of variations of the object to be inspected, identifies a second group of simulation images that is a group of images obtained by reducing images from the first group of simulation images and that can achieve a predetermined inspection performance relative to a group of evaluation images by training the inspection engine, accepts a group of captured images of the object to be corresponding to each image in the second group of simulation images, and registers the captured image group as a learning image group for the inspection engine.
2. A learning image collection system as described in claim 1, wherein the processor displays each image in the second simulation image group side by side with a candidate image accepted as a candidate for the captured image of the inspection object to be matched to the image.
3. A learning image collection system as described in claim 1, wherein the processor calculates the degree of deviation for specified evaluation items between an image in the second simulation image group and a candidate image accepted as a candidate for a captured image of the inspection subject to be matched to the image, and registers the candidate image whose degree of deviation is below a specified threshold as an image in the learning image group.
4. A learning image collection system as described in claim 3, wherein the processor, when the calculated degree of deviation is not below the threshold value, displays instructions for modifying the captured image to reduce the degree of deviation.
5. A learning image collection system as described in claim 4, wherein the processor calculates the degree of deviation between the images of the second simulation image group and the candidate image for each of a plurality of evaluation items, and if there are a plurality of evaluation items for which the calculated degree of deviation is not below the threshold value, displays instructions for modifying the captured image to reduce the degree of deviation for the plurality of evaluation items.
6. A learning image collection system as described in claim 5, wherein the processor separates the candidate image into a plurality of segmentation images by semantic segmentation processing, and calculates the degree of deviation between the image of the second simulation image group and the candidate image for an evaluation item which is an area corresponding to the segmentation images.
7. A learning image collection system as described in claim 1, wherein the processor identifies the second simulation image group by repeatedly reducing images from the first simulation image group, training the inspection engine with the reduced image group, and evaluating the inspection performance of the inspection engine.
8. A learning image collection system as described in claim 1, wherein the processor generates a plurality of simulation images for at least one variation of the object to be inspected, and selects one simulation image selected by a user from the plurality of simulation images for one variation as the simulation image for that variation, which constitutes the first simulation image group.
9. A learning image collection system according to claim 1, wherein the processor estimates the variation of the inspection object based on a captured image of the inspection object.
10. A learning image collection system as described in claim 1, wherein the processor generates a group of simulation images corresponding to a plurality of variations of the inspection object, and converts the group of simulation images to resemble the captured image based on features of the group of simulation images and features of the captured image of the inspection object, thereby creating the first simulation image group.
11. A learning image collection system as described in claim 1, wherein the processor clusters the first group of simulation images based on features of the first simulation images, and determines images to be deleted from the first group of simulation images based on the size of the cluster and the number of images belonging to the cluster.
12. A learning image collection system as described in claim 3, wherein the processor, if the calculated degree of deviation is not below the threshold value, selects a simulation image similar to the candidate image from the second simulation image group, calculates the degree of deviation between the candidate image and the selected simulation image for a specified evaluation item, and registers the candidate image whose degree of deviation is below a specified threshold value as an image of the learning image group, or issues an instruction to change the inspection object used to capture the candidate image to another inspection object.
13. A learning image collection method by a learning image collection system that collects a group of learning images for an inspection engine that inspects an inspection object, wherein the learning image collection system generates a first group of simulation images corresponding to a plurality of variations of the inspection object, identifies a second simulation image group, which is an image group obtained by reducing images from the first simulation image group and which is an image group that can achieve a predetermined inspection performance for an evaluation image group by training the inspection engine, accepts a group of captured images of the inspection object to correspond to each image in the second simulation image group, and registers the captured image group as a learning image group for the inspection engine.
14. A learning image collection method as described in claim 13, wherein the learning image collection system displays each image of the second simulation image group side by side with a candidate image accepted as a candidate for the captured image of the inspection object to be corresponding to the image.
15. A learning image collection program for causing a computer to execute the learning image collection method according to claim 13 or 14.
Citation Information
Patent Citations
Inspection system, identification system, and learning data generation device
JP2019159959A
Pattern inspection system
JP2020035282A
Learning apparatus, learning method, and program
JP2021086381A
Image processing system and image processing program
JP2021131835A
