Determination method, determination program, determination device and visual inspection device
The proposed determination method improves visual inspection accuracy by using a learning model to extract features and perform secondary determination based on the proportion of a specific color in image data, effectively distinguishing defective products from non-defective ones.
Patent Information
- Application Number
- JP2023023213
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2024-08-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing visual inspection equipment struggles to accurately distinguish defective products that resemble non-defective ones, leading to decreased determination accuracy.
A determination method involving image data acquisition, feature extraction using a learning model, evaluation value calculation, and secondary determination based on the proportion of a specific color in the image data to improve accuracy.
Enhances the accuracy of determining defective products by correctly identifying them even when they resemble non-defective ones, thereby improving the defect detection rate.
Smart Images

Figure 2024117230000001_ABST
Abstract
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 defective product that closely resembles a non-defective product is a 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 feature extraction step of extracting a first feature from the first image data using a learning model in which a learning process has been performed using a teacher dataset including second image data in which the object is photographed and a second feature to be extracted from the second image data, 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 proportion of a specific color in the first image data if the evaluation value is equal to or less than a first threshold 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 feature extraction step of extracting a first feature from the first image data using a learning model in which a learning process has been performed using a teacher dataset including second image data in which the object is photographed and a second feature to be extracted from the second image data, 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 proportion of a specific color in the first image data if the evaluation value is equal to or less than a first threshold 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 feature extraction unit that extracts a first feature from the first image data using a learning model in which a learning process has been performed using a teacher dataset including second image data in which the object is photographed and a second feature to be extracted from the second image data, 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 proportion of a specific color in the first image data if the evaluation value is equal to or less than a first threshold value.
[0011] Furthermore, the appearance inspection device 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 feature extraction unit that extracts a first feature from the first image data using a learning model in which a learning process has been performed using a teacher dataset including second image data of the object photographed and a second feature to be extracted from the second image data, 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 proportion of a specific color in the first image data if the evaluation value is equal to or less than a first threshold, and an output unit that outputs the result of the judgment made by the judgment unit.
[0012] According to the present invention, even if a defective product is judged to be a non-defective product, it is possible to correctly judge the product as defective by re-judging the first image data from the proportion of the specific color in the first image data. Effect of the Invention
[0013] According to the present invention, even if a defective product is judged to be a good product, it can be correctly judged to be defective by re-judging the first image data from the proportion of a specific color in the first image data, 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 diagram showing a state in which chip components are mounted on a circuit board. [Diagram 3] FIG. 1 is a diagram showing how defects occur in a circuit board. [Figure 4] 11A and 11B are diagrams illustrating examples of judgment-use component images acquired from a circuit board. [Diagram 5] 1 is a block diagram showing a functional configuration of a visual inspection apparatus according to a first embodiment. [Figure 6] FIG. 11 is a diagram illustrating an example of a secondary determination process according to the first embodiment. [Figure 7] 4 is a flowchart showing a learning process procedure according to the first and second embodiments. [Figure 8] 1 is a flowchart showing a procedure of a determination process according to the first embodiment. [Figure 9] FIG. 13 is a graph showing a frequency distribution graph of the degree of abnormality depending on whether or not a secondary determination unit is present; [Figure 10] 13 is a table showing a defect detection rate of defective products depending on whether or not a secondary judgment unit is present. [Figure 11] FIG. 11 is a block diagram showing a functional configuration of a visual inspection apparatus according to a second embodiment. [Figure 12] FIG. 1 is a diagram showing a circuit board on which lines and characters are written. [Figure 13] 13A and 13B are diagrams illustrating examples of determination-use component images acquired from a circuit board according to the second embodiment. [Figure 14] FIG. 11 is a diagram illustrating an example of a part region extraction process according to the second embodiment. [Figure 15] FIG. 11 is a diagram illustrating an example of a secondary determination process according to the second embodiment. [Figure 16] 13 is a flowchart showing a procedure of a determination process according to the second embodiment. [Figure 17] 13A and 13B are diagrams showing a state in which chip components are mounted on a circuit board according to another embodiment. 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. First embodiment [1-1. Configuration of visual inspection equipment] The appearance inspection device 1 according to the first embodiment 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 or fail, as an inspection target. In this manufacturing factory, a mounting process is performed on the circuit board, for example, by performing a reflow process or the like, to mount surface mount components (so-called chip components) such as chip-shaped minute resistors and capacitors. 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] [1-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] For example, Figures 2(A), 2(B) and 2(C) respectively show a circuit board BD only, a chip component MP only and a circuit board BD on which the chip component MP is normally mounted. The circuit board BD shown in Figure 2(A) has electrode pads PD formed in two places on the front side (the front side of the paper), and a virtual mounting area ARm (shown by a dashed line in the figure) is set. The chip component MP shown in Figure 2(B) is formed in a tiny rectangular parallelepiped shape and has two electrode portions EL. The surface that faces the circuit board BD when the chip component MP is mounted on the circuit board BD, i.e., the surface on the back side of the paper in the figure, is called the mounting surface MPS.
[0024] 2(C) shows a circuit board BD with a chip component MP appropriately mounted in a mounting area ARm, and solder (not shown) is attached to each electrode portion EL of the chip component MP and each electrode pad PD of the circuit board BD. The solder is melted at a predetermined high temperature in a reflow process or the like and then solidified, thereby physically fixing and electrically connecting the electrode portion EL of the chip component MP to the electrode pad PD of the circuit board BD. The mounting surface MPS of the chip component MP faces the surface of the circuit board BD and is in contact with or in close contact with the surface.
[0025] On the other hand, Figure 3 shows examples of states in which a chip part MP is not properly mounted on a circuit board BD. Figure 3(A) shows a state in which a chip part MP is not mounted on a circuit board BD, which is called a "missing part."
[0026] In Fig. 3(B), although a chip part MP is mounted on a circuit board BD, the position and inclination of the chip part MP when viewed from a direction perpendicular to the surface of the circuit board BD are significantly deviated from the mounting area ARm (Fig. 2(A)), which is called "misalignment." Specifically, in the state shown in Fig. 3(B), the chip part MP has been rotated clockwise with respect to the appropriate state, and while one electrode portion EL on the right side of the chip part MP is soldered to the electrode pad PD of the circuit board BD, the other electrode portion EL on the left side of the chip part MP is deviated from the electrode pad PD of the circuit board BD and is not soldered properly.
[0027] Fig. 3(C) shows a state when viewed from a direction perpendicular to the surface of the circuit board BD, and Fig. 3(D) shows a state when the circuit board BD is viewed from the side along the surface of the circuit board BD in Fig. 3(C). In Fig. 3(C) and Fig. 3(D), a chip component MP is mounted on the circuit board BD, but when viewed from the side, one of the electrode parts EL floats upward from the electrode pad PD, and the mounting surface MPS of the chip component MP is separated from the surface of the circuit board BD, which is called "chip standing". Specifically, in the state shown in Fig. 3(C) and Fig. 3(D), when the circuit board BD is viewed from the side along the surface of the circuit board BD, the right electrode part EL, which is one of the chip components MP, is soldered to the electrode pad PD of the circuit board BD as in Fig. 3(B), but the left electrode part EL, which is the other of the chip components MP, floats upward from the electrode pad PD of the circuit board BD and is not soldered properly.
[0028] Figure 4 shows a judgment component image IMb, which includes a mounting area ARm (Figure 2(A)), which is a partial area in the image data obtained by imaging the circuit board BD by the imaging unit 7 (Figure 1), and the circuit board BD surrounding the mounting area ARm.
[0029] Of these, Fig. 4(A) is a judgment component image IMb1 captured in a state where a chip component MP is properly mounted on a circuit board BD and is judged to be normal, similar to the case shown in Fig. 2(C). When a chip component MP is properly mounted in a mounting area ARm (Fig. 2(A)) of the circuit board BD, in the judgment component image IMb1 in a state where the circuit board BD is viewed from directly above in a direction perpendicular to the surface of the circuit board BD, the entire area of the electrode pads PD of the circuit board BD is hidden by the electrode portions EL of the chip component MP.
[0030] FIG. 4(B) is a judgment component image IMb2 in which a type of defect called "missing part" is captured, similar to the case shown in FIG. 3(A). FIG. 4(C) is a judgment component image IMb3 in which a type of defect called "misalignment" is captured, similar to the case shown in FIG. 3(B). FIG. 4(D) is a judgment component image IMb4 in which a type of defect called "chip standing" is captured, similar to the cases shown in FIG. 3(C) and FIG. 3(D). In the judgment component image IMb4, the chip component MP is raised to the left, so that the pad exposure area ARv, which is about the left half of the left electrode pad PD, is exposed to the left of the left electrode portion EL of the chip component MP. Hereinafter, the judgment component images IMb1, IMb2, IMb3, and IMb4 are collectively referred to as judgment component images IMb.
[0031] The judgment component images IMb2 (FIG. 4(B)) and IMb3 (FIG. 4(C)), which are images of an abnormal state, look significantly different when viewed from directly above compared to judgment component image IMb1 (FIG. 4(A)), which is an image of a normal state. For this reason, the visual inspection device 1 can easily determine that judgment component images IMb2 (FIG. 4(B)) and IMb3 (FIG. 4(C)) are abnormal by the primary judgment unit 28 (FIG. 5) (details of which will be described later).
[0032] However, when viewed from directly above, the judgment component image IMb4 (FIG. 4(D)), which should be an image of an abnormal state, looks similar to the judgment component image IMb1 (FIG. 4(A)), which is an image of a normal state. For this reason, there is a possibility that the visual inspection device 1 will determine that the judgment component image IMb4 (FIG. 4(D)) is a non-defective product in the judgment by the primary judgment unit 28.
[0033] In response to this, the secondary judgment unit 29 (FIG. 5) (details to be described later) performs secondary judgment processing on judgment use image data (to be described later) for which the judgment result by the primary judgment unit 28 is a pass / fail product. On the other hand, the secondary judgment unit 29 does not perform secondary judgment processing on judgment use image data for which the judgment result by the primary judgment unit 28 is a failing product.
[0034] [1-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.
[0035] It is also assumed here that a circuit board (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 called learning data) used in the learning process, and judgment image data (also called judgment data) used in the judgment process.
[0036] 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 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 serial number assigned to the circuit board as the object and a manufacturing date and time.
[0037] [1-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, thereby forming each functional block as shown in FIG. 5. Specifically, the control unit 2 forms an acquisition unit 21, a feature amount processing unit 23, an abnormality degree calculation unit 24, and a judgment unit 25, and further forms a feature amount extraction unit 27 in the feature amount processing unit 23, and a primary judgment unit 28 and a secondary judgment unit 29 in the judgment unit 25.
[0038] The storage unit 3 also includes a data storage unit 31 for storing image data, and a feature storage unit 33 for storing features (described in detail below) extracted from the image data. The data storage unit 31 stores a plurality of image data (image data for judgment) used in the judgment process. The data storage unit 31 also stores a plurality of image data (image data for learning) used in the learning process. The plurality of image data for learning are composed of data of non-defective products. The image data for judgment and the image data for learning are prepared as separate data.
[0039] In the learning process, the acquisition unit 21 reads out a plurality of learning image data, which is one or a plurality of image data, from the data storage unit 31, and supplies the learning image data to the feature extraction unit 27 of the feature processing unit 23. In the judgment process, the acquisition unit 21 reads out judgment image data, which is one image data, from the data storage unit 31, and supplies the judgment image data to the feature extraction unit 27 of the feature processing unit 23 and the secondary judgment unit 29 of the judgment unit 25.
[0040] The feature amount processing unit 23 corresponds to a learning model in machine learning processing (also simply referred to as learning processing). In the learning processing, the feature amount extraction unit 27 extracts features from the learning image data as an extraction process, and stores the features in the feature amount storage unit 33. In the judgment processing, the feature amount extraction unit 27 extracts features from the judgment image data as an extraction process, and supplies the features to the anomaly degree calculation unit 24. Specifically, the feature amount extraction unit 27 is configured as, for example, a neural network, and uses a weight parameter learned using a public data set or the like. In addition, the feature amount extraction unit 27 can 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.
[0041] In the judgment process, the anomaly degree calculation unit 24 calculates an anomaly degree (hereinafter also referred to as an evaluation value) representing the magnitude of difference between the feature for judgment and the learned feature, based on the feature supplied from the feature extraction unit 27 (hereinafter referred to as the feature for judgment) and the feature read from the feature storage unit 33 (hereinafter referred to as the learned feature), and supplies this to the primary judgment unit 28 of the judgment unit 25. Specifically, the anomaly degree calculation unit 24 calculates the distance between the feature for judgment and the learned feature in a multidimensional space (hereinafter also referred to as separation), for example, by a nearest neighbor method using Euclidean distance or an arithmetic process using Mahalanobis distance, and regards this as the anomaly degree.
[0042] In the primary judgment process, the primary judgment unit 28 compares the degree of abnormality supplied from the abnormality degree calculation unit 24 with a preset judgment threshold value to determine a judgment result, and supplies the judgment result to the secondary judgment unit 29. At this time, if the degree of abnormality is equal to or less than the judgment threshold value, the primary judgment unit 28 determines the judgment result to be "good," and if the degree of abnormality is greater than the judgment threshold value, the primary judgment unit 28 determines the judgment result to be "defective."
[0043] In the secondary judgment process of the judgment process, the secondary judgment unit 29 performs the secondary judgment process (hereinafter also referred to as re-judgment process) using the judgment image data supplied from the acquisition unit 21 and the judgment result supplied from the primary judgment unit 28. At this time, the secondary judgment unit 29 performs the secondary judgment process described later on the judgment image data judged to be non-defective in the judgment result supplied from the primary judgment unit 28, and determines the judgment result. In other words, the secondary judgment unit 29 classifies the degree of abnormality according to the comparison result with the threshold value. For this reason, the judgment process can also be called a classification process.
[0044] [1-3-2. Secondary Determination Processing According to the First Embodiment] As described above, in the case of the judgment component image IMb4 (FIG. 4(D)), the electrode pad PD on the left side is captured. The surface color of the circuit board BD is generally black or green, and the parts of the chip part MP other than the electrode parts EL are generally black or dark gray. The areas of the electrode pad PD and the areas of the electrode parts EL of the chip part MP are characterized by a higher degree of whiteness compared to the area of the circuit board BD and the areas of the chip part MP other than the electrode parts EL, since a flash is used when photographing by the imaging unit 7.
[0045] Therefore, in the secondary judgment process, the secondary judgment unit 29 converts the judgment part image IMb4 shown in Fig. 6(A) into grayscale to generate the grayscale image IMg shown in Fig. 6(B), and recognizes pixels within a certain range from the maximum brightness value in the entire grayscale image IMg as white pixels. In this embodiment, a white pixel is a pixel that has a color value of white (R=255, G=255, B=255) in a color space (RGB value) that defines the color of the image data (color data).
[0046] In the following, for example, a case will be described in which a chip component MP is mounted symmetrically on a pair of electrode pads PD arranged side by side in the left-right direction on a circuit board BD, with a pair of electrode portions EL arranged at both ends in the left-right direction, as shown in Figure 6(A).
[0047] As shown in Fig. 6(C), the secondary judgment unit 29 divides the grayscale image IMg (Fig. 6(B)) into two parts, left and right, by the center line Lc at the left-right center, and calculates the number of white pixels (i.e., the number of left-side white pixels) which is the number of pixels in a white pixel area ARw (shown by a dashed line in the figure) which is a region of white pixels in a left area ARl (hereinafter also referred to as a first region) which is a region to the left of the center line Lc in the grayscale image IMg. The secondary judgment unit 29 also calculates the number of white pixels (i.e., the number of right-side white pixels) which is the number of pixels in a white pixel area ARw (shown by a dashed line in the figure) which is a region of white pixels in a right area ARr (hereinafter also referred to as a second region) which is a region to the right of the center line Lc in the grayscale image IMg.
[0048] Next, the secondary judgment unit 29 calculates a left / right white pixel count difference, which is the difference between the number of left white pixels and the number of right white pixels. Next, the secondary judgment unit 29 divides the left / right white pixel count difference by the number of white pixels of the electrode portion EL in the preset grayscale image IMg to calculate a left / right white area ratio difference.
[0049] Next, if the left / right white area ratio difference is equal to or greater than a preset white area ratio threshold, the secondary judgment unit 29 judges that the mounting state of the chip component MP represented by the judgment component image IMb is abnormal.
[0050] Here, the secondary judgment unit 29 does not judge that there is an abnormality when the difference in the number of left and right white pixels is equal to or greater than a predetermined left and right white pixel difference threshold, but compares the left and right white area ratio difference with the white area ratio threshold. This is because the larger the chip component MP, the larger the size of the electrode portion EL also becomes, and therefore, this is necessary to accommodate various sizes of chip components MP.
[0051] In this way, even if the primary judgment unit 28 judges an abnormal state that is very similar to a normal state, such as the judgment component image IMb4 (Figure 4(D)), to be a normal state, the secondary judgment unit 29 divides the grayscale image IMg based on the judgment component image IMb into two regions, one direction and the other direction, by the center line Lc so that the electrode portions EL are located on opposite sides of the center line Lc, and if there is a large difference between the amount of white pixels in the one direction region and the other direction region, it is highly likely that soldering has failed in the region with the larger amount of white pixels between the one direction region and the other direction region, and the area of the electrode pad PD is visible, so that the secondary judgment process correctly judges that there is an abnormality.
[0052] When the left-right white area ratio difference was calculated using a judgment component image IMb of a chip component MP similar to that in Fig. 4, the result was less than 60[%] in the case of a normal state as shown in Fig. 4(A), and was 67[%] or more in the case of a chip standing, which is an abnormal state similar to the normal state as shown in Fig. 4(D). Therefore, the secondary judgment unit 29 can correctly judge an image such as the judgment component image IMb (Fig. 4(D)) to be abnormal by judging as abnormal a judgment component image IMb in which the left-right white area ratio difference is equal to or greater than 60[%], which is the white area ratio threshold value.
[0053] [1-3-3. Learning process] Next, the learning process will be described. When performing the learning process, the control unit 2 (FIG. 1) of the visual inspection device 1 reads out and executes a predetermined learning process 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. 5, starts the learning process procedure RT1 shown in FIG. 7, and proceeds to step SP1.
[0054] In step SP1, the control unit 2 acquires one or more pieces of learning image data from the data storage unit 31 using the acquisition unit 21, and proceeds to step SP2. At this time, the acquisition unit 21 supplies the acquired learning image data (hereinafter referred to as target learning image data) to the feature extraction unit 27. In step SP2, the control unit 2 extracts features from the target learning image data using the feature extraction unit 27 and stores the features in the feature storage unit 33 as learned features, and proceeds to step SP3.
[0055] In step SP3, the control unit 2 determines whether a predetermined learning end condition is met. The learning end condition is preset, for example, "processing 100 pieces of learning image data" or "processing all learning image data stored in the data storage unit 31". If a negative result is obtained in step SP3, the control unit 2 returns to step SP1 again to repeatedly execute the series of processes for the next learning image data. On the other hand, if a positive result is obtained in step SP3, the control unit 2 proceeds to the next step SP4 and ends the learning process procedure RT1.
[0056] [1-3-4. Judgment process] Next, the judgment process will be described. When the judgment process is performed, the control unit 2 reads out a predetermined judgment process program from the storage unit 3 and executes it. At this time, the control unit 2 performs a predetermined initialization process and the like, as in the case of the learning process, and forms each of the functional blocks shown in Fig. 5, and then starts the judgment process procedure RT2 shown in Fig. 8 corresponding to Fig. 7, and proceeds to step SP11.
[0057] In step SP11 (acquisition step), the control unit 2 acquires one or more pieces of determination image data from the data storage unit 31 by the acquisition unit 21, and proceeds to step SP12. At this time, the acquisition unit 21 supplies the acquired determination image data (hereinafter referred to as target determination image data) to the feature extraction unit 27.
[0058] In step SP12 (feature extraction step and evaluation value calculation step), the control unit 2 causes the feature extraction unit 27 to extract features from the target judgment image data and supplies the features as judgment features to the abnormality degree calculation unit 24. The control unit 2 also compares the learned features read out from the feature storage unit 33 with the judgment features supplied from the feature extraction unit 27 using the abnormality degree calculation unit 24 to calculate the abnormality degree, supplies the abnormality degree to the primary judgment unit 28 of the judgment unit 25, and proceeds to step SP13.
[0059] As a result, if the judgment image data is similar to the learning image data and the difference between the judgment features and the learned features is relatively small, the degree of abnormality value will be relatively small. This means that the judgment result of the object is likely to be a "good product." On the other hand, if the judgment image data is not very similar to the learning image data and the difference between the judgment features and the learned features is relatively large, the degree of abnormality value will be relatively large. This means that the judgment result of the object is likely to be a "defective product."
[0060] In step SP13 (judgment step and primary judgment step), the control unit 2 performs a primary judgment process using the primary judgment unit 28 to compare the judgment threshold with the degree of abnormality supplied from the abnormality degree calculation unit 24 to determine a judgment result, supplies the judgment result to the secondary judgment unit 29, and proceeds to step SP14.
[0061] In step SP14, the control unit 2 judges whether or not the judgment result by the primary judgment unit 28 is a non-defective product by the secondary judgment unit 29. If a positive result is obtained here, this indicates that the product has been judged to be a non-defective product by the primary judgment unit 28 and therefore secondary judgment processing by the secondary judgment unit 29 must be performed, and in this case the control unit 2 proceeds to step SP15.
[0062] In step SP15 (judgment step, secondary judgment step, and display step), the control unit 2 performs secondary judgment processing on the judgment image data judged as good by the primary judgment unit 28 using the secondary judgment unit 29, thereby comparing the left / right white area ratio difference with a white area ratio threshold to determine the judgment result, and displays a judgment result display screen showing the obtained judgment result on the display unit 5 (Figure 1), before proceeding to step SP16.
[0063] On the other hand, if a negative result is obtained in step SP14, this indicates that the product has been judged to be defective by the primary judgment unit 28 and therefore there is no need to perform secondary judgment processing by the secondary judgment unit 29, and in this case the control unit 2 skips step SP15 and proceeds to step SP16.
[0064] In step SP16, the control unit 2 judges whether a predetermined judgment end condition is satisfied. The learning end condition is preset, for example, "processing 100 pieces of judgment image data" or "processing all judgment image data stored in the data storage unit 31". If a negative result is obtained here, the control unit 2 returns to step SP11 again to repeatedly execute the series of processes for the next judgment image data. On the other hand, if a positive result is obtained in step SP16, the control unit 2 proceeds to the next step SP17 and ends the judgment processing procedure RT2.
[0065] [1-4. Effects, etc.] In the above configuration, the appearance inspection device 1 is configured to perform secondary judgment processing by the secondary judgment unit 29 on judgment image data that has been judged to be a good product by the primary judgment unit 28 because the abnormal value is below the judgment threshold value as the first threshold value.
[0066] In the secondary judgment process, the secondary judgment unit 29 converts the judgment component image IMb (FIG. 6(A)) into grayscale to generate a grayscale image IMg (FIG. 6(B)), divides the grayscale image IMg in two at the center line Lc, and calculates a left-right white pixel count difference, which is the difference between the number of white pixels on the left side and the number of white pixels on the right side. The secondary judgment unit 29 also calculates a left-right white area ratio difference by dividing the left-right white pixel count difference by the number of white pixels of the electrode portion EL in the grayscale image IMg that is set in advance, and judges that the mounting state of the chip component MP shown by the judgment component image IMb is abnormal if the left-right white area ratio difference is equal to or greater than a white area ratio threshold.
[0067] Therefore, by performing secondary judgment processing by the secondary judgment unit 29 on judgment image data that has been judged as good by the primary judgment unit 28, the appearance inspection device 1 can correctly judge even defective products that resemble good products to be defective, thereby improving the defect detection rate and improving the accuracy of pass / fail judgments.
[0068] Here, we will introduce an experimental example with and without the secondary judgment unit 29. In this experimental example, we prepared multiple image data whose visual evaluation (i.e., "good" or "bad") was known in advance. In addition, in this experimental example, feature amounts were extracted from each image data to calculate the degree of anomaly, and further statistical processing was performed.
[0069] 9(A) is a graph showing the frequency distribution of the degree of abnormality obtained from each image data in the case where the secondary judgment unit 29 is not applied (hereinafter also referred to as the case where the secondary judgment unit is not applied), unlike the present embodiment, where the horizontal axis shows the degree of abnormality and the vertical axis shows the frequency (number of data). Also, in FIG. 9(A), the patterns in the bar graph are different between the cases where the visual evaluation is "good" (indicated as "OK" in the figure) and the cases where the visual evaluation is "bad" (indicated as "NG" in the figure).
[0070] In FIG. 9(A), in the area where the degree of abnormality is around 0.5, the degree of abnormality obtained from the image data visually evaluated as "NG" (hereinafter referred to as "NG abnormality") exists among the degree of abnormality obtained from the image data visually evaluated as "OK" (hereinafter referred to as "OK abnormality"). This means that it is difficult to appropriately set a 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 appropriately set. In other words, when the secondary judgment unit is not applied, in the case of an abnormal state that resembles a normal state when viewed from directly above as shown in FIG. 4(D), the degree of abnormality may be equivalent to the normal state, and in such a case, it is difficult for the appearance inspection device 1 to judge between a normal state and an abnormal state using the judgment threshold value Th.
[0071] In this experimental example, the judgment threshold Th was set to 0.6. As a result, as shown in FIG. 10, the rate at which the NG abnormality degree was greater than the judgment threshold Th, i.e., the rate at which abnormal objects were judged to be abnormal (hereinafter, this is called the defective detection rate), was 98.7%. This means that in the case where the secondary judgment unit is not applied, the remaining 1.3% is judged to be "normal" even though it is actually "abnormal", i.e., 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.
[0072] On the other hand, FIG. 9(B), which corresponds to FIG. 9(A), is a graph showing the frequency distribution of the degree of abnormality obtained from each image data when the secondary judgment unit 29 is applied (hereinafter, this is also referred to as application of the secondary judgment unit), as in the present embodiment.
[0073] In FIG. 9B, the NG abnormality degree at the point where the abnormality degree is around 0.5 is removed. As a result, in FIG. 9B, the OK abnormality degree is distributed in the range of 0.55 or less, while the NG abnormality degree is distributed in the range of 0.65 or more, and the distributions of the two are relatively far apart compared to FIG. 9A. This means that it is relatively easy to appropriately set the judgment threshold Th that can easily separate the OK abnormality degree and the NG abnormality degree, and by appropriately setting the judgment threshold Th, it is easy to prevent erroneous judgment. In other words, in the case of the secondary judgment unit application, even in the case of an abnormal state that resembles a normal state when viewed from directly above as shown in FIG. 4D, the abnormality degree is not equivalent to the normal state. Therefore, the appearance inspection device 1 can judge the normal state and the abnormal state by distinguishing them by the judgment threshold Th.
[0074] In this case of secondary judgment unit adaptation, the judgment threshold Th was also set to 0.6. As a result, as shown in Fig. 10, the rate at which the NG anomaly degree was greater than the judgment threshold Th (failure detection rate) was 100%. 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 ranges of the OK anomaly degrees and the distribution ranges of the NG anomaly degrees.
[0075] In this manner, in this embodiment, by performing secondary judgment processing by the secondary judgment unit 29 on judgment image data that has been judged to be good by the primary judgment unit 28, it becomes extremely easy to set an appropriate threshold value that can suppress erroneous judgments.
[0076] Here, the smaller the judgment threshold Th is, the more NG anomaly degrees will be larger than the judgment threshold Th, and the higher the defect detection rate will be. However, in that case, some OK anomaly degrees will also be larger than the judgment threshold Th, and the possibility of a good product being judged as a defective product will increase. For this reason, the visual inspection device 1 performs secondary judgment processing in the secondary judgment unit 29, thereby largely separating the distribution range of the OK anomaly degrees from the distribution range of the NG anomaly degrees, and can set an optimal judgment threshold Th between the distribution range of the OK anomaly degrees and the distribution range of the NG anomaly degrees. This allows the visual inspection device 1 to prevent a good product from being judged as a defective product.
[0077] According to the above configuration, the appearance inspection apparatus 1 according to the first embodiment is provided with an imaging unit 7 that images the circuit board BD as an object, an acquisition unit 21 that acquires judgment image data as first image data captured by the imaging unit 7, learning image data as second image data in which the circuit board BD has been captured and a feature extraction unit 27 that extracts judgment features as first features from the judgment image data using a learning model in which learning processing has been performed using a teacher dataset including learning features as second features to be extracted from the learning image data, an abnormality calculation unit 24 that calculates an abnormality degree as an evaluation value indicative of peeling between the learning features and the judgment features, a judgment unit 25 that judges the judgment image data from the proportion of white, a specific color, in the judgment image data if the abnormality degree is equal to or less than the judgment threshold as the first threshold, and a display unit 5 that outputs the result of the judgment by the judgment unit 25.
[0078] As a result, even if the visual inspection device 1 judges a defective product to be a good product, it can correctly judge that it is a defective product by re-judging the judgment image data from the proportion of white, a specific color, in the judgment image data.
[0079] 2. Second embodiment [2-1. Configuration of visual inspection equipment] An appearance inspection apparatus 101 (FIG. 1) according to the second embodiment differs from the appearance inspection apparatus 1 according to the first embodiment in that it has a control unit 102 instead of the control unit 2, but is otherwise configured similarly. The control unit 102 has a CPU 11, ROM 12, RAM 13, etc., like the first embodiment, but by reading and executing various programs from the storage unit 3, it forms functional blocks that are partially different from those of the first embodiment, as shown in FIG. 11, in which the same reference numerals are used for blocks corresponding to those in FIG. 5.
[0080] Specifically, control unit 102 differs from the first embodiment in that it is provided with secondary judgment unit 129 instead of secondary judgment unit 29 and in that part area extraction unit 40 has been added, but is otherwise configured in the same way.
[0081] In the learning process, the acquisition unit 21 reads out learning image data from the data storage unit 31 and supplies it to the feature extraction unit 27 of the feature processing unit 23. In the judgment process, the acquisition unit 21 reads out judgment image data from the data storage unit 31 and supplies it to the feature extraction unit 27 and the part area extraction unit 40 of the feature processing unit 23.
[0082] In the judgment process, the part area extraction unit 40 supplies the judgment image data to the secondary judgment unit 129, extracts a part area (described later) from the judgment image data, and supplies information indicating the part area to the secondary judgment unit 129 as part area information.
[0083] In the secondary judgment process of the judgment process, secondary judgment unit 129 performs the secondary judgment process using the judgment image data and part area information supplied from part area extraction unit 40 and the judgment result supplied from primary judgment unit 28. At this time, secondary judgment unit 129 performs the secondary judgment process described later on the judgment image data judged to be non-defective in the judgment result supplied from primary judgment unit 28, and determines the judgment result.
[0084] [2-2. Visual inspection processing] Next, a description will be given of the appearance inspection process in the appearance inspection device 101. In the appearance inspection process in the appearance inspection device 101, a machine learning process is performed on feature amounts obtained from image data, which includes a learning process in the first stage and a judgment process in the second stage.
[0085] [2-2-1. Secondary Determination Processing According to the Second Embodiment] 12, an actual circuit board BD often has white rectangular lines LN indicating the mounting area ARm and white letters CH indicating various information. Such white lines LN and letters CH have a high luminance value, and are therefore likely to be determined as white pixels. For this reason, if the secondary determination unit 129 performs the secondary determination process based on a determination component image IMb that includes many areas outside the mounting area ARm, the secondary determination process may not be performed correctly.
[0086] Therefore, component area extraction unit 40 supplies the judgment image data to secondary judgment unit 129, extracts a component area ARp (described later) from the judgment image data, and supplies information indicating the component area ARp as component area information to secondary judgment unit 129. The component area ARp is an area on the circuit board BD of the judgment image data where the chip component MP is actually mounted, and the component area information is information indicating the coordinates of the component area ARp.
[0087] 13 shows a judgment component image IMb101 including chip components MP and the circuit board BD surrounding the chip components MP, which is a partial area of image data obtained by imaging the circuit board BD with the imaging unit 7 (FIG. 1). In this judgment component image IMb101, the lines LN and characters CH on the circuit board BD are captured in the area other than the chip components MP.
[0088] The component area extraction unit 40 performs known template matching to extract, from the judgment image data, an image showing a chip component MP as shown in FIG. 2(B) and an image having a high degree of similarity thereto. As shown in FIG. 14, the component area extraction unit 40 designates the area of that image as a component area ARp (hatched in the figure) and detects the coordinates of the component area ARp.
[0089] In the secondary judgment process, the secondary judgment unit 129 converts the judgment part image IMb101 shown in FIG. 15(A) to grayscale to generate the grayscale image IMg101 shown in FIG. 15(B), and recognizes pixels within a certain range from the maximum brightness value in the entire grayscale image IMg101 as white pixels.
[0090] Next, as shown in Fig. 15(C), secondary determination unit 129 recognizes the coordinates of component region ARp in grayscale image IMg101 (Fig. 15(B)) indicated by the component region information supplied from component region extraction unit 40. Furthermore, as shown in Fig. 15(D), secondary determination unit 129 recognizes electrode portion region ARe (hatched from left to right in the figure), which is the region of electrode portion EL, based on the luminance difference within component region ARp in grayscale image IMg101. Next, secondary determination unit 129 estimates a predetermined range of region on the left and right outer sides of electrode portion region ARe as electrode pad estimated region ARd (hatched from right to left in the figure) in which electrode pad PD is likely to be arranged, as shown in Fig. 15(D).
[0091] 15(E), the secondary determination unit 129 divides the grayscale image IMg101 into two parts, left and right, by the center line Lc at the left-right center, and collectively sets the electrode partial region ARe and the electrode pad estimated region ARd in the left region ARL in the grayscale image IMg as a comparison region ARc. The secondary determination unit 129 also collectively sets the electrode partial region ARe and the electrode pad estimated region ARd in the right region ARr in the grayscale image IMg101 as a comparison region ARc. The secondary determination unit 129 further collectively sets the electrode partial region ARe and the electrode pad estimated region ARd located to the right of the center line Lc in the grayscale image IMg101 as a comparison region ARc.
[0092] Furthermore, the secondary judgment unit 129 calculates the number of white pixels (i.e., the number of left-side white pixels) which is the number of pixels in a white pixel area ARw (indicated by a dashed line in the figure) in the comparison area ARc in the left-side area ARl of the grayscale image IMg101. Furthermore, the secondary judgment unit 129 calculates the number of white pixels (i.e., the number of right-side white pixels) which is the number of pixels in a white pixel area ARw (indicated by a dashed line in the figure) in the comparison area ARc in the right-side area ARr of the grayscale image IMg101.
[0093] Next, the secondary determination unit 129 calculates a left / right white pixel count difference, which is the difference between the number of left white pixels and the number of right white pixels. Next, the secondary determination unit 129 divides the left / right white pixel count difference by the number of white pixels in the electrode portion EL in the grayscale image IMg101 that is set in advance, to calculate a left / right white area ratio difference.
[0094] Next, if the left / right white area ratio difference is equal to or greater than a preset white area ratio threshold, the secondary judgment unit 29 judges that the mounting state of the chip component MP represented by the judgment component image IMb is abnormal.
[0095] [2-2-2. Learning process] Next, the learning process will be described. When performing the learning process, the control unit 102 (FIG. 1) of the visual inspection device 101 reads out a predetermined learning process program from the storage unit 3 and executes it. At this time, the control unit 102 forms each of the functional blocks shown in FIG. 11, and then executes the learning process procedure RT1 similar to that of the first embodiment shown in FIG. 7. The description of the learning process procedure RT1 will be omitted.
[0096] [2-2-3. Judgment process] Next, the judgment process will be described. When performing the judgment process, the control unit 102 reads out a predetermined judgment process program from the storage unit 3 and executes it. At this time, the control unit 102 forms each functional block shown in Fig. 11 as in the case of the learning process, starts a judgment process procedure RT102 shown in Fig. 16 in which the same reference numerals are given to steps corresponding to the judgment process procedure RT2 (Fig. 8), and proceeds to step SP11. In steps SP11 to SP14, the control unit 102 performs the same processes as the learning process procedure RT1 (Fig. 8), and proceeds to step SP101.
[0097] In step SP101 (component area extraction step), the control unit 102 causes the component area extraction unit 40 to extract a component area ARp from the judgment image data, and supplies component area information indicating the component area ARp to the secondary judgment unit 129, and then proceeds to step SP115.
[0098] In step SP115, the control unit 102 performs secondary judgment processing on the judgment image data that has been judged to be good by the primary judgment unit 28 by the secondary judgment unit 129, compares the left and right white area ratio difference with a white area ratio threshold, and determines the judgment result, and proceeds to step SP16.
[0099] In step SP16, the control unit 2 performs the same process as the learning procedure RT1 (FIG. 8), and if a negative result is obtained, returns to step SP11 again, and if a positive result is obtained, moves to step SP17 and ends the determination procedure RT102.
[0100] [2-3. Effects, etc.] In the above-described configuration, the appearance inspection apparatus 101 according to the second embodiment is configured to perform a secondary judgment process by the secondary judgment unit 129 on judgment image data that has an abnormal value equal to or less than the judgment threshold Th and that has been judged to be a non-defective product by the primary judgment unit 28.
[0101] Furthermore, in the visual inspection apparatus 101, the component area extraction unit 40 extracts the component area ARp from the judgment image data, and supplies information indicating the component area ARp to the secondary judgment unit 129 as component area information.
[0102] In the secondary judgment process, the secondary judgment unit 129 recognizes the electrode portion area ARe, which is the area of the electrode portion EL inside the component area ARp indicated by the component area information in the grayscale image IMg101, and estimates an area of a predetermined range on the left and right outside of the electrode portion area ARe as an electrode pad estimation area ARd in which the electrode pad PD is likely to be located.
[0103] Next, the secondary judgment unit 129 calculates a difference between the left and right white pixel counts in a comparison area ARc that combines the electrode portion area ARe and the electrode pad estimated area ARd in the left area ARl in the grayscale image IMg101, and a comparison area ARc that combines the electrode portion area ARe and the electrode pad estimated area ARd in the right area ARr in the grayscale image IMg101. The secondary judgment unit 129 also calculates a left and right white area ratio difference by dividing the left and right white pixel number difference by the number of white pixels of the electrode portion EL in the grayscale image IMg101 that is set in advance, and judges that the mounting state of the chip component MP shown in the judgment component image IMb101 is abnormal if the left and right white area ratio difference is equal to or greater than a white area ratio threshold.
[0104] Therefore, the appearance inspection device 101 can remove the influence of the areas other than the electrode pads PD in the areas other than the chip components MP, and can perform the secondary judgment process with higher accuracy. As a result, compared to the appearance inspection device 1, the appearance inspection device 101 can more accurately judge even defective products that resemble good products to be defective products by performing the secondary judgment process by the secondary judgment unit 29 on the judgment-use image data judged as good products by the primary judgment unit 28, and therefore can further improve the defect detection rate and improve the accuracy of pass / fail judgment.
[0105] In addition, the appearance inspection apparatus 101 according to the second embodiment can achieve the same effects as the appearance inspection apparatus 1 according to the first embodiment. Note that the appearance inspection apparatus 101 may perform step SP101 (component area extraction step) in the judgment processing procedure RT102 (FIG. 16) at any timing before step SP16, but performing it at a timing after step SP14 is more preferable than performing it at a timing before step SP14, because it is not necessary to obtain component area information of an object judged to be defective in step SP14.
[0106] 3. Other embodiments In the above-described first embodiment, the visual inspection apparatus 1 divides a grayscale image IMg into two halves, left and right, by a center line Lc at the center left and right, for a chip component MP mounted symmetrically on a circuit board BD, and determines that the chip component MP is defective if the left and right white area ratio difference, which is the difference between the number of left white pixels in the left area ARl and the number of right white pixels in the right area ARr in the grayscale image IMg, is equal to or greater than a white area ratio threshold. The present invention is not limited to this, and the visual inspection device 1 may divide the grayscale image IMg into two parts, one above the other, by the center line Lc at the center from top to bottom, for chip components MP mounted on the circuit board BD in a vertically symmetrical state, and determine that the chip components MP are defective if the upper and lower white area ratio difference, which is the difference between the number of upper white pixels in the area above the center line Lc in the grayscale image IMg and the number of lower white pixels in the area below the center line Lc in the grayscale image IMg, is equal to or greater than a preset white area ratio threshold. This is also true in the second embodiment.
[0107] Furthermore, the visual inspection device 1 may determine that a chip part MP having electrode portions EL arranged at the ends in the top, bottom, left and right directions is defective when the left-right white area ratio difference is equal to or greater than a white area ratio threshold, or when the top-bottom white area ratio difference is equal to or greater than a white area ratio threshold. This is also true in the second embodiment.
[0108] 17, in the case of a chip part MP201 in which the number of electrode parts EL is asymmetrically formed, for example, the number of electrode parts EL is greater on the right side than on the left side, the appearance inspection apparatus 1 may acquire component information for the chip part MP201, subtract the number of white pixels for one electrode part EL from the number of white pixels on the right side based on the coordinate positions of the electrodes in the component information, and calculate the left-right white pixel difference in the number of white pixels in a state in which the left-right difference in the number of white pixels is set to 0 in calculation. The same applies to the second embodiment.
[0109] Furthermore, in the above-described first embodiment, in the case of a grayscale image IMg of chip components MP mounted symmetrically on a circuit board BD, the upper and lower end regions in the grayscale image IMg are likely to be regions other than the chip components MP and the electrode pads PD, so the visual inspection apparatus 1 may reduce the influence of such regions by ignoring the upper and lower end regions in the grayscale image IMg when calculating the number of left-side white pixels and the number of right-side white pixels. The same applies to the second embodiment.
[0110] Furthermore, in the second embodiment described above, the visual inspection apparatus 101 may crop out the grayscale image IMg101 so as to exclude areas other than the chip parts MP and electrode pads PD, and may ignore the areas other than the chip parts MP and electrode pads PD in the grayscale image IMg101 when calculating the number of left-side white pixels and the number of right-side white pixels, thereby reducing the influence of the areas other than the chip parts MP and electrode pads PD. This is the same in the second embodiment.
[0111] Further, in the above-mentioned first embodiment, the appearance inspection device 1 has been described as performing the secondary judgment process based on the difference between the number of white pixels on the left and right. The present invention is not limited to this, and the appearance inspection device 1 may perform the secondary judgment process based on the difference between the number of gray pixels on the left and right, for example. In short, the appearance inspection device 1 may perform the secondary judgment process according to the difference between the number of pixels on the left and right in the area in the grayscale image IMg whose lightness (luminance) is equal to or greater than a predetermined threshold value. That is, the appearance inspection device 1 may regard pixels having color values from white (R=255, G=255, B=255) to near white (R, G, B values are, for example, 241 to 254) in the color space (RGB values) that defines the color of the image data (color data) as white pixels (white). Furthermore, the appearance inspection device 1 may use other color space indices such as L*a*b* values, not limited to RGB, as an index representing a color value. The same applies to the second embodiment.
[0112] Further, in the above-mentioned first embodiment, the appearance inspection device 1 has been described as performing the secondary judgment process in the secondary judgment unit 29 for all judgment image data judged as good by the primary judgment unit 28. The present invention is not limited to this, and since the appearance inspection device 1 recognizes the range of abnormal values between good and defective products in advance by a learning process prior to the judgment process, if the abnormal values of defective products similar to good products are in advance within a certain range, for example, from 0.45 to 0.6, the secondary judgment execution threshold as the second threshold may be set to 0.45, and the judgment threshold as the first threshold may be set to 0.6, and the secondary judgment process may be performed in the secondary judgment unit 29 only for judgment image data for abnormal values whose degree of abnormality is equal to or greater than the secondary judgment execution threshold and equal to or less than the judgment threshold, among the judgment image data judged as good by the primary judgment unit 28. The same applies to the second embodiment.
[0113] Furthermore, in the above-mentioned first embodiment, the appearance inspection device 1 has been described as setting a constant white area ratio threshold for all judgment component images IMb. The present invention is not limited to this. If there are several patterns of defective products similar to non-defective products in a learning process prior to the judgment process, the appearance inspection device 1 may switch the white area ratio threshold depending on the abnormal value of the judgment image data, since it is considered that the abnormal value and the difference in the number of white pixels on the left and right will differ for each pattern. The same is true in the second embodiment.
[0114] Furthermore, in the above-mentioned first embodiment, the visual inspection device 1 has been described as dividing the grayscale image IMg into two parts, left and right, at the center of the left and right along the center line Lc. The present invention is not limited to this, and the visual inspection device 1 may divide the grayscale image IMg into two parts, left and right, at the center line Lc positioned to the left or right of the center of the left and right in accordance with the position of the chip component MP in the center of the grayscale image IMg. The same is true in the second embodiment.
[0115] Furthermore, in the above-mentioned first embodiment, the appearance inspection device 1 has been described as determining that an abnormality has occurred when the left-right white area ratio difference is equal to or greater than the white area ratio threshold. The present invention is not limited to this, and the appearance inspection device 1 may determine that an abnormality has occurred when the left-right white pixel count difference is equal to or greater than a predetermined left-right white pixel count difference threshold, particularly when performing secondary determination processing on multiple grayscale images IMg in which chip components MP of the same size are photographed. The same is true in the second embodiment.
[0116] Furthermore, in the above-mentioned first 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 31 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 31 to include data of defective products. The same is true in the second embodiment.
[0117] Furthermore, in the above-described first embodiment, the visual inspection device 1 may further learn the feature amounts of the judgment-use image data judged as a non-defective product by the primary judgment unit 28 in the learning model update step, output the feature amount to the feature amount storage unit 33, and update the learning model. In that case, the visual inspection device 1 can further improve the accuracy of pass / fail judgment. The same applies to the second embodiment.
[0118] Furthermore, in the above-described second embodiment, the case has been described in which appearance inspection apparatus 101 supplies component area information from component area extraction unit 40 to secondary determination unit 129, and secondary determination unit 129 performs secondary determination processing based on the component area information. The present invention is not limited to this, and appearance inspection apparatus 101 may supply judgment-use component image data cut out from judgment-use image data based on the component area information from component area extraction unit 40 to secondary determination unit 129, and secondary determination unit 129 may perform secondary determination processing based on the judgment-use component image data.
[0119] Furthermore, in the above-mentioned first 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 31. 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 31. 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.
[0120] Furthermore, in the above-mentioned first embodiment, a configuration has been described in which the control unit 2 executes a program such as a learning processing program, and each functional block shown in Fig. 4 is configured by software. However, the present invention is not limited to this, and for example, at least a part of each functional block shown in Fig. 4 may be configured by hardware. The same applies to the second embodiment.
[0121] Furthermore, in the above-mentioned first embodiment, the appearance inspection device 1 has been described as having each program, such as the learning processing program, stored in advance 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. The same applies to the second embodiment.
[0122] Furthermore, in the above-mentioned first embodiment, the present invention has been described as being applied to the appearance inspection device 1 that judges whether or not chip components MP are normally mounted on a circuit board BD. 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. The same applies to the second embodiment.
[0123] Furthermore, the present invention is not limited to the above-mentioned embodiments and other embodiments. That is, the scope of application of the present invention extends to embodiments in which the above-mentioned embodiments 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 embodiments in which a part of the configuration described in any of the above-mentioned embodiments and other embodiments is extracted and replaced or diverted with a part of the configuration of any of the above-mentioned embodiments and other embodiments, or an embodiment in which a part of the extracted configuration is added to any of the embodiments.
[0124] 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 21 as an acquisition unit, the feature amount extraction unit 27 as a feature amount extraction unit, the abnormality degree calculation unit 24 as an evaluation value calculation unit, the determination unit 25 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 an imaging unit, an acquisition unit, a feature amount extraction unit, an evaluation value calculation unit, a determination unit, and an output unit having various other configurations. [Industrial Applicability]
[0125] The present invention can be used, for example, in an appearance inspection device installed in a factory where products are manufactured. [Explanation of symbols]
[0126] 1, 101...appearance inspection device, 2...control unit, 3...memory unit, 4...communication unit, 5...display unit, 6...operation unit, 7...imaging unit, 21...acquisition unit, 23...feature processing unit, 24...abnormality calculation unit, 25...judgment unit, 27...feature extraction unit, 28...primary judgment unit, 29, 129...secondary judgment unit, 31...data storage unit, 33...feature storage unit, 40...component area extraction unit, MP...chip component, MPS...mounting surface, EL...electrode part, BD...circuit board, PD...electrode pad, ARm...mounting area, ARv...pad exposed area, ARp...component area, ARe...electrode part area, ARd...electrode pad estimated area, ARc...comparison area, Lc...center line, Th...judgment threshold, LN...line, CH...character, IMb...judgment component image, IMg...grayscale image, ARl...left area, ARr...right area, ARw...white pixel area.
Claims
1. An acquisition step of acquiring first image data of an object; a feature extraction step of extracting a first feature from the first image data by using a learning model that has been subjected to a learning process using a teacher data set including second image data in which the object is photographed and a second feature to be extracted from the second image data; an evaluation value calculation step of calculating an evaluation value indicating a separation between the second feature amount and the first feature amount; a determining step of determining the first image data based on a ratio of a specific color in the first image data when the evaluation value is equal to or less than a first threshold value; A method for determining whether or not a particular
2. The determining step includes: The first image data is divided into a first region and a second region, and the first image data is determined based on a difference in the specific color between the first region and the second region. The method according to claim 1 .
3. A part area extraction step of extracting a part area which is an area of a part in an image of the object. and The determining step includes: The part area of the first image data is divided into the first area and the second area, and the first image data is determined based on a difference in the specific color between the part area in the first area and the part area in the second area. The method according to claim 2 .
4. The determining step includes: When the evaluation value is equal to or greater than a second threshold value that is smaller than the first threshold value, the first image data is determined based on a ratio of the specific color in the first image data. The method according to claim 1 .
5. The determining step includes: From the ratio of the specific color in the first image data, it is determined whether the object belongs to a first class or a second class different from the first class. The method according to claim 1 .
6. a display step of displaying a result of the first classification or the second classification determined by the determining step on a display unit; 6. The method of claim 5, further comprising:
7. The determining step includes: a primary determination step of determining whether the evaluation value is equal to or less than the first threshold value; a secondary determination step of determining the first image data based on a ratio of the specific color in the first image data when the evaluation value is equal to or less than the first threshold value; The method according to claim 1, further comprising:
8. a learning model updating step of updating the learning model using the first feature amount when the evaluation value is equal to or less than the first threshold value; 2. The method of claim 1, further comprising:
9. The specific color is white. The method according to any one of claims 1 to 8.
10. For the information processing device, An acquisition step of acquiring first image data of an object; a feature extraction step of extracting a first feature from the first image data by using a learning model that has been subjected to a learning process using a teacher data set including second image data in which the object is photographed and a second feature to be extracted from the second image data; an evaluation value calculation step of calculating an evaluation value indicating a separation between the second feature amount and the first feature amount; a determining step of determining the first image data based on a ratio of a specific color in the first image data when the evaluation value is equal to or less than a first threshold value; A judgment program for executing the above.
11. An acquisition unit that acquires first image data obtained by capturing an image of an object; a feature extraction unit that extracts a first feature from the first image data by using a learning model that has been subjected to a learning process using a teacher data set that includes second image data in which the object is photographed and a second feature to be extracted from the second image data; 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 based on a ratio of a specific color in the first image data when the evaluation value is equal to or less than a first threshold value; A determination device having the above structure.
12. An imaging unit that captures an image of an object; an acquisition unit that acquires first image data captured by the imaging unit; a feature extraction unit that extracts a first feature from the first image data by using a learning model that has been subjected to a learning process using a teacher data set that includes second image data in which the object is photographed and a second feature to be extracted from the second image data; 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 based on a ratio of a specific color in the first image data when the evaluation value is equal to or less than a first threshold 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
Cited By
Microporous membrane, battery separator and battery
US7981536B2
