Image processing device

The image processing device employs dual illumination conditions to address light reflection issues, improving the detection accuracy of characteristic parts and ensuring precise component positioning by minimizing light-induced expansion in images.

WO2024224484A1PCT designated stage expired Publication Date: 2024-10-31FUJI CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/016307
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Conventional image processing methods for detecting characteristic parts on components under different lighting conditions suffer from insufficient detection accuracy due to light reflection issues, where features closer to the light source appear expanded, making it difficult to accurately identify and position components during mounting processes.

Method used

An image processing device that uses dual illumination conditions – one from the side and another from below – to capture images of components, allowing for accurate detection of characteristic parts by minimizing light reflection artifacts, thereby improving detection accuracy.

Benefits of technology

The dual illumination approach enhances the detection accuracy of characteristic parts by preventing light-induced expansion in images, enabling precise positioning and mounting of components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023016307_31102024_PF_FP_ABST
    Figure JP2023016307_31102024_PF_FP_ABST
Patent Text Reader

Abstract

This image processing device detects a feature portion of a component having a body and a plurality of feature portions provided on the underside of the body by using a captured image of the component. The image processing device is provided with: an image acquisition unit that acquires a plurality of images obtained by capturing an image of the component a plurality of times by illuminating the component with light under a plurality of illumination conditions including a first illumination condition using a first light source capable of illuminating a component at a predetermined position with light from the side, and a second illumination condition using a second light source capable of illuminating the component at the predetermined position from the bottom; a first detection unit that uses a first image captured of the component under the first illumination condition to detect a first feature portion, which is one of the plurality of feature portions of the component; and a second detection unit that uses a second image captured of the component under the second illumination condition to detect a second feature portion, which is one of the plurality of feature portions of the component and is closer to the first light source than is the first feature portion at the time of capturing the image.
Need to check novelty before this filing date? Find Prior Art

Description

Image processing device

[0001] This specification discloses an image processing device.

[0002] Conventionally, there has been known an image processing device that is applied to a component mounter that mounts components on a board, captures images of a component from below irradiated with light under a plurality of lighting conditions using different illumination, and inspects the component using the obtained images. For example, Patent Document 1 discloses an image processing device that detects a component pick-up deviation from the nozzle using an image captured with light irradiated from above the component picked up by the nozzle, and detects bumps on the component using an image captured with light irradiated from the side.

[0003] Japanese Patent Application Laid-Open No. 2005-107716

[0004] However, in an image captured from below with light irradiating the component from the side, bumps that are close to the light source may reflect light strongly and appear distended. In such cases, detecting bumps using an image cannot achieve sufficient detection accuracy.

[0005] A primary objective of the present disclosure is to improve the accuracy of detecting features in parts.

[0006] The image processing device disclosed herein is an image processing device that detects feature parts of a part having a main body and a plurality of feature parts provided on the underside of the main body using an image of the part, and includes: an image acquisition unit that acquires a plurality of images of the part by irradiating light onto the part under a plurality of illumination conditions, including a first illumination condition using a first light source that can irradiate light from the side onto the part at a predetermined position, and a second illumination condition using a second light source that can irradiate light from below onto the part at the predetermined position; a first detection unit that detects a first feature part that is one of the plurality of feature parts of the part using a first image of the part imaged under the first illumination condition; and a second detection unit that detects a second feature part that is one of the plurality of feature parts of the part and is closer to the first light source than the first feature part at the time of image capture, using a second image of the part imaged under the second illumination condition.

[0007] In this image processing device, in a first image obtained by capturing an image of a component under a first illumination condition, the contour of the second feature tends to appear expanded in a predetermined direction compared to the contour of the first feature. This is because the second feature is closer to the first light source than the first feature and reflects light from the first light source more strongly in the predetermined direction than the first feature. Therefore, when attempting to detect the first and second feature using the first image, the second feature appears expanded in the predetermined direction, which may prevent the second feature from being detected with sufficient accuracy. In a second image obtained by capturing an image of a component under a second illumination condition, the contour of the second feature does not appear expanded in the predetermined direction compared to the contour of the first feature, as in the first image. This is because the distances from the second light source to each feature during image capture are approximately equal, and the second feature does not reflect light from the second light source more strongly in the predetermined direction than the first feature. This image processing device detects the second feature using a second image in which the second feature does not expand in a predetermined direction compared to the first image, thereby improving the accuracy of feature detection.

[0008] 1 is a perspective view showing a schematic configuration of a component mounter 10. FIG. 2 is a longitudinal sectional view before an electronic component C is mounted on a board S. FIG. 3 is a longitudinal sectional view after an electronic component C is mounted on a board S. FIG. 4 is a perspective view of a side light source 26. FIG. 5 is a longitudinal sectional view of a downward light source 28. FIG. 6 is a block diagram showing electrical connection relationships of the component mounting system 1. FIG. 7 is a flowchart showing an example of a component mounting processing routine. FIG. 8 is an explanatory diagram showing an example of a side illumination image Im1. FIG. 9 is an explanatory diagram showing an example of a downward illumination image Im2. FIG. 10 is a flowchart showing an example of a tentative center calculation processing subroutine. FIG. 11 is a flowchart showing an example of a center calculation processing subroutine. FIG. 12 is an explanatory diagram showing an example of a binarized image Im4. FIG. 13 is an explanatory diagram showing the position of a center Q relative to a reference point of the binarized image Im4.

[0009] Next, an embodiment of the present disclosure will be described with reference to the drawings. Fig. 1 is a perspective view showing a schematic configuration of a component mounter 10. Figs. 2A and 2B are vertical cross-sectional views of an electronic component C and a board S. Fig. 3 is a perspective view of a side light source 26. Fig. 4 is a vertical cross-sectional view of a downward light source 28. Fig. 5 is a block diagram showing the electrical connection relationship of the component mounting system 1. In Figs. 1 and 3, the left-right direction is the X-axis direction, the front-back direction is the Y-axis direction, and the up-down direction is the Z-axis direction.

[0010] As shown in FIG. 1 , the component mounting system 1 includes a component mounter 10 and a management device 70. The component mounter 10 retrieves electronic components C supplied from a component supply device 21 and mounts them on a board S. As shown in FIG. 1 , the component mounter 10 includes the component supply device 21, a transport device 22, a head moving device 40, a head 50, a part camera 24, a mark camera 25, a side light source 26 (see FIG. 3 ), a downward light source 28 (see FIG. 4 ), a disposal box 38, and a control device 60 (see FIG. 5 ). As shown in FIGS. 2A and 2B , the electronic component C includes a body B that is rectangular in plan view and a plurality of pins P arranged at predetermined intervals on the back surface of the body B. In this embodiment, the pins P have a higher reflectivity when irradiated with light than the back surface of the body B. Therefore, in an image of the electronic component C captured from the back surface side of the body B, the area corresponding to the pins P has a higher brightness value than the surrounding area. Therefore, the pin P is a characteristic part that indicates the characteristics of the electronic component C in the image of the electronic component C.

[0011] Examples of the component supply device 21 include a tray supply device 21a that supplies trays having a number of storage pockets for storing electronic components C, and a tape feeder 21b that feeds tapes having a number of cavities for storing electronic components C. In the tray supply device 21a of this embodiment, the same type of electronic components C are stored in one tray. Therefore, the electronic components C stored in a common tray share common shape data. In the tape feeder 21b of this embodiment, the same type of electronic components C are stored in multiple cavities provided in one tape. Therefore, the electronic components C stored in a common tape share common shape data. Shape data will be described later.

[0012] The transport device 22 drives a pair of conveyor belts to transport the substrate S as the object to be inserted from left to right. The transport device 22 has, for example, a pair of conveyor belts that are installed at a predetermined interval in the front-to-back direction (Y-axis direction) and span across the left and right (X-axis direction).

[0013] The head moving device 40 moves the head 50 in the front-to-back and left-to-right directions (X and Y axes) and, as shown in FIG. 1 , includes an X-axis slider 42 and a Y-axis slider 44. The X-axis slider 42 is supported by a pair of upper and lower X-axis guide rails 43 installed on the front surface of the Y-axis slider 44 and extending in the left-to-right direction (X axis). The X-axis slider 42 moves in the X axis direction along the X-axis guide rails 43 by driving an X-axis actuator 46 (see FIG. 5 ). The Y-axis slider 44 is supported by a pair of left and right Y-axis guide rails 45 installed on the upper portion of the housing 12 and extending in the front-to-back direction (Y axis). The Y-axis slider 44 moves in the Y axis direction along the Y-axis guide rails 45 by driving a Y-axis actuator 48 (see FIG. 5 ). The position of the X-axis slider 42 in the X axis direction is detected by an X-axis position sensor 47 (see FIG. 4 ). Furthermore, the position of the Y-axis slider 44 in the Y-axis direction is detected by a Y-axis position sensor 49 (see FIG. 5). A head 50 is attached to the X-axis slider 42. Therefore, the head 50 moves along the XY plane (horizontal plane) by driving and controlling the head moving device 40 (X-axis actuator 46 and Y-axis actuator 48).

[0014] The head 50 includes a suction nozzle 51 that picks up (suctions) and holds an electronic component C. A negative pressure source is connected to the suction nozzle 51 via a solenoid valve (on-off valve), not shown, and the suction nozzle 51 receives negative pressure from the negative pressure source to suck up the electronic component C. The suction nozzle 51 moves up and down (in the Z-axis direction) by driving a Z-axis actuator 52 (see FIG. 5). The position of the suction nozzle 51 in the Z-axis direction is detected by a Z-axis position sensor 53 (see FIG. 5).

[0015] When the head 50 picks up an electronic component C supplied by the component supply device 21 and mounts (inserts) it onto the board S transported by the transport device 22, the part camera 24 captures an image of the electronic component C from below as the electronic component C sucked by the suction nozzle 51 passes above the part camera 24. As shown in FIG. 1 , the part camera 24 is installed between the component supply device 21 and the transport device 22. The image captured by the part camera 24 is output to the control device 60.

[0016] The mark camera 25 captures images from above of the board S carried in by the transport device 22 and the electronic components C supplied by the component supply device 21. As shown in Fig. 1, the mark camera 25 is attached to an X-axis slider 42, and moves in the X and Y-axis directions together with the head 50 by the head moving device 40. The image captured by the mark camera 25 is output to the control device 60.

[0017] 3, the side light source 26 irradiates light from the side onto the electronic component C (tips of the pins P) when the part camera 24 captures an image of the electronic component C. The side light source 26 irradiates laser light in a direction perpendicular to the optical axis 36a of the part camera 24 (see FIG. 4).

[0018] As shown in FIG. 4 , the downward light source 28 irradiates light from below the electronic component C (directly below or diagonally below the electronic component C) when an image of the electronic component C is captured by the parts camera 24. The downward light source 28 includes a housing 29, a connecting portion 30, an epi-illuminator 31, and a side-illuminator 34. The housing 29 is a bowl-shaped member with open top and bottom surfaces. The connecting portion 30 is a cylindrical member that connects the housing 29 to a camera body 36. Light emitted from the epi-illuminator 31 and light received by the camera body 36 pass through the internal space of the connecting portion 30. The epi-illuminator 31 irradiates the electronic component C held by the suction nozzle 51 with light from directly below. The epi-illuminator 31 includes a half mirror 33 and a plurality of LEDs 32 that emit light toward the half mirror 33 in a direction perpendicular to an optical axis 36 a (horizontal direction). The LEDs 32 are attached to the inner circumferential surface of the connecting portion 30. The half mirror 33 is disposed inside the connecting portion 30 at a 45° angle with respect to the optical axis 36a. The half mirror 33 reflects horizontal light from the LEDs 32 upward. This allows the epi-illuminator 31 to illuminate the electronic component C from directly below. The half mirror 33 also transmits light from above toward the camera body 36. The side-illuminator 34 illuminates the electronic component C held by the suction nozzle 51 from diagonally below with light. The side-illuminator 34 includes a plurality of LEDs 35a attached to an upper row, a plurality of LEDs 35b attached to a middle row, and a plurality of LEDs 35c attached to a lower row on the inner circumferential surface of the housing 29. Hereinafter, when the LEDs 35a to 35c are not to be distinguished from one another, they will be simply referred to as LEDs 35.

[0019] The disposal box 38 is a box for disposing of electronic components C in which an abnormality has occurred. The disposal box 38 is installed adjacent to the parts camera 24 between the component supply device 21 and the transport device 22.

[0020] As shown in FIG. 5 , the control device 60 is configured as a microprocessor centered around a CPU 61. In addition to the CPU 61, the control device 60 also includes a ROM 62, a storage device (e.g., an HDD or SSD) 63, a RAM 64, and an input / output interface 65. These components are electrically connected via a bus 66. Position signals from the X-axis position sensor 47, the Y-axis position sensor 49, and the Z-axis position sensor 53 are input to the control device 60. Image signals from the part camera 24 and the mark camera 25 are also input to the control device 60. Furthermore, the control device 60 uses the image input from the part camera 24 to calculate the amount of suction displacement of the electronic component C picked up by the suction nozzle 51 and the amount of positional displacement (bending) of each pin P relative to the body B of the electronic component C. Meanwhile, the control device 60 outputs drive signals to the component supply device 21, the conveying device 22, the X-axis actuator 46, the Y-axis actuator 48, and the Z-axis actuator 52. The control device 60 also outputs control signals to the part camera 24, the mark camera 25, the side light source 26, and the lower light source 28. The storage 63 stores shape data.

[0021] As shown in FIG. 5 , the management device 70 is configured as a microprocessor centered around a CPU 71. In addition to the CPU 71, the management device 70 also includes a ROM 72, a storage 73, and a RAM 74. The management device 70 is communicably connected to the control device 60. The storage 73 stores shape data, a production schedule, and the like for each electronic component C to be mounted on the board S. The shape data includes information necessary for mounting the electronic component C on the board S, such as the outer shape of the electronic component C, the number of pins P, the type of electronic component C to be mounted on the board S, and the pin relative design position R (hereinafter, the pin relative design position R of the h-th pin P will be referred to as the h-th pin relative design position Rh (h is an integer greater than or equal to 1 and less than the number of pins P)), which is the design relative position of each pin P based on a representative position of the body B of the electronic component C (e.g., the center Q of the body B). This information also includes information necessary for calculating the positional deviation of each pin P relative to the body B. The production schedule stores information such as which electronic components C are to be mounted on the board S in what order in the component mounter 10, and how many boards S (products) mounted in this way are to be produced.

[0022] Next, the operation of the component mounting system 1 configured as described above will be described. First, the component mounting process executed by the CPU 61 of the component mounter 10 will be described using FIGS. 6 to 10. FIG. 6 is a flowchart showing an example of a component mounting process routine. This routine is executed by the CPU 61 of the control device 60 after inputting a production start instruction, shape data, and a production schedule from the management device 70 and storing the shape data and production schedule in the storage 63. Note that in this embodiment, the case will be described as an example in which an electronic component C having pins P101 to P104 provided substantially in the center of the back surface of the body B and pins P201 to P212 provided on the back surface of the body B on a substrate S is mounted.

[0023] When this routine starts, the CPU 61 causes the suction nozzle 51 to pick up an electronic component C supplied from the component supply device 21 (S100). Specifically, the CPU 61 controls the head moving device 40 (the X-axis actuator 46 and the Y-axis actuator 48) so that the suction nozzle 51 moves above the supply position of the electronic component C by the component supply device 21, and then controls the Z-axis actuator 52 so that the suction nozzle 51 moves down, and also controls the solenoid valve so that negative pressure is supplied to the suction nozzle 51.

[0024] Next, the CPU 61 turns on the side light source 26 (S102) and captures an image of the underside of the electronic component C sucked by the suction nozzle 51 with the part camera 24 (S104). Specifically, the CPU 61 first controls the head moving device 40 so that the suction nozzle 51 that has sucked the electronic component C moves above the part camera 24. Next, the CPU 61 controls the Z-axis actuator 52 so that the tips of the pins P of the electronic component C descend to a position where they are illuminated by the light emitted from the side light source 26. The CPU 61 then controls the part camera 24 so that the electronic component C is captured from its underside. In this embodiment, the captured image of the electronic component C is referred to as a side illumination image Im1. An example of the side illumination image Im1 is shown in FIG. 7A . In the side illumination image Im1, as shown in FIG. 7A , the pins P201 to P212 are captured in an obliquely expanded state relative to their actual positions. In FIG. 7A, the pins P201 to P212 are shown with dashed lines when captured at their original positions and sizes. This is because the pins P201 to P212 are closer to the side light source 26 than the pins P101 to P104 when capturing the side-illuminated image Im1, and therefore reflect light from the side light source 26 more strongly. The CPU 61 then turns off the side light source 26 (S106). Hereinafter, the pins P101 to P104 will be referred to as first pins P1, and the pins P201 to P212 will be referred to as second pins P2. The CPU 71 of the management device 70 stores in the shape data which pins P are the first pins P1 and which are the second pins P2, in response to an operator's operation.

[0025] Next, the CPU 61 turns on the LED 32 of the epi-illuminator 31 and the LEDs 35a to 35c of the lateral illuminator 34 of the downward light source 28 (S108), and captures an image of the underside of the electronic component C picked up by the suction nozzle 51 with the parts camera 24 (S110). In this embodiment, the captured image of the electronic component C is referred to as a downward-illuminated image Im2. In this case, compared to when the lateral light source 26 is turned on and an image is captured, the pins P201 to P212 and the pins P101 to P104 are illuminated with light from the LEDs 32, 35b, and 35c more evenly. However, the pins P201 to P212 reflect more light from the LED 35a than the pins P101 to P104. This is because the pins P201 to P212 are closer to the LED 35a than the pins P101 to P104. Therefore, in the downward illumination image Im2, the area of ​​the second pin P2 is not captured in an obliquely expanded state as in the side illumination image Im1, but has a higher brightness value than the area of ​​the first pin P1, as shown in Fig. 7B. Furthermore, in the downward illumination image Im2, the body B of the electronic component C is captured together with the pin P, as shown in Fig. 7B. This is because light emitted from the downward light source 28 is reflected by the underside of the body B. Then, the CPU 61 turns off the downward light source 28 (S112).

[0026] Next, the CPU 61 executes a tentative center position calculation processing subroutine shown in Fig. 8 to calculate a tentative center M, which is a tentative center position of the electronic component C relative to a reference point of the image (e.g., the front left corner of the image) (S114), and executes a center calculation processing subroutine shown in Fig. 9 to calculate a center Q of the electronic component C relative to the reference point of the image (S116). The tentative center position calculation processing subroutine and the center calculation processing subroutine will be described later. The tentative center M and center Q are calculated as X-axis coordinate values ​​and Y-axis coordinate values ​​in an XY plane, with the reference point of the image as the origin O, the left-right direction of the image as the X-axis, and the front-back direction of the image as the Y-axis. Next, the CPU 61 sets the value of the pin number h to 1 (S118).

[0027] Next, the CPU 61 acquires the h-th pin relative design position Rh (ΔXrh, ΔYrh) based on the center Q of the electronic component C from the shape data (S120). Subsequently, the CPU 61 converts the h-th pin relative design position Rh with respect to the center Q of the electronic component C with respect to the reference point (origin O) of the image based on the center Q with respect to the reference point (origin O) of the image and the acquired h-th pin relative design position Rh (S122). The h-th pin design position Ah is the design center position of the h-th pin Ph with respect to the reference point of the image as described above, assuming that the h-th pin Ph is positioned according to the h-th pin relative design position Rh defined in the shape data. Specifically, the CPU 61 calculates the X-axis coordinate value Xah (Xq + ΔXrh) of the h-th pin design position Ah by adding the X-axis relative value ΔXrh of the h-th pin relative design position Rh on the shape data to the X-axis coordinate value Xq of the center Q of the electronic component C relative to the reference point in the image. The CPU 61 also calculates the Y-axis coordinate value Yah (Yq + ΔYrh) of the h-th pin design position Ah by adding the Y-axis relative value ΔYrh of the h-th pin relative design position Rh on the shape data to the Y-axis coordinate value Yq of the center Q. Next, the CPU 61 acquires the h-th pin actual position Dh (Xdh, Ydh), which is the center position of the h-th pin Ph relative to the reference point in the image (S124). The h-th pin actual position Dh is the position of the pin P corresponding to the h-th pin Ph, among the first pin actual position D and the second pin actual position U calculated in the temporary center calculation processing subroutine or the center calculation processing subroutine described later, relative to the reference point in the image.

[0028] Then, the CPU 61 calculates the positional deviation amount δ of the h-th pin Ph (hereinafter referred to as the h-th pin positional deviation amount δh) (S126). Specifically, the CPU 61 calculates the X-axis positional deviation amount ΔXh (Xah - Xdh) by subtracting the X-axis coordinate value Xch of the h-th pin actual position Dh from the X-axis coordinate value Xah of the h-th pin designed position Ah. The CPU 61 also calculates the Y-axis positional deviation amount ΔYh (Yah - Ych) by subtracting the Y-axis coordinate value Ych of the h-th pin actual position Dh from the Y-axis coordinate value Yah of the h-th pin designed position Ah.

[0029] Next, the CPU 61 determines whether the misalignment amount δh of the h-th pin is within the allowable range (S128). If both the misalignment amount ΔXh in the X-axis direction and the misalignment amount ΔYh in the Y-axis direction are within the predetermined range, the CPU 61 determines that the misalignment amount δh of the h-th pin is within the allowable range and increments the value of the pin number h by 1 (S130). Next, the CPU 61 determines whether the value of the pin number h is greater than the number of pins P (16 in this embodiment) (S132). If it is determined that the value of the pin number h is less than or equal to the number of pins P, the CPU 61 determines that there are still pins P for which the misalignment amount δ must be calculated, and returns to S120 to calculate the misalignment amount δ of another pin P. If it is determined that the value of the pin number h is greater than the number of pins P, the CPU 61 determines that there is no misalignment exceeding the allowable range for any of the pins P, and mounts the electronic component C on the board S (S134). Specifically, the CPU 61 controls the head moving device 40 so that the center Q of the electronic component C picked up by the suction nozzle 51 moves above the mounting position on the board S. Then, the CPU 61 controls the Z-axis actuator 52 so that the electronic component C is pressed against the board S, and also controls the solenoid valve so that the suction of the electronic component C is released, and then ends this process. Note that the CPU 61 may correct the mounting position of the electronic component C by taking into account the positional deviation amount δ of each pin P of the electronic component C.

[0030] If at least one of the X-axis direction positional deviation amount ΔXh and the Y-axis direction positional deviation amount ΔYh is outside the predetermined range, the CPU 61 determines that the h-th pin positional deviation amount δh is outside the allowable range and discards the electronic component C (S136). Specifically, the CPU 61 controls the head moving device 40 so that the suction nozzle 51 moves to above the disposal box 38. Then, the CPU 61 controls the solenoid valve so that suction of the electronic component C is released, and ends this routine.

[0031] Next, the tentative center calculation processing subroutine will be described. Fig. 8 is a flowchart showing an example of the tentative center calculation processing subroutine. This processing is executed by the CPU 61 after S112 of the component mounting processing routine described above.

[0032] When this process begins, the CPU 61 first binarizes the side-illuminated image Im1 (S200). Specifically, the CPU 61 colors pixels whose luminance values ​​are less than a first threshold black and pixels whose luminance values ​​are equal to or greater than a predetermined value white. Here, the first threshold is a threshold for distinguishing pins P from other components, and a value input in advance by the operator is used. The first threshold is included in the shape data. As a result, the tip of the pin P is colored white and the remaining parts are colored black. The image obtained in this manner is referred to as a binarized image Im3 (not shown). Next, the CPU 61 detects the first pin P1 from the binarized image Im3 (S202). Specifically, the CPU 61 detects, as the first pin P1, a region of white pixels in the binarized image Im3 that falls within a predetermined first-pin detection range in the binarized image Im3. The first-pin detection range is a range experimentally determined for each type of electronic component C. Then, the CPU 61 sets the value of the first pin number i to 1 (S204).

[0033] Next, the CPU 61 calculates a first pin actual position D (hereinafter referred to as the i-th first pin actual position Di), which is the actual center position of the i-th first pin P1 (hereinafter referred to as the i-th first pin P1i) relative to a reference point of the binarized image Im3 (e.g., the front left corner of the binarized image Im3) (S206). The i-th first pin actual position Di is calculated as the X-axis coordinate value (Xdi) and the Y-axis coordinate value (Ydi) of the center position of the i-th first pin P1i in an XY plane, with the reference point of the binarized image Im3 as the origin O, the left-right direction of the binarized image Im3 as the X-axis, and the front-back direction of the binarized image Im3 as the Y-axis. Next, the CPU 61 increments the value of the first pin number i by 1 (S208). Then, the CPU 61 determines whether the value of the first pin number i is greater than the number of first pins (4 in this embodiment) (S210). If it is determined that the value of the first pin number i is equal to or less than the number of first pins P1, the CPU 61 determines that there are still more first pins P1 for which the actual first pin positions D must be calculated, and returns to S206 again to calculate the actual first pin positions D of other first pins P1.

[0034] If the CPU 61 determines that the value of the first pin number i is greater than the number of first pins P1, it determines that the actual first pin positions D of all first pins P1 have been calculated, and calculates a temporary center M (Xm, Ym), which is a temporary center position of the electronic component C relative to the reference point (origin O) of the binarized image Im3, from the actual first pin positions D (S212). The calculation of the temporary center M can be performed using the least squares method. That is, the CPU 61 sets a temporary temporary center, which is a temporary temporary center of the electronic component C relative to the reference point of the binarized image Im3. Next, the CPU 61 determines an i-th first pin temporary position Ei (Xei, Yei), which is a temporary center of the i-th first pin P1i relative to the reference point, assuming that the i-th first pin P1i is located at a distance determined by the i-th first pin relative design position Ri (i is an integer between 1 and 4 (the number of first pins)) specified in the shape data, using the temporary temporary center as a reference. Then, the CPU 61 calculates the provisional center where the sum of squares of the distances from the actual first pin position D to the provisional first pin position E is the smallest, as the provisional center M of the electronic component C relative to the reference point in the binary image Im3, and ends this process. This makes it possible to calculate the provisional center M of the electronic component C relative to the reference point in the binary image Im3 using the actual first pin position D.

[0035] Next, the center calculation processing subroutine will be described. Fig. 9 is a flowchart showing an example of the center calculation processing subroutine. This processing is executed by the CPU 61 after the tentative center calculation processing subroutine is executed to calculate the tentative center M of the electronic component C relative to the image.

[0036] When this process begins, the CPU 61 first binarizes the downward illumination image Im2 (S300). Specifically, the CPU 61 colors pixels whose brightness values ​​are less than a second threshold black and pixels whose brightness values ​​are equal to or greater than a predetermined value white. The second threshold is a threshold for distinguishing the second pin P2 from other areas, and is a value input in advance by the operator. The second threshold is, for example, a value greater than the brightness value of the area of ​​the first pin P1 in the downward illumination image Im2 and less than the brightness value of the area of ​​the second pin P2, and is determined through experimentation. The second threshold is set to, for example, a value greater than the first threshold. The second threshold is included in the shape data. As a result, the tip of the second pin tends to appear white, and the remaining areas tend to appear black. The image obtained in this manner is referred to as a binarized image Im4. An example of the binarized image Im4 is shown in FIG. 10A. In FIG. 10A, the image of the first pin P1 and the body B is black, and the pixels of the area of ​​the second pin P2 are white. The CPU 61 then detects areas of white pixels in the binarized image Im4 as candidates for the second pins P2 (S302). The CPU 61 then determines whether the number of detected second pin candidates is equal to or greater than the number of second pins P2 in the shape data (S304). If the CPU 61 determines that the number of second pin candidates is less than the number of second pins P2 in the shape data, the CPU 61 determines this to be an error and outputs an error message, such as by displaying an error message on a display device (not shown) (S308). The CPU 61 then proceeds to S136 of the component mounting processing routine and discards the electronic component C picked up by the suction nozzle 51. If the number of detected second pin candidates is less than the number of second pins specified in the shape data, this is because any of the second pins P2 has been omitted from the detection of the second pin candidates.

[0037] If it is determined that the number of second pin candidates is equal to or greater than the number of second pins P2 on the shape data, the CPU 61 determines that all second pins are included in the detected second pin candidates and sets the value of the second pin candidate number j to 1 (S306). Note that, due to individual differences in the electronic component C, diffuse reflection of light, and the like, other parts may be detected as second pin candidates in addition to the second pin P2. Next, the CPU 61 calculates a second pin candidate position F (hereinafter, the jth second pin candidate position Fj), which is the center position of the jth second pin candidate (hereinafter, the jth second pin candidate) relative to a reference point (e.g., the front left corner) of the binarized image Im4 (S310). The jth second pin candidate position Fj is calculated as the X-axis coordinate value (Xfj) and the Y-axis coordinate value (Yfj) of the jth second pin candidate in an XY plane, with the reference point of the binarized image Im4 as the origin O, the left-right direction of the binarized image Im4 as the X-axis, and the front-to-back direction of the binarized image Im4 as the Y-axis. Next, the CPU 61 increments the value of the second pin candidate number j by 1 (S312). The CPU 61 then determines whether the value of the second pin candidate number j is greater than the number of second pin candidates detected in S302 (S314). If the CPU 61 determines that the value of the second pin candidate number j is equal to or less than the number of second pin candidates detected in S302, the CPU 61 determines that there are still second pin candidates for which the second pin candidate position F must be calculated, and returns to S310 to calculate the second pin candidate position F of another second pin candidate.

[0038] If it is determined that the value of the second pin candidate number j is greater than the number of second pin candidates detected in S302, the CPU 61 determines that the second pin candidate positions F have been calculated for all second pin candidates, and sets the temporary center M relative to the reference point of the binarized image Im3 calculated in the temporary center calculation process as the temporary center N (Xn, Yn) relative to the reference point (origin O) of the binarized image Im4 (S316). Next, the CPU 61 sets the value of the second pin number k to 1 (S318). Next, the CPU 61 obtains the k-th second pin relative design position Rk (ΔXrk, ΔYrk) of the k-th second pin P2 (hereinafter referred to as the k-th second pin P2k) relative to the center Q of the electronic component C from the shape data (S320). Then, the CPU 61 calculates the tentative second-pin design position G of the k-th second pin P2k relative to the reference point of the binarized image Im4 (hereinafter referred to as the k-th second-pin tentative design position Gk) from the tentative center N and the k-th second-pin relative design position Rk (S322). The k-th second-pin tentative design position Gk is the design center position of the k-th second pin P2k relative to the reference point of the binarized image Im4 if the k-th second pin P2k were positioned according to the k-th second-pin relative design position Rk. Specifically, the CPU 61 calculates the X-axis coordinate value Xgk (Xn + ΔXrk) of the k-th second-pin tentative design position Gk by adding the X-axis relative value ΔXrk of the acquired k-th second-pin relative design position Rk to the X-axis coordinate value Xn of the tentative center N. In addition, the CPU 61 adds the Y-axis relative value ΔYrk of the acquired k-th second pin relative design position Rk to the Y-axis coordinate value Yn of the provisional center N to calculate the Y-axis coordinate value Ygk (Yn + ΔYrk) of the k-th second pin provisional design position Gk.

[0039] Next, the CPU 61 sets the value of the reference distance L to a distance Lmax (S324). The reference distance L will be described later. The distance Lmax is set to be longer than the length of the diagonal of the body B of the electronic component C. Next, the CPU 61 sets the value of the second pin candidate number j to 1 (S326). Then, the CPU 61 calculates the distance Ljk from the j-th second pin candidate position Fj to the k-th second pin tentative design position Gk (S328).

[0040] Next, the CPU 61 determines whether the distance Ljk is shorter than the reference distance L (S330). If it determines that the distance Ljk is shorter than the reference distance L, the CPU 61 updates the value of the reference distance L to the distance Ljk (S332). Next, the CPU 61 sets the jth second pin candidate position Gj (Xgj, Ygj) to the kth second pin actual position Uk (Xuk, Yuk) (S334). When the value of the second pin candidate number j is 1, the reference distance L is set to the distance Lmax, so the distance L1k is always shorter than the reference distance L. Therefore, the CPU 61 updates the reference distance L to the distance L1k and sets the 1st second pin candidate position G1 to the kth second pin actual position Uk. Furthermore, when the value of the second pin candidate number j is 2 or greater, if the reference distance Ljk is less than the reference distance L, the CPU 61 updates the value of the reference distance L to the distance Ljk and updates the jth second pin candidate position Gj to the kth second pin actual position Uk. By repeatedly executing this process, the jth second pin candidate position Fj that is closest to the kth second pin tentative design position Gk is set as the kth second pin actual position Uk.

[0041] After S334 or after determining that the distance Ljk is not shorter than the reference distance L, the CPU 61 increments the value of the second pin candidate number j by 1 (S336). Then, the CPU 61 determines whether the value of the second pin candidate number j is greater than the number of second pin candidates (S338). If it is determined that the value of the second pin candidate number j is less than or equal to the number of second pin candidates detected in S302, the CPU 61 determines that there is still a second pin candidate for which the reference distance L to the kth second pin tentative design position Gk must be calculated, and returns to S328 again to calculate the distance Ljk to the kth second pin tentative design position Gk.

[0042] If the CPU 61 determines that the value of the second pin candidate number j is greater than the number of second pin candidates detected in S302, it determines that the second pin candidate position Fj closest to the second pin tentative design position Gk has been set as the k-th second pin actual position Uk, and increments the value of the second pin number k by 1 (S340). Next, the CPU 61 determines whether the value of the second pin number k is greater than the number of second pins P2 (S342). If the CPU 61 determines that the value of the second pin number k is less than or equal to the number of second pins P2, it determines that there are still second pins P2 for which the actual second pin position U must be calculated, and returns to S320 again to obtain the k-th second pin relative design position Rk of another k-th second pin P2k.

[0043] In this way, the CPU 61 increments the value of the second pin candidate number j by one and repeatedly executes the processes of S328 to S338 to calculate the distance Ljk between a certain k-th second pin tentative design position Gk and all second pin candidate positions F. Furthermore, the CPU 61 sets the second pin candidate with the shortest distance Ljk to the k-th second pin tentative design position Gk among the multiple second pin candidates detected in S302 as the k-th second pin actual position Uk. Therefore, even if more second pin candidates than the number of second pins P2 are detected in S302, the CPU 61 can accurately detect the second pin from among them. Furthermore, the CPU 61 increments the value of the second pin number k by one and repeatedly executes these processes to accurately set the actual second pin positions U of all second pins P2.

[0044] If it is determined that the value of the second pin number k is greater than the number of second pins P2, the CPU 61 calculates the center Q of the electronic component C relative to the reference point (origin O) of the binarized image from the actual first pin positions D and the actual second pin positions U (S344). This process can be performed using the least squares method. That is, the CPU 61 sets a provisional center, which is the provisional center of the electronic component C in the binarized image Im4. Next, the CPU 61 sets an i-th first pin provisional position Ei (Xei, Yei), which is the provisional center position of the i-th first pin P1i relative to the reference point of the binarized image Im4, assuming that the i-th first pin P1i (i is an integer between 1 and 4 (the number of first pins P1)) is located at a position separated by the i-th first pin relative design position Ri from the provisional center. Next, the CPU 61 determines a j-th second pin provisional position Vj (Xvj, Yvj), which is the provisional center position of the j-th second pin P2j with respect to the reference point of the binarized image Im4, assuming that the j-th second pin P2j is located at a j-th pin relative design position Rj (j is an integer between 1 and 12 (the number of second pins P2)) away from the provisional center position. The CPU 61 then calculates the provisional center at which the sum of the squared sum of the distance from the first pin actual position D to the first pin provisional position E and the squared sum of the distance from the second pin actual position U to the second pin provisional position V is the smallest, as shown in FIG. 10B . This completes the process. This allows the CPU 61 to calculate the center Q of the electronic component C with respect to the reference point of the binarized image Im4 using the first pin actual position D and the second pin actual position U. 10B, for the sake of convenience, the first pins P1 (P101 to P104) are indicated by dashed lines. The center Q of the electronic component C detected in this manner is used to calculate the actual position D of the pin relative to the reference point (origin O) of the image.

[0045] Here, the correspondence between the components of this embodiment and the components of the present disclosure will be clarified. That is, the control device 60 of this embodiment corresponds to the image processing device of the present disclosure, the CPU 61 that executes the processes of S102 to S106 and S108 to S112 of the component mounting processing routine corresponds to the image acquisition unit, the CPU 61 that executes the processes of S200 to S210 of the tentative center calculation processing corresponds to the first detection unit, the CPU 61 that executes the process of S212 of the tentative center calculation processing and the processes of S300 to S342 of the center calculation processing corresponds to the second detection unit, and the CPU 61 that executes the process of S344 of the center calculation processing corresponds to the component position calculation unit.

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

[0047] In the above-described embodiment, the CPU 61 generates a binarized image Im3 from the side-illuminated image Im1 in the temporary center calculation processing subroutine and detects the first pin P1 from the binarized image Im3. However, the CPU 61 may detect the first pin P1 directly from the side-illuminated image Im1 by predetermining a brightness value range corresponding to the color of the first pin P1. Also, the CPU 61 generates a binarized image Im4 from the downward-illuminated image Im2 in the center calculation processing subroutine and detects the second pin P2 from the binarized image Im4. However, the CPU 61 may detect the second pin P2 directly from the downward-illuminated image Im2 by predetermining a brightness value range corresponding to the color of the second pin P2.

[0048] In the above-described embodiment, the CPU 61 executes the processing of S302 to S342 of the center calculation processing to calculate the actual second pin position U. However, the position of each second pin candidate relative to the reference point of the binarized image Im4 may be set as the actual second pin position U by processing similar to S200 to S210 of the temporary center calculation processing subroutine.

[0049] In the above-described embodiment, the CPU 61 calculates the center Q. However, the CPU 61 does not have to calculate the center Q relative to the reference point of the image.

[0050] In the above-described embodiment, which pin P is the first pin P1 and which is the second pin P2 is set based on an operator's operation. However, the CPU 71 may automatically set these pins based on the pin relative design position R. In this case, the CPU 71 of the management device 70 may set, among the multiple pins P, a pin P that is located closer to the outer periphery of the body B than the other pins P as the second pin P2, and set the remaining pins P as the first pin P1. Alternatively, the CPU 71 may set a pin P that is within a predetermined range from the center Q as the first pin P1, and set a pin P that is outside the predetermined range from the center Q as the second pin P2.

[0051] In the embodiment described above, the CPU 61 obtained the downward-illuminated image Im2 by capturing an image of the electronic component C with the LED 32 of the incident-light illuminator 31 and the LEDs 35a to 35c of the side-illuminator 34 turned on. However, the downward-illuminated image Im2 may be obtained by capturing an image of the electronic component C with only the LED 32 of the incident-illuminator 31 turned on, or the downward-illuminated image Im2 may be obtained by capturing an image of the electronic component C with only the LED 35 of the side-illuminator 34 turned on.

[0052] In the above-described embodiment, the CPU 61 proceeds to S136 of the component mounting processing routine after S308 of the center calculation processing subroutine. However, the CPU 61 may return to S102 or S108 of the component mounting processing routine from S308 of the center calculation processing subroutine and re-image the side illumination image Im1 or the downward illumination image Im2.

[0053] As described above, in the image processing device disclosed herein, in a first image obtained by capturing an image of a component under a first illumination condition, the contour of the second feature portion is likely to appear expanded in a predetermined direction compared to the contour of the first feature portion. This is because the second feature portion is closer to the first light source than the first feature portion and reflects light from the first light source more strongly in a predetermined direction compared to the first feature portion. Therefore, when attempting to detect the first and second feature portions using the first image, the second feature portion appears expanded in the predetermined direction, which may prevent the second feature portion from being detected with sufficient accuracy. In a second image obtained by capturing an image of a component under a second illumination condition, the contour of the second feature portion does not appear expanded in a predetermined direction compared to the contour of the first feature portion, as in the first image. This is because the distances from the second light source to each feature portion during image capture are approximately equal, and the second feature portion does not reflect light from the second light source more strongly in a predetermined direction compared to the first feature portion. This image processing device detects the second feature using a second image in which the second feature does not expand in a predetermined direction compared to the first image, thereby improving the accuracy of feature detection.

[0054] In the image processing device of the present disclosure, the second detection unit may binarize the second image so as to distinguish at least the second feature from a background including the main body, and detect the second feature using the binarized image. When the second image of the component is captured under a second illumination condition, other elements besides the second feature are also captured, making it difficult to detect the second feature from the second image. Therefore, it is very important to binarize the second image so as to distinguish the second feature from the background.

[0055] In the image processing device of the present disclosure, the first detection unit may calculate a position of the first feature in the first image, the second detection unit may calculate a tentative representative position that is a tentative representative position of the part based on the position of the first feature, calculate a candidate position that is a candidate for the position of the second feature in the second image, acquire a design relative position of the second feature in relation to the representative position of the part, calculate a design position that is a design position of the second feature in the second image based on the tentative representative position and the relative position, and calculate the position of the second feature in the second image based on the candidate position and the design position. This makes it possible to detect the second feature sufficiently accurately.

[0056] The image processing device of the present disclosure may further include a component position calculation unit that calculates a representative position of the component based on the positions of the first and second characteristic portions. In this way, the position of each characteristic portion relative to the image can be accurately detected, and therefore the representative position of the component relative to the image can be accurately detected.

[0057] The present disclosure can be used in industries such as the manufacturing of component mounters and component mounting systems.

[0058] 1 Component mounting system, 10 Component mounter, 12 Housing, 21 Component supply device, 21a Tray supply device, 21b Tape feeder, 22 Conveyor device, 24 Parts camera, 25 Mark camera, 26 Side light source, 28 Downward light source, 29 Housing, 30 Connecting portion, 31 Incident light illumination, 32 LED, 33 Half mirror, 34 Side light illumination, 35, 35a to 35c LED, 36 Camera body, 36a Optical axis, 38 Disposal box, 40 Head moving device, 42 X-axis slider, 43 X-axis guide rail, 44 Y-axis slider, 45 Y-axis guide rail, 46 X-axis actuator, 47 X-axis position sensor, 48 Y-axis actuator, 49 Y-axis position sensor, 50 Head, 51 Suction nozzle, 52 Z-axis actuator, 53 Z-axis position sensor, 60 Control device, 61 CPU, 62 ROM, 63 storage, 64 RAM, 65 input / output interface, 66 bus, 70 management device, 71 CPU, 72 ROM, 73 storage, 74 RAM, 101 pin, B body, C electronic component, Im1 side illumination image, Im2 downward illumination image, Im3 binarized image, Im4 binarized image, M temporary center, N temporary center, O second pin temporary design position, P pin, P101 to P104, P201 to P212, P1 first pin, P2 second pin, Q center, R pin relative design position.

Claims

1. An image processing device that detects the characteristics of a part having a main body and multiple characteristic features provided on the underside of the main body using images of the part, comprising: an image acquisition unit that acquires multiple images of the part by illuminating the part with light under multiple lighting conditions including a first lighting condition using a first light source capable of illuminating the part at a predetermined position from the side and a second lighting condition using a second light source capable of illuminating the part at the predetermined position from below; a first detection unit that detects a first characteristic feature that is one of the multiple characteristic features of the part using a first image captured of the part under the first lighting condition; and a second detection unit that detects a second characteristic feature that is one of the multiple characteristic features of the part and is closer to the first light source than the first characteristic feature at the time of imaging, using a second image captured of the part under the second lighting condition.

2. An image processing device according to claim 1, wherein the second detection unit binarizes the second image so as to be able to distinguish at least the second feature from a background including the main body, and detects the second feature using the binarized image.

3. An image processing device as described in claim 1 or 2, wherein the first detection unit calculates the position of the first characteristic part relative to the first image, and the second detection unit calculates a tentative representative position that is a tentative representative position of the part based on the position of the first characteristic part, calculates a candidate position that is a candidate for the position of the second characteristic part relative to the second image, obtains a design relative position of the second characteristic part relative to the representative position of the part, calculates a design position that is a design position of the second characteristic part relative to the second image based on the tentative representative position and the relative position, and calculates the position of the second characteristic part in the second image based on the candidate position and the design position.

4. An image processing device according to claim 3, comprising a part position calculation unit that calculates a representative position of the part based on the position of the first characteristic part and the position of the second characteristic part.

Citation Information

Patent Citations

  • Air-bubble inspection system

    JP2002310939A

  • Mounting data management device, component mounting system, and mounting data management method

    JP2020017554A

  • Component posture determination device and component mounting machine

    JP2021093414A

  • Component mounter

    JP2022167015A