Inspection system, inspection method, and inspection program
The inspection system addresses the high workload issue by generating mask images and using CAD data superimposition to reduce the number of images requiring visual inspection, enhancing efficiency in distinguishing defects.
Patent Information
- Application Number
- JP2021010592
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-01-26
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2041-01-26
AI Technical Summary
Existing inspection systems detect manufacturing variations within non-defective products as defect candidates, leading to a high workload for inspectors due to the need for visual inspection of excessive defect candidates.
An inspection system that generates mask images from non-defective regions and uses image reproduction units to determine defects based on CAD data superimposition, reducing the number of images requiring visual inspection.
Reduces the workload of inspectors by accurately distinguishing between defective and non-defective products, minimizing the need for visual inspection of non-defective images.
Smart Images

Figure 0007563665000001 
Figure 0007563665000002 
Figure 0007563665000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an inspection system, an inspection method, and an inspection program. [Background technology]
[0002] 2. Description of the Related Art Conventionally, there has been known an inspection system that photographs an object to be inspected, such as a printed circuit board, and compares the photographed object with a reference image to determine whether the object is a pass or fail.
[0003] In this inspection system, for example, excessive defect candidates are detected so as not to classify defective products as good products, and the images of the detected defect candidates are finally visually inspected by an inspector, thereby preventing defects from being overlooked. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2013-098267 A [Patent Document 2] JP 2020-052474 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, in the case of the above-mentioned inspection system, manufacturing variations within the range of non-defective products are also detected as defect candidates, which results in a large number of images of defect candidates that inspectors must visually inspect, resulting in a high workload for the inspectors.
[0006] One aspect of the present invention aims to reduce the workload of an inspector in an inspection system. [Means for solving the problem]
[0007] According to one aspect, the inspection system comprises: A first mask image is generated by masking a portion of the first image that is determined not to contain a defect, among images of the object to be inspected. Overlay image with corresponding CAD data overlaid on the mask area an image reproducing unit that is trained to reproduce the first image before masking from the A second mask image generated by masking a part of the second image taken of a new inspection object Overlay image with corresponding CAD data overlaid on the mask area The image reproduction unit has a reproduced image reproduced by inputting the above-mentioned first image to the image reproduction unit, and a determination unit that determines whether or not the second image includes a defect based on the reproduced image and the second image. Effect of the Invention
[0008] The workload of inspectors in the inspection system can be reduced. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 illustrates an example of a system configuration of an inspection system in a learning phase. [Diagram 2] FIG. 2 illustrates an example of a hardware configuration of a learning device. [Diagram 3] FIG. 13 is a diagram showing a specific example of processing by a learning dataset generation unit of the learning device. [Figure 4] FIG. 11 is a first diagram showing a specific example of processing by a learning unit of the learning device. [Diagram 5] FIG. 2 is a diagram illustrating an example of a system configuration of an inspection system in an inspection phase. [Figure 6] FIG. 2 illustrates an example of a hardware configuration of an inference device. [Figure 7] FIG. 11 is a first diagram showing a specific example of processing by the inference unit of the inference device. [Figure 8] 1 is a first flowchart showing the flow of a learning process in the inspection system. [Figure 9] 1 is a first flowchart showing the flow of an inspection process in the inspection system. [Figure 10] FIG. 2 is a second diagram showing a specific example of processing by the learning unit of the learning device. [Figure 11] FIG. 2 is a second diagram showing a specific example of processing by the inference unit of the inference device. [Figure 12] 11 is a second flowchart showing the flow of the learning process in the inspection system. [Figure 13] 11 is a second flowchart showing the flow of the inspection process in the inspection system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, each embodiment will be described with reference to the accompanying drawings. In this specification and the drawings, components having substantially the same functional configurations are denoted by the same reference numerals, and redundant description will be omitted.
[0011] [First embodiment] <System configuration of the inspection system in the learning phase> First, a description will be given of the system configuration in the learning phase of the inspection system according to the first embodiment. Fig. 1 is a diagram showing an example of the system configuration of the inspection system in the learning phase.
[0012] As shown in FIG. 1, an inspection system 100 in a learning phase includes an automated optical inspection (AOI) device 110 and a learning device 120.
[0013] The AOI device 110 performs an automatic visual inspection of the printed circuit board 130. The AOI device 110 scans the printed circuit board 130 with a camera and detects defect candidates by inspecting various inspection items. The inspection items inspected by the AOI device 110 include, for example, circuit width, circuit spacing, missing pads / no pads, circuit shorts, etc.
[0014] Images 140 of each area including defect candidates detected by AOI device 110 are transmitted to learning device 120 and also to an inspection line. On the inspection line, an inspector 111 such as an inspector visually inspects images 140 of each area including defect candidates. Note that AOI device 110 is set so that images of each area including defect candidates are excessively detected so as not to classify defective products as non-defective products.
[0015] Inspector 111 visually inspects whether or not images 140 of each region contain defects, and ultimately judges whether printed circuit board 130 is a good product or a defective product. Specifically, if none of images 140 of each region containing defect candidates contain defects, printed circuit board 130 is judged to be a good product. On the other hand, if any of images 140 of each region containing defect candidates contains a defect, printed circuit board 130 is judged to be a defective product.
[0016] The inspector 111 notifies the learning device 120 of the results of the visual inspection (the result of judging whether or not the image 140 of each area contains a defect). In the example of Fig. 1, "visual inspection result: OK" indicates that it has been judged that the image of the area including the defect candidate does not contain a defect, and "visual inspection result: NG" indicates that it has been judged that the image of the area including the defect candidate contains a defect.
[0017] A learning program is installed in the learning device 120, and the learning device 120 functions as a learning dataset generation unit 121 and a learning unit 122 by executing the program.
[0018] The learning dataset generation unit 121 extracts images that are determined to contain no defects as a result of visual inspection by the inspector 111 from the images 140 of each area including defect candidates transmitted from the AOI device 110. Furthermore, the learning dataset generation unit 121 associates the extracted images of each area with the results of the visual inspection, and stores them in the learning dataset storage unit 123 as a learning dataset.
[0019] The learning unit 122 reads out an image of each region included in a learning dataset stored in the learning dataset storage unit 123. The learning unit 122 also generates a mask image by masking a part of the image of each region, and performs a learning process on a model so that the image before masking is reproduced from the generated mask image.
[0020] The model used for the learning process by the learning unit 122 is, for example, a model that complements white areas of an image. When an image with a part of the area that is white is input, this model complements the white area based on the surrounding area of the white area and reproduces the original image before it was whitened. Hereinafter, this model is referred to as the "image reproduction unit."
[0021] <Hardware configuration of the learning device> Next, the hardware configuration of the learning device 120 will be described. Fig. 2 is a diagram showing an example of the hardware configuration of the learning device. As shown in Fig. 2, the learning device 120 has a processor 201, a memory 202, an auxiliary storage device 203, an I / F (Interface) device 204, a communication device 205, and a drive device 206. The hardware components of the learning device 120 are connected to each other via a bus 207.
[0022] The processor 201 has various arithmetic devices such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), etc. The processor 201 reads various programs (for example, a learning program, etc.) onto the memory 202 and executes them.
[0023] The memory 202 has a main storage device such as a Read Only Memory (ROM) and a Random Access Memory (RAM). The processor 201 and the memory 202 form a so-called computer, and the processor 201 executes various programs read onto the memory 202, whereby the computer realizes, for example, each of the above functions (the learning dataset generation unit 121 and the learning unit 122).
[0024] The auxiliary storage device 203 stores various programs and various data used when the various programs are executed by the processor 201. For example, the learning dataset storage unit 123 is realized in the auxiliary storage device 203.
[0025] The I / F device 204 is a connection device that connects the learning device 120 to an operation device 210 and a display device 211, which are examples of external devices. The I / F device 204 accepts operations for the learning device 120 (for example, an operation of inputting the results of a visual inspection by an inspector 111, or an operation of an administrator (not shown) of the learning device 120 inputting instructions for a learning process, etc.) via the operation device 210. The I / F device 204 also outputs the results of the learning process by the learning device 120, and displays them to the administrator of the learning device 120 via the display device 211.
[0026] The communication apparatus 205 is a communication device for communicating with other apparatuses (in this embodiment, the AOI apparatus 110).
[0027] The drive device 206 is a device for setting the recording medium 212. The recording medium 212 here includes media that record information optically, electrically, or magnetically, such as a CD-ROM, a flexible disk, a magneto-optical disk, etc. The recording medium 212 may also include semiconductor memories that record information electrically, such as ROM, flash memory, etc.
[0028] The various programs to be installed in the auxiliary storage device 203 are installed, for example, by setting the distributed recording medium 212 in the drive device 206 and reading out the various programs recorded in the recording medium 212 by the drive device 206. Alternatively, the various programs to be installed in the auxiliary storage device 203 may be installed by being downloaded from a network via the communication device 205.
[0029] <Details of each part of the learning device> Next, each unit of the learning device 120 (here, the learning data set generation unit 121 and the learning unit 122) will be described in detail.
[0030] (1) Specific examples of processing by the learning dataset generation unit Fig. 3 is a diagram showing a specific example of processing by the learning data set generation unit of the learning device. As shown in Fig. 3, when images 301 to 306 of each area including defect candidates are transmitted from the AOI device 110, the learning data set generation unit 121 extracts images with "visual inspection result: OK".
[0031] 3 shows that, among images 301 to 306 of each region, images 301, 302, 304, and 305 are images with a "visual inspection result: NG." Therefore, the learning dataset generation unit 121 extracts images 303 and 306 of each region (images with a "visual inspection result: OK") to generate a learning dataset 310.
[0032] As shown in FIG. 3, the learning dataset 310 has the following items of information: "ID," "Image," and "Visual Inspection Results."
[0033] "ID" stores an identifier that identifies the image of each region. "Image" stores the image of each region. "Visual inspection result" stores the result of visual inspection of the image of each region. Note that only images with "visual inspection result: OK" are stored in the learning dataset 310, so "visual inspection result" stores only "OK."
[0034] In this way, the learning dataset generation unit 121 Images of each area including defect candidates detected by the AOI device 110, and - Images that are judged by Inspector 111 to contain no defects (images with "Visual Inspection Result: OK"); is used to generate a training dataset 310.
[0035] (2) Specific examples of processing by the learning unit 4 is a first diagram showing a specific example of processing by the learning unit of the learning device. As shown in FIG. 4, the learning unit 122 has a mask unit 410, an image reproduction unit 420, and a comparison / modification unit 430.
[0036] The mask unit 410 reads out an image (an example of a first image, for example, image 440) of each region stored in the "image" of the learning dataset 310 stored in the learning dataset storage unit 123. The mask unit 410 also generates a mask image (an example of a first mask image, for example, mask images 440_1 to 440_n) by masking a part of the read image 440. The mask unit 410 also inputs the generated mask images 440_1 to 440_n to the image reproduction unit 420. Note that the mask positions when the mask unit 410 masks the read image 440 are random, and for example, the mask unit 410 masks around 9 to 16 positions.
[0037] The image reproducing section 420 reproduces pre-masked images 441_1 to 441_n based on the masked images 440_1 to 440_n, and outputs the reproduced images to the comparing / changing section 430.
[0038] The comparison / modification section 430 compares the images 441_1 to 441_n reproduced by the image reproduction section 420 with the unmasked image 440 read out by the mask section 410, and updates the model parameters of the image reproduction section 420 so that the two match.
[0039] As a result, the image reproducing section 420 performs a learning process so that the unmasked image 440 is reproduced from the masked images 440_1 to 440_n generated by the masking section 410. In this way, by using the image reproducing section 420, the learning device 120 can perform a learning process without a teacher. Also, the learning process can be performed using only images of each area that do not contain defects (images with "visual inspection result: OK"). This can reduce the learning cost compared to the case where images of each area that contain various types of defects (images with "visual inspection result: NG") are collected and used for the learning process.
[0040] The trained image reproducing unit, which has undergone a training process so as to reproduce the unmasked image, is used in the inspection phase, which will be described later.
[0041] <System configuration of the inspection system in the inspection phase> Next, a description will be given of a system configuration in the inspection phase of the inspection system according to the first embodiment. Fig. 5 is a diagram showing an example of the system configuration of the inspection system in the inspection phase.
[0042] As shown in FIG. 5, an inspection system 500 in the inspection phase includes an AOI device 110 and an inference device 510.
[0043] Of these, the AOI device 110 is the same as the AOI device 110 of the inspection system 100 in the learning phase, and therefore a description thereof will be omitted here.
[0044] A check program is installed in the inference device 510, and the inference device 510 functions as an inference unit 511 and an output unit 512 by executing the program.
[0045] The inference unit 511 has a trained image reproducing unit generated in the learning phase. The inference unit 511 acquires an image 540 of each region transmitted from the AOI device 110 by performing an automatic visual inspection on a printed circuit board 530, which is an object to be inspected. The inference unit 511 also generates a masked image by masking a part of the acquired image 540 of each region, and then inputs the masked image to the trained image reproducing unit. The inference unit 511 also compares the image reproduced by the trained image reproducing unit with the image 540 before masking to determine whether or not the image 540 of each region includes a defect. Furthermore, the inference unit 511 notifies the output unit 512 of the determination result.
[0046] The output unit 512 outputs the judgment result notified by the inference unit 511 to the inspection line. On the inspection line, the inspector 111 visually inspects the image of each area including the defect candidate. However, during the inspection phase, the inspection line refers to the judgment result output by the output unit 512 and excludes images 540 of each area including the defect candidate that are judged by the inference device 510 to contain no defect. Then, on the inspection line, images 550 of each area including the defect candidate that are judged to contain a defect by the inference device 510 are assigned to visual inspection. That is, the output unit 512 outputs images 550 so that visual inspection is performed on the images 550 that are judged to contain a defect.
[0047] In this way, when the AOI device 110 performs an automatic visual inspection of the printed circuit board 530 and detects images of each area containing defect candidates, the images determined to contain defects by the inference device 510 are assigned to visual inspection on the inspection line. As a result, the inspection system 500 makes it possible to reduce the number of images assigned to visual inspection, thereby reducing the workload of the inspector 111 in visual inspection.
[0048] <Hardware configuration of the inference device> Next, a description will be given of the hardware configuration of inference device 510. Fig. 6 is a diagram showing an example of the hardware configuration of an inference device. As shown in Fig. 6, the hardware configuration of inference device 510 is generally the same as the hardware configuration of learning device 120, and therefore differences from the hardware configuration of learning device 120 will be mainly described here.
[0049] The processor 601 reads out various programs (e.g., an inspection program, etc.) onto the memory 602 and executes them. The processor 601 executes the various programs read out onto the memory 602, whereby the computer formed by the processor 601 and the memory 602 realizes, for example, the above-mentioned functions (the inference unit 511, the output unit 512).
[0050] <Details of each part of the inference device> Next, each unit of the inference device 510 (here, the inference unit 511) will be described in detail. Fig. 7 is a first diagram showing a specific example of processing by the inference unit of the inference device. As shown in Fig. 7, the inference unit 511 has a mask unit 710, a trained image reproducing unit 720, and a judgment unit 730.
[0051] The mask unit 710 acquires an image (an example of a second image, for example, image 741) of each area including a defect candidate transmitted from the AOI device 110, and generates a mask image (an example of a second mask image, for example, mask images 741_1 to 741_n) by masking a part of the acquired image. In addition, the mask unit 710 inputs the generated mask images 741_1 to 741_n to the trained image reproducing unit 720.
[0052] The trained image reproducing unit 720 is a trained model generated by performing a learning process on the image reproducing unit 420 in the learning phase. The trained image reproducing unit 720 reproduces an unmasked image (an example of a second reproduction image, for example, images 751_1 to 751_n) based on the masked images 741_1 to 741_n.
[0053] The determination unit 730 compares the images 751_1 to 751_n reproduced by the trained image reproduction unit 720 with the unmasked image 741 acquired by the mask unit 710, and determines whether or not a defect is included.
[0054] Specifically, the determination unit 730 first calculates a mean square error (MSE) of pixel values of each pixel between the reproduced image 751_1 and the unmasked image 741. Next, the determination unit 730 calculates a mean square error (MSE) of pixel values of each pixel between the reproduced image 751_2 and the unmasked image 741. Thereafter, the determination unit 730 similarly calculates the mean square error (MSE) of pixel values of each pixel between the reproduced image 751_3 and the unmasked image 741 to the mean square error (MSE) of pixel values of each pixel between the reproduced image 751_n and the unmasked image 741.
[0055] Next, the determination unit 730 determines whether or not each of the calculated MSEs is equal to or less than a predetermined threshold (Th). If it is determined that each of the calculated MSEs is equal to or less than the predetermined threshold, it determines that the image 741 does not contain a defect ("Determination result: OK"). On the other hand, if it is determined that any of the calculated MSEs exceeds the predetermined threshold, it determines that the image 741 contains a defect ("Determination result: NG").
[0056] In this way, the inference unit 511 compares the reproduced image with the unmasked image to determine whether or not a defect is included. This makes it possible to output a determination result that corresponds to manufacturing variations within the range of non-defective products, as compared to, for example, a case in which whether or not a defect is included is determined by comparing the unmasked image with a reference image.
[0057] In other words, inspection system 500 can appropriately exclude images that are likely to have a "visual inspection result: OK" (images with a "judgment result: OK") from allocation for visual inspection for images of each area that includes defect candidates detected to prevent defects from being overlooked. As a result, inspection system 500 can reduce the number of images allocated to visual inspection, thereby reducing the workload of inspectors.
[0058] <Learning process flow> Next, a description will be given of the flow of the learning process in the inspection system 100. Fig. 8 is a first flowchart showing the flow of the learning process in the inspection system.
[0059] In step S801, the learning data set generation unit 121 of the learning device 120 acquires, from the AOI device 110, images of each area including defect candidates.
[0060] In step S802, the learning data set generation unit 121 of the learning device 120 extracts images with "visual inspection result: OK" from the acquired images of each region, and generates a learning data set.
[0061] In step S803, the learning unit 122 of the learning device 120 generates a mask image by masking a portion of the image of each region included in the learning dataset, and performs a learning process on the image reproduction unit so that the unmasked image is reproduced from the generated mask image.
[0062] In step S804, the learning unit 122 of the learning device 120 determines whether or not to end the learning process. If it is determined in step S804 that the learning process is to be continued (No in step S804), the process returns to step S801.
[0063] On the other hand, if it is determined in step S804 that the learning process is to be ended (Yes in step S804), the process proceeds to step S805.
[0064] In step S805, the learning unit 122 of the learning device 120 outputs the learned image reproducing portion, and the learning process ends.
[0065] <Inspection process flow> Next, it will be described how the inspection process proceeds in the inspection system 500. Fig. 9 is a first flowchart showing the inspection process proceeds in the inspection system.
[0066] In step S901, the inference unit 511 of the inference device 510 acquires, from the AOI device 110, images of each area including a defect candidate.
[0067] In step S902, the inference unit 511 of the inference device 510 generates a mask image by masking a portion of the image of each acquired region, and inputs the generated mask image to the learned image reproduction unit to reproduce the image before masking.
[0068] In step S903, inference unit 511 of inference device 510 compares the reproduced image with the unmasked image and calculates the MSE to determine whether the unmasked image includes a defect.
[0069] Specifically, inference unit 511 of inference device 510 divides the acquired image into three vertically and three horizontally, for example, for a total of nine divisions. Next, inference unit 511 of inference device 510 performs a process of calculating the MSE for a mask image generated by masking any one of the divided regions nine times while sequentially changing the divided region to be masked. Then, if the MSE for any one of the mask images exceeds a threshold, inference unit 511 of inference device 510 determines that the acquired image includes a defect ("Determination result: NG").
[0070] In step S904, the output unit 512 of the inference device 510 notifies the judgment result. As a result, the images of each area including defect candidates detected by the AOI device 110 through the automatic visual inspection are classified into images judged to contain no defects (images with "judgment result: OK") and images judged to contain defects (images with "judgment result: NG"). As a result, it becomes possible to assign only the images judged to contain defects (images with "judgment result: NG") to visual inspection.
[0071] In step S905, inference unit 511 of inference device 510 determines whether or not to end the inspection process. If it is determined in step S905 that the inspection process is to be continued (No in step S905), the process returns to step S901.
[0072] On the other hand, if it is determined in step S905 that the inspection process is to be ended (Yes in step S905), the inspection process is ended.
[0073] <Summary> As is clear from the above description, the inspection system according to the first embodiment has A masked image is generated by masking a portion of an image that is determined not to contain a defect from among images of a printed circuit board.The image reproduction section is then trained to reproduce the unmasked image from the generated masked image. A masked image is generated by masking a part of an image of a new printed circuit board.The generated masked image is then input to the trained image reproduction unit to reproduce the image before masking, and the reproduced image is compared with the image before masking to determine whether the image before masking contains any defects.
[0074] In this way, by comparing the reproduced image with the unmasked image to determine whether or not a defect is present, it is possible to output a determination result that corresponds to manufacturing variations, etc. within the range of non-defective products.
[0075] That is, according to the first embodiment, for images of each area including defect candidates detected to prevent defects from being overlooked, images that are likely to have a "visual inspection result: OK" (images with a "judgment result: OK") can be appropriately excluded from allocation for visual inspection. As a result, according to the first embodiment, it is possible to reduce the number of images allocated to visual inspection, thereby reducing the workload of inspectors.
[0076] [Second embodiment] In the above first embodiment, a mask image generated by masking a part of the image of each region is input to the image reproduction unit. In contrast, in the second embodiment, a case is described in which CAD (Computer-aided design) data is superimposed on a mask image generated by masking a part of the image of each region and then input to the image reproduction unit. The second embodiment will be described below, focusing on the differences from the above first embodiment.
[0077] <Specific examples of processing by the learning unit> First, a specific example of the process by the learning unit 122 among the units of the learning device 120 according to the second embodiment will be described. Fig. 10 is a second diagram showing a specific example of the process by the learning unit of the learning device.
[0078] As shown in FIG. 10, in the second embodiment, it is assumed that a learning dataset 1010 is stored in the learning dataset storage unit 123 when the learning unit 122 performs processing.
[0079] The training data set 1010 includes, as an information item, "CAD data" in addition to the information items of the training data set 310. In the "CAD data", CAD data of an area corresponding to the image of each area stored in "image" is stored. The example of Fig. 10 shows that CAD data 1011 of an area corresponding to an image 1012 is stored.
[0080] As shown in FIG. 10, the learning unit 122 includes a mask unit 410, a superimposing unit 1020, an image reproducing unit 1030, and a comparing / changing unit 1040.
[0081] The mask unit 410 is similar to the mask unit 410 described in Figure 4, and the example in Figure 10 shows how the image 1012 stored in "Image" of the learning dataset 1010 is read out and a portion of it is masked to generate a mask image 1031.
[0082] The superimposing unit 1020 generates a superimposed image by superimposing a corresponding area of the CAD data on a masked area of the mask image generated by the masking unit 410. The example of Fig. 11 shows a state in which a corresponding area of the CAD data 1011 is superimposed on a masked area of the mask image 1141 to generate a superimposed image 1032.
[0083] The image reproducing unit 1030 reproduces the image before masking based on the superimposed image generated by the superimposing unit 1020, and outputs the image to the comparing / changing unit 1040. The example of FIG. 10 shows a state in which an image before masking 1033 is reproduced based on the superimposed image 1032 generated by the superimposing unit 1020, and output to the comparing / changing unit 1040.
[0084] The comparison / modification unit 1040 compares the image 1033 reproduced by the image reproduction unit 1030 with the unmasked image 1012 read by the mask unit 410, and updates the model parameters of the image reproduction unit 1030 so that the two match.
[0085] As a result, the image reproducing unit 1030 performs a learning process so as to reproduce the unmasked image 1012 from the superimposed image 1032 generated by the superimposing unit 1020. Note that the trained image reproducing unit that has undergone the learning process so as to reproduce the unmasked image is used in the inspection phase, which will be described later.
[0086] <Specific examples of processing by each part of the inference device> Next, a specific example of processing by the inference unit 511 of the inference device 510 will be described. Fig. 11 is a second diagram showing a specific example of processing by the inference unit of the inference device. As shown in Fig. 11, the inference unit 511 has a mask unit 710, a superimposition unit 1110, a trained image reproduction unit 1120, and a determination unit 1130.
[0087] The mask unit 710 is similar to the mask unit 710 in Fig. 7, and the example in Fig. 11 shows a state in which a masked image 1141 is generated by masking a part of an image 1101 transmitted from the AOI device 110. Note that the image 1101 is an image that includes defects such as a circuit short.
[0088] The superimposing unit 1110 generates a superimposed image by superimposing a corresponding area of the CAD data on a masked area of the mask image generated by the masking unit 710. The example of Fig. 11 shows a state in which a corresponding area of the CAD data 1102 is superimposed on a masked area of the mask image 1141 to generate a superimposed image 1142.
[0089] The trained image reproducing unit 1120 is a trained model generated by performing a learning process on the image reproducing unit 1030 in the learning phase. The trained image reproducing unit 1120 reproduces an unmasked image based on a superimposed image notified by the superimposing unit 1110. The example of FIG. 11 shows a state in which an unmasked image 1143 is reproduced based on a superimposed image 1142 notified by the superimposing unit 1110.
[0090] The determination unit 1130 compares the image 1143 reproduced by the trained image reproduction unit 1120 with the unmasked image 1101 acquired by the mask unit 710 to determine whether or not a defect is included. The example in Fig. 11 shows that, as a result of comparing the image 1143 reproduced by the trained image reproduction unit 1120 with the unmasked image 1101 acquired by the mask unit 710, the MSE exceeds a predetermined threshold, and it is determined that a defect is included ("Determination result: NG").
[0091] In this way, in the case of image 1101 including defects such as a circuit short, it is difficult to operate the mask image described in the first embodiment to reproduce an image of "visual inspection result: OK" because, in the case of defects such as a circuit short, the surrounding area of the masked area does not include information necessary to complement the masked area.
[0092] In response to this, as described above, by superimposing the corresponding area of the CAD data on the masked area, it is possible to operate the device to reproduce an image of "Visual inspection result: OK." As a result, the error between the reproduced image and the image before masking becomes large, making it possible to accurately determine whether defects such as circuit shorts are present.
[0093] <Learning process flow> Next, a flow of a learning process in the inspection system 100 according to the second embodiment will be described. Fig. 12 is a second flowchart showing the flow of the learning process in the inspection system. The difference from the first flowchart shown in Fig. 8 is steps S1201 to S1203.
[0094] In step S1201, the learning data set generation unit 121 of the learning device 120 acquires CAD data corresponding to the image of each region acquired in step S801.
[0095] In step S1202, the learning dataset generation unit 121 of the learning device 120 extracts images of "visual inspection result: OK" from the acquired images of each region. In addition, the learning dataset generation unit 121 of the learning device 120 generates a learning dataset by associating the extracted images of each region with the CAD data of the corresponding region.
[0096] In step S1203, the learning unit 122 of the learning device 120 generates a mask image by masking a portion of the image of each region included in the learning dataset, and then generates a superimposed image by superimposing the corresponding region of the CAD data.
[0097] Since steps S803 to S805 have already been described with reference to FIG. 8, the description thereof will be omitted here.
[0098] <Inspection process flow> Next, the flow of the inspection process in the inspection system 500 according to the second embodiment will be described. Fig. 13 is a second flowchart showing the flow of the inspection process in the inspection system. The difference from the first flowchart shown in Fig. 9 is steps S1301 to S1302.
[0099] In step S1301, inference unit 511 of inference device 510 obtains CAD data of areas corresponding to the images of each area obtained in step S901.
[0100] In step S1302, inference unit 511 of inference device 510 generates a mask image by masking a part of the image of each acquired region, and then superimposes the corresponding region of the CAD data to generate a superimposed image.
[0101] Since steps S902 to S905 have been described with reference to FIG. 9, the description thereof will be omitted here.
[0102] <Summary> As is clear from the above description, the inspection system according to the second embodiment has - A masked image is generated by masking parts of the images of the printed circuit board that are determined not to contain defects, and then the corresponding area of the CAD data is overlaid to generate a superimposed image. Furthermore, a learning process is performed on the image reproduction section so that the image before masking can be reproduced from the generated superimposed image. A masked image is generated by masking part of an image of a new printed circuit board, and then the corresponding area of the CAD data is overlaid to generate a superimposed image.The generated superimposed image is then input to a trained image reproduction unit to reproduce the image before masking, and the reproduced image is compared with the image before masking to determine whether the image before masking contains any defects.
[0103] In this way, by configuring the configuration to perform learning processing so that an image of "visual inspection result: OK" can be reproduced from the superimposed image, it becomes possible to accurately determine whether a defect such as a circuit short is present. As a result, according to the second embodiment, it is possible to avoid erroneous determination while enjoying the same effects as the first embodiment.
[0104] [Third embodiment] In the above first embodiment, the mask unit 410 has been described as generating a plurality of mask images (e.g., mask images 440_1 to 440_n) from one image (e.g., image 440) in the learning phase. However, the number of mask images generated from one image is not limited to a plurality, and for example, only one mask image may be generated from one image.
[0105] In the first embodiment, the specific number of times the learning process is performed by the learning unit 122 is not mentioned. However, for example, in the case of generating one mask image from one image, A learning dataset 310 of 10,000 images is prepared. Select 20 images from the list and mask each image with a random position and size. Using the 20 mask images, the process of updating the model parameters of the image reconstructing unit 420 is performed 500 times (=10,000 / 20). This process counts as one set, and is repeated about 10,000 times until the error converges.
[0106] This allows the inference unit 511 to output highly accurate determination results.
[0107] In the above second embodiment, the CAD data is superimposed on the mask image, but the data superimposed on the mask image is not limited to the CAD data. For example, in the inspection phase, the mask image may be configured to be superimposed on the mask image with a corresponding area of an image showing "visual inspection result: OK."
[0108] In addition, in the above first and second embodiments, the case where the inspection object is a printed circuit board has been described, but the inspection object is not limited to a printed circuit board.
[0109] In the above first and second embodiments, the image to be assigned to the visual inspection is determined based on the judgment result. However, the method of using the judgment result is not limited to this, and for example, the judgment result may be displayed to the inspector 111 to support the visual inspection.
[0110] Furthermore, in the first and second embodiments described above, learning device 120 and inference device 510 are configured as separate entities, but learning device 120 and inference device 510 may be configured as an integrated entity.
[0111] The present invention is not limited to the configurations shown in the above embodiments, combinations with other elements, etc. These points can be changed without departing from the spirit of the present invention, and can be appropriately determined according to the application form. [Explanation of symbols]
[0112] 100: Inspection system 110:AOI device 120: Learning device 121: Learning dataset generation unit 122: Learning Department 310: Training Data Set 410: Mask section 420: Image Reproduction Section 500: Inspection system 510: Reasoning device 511: Reasoning part 512: Output section 710: Mask section 720: Trained image reproduction unit 730: Judgment section
Claims
1. an image reproducing unit that is trained to reproduce the first image before masking from a superimposed image in which corresponding CAD data is superimposed on a mask area of a first mask image generated by masking a part of a first image determined not to include a defect among images obtained by photographing an object to be inspected; a determination unit that determines whether or not a defect is included in the second image based on a reproduced image reproduced by inputting a superimposed image obtained by superimposing corresponding CAD data onto a mask area of a second mask image generated by masking a part of a second image obtained by photographing a new inspection object into the image reproduction unit, and the second image; 1. An inspection system with
2. The determination unit is determining that the second image does not include a defect when a value calculated based on an error in pixel value of each pixel between the reproduction image and the second image is equal to or smaller than a predetermined threshold value; 2. The inspection system of claim 1, further comprising: a determining unit that determines that the second image contains a defect if a value calculated based on an error in pixel value of each pixel between the reproduction image and the second image exceeds a predetermined threshold value.
3. The inspection system of claim 2 , further comprising an output unit that outputs the second image so as to perform a visual inspection of the second image when the determination unit determines that the second image contains a defect.
4. The inspection system according to claim 1, further comprising a learning unit that performs a learning process on the image reproduction unit so that the first image before masking is reproduced from a superimposed image in which corresponding CAD data is superimposed on a mask area of a first mask image generated by masking a portion of a first image that is determined not to contain a defect among images of an object to be inspected.
5. a determination step of determining whether or not the second image includes a defect based on a reproduction image reproduced by inputting a superimposed image in which the corresponding CAD data is superimposed on a mask area of a second mask image generated by masking a part of a second image obtained by photographing a new object to an image reproduction unit that has been trained to reproduce a first image before masking from a superimposed image in which the corresponding CAD data is superimposed on a mask area of a first mask image generated by masking a part of a first image determined not to include a defect among images obtained by photographing an object to be inspected, and the second image; 1. Testing method with
6. a determination step of determining whether or not the second image includes a defect based on a reproduction image reproduced by inputting a superimposed image in which the corresponding CAD data is superimposed on a mask area of a second mask image generated by masking a part of a second image obtained by photographing a new object to an image reproduction unit that has been trained to reproduce a first image before masking from a superimposed image in which the corresponding CAD data is superimposed on a mask area of a first mask image generated by masking a part of a first image determined not to include a defect among images obtained by photographing an object to be inspected, and the second image; An inspection program that causes a computer to execute the above.
Citation Information
Patent Citations
Semiconductor pattern inspection device
JP2013098267A
Sorter building method, image classification method, sorter building device, and image classification device
JP2020052474A
Digital optical comparator
US20100225666A1
SYSTEM AND METHOD FOR USING IMAGES FROM A COMMODITY CAMERA FOR OBJECT SCANNING, REVERSE ENGINEERING, METROLOGY, ASSEMBLY, and ANALYSIS
US20200005448A1
Multi-perspective wafer analysis
US20200232934A1
