Determination method, determination program, determination device and visual inspection device

The described method enhances the accuracy of product classification by using a learning model to identify and suppress non-defective regions, improving the distinction between good and defective products in appearance inspection.

JP2024119201AInactive Publication Date: 2024-09-03OKI ELECTRIC INDUSTRY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023025933
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing appearance inspection apparatuses struggle to accurately distinguish between good and defective products, particularly when they resemble each other, leading to reduced determination accuracy.

Method used

A method involving image data acquisition, cut-out region identification, feature extraction using a learning model, evaluation value calculation, and secondary determination to suppress the influence of non-defective regions, enhancing the accuracy of product classification.

Benefits of technology

The method improves the accuracy of determining non-defective products by reducing the impact of non-defective areas, allowing for correct classification and reducing false judgments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024119201000001
    Figure 2024119201000001
Patent Text Reader

Abstract

To improve accuracy of determination in an object.SOLUTION: A visual inspection device 1 includes: an imaging part 7 which images a circuit board CB; an acquisition part 22 which acquires a determination source image IMbi taken by the imaging part 7; an inspection region cut-out part 24 which specifies an inspection region ARi where a defect occurs from the determination source image IMbi; a feature amount extraction part 28 which uses a learning model to which learning processing is performed by using a teacher data set including a feature amount to be extracted from a non-defective source image IMbr obtained by imaging the circuit board CB to extract a feature amount for determination of the inspection region ARi from the determination source image IMbi and extract a non-defective feature amount as a second feature amount of the inspection region ARi from the non-defective source image IMbr; an abnormality degree calculation part 26 which calculates the abnormality degree that indicates separation of the non-defective feature amount from the feature amount for determination; a re-determination part 27 which determines the determination source image IMbi from the abnormality degree; and a display part 5 which outputs a result of determination by the re-determination part 27.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a judgment method, a judgment program, a judgment device, and an appearance inspection device, and is suitably applied to, for example, an appearance inspection device that inspects the appearance of an industrial product. [Background technology]

[0002] Conventionally, a widely used appearance inspection device is installed in a factory that manufactures industrial products such as electronic circuit boards, captures an image of the manufactured industrial product (hereinafter also referred to as the object) to obtain image data, and performs a determination process based on the image data to determine whether the industrial product is normal (good) or abnormal (defective).

[0003] In this judgment process, for example, the obtained image data is subjected to image processing such as edge detection to emphasize its features, and then the presence or absence of defects such as the presence or absence of chip components on the circuit board or misalignment of their mounting position is judged based on the differences with image data of good products that have been subjected to similar image processing.

[0004] Also, as an appearance inspection device, a device has been proposed that aims to improve judgment accuracy by generating multiple filter image data using different colors such as red, green, and blue based on the obtained image data and using the one that satisfies conditions such as the highest contrast (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2012-007952 A Summary of the Invention [Problem to be solved by the invention]

[0006] However, in such an appearance inspection device, it is sometimes difficult to accurately determine that a non-defective product that closely resembles a defective product is a non-defective product, and the accuracy of object determination may decrease.

[0007] The present invention has been made in consideration of the above points, and aims to propose a judgment method, judgment program, judgment device, and appearance inspection device that can improve the accuracy of judgment on an object. [Means for solving the problem]

[0008] In order to solve this problem, the judgment method of the present invention includes an acquisition step of acquiring first image data in which an object is photographed, a cut-out area identification step of identifying an area in which a defect has occurred from the first image data, a feature extraction step of extracting a first feature of the area from the first image data and extracting a second feature of the area from the second image data using a learning model in which a learning process has been performed using a teacher dataset including features to be extracted from second image data in which the object is photographed, an evaluation value calculation step of calculating an evaluation value indicative of the separation between the second feature and the first feature, and a judgment step of judging the first image data from the evaluation value.

[0009] In addition, in the judgment program of the present invention, the information processing device is configured to execute an acquisition step of acquiring first image data in which an object is photographed, a cut-out area identification step of identifying an area in which a defect has occurred from the first image data, a feature extraction step of extracting a first feature of the area from the first image data and extracting a second feature of the area from the second image data using a learning model in which a learning process has been performed using a teacher dataset including features to be extracted from second image data in which the object is photographed, an evaluation value calculation step of calculating an evaluation value indicative of separation between the second feature and the first feature, and a judgment step of judging the first image data from the evaluation value.

[0010] Furthermore, the judgment device of the present invention is provided with an acquisition unit that acquires first image data in which an object is photographed, a cut-out area identification unit that identifies an area in which a defect has occurred from the first image data, a feature extraction unit that extracts a first feature of the area from the first image data and extracts a second feature of the area from the second image data using a learning model in which a learning process has been performed using a teacher dataset including features to be extracted from second image data in which the object is photographed, an evaluation value calculation unit that calculates an evaluation value indicative of separation between the second feature and the first feature, and a judgment unit that judges the first image data from the evaluation value.

[0011] Furthermore, the appearance inspection apparatus of the present invention is provided with an imaging unit that photographs an object, an acquisition unit that acquires first image data photographed by the imaging unit, a cut-out area identification unit that identifies an area where a defect has occurred from the first image data, a feature extraction unit that extracts a first feature of the area from the first image data and extracts a second feature of the area from the second image data using a learning model in which a learning process has been performed using a teacher dataset including features to be extracted from second image data in which the object has been photographed, an evaluation value calculation unit that calculates an evaluation value indicative of peeling between the second feature and the first feature, a judgment unit that judges the first image data from the evaluation value, and an output unit that outputs the result of the judgment made by the judgment unit.

[0012] Even if a good product is judged to be defective, the present invention can correctly determine that it is a good product by re-judging it while minimizing the influence on the judgment of areas other than the area where the defect occurred in the first image data and the second image data. Effect of the Invention

[0013] According to the present invention, even if a good product is judged to be defective, it can be correctly judged to be a good product by reducing the influence on the judgment of areas other than the area where the defect occurred in the first image data and the second image data and re-judging it, thereby realizing a judgment method, judgment program, judgment device, and appearance inspection device that can improve the accuracy of judging objects. [Brief description of the drawings]

[0014] [Figure 1] FIG. 2 is a block diagram showing a hardware configuration of the appearance inspection apparatus. [Diagram 2] FIG. 2 is a block diagram showing a functional configuration of the appearance inspection apparatus. [Diagram 3] 2 is a block diagram showing a primary judgment unit and a secondary judgment unit in the functional configuration of the appearance inspection apparatus; FIG. [Figure 4] 10A and 10B are diagrams for explaining the inspection area extraction process, in which (A) shows a case where the reason for the abnormality is an incorrect part, (B) shows a case where the reason for the abnormality is a positional deviation, and (C) shows a case where the reason for the abnormality is a loose lead. [Diagram 5] 13 is a flowchart showing a procedure of a secondary determination process. [Figure 6] 13 is a flowchart showing a procedure of an inspection area extraction process. [Figure 7] The following shows experiments with and without inspection area cutout processing: (A) is the case where a good-quality original image is used as the image from which good-quality features are extracted, (B) is the case where a judgment original image is used as the image from which judgment features are extracted, (C) is the case where a good-quality cutout image is used as the image from which good-quality features are extracted, and (D) is the case where a judgment cutout image is used as the image from which judgment features are extracted. [Figure 8] FIG. 13 is a graph showing a frequency distribution graph of the degree of abnormality depending on whether or not an inspection area cutout process is performed; [Figure 9] 13 is a table showing a defect detection rate of defective products depending on whether or not an inspection area cutout process is performed. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] Hereinafter, modes for carrying out the invention (hereinafter referred to as embodiments) will be described with reference to the drawings.

[0016] [1. Configuration of visual inspection equipment] The appearance inspection device 1 is installed in, for example, a manufacturing factory where electronic components are mounted on a circuit board, and performs a judgment process to judge whether the circuit board on which the electronic components are mounted is a pass / fail product as an inspection target. In this manufacturing factory, a mounting process is performed to mount surface mount components (so-called chip components) such as minute chip-shaped resistors and capacitors by performing a reflow process or the like on the circuit board. Hereinafter, the circuit board on which the electronic components are mounted is also referred to as the target.

[0017] As shown in FIG. 1, the visual inspection device 1 serving as a judgment device is configured as an information processing device centered around a control unit 2, to which a memory unit 3 and a communication unit 4 are connected, and which are further connected to a display unit 5, an operation unit 6, and an imaging unit 7.

[0018] The control unit 2 has a CPU (Central Processing Unit) 11 that performs various arithmetic processing, a ROM (Read Only Memory) 12 in which various information is stored in advance, and a RAM (Random Access Memory) 13 that temporarily stores various information, etc. The control unit 2 performs various processes by using the CPU 11 to execute various programs read from the ROM 12, the storage unit 3, etc. while using the RAM 13 as a work area.

[0019] The storage unit 3 is a non-volatile storage medium such as an SSD (Solid State Drive) or an HDD (Hard Disk Drive), and stores various programs, various information, etc. The communication unit 4 has an interface for a wired LAN (Local Area Network) conforming to a standard such as IEEE (Institute of Electrical and Electronics Engineers) 802.3 (IEEE802.3u / ab / an / ae). The communication unit 4 is connected to a network (not shown), and transmits and receives various information to and from other devices installed in the manufacturing plant and external server devices, etc., via the network.

[0020] The display unit 5 as an output unit is a display device such as a liquid crystal panel or an organic EL (Electro Luminescence) panel, and displays various information under the control of the control unit 2. The operation unit 6 is, for example, a touch sensor or a pressable operation button provided on the surface of the liquid crystal panel constituting the display unit 5, and receives operation instructions from a user who uses the appearance inspection apparatus 1.

[0021] The imaging unit 7 has, for example, a lens that collects light and an imaging element that converts light into an electrical signal. The imaging unit 7 is installed in a location where it can capture a good image of an object, for example, near a belt conveyor that conveys a circuit board (object) on which electronic components are mounted in a manufacturing factory. Under the control of the control unit 2, the imaging unit 7 captures a two-dimensional image including the object using light obtained from an imaging range centered on the optical axis of the lens, generates image data, and supplies the image data to the control unit 2. In response to this, the control unit 2 stores the supplied image data in the storage unit 3.

[0022] [2. Basic principles of judgment processing] Next, we will explain the basic principle of the judgment process for judging an object as normal (also called a non-defective product, first classification) or abnormal (also called a defective product, second classification) in the visual inspection device 1. On the circuit board on which the chip component is mounted, an ideal mounting location for the chip component is preset, and electrodes are provided according to the shape, etc., of the chip component.

[0023] The figures shown on the left side of each of Figures 4(A) and 4(B) show original images IMbi1 and IMbi2, which include a chip IC component MP, which is an SOP (Small Outline Package) component, and the circuit board CB surrounding the chip IC component MP, which is a partial area of ​​image data obtained by imaging the circuit board CB using the imaging unit 7 (Figure 1).

[0024] The diagram shown on the left side of Fig. 4(C) shows a determination source image IMbi3 including a chip IC component MP, which is an MTR (Mini Transistor) component, and the circuit board CB around the chip IC component MP, which is a partial area of ​​image data obtained by imaging the circuit board CB with the imaging unit 7 (Fig. 1). Hereinafter, the determination source images IMbi1, IMbi2, and IMbi3 are also collectively referred to as determination source images IMbi.

[0025] The chip IC component MP is composed of a body BD that is rectangular in plan view, and leads LD that protrude outward from two opposing side surfaces of the body BD. When the chip IC component MP is properly mounted, solder (not shown) is attached to each lead LD of the chip IC component MP and each electrode pad of the circuit board CB. The solder is melted at a predetermined high temperature in, for example, a reflow process and then solidified, thereby physically fixing and electrically connecting the leads LD of the chip IC component MP to the electrode pads of the circuit board CB.

[0026] Among these, the original image IMbi1 (FIG. 4(A)) is an image capturing one type of defect called an “incorrect part.” In this original image IMbi1, the part number of the mounted chip IC part MP is different from the specified part number, and an incorrect part different from the specified part is mounted.

[0027] The original image IMbi2 (FIG. 4B) is an image capturing one type of defect called “misalignment.” In this original image IMbi2, the position, inclination, etc. of the chip IC component MP when viewed from a direction perpendicular to the surface of the circuit board CB is significantly displaced from the original mounting area.

[0028] The original image IMbi3 (FIG. 4(C)) is an image capturing one type of defect called “lead lift.” In this original image IMbi3, the leads LD of the mounted chip IC component MP are lifted from the surface of the circuit board CB and are not soldered properly.

[0029] Since such an original image IMbi for judgment contains not only the chip IC component MP but also the circuit board CB surrounding the chip IC component MP, there is a possibility that the visual inspection device 1 may judge a condition that should actually be normal as abnormal based on the judgment by the primary judgment unit 21 (Figure 3) (details will be described later).

[0030] In response to this, the secondary judgment unit 23 (FIG. 3) (details to be described later) performs a secondary judgment process on the judgment source image IMbi for which the judgment result by the primary judgment unit 21 is abnormal.

[0031] [3. Visual inspection processing] Next, the appearance inspection process in the appearance inspection device 1 will be described. In the appearance inspection process, the appearance inspection device 1 performs machine learning processing on feature quantities obtained from image data, with a learning process in the front stage and a judgment process in the rear stage. Furthermore, the control unit 2 of the appearance inspection device 1 forms multiple functional blocks therein when performing the learning process and the judgment process. Below, the configuration of the functional blocks, the learning process in the front stage, and the judgment process in the rear stage will each be described.

[0032] It is also assumed here that a circuit board CB (i.e., an object) on which electronic components are mounted in a manufacturing factory is imaged in advance by the imaging unit 7 (FIG. 1) of the visual inspection device 1, and the generated image data is stored in the storage unit 3. This image data includes learning image data (also referred to as learning data or second image data) used in the learning process, and judgment image data (also referred to as judgment data or first image data) used in the judgment process.

[0033] The learning image data is image data obtained from an object that is known to be a good product, and is also called teacher data. The judgment image data is image data obtained from an object that is to be inspected because electronic components have been mounted on a circuit board CB in a manufacturing factory but the presence or absence of defects has not been confirmed. Among these, the judgment image data is also provided with information that indicates a correspondence relationship with the object, such as a manufacturing number assigned to the circuit board CB or a manufacturing date and time.

[0034] [3-1. Functional block configuration] Next, the configuration of the functional blocks will be described. The control unit 2 (FIG. 1) of the visual inspection device 1 reads out and executes a learning processing program or a judgment processing program pre-stored in the storage unit 3, respectively, to form each of the functional blocks as shown in FIG. 2 and FIG. 3. Note that FIG. 3 shows the configuration of only the primary judgment unit 21 and the secondary judgment unit 23, and also shows data supplied from the primary judgment unit 21 to the secondary judgment unit 23 via the data storage unit 30, and the flow of data within the secondary judgment unit 23. Specifically, the control unit 2 forms the primary judgment unit 21, the acquisition unit 22, and the secondary judgment unit 23, and further forms an inspection area cutout unit 24, a feature amount processing unit 25, an abnormality degree calculation unit 26, and a re-judgment unit 27 within the secondary judgment unit 23, and further forms a feature amount extraction unit 28 within the feature amount processing unit 25.

[0035] The storage unit 3 also includes a data storage unit 30 in which image data and the like are stored, and a feature storage unit 31 in which feature values ​​(described in detail below) extracted from the image data are stored. The data storage unit 30 stores a plurality of image data (image data for determination) (also referred to as original images for determination) used in the determination process. The data storage unit 30 also stores a plurality of image data (image data for learning) (also referred to as original images for non-defective products) used in the learning process. The plurality of image data for learning are composed of data determined to be non-defective by the primary determination unit 21. The image data for determination and the image data for learning are prepared as separate data.

[0036] In the primary judgment process (first judgment step), the primary judgment unit 21 performs an appearance inspection of the circuit board CB by shape recognition, and stores the judgment result indicating whether it is a "good product" or a "defective product" in the data storage unit 30. This judgment result includes a good product original image IMbr, a judgment original image IMbi, component area information IFp, category information IFc, defective area information IFw, etc.

[0037] The non-defective original image IMbr represents learning image data of a circuit board CB that has been determined to be a non-defective product by the primary determination unit 21. The determination original image IMbi represents judgment image data of a circuit board CB that is to be inspected to determine whether or not there is a defect.

[0038] The component area information IFp indicates information about the component area of ​​each component, such as the size of each component mounted on the circuit board CB and coordinate values ​​indicating the position where the component is mounted on the circuit board CB. The category information IFc indicates information about the inspection items indicating which part of the component is to be inspected. The defective area information IFw indicates information about the defective area where the defect occurred, such as the reason why the primary judgment unit 21 judged the component to be abnormal, and the coordinate values ​​indicating the position where the abnormality occurred on the circuit board CB.

[0039] In the learning process, the acquisition unit 22 reads out a plurality of learning image data, which are a plurality of image data, from the data storage unit 30, and supplies the same to the inspection area cutout unit 24 of the secondary judgment unit 23. In the judgment process, the acquisition unit 22 reads out judgment image data, which is one image data, from the data storage unit 30, and supplies the same to the inspection area cutout unit 24 of the secondary judgment unit 23.

[0040] The inspection area cutout unit 24 acquires the component area information IFp, the defective area information IFw, and the category information IFc from the data storage unit 30, and determines the inspection area ARi based on them. A method for determining the inspection area ARi will be described later with reference to FIG. 4. The inspection area cutout unit 24 also cuts out an image of the coordinate values ​​of the inspection area ARi from the non-defective original image IMbr acquired from the data storage unit 30 to generate a non-defective cutout image IMtr, and supplies the non-defective cutout image IMtr to the feature extraction unit 28. At the same time, the inspection area cutout unit 24 cuts out an image of the coordinate values ​​of the inspection area ARi from the judgment original image IMbi, which is an image to be judged acquired from the data storage unit 30, to generate a judgment cutout image IMti, and supplies the judgment cutout image IMti to the feature extraction unit 28.

[0041] The feature amount processing unit 25 corresponds to a learning model (also called AI model) in machine learning processing (also simply called learning processing). The feature amount extraction unit 28 extracts features by having an AI model learn the good-quality cut-out image IMtr acquired from the inspection area cut-out unit 24 as an extraction process in the learning processing in the secondary judgment processing, and stores the features as good-quality features together with the trained AI model in the feature amount storage unit 31. Specifically, the feature amount extraction unit 28 is configured as, for example, a neural network, and uses a weight parameter learned using a public data set or the like. The feature amount extraction unit 28 can also appropriately hold machine learning parameters and the like by appropriately using the RAM 13 or the storage unit 3 (FIG. 1) as necessary. In addition, in these learning processes, a teacher data set in which image data and features are associated with each other is used.

[0042] Furthermore, in the secondary judgment process, the feature extraction unit 28 extracts features by training an AI model read from the feature storage unit 31 on the judgment cut-out image IMti acquired from the inspection area cut-out unit 24 as an extraction process, and supplies the features to the anomaly degree calculation unit 26 as judgment features.

[0043] In the secondary judgment process, the abnormality degree calculation unit 26 calculates an abnormality degree (hereinafter also referred to as an evaluation value) indicating the magnitude of the difference between the judgment feature quantity and the non-defective feature quantity based on the judgment feature quantity supplied from the feature quantity extraction unit 28, the non-defective feature quantity and the trained AI model read from the feature quantity storage unit 31, and the defective area information IFw read from the data storage unit 30, and supplies this to the re-judgment unit 27. Specifically, the abnormality degree calculation unit 26 calculates the distance (hereinafter also referred to as peeling) between the judgment feature quantity and the non-defective feature quantity in a multidimensional space by, for example, an arithmetic process using the Mahalanobis distance, and sets this as the abnormality degree. This abnormality degree is a parameter indicating the difference between the non-defective cut-out image IMtr and the judgment cut-out image IMti.

[0044] The re-determination unit 27 obtains the degree of abnormality from the degree of abnormality calculation unit 26, compares it with a determination threshold to determine whether the product is good or bad, and determines the determination result. In other words, the re-determination unit 27 classifies the degree of abnormality according to the result of the comparison with the determination threshold. For this reason, the determination process can also be called a classification process.

[0045] [3-2. Determining the inspection area and cropping the cropped image in the secondary judgment process] Here, the determination of the inspection area and the extraction of the extracted image will be described with reference to FIG.

[0046] [3-2-1. If the reason for the abnormality is an incorrect part] The left side of Fig. 4(A) is the original image IMbi1 of the chip IC part MP output by the primary judgment unit 21, in which the area within the frame shown by the dashed line indicates the part area ARp, and the area within the frame shown by the dashed line indicates the defective area ARw and the inspection area ARi. Note that in Fig. 4(A), the defective area ARw and the inspection area ARi are drawn to surround a slightly outer side than the outline of the body BD of the chip IC part MP, but in reality, the defective area ARw and the inspection area ARi surround the same range as the outline of the body BD of the chip IC part MP.

[0047] When the primary judgment unit 21 judges that the reason for the abnormality is an incorrect part, the defective area ARw becomes a part of the body BD of the chip IC part MP. When the reason for the abnormality indicated by the defective area information IFw is an incorrect part, the inspection area cutout unit 24 (FIG. 3) sets the part of the body BD of the chip IC part MP, which is the same area as the defective area ARw, as the inspection area ARi.

[0048] Specifically, the inspection area cutout unit 24 acquires, for example, defective area information IFw, which is information indicating the coordinate values ​​of the start point and end point of the rectangle of the defective area ARw, from the data storage unit 30. Next, the inspection area cutout unit 24 sets the same area as the defective area ARw as an inspection area ARi, and stores information indicating the inspection area ARi as the inspection area information.

[0049] Next, the inspection area cutout unit 24 cuts out the judgment cut-out image IMti1 shown on the right side of Fig. 4(A) from the inspection area ARi in the judgment source image IMbi1. Since the inspection area ARi is the same area as the defective area ARw, that is, the area of ​​the body BD portion of the chip IC part MP, the judgment cut-out image IMti1 is an image of the body BD portion of the chip IC part MP.

[0050] [3-2-2. If the abnormality is due to misalignment] The left side of Figure 4(B) is the original judgment image IMbi2 of the chip IC component MP output by the primary judgment unit 21, in which the area within the frame indicated by the dashed line indicates the component area ARp and the inspection area ARi, and the area within the frame indicated by the dotted line indicates the defective area ARw.

[0051] When the primary judgment unit 21 judges that the reason for the abnormality is misalignment, the defective area ARw becomes a part of the body BD of the chip IC component MP when the chip IC component MP is mounted in the original mounting area on the circuit board CB. When the reason for the abnormality indicated by the defective area information IFw is misalignment, the inspection area cutout unit 24 sets the same area as the component area ARp as the inspection area ARi.

[0052] Specifically, the inspection area cutout unit 24 acquires, for example, component area information IFp, which is information including the coordinate values ​​of the start point and end point of the rectangle of the component area ARp and the size of the chip IC component MP, from the data storage unit 30. Next, the inspection area cutout unit 24 sets an area identical to the component area ARp as an inspection area ARi, and stores the inspection area information indicating the inspection area ARi and information including the size of the chip IC component MP.

[0053] Next, the inspection area cutout unit 24 cuts out the judgment cutout image IMti2 shown on the right side of Fig. 4(B) from the inspection area ARi in the judgment source image IMbi2. Since the inspection area ARi is the same area as the component area ARp, the judgment cutout image IMti2 is an image that includes a part of the misaligned chip IC component MP.

[0054] [3-2-3. If the abnormality is due to lead floating] The left side of Figure 4(C) is the original judgment image IMbi3 of the chip IC component MP output by the primary judgment unit 21, in which the area within the frame indicated by the dashed line indicates the component area ARp, the area within the frame indicated by the dotted line indicates the defective area ARw, and the area within the frame indicated by the two-dot dashed line indicates the inspection area ARi.

[0055] If the primary judgment unit 21 judges that the reason for the abnormality is lead looseness, the defective area ARw is the lead LD portion of the chip IC component MP. In this case, the inspection area ARi is different from the same area as the defective area ARw or the same area as the component area ARp. Therefore, the secondary judgment unit 23 calculates the inspection area ARi from the judgment source image IMbi3.

[0056] Specifically, for example, a case will be described in which the chip IC part MP is mounted such that the leads LD are arranged on the upper and lower sides of the body BD in the figure, as in the determination source image IMbi3.

[0057] For example, when the lower lead LD in the drawing of the chip IC component MP is judged to be defective, as in the original image IMbi3, and the area surrounding the lead LD becomes a defective area ARw, the inspection area cut-out unit 24 compares the coordinates of the defective area ARw with the coordinates of the component area ARp, and determines whether the defective area ARw is located on the upper or lower side in the drawing of the component area ARp.

[0058] Next, the inspection area cutout unit 24 sets a straight line along the left-right direction through the center of the component area ARp in the vertical direction as a center line Lc. The inspection area cutout unit 24 also sets a straight line along the left-right direction through the end of the component area ARp on the side where the defective area ARw is located (i.e., the lower side) as a boundary line Lb.

[0059] Furthermore, the inspection area cutout unit 24 sets, as the inspection area ARi, the smallest rectangular area whose upper end in the vertical direction is aligned with the center line Lc and whose lower end is aligned with the boundary line Lb, and which includes the defective area ARw in the horizontal direction.

[0060] Next, the inspection area cutout unit 24 cuts out a judgment cutout image IMti3 shown on the right side of Fig. 4(C) from the inspection area ARi in the judgment source image IMbi3. Since the inspection area ARi is an area different from the defective area ARw and the component area ARp, the judgment cutout image IMti2 is an image including the leads LD and parts of the bodies BD that are judged to be defective.

[0061] [3-3. Secondary Judgment Processing] Next, a secondary judgment processing procedure RT1 in which the secondary judgment unit 23 re-judges a part judged to be defective by the primary judgment unit 21 will be described with reference to the flowchart shown in Fig. 5. When performing the secondary judgment processing, the control unit 2 reads out and executes a predetermined judgment processing program from the storage unit 3. At this time, the control unit 2 performs a predetermined initialization process and the like, forms each of the functional blocks shown in Fig. 2 and Fig. 3, and then starts the secondary judgment processing procedure RT1 shown in Fig. 5 and proceeds to step SP1.

[0062] In step SP1, the control unit 2 executes the inspection area cut-out processing procedure SRT1 shown in FIG. 6 to determine an inspection area ARi by the inspection area cut-out unit 24 based on the part area information IFp, the defective area information IFw, and the category information IFc, and generates a non-defective cut-out image IMtr and a judgment cut-out image IMti, and then proceeds to step SP2.

[0063] In step SP2 (feature extraction step), the control unit 2 acquires the good-quality cut-out image IMtr from the inspection area cut-out unit 24 using the feature extraction unit 28, performs a learning process, extracts features from the good-quality cut-out image IMtr, and stores the features as good-quality features together with the trained AI model in the feature storage unit 31, and then proceeds to step SP3.

[0064] In step SP3 (feature extraction step and evaluation value calculation step), the control unit 2 acquires the judgment cut-out image IMti from the inspection area cut-out unit 24 using the feature extraction unit 28, extracts features from the judgment cut-out image IMti, and supplies the features as judgment features to the abnormality degree calculation unit 26. The control unit 2 also acquires the non-defective product features and the trained AI model from the feature storage unit 31 using the abnormality degree calculation unit 26, calculates the abnormality degree using the judgment features, the non-defective product features, the trained AI model, and the defective area information IFw, and proceeds to step SP4.

[0065] In step SP4 (judgment step and display step), the control unit 2 acquires the degree of abnormality from the abnormality degree calculation unit 26 using the re-judgment unit 27, judges whether the product is good or bad by comparing the degree of abnormality with a predetermined judgment threshold value, determines the judgment result, displays a judgment result display screen showing the obtained judgment result on the display unit 5 (Figure 1), and then proceeds to step SP5, ending the secondary judgment processing procedure RT1.

[0066] [3-4. Inspection area extraction process] Next, a specific procedure of the inspection area cutout process by the secondary judgment unit 23 will be described in detail with reference to the flowchart shown in Fig. 6. The control unit 2 starts an inspection area cutout process procedure SRT1 shown in Fig. 6 in step SP1 of the secondary judgment process procedure RT1 (Fig. 5), and proceeds to step SP11.

[0067] In step SP11 (acquisition step), the control unit 2 acquires the original image IMbi and category information IFc from the primary judgment unit 21 by the inspection area cutout unit 24, and judges whether or not it is necessary to calculate the inspection area ARi using the category information IFc. If a positive result is obtained in step SP11, this indicates that it is necessary to calculate the inspection area ARi, and in this case, the control unit 2 proceeds to step SP12. Here, whether or not it is necessary to calculate the inspection area ARi will be described with reference to FIG. 4.

[0068] As in the original image IMbi1 (Figure 4(A)), when the reason for the abnormality is an incorrect part, the inspection area ARi is the area of ​​the body BD portion of the chip IC part MP, which is the same area as the defective area ARw, so the inspection area cut-out unit 24 determines that there is no need to calculate the inspection area ARi for the original image IMbi1 for which the reason for the abnormality is an incorrect part.

[0069] Furthermore, when the reason for the abnormality is a positional deviation, as in the case of the original image IMbi2 (Figure 4(B)), the inspection area ARi is the same area as the component area ARp, so the inspection area cutout unit 24 determines that there is no need to calculate the inspection area ARi for the original image IMbi2 in which the reason for the abnormality is a positional deviation.

[0070] On the other hand, when the reason for the abnormality is lead looseness, as in the case of the original image IMbi3 (Figure 4(C)), the inspection area ARi is different from the same area as the defective area ARw or the same area as the component area ARp, so the inspection area cut-out unit 24 determines that it is necessary to calculate the inspection area ARi for the original image IMbi3 where the reason for the abnormality is a defect related to a very small part of the chip IC component MP, such as lead looseness.

[0071] In step SP12 (cut-out area identification step), the control unit 2 acquires the part area information IFp and the defective area information IFw from the data storage unit 30 via the inspection area cut-out unit 24, and calculates and determines the inspection area ARi using the part area information IFp and the defective area information IFw as described above.

[0072] On the other hand, if a negative result is obtained in step SP11, this indicates that it is not necessary to calculate the inspection area ARi, and in this case the control unit 2 proceeds to step SP13. In step SP13 (cut-out area specifying step), the control unit 2 causes the inspection area cut-out unit 24 to acquire the component area information IFp and the defective area information IFw from the data storage unit 30, and determines the inspection area ARi as described above using the component area information IFp and the defective area information IFw.

[0073] In step SP14 (cut-out image generation step), the control unit 2 causes the inspection area cut-out unit 24 to cut out images of the coordinate values ​​of the inspection area ARi from the multiple good-quality original images IMbr acquired from the data storage unit 30 based on the inspection area ARi determined in step SP12 or SP13, thereby generating multiple good-quality cut-out images IMtr, and supplies the multiple good-quality cut-out images IMtr to the feature extraction unit 28.

[0074] At the same time, the control unit 2 causes the inspection area cutout unit 24 to cut out an image of the coordinate values ​​of the inspection area ARi from the original judgment image IMbi acquired from the data storage unit 30 to generate a judgment cut-out image IMti, and supplies the judgment cut-out image IMti to the feature extraction unit 28. Next, the control unit 2 proceeds to step SP15, ends the inspection area cut-out processing procedure SRT1, and proceeds to step SP2 in the secondary judgment processing procedure RT1 (FIG. 5).

[0075] In this way, the secondary judgment unit 23 identifies the inspection area ARi based on the part area information IFp, defective area information IFw, and category information IFc obtained from the data storage unit 30, and cuts out images of the coordinate values ​​of the inspection area ARi from the good original image IMbr and the judgment original image IMbi to generate a good cut-out image IMtr and a judgment cut-out image IMti.

[0076] [4. Effects, etc.] In the above configuration, the appearance inspection device 1 is configured to perform a secondary judgment process by the secondary judgment unit 23 on judgment image data that has been judged to be defective by the primary judgment unit 21. Specifically, when the circuit board CB is judged to be defective in the appearance inspection by the primary judgment unit 21, the secondary judgment unit 23 acquires the judgment source image IMbi, component area information IFp, defective area information IFw, and category information IFc from the data storage unit 30.

[0077] Next, the secondary judgment unit 23 specifies the inspection area ARi in the judgment original image IMbi based on the component area information IFp and the defective area information IFw by the inspection area cutout unit 24. The secondary judgment unit 23 also cuts out an image of the inspection area ARi from the judgment original image IMbi as a judgment cut-out image IMti by the inspection area cutout unit 24. At the same time, the secondary judgment unit 23 cuts out an image at the same coordinates as the inspection area ARi from the non-defective original image IMbr as a non-defective cut-out image IMtr by the inspection area cutout unit 24.

[0078] Next, the secondary judgment unit 23 extracts non-defective feature amounts (also referred to as second feature amounts) from the plurality of non-defective cut-out images IMtr by the feature amount extraction unit 28. The secondary judgment unit 23 also extracts judgment feature amounts (also referred to as first feature amounts) from the judgment cut-out images IMti by the feature amount extraction unit 28.

[0079] Next, the secondary judgment unit 23 calculates the degree of abnormality using the judgment feature amount, the good-quality feature amount, and the defective area information IFw by the abnormality degree calculation unit 26. Finally, the secondary judgment unit 23 compares the degree of abnormality with a judgment threshold value by the re-judgment unit 27 to judge whether the product is good or defective.

[0080] In this way, the appearance inspection apparatus 1 does not extract features from the good-quality original images IMbr in advance, but determines the inspection area ARi in accordance with the defective area ARw, which is a defective area that has occurred on the circuit board CB, extracts good-quality features of the good-quality cut-out images IMtr, which are areas with the same coordinate values ​​as the inspection area ARi, from multiple good-quality original images IMbr, and extracts judgment features of the judgment cut-out images IMti, and calculates the degree of abnormality based on the good-quality features and the judgment features.

[0081] Therefore, the appearance inspection device 1 can suppress the influence of individual differences in the background regions other than the component region ARp in the good original image IMbr and the judgment original image IMbi. As a result, the appearance inspection device 1 can correctly judge even a good product that resembles a defective product as a good product by performing secondary judgment processing by the secondary judgment unit 23 on the judgment use image data judged as a defective product by the primary judgment unit 21, thereby improving the normal judgment rate and improving the accuracy of pass / fail judgment.

[0082] Here, we will introduce an experimental example with and without the inspection area cutout process by the secondary judgment unit 23. In this experimental example, multiple image data whose visual evaluation (i.e., "good" or "defective") was known in advance were prepared. In addition, in this experimental example, feature amounts were extracted from each image data to calculate the degree of abnormality, and further statistical processing was performed.

[0083] Fig. 7(A) shows an example in which a non-defective original image IMbr101 is used as the image from which a non-defective feature is extracted, unlike the present embodiment. Fig. 7(B) shows an example in which a judgment source image IMbi101 is used as the image from which a judgment feature is extracted, unlike the present embodiment. In this way, unlike the present embodiment, the case in which the non-defective original image IMbr101 is used as the image from which a non-defective feature is extracted and the judgment source image IMbi101 is used as the image from which a judgment feature is extracted without applying the secondary judgment unit 23 is also referred to as a case in which the secondary judgment unit is not applied.

[0084] Fig. 8(A) is a graph showing the frequency distribution of the degree of abnormality obtained from each image data when the secondary judgment unit is not applied, with the horizontal axis showing the degree of abnormality and the vertical axis showing the frequency (number of data).In Fig. 8(A), the patterns in the bar graph are different for cases where the visual evaluation is "good" (shown as "OK" in the figure) and cases where the visual evaluation is "bad" (shown as "NG" in the figure).

[0085] 8(A), in the area where the degree of abnormality is around 0.5, the degree of abnormality obtained from image data that was visually evaluated as "OK" (hereinafter referred to as "OK abnormality") is mixed with the degree of abnormality obtained from image data that was visually evaluated as "NG" (hereinafter referred to as "NG abnormality") This means that it is difficult to set an appropriate threshold value that can easily separate the OK abnormality degree from the NG abnormality degree, and erroneous judgment may occur if the threshold value cannot be set appropriately.

[0086] Here, in this experimental example, the judgment threshold Th was set to 0.475. As a result, as shown in FIG. 9, the rate at which the OK abnormality degree was equal to or less than the judgment threshold Th, i.e., the rate at which normal objects were judged to be normal (hereinafter referred to as the normal judgment rate), was 59.6[%]. This means that in the case where the secondary judgment unit is not applied, the remaining 40.4[%] is judged to be "abnormal" even though it is actually "normal", that is, erroneous judgment occurs. In other words, in the case where the secondary judgment unit is not applied, it is not necessarily easy to set an appropriate judgment threshold Th that can suppress erroneous judgment.

[0087] On the other hand, Figures 7(C) and 7(D), which correspond to Figures 7(A) and 7(B), show an example in which the secondary judgment unit 23 is applied to the same chip IC part MP as Figures 7(A) and 7(B) in the same manner as in this embodiment, and a non-defective cut-out image IMtr101 is used as an image from which a non-defective feature is extracted, and a judgment cut-out image IMti101 is used as an image from which a judgment feature is extracted. Figure 7(C) shows a non-defective cut-out image IMtr101 cut out from the non-defective original image IMbr101 of Figure 7(A). Figure 7(D) shows a judgment cut-out image IMti101 cut out from the judgment original image IMbi101 of Figure 7(B).

[0088] Fig. 8(B) is a graph showing the frequency distribution of the abnormality degree obtained from each image data in the secondary judgment unit application. In Fig. 8(B), the OK abnormality degree is distributed in a range of 0.45 or less, while the NG abnormality degree is distributed in a range of 0.5 or more, and the distributions of the two are relatively far apart compared to Fig. 8(A). This means that it is relatively easy to appropriately set a judgment threshold Th that can easily separate the OK abnormality degree from the NG abnormality degree, and that by appropriately setting the judgment threshold Th, erroneous judgment can be easily prevented.

[0089] In this case of secondary judgment unit adaptation, the judgment threshold Th was also set to 0.475. As a result, the normal judgment rate was 100[%], as shown in Figure 9. This means that in the case of secondary judgment unit adaptation, misjudgments do not occur simply by setting the judgment threshold Th between the distribution range of the OK anomaly degree and the distribution range of the NG anomaly degree.

[0090] In this manner, in this embodiment, by specifying the inspection area ARi in the secondary determination section 23, it becomes extremely easy to set an appropriate threshold value that can suppress erroneous determination.

[0091] Here, the larger the judgment threshold Th is, the more the OK abnormality degrees will be smaller than the judgment threshold Th, and the higher the normal judgment rate will be. However, in that case, some NG abnormality degrees will also be smaller than the judgment threshold Th, and the possibility of a defective product being judged as a good product will increase. For this reason, the visual inspection device 1 performs secondary judgment processing in the secondary judgment unit 23, thereby largely separating the distribution range of the OK abnormality degrees from the distribution range of the NG abnormality degrees, and can set an optimal judgment threshold Th between the distribution range of the OK abnormality degrees and the distribution range of the NG abnormality degrees. This allows the visual inspection device 1 to prevent a defective product from being judged as a good product.

[0092] According to the above configuration, the appearance inspection device 1 is provided with an imaging unit 7 that captures an image of the circuit board CB as an object, an acquisition unit 22 that acquires a judgment original image IMbi as the first image data captured by the imaging unit 7, an inspection area cut-out unit 24 that identifies an inspection area ARi as an area where a defect has occurred from the judgment original image IMbi, a feature extraction unit 28 that extracts judgment features as first features of the inspection area ARi from the judgment original image IMbi and extracts good product features as second features of the inspection area ARi from the good product original image IMbr using a learning model in which learning processing has been performed using a teacher dataset including features to be extracted from a good product original image IMbr as the second image data of the image of the circuit board CB, an abnormality calculation unit 26 that calculates an abnormality degree as an evaluation value indicative of peeling between the good product features and the judgment features, a re-judgment unit 27 that judges the judgment original image IMbi from the abnormality degree, and a display unit 5 that outputs the result of the judgment made by the re-judgment unit 27.

[0093] As a result, even if the appearance inspection device 1 judges a good product to be defective, it can correctly judge that it is a good product by re-judging it while suppressing the influence on the judgment of areas other than the inspection area ARi in the judgment original image IMbi and the good product original image IMbr.

[0094] 5. Other embodiments In the above-described embodiment, the case has been described in which the primary judgment unit 21 and the secondary judgment unit 23 are configured as functions of the appearance inspection device 1. The present invention is not limited to this, and the primary judgment unit 21 may be configured as a function of a device external to the appearance inspection device 1, and only the secondary judgment unit 23 may be configured as a function of the appearance inspection device 1. In the above-described embodiment, the case has been described in which the primary judgment unit 21 and the secondary judgment unit 23 are configured separately. The present invention is not limited to this, and the primary judgment unit 21 and the secondary judgment unit 23 may be configured as functions of a single judgment unit.

[0095] Furthermore, in the above-described embodiment, the visual inspection device 1 has been described as configuring the multiple pieces of learning image data used in the learning process stored in the data storage unit 30 from data of non-defective products. However, the present invention is not limited to this, and the visual inspection device 1 may also configure the multiple pieces of learning image data used in the learning process stored in the data storage unit 30 to include data of defective products.

[0096] Furthermore, in the above-described embodiment, an embodiment has been described in which the imaging unit 7 (FIG. 1) is provided in the visual inspection device 1, and image data captured by the imaging unit 7 is stored in the data storage unit 30. The present invention is not limited to this, and image data may be acquired from another device connected via the communication unit 4, for example, and stored in the data storage unit 30. In this case, the other device may be, for example, a network camera having an imaging function similar to that of the imaging unit 7 and a communication function similar to that of the communication unit 4.

[0097] Furthermore, in the above-described embodiment, a configuration has been described in which the control unit 2 executes a program such as a judgment processing program, and each of the functional blocks shown in Figures 2 and 3 is configured by software. However, the present invention is not limited to this, and for example, at least a part of each of the functional blocks shown in Figures 2 and 3 may be configured by hardware.

[0098] Furthermore, in the above-described embodiment, the appearance inspection device 1 has been described as having each program, such as the judgment processing program, pre-stored in the storage unit 3. The present invention is not limited to this, and for example, each program may be stored in a predetermined server device (not shown), and the appearance inspection device 1 may download the program from the server device via a predetermined network (not shown) using the communication unit 4 (FIG. 1) and execute the program.

[0099] Furthermore, in the above-mentioned embodiment, the present invention has been described as being applied to the appearance inspection device 1 that judges whether or not the chip IC component MP is normally mounted on the circuit board CB. However, the present invention is not limited to this, and the present invention may be applied to devices that judge the appearance state of various other objects.

[0100] Furthermore, the present invention is not limited to the above-mentioned embodiment and other embodiments. That is, the scope of application of the present invention extends to an embodiment in which the above-mentioned embodiment and the other embodiments are combined in part or in whole in any manner. The scope of application of the present invention also extends to an embodiment in which a part of the configuration described in any of the above-mentioned embodiment and other embodiments is extracted and replaced or diverted with a part of the configuration of any of the above-mentioned embodiment and other embodiments, or an embodiment in which a part of the extracted configuration is added to any of the embodiments.

[0101] Furthermore, in the above-mentioned embodiment, a case has been described in which the appearance inspection device 1 is configured as an appearance inspection device by the imaging unit 7 as an imaging unit, the acquisition unit 22 as an acquisition unit, the inspection area cutout unit 24 as a cutout area specifying unit, the feature amount extraction unit 28 as a feature amount extraction unit, the abnormality degree calculation unit 26 as an evaluation value calculation unit, the re-determination unit 27 as a determination unit, and the display unit 5 as an output unit. The present invention is not limited to this, and the appearance inspection device may be configured by the imaging unit, the acquisition unit, the cutout area specifying unit, the feature amount extraction unit, the evaluation value calculation unit, the determination unit, and the output unit having various other configurations. [Industrial Applicability]

[0102] The present invention can be used, for example, in an appearance inspection device installed in a factory where products are manufactured. [Explanation of symbols]

[0103] 1...appearance inspection device, 2...control unit, 3...memory unit, 4...communication unit, 5...display unit, 6...operation unit, 7...imaging unit, 21...primary judgment unit, 22...acquisition unit, 23...secondary judgment unit, 24...inspection area cut-out unit, 25...feature processing unit, 26...abnormality calculation unit, 27...re-judgment unit, 28...feature extraction unit, 30...data storage unit, 31...feature storage unit, IMbr...original image of good product, IMbi...original image for judgment, IMtr...cut-out image of good product, IMti...judgment cut-out image, IFp...component area information, IFc...category information, IFw...defective area information, CB...circuit board, MP...chip IC component, BD...body, LD...lead, ARi...inspection area, ARp...component area, ARw...defective area, Lc...center line, Lb...boundary line, Th...judgment threshold.

Claims

1. An acquisition step of acquiring first image data of an object; a cut-out area specifying step of specifying an area where a defect occurs from the first image data; a feature extraction step of extracting a first feature of the region from the first image data and extracting a second feature of the region from the second image data by using a learning model that has been trained using a teacher data set including features to be extracted from second image data obtained by photographing the object; an evaluation value calculation step of calculating an evaluation value indicating a separation between the second feature amount and the first feature amount; a determination step of determining the first image data from the evaluation value; A method for determining whether or not a particular

2. The determining step includes: Determine whether the object belongs to a first class or a second class different from the first class. The method according to claim 1 .

3. a first determination step, prior to the feature extraction step, for determining whether the first image data is a non-defective product or a defective product; and The feature extraction step includes: extracting a first feature amount of the region from the first image data determined to be defective in the first determination step; The evaluation value calculation step includes: The evaluation value indicating a deviation between a first characteristic amount of the region extracted from the first image data determined to be defective in the first determination step and the second characteristic amount is calculated. The method according to claim 1 .

4. A display step of displaying the result of the determination step on a display unit.

2. The method of claim 1, further comprising:

5. For the information processing device, An acquisition step of acquiring first image data of an object; a cut-out area specifying step of specifying an area where a defect occurs from the first image data; a feature extraction step of extracting a first feature of the region from the first image data and extracting a second feature of the region from the second image data by using a learning model that has been trained using a teacher data set including features to be extracted from second image data obtained by photographing the object; an evaluation value calculation step of calculating an evaluation value indicating a separation between the second feature amount and the first feature amount; a determination step of determining the first image data from the evaluation value; A judgment program for executing the above.

6. An acquisition unit that acquires first image data obtained by capturing an image of an object; a cut-out area specifying unit for specifying an area where a defect occurs from the first image data; a feature extraction unit that extracts a first feature of the region from the first image data and extracts a second feature of the region from the second image data by using a learning model that has been trained using a teacher data set including features to be extracted from second image data obtained by photographing the object; an evaluation value calculation unit that calculates an evaluation value indicating a separation between the second feature amount and the first feature amount; a determination unit that determines the first image data from the evaluation value; A determination device having the above structure.

7. An imaging unit that captures an image of an object; an acquisition unit that acquires first image data captured by the imaging unit; a cut-out area specifying unit for specifying an area where a defect occurs from the first image data; a feature extraction unit that extracts a first feature of the region from the first image data and extracts a second feature of the region from the second image data by using a learning model that has been trained using a teacher data set including features to be extracted from second image data obtained by photographing the object; an evaluation value calculation unit that calculates an evaluation value indicating a separation between the second feature amount and the first feature amount; a determination unit that determines the first image data from the evaluation value; an output unit that outputs a result of the determination by the determination unit; An appearance inspection device having the following structure.

Citation Information

Patent Citations

  • Visual inspection device

    JP2012007952A