Image processing device, image processing system, and component mounting machine

The image processing device accurately detects solder on printed circuit boards by analyzing color images and correcting mounting positions, addressing the challenges of unstable solder images and interference from surrounding patterns, thereby enhancing component placement precision.

WO2024189773A1PCT designated stage expired Publication Date: 2024-09-19FUJI CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/009851
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Existing image processing technologies for detecting solder on printed circuit boards often fail due to unstable images of solder or interference from surrounding land patterns, leading to inaccurate detection and mounting position correction.

Method used

An image processing device and system that processes color images of boards to detect solder by acquiring primary color brightness values and selecting pixels within a predetermined range, with an inspection unit identifying solder areas based on minimal differences between luminance values, allowing for accurate detection and correction of mounting positions.

Benefits of technology

Enhances the accuracy of solder detection and mounting position correction on printed circuit boards by effectively distinguishing solder areas from surrounding patterns, improving the precision of component placement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023009851_19092024_PF_FP_ABST
    Figure JP2023009851_19092024_PF_FP_ABST
Patent Text Reader

Abstract

This image processing device processes a color image of a substrate and detects a solder portion on the substrate. The image processing device comprises: a luminance value acquisition unit that acquires a plurality of primary color luminance values for each of a plurality of pixels constituting the color image; and an inspection unit that performs solder inspection for detecting, as the solder portion on the substrate, a region which has aggregated therein, from among the plurality of pixels, pixels in which all of the primary color luminance values are within a prescribed range including a primary color luminance value corresponding to a predetermined solder color and, for each combination of two selected from the primary color luminance values, the absolute value of the difference between the two primary color luminance values is less than a prescribed difference.
Need to check novelty before this filing date? Find Prior Art

Description

Image processing device, image processing system, and component mounting machine

[0001] This specification discloses an image processing device, an image processing system, and a component mounter.

[0002] Conventionally, there has been known a component mounter that takes an image of a board held in a holding position of a board transport device, detects the position of solder printed on the board based on the taken image, and corrects a predetermined mounting position using the detected solder position. For example, Patent Document 1 discloses a device that obtains the amount of positional deviation of the board from the holding position based on the image of the board, obtains the position of the solder and the planned mounting position of the component, and corrects the mounting position of the component by taking into account the amount of deviation of the board from the holding position and the amount of deviation of the solder from the planned mounting position.

[0003] JP 2014-103192 A

[0004] However, in image processing to detect solder, it is difficult to capture a stable image of the solder itself, and the lands around the solder and printed circuit board markings can be captured in the image, so detection of the solder often fails.

[0005] The main object of the present disclosure is to more accurately detect solder.

[0006] The image processing device disclosed herein is an image processing device that processes a color image of a circuit board to detect solder portions on the board, and includes: a luminance value acquisition unit that acquires multiple primary color luminance values ​​for each of multiple pixels that make up the color image; and an inspection unit that performs solder inspection to detect, as the solder portion on the board, an area where, among the multiple pixels, all of the multiple primary color luminance values ​​fall within a predetermined range that includes a primary color luminance value that corresponds to a predetermined solder color, and where, for all combinations of two primary color luminance values ​​selected from the multiple primary color luminance values, the absolute value of the difference between the two primary color luminance values ​​is below a predetermined difference.

[0007] In this image processing device, by appropriately setting the predetermined range and predetermined difference according to the color of the solder joint, it is possible to more accurately detect the solder joint from the color image.

[0008] The image processing system of the present disclosure is an image processing system that processes a color image of a board to detect solder portions on the board, and comprises: an image processing device having: a recognition unit that accepts designation of a solder portion area based on operation by an operator for the color image of the board on which the solder portion is provided, acquires the multiple primary color luminance values ​​of each pixel within the designated area, and recognizes the color of the solder based on the acquired multiple primary color luminance values; a luminance value acquisition unit that acquires multiple primary color luminance values ​​for each of the multiple pixels that make up the color image; and an inspection unit that performs solder inspection to detect, as the solder portion on the board, an area where pixels are grouped together, all of the multiple primary color luminance values ​​being within a predetermined range that includes the primary color luminance value corresponding to the recognized solder color, and where the absolute value of the difference between two primary color luminance values ​​is below a predetermined difference for all combinations of two selected from the multiple primary color luminance values.

[0009] This image processing system recognizes the color of the soldered parts in a color image of the board on which the soldered parts are provided, and performs solder inspection based on the recognized color of the soldered parts. In this way, the primary color luminance value range corresponding to the solder color can be determined based on the actual solder color, allowing for more accurate solder detection.

[0010] The component mounting machine of the present disclosure comprises: a mounting machine main body that mounts components on the board; a board transport unit that transports the board; an imaging unit that can capture a color image of the board; an image processing device that detects, as the solder portion on the board, an area where pixels are gathered in the color image, where all of the plurality of primary color luminance values ​​are within a predetermined range that includes a primary color luminance value that corresponds to a predetermined solder color, and where the absolute value of the difference between two primary color luminance values ​​is below a predetermined difference for all combinations of two selected from the plurality of primary color luminance values, and calculates the amount of positional deviation of the solder portion; and a correction unit that corrects the mounting position of the component on the board based on the amount of positional deviation.

[0011] This component mounting machine can detect the soldered portion more accurately, and as a result, it can improve the accuracy of the mounting position of the component on the board by correcting the mounting position of the component on the board based on the amount of misalignment of the soldered portion.

[0012] FIG. 1 is a schematic diagram of the configuration of component mounting system 1. FIG. 2 is an explanatory diagram showing the state of screen printing. FIG. 3 is a schematic diagram of the configuration of component mounting apparatus 20. FIG. 4 is a block diagram showing the electrical connection relationships of component mounting system 1. FIG. 5 is an explanatory diagram showing an example of component mounting data D1. FIG. 6 is an explanatory diagram showing an example of solder mark data D2. FIG. 7 is a flowchart showing an example of component mounting processing. FIG. 8 is a flowchart showing an example of solder detection processing. FIG. 9 is an explanatory diagram showing the state of board detection processing. FIG. 10 is an explanatory diagram showing the relationship between detection line position, average primary color luminance value Y, and differential value. FIG. 11 is an explanatory diagram showing an example of solder marks M1, M2. FIG. 12 is a flowchart showing an example of mounting position correction processing. FIG. 13 is an explanatory diagram showing the positional relationship between planned solder printing position T and solder S. FIG. 14 is a flowchart showing an example of pre-mounting processing.

[0013] Next, an embodiment of the present disclosure will be described with reference to the drawings. Fig. 1 is a schematic diagram of the configuration of a component mounting system 1. Fig. 2 is an explanatory diagram showing the screen printing process. Fig. 3 is a schematic diagram of the configuration of a component mounting device 20. Fig. 4 is a block diagram showing the electrical connection relationship of the component mounting system 1. Note that the left-right direction in Figs. 1 to 3 is the X direction, the front-back direction is the Y direction, and the up-down direction is the Z direction.

[0014] The component mounting system 1 produces the boards 80 mounted with components by sequentially transporting the boards 80, printing solder S on the boards 80, and then mounting components one after another. As shown in Fig. 1, the component mounting system 1 includes a printing device 10, a plurality of component mounting devices 20 (component mounting devices 20A to 20E) arranged along the transport direction of the boards 80, a reflow device 70, and a management device 90 that manages the entire system.

[0015] The printing device 10 prints solder paste (hereinafter simply referred to as solder S) onto the substrate 80 using a screen mask 100. As shown in FIG. 2 , the screen mask 100 has a rectangular support frame 101 and a mask body 102 fixed to the support frame 101. The mask body 102 has pattern holes (openings) 102a formed therein that correspond to the wiring pattern of the substrate 80.

[0016] The printing apparatus 10 includes a substrate transport device 11 (see FIG. 4 ) that transports a substrate 80, a substrate clamping device 12 (see FIG. 4 ) that secures the substrate 80 to the substrate transport device 11, a flat squeegee 13 extending in the X direction, a print head (not shown) that holds the squeegee 13, an elevator device 14 (see FIG. 4 ) that raises and lowers the squeegee relative to the print head, a head moving device 15 (see FIG. 4 ) that moves the print head in the front-to-back direction (Y-axis direction), and a print control device 16 (see FIG. 4 ). The substrate transport device 11 and the substrate clamping device 12 have the same configuration as the substrate transport device 22 and the substrate clamping device 23 described below. In the printing apparatus 10, the elevator device 14 lowers the squeegee 13 relative to the head, and the head moving device 15 moves the squeegee 13 together with the print head in the front-to-back direction (Y-axis direction), thereby using the squeegee 13 to push solder paste into the pattern holes 102 a in the screen mask 100. As a result, the printing device 10 performs screen printing to apply solder S to the underlying substrate 80 through the pattern holes to form a wiring pattern (solder surface).

[0017] The print control device 16 is configured as a microprocessor centered around a CPU, and in addition to the CPU, it also includes ROM, RAM, storage (e.g., HDD or SSD), etc. Position signals are input to the print control device 16 from, for example, a position sensor (not shown) that detects the movement position of the print head and a position sensor (not shown) that detects the vertical (Z-axis) position of the squeegee 13. The print control device also outputs various control signals to the substrate transport device 11, substrate clamp device 12, lifting device 14, head moving device 15, etc.

[0018] The component mounting device 20 mounts components on a board 80. As shown in Fig. 3, the component mounting device 20 includes a component supply device 21, a mounting machine main body 30 (see Fig. 4), a board transport device 22, a board clamping device 23 (see Fig. 4), a part camera 24, a mark camera 25, and a mounting control device 60 (see Fig. 4).

[0019] The component supply device 21 supplies components to the mounting machine main body 30. The component supply device 21 is configured, for example, as a tape feeder that feeds a tape having a number of cavities for accommodating components. The components supplied by the component supply device 21 have, for example, a number of terminals (e.g., leads or electrodes).

[0020] The substrate transport device 22 drives a pair of conveyor belts to transport the substrate 80 from left to right. The substrate transport device 22 includes, for example, a pair of front and rear conveyor belts 22a installed at a predetermined distance in the front-to-rear direction (Y-axis direction) and stretched across the left and right (X-axis direction), and a pair of front and rear frames 22b that hold the conveyor belts 22a.

[0021] The substrate clamping device 23 has a stop plate provided at the upper end of the pair of frames 22b and a movable piece that moves up and down below the stop plate. The substrate 80 transported into the machine by the substrate transport device 22 is lifted by the rising of the movable piece and abutted against the stop plate, thereby being fixed.

[0022] The mounting machine main body 30 mounts components supplied from the component supply device 21 onto the board 80 transported by the board transport device 22. As shown in FIG. 3 , the mounting machine main body 30 includes a mounting head 40 and a head moving device 50.

[0023] As shown in Fig. 3, the mounting head 40 holds a suction nozzle 41 that picks up (sucks up) a component. A negative pressure source is connected to the suction nozzle 41 via a solenoid valve (on-off valve), not shown, and the suction nozzle 41 receives negative pressure from the negative pressure source to suck up the component. The mounting head 40 is equipped with a Z-axis motor 42 (see Fig. 4) that raises and lowers the suction nozzle 41 relative to the mounting head 40, and a Z-axis position sensor 43 (see Fig. 4) that detects the position of the suction nozzle 41 in the Z-axis direction.

[0024] The head moving device 50 moves the mounting head 40 in the front-to-back and left-to-right directions (X and Y axes). As shown in FIG. 3 , the head moving device 50 includes an X-axis slider 51 and a Y-axis slider 52. The X-axis slider 51 is supported by a pair of upper and lower X-axis guide rails 53 installed on the front surface of the Y-axis slider 52 and extending in the left-to-right direction (X axis direction). The X-axis slider 51 moves in the X axis direction along the X-axis guide rails 53 by driving an X-axis motor 54 (see FIG. 4 ). The Y-axis slider 52 is supported by a pair of left and right Y-axis guide rails 55 installed on the upper portion of the housing 26 and extending in the front-to-back direction (Y axis direction). The Y-axis slider 52 moves in the Y axis direction along the Y-axis guide rails 55 by driving a Y-axis motor 56 (see FIG. 4 ). The position of the X-axis slider 51 in the X axis direction is detected by an X-axis position sensor 57 (see FIG. 4 ). Furthermore, the position of the Y-axis slider 52 in the Y-axis direction is detected by a Y-axis position sensor 58 (see FIG. 4). The mounting head 40 is attached to the X-axis slider 51. Therefore, the mounting head 40 moves along the XY plane (horizontal plane) by driving and controlling the head moving device 50 (X-axis motor 54 and Y-axis motor 56).

[0025] Part camera 24 captures an image of a component from below as the component passes above part camera 24 when the component supplied by component supply device 21 is sucked by suction nozzle 41 and mounted on board 80 transported by board transport device 22. As shown in Fig. 3, part camera 24 is installed between component supply device 21 and board transport device 22. Part camera 24 outputs the captured image to mounting control device 60 (see Fig. 4).

[0026] The mark camera 25 captures images from above of the board 80 carried in by the board transport device 22, components supplied by the component supply device 21, and components mounted on the board 80. The mark camera 25 is, for example, a color camera capable of capturing color images of the object. As shown in FIG. 3, the mark camera 25 is attached to an X-axis slider 51 and moves in the X and Y axes directions together with the mounting head 40 by the head movement device 50. The color image captured by the mark camera 25 is an image in which the color of each pixel can be expressed by three primary color luminance values: R component (red), G component (green), and B component (blue). The primary color luminance values ​​of the R component, G component, and B component are each expressed in 256 gradations from 0 to 255. The mark camera 25 outputs the captured color image to the mounting control device 60 (see FIG. 4).

[0027] As shown in FIG. 4 , the mounting control device 60 is configured as a microprocessor centered around a CPU 61, and in addition to the CPU 61, includes a ROM 62, a storage 63, a RAM 64, and the like. Position signals are input to the mounting control device 60 from the X-axis position sensor 57, the Y-axis position sensor 58, and the Z-axis position sensor 43. Image signals are also input to the mounting control device 60 from the part camera 24 and the mark camera 25. The mounting control device 60 uses the image input from the part camera 24 to calculate the amount of suction deviation of the component picked up by the suction nozzle 41, and uses the image input from the mark camera 25 to calculate the position of the board 80 relative to the mounting machine main body 30, the position of the component mounted on the board 80, and the amount of deviation of the printing position of the solder S of the component relative to the board 80. Meanwhile, the mounting control device 60 outputs drive signals to the component supply device 21, the board transport device 22, the X-axis motor 54, the Y-axis motor 56, the Z-axis motor 42, and the like. The mounting control device 60 also outputs control signals to the parts camera 24 and the mark camera 25 .

[0028] The reflow apparatus 70 is used to electrically connect and fix components onto a substrate 80. As shown in FIG. 4 , the reflow apparatus 70 includes a substrate transport device 71 that transports the substrate 80 on which components are mounted, a heating unit 72 that heats the substrate 80 transported by the substrate transport device, and a reflow control device 73 that controls the entire apparatus. The reflow apparatus 70 melts the solder on the substrate 80 by heating the substrate to a predetermined reflow temperature (e.g., 220° C. or 260° C.) using the heating unit 72. The molten solder solidifies upon cooling, thereby electrically connecting and fixing the components onto the substrate 80.

[0029] The management device 90 is, for example, a general-purpose computer, and as shown in FIG. 4, is composed of a CPU 91, ROM 92, storage 93, RAM 94, etc. Input signals are input to the management device 90 from input devices 95 such as a keyboard and mouse. The management device 90 also outputs display signals to a display device 96 such as a liquid crystal display or OLED display. A production program is stored in the storage 93 of the management device 90. The production program includes component mounting data D1, which defines which types of components are to be mounted in which order at which positions (target mounting positions (XY coordinates)) on the board 80, as shown in FIG. 5, and solder mark data D2, which defines the solder marks M used to correct the target mounting positions, as shown in FIG. 6. The solder marks M will be described later. The management device 90 is communicatively connected to the print control device 16 of the printing device 10, the mounting control device 60 of the component mounting device 20, and the reflow control device 73 of the reflow device 70, and exchanges various information and control signals.

[0030] Next, the operation of the component mounting system 1 configured as described above will be described. First, the screen printing process executed by the print control device 16 of the printing device 10 will be described. When this process starts, the print control device 16 controls the board transport device 11 to transport the board 80 inside the device. Next, the print control device 16 controls the board clamp device 12 to fix the board 80 to the board transport device 11. Next, the print control device 16 controls the head moving device to move the squeegee 13 while lowering the squeegee 13. This causes the solder S to be printed on the board 80 placed on the underside of the screen mask 100. Thereafter, the print control device 16 controls the board clamp device 12 to release the fixation of the board 80, and controls the board transport device 11 to transport the board 80 downstream.

[0031] Next, the component mounting process executed by each component mounting device 20 will be described with reference to Figures 7 to 13. Figure 7 is a flowchart showing an example of the component mounting process. This process is executed by the CPU 61 of the mounting control device 60 provided in the component mounting device 20 after receiving a production program from the management device 90 and storing it in the storage 63.

[0032] When this process begins, the CPU 61 first controls the substrate transport device 22 to transport the substrate 80 from the upstream side (S100). After transporting the substrate 80 to a predetermined position, the CPU 61 controls the substrate clamp device 23 to fix the substrate 80 to the substrate transport device 22. Next, the CPU 61 controls the X-axis motor 54 and the Y-axis motor 56 to move the mark camera 25 to an imaging position, and then controls the mark camera 25 to capture a color image of the substrate 80 (S102). Next, the CPU 61 recognizes the fiducial marks F1 and F2 from the obtained color image and sets the position of the fiducial mark F1 or the fiducial mark F2 to the substrate representative position Pa (Xa, Ya) (S104). Here, the substrate representative position Pa (Xa, Ya) is the center of gravity of the fiducial mark F1 or the fiducial mark F2 in the mounting machine coordinate system (in this embodiment, the center of gravity of the fiducial mark F1). The mounter coordinate system is a coordinate system in which the origin is a predetermined position of the mounter main body 30, the board transport direction is the X axis, and the direction perpendicular to that is the Y axis. Then, the CPU 61 executes the solder detection process shown in Figure 8 (S106).

[0033] When the solder detection process begins, the CPU 61 acquires the primary color luminance values ​​of the R, G, and B components from each pixel of the color image (S200). Next, the CPU 61 scans the pixels to extract pixels whose primary color luminance values ​​of the R, G, and B components fall within the gray luminance value range Gr (S202). Here, the gray luminance value range Gr is the range of primary color luminance values ​​of the R, G, and B components determined in the pre-mounting process described below, and is, for example, a range of 86 to 169. The CPU 61 extracts pixels whose primary color luminance values ​​of the R, G, and B components are all 86 to 169. Next, the CPU 61 sets pixels in the extracted region whose primary color luminance values ​​of the R, G, and B components are equivalent as gray regions (S204). Specifically, the CPU 61 sets as gray regions a collection of pixels that satisfy the following equations (1), (2), and (3): In the following description, the predetermined difference H is a predetermined value, for example, a value between 10 and 20. The gray luminance value range is set to a relatively wide range so that the solder S can be detected even if there is some variation in the shading of the solder color, but if the difference between R, G, and B is large, the resulting color will be different from gray.

[0034] |R-G|<H…(1) |G-B|<H…(2) |B-R|<H…(3)

[0035] 9 (S206). The detection line L is used to detect changes in the average primary color luminance value Y in the color image, which is expressed by the following equation (4). The detection line L is set so as to straddle the area of ​​the solder S and other areas, assuming that the solder S is printed in the correct position. The pattern of the detection line L, such as its length, placement position, and number, is empirically determined to be a range in which the edge C of the solder S can be accurately detected, and is set in advance for each piece of solder S to be detected in this process.

[0036] Y=0.3×R+0.59×G+0.11×B…(4)

[0037] Next, the CPU 61 detects the edges C of the solder S (S208). Specifically, the CPU 61 first calculates a differential value from the average primary color luminance value Y on the detection line, as shown in Fig. 10. Next, the CPU 61 detects the position of the detection line where the differential value is maximized as the edge position on the detection line L. Then, the same process is performed on all detection lines L to detect the edges C for each of the multiple solders S.

[0038] The CPU 61 then detects solder marks M based on the detected edge C. Solder marks M (solder marks M1 and M2 in this embodiment) are used to correct the target mounting positions of components to be mounted on the board 80 by referencing solder mark data D2. Solder marks M1 and M2 include multiple solder marks S. As shown in FIGS. 6 and 11, solder mark M1 includes three or more (e.g., six) solder marks S (solder marks S11 to S16) located in the front left corner of the board 80. Solder mark M2 includes three or more (e.g., six) solder marks S (solder marks S21 to S26) located in the rear right corner of the board 80. Solder mark M2 is located diagonally across from solder mark M1 on the board 80, but is not point-symmetric with solder mark M1 with respect to the center of the board 80. Information related to this type of solder mark M is defined as solder mark data D2 shown in FIG. 6. Solder mark data D2 stores the design center of gravity position (design solder position Pd) of each solder S that makes up solder marks M1 and M2, as well as design mark position Pf, which is the representative position of each solder mark M1 and M2. Solder mark data D2 also stores the type of component that will be mounted on the solder S that makes up each solder mark M, and identification information for the component mounting device 20 that will mount those components. The solder S (solder pieces S11-S16, S21-S26) that make up solder mark M1 and solder mark M2 is the solder S on which components will be mounted by component mounting device 20E (component mounting device 20 arranged furthest downstream in the board transport direction), as shown in FIG. The reason for setting such multiple solders S as solder marks M is that if solder S on which components are mounted by a component mounting device 20 (component mounting devices 20A to 20D) other than component mounting device 20E is set as solder mark M, the component will be mounted on the solder S midway, making it impossible to detect the solder mark M.

[0039] Here, the process for detecting the solder marks M will be described. First, the CPU 61 calculates the actual solder position Pb (Xb, Yb) for each solder S, which is the actual position of each solder S in the mounter coordinate system, based on the color image (S210). The actual solder position Pb (Xb, Yb) is, for example, the center of gravity of the area surrounded by the edge C detected in S208. Next, the CPU 61 converts the actual solder position Pb (Xb, Yb) in the mounter coordinate system to the actual solder position Pc (Xc, Xc) in the board coordinate system (S212). Note that the board coordinate system is a coordinate system in which the representative position of the board 80 (in this embodiment, the center of gravity of the fiducial mark F1) is the origin, the direction along the board transport direction is the X-axis, and the direction perpendicular to that is the Y-axis. Specifically, the CPU 61 subtracts the value of the X-axis coordinate of the board representative position Pa from the value of the X-axis coordinate of the actual solder position Pb, as shown in the following equation (5), and subtracts the value of the Y-axis coordinate of the board representative position Pa from the value of the Y-axis coordinate of the actual solder position Pb, as shown in the following equation (6).

[0040] Xc=Xb-Xa...(5) Yc=Yb-Ya...(6)

[0041] Next, the CPU 61 acquires the designed solder position Pd (Xd, Yd) of each solder S in the board coordinate system from the solder mark data D2 shown in FIG. 6 (S214). The designed solder position Pd is, for example, the designed center of gravity position of each solder S. Next, the CPU 61 determines whether the actual solder positions Pc of all solders S for which edges C have been detected match the designed solder position Pd within a predetermined range (S216). Specifically, the CPU 61 determines whether the actual solder position Pc of each solder S satisfies the following equations (7) and (8). Note that α is a predetermined value, for example, a value between 0.01 and 0.05.

[0042] (1-α)×Xd<Xc<(1+α)×Xd…(7) (1-α)×Yd<Yc<(1+α)×Yd…(8)

[0043] If it is determined that the actual solder positions Pc of all solders S whose edges C have been detected do not match the designed solder positions Pd within a predetermined range, the CPU 61 determines that the solder marks M have not been detected, outputs an error (S218), and terminates the component mounting process. On the other hand, if it is determined that the actual solder positions Pc of all solders S whose edges C have been detected match the designed solder positions Pd within a predetermined range, the CPU 61 determines that the solder marks M have been detected and calculates the actual mark positions Pe, which are the representative positions of each solder mark M in the board coordinate system, from the actual solder positions Pc (S220). The actual mark positions Pe are, for example, the average positions in the X-axis and Y-axis directions of each solder S included in each solder mark M. The CPU 61 then terminates this process and proceeds to S108 of the component mounting process shown in FIG. 7.

[0044] This component mounting device 20 extracts pixels within the gray luminance value range Gr, and among the regions where pixels having primary color luminance values ​​within the gray luminance value range Gr are collected, regions where the difference in primary color luminance values ​​between the R, G, and B components is less than a predetermined difference H are set as gray regions. Therefore, by setting the gray luminance value range Gr and the predetermined difference H to appropriate values, solder S can be detected more accurately. Furthermore, although solder mark M1 and solder mark M2 are located diagonally across from each other on the board 80, they are not located in positions that are point-symmetrical with respect to the center of the board 80. For this reason, for example, if the left-right orientation of the board 80 is reversed during transportation, solder mark M will not be detected in this process. Therefore, even if both solder marks M1 and M2 contain the same number of solder pieces S of the same shape, it is possible to prevent solder marks M1 and M2 from being recognized incorrectly. Furthermore, it is possible to detect whether the left-right orientation of the board 80 is reversed.

[0045] Next, the CPU 61 executes the mounting position correction process shown in Fig. 12 (S108). When this process begins, the CPU 61 acquires the design mark position Pf1 (Xf1, Yf1), which is the design position of one of the solder marks M (in this embodiment, solder mark M1) in the board coordinate system from the solder mark data D2 shown in Fig. 6 (S300). The design mark position Pf is, for example, the average position in the X-axis and Y-axis directions of the design solder positions Pd of each solder S (solder pieces S11 to S16) included in solder mark M1.

[0046] Next, the CPU 61 calculates the amount of solder misalignment (S302). Specifically, the CPU 61 subtracts the X-axis coordinate value of the actual mark position Pe of the solder mark M1 from the X-axis coordinate value of the design mark position Pf1, as shown in the following equation (9), and also subtracts the Y-axis coordinate value of the actual mark position Pe of the solder mark M1 from the Y-axis coordinate value of the design mark position Pf, as shown in the following equation (10), to calculate the amount of solder misalignment for the solder mark M1. The reason why the amount of solder misalignment is calculated using a single solder mark M is as follows. That is, because the solder S is printed on the board 80 using the screen mask 100, the printing position of the solder S is uniformly misaligned with respect to the board 80. Therefore, no matter which solder mark M's actual mark position Pe and design mark position Pf are used to calculate the amount of solder misalignment, the amount of solder misalignment will be the same.

[0047] ΔX=Xf1-Xe...(9) ΔY=Yf1-Ye...(10)

[0048] Then, the CPU 61 corrects the target mounting position Pg of each component (S304). Specifically, as shown in the following equations (11) and (12), the CPU 61 adds ΔX to the X-axis coordinate of the target mounting position Pg to determine the X-axis coordinate of the corrected target mounting position Pg, and adds ΔY to the Y-axis coordinate of the target mounting position Pg to determine the Y-axis coordinate of the corrected target mounting position Pg. Thereafter, the CPU 61 ends this process and proceeds to S110 of the component mounting process shown in FIG. 7.

[0049] Xg←Xg+ΔX…(11) Yg←Yg+ΔY…(12)

[0050] Next, the CPU 61 controls the head moving device 50 to move the suction nozzle 41 above the component supply position of the component supply device 21 that supplies the component to be mounted, and then performs a suction operation to suck the component with the suction nozzle 41 (S110). In the suction operation, the CPU 61 drives and controls the Z-axis motor 42 to lower the suction nozzle 41 until the tip (suction port) of the suction nozzle 41 abuts the component, and applies negative pressure to the suction port of the suction nozzle 41. Next, the CPU 61 performs a mounting operation to move the picked-up component to the target mounting position Pg on the board 80 and mount it there (S112). In the mounting operation, the CPU 61 controls the head moving device 50 to move the component picked up by the suction nozzle 41 above the corrected target mounting position Pg on the board 80, and then drives and controls the Z-axis motor 42 to lower the suction nozzle 41 until the component picked up by the suction nozzle 41 abuts the board 80, and applies positive pressure to the suction port of the suction nozzle 41. During the mounting operation, the CPU 61 controls the part camera 24 to capture an image of the component picked up by the suction nozzle 41 as it passes above the part camera 24, calculates the amount of suction deviation based on the captured image, and adds the amount of suction deviation to the mounting position corrected in the mounting position correction process to correct the target mounting position. By mounting the component in this position, the component leads are placed on the solder S. By repeatedly performing these suction and mounting operations, a predetermined number of components of a predetermined type are mounted on the board 80. The CPU 61 then controls the board transport device 22 to transport the board 80 downstream (S114), and ends this process.

[0051] In this component mounting system 1, when solder S is printed on the substrate 80, the position of the solder S on the substrate 80 may be uniformly shifted from the intended solder printing position T, as shown in FIG. 13 , due to misalignment of the screen mask 100 relative to the substrate 80. The component mounting device 20 corrects the target mounting position Pg using the misalignment amount (ΔX, ΔY) of the solder mark M. Therefore, even if the solder S is printed at a position misaligned with respect to the wiring pattern of the substrate 80, the component mounting device 20 can mount the component on the substrate 80 so that the component's terminals (leads and electrodes) are positioned on the solder S. Furthermore, when the reflow process is performed in the reflow device 70, the solder moves onto the wiring pattern on the substrate 80 due to the self-alignment effect. Therefore, a component mounted on the substrate 80 so that its terminals (leads and electrodes) are positioned on the solder S moves together with the solder to the appropriate position on the wiring pattern. Therefore, the component can be positioned in the appropriate position on the substrate 80 after reflow.

[0052] Next, the pre-mounting process executed by the CPU 91 of the management device 90 prior to the above-described mounting process will be described using FIG. 14 . When this process begins, the CPU 91 first acquires a color image of the board 80 on which solder S has been printed from the component mounting device 20 (S400). Next, the CPU 91 accepts, based on the operator's operation via the input device 95, the specification of the solder S to be set for the solder mark M (solder marks M1, M2) (S402). Next, based on the operator's operation via the input device 95, the CPU 91 accepts the specification of the detection line L to be used to detect the edge C for the specified solder S (S404). The CPU 91 then detects the edge C of the specified solder S based on the specified detection line L (S406). The detection of the edge C is as described above.

[0053] Next, the CPU 91 acquires the minimum and maximum values ​​of the primary color luminance values ​​of the R, G, and B components within the area surrounded by the edge C (S408). Then, the CPU 91 sets the range from the minimum to the maximum value of the primary color luminance values ​​of the R, G, and B components as a gray luminance value range Gr (S410), and outputs the gray luminance value range Gr to the component mounting device 20. Thereafter, the CPU 91 ends this process.

[0054] The component mounting device 20 extracts pixels in S204 of the solder detection process using the gray luminance value range Gr determined in the pre-mounting process. In this way, by determining the gray luminance value range Gr based on the actual color of the solder S, it becomes easier to accurately extract pixels having a range of primary color luminance values ​​that corresponds to the color of the solder S.

[0055] Here, the correspondence between the components of this embodiment and the components of the present disclosure will be clarified. That is, the mounting control device 60 of this embodiment corresponds to the image processing device of the present disclosure, the CPU 61 that executes the process at S200 of the solder detection process corresponds to the brightness value acquisition unit of the image processing device, and the CPU 61 that executes the processes at S202 and S204 of the solder detection process corresponds to the inspection unit of the image processing device. Furthermore, the CPU 61 that executes the process at S300 of the mounting position correction process corresponds to the design position acquisition unit, the CPU 61 that executes the process at S220 of the solder detection process corresponds to the actual position calculation unit, and the CPU 61 that executes the process at S302 of the mounting position correction process corresponds to the solder misalignment calculation unit. Furthermore, the component mounting system 1 corresponds to the image processing system, the CPU 91 that executes the pre-mounting process corresponds to the recognition unit, the mounting control device 60 corresponds to the image processing device in the component mounting system, the CPU 61 that executes the process at S200 of the solder detection process corresponds to the brightness value acquisition unit of the image processing system, and the CPU 61 that executes the processes at S202 and S204 of the solder detection process corresponds to the inspection unit of the image processing system. Furthermore, the mounter main body 30 corresponds to the mounter main body, the board transport device 22 corresponds to the transport unit, the mounting control device 60 corresponds to the image processing device, and the CPU 61 that executes the process of S304 of the mounting position correction process corresponds to the correction unit. Furthermore, the CPU 61 that executes the process of S104 of the component mounting process corresponds to the actual board position determination unit, the CPU 61 that executes the process of S300 of the mounting position correction process corresponds to the designed solder position acquisition unit, the CPU 61 that executes the process of S210 of the board detection process corresponds to the actual solder position determination unit, and the CPU 61 that executes the process of S212 of the board detection process and the process of S302 of the mounting position correction process correspond to the solder misalignment amount calculation unit of the component mounter.

[0056] It goes without saying that the present disclosure is not limited to the above-described embodiments, and can be implemented in various forms as long as they fall within the technical scope of the present disclosure.

[0057] In the solder detection process of the above-described embodiment, the CPU 61 may recognize the solder marks M by pattern matching or the like, and may also acquire the actual position of the recognized solder marks M relative to the board 80. In this case, for example, the size, shape, color, etc. of the solder marks M may be registered in advance in the pre-mounting process.

[0058] In the above-described embodiment, the gray luminance value range Gr is determined by the pre-mounting process. However, the gray luminance value range Gr may have lower and upper limit values ​​that are directly input by the operator via the input device 95.

[0059] In the above-described embodiment, the management device 90 executes the pre-mounting process. However, the mounting control device 60 may execute the pre-mounting process.

[0060] In the image processing device of the present disclosure, by appropriately setting the predetermined range and predetermined difference according to the color of the solder joint, it is possible to more accurately detect the solder joint from a color image.

[0061] The image processing device disclosed herein may include a design position acquisition unit that acquires the design position of the solder portion relative to the board, an actual position calculation unit that executes an actual position calculation process that calculates the actual position of the solder portion relative to the board based on the solder inspection, and a solder misalignment calculation unit that calculates the amount of deviation between the design position and the actual position. Because accurate detection of the solder portion is required to calculate the amount of deviation of the solder portion, it is highly significant to accurately detect the solder portion from a color image using the image processing device disclosed herein. The significance of applying the image processing device disclosed herein is significant. In this case, the design position acquisition unit acquires the design position of a predetermined specific solder portion among multiple solder portions provided on the board, and the actual position calculation unit calculates the actual position of the specific solder portion relative to the board. The specific solder portion may be three or more solder portions provided at different positions. This allows the position of the specific solder portion relative to the board to be accurately detected, and the solder misalignment amount to be calculated based on the position of the specific solder portion.

[0062] In the image processing device of the present disclosure, the solder portions may be printed on the board by screen printing. If the solder portions are printed on the board using a screen mask and the positions of the printed solder portions deviate from the intended printing positions on the board, each solder portion will be uniformly deviated from the intended printing positions. For this reason, it is very significant to perform solder inspection on solder portions printed on the board using a screen mask.

[0063] The image processing system disclosed herein recognizes the color of the soldered portions in a color image of the circuit board on which the soldered portions are provided, and performs solder inspection based on the recognized color of the soldered portions. This allows the primary color luminance value range corresponding to the solder color to be determined based on the actual solder color, allowing for more accurate solder detection.

[0064] The component mounting machine of the present disclosure can detect the solder portion more accurately, and as a result, the mounting position of the component on the board can be corrected based on the amount of misalignment of the solder portion, thereby improving the accuracy of the mounting position of the component on the board.

[0065] In the component mounter of the present disclosure, the image processing device may have: an actual board position determination unit that determines an actual board position, which is the actual position of the board relative to the mounter body, based on an image of the board transported by the board transport unit; a designed solder position acquisition unit that acquires a designed solder position, which is the designed position of the solder portion relative to the board; an actual solder position determination unit that determines an actual solder position, which is the actual position of the solder portion relative to the mounter body, based on an image of the board transported by the board transport unit; and a solder misalignment calculation unit that converts the actual solder position relative to the mounter body to a solder position relative to the board based on the actual board position and calculates a misalignment amount of the solder portion based on the converted actual solder position and the designed solder position. This allows the mounter to accurately calculate the misalignment amount of the solder using the image of the board, and to place components in the correct positions on the board.

[0066] The present disclosure is applicable to the component mounting system manufacturing industry and the like.

[0067] 1 Component mounting system, 10 Printing device, 11 Substrate transport device, 12 Substrate clamping device, 13 Squeegee, 14 Lifting device, 15 Head moving device, 16 Printing control device, 20, 20A to 20E Component mounting device, 21 Component supply device, 22 Substrate transport device, 23 Substrate clamping device, 24 Parts camera, 25 Mark camera, 26 Housing, 30 Mounting machine body, 40 Mounting head, 41 Suction nozzle, 42 Z-axis motor, 43 Z-axis position sensor, 45 Suction nozzle, 50 Head moving device, 51 X-axis slider, 52 Y-axis slider, 53 X-axis guide rail, 54 X-axis motor, 55 Y-axis guide rail, 56 Y-axis motor, 57 X-axis position sensor, 58 Y-axis position sensor, 60 Mounting control device, 61 CPU, 62 ROM, 63 Storage, 64 RAM, 70 reflow device, 71 substrate transport device, 72 heating section, 73 reflow control device, 80 substrate, 90 management device, 91 CPU, 92 ROM, 93 storage, 94 RAM, 95 input device, 96 display device, 100 screen mask, 101 support frame, 102 mask body, 102a pattern hole, C edge, D1 component mounting data, D2 solder mark data, F1, F2 fiducial mark, L detection line, M, M1, M2 solder mark, S, S11 to S16, S21 to S26 solder, T intended solder printing position.

Claims

1. An image processing device that processes a color image of a circuit board to detect solder portions on the circuit board, comprising: a luminance value acquisition unit that acquires a plurality of primary color luminance values ​​for each of a plurality of pixels constituting the color image; and an inspection unit that performs solder inspection to detect, as the solder portion on the circuit board, an area where, among the plurality of pixels, all of the plurality of primary color luminance values ​​fall within a predetermined range including a primary color luminance value corresponding to a predetermined solder color, and where, for all combinations of two selected from the plurality of primary color luminance values, the absolute value of the difference between two primary color luminance values ​​is below a predetermined difference.

2. An image processing device as described in claim 1, comprising: a design position acquisition unit that acquires a design position of the solder portion relative to the board; an actual position calculation unit that executes an actual position calculation process that calculates the actual position of the solder portion relative to the board based on the solder inspection; and a solder deviation amount calculation unit that calculates the amount of deviation between the design position and the actual position.

3. An image processing device as described in claim 2, wherein the design position acquisition unit acquires a design position of a predetermined specific solder part among a plurality of solder parts to be provided on the board, the actual position calculation unit calculates an actual position of the specific solder part relative to the board, and the specific solder parts are three or more solder parts each provided at a different position.

4. An image processing device according to any one of claims 1 to 3, wherein the solder portion is printed on the substrate by screen printing.

5. An image processing system for processing a color image of a circuit board to detect solder parts on the circuit board, comprising: an image processing device having: a recognition unit that receives designation of a solder part area based on an operator's operation for a color image of the circuit board on which the solder parts are provided, and acquires the multiple primary color luminance values ​​of each pixel within the designated area and recognizes the color of the solder based on the acquired multiple primary color luminance values; a luminance value acquisition unit that acquires multiple primary color luminance values ​​for each of the multiple pixels constituting the color image; and an inspection unit that performs solder inspection to detect, as the solder part on the circuit board, an area consisting of a group of pixels whose multiple primary color luminance values ​​are all within a predetermined range including the primary color luminance value corresponding to the recognized solder color and whose absolute value of the difference between two primary color luminance values ​​is below a predetermined difference for all combinations of two selected from the multiple primary color luminance values.

6. A component mounter which mounts components at mounting positions on a board having solder parts, comprising: a mounter main body which mounts components on the board; a board transport unit which transports the board; an imaging unit which is capable of capturing a color image of the board; an image processing device which detects, as the solder part on the board, an area where pixels are gathered in the color image, where all of the plurality of primary color luminance values ​​are within a predetermined range including a primary color luminance value corresponding to a predetermined solder color and where, for all two combinations selected from the plurality of primary color luminance values, the absolute value of the difference between two primary color luminance values ​​is below a predetermined difference, and calculates an amount of positional deviation of the solder part; and a correction unit which corrects the mounting position of the component on the board based on the amount of positional deviation.

7. A component mounting machine as described in claim 6, wherein the image processing device has: an actual board position determination unit which determines an actual board position, which is the actual position of the board relative to the mounting machine body, based on an image of the board transported by the board transport unit; a designed solder position acquisition unit which acquires a designed solder position, which is the designed position of the solder portion relative to the board; an actual solder position determination unit which determines an actual solder position, which is the actual position of the solder portion relative to the mounting machine body, based on an image of the board transported by the board transport unit; and a solder deviation amount calculation unit which converts the actual solder position relative to the mounting machine body to a solder position relative to the board based on the actual board position, and calculates a position deviation amount of the solder portion based on the converted actual solder position and the designed solder position.

Citation Information

Patent Citations

  • Method of detecting solder ball, and detector therefor

    JP2005106477A

  • Electronic component mounting system, and electronic component mounting method

    JP2008294033A

  • Image processing system and electronic component mounting machine

    JP2012243276A