Image for learning collection system, image for learning collection method, and image for learning collection program
Patent Information
- Application Number
- JP2023038049
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-03-10
AI Technical Summary
【0008】 本発明によれば、検査対象を検査する検査エンジンのための学習用画像を容易且つ適切に収集することができる。
Smart Images

Figure 2024128816000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a technique for collecting a group of learning images for an inspection engine that inspects an inspection object. [Background technology]
[0002] In recent years, there have been many reports that learning-based image processing, particularly deep learning, outperforms rule-based image processing in a wide range of fields, including recognition, classification, and inspection. The performance of learning-based image processing depends heavily on the training data used, so the quality of the training data is important. Requirements for high-quality training data include covering all variations of the learning target, not including unnecessary data that does not contribute to learning, and not degrading the data due to unintended effects such as misalignment, misfocus, or structural differences.
[0003] For example, in order to cover all variations in the learning target in the learning data, Patent Document 1 states that "When machine learning is applied to image inspection, it is necessary to comprehensively learn the variations in the subject to be inspected. This example explains an example of efficiently selecting learning data using semiconductor device design data and SEM shooting conditions to cover the variations in pattern shapes on a semiconductor device. In the case of semiconductors, due to variations in the manufacturing process, the amount of deformation of the pattern shape differs depending on the position where the pattern is formed on the semiconductor device, so it is effective to make a selection that takes into account the pattern formation position in addition to the variation in pattern shape." [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2020-035282 A Summary of the Invention [Problem to be solved by the invention]
[0005] The method described in Patent Document 1 can obtain learning data that covers all variations of the target object based on design data and shooting conditions. However, from the viewpoint of the quality of the learning data, there is a problem that the learning data may contain unnecessary data or degraded data because only the variations are guaranteed.
[0006] The present invention has been made in consideration of the above circumstances, and its object is to provide a technology that can easily and appropriately collect learning images for an inspection engine that inspects an inspection object. [Means for solving the problem]
[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, wherein the processor generates a first simulation image group 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 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. Effect of the Invention
[0008] According to the present invention, learning images for an inspection engine that inspects an inspection object can be easily and appropriately collected. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram showing the overall configuration of an imaging system according to the first embodiment. [Diagram 2] FIG. 2 is a diagram illustrating a captured image and a simulation image according to the first embodiment. [Diagram 3]FIG. 3 is a flowchart of the learning data collection process according to the first embodiment. [Figure 4] FIG. 4 is a flowchart of the inspection target and environmental condition setting process according to the first embodiment. [Diagram 5] FIG. 5 is a flowchart of the provisional simulation image setting process according to the first embodiment. [Figure 6] FIG. 6 is a flowchart of an example of a temporary simulation image setting process according to the modified example. [Figure 7] FIG. 7 is a flowchart of a variation reduction process according to a modified example. [Figure 8] FIG. 8 is a flowchart of a deviation evaluation process according to a modified example. [Figure 9] FIG. 9 is an example of a GUI screen according to the first embodiment. [Figure 10] FIG. 10 is a flowchart of the learning data collection process according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] The following embodiments will be described with reference to the drawings. Note that the following embodiments do not limit the scope of the invention, 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 imaging system 10> FIG. 1 is a diagram showing the overall configuration of an imaging system according to the 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 CCD (Charge Coupled Device) 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 a captured image of the object to the processor system 100. The object is not limited as long as it can be captured by the imaging device 105, and may be, for example, an industrial part, a daily necessities, or a food.
[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 computer 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 devices 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 local area network (LAN). 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 a screen or the like generated by the processor system 100. The input device is, for example, a keyboard, a touch panel, a mouse, a microphone, etc. The output device is, for example, a display, a speaker, etc. The output device outputs a screen (GUI screen) based on a GUI (Graphical User Interface) described later.
[0014] <<<Details of 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), a 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 generating program 111 executes various processes related to the simulation image by being executed by the processor 102. The simulation image generating program 111 generates a simulation image set (first simulation image group) having a predetermined number of variations based on the conditions of the inspection object and the environment. The simulation image generating program 111 also generates a simulation image set (second simulation image group) in which the number of variations is reduced according to 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). The predetermined inspection task is, for example, anomaly detection or defect detection of an object.
[0017] <<<<Inspection Engine Evaluation Program 113>>>> The inspection engine evaluation program 113 reads the inspection engine 119 and the set of simulation images for evaluating the simulation image database 116, and evaluates the inspection performance of the inspection engine 119. The inspection engine evaluation program 113 stores the information on the inspection performance of the inspection engine 119 in the 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 deviation degree between the simulation image received from the GUI execution program 115 and the captured image. The deviation degree evaluation program 114 stores the deviation degree information evaluated by the deviation degree evaluation engine 120 in the information database 118. Also, the deviation degree evaluation program 114 outputs the deviation degree information to the GUI execution program 115.
[0019] <<<<GUI Execution Program 115>>>> The GUI execution program 115 displays the GUI screen (see Figure 9), and accepts user instructions such as changing the parameter value of the deviation degree threshold and changing the simulation image via the GUI screen, and uses them as various inputs for the learning data collection process. Also, the GUI execution program 115 displays the simulation image read from the simulation image database 116 and the captured image read from the captured image database 117 on the GUI screen. Also, the GUI execution program 115 displays the deviation degree information between the captured image and the simulation image read from the information database 118 on the GUI screen.
[0020] <<<<Simulation Image Database 116>>>> The simulation image database 116 stores the set of simulation images generated by the simulation image generation program 111.
[0021] <<<<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 (a group of images for learning) registered as learning data by the GUI execution program 115.
[0022] <<<<Information Database 118>>>> The information database 118 stores various information used in each process of the learning data collection process. For example, the information database 118 stores the inspection performance information output by the inspection engine 119, the deviation degree information output by the deviation degree evaluation engine 120, and the like.
[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. When there are multiple evaluation items for the deviation degree, 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 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 the present embodiment, captured images and simulation images of an 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, for example, on a pedestal 315, and is imaged 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 having a different variation from the inspection object of captured image 306. The inspection object in captured image 308 has the same structures 301 and 303 as the inspection object of captured image 306, but structure 302 is larger and structure 304 is smaller. In the captured images of the inspection object, in addition to the variation of the inspection object, there are also variations in the imaging conditions.
[0029] A captured image 310 is an example of a captured image in which the inspection target 300 is the same as the inspection target 300 in the captured image 306, but the inspection target 300 is displaced in position and orientation, and an unwanted object 314 is also captured. The position and orientation of the inspection target 300 and the unwanted object being captured are not intended by the user, but they reduce the quality of the learning data and the inspection performance of the inspection engine 119.
[0030] The 3DCG (Dimensional Computer Graphics) data 305 is data that expresses 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 that corresponds 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 that corresponds 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 process may be input by the user at the time, or may be input and set in advance. For simplicity, only the variations in the shapes of the inspection objects are described as variations in the captured images of the inspection objects, but they may also include variations in the physical properties of the inspection objects, and may also include various variations such as variations in the imaging conditions. In addition, although 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 / bad product learning in which both normal inspection objects and inspection objects with defects are used to learn defect detection may also be performed. When good / bad product learning is performed, for example, the variations in the images of the inspection objects may include variations in defects.
[0034] In step S201, the simulation image generating program 111 (strictly speaking, the processor 102 executing the simulation image generating program 111) reads the conditions of the inspection object and the environment input by the user and performs processing to set a simulation space. This processing corresponds to setting a 3DCG space in which the imaging device 105, the inspection object 300, and the pedestal 315 are set.
[0035] In step S202, the simulation image generation program 111 performs a provisional simulation image setting process to read variation information (allowable range, step, etc.) for the image of the inspection target input by the user, generate a 3DCG data set corresponding to each variation, and generate a provisional simulation image set (first simulation image group) by projecting it in two dimensions. The allowable range is, for example, the allowable range of the size of the structure of the inspection target 300 (for example, ±10 mm), and the step is, for example, the step of size within the allowable range.
[0036] Specifically, the simulation image generation program 111 sets a provisional simulation image set generated within the allowable range of variations as the training simulation image of 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 to set them as the 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, when the shape variation of each of the structures 301 to 304 is set to 10 stages within the allowable range, the initial number of variations of the training simulation images is 10,000.
[0037] Furthermore, the simulation image generation program 111 generates a provisional simulation image set including variations outside the allowable range, and sets the provisional simulation image set (image group 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 learning 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. As a method for anomaly detection, for example, there is a method using an autoencoder type network that is trained using images of non-defective products so that an input image and an output image match. When an image of a defective product is input, the network cannot reconstruct the defective part, and the difference between the input image and the output image becomes large, and this is utilized to perform anomaly detection.
[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 result obtained by inputting the evaluation simulation images to the inspection engine 119. For example, the predetermined inspection performance may be an anomaly detection rate of ≧95%.
[0040] In step S205, the inspection engine evaluation program 113 judges whether or not to end the trial of reducing the number of simulation images. Here, in this embodiment, if it is evaluated in step S204 that the inspection performance is no longer satisfied, it is judged that the trial of reducing the number of simulation images is to be ended. Note that it may also be judged 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, when 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 learning simulation image. Here, a method for reducing the variations in the simulation image includes a method of thinning out simulation images that are close in distance in the feature space or have a high degree of image correlation. After reducing the variations, the simulation image generation program 111 advances the process to step S202. In step S202, the simulation image generation program 111 sets the simulation image with the reduced variations as a learning image for the inspection engine 119 as a provisional simulation image.
[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, so the inspection engine evaluation program 113 advances the process 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 satisfied 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 becomes 1 to N (the number of variations of the reference simulation image). The processing of loop 1 makes it possible to collect captured images corresponding to the simulation images of each variation. Note that, when the processing of loop 1 is performed, it is assumed that an inspection target corresponding to each simulation image has been prepared with reference to the simulation image.
[0046] In step S208, the deviation degree evaluation program 114 acquires a provisional captured 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 evaluation program 114 executes a deviation evaluation process by reading the deviation evaluation engine 120, evaluating the degree of deviation between the simulation image and the captured image acquired in step S208, and storing deviation degree information by the deviation evaluation engine 120 in the information database 118. Methods for evaluating the degree of deviation include a method of evaluation based on an image correlation value or a distance in a feature space.
[0048] In step S210, the deviation degree evaluation program 114 judges whether the deviation degree recorded in the deviation degree information is equal to or less than a predetermined threshold value. As a result, if the deviation degree is not equal to or less than the predetermined threshold value (S210: NO), the deviation degree evaluation program 114 advances the process to step S211, whereas if the deviation degree is equal to or less than the predetermined threshold value (S210: YES), the deviation degree evaluation program 114 advances the process 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 so as to reduce the degree of deviation in accordance with the instruction.
[0050] In step S212, the deviation degree evaluation program 114 acquires a captured image of the inspection target by 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 captured image acquired in step S208 has a higher resolution, the captured image acquired in step S208 may be used without capturing a new image.
[0051] The process of loop 1 is executed for the simulation image of each variation, and when 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 respective simulation images in the captured image database 117 as learning captured images.
[0053] According to the above-mentioned process, a minimum necessary set of simulation images that meets a predetermined inspection performance can be created based on the inspection performance of the inspection engine learned from the simulation images. In addition, when capturing an image corresponding to a simulation image, the degree of deviation between the simulation image and the captured image is evaluated, and an instruction to reduce the degree of deviation is displayed. This makes it possible to capture an image with little deviation from the simulation image, and thus makes it possible to efficiently collect high-quality learning data. In addition, captured images with a degree of deviation equal to or less than a threshold value are registered as learning captured images, making it possible to collect 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 generating program 111 reads prior information on the inspection target and the 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 the variation of the inspection target based on the prior information. For example, image analysis is performed on the captured image of the prior information to analyze the shapes of the structures 301-304 of the inspection target 300, and the range of sizes of the structures of the actual inspection target is estimated.
[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 the variation by taking into consideration not only the user information input via the GUI but also the captured image of the actual inspection target. For example, if the allowable range of the size of a structure is ±10 mm, and the actual range of the size of the structure is ±5 mm, the variation can be determined by narrowing it down to this actual range of size, and it is possible to set a variation in a narrower range closer to the actual situation, rather than a comprehensive variation according to the allowable range.
[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 learning simulation images for each variation. For example, multiple simulation images having the same shape variations from a learning perspective are generated by misaligning the structures 302-304 of the inspection target 300 at a level that does not affect the inspection performance. Here, the level that does not affect the 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 becomes 1 to N (the number of variations of the simulation image). 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 similar to multiple inspection targets prepared in advance.
[0065] When a simulation image corresponding to each variation has been selected by the processing of loop 2, the simulation image generating program 111 advances the processing to step S404.
[0066] In step S404, the simulation image generating program 111 sets the selected simulation image as a provisional simulation image.
[0067] According to this process, a simulation image similar to the inspection target can be selected from a plurality of simulation images, and therefore the man-hours required for preparing an inspection target similar to the simulation image can be reduced.
[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 temporary simulation image setting process according to the 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 process as step S501. In step S602, the simulation image generation program 111 extracts feature amount information of the simulation image and the captured image based on the prior information. For example, the simulation image generation program 111 generates an engine (image quality conversion engine) that converts the simulation image into an image of the same image quality as 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 into an image of image quality close to that of the captured image.
[0072] In step S603, the simulation image generation program 111 generates one learning simulation image for each variation. In step S604, the simulation image generation program 111 converts the simulation image to be similar to the captured image based on the extracted feature amount information. For example, the simulation image is converted to an image quality close to that of the captured image using the image quality conversion engine described above.
[0073] In step S605, the simulation image generating program 111 sets the converted simulation image as a provisional simulation image.
[0074] According to this process, the provisional simulation image can be made to have a quality similar 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 a state where it has been trained using the captured image, and the variation can be reduced more appropriately.
[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 images based on clustering information in the feature amount space of the simulation images.
[0078] In step S701, the simulation image generation program 111 projects the simulation image for each variation onto a feature space. As a method for projecting onto the feature space, there is a method using intermediate output of a trained network capable of classifying images into several hundred classes with high accuracy.
[0079] In step S702, the simulation image generating program 111 clusters the simulation images in the feature space. The clustering method may be the k-means method.
[0080] In step S703, the simulation image generating 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 are deleted from the simulation images belonging to this cluster. Note that, regardless of the size of the cluster, it is also possible to avoid deleting simulation images that belong to the boundary of the cluster 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 decrease 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 an 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 structures 301 to 304 of the inspection target.
[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). According to the processing of loop 3, the deviation degree can be evaluated for each deviation evaluation item.
[0087] In step S802, the deviation degree evaluation program 114 sets an evaluation area corresponding to the deviation evaluation item in the captured image. Here, the evaluation area is set by using a segmentation image.
[0088] In step S803, the deviation evaluation program 114 uses the deviation 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, when the deviation evaluation item is the structures 301 to 304, the evaluation method may include calculation of position shift or posture shift based on feature point matching, or calculation of structural difference based on alignment and area comparison. In addition, when the deviation evaluation item is the background, the evaluation method may include detection of unnecessary 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 a threshold value. If the deviation degree is not below the threshold value (S805: NO), the process proceeds to step S806. On the other hand, if the deviation degree is below the threshold value (S805: YES), the process of loop 3 for this deviation evaluation item is terminated.
[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 M of deviation evaluation items), the deviation degree evaluation program 114 advances the process 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, and allows for 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 is 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 discrepancy between a captured image and a 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 area 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, attitude 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, attitude 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 4 differences are areas for setting threshold values for the degree of deviation for the deviation evaluation items related to the structures 302 to 304, respectively.
[0101] A simulation image corresponding to the number specified in the simulation image ID field 901 is displayed in the simulation image display area 920. A provisional captured image of the inspection object captured by the imaging device 105 is displayed in the captured image display area 921. In this embodiment, the inspection object captured by the imaging device 105 is displayed in real time (as a moving image). A 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 are 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, the deviation adjustment information 914 is obtained by changing to the captured image 306, and it can be confirmed that the quality of the captured image has improved. Note that the deviation adjustment information 914 describes information corresponding to the deviation adjustment flag included in the deviation degree information. However, for example, in the case of a structural difference that does not cause a problem even if the threshold value is reset to a larger value, the threshold value in the parameter setting field 905 may be reset to a larger value, and in this way, the corresponding deviation adjustment information can be deleted from the deviation adjustment information 914.
[0104] Moreover, 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 the user to visually check the simulation image and the captured image. In addition, 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 the user to efficiently collect high-quality captured images.
[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 a 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 when 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 similar to 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). According to the processing of loop 4, captured images corresponding to the simulation images of each variation can be collected.
[0111] In step S1001, the deviation 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 evaluation program 114 evaluates the degree of deviation between the provisional captured image and each simulation image, and extracts a 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 that the inspection target is to be changed is recorded in the deviation degree information.
[0112] In step S1002, in addition to the process of step S211, the GUI execution program 115 displays a more similar simulation image in the simulation image replacement candidate area 922 of the GUI screen 900. When the simulation image replacement button 902 is pressed on the GUI screen 900, the deviation 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 that the inspection target is to be changed on the GUI screen 900. In this case, the user may select a new inspection target from a plurality of inspection targets prepared in advance and image the new inspection target. Note that, if there are not enough inspection targets for the simulation image, the user may prepare a new inspection target by referring to the simulation image.
[0113] According to the learning data collection process of the second embodiment, since a simulation image more similar to the provisional captured image can be selected from the simulation image set, learning data can be collected more efficiently. Also, since there is an instruction to change the inspection target, the validity of multiple inspection targets prepared in advance can be efficiently confirmed based on the simulation image.
[0114] The present invention is not limited to the above-described embodiment, but includes various modified examples. For example, the above-described embodiment has been described in detail to clearly explain the present invention, and is not necessarily limited to those including all of the configurations described. In addition, it is possible to replace a part of the configuration of one embodiment with the configuration of another embodiment, and it is also possible to add the configuration of another embodiment to the configuration of one embodiment. In addition, it is possible to add, delete, or replace a part of the configuration of each embodiment with another configuration.
[0115] For example, in the above embodiment, when 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. For example, the captured image may be changed automatically without the user's intervention in accordance with an instruction to reduce the degree of deviation, for example, by automatically changing the position of the inspection target, etc., before capturing the image.
[0116] In the above embodiment, when learning data is collected, the degree of deviation between the simulation image and the captured image is evaluated and an instruction to reduce the degree of deviation is output, but for example, the degree of deviation between the captured image when inspecting the inspection object and an image of a good product (for example, a simulation image of a good product) may be evaluated and an instruction to reduce the degree of deviation may be output. In this way, it is possible to improve the usability of the inspector during the inspection and to automatically adjust the captured image by issuing an instruction to reduce the degree of deviation.
[0117] In the above-described embodiments, a part or all of the processing performed by the processor may be performed by a hardware circuit. The programs 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). [Explanation of symbols]
[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 learning image group for an inspection engine that inspects an inspection object, comprising: A processor is included. The processor, generating a first set of simulation images corresponding to a plurality of variations of the object of inspection; Identifying 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 the evaluation image group by training the inspection engine; receiving a group of captured images of the inspection object to be associated with each image in the second simulation image group; The captured images are registered as a learning image group for the inspection engine. A learning image collection system.
2. 2. The learning image collection system according to claim 1, The processor, Each image in the second simulation image group is displayed next to a candidate image accepted as a candidate for the captured image of the inspection target to be associated with the image. A learning image collection system.
3. 2. The learning image collection system according to claim 1, The processor, Calculating a degree of deviation for a predetermined evaluation item between an image of the second simulation image group and a candidate image accepted as a candidate for a captured image of an inspection target to be associated with the image; The candidate image having the degree of deviation equal to or less than a predetermined threshold is registered as an image in the learning image group. A learning image collection system.
4. 4. The learning image collection system according to claim 3, The processor, When the calculated degree of deviation is not equal to or less than the threshold value, an instruction to correct the captured image in order to reduce the degree of deviation is displayed. A learning image collection system.
5. 5. The learning image collection system according to claim 4, The processor, Calculating a degree of deviation between the image in the second simulation image group and the candidate image for each of a plurality of evaluation items; When there are a plurality of evaluation items for which the calculated degree of deviation is not equal to or less than the threshold value, a correction instruction for the captured image to reduce the degree of deviation for the plurality of evaluation items is displayed. A learning image collection system.
6. 6. The learning image collection system according to claim 5, The processor, The candidate image is separated into a plurality of segmentation images by a semantic segmentation process, and a degree of deviation between the image of the second simulation image group and the candidate image is calculated for an evaluation item that is a region corresponding to the segmentation image. A learning image collection system.
7. 2. The learning image collection system according to claim 1, The processor, The second simulation image group is identified 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. A learning image collection system.
8. 2. The learning image collection system according to claim 1, The processor, A plurality of simulation images are generated for at least one variation of the inspection target, and one simulation image selected by a user from the plurality of simulation images for one variation is taken as the first simulation image group as a simulation image for the variation. A learning image collection system.
9. 2. The learning image collection system according to claim 1, The processor, The variation of the inspection object is estimated based on a captured image of the inspection object. A learning image collection system.
10. 2. The learning image collection system according to claim 1, The processor, A group of simulation images corresponding to a plurality of variations of the inspection object is generated, and the group of simulation images is converted to be similar to the captured image based on a feature amount of the group of simulation images and a feature amount of the captured image of the inspection object, and the converted image group is defined as the first simulation image group. A learning image collection system.
11. 2. The learning image collection system according to claim 1, The processor, The first simulation image group is clustered based on the feature amount of the first simulation image, and images to be deleted from the first simulation image group are determined based on the size of the cluster and the number of images belonging to the cluster. A learning image collection system.
12. 4. The learning image collection system according to claim 3, The processor, When the calculated deviation degree is not equal to or less than the threshold value, selecting a simulation image similar to the candidate image from the second simulation image group, calculating a degree of deviation between the candidate image and the selected simulation image for a predetermined evaluation item, and registering the candidate image whose degree of deviation is equal to or smaller than a predetermined threshold value as an image of the learning image group, or An instruction is given to change the inspection target used for capturing the candidate image to another inspection target. A learning image collection system.
13. A learning image collection method by a learning image collection system that collects a learning image group for an inspection engine that inspects an inspection object, comprising: The learning image collection system includes: generating a first set of simulation images corresponding to a plurality of variations of the object of inspection; Identifying 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 the evaluation image group by training the inspection engine; receiving a group of captured images of the inspection object to be associated with each image in the second simulation image group; The captured images are registered as a learning image group for the inspection engine. How to collect images for training.
14. The learning image collection method according to claim 13, The learning image collection system includes: Each image in the second simulation image group is displayed next to a candidate image accepted as a candidate for the captured image of the inspection target to be associated with the image. How to collect images for training.
15. A learning image collecting program that causes a computer to execute the learning image collecting 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
