Component data, component data generating method, and component mounting machine

文档序号:517685 发布日期:2021-05-28 浏览:9次 中文

阅读说明:本技术 元件数据、元件数据生成方法以及元件安装机 (Component data, component data generating method, and component mounting machine ) 是由 铃木干也 鬼头秀一郎 于 2018-10-23 设计创作,主要内容包括:本发明提供一种元件数据,包括形状数据,该形状数据表示在对由元件安装机(20)的元件拍摄用相机(21)拍摄到的元件的图像进行处理而识别该元件时使用的该元件的形状特征,所述元件是在其下表面侧的端子转印焊料、导体糊剂、助焊剂及粘接剂中的任一种转印材料之后向电路基板安装的转印对象元件。所述元件数据除了所述形状数据以外,还包括:转印前阈值,用于对拍摄所述转印材料的转印前的所述元件的下表面侧所得的转印前图像进行二值化处理;以及转印后阈值,用于对拍摄所述转印材料的转印后的所述元件的下表面侧所得的转印后图像进行二值化处理。所述转印前阈值和所述转印后阈值被设定为,使得对所述转印前图像进行二值化处理而计测出的端子的尺寸与对所述转印后图像进行二值化处理而计测出的端子的尺寸之差处于预定的允许范围内。(The present invention provides a component data including shape data representing the shape characteristics of a component used when processing an image of the component picked up by a camera 21 for picking up an image of the component of a component mounting machine 20 to recognize the component, wherein the component is a transfer target component to be mounted on a circuit board after any transfer material of solder, conductor paste, flux and adhesive is transferred to a terminal on the lower surface side of the component. The element data includes, in addition to the shape data: a pre-transfer threshold value for performing binarization processing on a pre-transfer image obtained by imaging a lower surface side of the element before transfer of the transfer material; and a post-transfer threshold value for performing binarization processing on a post-transfer image obtained by imaging the transferred lower surface side of the element of the transfer material. The pre-transfer threshold value and the post-transfer threshold value are set so that a difference between a size of the terminal measured by performing binarization processing on the pre-transfer image and a size of the terminal measured by performing binarization processing on the post-transfer image is within a predetermined allowable range.)

1. Component data including shape data representing a feature of a shape of a component used when an image of the component captured by a component capturing camera of a component mounting machine is processed to recognize the component, wherein,

the element is a transfer object element which is mounted on a circuit board after any transfer material of solder, conductor paste, flux and adhesive is transferred to a terminal on the lower surface side of the element,

the element data includes, in addition to the shape data: a pre-transfer threshold value for performing binarization processing on a pre-transfer image obtained by imaging a lower surface side of the element before transfer of the transfer material; and a post-transfer threshold value for performing binarization processing on a post-transfer image obtained by imaging the transferred lower surface side of the element of the transfer material.

2. The component data according to claim 1,

the pre-transfer threshold value and the post-transfer threshold value are set so that a difference between the size of the terminal measured by performing binarization processing on the pre-transfer image and the size of the terminal measured by performing binarization processing on the post-transfer image is within a predetermined allowable range.

3. The component data according to claim 2, wherein,

one of the pre-transfer threshold value and the post-transfer threshold value is set so that a difference between a dimension of the terminal measured by binarizing one of the pre-transfer image and the post-transfer image and a reference dimension obtained from a terminal specification or CAD data is within a predetermined allowable range,

the other of the pre-transfer threshold value and the post-transfer threshold value is set so that a difference between the size of the terminal measured by performing binarization processing on the other of the pre-transfer image and the post-transfer image and the size of the terminal measured by performing binarization processing on the one image is within a predetermined allowable range.

4. The component data according to claim 1,

the pre-transfer threshold value is set so that the difference between the size of the terminal measured by binarizing the pre-transfer image and a reference size obtained from a terminal specification or CAD data is within a predetermined allowable range,

the post-transfer threshold value is set so that a difference between the size of the terminal measured by performing binarization processing on the post-transfer image and the reference size is within a predetermined allowable range.

5. The component data according to any one of claims 1 to 4,

the shape data includes the size of the terminal measured by binarizing the pre-transfer image by the pre-transfer threshold value, or the size of the terminal measured by binarizing the post-transfer image by the post-transfer threshold value.

6. A component data generating method of generating the component data according to claim 1,

the element data generation method includes:

a pre-transfer measurement step of performing binarization processing on the pre-transfer image by using the pre-transfer threshold included in the element data to measure a size of the terminal;

a post-transfer measurement step of setting a provisional value of the post-transfer threshold value and measuring the size of the terminal by performing binarization processing on the post-transfer image using the provisional value; and

and a post-transfer threshold value optimizing step of repeating a process of correcting the provisional value of the post-transfer threshold value and measuring the size of the terminal by the post-transfer measuring step until a difference between the size of the terminal measured by the pre-transfer measuring step and the size of the terminal measured by the post-transfer measuring step falls within a predetermined allowable range, and including the provisional value of the post-transfer threshold value when the difference falls within the predetermined allowable range as the optimum post-transfer threshold value in the device data.

7. A component data generating method of generating the component data according to claim 1,

the element data generation method includes:

a pre-transfer measurement step of setting a provisional value of the pre-transfer threshold value, and measuring the size of the terminal by performing binarization processing on the pre-transfer image using the provisional value;

a pre-transfer threshold value optimizing step of repeating a process of correcting a provisional value of the pre-transfer threshold value and measuring the size of the terminal by the pre-transfer measuring step until a difference between the size of the terminal measured by the pre-transfer measuring step and a reference size obtained from a terminal specification or CAD data falls within a predetermined allowable range, and including the provisional value of the pre-transfer threshold value when the difference falls within the predetermined allowable range as the optimum pre-transfer threshold value in the device data;

a post-transfer measurement step of setting a provisional value of the post-transfer threshold value, and measuring the size of the terminal by performing binarization processing on the post-transfer image using the provisional value; and

and a post-transfer threshold value optimizing step of repeating a process of correcting the provisional value of the post-transfer threshold value and measuring the size of the terminal in the post-transfer measuring step until a difference between the size of the terminal measured in the pre-transfer measuring step and the size of the terminal measured in the post-transfer measuring step is within a predetermined allowable range by using the pre-transfer threshold value optimized in the pre-transfer threshold value optimizing step, and including the provisional value of the post-transfer threshold value when the difference is within the predetermined allowable range as the optimum post-transfer threshold value in the device data.

8. The component data generation method according to claim 6 or 7,

the size of the terminal measured by the pre-transfer measurement step using the pre-transfer threshold included in the element data is included in the shape data.

9. A component mounting machine is provided with an image processing device for processing an image of a component picked up by the component pickup camera,

the image processing apparatus acquires the component data according to any one of claims 1 to 5 as component data used for image processing of the component,

when the image before transfer is subjected to binarization processing, the image before transfer is subjected to binarization processing using the threshold value before transfer included in the element data to measure the size of the terminal,

when the post-transfer image is subjected to binarization processing, the post-transfer image is subjected to binarization processing using the post-transfer threshold value included in the component data, and the size of the terminal is measured.

Technical Field

The present specification discloses a technique relating to component data including shape data representing a shape feature of a component used when an image of the component captured by a component capturing camera of a component mounting machine is processed to recognize the component, a component data generating method of generating the component data, and a component mounting machine using the component data.

Background

For example, as described in patent document 1 (jp 2008-216140 a), a component mounting apparatus is provided with a transfer tank for storing a transfer material such as solder, a component supplied from a component supply device is sucked to a suction nozzle, a plurality of terminals (bumps) on the lower surface side of the component are immersed in the transfer material in the transfer tank to transfer the transfer material to the plurality of terminals, and then the component is mounted on a circuit board.

In the operation of the component mounter, before mounting a component on a circuit board, the lower surface side of the component is picked up by a component pickup camera, a binarization process is performed on the image to identify a terminal on the lower surface side of the component, the size of the terminal is measured, it is determined whether or not the difference between the measured value and data of the terminal size included in component data for image processing of the component is within an allowable error range (tolerance range), and if the difference is within the allowable error range, it is determined that the component is a component that can be mounted and the component is mounted on the circuit board, but if the difference exceeds the allowable error range, it is determined that the component is a component that cannot be mounted and the component is discarded to a predetermined disposal location.

Documents of the prior art

Patent document

Patent document 1: japanese patent laid-open No. 2008-216140

Disclosure of Invention

Problems to be solved by the invention

However, with regard to the timing of photographing the lower surface side of the component by the component photographing camera, either one of before and after transfer of the transfer material to the terminal on the lower surface side is selected by the user. However, the terminal size data included in the component data is obtained from the terminal specification data described in the product specification such as a catalog or CAD data, or is obtained by imaging the component with a camera and performing binarization processing on the image, thereby identifying the terminal on the lower surface side of the component, measuring the size of the terminal, and including the measured value as the terminal size in the component data.

In the image obtained on the lower surface side of the image pickup element, the terminal portion appears in a white color system, and the background portion around the terminal portion appears in a black color system, but the terminal portion has different brightness before and after transfer of the transfer material, and in the case where the transfer material is solder, the terminal portion after transfer appears darker than the terminal portion before transfer. However, conventionally, when the image after the transfer is subjected to the binarization process, the binarization process is performed using the same threshold value as that used when the image before the transfer is subjected to the binarization process, and therefore, the measured values of the terminal size before the transfer and after the transfer are different (when the transfer material is solder, the measured value of the terminal size after the transfer is small). Therefore, when the transferred image is subjected to the binarization process, there is a possibility that a difference between a measured value of the terminal size and the terminal size data included in the element data exceeds an allowable error range, and there is a possibility that the terminal is erroneously recognized by the binarization process. As a result, there is a possibility that: the component that can be originally mounted is mistakenly recognized as being unmounted and discarded, or conversely, the component that cannot be originally mounted is mistakenly recognized as being mountable and mounted on the circuit board.

Means for solving the problems

In order to solve the above-mentioned problems, in component data including shape data indicating a shape feature of a component used when processing an image of the component captured by a component capturing camera of a component mounting machine to recognize the component, the component being a transfer target component to be mounted on a circuit board after transferring any one of solder, conductor paste, flux, and adhesive to a terminal on a lower surface side of the component, the component data includes, in addition to the shape data: a pre-transfer threshold value for performing binarization processing on a pre-transfer image obtained by imaging a lower surface side of the element before transfer of the transfer material; and a post-transfer threshold value for performing binarization processing on a post-transfer image obtained by imaging the transferred lower surface side of the element of the transfer material.

Since the element data includes the pre-transfer threshold value for performing binarization processing on the pre-transfer image and the post-transfer threshold value for performing binarization processing on the post-transfer image, when the pre-transfer image is subjected to binarization processing, the pre-transfer image can be subjected to binarization processing using the pre-transfer threshold value included in the element data to measure the size of the terminal, and when the post-transfer image is subjected to binarization processing, the post-transfer image can be subjected to binarization processing using the post-transfer threshold value included in the element data to measure the size of the terminal.

Drawings

Fig. 1 is a block diagram showing the configuration of a component data generation system according to embodiment 1.

Fig. 2 is a block diagram showing the configuration of a control system of the component mounting machine.

Fig. 3 is a flowchart showing a processing flow of the threshold setting program for binarization processing in embodiment 1.

Fig. 4 is a flowchart showing a processing flow of the image processing program of embodiment 1.

Fig. 5 is a flowchart showing the flow of processing of the pre-transfer threshold setting program of example 2.

Detailed Description

Hereinafter, two embodiments 1 and 2 disclosed in the present specification will be described.

Example 1

Embodiment 1 is explained based on fig. 1 to 4.

As shown in fig. 1, the element data generating system 10 includes: a computer 11 such as a personal computer; a camera 12 for acquiring a captured image of a component that is a subject of component data generation; an illumination device 13 that illuminates the element imaged by the camera 12; an input device 14 such as a keyboard, a mouse, or a touch panel; a display device 15 such as a liquid crystal display, CRT, or the like; and a storage device 16 for storing an element data generation program, various data, and the like, which will be described later. The computer 11 also functions as an image processing device that processes an image of the component captured by the camera 12, and generates component data based on the image processing result.

The component data includes shape data indicating a shape feature of a component used when an image of the component captured by a component capturing camera 21 of the component mounter 20 described later is processed to recognize the component. The shape data includes, for example, the size of the device body (size in the direction X, Y, Z, etc.) and data relating to the terminals, for example, the width, length, lead pitch, position of the leads, number of leads, etc. in the case of a leaded device, and the bump diameter (size of the terminals), bump pitch (pitch of the terminals), position of the bumps, number of bumps, etc. in the case of a BGA device.

Further, when the element to be subjected to element data generation is a transfer target element such as a BGA element mounted on a circuit board after transferring any one of solder, a conductive paste, a flux, and an adhesive to a terminal on the lower surface side thereof, the generated element data includes, in addition to the shape data, a pre-transfer threshold value for performing binarization processing on a pre-transfer image obtained by imaging the lower surface side of the element before transfer of the transfer material, and a post-transfer threshold value for performing binarization processing on a post-transfer image obtained by imaging the lower surface side of the element after transfer of the transfer material. The shape data includes the size of the terminal, the pitch of the terminal, the position of the terminal, the number of the terminals, and the like measured by binarizing the pre-transfer image (or post-transfer image) using the pre-transfer threshold (or post-transfer threshold) included in the element data. The method of setting the pre-transfer threshold value and the post-transfer threshold value will be described later.

The camera 12 is the same type of camera as the component imaging camera 21 mounted in the component mounting apparatus 20 shown in fig. 2, and is configured using an imaging element for imaging a grayscale image (monochrome image). The illumination device 13 is configured to be capable of illuminating the component to be subjected to the component data generation under the same illumination conditions (illumination angle, illumination light amount, illumination pattern, and the like) as the illumination device 22 for illuminating the component imaged by the component imaging camera 21 of the component mounting apparatus 20.

As shown in fig. 2, an input device 24 such as a keyboard, a mouse, or a touch panel, a display device 25 such as a liquid crystal display or a CRT, a control program for controlling the operation of each function of the component mounting apparatus 20, a storage device 26 for storing various data, and the like are connected to the control device 23 of the component mounting apparatus 20. The control device 23 of the component mounting apparatus 20 is configured to mainly include one or more Computers (CPUs), and also functions as an image processing device that processes images captured by the component imaging camera 21 and the mark imaging camera 27.

The component data generating system 10 may be configured by each device of the component mounting apparatus 20. In this case, the computer 11, the camera 12, the illumination device 13, the input device 14, the display device 15, and the storage device 16 of the component data generating system 10 may be implemented by the control device 23 of the component mounting apparatus 20, the camera 21 for component imaging, the illumination device 22, the input device 24, the display device 25, and the storage device 26.

The control device 23 of the component mounter 20 controls operations of a mounting head moving device 28 for moving a mounting head (not shown) and a conveyor 29 for conveying a circuit board during operation of the component mounter 20, and controls an operation of sucking a component supplied from a component supply device 30 such as a tape feeder or a tray feeder by a suction nozzle (not shown) of the mounting head and mounting the component on the circuit board. At this time, when the component sucked to the suction nozzle is a transfer target component such as a BGA component, the component sucked to the suction nozzle is moved upward and lowered to immerse the terminals (bumps) on the lower surface side of the component in any one of the transfer materials of solder, conductor paste, flux, and adhesive in the transfer tank of the transfer device 31, thereby transferring the transfer material to the terminals, and then the component is mounted on the circuit board.

Before or after the transfer material is transferred to the transfer target component adsorbed by the suction nozzle, the control device 23 of the component mounter 20 images the lower surface side of the component by the component imaging camera 21, and performs binarization processing on the captured image to identify the terminal of the component, thereby measuring the size of the terminal (such as the bump diameter). At this time, when the image processing program of fig. 4 described later is executed to perform binarization processing on the pre-transfer image, the control device 23 of the component mounting machine 20 performs binarization processing on the pre-transfer image using a pre-transfer threshold included in component data described later to measure the size of the terminal, and when the image processing program performs binarization processing on the post-transfer image, the control device performs binarization processing on the post-transfer image using a post-transfer threshold included in the component data to measure the size of the terminal. The control device 23 of the component mounting apparatus 20 determines whether or not the difference between the size of the terminal measured by binarizing the image before transfer or the image after transfer and the data of the terminal size included in the shape data of the component data is within an allowable error range (tolerance range), and if the difference is within the allowable error range, determines that the component is a component that can be mounted and mounts the component on the circuit board, but if the difference exceeds the allowable error range, determines that the component is a component that cannot be mounted and disposes the component in a predetermined disposal place.

As described above, when the component to be subjected to the component data generation is the transfer target component, the component data generated by the component data generation system 10 includes, in addition to the shape data indicating the shape feature of the component, a pre-transfer threshold value for performing binarization processing on a pre-transfer image obtained by imaging the lower surface side of the component before transfer of the transfer material and a post-transfer threshold value for performing binarization processing on a post-transfer image obtained by imaging the lower surface side of the component after transfer of the transfer material. The computer 11 of the element data generating system 10 executes a binarization threshold setting program of fig. 3 described later to set the pre-transfer threshold and the post-transfer threshold so that the difference between the size of the terminal measured by performing binarization on the pre-transfer image and the size of the terminal measured by performing binarization on the post-transfer image falls within a predetermined allowable range.

In the present embodiment 1, the computer 11 executes: a pre-transfer measurement step of performing binarization processing on the pre-transfer image using a pre-transfer threshold value included in the element data to measure a size of the terminal; a post-transfer measurement step of setting a provisional value of a post-transfer threshold value, and measuring the size of the terminal by performing binarization processing on the post-transfer image using the provisional value; and a post-transfer threshold value optimizing step of repeating a process of correcting the provisional value of the post-transfer threshold value and measuring the size of the terminal by the post-transfer measuring step until a difference between the size of the terminal measured by the pre-transfer measuring step and the size of the terminal measured by the post-transfer measuring step falls within a predetermined allowable range, and including the provisional value of the post-transfer threshold value when the difference falls within the predetermined allowable range as the optimum post-transfer threshold value in the device data.

Here, the pre-transfer threshold value used for the binarization processing in the pre-transfer measurement step is a pre-transfer threshold value (pre-transfer threshold value included in the element data) set in advance by a method similar to the conventional method, and is set so that, for example, a difference between a size of a terminal measured by performing the binarization processing on the pre-transfer image and a reference size obtained from a terminal specification or CAD data described in a product specification or the like falls within a predetermined allowable range.

The above-described setting processing of the pre-transfer threshold value and the post-transfer threshold value is executed by the computer 11 of the component data generation system 10 as follows according to the threshold value setting program for binarization processing of fig. 3.

When the threshold value setting program for binarization processing of fig. 3 is started, first, in step 101, a pre-transfer threshold value set in advance in the component data is acquired, and then the process proceeds to step 102, where the pre-transfer threshold value is used to perform binarization processing on the pre-transfer image, and the terminal size a is measured. In this case, the timing of capturing the image before transfer is not limited to just before the binarization processing of the image before transfer, and may be any timing as long as it is before the binarization processing. For example, the lower surface side of the element before transfer of the transfer material may be photographed by the camera 12 in advance, the image may be stored in the storage device 16 as the image before transfer, and the computer 11 may read the image before transfer from the storage device 16. Alternatively, the pre-transfer image captured by the component imaging camera 21 of the component mounting apparatus 20 may be transferred to the computer 11.

Thereafter, the process proceeds to step 103, where a provisional value (initial value) of the post-transfer threshold value is set based on the pre-transfer threshold value. In this case, the provisional value (initial value) of the threshold value after the transfer may be set to the same value as the threshold value before the transfer, or may be set to a value obtained by slightly decreasing or increasing the threshold value before the transfer. In the case where the transfer material is solder, since the post-transfer image appears darker than the pre-transfer image, the provisional value (initial value) of the post-transfer threshold value may be set to a value slightly smaller than the pre-transfer threshold value. The provisional value (initial value) of the threshold value after transfer may be set to a value obtained by subtracting or adding a fixed value to the threshold value before transfer, or may be set to a value obtained by multiplying the threshold value before transfer by a predetermined increase/decrease coefficient (1 ± α). The provisional value (initial value) of the threshold value after the transfer may be automatically set by the computer 11 or may be manually set by an operator operating the input device 14.

After setting the provisional value (initial value) of the threshold value after the transfer, the flow proceeds to step 104, and the dimension B of the terminal is measured by performing binarization processing on the image after the transfer using the provisional value of the threshold value after the transfer. In this case, the timing of capturing the transferred image is not limited to just before the binarization process of the transferred image, and may be any timing as long as it is before the binarization process. For example, the lower surface side of the transferred element of the transfer material may be photographed by the camera 12 in advance, the image may be stored in the storage device 16 as a transferred image in advance, and the computer 11 may read the transferred image from the storage device 16. Alternatively, the transferred image captured by the component imaging camera 21 of the component mounting apparatus 20 may be transferred to the computer 11.

Thereafter, the process proceeds to step 105, and it is determined whether or not the difference (a-B) between the dimension a of the terminal measured in step 102 (pre-transfer measurement step) and the dimension B of the terminal measured in step 104 (post-transfer measurement step) is within a predetermined allowable range. As a result, if it is determined that the difference (a-B) is not within the predetermined allowable range, the routine proceeds to step 106, where the provisional value of the threshold value after transfer is corrected. At this time, when the difference (A-B) is a positive value, correction is performed in a direction to decrease the provisional value of the threshold value after transfer, and when the difference (A-B) is a negative value, correction is performed in a direction to increase the provisional value of the threshold value after transfer. The correction amount of the provisional value of the threshold value after the transfer may be a fixed value or a fixed ratio determined in advance, or the correction amount of the provisional value may be increased or decreased based on the difference (a-B). The correction amount of the provisional value of the threshold value after the transfer may be automatically set by the computer 11 or may be manually set by an operator operating the input device 14.

After the provisional value of the threshold value after the transfer is corrected, the process returns to step 104, and after the dimension B of the terminal is measured by performing binarization processing on the image after the transfer using the provisional value of the threshold value after the correction, the process proceeds to step 105, and it is determined whether or not the difference (a-B) is within a predetermined allowable range. By the above-described processing, the processing of correcting the provisional value of the threshold value after transfer, performing binarization processing on the image after transfer, and measuring the terminal size B is repeated until the difference (a-B) falls within the predetermined allowable range, and at the time point when the difference (a-B) is determined to fall within the predetermined allowable range, the routine proceeds from step 105 to step 107, and the provisional value of the threshold value after transfer at that time point is set as the optimum threshold value after transfer in the device data, and the routine is terminated.

The component data generated by the threshold setting program for binarization processing of fig. 3 described above is transmitted to the control device 23 of the component mounter 20. Each time a component is picked up by the component pickup camera 21, the control device 23 of the component mounter 20 executes the image processing program of fig. 4 to process an image of the component as described below.

When the image processing program of fig. 4 is started, the control device 23 of the component mounter 20 first acquires an image of the component captured by the component capturing camera 21 in step 201. Then, the routine proceeds to step 202, where it is determined whether or not the acquired image of the element is an image of a transfer target element, and if it is determined that the image is not an image of a transfer target element, the routine proceeds to step 208, where normal image processing is performed for an image of an element to which a transfer material is not transferred, and the routine is ended.

On the other hand, when it is determined in step 202 that the acquired image of the element is the image of the transfer target element, the routine proceeds to step 203, where it is determined whether or not the acquired image of the element is a pre-transfer image captured before transfer of the transfer material, and when it is determined that the acquired image is a pre-transfer image, the routine proceeds to step 204, where a pre-transfer threshold included in the element data is selected as a threshold for binarization of the pre-transfer image, and then, in step 205, the pre-transfer image is binarized using the pre-transfer threshold to measure the size of the terminal, and the routine is terminated.

On the other hand, when it is determined at step 203 that the image is not a pre-transfer image, that is, when it is determined that the image is a post-transfer image captured after the transfer of the transfer material, the process proceeds to step 206, where a post-transfer threshold included in the element data is selected as a threshold for the binarization process of the post-transfer image, and at the next step 207, the post-transfer image is subjected to the binarization process using the post-transfer threshold to measure the size of the terminal, and the program is terminated.

According to embodiment 1 described above, since the element data includes the pre-transfer threshold value for performing the binarization process on the pre-transfer image and the post-transfer threshold value for performing the binarization process on the post-transfer image, when the pre-transfer image is subjected to the binarization process, the pre-transfer image can be subjected to the binarization process using the pre-transfer threshold value included in the element data to measure the size of the terminal, and when the post-transfer image is subjected to the binarization process, the post-transfer image can be subjected to the binarization process using the post-transfer threshold value included in the element data to measure the size of the terminal.

Further, in example 1, since the pre-transfer threshold value and the post-transfer threshold value are set so that the difference between the size of the terminal measured by performing the binarization process on the pre-transfer image and the size of the terminal measured by performing the binarization process on the post-transfer image is within a predetermined allowable range, the measured value of the size of the terminal can be made within an allowable error range regardless of which of the pre-transfer image and the post-transfer image is subjected to the binarization process, and erroneous recognition of the terminal by the binarization process can be prevented.

Example 2

Next, embodiment 2 will be described with reference to fig. 5. Note that, substantially the same portions as those in embodiment 1 are denoted by the same reference numerals, and description thereof is omitted or simplified, and different portions will be mainly described.

In the threshold value setting program for binarization processing of fig. 3 described in the above-mentioned embodiment 1, the threshold value before transfer used in the binarization processing of the image before transfer is a threshold value before transfer set in advance in the component data, but in the present embodiment 2, the threshold value before transfer is set so that the difference between the size of the terminal measured by subjecting the image before transfer to binarization processing and the reference size obtained from the terminal specification or CAD data described in the product specification or the like falls within a predetermined allowable range by executing the threshold value setting program before transfer of fig. 5 by the computer 11 of the component data generation system 10, and then the threshold value after transfer is set by executing the threshold value setting program for binarization processing of fig. 3.

When the computer 11 of the component data generating system 10 starts the pre-transfer threshold setting program of fig. 5, first, in step 301, a reference size C of the terminal is set based on the terminal specification or CAD data described in the product specification or the like. Here, the reference size C of the terminal corresponds to a target measurement value of the terminal size for optimizing the pre-transfer threshold value. The reference dimension C may be set automatically by the computer 11 or manually by an operator operating the input device 14.

After setting the reference size C, the process proceeds to step 302, where a provisional value (initial value) of the threshold value before transfer is set. The provisional value (initial value) of the threshold value before transfer may be automatically set by the computer 11 or manually set by an operator operating the input device 14.

After setting the provisional value (initial value) of the pre-transfer threshold value, the flow proceeds to step 303, where the image before transfer is subjected to binarization processing using the provisional value of the pre-transfer threshold value, and the terminal size D is measured. In this case, the timing of capturing the pre-transfer image is not limited to just before the binarization process of the pre-transfer image, and may be any timing as long as it is before the binarization process. For example, the lower surface side of the element before transfer of the transfer material may be photographed by the camera 12 in advance, the image may be stored in the storage device 16 as the image before transfer, and the computer 11 may read the image before transfer from the storage device 16. Alternatively, the pre-transfer image captured by the component imaging camera 21 of the component mounting apparatus 20 may be transferred to the computer 11.

Thereafter, the process proceeds to step 304, where it is determined whether or not the difference (C-D) between the reference size C of the terminal set in step 301 and the size D of the terminal measured in step 303 is within a predetermined allowable range. As a result, when it is determined that the difference (C-D) is not within the predetermined allowable range, the routine proceeds to step 305, where the provisional value of the pre-transfer threshold value is corrected. At this time, when the difference (C-D) is a positive value, the correction is performed in a direction to decrease the provisional value of the pre-transfer threshold value, and when the difference (C-D) is a negative value, the correction is performed in a direction to increase the provisional value of the pre-transfer threshold value. The correction amount of the provisional value of the pre-transfer threshold value may be a fixed value or a fixed ratio determined in advance, or may be increased or decreased in accordance with the difference (C-D). The correction amount of the provisional value of the threshold value before transfer may be automatically set by the computer 11, or may be manually set by an operator operating the input device 14.

After the provisional value of the pre-transfer threshold value is corrected, the process returns to step 303, and after the size D of the terminal is measured by performing binarization processing on the pre-transfer image using the provisional value of the pre-transfer threshold value after correction, the process proceeds to step 304, and it is determined whether or not the difference (C-D) is within a predetermined allowable range. By the above-described processing, the processing of correcting the provisional value of the pre-transfer threshold value, binarizing the pre-transfer image, and measuring the terminal size D is repeated until the difference (C-D) falls within the predetermined allowable range, and at the time point when it is determined that the difference (C-D) falls within the predetermined allowable range, the routine proceeds from step 304 to step 306, and the provisional value of the pre-transfer threshold value at that time point is set as the optimum pre-transfer threshold value in the device data, and the routine is terminated. After that, the threshold value setting program for binarization processing of fig. 3 is executed to set the threshold value after transfer.

The size of the terminals, the pitch of the terminals, the positions of the terminals, the number of terminals, and the like measured by binarizing the pre-transfer image using the pre-transfer threshold set as described above are set as shape data in the element data. Alternatively, the size of the terminals, the pitch of the terminals, the positions of the terminals, the number of the terminals, and the like measured by binarizing the post-transfer image using the post-transfer threshold value may be set as shape data in the element data.

OTHER EMBODIMENTS

In the above-described embodiment 1, the pre-transfer threshold value and the post-transfer threshold value are set so that the difference between the size of the terminal measured by binarizing the pre-transfer image and the size of the terminal measured by binarizing the post-transfer image is within the predetermined allowable range, but the reference size of the terminal may be set in accordance with the terminal specification described in the product specification or the CAD data, the pre-transfer threshold value may be set so that the difference between the size of the terminal measured by binarizing the pre-transfer image and the reference size is within the predetermined allowable range, and the post-transfer threshold value may be set so that the difference between the size of the terminal measured by binarizing the post-transfer image and the reference size is within the predetermined allowable range.

In example 2, the threshold value after the transfer is set after the threshold value before the transfer is set, but the setting order may be reversed and the threshold value before the transfer may be set after the threshold value after the transfer is set. In this case, after the post-transfer threshold value is set so that the difference between the size of the terminal measured by binarizing the post-transfer image and the reference size obtained from the terminal specification or CAD data falls within a predetermined allowable range, the pre-transfer threshold value may be set so that the difference between the size of the terminal measured by binarizing the post-transfer image and the size of the terminal measured by binarizing the pre-transfer image falls within a predetermined allowable range using the post-transfer threshold value.

The present invention is not limited to the above embodiments, and can be implemented by various modifications.

Description of the reference numerals

10: the component data generation system 11: the computer 12: the camera 13: the lighting device 14: the input device 15: the display device 16: the storage device 20: the component mounting machine 21: element imaging camera 22: the lighting device 23: control device (image processing device) 24: the input device 25: the display device 26: storage device 30: component supply device 31: a transfer device.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:具有姿势控制功能的激光标线仪

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!