WO2017068638A1 - Image processing apparatus and parts mounter - Google Patents
Image processing apparatus and parts mounter Download PDFInfo
- Publication number
- WO2017068638A1 WO2017068638A1 PCT/JP2015/079522 JP2015079522W WO2017068638A1 WO 2017068638 A1 WO2017068638 A1 WO 2017068638A1 JP 2015079522 W JP2015079522 W JP 2015079522W WO 2017068638 A1 WO2017068638 A1 WO 2017068638A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- component
- image processing
- image
- lead
- processing apparatus
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05K—PRINTED CIRCUITS; CASINGS OR CONSTRUCTIONAL DETAILS OF ELECTRIC APPARATUS; MANUFACTURE OF ASSEMBLAGES OF ELECTRICAL COMPONENTS
- H05K13/00—Apparatus or processes specially adapted for manufacturing or adjusting assemblages of electric components
- H05K13/08—Monitoring manufacture of assemblages
- H05K13/081—Integration of optical monitoring devices in assembly lines; Processes using optical monitoring devices specially adapted for controlling devices or machines in assembly lines
- H05K13/0813—Controlling of single components prior to mounting, e.g. orientation, component geometry
Definitions
- the present invention relates to an image processing apparatus and a component mounting machine.
- the component mounter of Patent Document 1 provides a reference pin formed of a material equivalent to a component lead in a robot hand that holds a component, and images the reference pin before imaging the component. Then, based on the captured image of the reference pin, a threshold for binarizing the captured image of the component is set. Thus, it is possible to set an appropriate threshold value by eliminating the influence of the deterioration of the light source.
- the above-described component mounter does not take into consideration the uneven irradiation of the light irradiated to the component and the uneven reflection of the irradiated light.
- the binarization process is appropriate. May not be able to be processed.
- the main object of the present invention is to more appropriately perform image processing when detecting a point of interest of a part.
- the present invention adopts the following means in order to achieve the main object described above.
- the image processing apparatus of the present invention An image processing apparatus that processes a captured image of the component imaged before mounting in a component mounter that mounts the component on a board, A storage unit for storing region information regarding a plurality of regions each including a plurality of points of interest in one part; An extraction unit that extracts a plurality of partial region images corresponding to the region information from the captured image; For each of the extracted partial region images, an acquisition unit that acquires a gradation value of a pixel included in the partial region image; Setting that sets a threshold for determining the boundary of the point of interest included in the partial area image based on the acquired gradation value of the pixel for each partial area image every time the part is imaged And It is a summary to provide.
- region information relating to a plurality of regions each including a plurality of points of interest in one component is stored, and a plurality of partial region images corresponding to the region information each time a component is imaged.
- a threshold value for determining the boundary of the point of interest included in the partial area image is set for each partial area image. For this reason, it is possible to perform image processing using an appropriate threshold value for each point of interest.
- an optimum threshold value can be used for each captured image. Therefore, it is possible to more appropriately perform image processing when detecting the part of interest of the component.
- the component has a plurality of leads that are respectively inserted into a plurality of insertion holes provided in the substrate, and the plurality of points of interest are each of the plurality of leads.
- the storage unit may store information on a plurality of regions including one each of the presence locations of each lead as the region information. In this way, it is possible to improve the accuracy of detecting the position of the lead by appropriately performing image processing when detecting the position of the lead.
- a binary value that binarizes the gradation value of each pixel included in the partial area image using a threshold set by the setting unit. It is good also as a thing provided with a conversion processing part. In this way, it is possible to accurately perform the process of determining the boundary (edge) of the part of interest of the component by binarization.
- the component mounter of the present invention is A component mounter comprising the above-described image processing apparatus of the present invention, A supply device for supplying parts; A mounting device for holding the component supplied by the supply device with a holder and mounting the held component on the substrate; An imaging device for imaging the component; When the captured image captured by the imaging device is processed by the image processing device, the position of the component held by the holder is acquired based on the processing result, and the component is acquired based on the acquired position.
- the component mounter according to the present invention includes the image processing apparatus according to the present invention described above, the same effect as that exhibited by the image processing apparatus is achieved. For this reason, it is possible to more appropriately perform image processing when detecting the part of interest of the component, and to improve the mounting accuracy of the component.
- the imaging apparatus may capture an image of the component while the component is held by the holder, or may capture an image of the component while the component is not held by the holder.
- the supply device supplies a component having a plurality of leads respectively inserted into a plurality of insertion holes provided in the substrate as the component, and at least one of the plurality of leads.
- a cutting device that partially cuts the leads, and the image processing device includes a device in which the storage unit stores region information regarding a plurality of regions each including the plurality of leads. The part that is held by the holding tool in a state in which at least one lead is partially cut by the cutting device is imaged, and the control device holds the holding device based on the processing result of the image processing device. And acquiring the positions of the plurality of leads of the component being controlled, and controlling the mounting apparatus so that the leads are inserted into the insertion holes based on the acquired positions.
- FIG. 1 is a configuration diagram showing an outline of the configuration of a component mounter 10.
- FIG. FIG. 3 is a block diagram showing a configuration relating to control of the component mounter 10.
- the block diagram which shows the outline of a structure of the parts camera.
- the flowchart which shows an example of a component mounting process.
- the flowchart which shows an example of an image process.
- Explanatory drawing which shows an example of a partial region image.
- Explanatory drawing which shows an example of a mode that the binarization threshold value is set for every partial area image.
- Explanatory drawing which shows an example of a mode that the binarization threshold value is set from the target image of a comparative example.
- the perspective view of the components P of a modification Explanatory drawing of a mode that the boundary of several attention location is discriminated in the component P of a modification.
- FIG. 1 is a block diagram showing an outline of the configuration of the component mounter 10
- FIG. 2 is a block diagram showing a configuration related to control of the component mounter 10.
- 1 is the X-axis direction
- the front-rear direction is the Y-axis direction
- the vertical direction is the Z-axis direction.
- the component mounter 10 includes a component supply device 12 that supplies a component P, a substrate transfer device 16 that transfers a flat substrate S, and a substrate holding device 18 that holds the transferred substrate S. And a head 20 to which a component chuck device 22 that grips the component P is attached, and a moving mechanism 24 that moves the head 20 in the XY directions.
- the component mounter 10 includes a mark camera 26 that captures a mark attached to the substrate S, a part camera 30 that captures a component P gripped by the component chuck device 22, and image processing that performs image processing of various images.
- the apparatus 40 (refer FIG. 2) and the control apparatus 50 (refer FIG. 2) which control the whole component mounting machine 10 are provided.
- the component chuck device 22 grips the component P using an openable / closable chuck claw, and is detachably attached to the head 20.
- the head 20 can be attached with a component suction device that sucks the component P using a nozzle.
- the component supply device 12 includes a tape feeder 13 that supplies a component P by sending out a tape to which a component P with a lead (a radial component shown in FIG. 1 or an axial component not shown) is attached.
- the tape feeder 13 includes a lead cutter 14 that cuts the lead L of the component P into a predetermined length, a bending mechanism (not shown) that bends the lead L of the axial component downward, and the like.
- the lead cutter 14 has a fixed blade 14 a and a movable blade 14 b that can be operated by driving an air cylinder (not shown) opposed to each other.
- the lead cutter 14 shears the lead L by advancing to a position where the tip of the movable blade 14b overlaps the fixed blade 14a, for example, with the lead L of the radial part interposed therebetween.
- the lead L is inserted into the insertion hole formed in the substrate S.
- the lead L inserted into the insertion hole is subjected to processing such as bending from the lower surface side of the substrate S by a lead processing device (not shown).
- the head 20 includes an elevating mechanism and a rotating mechanism (not shown), and moves the attached component chuck device 22 and the component suction device up and down in the Z-axis direction and rotates (rotates) around the axis.
- An air flow path connected to a negative pressure source such as a vacuum pump (not shown) is provided in the head 20.
- the head 20 supplies the negative pressure through the air flow path from the negative pressure source, thereby causing the component chuck device 22 to grip the component P or causing the component suction device to suck the component P.
- FIG. 3 is a configuration diagram showing an outline of the configuration of the parts camera 30.
- the parts camera 30 includes an imaging element 32 having a rectangular imaging region in which a plurality of light receiving elements such as CCDs are two-dimensionally arranged, a lens 34 provided above the imaging element 32, and And an illumination device 36 that emits light from the side of the lead L when imaging the component P.
- the illumination device 36 irradiates light from the side of the lead L, so that it is on the lower surface of the component P (the background portion of the captured image) and the front end surface of the lead L, compared to the light irradiating from below the lead L.
- the degree of reflection of the irradiation light is moderate, and the image processing apparatus 40 can easily detect the boundary (edge) of the lead L in the captured image.
- the lead L is sheared by the lead cutter 14, depending on the wear state of the fixed blade 14a and the movable blade 14b, the posture (inclination) of the part P, etc. ) And the angle of the surface to be imaged differ for each component P. For this reason, the degree of light reflection differs for each component P (for each lead L), and the brightness in the captured image may change partially.
- the control device 50 is constituted by a CPU, ROM, RAM, HDD, and the like, and controls the entire device. As shown in FIG. 2, the control device 50 includes a drive signal to each device such as the component supply device 12, the substrate transport device 16, and the substrate holding device 18, a drive signal to the head 20 (component chuck device 22), and a moving mechanism. 24, a drive signal to the mark camera 26 and the parts camera 30, and the like are output.
- the control device 50 is communicably connected to the image processing device 40, and outputs information related to the execution of image processing to the image processing device 40, and inputs information related to the result of image processing from the image processing device 40. Or
- the image processing apparatus 40 includes a CPU, a ROM, a RAM, and the like, and performs image processing by inputting a captured image captured by the mark camera 26 or the part camera 30.
- the image processing apparatus 40 stores an image processing program and various types of information in a storage unit 42 such as a ROM.
- the storage unit 42 stores component information regarding the component P with leads.
- the component information includes a component type that indicates the type of the component P, the number of leads L that the component P has, and information that can identify a lead presence area that includes a position where each lead L exists.
- the lead existence area is a rectangular area including the tip position of the lead L in the captured image, and is an area in which position coordinates of the upper left corner and the lower right corner are determined.
- the position coordinates are represented by XY coordinates based on the position of the center of the captured image (the center of the part P imaged by the parts camera 30).
- the lead existing area of the left lead L (L) is the upper left corner position coordinates (XL1s, YL1s) and the lower right corner position coordinates (XL1e, YL1e). Is stipulated.
- FIG. 4 is a flowchart showing an example of the component mounting process. This process is executed by the control device 50.
- the control device 50 first causes the component chuck device 22 to grip the component P supplied from the component supply device 12 (S100).
- the control device 50 controls the component supply device 12 to send out the component P, controls the moving mechanism 24 so that the head 20 moves to the component supply position, and the component chuck device 22 can grip the component P.
- the head 20 is controlled so as to be in the height position and orientation, and a negative pressure from a negative pressure source is supplied to cause the component chuck device 22 to perform a gripping operation.
- the control device 50 controls the moving mechanism 24 so that the component P gripped by the component chuck device 22 moves onto the substrate S via the upper part of the parts camera 30 (S110).
- the parts camera 30 is controlled so that the part P is imaged when it is on (S120).
- the control device 50 also instructs the image processing device 40 to execute image processing.
- the control apparatus 50 acquires the result of the image processing performed by the image processing apparatus 40 on the captured image obtained by the imaging in S120 (S130).
- S130 the imaging in S120
- the control device 50 sets a correction value related to the mounting position of the component P based on the acquired position of the lead L (S140), and mounts the component P at a position on the substrate S reflecting the correction value. (S150), the component mounting process is terminated.
- the control device 50 determines the mounting position and axis in the XY directions based on the position (tip position) of the lead L in S140 so that the lead L can be correctly inserted into the insertion hole even if the component P has a poor posture. Set the correction value for the mounting direction around.
- control device 50 controls the moving mechanism 24 and the head 20 so that the tip of the lead L of the component P held by the component chuck device 22 is directly above the insertion hole of the substrate S. After controlling the head 20 so that the component chuck device 22 is lowered until the component chuck device 22 is inserted into the insertion hole, the supply of the negative pressure from the negative pressure source is released and the component chuck device 22 is caused to perform a grip releasing operation.
- FIG. 5 is a flowchart illustrating an example of image processing. This process is executed when a captured image is input after an image processing execution instruction from the control device 50 is input. Note that the image processing execution instruction includes the component type to be processed.
- the captured image is input as a grayscale image in which the gradation value of each pixel is 8 bits.
- the image processing apparatus 40 When the image processing is executed, the image processing apparatus 40 first determines whether or not the component type of the current processing target has been changed from the previous processing target (S200). When determining that the component type has been changed, the image processing apparatus 40 reads information on the lead existing area of the corresponding component type from the component information stored in the storage unit 42 (S210). Then, the image processing apparatus 40 sets a range of the partial area image corresponding to the read lead existing area information (S220). For example, when information on two areas is stored as the lead existence area, the image processing apparatus 40 reads the information on the two lead existence areas and sets the ranges of the two partial area images corresponding to the respective lead existence areas. To do. On the other hand, if the image processing apparatus 40 determines that the component type has not been changed, the image processing apparatus 40 skips the processes of S210 and S220.
- FIG. 6 is an explanatory diagram showing an example of a partial area image.
- FIG. 6 illustrates a partial region image set in the captured image of the component P of the component type PA01.
- the component P of the component type PA01 includes two left and right leads L as shown in the component information of FIG.
- the image processing device 40 reads based on the position coordinates (XL1s, YL1s) of the upper left corner, which is the lead existing area of the left lead L (L), and the position coordinates (XL1e, YL1e) of the lower right corner.
- a partial area image A including L (L) is set.
- the image processing apparatus 40 also determines the right lead L based on the upper left corner position coordinates (XR1s, YR1s) and the lower right corner position coordinates (XR1e, YR1e), which are the lead existing areas of the right lead L (R).
- a partial area image B including (R) is set. In this way, a plurality of partial area images are set in one captured image as areas corresponding to the areas where each lead L exists.
- the lead existence area is defined as an area including the lead L (a captured image of the lead L can be acquired) even if the lead L is misaligned.
- the image processing apparatus 40 is not limited to setting the partial area image using the coordinates of the existing area of the lead L as it is, and the partial area image may be set by performing a coordinate conversion process.
- the image processing apparatus 40 extracts the partial area image (each pixel constituting the image) set in S220 from the captured image (S230), and calculates the gradation value of each pixel of one partial area image to be processed.
- Obtaining (S240) a binarization threshold value for detecting the boundary (edge) of the lead L in the partial area image is set based on the gradation value of each pixel (S250).
- the binarization threshold is suitable for a partial region image to be processed using a known method such as a P-tile method, a mode method, or a discriminant analysis method based on a gradation value distribution (histogram) of each pixel. Can be set to a value.
- the image processing apparatus 40 When the binarization threshold is set, the image processing apparatus 40 performs binarization processing that binarizes each pixel of the partial area image using the binarization threshold (S260). Subsequently, the image processing apparatus 40 detects the edge of the lead L (boundary between the lead L and the background portion) from the binarized image (S270), and acquires the lead position based on the detected edge (S280). Then, the image processing apparatus 40 determines whether or not there is an unprocessed partial area image (S290). If it is determined that there is an unprocessed partial area image, the image processing apparatus 40 returns to S240 and targets the unprocessed partial area image. Then, the processes of S240 to S280 are performed.
- the image processing apparatus 40 determines that there is no unprocessed partial area image, the image processing ends.
- the binarization threshold is set for each partial region image, the binarization process is performed, and the edge of the lead L is detected.
- FIG. 7 is an explanatory diagram showing an example of a state in which a binarization threshold is set for each partial region image.
- the lead L is easier to reflect the irradiation light than the body part of the component P.
- the captured image (partial region image) obtained by imaging the component P is an image in which the portion of the lead L appears white and the other background portion (body portion of the component P) appears black. Therefore, the pixel of the lead L portion usually has a gradation value with higher brightness than the pixel of the background portion. For this reason, as shown in the histogram of the partial area image A, the gradation value gradation of each pixel in one partial area image usually has a distinct difference in brightness.
- the brightness of the captured image may change due to the light reflection state being different for each component P (for each lead L). For this reason, the captured image may become darker or brighter as a whole, or the difference in brightness between the lead L and the background portion may not appear clearly.
- the histogram of the partial region image B there may be a case where the difference between brightness and darkness does not appear clearly because the gradation value of each pixel is biased toward a smaller side.
- the tendency of the gradation value of each pixel may be greatly different at the location where each lead L exists.
- an appropriate binarization threshold can be set according to the tendency of the gradation value of each pixel of each partial area image. For this reason, it is possible to appropriately detect the edge of the lead L by appropriately performing the binarization process in each partial region image.
- FIG. 8 is an explanatory diagram showing an example of how the binarization threshold is set from the target image of the comparative example.
- FIG. 8 shows an example in which one binarization threshold is set with one rectangular area including the partial area images A and B as a processing target image.
- the image processing apparatus creates a histogram obtained by adding the histograms of the partial area images A and B shown in FIG. 7, and sets a threshold value based on the histogram.
- the threshold value may not be an appropriate threshold value for at least one of the leads L. For example, considering the histogram of FIG.
- the threshold value is not appropriate for at least the lead L (R). For this reason, when the image processing apparatus 40 performs binarization processing by setting one threshold value from the captured image (part of the target image of the captured image), the appropriate binarization processing is not performed, and a plurality of leads L Edges may not be detected properly.
- the component mounter 10 of this embodiment corresponds to the component mounter of the present invention
- the image processing device 40 corresponds to the image processing device.
- the storage unit 42 corresponds to the storage unit
- the image processing device 40 that executes S230 of the image processing of FIG. 5 corresponds to the extraction unit
- the image processing device 40 that executes S240 of the image processing corresponds to the acquisition unit.
- the image processing apparatus 40 that executes S250 of the image processing corresponds to the setting unit.
- the image processing apparatus 40 that executes the image processing S260 corresponds to a binarization processing unit.
- the component supply device 12 corresponds to a supply device
- the head 20 to which the component chuck device 22 is attached and the moving mechanism 24 correspond to a mounting device
- the parts camera 30 corresponds to an imaging device.
- the control device 50 that executes S130 to S150 of the component mounting process 4 corresponds to the control device.
- the lead cutter 14 corresponds to a cutting device.
- the image processing apparatus 40 described above stores in the storage unit 42 information related to a plurality of lead existing areas each including a plurality of leads L existing in one component P.
- the image processing device 40 sets a threshold value for each partial region image based on the gradation value of each pixel acquired from a plurality of partial region images corresponding to the lead existing region each time the component P is imaged. . Therefore, the image processing apparatus 40 can perform image processing using an appropriate threshold value for each location where the lead L exists, and can use an optimal threshold value for each captured image. Therefore, the image processing apparatus 40 can more appropriately perform image processing when detecting the location where the lead L is present, and detect the position of the lead L with high accuracy.
- the image processing device 40 binarizes the gradation value of each pixel included in each partial region image using a threshold set for each partial region image, the accuracy of the binarization process can be improved. it can. Since the component mounter 10 includes the image processing device 40, the effect of the image processing device 40 is achieved. Further, in the component mounter 10, since the image processing apparatus 40 detects the position of the lead L with high accuracy, the lead L of the component P is smoothly inserted into the insertion hole of the substrate S to improve the mounting accuracy of the component P. be able to.
- the image processing apparatus 40 performs image processing on the captured image of the radial part.
- the present invention is not limited to this, and the captured image of the axial part may be processed.
- the lead L of the axial component is bent so that the tip is directed downward after being cut by the lead cutter 14.
- storage part 42 should just memorize
- the image processing apparatus 40 performs image processing on a captured image captured from below the component P by the parts camera 30.
- the present invention is not limited to this, and a captured image captured from above the component P by the mark camera 26. May be image processed.
- the part P at the supply position of the part P may be imaged, or the part P at a position different from the supply position may be imaged.
- the threshold value for binarization processing when the image processing device 40 detects the position of the lead L is set.
- the present invention is not limited to this, and the image processing device 40 has a plurality of points of interest of the component P. What is necessary is just to set the threshold value for discriminating a boundary (boundary with a background part).
- the threshold value may be a threshold value for determining the boundary between the component P and the background portion, or may be a threshold value for determining the boundary between members in the component P formed of different members.
- FIG. 9 is a perspective view of a component P according to a modification.
- the component P of the modified example is an LED chip component including a body part Pb formed of a ceramic material and including an LED, and a cover part Pc formed of a transparent resin material that covers the LED.
- the component supply device 12 supplies the component P in a state of being placed on a tray or the like, and the head 20 holds the component P by the component chuck device 22 and mounts it on the substrate S.
- the mark camera 26 images the upper surface of the component P, and the image processing apparatus 40 performs image processing on the captured image. It is assumed that the component mounter 20 includes a temporary placement table (not shown), and the mark camera 26 covers the upper surface of the component P with the component P held by the component chuck device 22 at the component supply position temporarily placed on the temporary placement table. It is good also as what picks up an image.
- storage part 42 memorize
- the image processing device 40 extracts partial area images corresponding to the areas A1 and A2 from the captured image of the component P. Then, the image processing device 40 sets a threshold value for discriminating the boundary between the cover part Pc and the body part Pb by binarization processing based on the gradation value of each pixel of the partial area image corresponding to the area A1.
- a threshold value for determining the boundary between the body part Pb and the background part by binarization processing is set. Also in this modified example, the image processing apparatus 40 sets a threshold value for each partial region image that includes a point of interest, and thus can perform image processing using an appropriate threshold value as in the above-described embodiment.
- FIG. 10 is an explanatory diagram showing how boundaries of a plurality of points of interest are determined in the component P of the modification, and illustrates an example in which boundaries are determined at a plurality of points (for example, four points) with the cover portion Pc as a point of interest.
- the image processing apparatus 40 has a plurality of sets (four sets of T, U, V, and W) each including two determination points that are separated by a predetermined distance across the outer edge of the cover portion Pc. The boundary is determined using the gradation value of the pixel.
- the determination points of each set are a point (for example, Tin) inside (on the cover portion Pc) from the outer edge of the cover portion Pc, and a point (for example, Tout) outside the outer edge (on the body portion Pb) of the cover portion Pc. Consists of.
- the storage unit 42 stores region information regarding a plurality (four) regions (line segments) each including two determination points of each group.
- the image processing device 40 extracts four partial region images corresponding to the respective regions from the captured image of the component P, and calculates a difference ⁇ G between the gradation values of the pixels at the two determination points included in the partial region images. To do.
- the image processing apparatus 40 sets a threshold value of the difference ⁇ G for each partial region image, compares the difference ⁇ G with the threshold value, and determines a boundary (presence / absence of a boundary) of the point of interest.
- FIG. 10 illustrates pixel gradation values and their differences at the determination points Uin and Uout and the determination points Vin and Vout.
- the captured image is partially darkened or brightened depending on the surface condition (dirt, wrinkles, etc.), poor posture, light reflection condition, etc., and the cover part Pc
- the difference in brightness from the body part Pb may not appear clearly.
- the gradation value of the determination point Vin exceeds the predetermined value Gref
- the partial region image having the determination point V has normal brightness
- the gradation value of the determination point Uin does not exceed the predetermined value Gref. It is assumed that the brightness of the partial area image having the determination point U is not normal.
- the image processing apparatus 40 sets the threshold value G1 when the gradation value of the inner determination point exceeds the predetermined value Gref, and sets the threshold value G2 smaller than the threshold value G1 when the gradation value does not exceed the predetermined value Gref. Then, if the difference ⁇ G in gradation values exceeds the threshold value, the image processing apparatus 40 determines that there is a boundary of the cover portion Pc (boundary with the body portion Pb) between both determination points, and the difference in gradation values. If ⁇ G does not exceed the threshold value, it is determined that there is no boundary of the cover portion Pc between the two determination points (positional deviation or the like has occurred in the component P). In FIG.
- the image processing apparatus 40 determines that there is a boundary of the cover portion Pc between the two determination points. Further, the image processing device 40 determines that there is a boundary of the cover portion Pc between the determination points because the difference ⁇ Gu between the determination point Uin and the determination point Uout exceeds the threshold value G2. Similar processing is performed on the partial area images of the determination points T and W. As described above, since the threshold value is set for each partial region image in this modified example, the boundary of the point of interest can be appropriately determined.
- the image processing device 40 is included in the component mounter 10, but is not limited thereto, and the image processing device 40 may not be included in the component mounter 10.
- a management apparatus that manages the component mounter 10 may have the function of an image processing apparatus.
- the present invention can be used in the manufacturing industry of an image processing apparatus that processes an image of a component mounted on a substrate and a component mounting machine including the image processing apparatus.
Landscapes
- Engineering & Computer Science (AREA)
- Operations Research (AREA)
- Manufacturing & Machinery (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Supply And Installment Of Electrical Components (AREA)
Abstract
This image processing apparatus stores, in a storage unit, information on two lead existence regions, each including one existence location of two leads (L) and (R) in one part P (PA01). Each time the part P is imaged, on the basis of gray-scale values of pixels acquired from two partial region images A, B corresponding to the lead existence regions, the image processing apparatus sets, for each partial region image, a threshold for determining a boundary of the lead included in the partial region image. Thus, image processing is implemented with a threshold suited for each lead existence location and the threshold is optimized for each captured image, and hence the boundary of each lead can be properly determined.
Description
本発明は、画像処理装置および部品実装機に関する。
The present invention relates to an image processing apparatus and a component mounting machine.
従来より、複数のリード(着目箇所)を有する部品に光源からの光を照射しながら画像を撮像し、撮像画像を二値化処理して各リードの位置を検出し、検出したリードの位置に基づいて部品の実装位置や向きを補正して基板に実装する部品実装機が提案されている。例えば、特許文献1の部品実装機は、部品を保持するロボットハンドに、部品のリードと同等の材料で形成された基準ピンを設けておき、部品撮像前に基準ピンを撮像する。そして、基準ピンの撮像画像に基づいて、部品の撮像画像を二値化処理する際の閾値を設定する。これにより、光源の劣化の影響を排除して、適切な閾値を設定できるとしている。
Conventionally, an image is picked up while irradiating light from a light source onto a component having a plurality of leads (points of interest), the picked-up image is binarized to detect the position of each lead, and the detected lead position Based on this, a component mounter that corrects the mounting position and orientation of components and mounts them on a board has been proposed. For example, the component mounter of Patent Document 1 provides a reference pin formed of a material equivalent to a component lead in a robot hand that holds a component, and images the reference pin before imaging the component. Then, based on the captured image of the reference pin, a threshold for binarizing the captured image of the component is set. Thus, it is possible to set an appropriate threshold value by eliminating the influence of the deterioration of the light source.
しかしながら、上述した部品実装機では、部品に照射される光の照射ムラや照射された光の反射ムラについては考慮されていない。ここで、部品のサイズや形状、素材などによっては、光源からの光の照射具合や照射された光の反射具合に部分的な差が生じて、光の照射ムラや反射ムラが発生する場合がある。その場合、一の部品の撮像画像において、明るさの傾向が大きく異なる部分が混在するため、基準ピンの撮像画像から設定した閾値を画像全体に一律に用いて二値化処理しても、適切に処理できないことがある。
However, the above-described component mounter does not take into consideration the uneven irradiation of the light irradiated to the component and the uneven reflection of the irradiated light. Here, depending on the size, shape, material, etc. of the part, there may be a partial difference in the light irradiation from the light source and the reflection of the irradiated light, resulting in uneven light irradiation and uneven reflection. is there. In that case, in the captured image of one component, there is a mixture of parts with greatly different brightness tendencies, so even if the threshold value set from the captured image of the reference pin is uniformly used for the entire image, the binarization process is appropriate. May not be able to be processed.
本発明は、部品の着目箇所を検出する際の画像処理を、より適切に行うことを主目的とする。
The main object of the present invention is to more appropriately perform image processing when detecting a point of interest of a part.
本発明は、上述の主目的を達成するために以下の手段を採った。
The present invention adopts the following means in order to achieve the main object described above.
本発明の画像処理装置は、
部品を基板に実装する部品実装機において実装前に撮像された前記部品の撮像画像を処理する画像処理装置であって、
一の前記部品における複数の着目箇所を一ずつ含む複数の領域に関する領域情報を記憶する記憶部と、
前記領域情報に対応する複数の部分領域画像を前記撮像画像から抽出する抽出部と、
前記抽出された複数の部分領域画像のそれぞれについて、該部分領域画像に含まれる画素の階調値を取得する取得部と、
前記部品が撮像される度に、前記取得された画素の階調値に基づいて前記部分領域画像に含まれる前記着目箇所の境界を判別するための閾値を、前記部分領域画像毎に設定する設定部と、
を備えることを要旨とする。 The image processing apparatus of the present invention
An image processing apparatus that processes a captured image of the component imaged before mounting in a component mounter that mounts the component on a board,
A storage unit for storing region information regarding a plurality of regions each including a plurality of points of interest in one part;
An extraction unit that extracts a plurality of partial region images corresponding to the region information from the captured image;
For each of the extracted partial region images, an acquisition unit that acquires a gradation value of a pixel included in the partial region image;
Setting that sets a threshold for determining the boundary of the point of interest included in the partial area image based on the acquired gradation value of the pixel for each partial area image every time the part is imaged And
It is a summary to provide.
部品を基板に実装する部品実装機において実装前に撮像された前記部品の撮像画像を処理する画像処理装置であって、
一の前記部品における複数の着目箇所を一ずつ含む複数の領域に関する領域情報を記憶する記憶部と、
前記領域情報に対応する複数の部分領域画像を前記撮像画像から抽出する抽出部と、
前記抽出された複数の部分領域画像のそれぞれについて、該部分領域画像に含まれる画素の階調値を取得する取得部と、
前記部品が撮像される度に、前記取得された画素の階調値に基づいて前記部分領域画像に含まれる前記着目箇所の境界を判別するための閾値を、前記部分領域画像毎に設定する設定部と、
を備えることを要旨とする。 The image processing apparatus of the present invention
An image processing apparatus that processes a captured image of the component imaged before mounting in a component mounter that mounts the component on a board,
A storage unit for storing region information regarding a plurality of regions each including a plurality of points of interest in one part;
An extraction unit that extracts a plurality of partial region images corresponding to the region information from the captured image;
For each of the extracted partial region images, an acquisition unit that acquires a gradation value of a pixel included in the partial region image;
Setting that sets a threshold for determining the boundary of the point of interest included in the partial area image based on the acquired gradation value of the pixel for each partial area image every time the part is imaged And
It is a summary to provide.
本発明の画像処理装置では、一の部品における複数の着目箇所を一ずつ含む複数の領域に関する領域情報を記憶しておき、部品が撮像される度に、領域情報に対応する複数の部分領域画像から取得された各画素の階調値に基づいて、その部分領域画像に含まれる着目箇所の境界を判別するための閾値を、部分領域画像毎に設定する。このため、着目箇所毎に適切な閾値を用いて画像処理することができる。また、部品が撮像される度に閾値を設定するから、撮像画像毎に最適な閾値を用いることができる。したがって、部品の着目箇所を検出する際の画像処理を、より適切に行うことができる。
In the image processing apparatus of the present invention, region information relating to a plurality of regions each including a plurality of points of interest in one component is stored, and a plurality of partial region images corresponding to the region information each time a component is imaged. Based on the gradation value of each pixel acquired from the above, a threshold value for determining the boundary of the point of interest included in the partial area image is set for each partial area image. For this reason, it is possible to perform image processing using an appropriate threshold value for each point of interest. Moreover, since a threshold value is set every time a part is imaged, an optimum threshold value can be used for each captured image. Therefore, it is possible to more appropriately perform image processing when detecting the part of interest of the component.
また、本発明の画像処理装置では、前記部品は、前記基板に設けられた複数の挿入孔にそれぞれ挿入される複数のリードを有し、前記複数の着目箇所は、前記複数のリードのそれぞれの存在箇所であり、前記記憶部は、前記領域情報として、各リードの存在箇所を一ずつ含む複数の領域に関する情報を記憶するものとしてもよい。こうすれば、リードの位置を検出する際の画像処理をより適切に行って、リードの位置を検出する精度を向上させることができる。
In the image processing apparatus of the present invention, the component has a plurality of leads that are respectively inserted into a plurality of insertion holes provided in the substrate, and the plurality of points of interest are each of the plurality of leads. The storage unit may store information on a plurality of regions including one each of the presence locations of each lead as the region information. In this way, it is possible to improve the accuracy of detecting the position of the lead by appropriately performing image processing when detecting the position of the lead.
また、本発明の画像処理装置では、前記複数の部分領域画像のそれぞれについて、前記設定部が設定した閾値を用いて該部分領域画像に含まれる各画素の階調値を二値化する二値化処理部を備えるものとしてもよい。こうすれば、二値化により部品の着目箇所の境界(エッジ)を判別する処理を精度よく行うことができる。
In the image processing apparatus of the present invention, for each of the plurality of partial area images, a binary value that binarizes the gradation value of each pixel included in the partial area image using a threshold set by the setting unit. It is good also as a thing provided with a conversion processing part. In this way, it is possible to accurately perform the process of determining the boundary (edge) of the part of interest of the component by binarization.
本発明の部品実装機は、
上述した本発明の画像処理装置を備える部品実装機であって、
部品を供給する供給装置と、
前記供給装置により供給された前記部品を保持具によって保持し、該保持した部品を前記基板に実装する実装装置と、
前記部品を撮像する撮像装置と、
前記撮像装置により撮像された撮像画像が前記画像処理装置により処理されると、該処理結果に基づいて前記保持具に保持される前記部品の位置を取得し、該取得した位置に基づいて前記部品が前記基板に実装されるよう前記実装装置を制御する制御装置と、
を備えることを要旨とする。 The component mounter of the present invention is
A component mounter comprising the above-described image processing apparatus of the present invention,
A supply device for supplying parts;
A mounting device for holding the component supplied by the supply device with a holder and mounting the held component on the substrate;
An imaging device for imaging the component;
When the captured image captured by the imaging device is processed by the image processing device, the position of the component held by the holder is acquired based on the processing result, and the component is acquired based on the acquired position. A control device for controlling the mounting device so that is mounted on the substrate;
It is a summary to provide.
上述した本発明の画像処理装置を備える部品実装機であって、
部品を供給する供給装置と、
前記供給装置により供給された前記部品を保持具によって保持し、該保持した部品を前記基板に実装する実装装置と、
前記部品を撮像する撮像装置と、
前記撮像装置により撮像された撮像画像が前記画像処理装置により処理されると、該処理結果に基づいて前記保持具に保持される前記部品の位置を取得し、該取得した位置に基づいて前記部品が前記基板に実装されるよう前記実装装置を制御する制御装置と、
を備えることを要旨とする。 The component mounter of the present invention is
A component mounter comprising the above-described image processing apparatus of the present invention,
A supply device for supplying parts;
A mounting device for holding the component supplied by the supply device with a holder and mounting the held component on the substrate;
An imaging device for imaging the component;
When the captured image captured by the imaging device is processed by the image processing device, the position of the component held by the holder is acquired based on the processing result, and the component is acquired based on the acquired position. A control device for controlling the mounting device so that is mounted on the substrate;
It is a summary to provide.
本発明の部品実装機は、上述した本発明の画像処理装置を備えるから、画像処理装置が奏する効果と同様の効果を奏するものとなる。このため、部品の着目箇所を検出する際の画像処理をより適切に行って、部品の実装精度の向上に繋げることができる。なお、撮像装置は、部品が保持具に保持されている状態で部品を撮像してもよいし、部品が保持具に保持されていない状態で部品を撮像してもよい。
Since the component mounter according to the present invention includes the image processing apparatus according to the present invention described above, the same effect as that exhibited by the image processing apparatus is achieved. For this reason, it is possible to more appropriately perform image processing when detecting the part of interest of the component, and to improve the mounting accuracy of the component. Note that the imaging apparatus may capture an image of the component while the component is held by the holder, or may capture an image of the component while the component is not held by the holder.
また、本発明の部品実装機では、前記供給装置は前記部品として前記基板に設けられた複数の挿入孔にそれぞれ挿入される複数のリードを有する部品を供給し、前記複数のリードのうち少なくとも一のリードを部分的に切断する切断装置を備え、前記画像処理装置として前記記憶部が前記複数のリードの存在箇所を一ずつ含む複数の領域に関する領域情報を記憶する装置を備え、前記撮像装置は前記切断装置により少なくとも一のリードが部分的に切断された状態で前記保持具に保持されている前記部品を撮像し、前記制御装置は前記画像処理装置による処理結果に基づいて前記保持具に保持されている前記部品の前記複数のリードの位置を取得し該取得した位置に基づいて前記リードが前記挿入孔に挿入されるよう前記実装装置を制御するものとすることもできる。こうすれば、リードの位置を検出する際の画像処理をより適切に行って、リードの位置を検出する精度を向上させることができる。また、取得したリードの位置に基づいて基板の挿入孔にリードを精度よく挿入することができるから、実装精度を向上させることもできる。
In the component mounter of the present invention, the supply device supplies a component having a plurality of leads respectively inserted into a plurality of insertion holes provided in the substrate as the component, and at least one of the plurality of leads. A cutting device that partially cuts the leads, and the image processing device includes a device in which the storage unit stores region information regarding a plurality of regions each including the plurality of leads. The part that is held by the holding tool in a state in which at least one lead is partially cut by the cutting device is imaged, and the control device holds the holding device based on the processing result of the image processing device. And acquiring the positions of the plurality of leads of the component being controlled, and controlling the mounting apparatus so that the leads are inserted into the insertion holes based on the acquired positions. It can also be a thing. In this way, it is possible to improve the accuracy of detecting the position of the lead by appropriately performing image processing when detecting the position of the lead. In addition, since the lead can be accurately inserted into the insertion hole of the substrate based on the acquired lead position, the mounting accuracy can be improved.
図1は部品実装機10の構成の概略を示す構成図であり、図2は部品実装機10の制御に関する構成を示すブロック図である。なお、図1の左右方向がX軸方向であり、前後方向がY軸方向であり、上下方向がZ軸方向である。
FIG. 1 is a block diagram showing an outline of the configuration of the component mounter 10, and FIG. 2 is a block diagram showing a configuration related to control of the component mounter 10. 1 is the X-axis direction, the front-rear direction is the Y-axis direction, and the vertical direction is the Z-axis direction.
部品実装機10は、図1に示すように、部品Pを供給する部品供給装置12と、平板状の基板Sを搬送する基板搬送装置16と、搬送された基板Sを保持する基板保持装置18と、部品Pを把持する部品チャック装置22が取り付けられたヘッド20と、ヘッド20をXY方向に移動させる移動機構24とを備える。また、部品実装機10は、基板Sに付されたマークを撮像するマークカメラ26と、部品チャック装置22に把持された部品Pを撮像するパーツカメラ30と、各種画像の画像処理を行う画像処理装置40(図2参照)と、部品実装機10の全体を制御する制御装置50(図2参照)とを備える。部品チャック装置22は、開閉可能なチャック爪を用いて部品Pを把持するものであり、ヘッド20に着脱可能に取り付けられる。ヘッド20は、部品チャック装置22以外に、ノズルにより部品Pを吸着する部品吸着装置が取り付け可能である。
As shown in FIG. 1, the component mounter 10 includes a component supply device 12 that supplies a component P, a substrate transfer device 16 that transfers a flat substrate S, and a substrate holding device 18 that holds the transferred substrate S. And a head 20 to which a component chuck device 22 that grips the component P is attached, and a moving mechanism 24 that moves the head 20 in the XY directions. In addition, the component mounter 10 includes a mark camera 26 that captures a mark attached to the substrate S, a part camera 30 that captures a component P gripped by the component chuck device 22, and image processing that performs image processing of various images. The apparatus 40 (refer FIG. 2) and the control apparatus 50 (refer FIG. 2) which control the whole component mounting machine 10 are provided. The component chuck device 22 grips the component P using an openable / closable chuck claw, and is detachably attached to the head 20. In addition to the component chuck device 22, the head 20 can be attached with a component suction device that sucks the component P using a nozzle.
部品供給装置12は、リード付きの部品P(図1に示すラジアル部品や図示しないアキシャル部品など)が貼り付けられたテープを送り出すことで部品Pを供給するテープフィーダ13などを備える。テープフィーダ13は、部品PのリードLを所定長さに切断するリードカッタ14やアキシャル部品のリードLを下向きに折り曲げる図示しない曲げ機構などを備える。リードカッタ14は、図1中の拡大図に示すように、固定刃14aと、図示しないエアシリンダの駆動により作動可能な可動刃14bとが対向して配置されている。そして、リードカッタ14は、例えばラジアル部品のリードLを挟んだ状態で、可動刃14bの先端が固定刃14aに重なる位置まで進出することにより、リードLを剪断する。部品Pは基板Sに装着される際に、基板Sに形成された挿入孔にリードLが挿入される。なお、挿入孔に挿入されたリードLは、基板Sの下面側から図示しないリード加工装置により曲げなどの加工が行われる。
The component supply device 12 includes a tape feeder 13 that supplies a component P by sending out a tape to which a component P with a lead (a radial component shown in FIG. 1 or an axial component not shown) is attached. The tape feeder 13 includes a lead cutter 14 that cuts the lead L of the component P into a predetermined length, a bending mechanism (not shown) that bends the lead L of the axial component downward, and the like. As shown in the enlarged view in FIG. 1, the lead cutter 14 has a fixed blade 14 a and a movable blade 14 b that can be operated by driving an air cylinder (not shown) opposed to each other. The lead cutter 14 shears the lead L by advancing to a position where the tip of the movable blade 14b overlaps the fixed blade 14a, for example, with the lead L of the radial part interposed therebetween. When the component P is mounted on the substrate S, the lead L is inserted into the insertion hole formed in the substrate S. The lead L inserted into the insertion hole is subjected to processing such as bending from the lower surface side of the substrate S by a lead processing device (not shown).
ヘッド20は、図示しない昇降機構および回転機構を備え、取り付けられた部品チャック装置22や部品吸着装置をZ軸方向に昇降させたり、軸回りに回転(自転)させたりする。ヘッド20内には、図示しない真空ポンプなどの負圧源に接続されたエア流路が設けられている。ヘッド20は、負圧源からのエア流路を介して負圧を供給することで、部品チャック装置22に部品Pを把持させたり、部品吸着装置に部品Pを吸着させたりする。
The head 20 includes an elevating mechanism and a rotating mechanism (not shown), and moves the attached component chuck device 22 and the component suction device up and down in the Z-axis direction and rotates (rotates) around the axis. An air flow path connected to a negative pressure source such as a vacuum pump (not shown) is provided in the head 20. The head 20 supplies the negative pressure through the air flow path from the negative pressure source, thereby causing the component chuck device 22 to grip the component P or causing the component suction device to suck the component P.
パーツカメラ30は、部品チャック装置22に把持された部品Pがパーツカメラ30の上方を通過する際に部品Pを下方から撮像し、得られた撮像画像を画像処理装置40へ出力する。図3はパーツカメラ30の構成の概略を示す構成図である。パーツカメラ30は、図3に示すように、例えばCCDなど複数の受光素子が二次元配列された矩形状の撮像領域をもつ撮像素子32と、撮像素子32の上方に設けられたレンズ34と、部品Pを撮像する際にリードLの側方から光を照射する照明装置36とを備える。照明装置36がリードLの側方から光を照射することで、リードLの下方から光を照射するものに比べて、部品Pの下面(撮像画像の背景部分)とリードLの先端面とにおける照射光の反射具合を適度なものとし、画像処理装置40が撮像画像内のリードLの境界(エッジ)を検出し易いものとしている。ここで、前述したように、リードLはリードカッタ14により剪断されるから、固定刃14aや可動刃14bの摩耗状態や部品Pの姿勢(傾き具合)などによって、リードLの先端部(切断部)の形状や撮像される面の角度が部品P毎に異なるものとなる。このため、部品P毎(リードL毎)に光の反射具合が異なって撮像画像における明るさが部分的に変化することがある。
The part camera 30 captures the part P from below when the part P gripped by the part chuck device 22 passes above the part camera 30, and outputs the obtained captured image to the image processing apparatus 40. FIG. 3 is a configuration diagram showing an outline of the configuration of the parts camera 30. As shown in FIG. 3, the parts camera 30 includes an imaging element 32 having a rectangular imaging region in which a plurality of light receiving elements such as CCDs are two-dimensionally arranged, a lens 34 provided above the imaging element 32, and And an illumination device 36 that emits light from the side of the lead L when imaging the component P. The illumination device 36 irradiates light from the side of the lead L, so that it is on the lower surface of the component P (the background portion of the captured image) and the front end surface of the lead L, compared to the light irradiating from below the lead L. The degree of reflection of the irradiation light is moderate, and the image processing apparatus 40 can easily detect the boundary (edge) of the lead L in the captured image. Here, as described above, since the lead L is sheared by the lead cutter 14, depending on the wear state of the fixed blade 14a and the movable blade 14b, the posture (inclination) of the part P, etc. ) And the angle of the surface to be imaged differ for each component P. For this reason, the degree of light reflection differs for each component P (for each lead L), and the brightness in the captured image may change partially.
制御装置50は、CPU,ROM,RAMおよびHDDなどにより構成され装置全体の制御を司る。制御装置50は、図2に示すように、部品供給装置12や基板搬送装置16、基板保持装置18などの各装置への駆動信号、ヘッド20(部品チャック装置22)への駆動信号、移動機構24への駆動信号、マークカメラ26やパーツカメラ30への駆動信号などを出力する。また、制御装置50は、画像処理装置40と通信可能に接続されており、画像処理装置40に画像処理の実行に関する情報を出力したり、画像処理装置40から画像処理の結果に関する情報を入力したりする。
The control device 50 is constituted by a CPU, ROM, RAM, HDD, and the like, and controls the entire device. As shown in FIG. 2, the control device 50 includes a drive signal to each device such as the component supply device 12, the substrate transport device 16, and the substrate holding device 18, a drive signal to the head 20 (component chuck device 22), and a moving mechanism. 24, a drive signal to the mark camera 26 and the parts camera 30, and the like are output. The control device 50 is communicably connected to the image processing device 40, and outputs information related to the execution of image processing to the image processing device 40, and inputs information related to the result of image processing from the image processing device 40. Or
画像処理装置40は、CPU,ROMおよびRAMなどにより構成され、マークカメラ26やパーツカメラ30により撮像された撮像画像を入力して画像処理を行う。画像処理装置40は、ROMなどの記憶部42に画像処理プログラムや各種情報を記憶している。記憶部42は、リード付きの部品Pに関する部品情報を記憶している。その部品情報は、部品Pの種類を表す部品種と、部品Pが有するリードLの数と、各リードLが存在する位置を含むリード存在領域を特定可能な情報などを含む。リード存在領域は、撮像画像においてリードLの先端位置を含む矩形状の領域であり、左上隅と右下隅の位置座標が定められた領域である。その位置座標は、撮像画像の中心(パーツカメラ30で撮像される部品Pの中心)の位置を基準とするXY座標で表される。例えば、部品種「PA01」の2本のリードのうち、左側のリードL(L)のリード存在領域は、左上隅の位置座標(XL1s,YL1s)と右下隅の位置座標(XL1e,YL1e)とが定められている。
The image processing apparatus 40 includes a CPU, a ROM, a RAM, and the like, and performs image processing by inputting a captured image captured by the mark camera 26 or the part camera 30. The image processing apparatus 40 stores an image processing program and various types of information in a storage unit 42 such as a ROM. The storage unit 42 stores component information regarding the component P with leads. The component information includes a component type that indicates the type of the component P, the number of leads L that the component P has, and information that can identify a lead presence area that includes a position where each lead L exists. The lead existence area is a rectangular area including the tip position of the lead L in the captured image, and is an area in which position coordinates of the upper left corner and the lower right corner are determined. The position coordinates are represented by XY coordinates based on the position of the center of the captured image (the center of the part P imaged by the parts camera 30). For example, of the two leads of the component type “PA01”, the lead existing area of the left lead L (L) is the upper left corner position coordinates (XL1s, YL1s) and the lower right corner position coordinates (XL1e, YL1e). Is stipulated.
以下は、こうして構成された部品実装機10の実装動作の説明である。図4は部品実装処理の一例を示すフローチャートである。この処理は、制御装置50により実行される。
The following is a description of the mounting operation of the component mounter 10 thus configured. FIG. 4 is a flowchart showing an example of the component mounting process. This process is executed by the control device 50.
部品実装処理が実行されると、制御装置50は、まず、部品供給装置12から供給された部品Pを部品チャック装置22に把持させる(S100)。制御装置50は、S100で、部品Pを送り出すよう部品供給装置12を制御し、部品供給位置上にヘッド20が移動するよう移動機構24を制御し、部品チャック装置22が部品Pを把持可能な高さ位置および向きとなるようヘッド20を制御し、負圧源からの負圧を供給して部品チャック装置22に把持動作をさせる。続いて、制御装置50は、部品チャック装置22が把持した部品Pがパーツカメラ30の上方を経由して基板S上へ移動するよう移動機構24を制御し(S110)、部品Pがパーツカメラ30上にあるときに部品Pを撮像するようパーツカメラ30を制御する(S120)。なお、制御装置50は、画像処理装置40に対し画像処理の実行指示も行う。次に、制御装置50は、S120の撮像で得られた撮像画像に対し画像処理装置40により行われる画像処理の結果を取得する(S130)。画像処理の詳細は後述するが、画像処理装置40は撮像画像からリードLの位置(先端位置)を検出する処理を行うため、制御装置50はS130でリードLの位置を取得する。
When the component mounting process is executed, the control device 50 first causes the component chuck device 22 to grip the component P supplied from the component supply device 12 (S100). In S100, the control device 50 controls the component supply device 12 to send out the component P, controls the moving mechanism 24 so that the head 20 moves to the component supply position, and the component chuck device 22 can grip the component P. The head 20 is controlled so as to be in the height position and orientation, and a negative pressure from a negative pressure source is supplied to cause the component chuck device 22 to perform a gripping operation. Subsequently, the control device 50 controls the moving mechanism 24 so that the component P gripped by the component chuck device 22 moves onto the substrate S via the upper part of the parts camera 30 (S110). The parts camera 30 is controlled so that the part P is imaged when it is on (S120). The control device 50 also instructs the image processing device 40 to execute image processing. Next, the control apparatus 50 acquires the result of the image processing performed by the image processing apparatus 40 on the captured image obtained by the imaging in S120 (S130). Although details of the image processing will be described later, since the image processing device 40 performs a process of detecting the position (tip position) of the lead L from the captured image, the control device 50 acquires the position of the lead L in S130.
そして、制御装置50は、取得したリードLの位置に基づいて部品Pの実装位置に関する補正値を設定し(S140)、その補正値を反映させた基板S上の位置に部品Pを実装して(S150)、部品実装処理を終了する。ここで、部品チャック装置22が把持している部品Pは、正常な状態から傾いたり位置ずれしたりして姿勢不良となっている場合がある。このため、制御装置50は、部品Pが姿勢不良となっていてもリードLを挿入孔に正しく挿入できるように、S140でリードLの位置(先端位置)に基づいてXY方向の実装位置や軸回りの実装向きの補正値を設定する。また、制御装置50は、S150で、部品チャック装置22が把持している部品PのリードLの先端が基板Sの挿入孔の真上に来るよう移動機構24およびヘッド20を制御し、リードLが挿入孔に挿入されるまで部品チャック装置22が下降するようヘッド20を制御してから、負圧源からの負圧の供給を解除して部品チャック装置22に把持解除動作をさせることにより部品Pを実装する。
Then, the control device 50 sets a correction value related to the mounting position of the component P based on the acquired position of the lead L (S140), and mounts the component P at a position on the substrate S reflecting the correction value. (S150), the component mounting process is terminated. Here, there is a case where the component P gripped by the component chuck device 22 is tilted or deviated from a normal state and has a poor posture. For this reason, the control device 50 determines the mounting position and axis in the XY directions based on the position (tip position) of the lead L in S140 so that the lead L can be correctly inserted into the insertion hole even if the component P has a poor posture. Set the correction value for the mounting direction around. In S150, the control device 50 controls the moving mechanism 24 and the head 20 so that the tip of the lead L of the component P held by the component chuck device 22 is directly above the insertion hole of the substrate S. After controlling the head 20 so that the component chuck device 22 is lowered until the component chuck device 22 is inserted into the insertion hole, the supply of the negative pressure from the negative pressure source is released and the component chuck device 22 is caused to perform a grip releasing operation. Implement P.
次に、画像処理装置40が実行する画像処理について説明する。図5は、画像処理の一例を示すフローチャートである。この処理は、制御装置50からの画像処理の実行指示が入力された後、撮像画像が入力されたときに実行される。なお、画像処理の実行指示は、処理対象の部品種を含む。また、撮像画像は、各画素の階調値が8ビットのグレースケール画像として入力される。
Next, image processing executed by the image processing apparatus 40 will be described. FIG. 5 is a flowchart illustrating an example of image processing. This process is executed when a captured image is input after an image processing execution instruction from the control device 50 is input. Note that the image processing execution instruction includes the component type to be processed. The captured image is input as a grayscale image in which the gradation value of each pixel is 8 bits.
画像処理が実行されると、画像処理装置40は、まず、今回の処理対象の部品種が前回の処理対象から変更されたか否かを判定する(S200)。画像処理装置40は、部品種が変更されたと判定すると、記憶部42に記憶している部品情報から該当する部品種のリード存在領域の情報を読み出す(S210)。そして、画像処理装置40は、読み出したリード存在領域の情報に対応する部分領域画像の範囲を設定する(S220)。画像処理装置40は、例えば、リード存在領域として2つの領域の情報が記憶されている場合、2つのリード存在領域の情報を読み出して各リード存在領域に対応する2つの部分領域画像の範囲を設定する。一方、画像処理装置40は、部品種が変更されてないと判定すると、S210,S220の処理をスキップする。
When the image processing is executed, the image processing apparatus 40 first determines whether or not the component type of the current processing target has been changed from the previous processing target (S200). When determining that the component type has been changed, the image processing apparatus 40 reads information on the lead existing area of the corresponding component type from the component information stored in the storage unit 42 (S210). Then, the image processing apparatus 40 sets a range of the partial area image corresponding to the read lead existing area information (S220). For example, when information on two areas is stored as the lead existence area, the image processing apparatus 40 reads the information on the two lead existence areas and sets the ranges of the two partial area images corresponding to the respective lead existence areas. To do. On the other hand, if the image processing apparatus 40 determines that the component type has not been changed, the image processing apparatus 40 skips the processes of S210 and S220.
図6は部分領域画像の一例を示す説明図である。図6は部品種PA01の部品Pの撮像画像内に設定される部分領域画像を例示する。部品種PA01の部品Pは、図2の部品情報に示すように左右2つのリードLを備える。画像処理装置40は、図示するように、左側のリードL(L)のリード存在領域である左上隅の位置座標(XL1s,YL1s)と右下隅の位置座標(XL1e,YL1e)とに基づいてリードL(L)を含む部分領域画像Aを設定する。また、画像処理装置40は、右側のリードL(R)のリード存在領域である左上隅の位置座標(XR1s,YR1s)と右下隅の位置座標(XR1e,YR1e)とに基づいて右側のリードL(R)を含む部分領域画像Bを設定する。このように、部分領域画像は、各リードLの存在領域に対応する領域として一の撮像画像内に複数設定される。なお、リード存在領域は、リードLに位置ずれなどが生じていても、リードLが含まれる(リードLの撮像画像を取得できる)領域として定められている。また、画像処理装置40がリードLの存在領域の座標をそのまま用いて部分領域画像を設定するものに限られず、座標変換処理を行って部分領域画像を設定するものとしてもよい。
FIG. 6 is an explanatory diagram showing an example of a partial area image. FIG. 6 illustrates a partial region image set in the captured image of the component P of the component type PA01. The component P of the component type PA01 includes two left and right leads L as shown in the component information of FIG. As shown in the figure, the image processing device 40 reads based on the position coordinates (XL1s, YL1s) of the upper left corner, which is the lead existing area of the left lead L (L), and the position coordinates (XL1e, YL1e) of the lower right corner. A partial area image A including L (L) is set. The image processing apparatus 40 also determines the right lead L based on the upper left corner position coordinates (XR1s, YR1s) and the lower right corner position coordinates (XR1e, YR1e), which are the lead existing areas of the right lead L (R). A partial area image B including (R) is set. In this way, a plurality of partial area images are set in one captured image as areas corresponding to the areas where each lead L exists. Note that the lead existence area is defined as an area including the lead L (a captured image of the lead L can be acquired) even if the lead L is misaligned. The image processing apparatus 40 is not limited to setting the partial area image using the coordinates of the existing area of the lead L as it is, and the partial area image may be set by performing a coordinate conversion process.
次に、画像処理装置40は、S220で設定した部分領域画像(画像を構成する各画素)を撮像画像から抽出し(S230)、処理対象の一の部分領域画像の各画素の階調値を取得して(S240)、各画素の階調値に基づいて部分領域画像内でリードLの境界(エッジ)を検出するための二値化閾値を設定する(S250)。二値化閾値は、各画素の階調値の分布(ヒストグラム)などに基づいて、P-タイル法やモード法、判別分析法などの公知の手法を用いて処理対象の部分領域画像に適した値に設定することができる。
Next, the image processing apparatus 40 extracts the partial area image (each pixel constituting the image) set in S220 from the captured image (S230), and calculates the gradation value of each pixel of one partial area image to be processed. Obtaining (S240), a binarization threshold value for detecting the boundary (edge) of the lead L in the partial area image is set based on the gradation value of each pixel (S250). The binarization threshold is suitable for a partial region image to be processed using a known method such as a P-tile method, a mode method, or a discriminant analysis method based on a gradation value distribution (histogram) of each pixel. Can be set to a value.
二値化閾値を設定すると、画像処理装置40は、その二値化閾値を用いて部分領域画像の各画素を二値化する二値化処理を行う(S260)。続いて、画像処理装置40は、二値化画像からリードLのエッジ(リードLと背景部分との境界)を検出し(S270)、検出したエッジに基づいてリード位置を取得する(S280)。そして、画像処理装置40は、未処理の部分領域画像があるか否かを判定し(S290)、未処理の部分領域画像があると判定すると、S240に戻り、未処理の部分領域画像を対象としてS240~S280の処理を行う。一方、画像処理装置40は、未処理の部分領域画像がないと判定すると画像処理を終了する。このように、本実施形態では、部分領域画像毎に二値化閾値を設定し二値化処理を行ってリードLのエッジを検出するのである。
When the binarization threshold is set, the image processing apparatus 40 performs binarization processing that binarizes each pixel of the partial area image using the binarization threshold (S260). Subsequently, the image processing apparatus 40 detects the edge of the lead L (boundary between the lead L and the background portion) from the binarized image (S270), and acquires the lead position based on the detected edge (S280). Then, the image processing apparatus 40 determines whether or not there is an unprocessed partial area image (S290). If it is determined that there is an unprocessed partial area image, the image processing apparatus 40 returns to S240 and targets the unprocessed partial area image. Then, the processes of S240 to S280 are performed. On the other hand, if the image processing apparatus 40 determines that there is no unprocessed partial area image, the image processing ends. As described above, in the present embodiment, the binarization threshold is set for each partial region image, the binarization process is performed, and the edge of the lead L is detected.
図7は部分領域画像毎に二値化閾値が設定される様子の一例を示す説明図である。ここで、リードLは部品Pのボディ部に比べて照射光を反射し易いものとなっている。このため、部品Pを撮像して得られる撮像画像(部分領域画像)は、リードLの部分が白く写り、それ以外の背景部分(部品Pのボディ部)が黒く写った画像となる。したがって、通常はリードLの部分の画素が背景部分の画素に比べて明るさの高い階調値となる。このため、一の部分領域画像における各画素の階調値のヒストグラムは、部分領域画像Aのヒストグラムで例示するように、通常は明暗の差がはっきりと分かれたものとなる。一方で、前述したように、部品P毎(リードL毎)に光の反射具合が異なって撮像画像における明るさが変化することがある。このため、撮像画像が全体的に暗くなったり明るくなったり、また、リードLと背景部分との明暗の差がはっきりと表れなかったりすることがある。例えば、部分領域画像Bのヒストグラムで例示するように、各画素の階調値が小さくなる側に偏って明暗の差がはっきりと表れないことがある。このように、各リードLの存在箇所において各画素の階調値の傾向が大きく異なる場合がある。本実施形態では、部分領域画像毎に二値化閾値を設定するから、各部分領域画像の各画素の階調値の傾向に応じて適切な二値化閾値を設定することができる。このため、各部分領域画像における二値化処理を適切に行って、リードLのエッジを精度よく検出することが可能となる。
FIG. 7 is an explanatory diagram showing an example of a state in which a binarization threshold is set for each partial region image. Here, the lead L is easier to reflect the irradiation light than the body part of the component P. For this reason, the captured image (partial region image) obtained by imaging the component P is an image in which the portion of the lead L appears white and the other background portion (body portion of the component P) appears black. Therefore, the pixel of the lead L portion usually has a gradation value with higher brightness than the pixel of the background portion. For this reason, as shown in the histogram of the partial area image A, the gradation value gradation of each pixel in one partial area image usually has a distinct difference in brightness. On the other hand, as described above, the brightness of the captured image may change due to the light reflection state being different for each component P (for each lead L). For this reason, the captured image may become darker or brighter as a whole, or the difference in brightness between the lead L and the background portion may not appear clearly. For example, as exemplified by the histogram of the partial region image B, there may be a case where the difference between brightness and darkness does not appear clearly because the gradation value of each pixel is biased toward a smaller side. As described above, the tendency of the gradation value of each pixel may be greatly different at the location where each lead L exists. In this embodiment, since the binarization threshold is set for each partial area image, an appropriate binarization threshold can be set according to the tendency of the gradation value of each pixel of each partial area image. For this reason, it is possible to appropriately detect the edge of the lead L by appropriately performing the binarization process in each partial region image.
一方、図8は比較例の対象画像から二値化閾値が設定される様子の一例を示す説明図である。図8は、部分領域画像A,Bを含む一の矩形状の領域を処理の対象画像として一の二値化閾値を設定する例を示す。この場合、画像処理装置は、図7に示した部分領域画像A,Bのヒストグラムを足し合わせたようなヒストグラムを作成し、それに基づいて閾値を設定する。撮像画像内のリードL(L),(R)の明るさが大きく異なる場合、その閾値が少なくともいずれかのリードLに対して適切な閾値とならないことがある。例えば、図7のヒストグラムを考慮すると、少なくともリードL(R)に対して適切な閾値とならないものといえる。このため、画像処理装置40が撮像画像(撮像画像の一部の対象画像)から一の閾値を設定して二値化処理を行う場合、適切な二値化処理が行われず複数のリードLのエッジを適切に検出できないことがある。
On the other hand, FIG. 8 is an explanatory diagram showing an example of how the binarization threshold is set from the target image of the comparative example. FIG. 8 shows an example in which one binarization threshold is set with one rectangular area including the partial area images A and B as a processing target image. In this case, the image processing apparatus creates a histogram obtained by adding the histograms of the partial area images A and B shown in FIG. 7, and sets a threshold value based on the histogram. When the brightness of the leads L (L) and (R) in the captured image is greatly different, the threshold value may not be an appropriate threshold value for at least one of the leads L. For example, considering the histogram of FIG. 7, it can be said that the threshold value is not appropriate for at least the lead L (R). For this reason, when the image processing apparatus 40 performs binarization processing by setting one threshold value from the captured image (part of the target image of the captured image), the appropriate binarization processing is not performed, and a plurality of leads L Edges may not be detected properly.
ここで、本実施形態の構成要素と本発明の構成要素との対応関係を明らかにする。本実施形態の部品実装機10が本発明の部品実装機に相当し、画像処理装置40が画像処理装置に相当する。また、記憶部42が記憶部に相当し、図5の画像処理のS230を実行する画像処理装置40が抽出部に相当し、画像処理のS240を実行する画像処理装置40が取得部に相当し、画像処理のS250を実行する画像処理装置40が設定部に相当する。また、画像処理のS260を実行する画像処理装置40が二値化処理部に相当する。また、部品供給装置12(テープフィーダ13)が供給装置に相当し、部品チャック装置22が取り付けられるヘッド20と移動機構24とが実装装置に相当し、パーツカメラ30が撮像装置に相当し、図4の部品実装処理のS130~S150を実行する制御装置50が制御装置に相当する。また、リードカッタ14が切断装置に相当する。
Here, the correspondence between the components of the present embodiment and the components of the present invention will be clarified. The component mounter 10 of this embodiment corresponds to the component mounter of the present invention, and the image processing device 40 corresponds to the image processing device. Further, the storage unit 42 corresponds to the storage unit, the image processing device 40 that executes S230 of the image processing of FIG. 5 corresponds to the extraction unit, and the image processing device 40 that executes S240 of the image processing corresponds to the acquisition unit. The image processing apparatus 40 that executes S250 of the image processing corresponds to the setting unit. The image processing apparatus 40 that executes the image processing S260 corresponds to a binarization processing unit. The component supply device 12 (tape feeder 13) corresponds to a supply device, the head 20 to which the component chuck device 22 is attached and the moving mechanism 24 correspond to a mounting device, and the parts camera 30 corresponds to an imaging device. The control device 50 that executes S130 to S150 of the component mounting process 4 corresponds to the control device. Further, the lead cutter 14 corresponds to a cutting device.
以上説明した画像処理装置40は、一の部品Pにおける複数のリードLの存在箇所を一ずつ含む複数のリード存在領域に関する情報を記憶部42に記憶している。そして、画像処理装置40は、部品Pが撮像される度に、リード存在領域に対応する複数の部分領域画像から取得された各画素の階調値に基づいて部分領域画像毎に閾値を設定する。このため、画像処理装置40は、リードLの存在箇所毎に適切な閾値を用いて画像処理することができ、また、撮像画像毎に最適な閾値を用いることができる。したがって、画像処理装置40は、リードLの存在箇所を検出する際の画像処理をより適切に行って、リードLの位置を精度よく検出することができる。
The image processing apparatus 40 described above stores in the storage unit 42 information related to a plurality of lead existing areas each including a plurality of leads L existing in one component P. The image processing device 40 sets a threshold value for each partial region image based on the gradation value of each pixel acquired from a plurality of partial region images corresponding to the lead existing region each time the component P is imaged. . Therefore, the image processing apparatus 40 can perform image processing using an appropriate threshold value for each location where the lead L exists, and can use an optimal threshold value for each captured image. Therefore, the image processing apparatus 40 can more appropriately perform image processing when detecting the location where the lead L is present, and detect the position of the lead L with high accuracy.
また、画像処理装置40は、部分領域画像毎に設定した閾値を用いて各部分領域画像に含まれる各画素の階調値を二値化するから、二値化処理の精度を向上させることができる。部品実装機10は、画像処理装置40を備えるから、画像処理装置40が有する効果を奏するものとなる。また、部品実装機10は、画像処理装置40がリードLの位置を精度よく検出するから、部品PのリードLを基板Sの挿入孔にスムーズに挿入して、部品Pの実装精度を向上させることができる。
Further, since the image processing device 40 binarizes the gradation value of each pixel included in each partial region image using a threshold set for each partial region image, the accuracy of the binarization process can be improved. it can. Since the component mounter 10 includes the image processing device 40, the effect of the image processing device 40 is achieved. Further, in the component mounter 10, since the image processing apparatus 40 detects the position of the lead L with high accuracy, the lead L of the component P is smoothly inserted into the insertion hole of the substrate S to improve the mounting accuracy of the component P. be able to.
なお、本発明は上述した実施形態に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の態様で実施し得ることはいうまでもない。
It should be noted that the present invention is not limited to the above-described embodiment, and it goes without saying that the present invention can be implemented in various modes as long as it belongs to the technical scope of the present invention.
例えば、上述した実施形態では、画像処理装置40がラジアル部品の撮像画像を画像処理したが、これに限られず、アキシャル部品の撮像画像を画像処理してもよい。なお、アキシャル部品のリードLは、リードカッタ14で切断された後に先端が下向きになるよう折り曲げられる。このため、記憶部42は、リード存在領域の情報として、少なくともリードLの先端位置を含む情報を記憶すればよい。
For example, in the above-described embodiment, the image processing apparatus 40 performs image processing on the captured image of the radial part. However, the present invention is not limited to this, and the captured image of the axial part may be processed. The lead L of the axial component is bent so that the tip is directed downward after being cut by the lead cutter 14. For this reason, the memory | storage part 42 should just memorize | store the information including the front-end | tip position of the lead L as information of a lead presence area | region.
上述した実施形態では、画像処理装置40がパーツカメラ30により部品Pの下方から撮像された撮像画像を画像処理したが、これに限られず、マークカメラ26により部品Pの上方から撮像された撮像画像を画像処理してもよい。この場合、部品Pの供給位置にある部品Pを撮像してもよいし、供給位置とは別の位置にある部品Pを撮像してもよい。
In the above-described embodiment, the image processing apparatus 40 performs image processing on a captured image captured from below the component P by the parts camera 30. However, the present invention is not limited to this, and a captured image captured from above the component P by the mark camera 26. May be image processed. In this case, the part P at the supply position of the part P may be imaged, or the part P at a position different from the supply position may be imaged.
上述した実施形態では、画像処理装置40がリードLの位置を検出する際の二値化処理用の閾値を設定したが、これに限られず、画像処理装置40が部品Pの複数の着目箇所の境界(背景部分との境界)を判別するための閾値を設定するものであればよい。この閾値は、例えば、部品Pと背景部分との境界を判別する閾値としたり、異なる部材で形成された部品Pにおいて部材同士の境界を判別する閾値としたりすることができる。
In the above-described embodiment, the threshold value for binarization processing when the image processing device 40 detects the position of the lead L is set. However, the present invention is not limited to this, and the image processing device 40 has a plurality of points of interest of the component P. What is necessary is just to set the threshold value for discriminating a boundary (boundary with a background part). For example, the threshold value may be a threshold value for determining the boundary between the component P and the background portion, or may be a threshold value for determining the boundary between members in the component P formed of different members.
このように、一の部品Pにおける複数の着目箇所の境界を判別するための画像処理に本発明を適用することができる。以下は、変形例の画像処理の説明である。図9は変形例の部品Pの斜視図である。変形例の部品Pは、セラミックス素材で形成されLEDを内蔵したボディ部Pbと、LEDを覆う透明の樹脂素材で形成されたカバー部Pcとを備えるLEDチップ部品である。この変形例では、部品供給装置12が、部品Pをトレーなどに載せた状態で供給し、ヘッド20が部品Pを部品チャック装置22によって保持して基板Sに実装する。また、マークカメラ26が部品Pの上面を撮像し、その撮像画像を画像処理装置40が画像処理する。なお、部品実装機20が図示しない仮置き台を備えるものとし、部品チャック装置22が部品供給位置で保持した部品Pを仮置き台に一旦置いた状態で、マークカメラ26が部品Pの上面を撮像するものなどとしてもよい。
Thus, the present invention can be applied to image processing for discriminating boundaries between a plurality of points of interest in one component P. The following is a description of the image processing of the modified example. FIG. 9 is a perspective view of a component P according to a modification. The component P of the modified example is an LED chip component including a body part Pb formed of a ceramic material and including an LED, and a cover part Pc formed of a transparent resin material that covers the LED. In this modification, the component supply device 12 supplies the component P in a state of being placed on a tray or the like, and the head 20 holds the component P by the component chuck device 22 and mounts it on the substrate S. Further, the mark camera 26 images the upper surface of the component P, and the image processing apparatus 40 performs image processing on the captured image. It is assumed that the component mounter 20 includes a temporary placement table (not shown), and the mark camera 26 covers the upper surface of the component P with the component P held by the component chuck device 22 at the component supply position temporarily placed on the temporary placement table. It is good also as what picks up an image.
この変形例では、カバー部Pcおよびボディ部Pbの境界(異なる素材の境界)となる箇所と、ボディ部Pbおよび背景部分の境界となる箇所とを着目箇所とする。このため、記憶部42は、各着目箇所を一ずつ含む領域A1,A2(図9参照)に関する領域情報を記憶する。また、画像処理装置40は、部品Pの撮像画像から領域A1,A2に対応する部分領域画像を抽出する。そして、画像処理装置40は、領域A1に対応する部分領域画像の各画素の階調値に基づいて、カバー部Pcとボディ部Pbの境界を二値化処理により判別するための閾値を設定し、領域A2に対応する部分領域画像の各画素の階調値に基づいて、ボディ部Pbと背景部分の境界を二値化処理により判別するための閾値を設定する。この変形例でも、画像処理装置40は着目箇所をそれぞれ含む部分領域画像毎に閾値を設定するから、上述した実施例と同様に適切な閾値を用いて画像処理することができる。
In this modified example, a location that becomes a boundary between the cover portion Pc and the body portion Pb (a boundary between different materials) and a location that becomes the boundary between the body portion Pb and the background portion are taken as locations of interest. For this reason, the memory | storage part 42 memorize | stores the area | region information regarding area | region A1, A2 (refer FIG. 9) which contains each attention location one by one. Further, the image processing device 40 extracts partial area images corresponding to the areas A1 and A2 from the captured image of the component P. Then, the image processing device 40 sets a threshold value for discriminating the boundary between the cover part Pc and the body part Pb by binarization processing based on the gradation value of each pixel of the partial area image corresponding to the area A1. Based on the gradation value of each pixel of the partial area image corresponding to the area A2, a threshold value for determining the boundary between the body part Pb and the background part by binarization processing is set. Also in this modified example, the image processing apparatus 40 sets a threshold value for each partial region image that includes a point of interest, and thus can perform image processing using an appropriate threshold value as in the above-described embodiment.
また、画像処理装置40が二値化処理を行うものに限られず、着目箇所の境界を判別するための次のような処理を行うものとしてもよい。図10は変形例の部品Pにおいて複数の着目箇所の境界を判別する様子の説明図であり、カバー部Pcを着目箇所として、複数箇所(例えば4箇所)で境界を判別するものを例示する。図10の画像処理では、画像処理装置40は、カバー部Pcの外縁を挟んで所定距離ずつ離れた2つの判定点を一組とする複数組(T,U,V,Wの4組)の画素の階調値を用いて境界を判別する。各組の判定点は、カバー部Pcの外縁よりも内側(カバー部Pc上)の点(例えばTin)と、カバー部Pcの外縁よりも外側(ボディ部Pb上)の点(例えばTout)とからなる。また、記憶部42は、各組の2つの判定点をそれぞれ含む複数(4つ)の領域(線分)に関する領域情報を記憶する。画像処理装置40は、部品Pの撮像画像から各領域にそれぞれ対応する4つの部分領域画像を抽出し、各部分領域画像に含まれる2つの判定点における各画素の階調値の差分ΔGを算出する。また、画像処理装置40は、部分領域画像毎に差分ΔGの閾値を設定し、差分ΔGと閾値とを比較して着目箇所の境界(境界の有無)を判別する。図10は、判定点Uin,Uoutと、判定点Vin,Voutとにおける、画素の階調値とその差分を例示している。
Further, the image processing apparatus 40 is not limited to the one that performs binarization processing, and may perform the following processing for discriminating the boundary of the point of interest. FIG. 10 is an explanatory diagram showing how boundaries of a plurality of points of interest are determined in the component P of the modification, and illustrates an example in which boundaries are determined at a plurality of points (for example, four points) with the cover portion Pc as a point of interest. In the image processing of FIG. 10, the image processing apparatus 40 has a plurality of sets (four sets of T, U, V, and W) each including two determination points that are separated by a predetermined distance across the outer edge of the cover portion Pc. The boundary is determined using the gradation value of the pixel. The determination points of each set are a point (for example, Tin) inside (on the cover portion Pc) from the outer edge of the cover portion Pc, and a point (for example, Tout) outside the outer edge (on the body portion Pb) of the cover portion Pc. Consists of. In addition, the storage unit 42 stores region information regarding a plurality (four) regions (line segments) each including two determination points of each group. The image processing device 40 extracts four partial region images corresponding to the respective regions from the captured image of the component P, and calculates a difference ΔG between the gradation values of the pixels at the two determination points included in the partial region images. To do. Further, the image processing apparatus 40 sets a threshold value of the difference ΔG for each partial region image, compares the difference ΔG with the threshold value, and determines a boundary (presence / absence of a boundary) of the point of interest. FIG. 10 illustrates pixel gradation values and their differences at the determination points Uin and Uout and the determination points Vin and Vout.
ここで、変形例の部品Pにおいても、表面状態(汚れや疵など)や姿勢不良、光の反射具合などによって、撮像画像が部分的に暗くなったり明るくなったりし、また、カバー部Pcとボディ部Pbとの明暗の差がはっきりと表れなかったりすることがある。図10では、判定点Vinの階調値が所定値Grefを超えるために判定点Vを有する部分領域画像は明るさが正常であり、判定点Uinの階調値が所定値Grefを超えないために判定点Uを有する部分領域画像は明るさが正常でないものとする。画像処理装置40は、内側の判定点の階調値が所定値Grefを超える場合に閾値G1を設定し、所定値Grefを超えない場合に閾値G1よりも小さな閾値G2を設定する。そして、画像処理装置40は、階調値の差分ΔGが閾値を超えれば、両判定点の間にカバー部Pcの境界(ボディ部Pbとの境界)があると判定し、階調値の差分ΔGが閾値を超えなければ、両判定点の間にカバー部Pcの境界がない(部品Pに位置ズレなどが生じている)と判定する。図10では、画像処理装置40は、判定点Vinと判定点Voutの差分ΔGvが閾値G1を超えるため、両判定点の間にカバー部Pcの境界があると判定する。また、画像処理装置40は、判定点Uinと判定点Uoutの差分ΔGuが閾値G2を超えるため、両判定点の間にカバー部Pcの境界があると判定する。判定点T,Wの各部分領域画像においても同様の処理が行われる。このように、この変形例でも部分領域画像毎に閾値を設定するから、着目箇所の境界を適切に判別することができる。
Here, also in the component P of the modified example, the captured image is partially darkened or brightened depending on the surface condition (dirt, wrinkles, etc.), poor posture, light reflection condition, etc., and the cover part Pc The difference in brightness from the body part Pb may not appear clearly. In FIG. 10, since the gradation value of the determination point Vin exceeds the predetermined value Gref, the partial region image having the determination point V has normal brightness, and the gradation value of the determination point Uin does not exceed the predetermined value Gref. It is assumed that the brightness of the partial area image having the determination point U is not normal. The image processing apparatus 40 sets the threshold value G1 when the gradation value of the inner determination point exceeds the predetermined value Gref, and sets the threshold value G2 smaller than the threshold value G1 when the gradation value does not exceed the predetermined value Gref. Then, if the difference ΔG in gradation values exceeds the threshold value, the image processing apparatus 40 determines that there is a boundary of the cover portion Pc (boundary with the body portion Pb) between both determination points, and the difference in gradation values. If ΔG does not exceed the threshold value, it is determined that there is no boundary of the cover portion Pc between the two determination points (positional deviation or the like has occurred in the component P). In FIG. 10, since the difference ΔGv between the determination point Vin and the determination point Vout exceeds the threshold value G1, the image processing apparatus 40 determines that there is a boundary of the cover portion Pc between the two determination points. Further, the image processing device 40 determines that there is a boundary of the cover portion Pc between the determination points because the difference ΔGu between the determination point Uin and the determination point Uout exceeds the threshold value G2. Similar processing is performed on the partial area images of the determination points T and W. As described above, since the threshold value is set for each partial region image in this modified example, the boundary of the point of interest can be appropriately determined.
上述した実施形態では、画像処理装置40が部品実装機10に含まれるものとしたが、これに限られず、画像処理装置40が部品実装機10に含まれないものとしてもよい。例えば、部品実装機10を管理する管理装置が画像処理装置の機能を有してもよい。
In the above-described embodiment, the image processing device 40 is included in the component mounter 10, but is not limited thereto, and the image processing device 40 may not be included in the component mounter 10. For example, a management apparatus that manages the component mounter 10 may have the function of an image processing apparatus.
本発明は、基板に実装される部品の画像を処理する画像処理装置やその画像処理装置を備える部品実装機の製造産業に利用可能である。
The present invention can be used in the manufacturing industry of an image processing apparatus that processes an image of a component mounted on a substrate and a component mounting machine including the image processing apparatus.
10 部品実装機、12 部品供給装置、13 テープフィーダ、14 リードカッタ、14a 固定刃、14b 可動刃、16 基板搬送装置、18 基板保持装置、20 ヘッド、22 部品チャック装置、24 移動機構、26 マークカメラ、30 パーツカメラ、32 撮像素子、34 レンズ、36 照明装置、40 画像処理装置、42 記憶部、50 制御装置、A1,A2 領域、L リード、P 部品、Pb ボディ部、Pc カバー部、S 基板。
10 component mounting machine, 12 component supply device, 13 tape feeder, 14 lead cutter, 14a fixed blade, 14b movable blade, 16 substrate transport device, 18 substrate holding device, 20 head, 22 component chuck device, 24 moving mechanism, 26 mark Camera, 30 parts camera, 32 image sensor, 34 lens, 36 illumination device, 40 image processing device, 42 storage unit, 50 control device, A1, A2 area, L lead, P part, Pb body unit, Pc cover unit, S substrate.
Claims (5)
- 部品を基板に実装する部品実装機において実装前に撮像された前記部品の撮像画像を処理する画像処理装置であって、
一の前記部品における複数の着目箇所を一ずつ含む複数の領域に関する領域情報を記憶する記憶部と、
前記領域情報に対応する複数の部分領域画像を前記撮像画像から抽出する抽出部と、
前記抽出された複数の部分領域画像のそれぞれについて、該部分領域画像に含まれる画素の階調値を取得する取得部と、
前記部品が撮像される度に、前記取得された画素の階調値に基づいて前記部分領域画像に含まれる前記着目箇所の境界を判別するための閾値を、前記部分領域画像毎に設定する設定部と、
を備える画像処理装置。 An image processing apparatus that processes a captured image of the component imaged before mounting in a component mounter that mounts the component on a board,
A storage unit for storing region information regarding a plurality of regions each including a plurality of points of interest in one part;
An extraction unit that extracts a plurality of partial region images corresponding to the region information from the captured image;
For each of the extracted partial region images, an acquisition unit that acquires a gradation value of a pixel included in the partial region image;
Setting that sets a threshold for determining the boundary of the point of interest included in the partial area image based on the acquired gradation value of the pixel for each partial area image every time the part is imaged And
An image processing apparatus comprising: - 請求項1に記載の画像処理装置であって、
前記部品は、前記基板に設けられた複数の挿入孔にそれぞれ挿入される複数のリードを有し、
前記複数の着目箇所は、前記複数のリードのそれぞれの存在箇所であり、
前記記憶部は、前記領域情報として、各リードの存在箇所を一ずつ含む複数の領域に関する情報を記憶する
画像処理装置。 The image processing apparatus according to claim 1,
The component has a plurality of leads that are respectively inserted into a plurality of insertion holes provided in the substrate,
The plurality of points of interest are the respective locations of the plurality of leads,
The storage unit stores information on a plurality of regions including one location of each lead as the region information. - 請求項1または2に記載の画像処理装置であって、
前記複数の部分領域画像のそれぞれについて、前記設定部が設定した閾値を用いて該部分領域画像に含まれる各画素の階調値を二値化する二値化処理部を備える
画像処理装置。 The image processing apparatus according to claim 1, wherein:
An image processing apparatus comprising: a binarization processing unit that binarizes a gradation value of each pixel included in the partial region image using a threshold set by the setting unit for each of the plurality of partial region images. - 請求項1に記載の画像処理装置を備える部品実装機であって、
部品を供給する供給装置と、
前記供給装置により供給された前記部品を保持具によって保持し、該保持した部品を前記基板に実装する実装装置と、
前記部品を撮像する撮像装置と、
前記撮像装置により撮像された撮像画像が前記画像処理装置により処理されると、該処理結果に基づいて前記保持具に保持される前記部品の位置を取得し、該取得した位置に基づいて前記部品が前記基板に実装されるよう前記実装装置を制御する制御装置と、
を備える部品実装機。 A component mounter comprising the image processing apparatus according to claim 1,
A supply device for supplying parts;
A mounting device for holding the component supplied by the supply device with a holder and mounting the held component on the substrate;
An imaging device for imaging the component;
When the captured image captured by the imaging device is processed by the image processing device, the position of the component held by the holder is acquired based on the processing result, and the component is acquired based on the acquired position. A control device for controlling the mounting device so that is mounted on the substrate;
A component mounting machine. - 請求項4に記載の部品実装機であって、
前記供給装置は、前記部品として、前記基板に設けられた複数の挿入孔にそれぞれ挿入される複数のリードを有する部品を供給し、
前記複数のリードのうち少なくとも一のリードを部分的に切断する切断装置を備え、
前記画像処理装置として、前記記憶部が前記複数のリードの存在箇所を一ずつ含む複数の領域に関する領域情報を記憶する装置を備え、
前記撮像装置は、前記切断装置により少なくとも一のリードが部分的に切断された状態で、前記保持具に保持されている前記部品を撮像し、
前記制御装置は、前記画像処理装置による処理結果に基づいて、前記保持具に保持されている前記部品の前記複数のリードの位置を取得し、該取得した位置に基づいて前記リードが前記挿入孔に挿入されるよう前記実装装置を制御する
部品実装機。 The component mounting machine according to claim 4,
The supply device supplies, as the component, a component having a plurality of leads respectively inserted into a plurality of insertion holes provided in the substrate,
A cutting device for partially cutting at least one of the plurality of leads,
As the image processing device, the storage unit includes a device that stores region information regarding a plurality of regions each including the plurality of leads.
The imaging device images the component held by the holder in a state where at least one lead is partially cut by the cutting device;
The control device acquires the positions of the plurality of leads of the component held by the holder based on a processing result by the image processing device, and the leads are inserted into the insertion hole based on the acquired positions. A component mounter that controls the mounting apparatus to be inserted into the component mounting machine.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017546304A JP6795512B2 (en) | 2015-10-20 | 2015-10-20 | Parts mounting machine |
PCT/JP2015/079522 WO2017068638A1 (en) | 2015-10-20 | 2015-10-20 | Image processing apparatus and parts mounter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2015/079522 WO2017068638A1 (en) | 2015-10-20 | 2015-10-20 | Image processing apparatus and parts mounter |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017068638A1 true WO2017068638A1 (en) | 2017-04-27 |
Family
ID=58557028
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2015/079522 WO2017068638A1 (en) | 2015-10-20 | 2015-10-20 | Image processing apparatus and parts mounter |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP6795512B2 (en) |
WO (1) | WO2017068638A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019102781A (en) * | 2017-12-01 | 2019-06-24 | 台達電子工業股▲ふん▼有限公司Deltaelectronics,Inc. | System and method for assembling electronic component |
WO2019167110A1 (en) * | 2018-02-27 | 2019-09-06 | ヤマハ発動機株式会社 | Component conveying apparatus, component conveying method and component mounting apparatus |
CN110800390A (en) * | 2017-06-06 | 2020-02-14 | 川崎重工业株式会社 | Wire insertion method and holding device used for its implementation |
WO2021044506A1 (en) * | 2019-09-03 | 2021-03-11 | 株式会社Fuji | Work machine and component mounting method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05280932A (en) * | 1992-03-31 | 1993-10-29 | Omron Corp | Measuring device of pin position of electronic component |
JPH0684721A (en) * | 1992-09-02 | 1994-03-25 | Nec Corp | Irregular shaped parts with mold for positioning lead inserted into substrate and its taping method |
JP2007226334A (en) * | 2006-02-21 | 2007-09-06 | Omron Corp | Color image processing method and color image processing device |
JP2012099792A (en) * | 2010-11-02 | 2012-05-24 | Samsung Techwin Co Ltd | Component suction/inspection device and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5780712B2 (en) * | 2009-05-29 | 2015-09-16 | 富士機械製造株式会社 | Imaging system and electronic circuit component mounting machine |
-
2015
- 2015-10-20 WO PCT/JP2015/079522 patent/WO2017068638A1/en active Application Filing
- 2015-10-20 JP JP2017546304A patent/JP6795512B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05280932A (en) * | 1992-03-31 | 1993-10-29 | Omron Corp | Measuring device of pin position of electronic component |
JPH0684721A (en) * | 1992-09-02 | 1994-03-25 | Nec Corp | Irregular shaped parts with mold for positioning lead inserted into substrate and its taping method |
JP2007226334A (en) * | 2006-02-21 | 2007-09-06 | Omron Corp | Color image processing method and color image processing device |
JP2012099792A (en) * | 2010-11-02 | 2012-05-24 | Samsung Techwin Co Ltd | Component suction/inspection device and method |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110800390A (en) * | 2017-06-06 | 2020-02-14 | 川崎重工业株式会社 | Wire insertion method and holding device used for its implementation |
CN110800390B (en) * | 2017-06-06 | 2022-10-04 | 川崎重工业株式会社 | Wire insertion method and holding device used for its implementation |
JP2019102781A (en) * | 2017-12-01 | 2019-06-24 | 台達電子工業股▲ふん▼有限公司Deltaelectronics,Inc. | System and method for assembling electronic component |
WO2019167110A1 (en) * | 2018-02-27 | 2019-09-06 | ヤマハ発動機株式会社 | Component conveying apparatus, component conveying method and component mounting apparatus |
CN111742625A (en) * | 2018-02-27 | 2020-10-02 | 雅马哈发动机株式会社 | Component transfer apparatus, component transfer method, and component mounting apparatus |
JPWO2019167110A1 (en) * | 2018-02-27 | 2020-12-03 | ヤマハ発動機株式会社 | Parts transfer device, parts transfer method and component mounting device |
CN111742625B (en) * | 2018-02-27 | 2021-06-18 | 雅马哈发动机株式会社 | Component transfer apparatus, component transfer method, and component mounting apparatus |
WO2021044506A1 (en) * | 2019-09-03 | 2021-03-11 | 株式会社Fuji | Work machine and component mounting method |
JPWO2021044506A1 (en) * | 2019-09-03 | 2021-03-11 | ||
JP7429701B2 (en) | 2019-09-03 | 2024-02-08 | 株式会社Fuji | Work equipment and parts installation method |
Also Published As
Publication number | Publication date |
---|---|
JP6795512B2 (en) | 2020-12-02 |
JPWO2017068638A1 (en) | 2018-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11972589B2 (en) | Image processing device, work robot, substrate inspection device, and specimen inspection device | |
KR102007065B1 (en) | Automated strobel printing | |
WO2017068638A1 (en) | Image processing apparatus and parts mounter | |
JP7225337B2 (en) | Semiconductor manufacturing equipment and semiconductor device manufacturing method | |
JP6737882B2 (en) | Image processing device, work transfer device, and image processing method | |
JP2018120388A (en) | Work detection apparatus and method | |
WO2016016933A1 (en) | Component data handling device, component data handling method, and component mounting system | |
CN113751332A (en) | Visual inspection system and method of inspecting parts | |
CN115088402A (en) | Component mounting machine | |
CN114419437A (en) | Workpiece sorting system based on 2D vision and control method and control device thereof | |
EP3328180A1 (en) | Component-mounting machine | |
JP2017139388A (en) | Mounting device | |
JP2011082506A (en) | Device for inspecting or mounting component | |
JP7201540B2 (en) | Mark recognition device and processing device with same | |
JP6761477B2 (en) | Component mounting device and position recognition method | |
JP7050926B2 (en) | Foreign matter detection method and electronic component mounting device | |
JPWO2018055757A1 (en) | Lighting condition specifying device and lighting condition specifying method | |
JP6974101B2 (en) | Setting device and surface mounter | |
CN116349420B (en) | Image processing apparatus, mounting system, image processing method, and mounting method | |
JP2008151607A (en) | Mark positioning method and apparatus using template matching | |
JPH08167800A (en) | Part mounting equipment | |
CN119460692A (en) | Object grabbing method, device, equipment and loading and unloading workstation | |
JP2006216910A (en) | Component characterizing information creating apparatus and component mounting apparatus | |
JPWO2020170349A1 (en) | Visual inspection method, mounting machine | |
JP2019200134A (en) | Sheet detection method, sheet processing method, sheet detection device, and sheet processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15906645 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2017546304 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15906645 Country of ref document: EP Kind code of ref document: A1 |