3D shape measuring device
The device addresses the challenge of prolonged measurement times by using multiple projectors to project patterns with varying brightness levels from different directions, ensuring efficient and accurate three-dimensional shape measurement on objects with diverse reflectance characteristics.
Patent Information
- Application Number
- JP2020042767
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-03-12
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-03-12
AI Technical Summary
Existing three-dimensional shape measuring devices face increased measurement time due to the need for multiple projections with varying light intensities to accommodate objects with varying reflection characteristics, leading to insufficient or excessive light levels that affect measurement accuracy.
A three-dimensional shape measuring device employing multiple projectors that project patterns from different directions with varying light intensities, using divided projection patterns to ensure efficient illumination of the measurement object with both high and low brightness levels in a single shooting session.
The device reduces measurement time by minimizing the number of shooting sessions required while maintaining accurate height calculations across regions with varying reflectance, thus enhancing measurement efficiency.
Smart Images

Figure 0007540170000011 
Figure 0007540170000007 
Figure 0007540170000005
Abstract
Description
[Technical field]
[0001] The present invention relates to a three-dimensional shape measuring device. [Background technology]
[0002] Conventionally, as a technique for measuring the three-dimensional shape of an object using an image, a phase shift method has been known, in which multiple types of projection patterns having periodicity are projected from each of projection means such as projectors arranged around the measurement target, the measurement target with the projection patterns projected is photographed by a photographing means such as a camera, and the three-dimensional shape of the measurement target is obtained using the relationship between the distortion of the projection pattern in the photographed two-dimensional image and the height of the measurement target. Specifically, the three-dimensional shape of the measurement target is measured by analyzing the distortion of the projection pattern that occurs depending on the shape (unevenness, etc.) of the measurement target surface in the photographed image.
[0003] In the above method, since multiple projection means perform shooting while switching between projection patterns, there is a problem that the measurement time is likely to become long. Patent Document 1 proposes a technology that suppresses the measurement time from becoming long by having one projection means project and perform shooting while switching between projection patterns. Patent Document 2 proposes a technology that suppresses the measurement time from becoming long by providing multiple (e.g., eight) projection means to make the switching of projection patterns and calculation processing more efficient. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent No. 5847568 [Patent Document 2] Patent No. 5948496 Summary of the Invention [Problem to be solved by the invention]
[0005] On the object to be measured, there are members having various reflection characteristics (for example, reflectance). Therefore, when a projection pattern with a specific amount of light is projected and photographed, even if the amount of light is suitable for one member, it may be insufficient or excessive for another member. When the amount of light is insufficient, it becomes impossible to observe the projection pattern projected onto the member during imaging. Moreover, when the amount of light is excessive, brightness saturation occurs, which may reduce the measurement accuracy.
[0006] One possible solution is to have each of the multiple projection means project multiple types of projection patterns with multiple light intensities and then combine the measurement results. However, this approach requires an increased number of shots, which can result in a long measurement time.
[0007] An object of one aspect of the disclosed technique is to provide a three-dimensional shape measuring device that can prevent an insufficient amount of light or an excess amount of light, while preventing an increase in measurement time. [Means for solving the problem]
[0008] One aspect of the disclosed technology is exemplified by the following three-dimensional shape measuring device. This three-dimensional shape measuring device includes a plurality of projection means for projecting a pattern onto a measurement object from different directions, an imaging means for capturing an image of the measurement object onto which the pattern is projected for each of the plurality of projection means, and a measurement means for measuring the height of a partial area of the measurement object by processing the captured image, and the pattern projected by each of the projection means is projected with a first luminance onto a first area that is located at a first position relative to each of the projection means, and a measurement means for measuring the height of a partial area of the measurement object by processing the captured image. The divided projection pattern projects the second region of the first projection means at a second luminance lower than the first luminance. Here, the first position may be different for each projection means or may be the same. In other words, the first position for one projection means may be in front of the range projected by the projection means (a position close to the projection means), and the first position for another projection means may be to the right of the projection range projected by the projection means.
[0009] Here, in the divided projection pattern, it is preferable that the boundary between the first region and the second region passes through an intersection point between the optical axis of each of the plurality of projection means and the measurement object. With such a feature, each region of the measurement object can be efficiently projected with both the first brightness and the second brightness.
[0010] The measurement object is, for example, a printed circuit board on which various electronic components are mounted. The electronic components mounted on such a printed circuit board have areas with low reflectance, such as the resin of a semiconductor chip. In addition, the printed circuit board has areas with relatively high reflectance, such as silk printing, solder, and lands. If a pattern with high light intensity and a pattern with low light intensity are projected onto the measurement object in order to suppress a shortage or excess of light, the number of times the measurement object is photographed increases, which lengthens the measurement time. This three-dimensional shape measuring device projects divided projection patterns onto the measurement object from each of multiple directions, so that multiple light intensity patterns can be projected onto the measurement object in one photograph, thereby lengthening the measurement time.
[0011] Here, the measuring means may determine the height of the partial region as an average of the heights of the partial region measured based on each of the images acquired for each of the plurality of projection means. The measuring means may calculate the height of the partial region based on an image in which the brightness of the partial region is within a predetermined range among the images acquired for each of the plurality of projection means. In addition, in the present three-dimensional shape measuring device, each of the plurality of projection means may project a pattern of a predetermined phase onto the measurement target, and the measuring means may calculate a reliability based on the phase of the partial region in each of the images acquired for each of the plurality of projection means, and calculate the height of the partial region based on an image in which the calculated reliability is within a predetermined range. By providing such features, the present three-dimensional shape measuring device can perform height calculation with high accuracy. Effect of the Invention
[0012] This three-dimensional shape measuring device can prevent an insufficient or excessive amount of light while preventing an increase in measurement time. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a schematic diagram showing a hardware configuration of a three-dimensional shape measuring apparatus according to an embodiment. [Diagram 2] FIG. 2 is an end view taken along line AA in FIG. [Diagram 3] FIG. 3 is a diagram illustrating the light amount of a pattern projected by a projector onto a printed circuit board in the embodiment. [Figure 4] FIG. 4 is a diagram illustrating an example of an area projected with a first light amount and an area projected with a second light amount when a projector that projects a pattern is switched in the embodiment. [Diagram 5] FIG. 5 is a diagram illustrating functional blocks of the three-dimensional shape measuring apparatus according to the embodiment. [Figure 6] FIG. 6 is a diagram showing an example of a target member used in generating initial parameters in the embodiment. [Figure 7] FIG. 7 is a flowchart illustrating the flow of a three-dimensional shape measurement process in the embodiment. [Figure 8] FIG. 8 is a flowchart illustrating the flow of an initial parameter generation process in the embodiment. [Figure 9] FIG. 9 is a flowchart illustrating the flow of a teaching process in the embodiment. [Figure 10] FIG. 10 is a flowchart illustrating the flow of a measurement process performed by the three-dimensional shape measuring apparatus according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] <Embodiment> Hereinafter, an embodiment will be described with reference to the drawings. The configurations of the embodiments described below are examples, and the disclosed technology is not limited to the configurations of the embodiments.
[0015] (Configuration of 3D shape measurement device) First, a configuration example of a three-dimensional shape measuring device 1 according to an embodiment will be described with reference to Fig. 1 and Fig. 2. Fig. 1 is a schematic diagram showing a hardware configuration of the three-dimensional shape measuring device according to an embodiment. Fig. 2 is an end view taken along line AA in Fig. 1.
[0016] As illustrated in FIG. 1, a three-dimensional shape measuring device 1 according to the embodiment includes four projectors 10A, 10B, 10C, and 10D, a camera 11, a control device 12 (eg, a computer), and a moving mechanism 13.
[0017] The projectors 10A, 10B, 10C, and 10D are projection means using a digital mirror device (DMD). The projectors 10A, 10B, 10C, and 10D project a pattern onto the printed circuit board O to be measured. Here, the pattern is, for example, a striped pattern in which the change in luminance shows periodicity, and the phase can be changed over time. In this embodiment, the phase is changed by π / 2 (radian). That is, each of the projectors 10A, 10B, 10C, and 10D projects four types of patterns with a phase change of π / 2 (radian) onto the printed circuit board O. The process of measuring the three-dimensional shape of the printed circuit board O using these patterns is well known, so a detailed description will be omitted. The four projectors 10A, 10B, 10C, and 10D are arranged so as to project the patterns onto the printed circuit board O from different directions. The number of projectors 10 may be four as illustrated in FIG. 1, or may be three or less, or five or more. In this specification, when there is no need to distinguish between projectors 10A, 10B, 10C, and 10D, they will be collectively referred to as projector 10.
[0018] The projector 10 projects a pattern on an area close to the projector 10 with a first light amount, and projects a pattern on an area far from the projector 10 with a second light amount lower than the first light amount. FIG. 3 is a diagram showing the light amount of a pattern projected by the projector onto a printed circuit board in an embodiment. FIG. 3 illustrates a state in which the projector 10A projects a pattern onto a printed circuit board O. In FIG. 3, an area B1 close to the projector 10 illustrates an area projected with a first light amount, and an area B2 far from the projector 10 illustrates an area projected with a second light amount. In FIG. 3, half of the projection range onto which the projector 10 projects a pattern is the area B1, and the remaining half is the area B2. As illustrated in FIG. 3, the projector 10 projects a pattern including areas of different light amounts (area B1 and area B2) onto the printed circuit board O. Hereinafter, in this specification, a pattern including areas B1 and B2 with different light intensities as exemplified in FIG. 3 will be referred to as a divided projection pattern. Projector 10 projects the divided projection pattern onto printed circuit board O in this manner. Area B1 is an example of a "first area." Area B2 is an example of a "second area." The first light intensity is an example of a "first brightness." The second light intensity is an example of a "second brightness." A position close to projector 10 is an example of a "first position."
[0019] FIG. 4 is a diagram illustrating an area projected with a first light amount and an area projected with a second light amount when a projector that projects a pattern is switched in the embodiment. In FIG. 4, the projector 10 is also illustrated to understand the shooting direction. A51 in FIG. 4 illustrates the positions of the area B1 and the area B2 when a pattern is projected from the projector 10A onto the printed circuit board O. A52 in FIG. 4 illustrates the positions of the area B1 and the area B2 when a pattern is projected from the projector 10B onto the printed circuit board O. A53 in FIG. 4 illustrates the positions of the area B1 and the area B2 when a pattern is projected from the projector 10C onto the printed circuit board O. A54 in FIG. 4 illustrates the positions of the area B1 and the area B2 when a pattern is projected from the projector 10D onto the printed circuit board O.
[0020] When the projectors 10 that project a pattern onto the printed circuit board O are switched in the order of projector 10A, projector 10B, projector 10C, and projector 10D, the positions of the area B1 projected with the first light amount and the area B2 projected with the second light amount change, as exemplified by A51, A52, A53, and A54 in Fig. 4. By switching the projectors 10 that project a pattern in this manner, it is possible to project a pattern onto each area of the printed circuit board O using both the first light amount and the second light amount.
[0021] Camera 11 is a means for photographing the printed circuit board O with the pattern projected thereon and outputting a digital image. Camera 11 has, for example, an optical system and an image sensor. When measuring a three-dimensional shape, camera 11 photographs multiple images while changing the phase of the pattern projected from projector 10. Camera 11 is an example of an "imaging means."
[0022] As illustrated in Fig. 2, in the embodiment, the camera 11 is disposed so as to photograph the printed circuit board O from directly above the printed circuit board O. That is, in the embodiment, the printed circuit board O is disposed so as to be located directly below the camera 11 during measurement. Note that in this specification, an image photographed by the photographing means is referred to as an "observation image." The printed circuit board O is an example of a "measurement target."
[0023] The control device 12 controls the projector 10 and the camera 11, processes the image captured by the camera 11, measures the three-dimensional shape, and the like. The control device 12 includes a computer equipped with a CPU (processor), a memory, a non-volatile storage device (e.g., a hard disk or a flash memory), an input device (e.g., a keyboard, a mouse, a touch panel, etc.), and a display device (e.g., a liquid crystal display, etc.). The functions of the control device 12 described below can be realized by loading a program stored in the non-volatile storage device into the memory and having the CPU execute the program. However, all or part of the functions of the control device 12 may be replaced by dedicated hardware. Furthermore, the functions of the control device 12 may be realized by the cooperation of multiple computers using distributed computing or cloud computing technology.
[0024] (Functions of control device 12) Next, the function of the control device 12 will be described with reference to Fig. 5. The control device 12 has an image acquisition unit 20, a three-dimensional shape measurement unit 21, an initialization unit 22, and a parameter storage unit 23.
[0025] The image acquisition unit 20 captures a plurality of observation images used for three-dimensional shape measurement from the camera 11. For example, the image acquisition unit 20 acquires four images for each projector 10, in which the phases of the patterns projected onto the printed circuit board O differ by π / 2 (radians). In this embodiment, since there are four projectors 10, the image acquisition unit 20 observes and acquires 16 images.
[0026] The three-dimensional shape measuring unit 21 measures the three-dimensional shape of the printed circuit board O based on the acquired multiple observation images. The three-dimensional shape is calculated. In the embodiment, the phase angle of one pixel representing the position of one point on the surface of the printed circuit board O between the four acquired images is calculated. The three-dimensional shape measurement unit 21 calculates the height of the point using the calculated phase angle and the parameters stored in the parameter storage unit 23. The three-dimensional shape measurement unit 21 performs such processing on all pixels to measure the three-dimensional shape of the printed circuit board O from the observed images. A point on the surface of the printed circuit board O is an example of a "partial region."
[0027] Here, three-dimensional shape measurement unit 21 selects an observation image suitable for calculating the height of each pixel from among a first observation image captured by projector 10A projecting a pattern, a second observation image captured by projector 10B projecting a pattern, a third observation image captured by projector 10C projecting a pattern, and a fourth observation image captured by projector 10D projecting a pattern, and calculates the height of each pixel.
[0028] Each of the 16 acquired observation images includes an area B1 where a pattern is projected with a first light amount and an area B2 where a pattern is projected with a second light amount lower than the first light amount. In the printed circuit board O, there are often a mixture of high reflectance parts such as silk printing, solder, and lands, and low reflectance parts such as resin parts of semiconductor chips. When a pattern is projected with the first light amount onto a high reflectance part, brightness saturation (excessive light amount) occurs, and there is a risk that the accuracy of the calculation of the three-dimensional shape by the three-dimensional shape measuring unit 21 will decrease. In addition, when a pattern is projected with the second light amount onto a low reflectance part, the low reflectance part does not appear clearly in the observation image, and there is a risk that the accuracy of the calculation of the three-dimensional shape by the three-dimensional shape measuring unit 21 will decrease. Therefore, the three-dimensional shape measuring unit 21 selects an observation image that can be calculated with higher accuracy based on at least one of the reliability, brightness, and height error, for example. The reliability can be, for example, the amplitude of the projected pattern. The relationship between the phase angle θ of the pattern and the real and imaginary parts of the signal is given by the following equation (1).
number
[0029] The reliability I is calculated using the real part Re and the imaginary part Im calculated based on formula (1). amp can be determined by the following equation (2):
number
[0030] The real and imaginary parts can also be calculated using Fourier transform without using the above formula (1). The three-dimensional shape measurement unit 21 may select an observation image in which the calculated reliability is within a predetermined range as an observation image suitable for calculating the height of the pixel.
[0031] For example, the three-dimensional shape measuring section 21 may select an observed image in which the brightness of a pixel to be calculated in height is within a predetermined range as an observed image suitable for calculating the height of that pixel.
[0032] The three-dimensional shape measuring unit 21 may select, for example, an observation image in which the error in height with respect to other parts falls within a predetermined error range as an observation image suitable for calculating the height of the pixel.
[0033] The initialization unit 22 calculates the pixel and phase of each image captured when a pattern is projected from the projector 10 onto a target member whose height is known in advance. A correspondence relationship (initial phase information) with the angle is generated. FIG. 6 is a diagram showing an example of a target member used in generating initial parameters in the embodiment. FIG. 6(A) is a plan view of the target member 100. FIG. 6(B) is a side view of the target member 100. As can be understood by referring to FIG. 6, the target member 100 is provided with regions R1, R2, R3, R4, and R5 having different heights. Each of the regions R1, R2, R3, R4, and R5 has a width equivalent to the entire shooting range of the camera 11. The heights of the regions of the target member 100 are, for example, region R1>region R2>region R3>region R4>region R5. In this specification, the heights of the regions of the target member 100 are defined as follows, with respect to the shooting stand 14: the height of region R1 is X1, the height of region R2 is X2, the height of region R3 is X3, the height of region R4 is X4, and the height of region R5 is X5.
[0034] The initialization unit 22 generates initial phase information based on, for example, an image of the region R5. The initialization unit 22 also generates an approximation equation for calculating a height based on a phase angle. The initialization unit 22 stores parameters including the generated initial phase information and approximation equation in the parameter storage unit 23. The initialization unit 22 also adjusts the positional relationship between the image captured by the camera 11 and the projection pattern of the projector 10, and generates a divided projection pattern.
[0035] (Initialization process flow) 7 is a flowchart illustrating the flow of initialization processing of the three-dimensional shape measuring device according to the embodiment. Hereinafter, the flow of initialization processing of the three-dimensional shape measuring device according to the embodiment will be described with reference to FIG.
[0036] In S1, the initialization unit 22 controls the projector 10 to emit a spot light at the center of the optical axis of the projector 10. In S2, the initialization unit 22 controls the projection pattern of the projector 10 so that the center of the image captured by the camera 11 and the spot light of the projector 10 coincide with each other.
[0037] In S3, the initialization unit 22 generates a divided projection pattern so that the boundary between the region B1 and the region B2 is a straight line passing through the spot light emitted in S1. In S4, the initialization unit 22 controls the DMD of the projector 10 so that the generated divided projection pattern can be projected.
[0038] In S5, the initialization unit 22 generates initial parameters. The initialization unit 22 stores the generated initial parameters in the parameter storage unit 23. Details of the process of generating the initial parameters will be described later with reference to FIG.
[0039] (Initial parameter generation process flow) Fig. 8 is a flowchart illustrating the flow of an initial parameter generation process in the embodiment. The process illustrated in Fig. 8 corresponds to the process of S5 in Fig. 7. In Fig. 8 below, the initial parameter generation process for projector 10A is illustrated, but similar processes are also executed for projectors 10B, 10C, and 10D. The flow of the initial parameter generation process by initialization unit 22 will be described below with reference to Fig. 8.
[0040] In S51, the initialization unit 22 obtains, for each of the regions R1, R2, R3, R4, and R5 of the target member 100, four images in which the phases of the patterns projected from the projector 10A differ by π / 2 (radians).
[0041] In S52, the initialization unit 22 generates a correspondence relationship between each pixel of the image captured by the camera 11 and the phase angle based on the image captured in the region R5. In this specification, the correspondence relationship generated based on the image captured in the region R5 is referred to as initial phase information. The initial phase information can be represented as a two-dimensional numerical array in which a phase value is assigned to each pixel.
[0042] In S53, the initialization unit 22 generates a correspondence relationship between each pixel and a phase angle for each of the regions R1, R2, R3, and R4. Based on the initial phase information generated in S52 and the correspondence relationship between each pixel and a phase angle, the initialization unit 22 generates a correspondence relationship between the relative height and phase angle for each pixel in the region R5.
[0043] For example, the initialization unit 22 calculates the following phase angle difference φ for each pixel. The initialization unit 22 calculates that for region R4, the height difference with region R5 is X4-X5, and the phase angle difference with region R5 is φ1. The initialization unit 22 also calculates that for region R3, the height difference with region R5 is X3-X5, and the phase angle difference with region R5 is φ2. The initialization unit 22 calculates that for region R2, the height difference with region R5 is X2-X5, and the phase angle difference with region R5 is φ3. The initialization unit 22 calculates that for region R1, the height difference with region R5 is X1-X5, and the phase angle difference with region R5 is φ4.
[0044] The initialization unit 22 calculates an approximation equation indicating the correspondence relationship between height and phase angle from the relationship between the height and phase angle φ thus obtained. The approximation equation can be expressed, for example, in the form of the following equation (3), and equation (3) corresponding to each pixel is generated.
number
[0045] In equation (3), z is the height to be determined. In equation (3), coefficients a, b, c, and d are real constants determined for each pixel. In this specification, information indicating coefficients a, b, c, and d of the approximation equation for each pixel is also referred to as parameter coefficients. The parameter coefficients can be represented as a two-dimensional numerical array in which the value of coefficient a is arranged for each pixel, a two-dimensional numerical array in which the value of coefficient b is arranged for each pixel, a two-dimensional numerical array in which the value of coefficient c is arranged for each pixel, and a two-dimensional numerical array in which the value of coefficient d is arranged for each pixel.
[0046] In equation (3), φ d In the above, "d" is a number between 1 and 4. For example, "φ1" is the phase difference between the region R5 and the region R4 of the pixel for which height z is to be calculated. Note that although the approximation formula exemplified in the above formula (3) is a third-order formula, the approximation formula may be a fourth-order or higher formula, or a second-order or lower formula.
[0047] (Teaching process) Fig. 9 is a flowchart illustrating the flow of a teaching process in the embodiment. The process illustrated in Fig. 9 is executed after the initialization process illustrated in Fig. 7. Hereinafter, the flow of the teaching process in the embodiment will be described with reference to Fig. 9.
[0048] In S101, a program used for inspecting the printed circuit board O (measuring the three-dimensional shape) is created. The created program is stored in the parameter storage unit 23 by, for example, the initialization unit 22. In S102, field of view information is created. The field of view information includes, for example, combinations of light intensity, pattern arrangement, and width of stripes formed by the pattern. The field of view information may include, for example, five types of combinations with different light intensity. In S103, two types of combinations to be used in the division pattern are selected from the field of view information created in S102. Of the selected combinations, a combination with a high light intensity (high brightness) is used for projection onto area B1, and a combination with a low light intensity (low brightness) is used for projection onto area B2. In S104, the inspection program is released. In the release of the inspection program, the inspection program including the division pattern created in S101 to S103 is released by, for example, the initialization unit 2 2, the parameter is stored in the parameter storage unit 23.
[0049] (Measurement processing) 10 is a flowchart illustrating the flow of a measurement process performed by the three-dimensional shape measuring apparatus according to the embodiment. Hereinafter, the measurement process performed by the three-dimensional shape measuring apparatus 1 will be described with reference to FIG.
[0050] In S201, the three-dimensional shape measuring unit 21 reads out the inspection program stored in the parameter storage unit 23. In S202, the image acquiring unit 20 acquires an image captured by the camera 11 in a state in which the projector 10A projects a divided pattern onto the printed circuit board O. This image is acquired as four images with a phase shift of π / 2 (radian) each. Similarly, the image acquiring unit 20 acquires an image captured by the camera 11 in a state in which the divided pattern is projected onto the printed circuit board O for each of the projectors 10B, 10C, and 10D.
[0051] In S203, the three-dimensional shape measuring unit 21 calculates a first height of each pixel based on the observation image acquired by the image acquiring unit 20 in a state where the projector 10A projects the divided pattern onto the printed circuit board O. The state where the projector 10A projects the divided pattern onto the printed circuit board O is illustrated, for example, in A51 of FIG. 4. Similarly, the three-dimensional shape measuring unit 21 calculates the height of each pixel based on the observation image for each of the projectors 10B, 10C, and 10D. That is, the three-dimensional shape measuring unit 21 calculates a second height calculated based on the observation image in a state where the projector 10B projects the divided pattern onto the printed circuit board O. The three-dimensional shape measuring unit 21 calculates a third height calculated based on the observation image in a state where the projector 10C projects the divided pattern onto the printed circuit board O. The three-dimensional shape measuring unit 21 calculates a fourth height calculated based on the observation image in a state where the projector 10D projects the divided pattern onto the printed circuit board O.
[0052] The three-dimensional shape measuring unit 21 synthesizes the heights calculated for each pixel based on the observation images of the projectors 10A, 10B, 10C, and 10D. For example, the three-dimensional shape measuring unit 21 may determine the average of the first height, second height, third height, and fourth height for a certain pixel as the height of the pixel. In S204, the three-dimensional shape measuring unit 21 outputs the height of each pixel measured in S203.
[0053] <Effects of the embodiment> In many cases, components with high reflectivity and components with low reflectivity are mixed on the printed circuit board O. When a pattern with a single brightness is projected on such a printed circuit board O, an observation image suitable for measurement may not be obtained. In order to avoid such a problem, for example, a method is conceivable in which an observation image is obtained in a state where a pattern is projected with a first light amount on each of the projectors 10, and an observation image is obtained in a state where a pattern is projected with a second light amount. When an observation image is obtained by such a method, the number of times of shooting the printed circuit board O is the product of the number of projectors 10, the number of times the light amount is switched (2 for "first light amount" and "second light amount"), and the number of times shooting is performed with the phase changed (4 times with a change of π / 2 each), so that when there are four projectors 10, 32 shootings are performed. In this embodiment, a divided pattern including an area B1 with the first light amount and an area B2 with the second light amount is projected, so that shooting can be performed with two types of light amounts, the first light amount and the second light amount, in one shooting. Therefore, in this embodiment, since switching of the light amount does not occur, it is possible to reduce the number of times the printed circuit board O is imaged to 16. Since the number of times the printed circuit board O is imaged can be reduced, the three-dimensional shape measuring device 1 according to this embodiment can prevent the measurement time from becoming long.
[0054] In this embodiment, the boundary between the area B1 and the area B2 passes through the intersection of the optical axis of the projector 10 and the printed circuit board O. Therefore, when the projector 10 is projected from different directions, When projected onto the plate O, both the patterns of the first light amount and the second light amount are projected onto all areas on the printed circuit board O. Therefore, even if there is a component with a different reflectance on the printed circuit board O, an image suitable for measuring the component can be obtained by at least one of the pattern of the first light amount and the pattern of the second light amount.
[0055] <Modification> In the embodiment, four projectors 10 are used to project the divided patterns onto the printed circuit board O from four directions. However, the number of projectors 10 is not limited to four. The three-dimensional shape measuring device 1 may include more than four projectors 10 and project the divided patterns onto the printed circuit board O from various directions that are more than four directions. The three-dimensional shape measuring device 1 may also include three or less projectors 10.
[0056] In the embodiment, the three-dimensional shape measuring unit 21 calculates the first height, the second height, the third height, and the fourth height for each pixel, and the average of the calculated heights is set as the height of the pixel, but the height of a pixel may be calculated by other methods. For example, the three-dimensional shape measuring unit 21 may calculate the height for each pixel based on an observation image with high reliability. Also, the three-dimensional shape measuring unit 21 may calculate the height for each pixel based on an observation image with a brightness within a predetermined range. Also, the three-dimensional shape measuring unit 21 may calculate the average of the first height, the second height, the third height, and the fourth height, excluding heights whose difference from the other heights is equal to or greater than a predetermined value, and set the calculated average as the height of the pixel.
[0057] In the embodiment, a divided projection pattern is adopted in which an area close to the projector 10 is projected with a first light amount, and an area far from the projector 10 is projected with a second light amount. However, the divided projection pattern is not limited to this aspect. For example, the divided projection pattern may project a left area with a first light amount and a right area with a second light amount in the direction in which the measurement target is viewed from the projector 10.
[0058] The embodiments and modifications disclosed above can be combined with each other. [Explanation of symbols]
[0059] 1. Three-dimensional shape measuring device 10. Projector 11. Camera 12. Control device 20. Image acquisition section 21...3D shape measurement section 22...Initialization section 23 Parameter storage section O...Printed circuit board
Claims
1. A plurality of projection means for projecting patterns onto a measurement target from different directions; an imaging unit that captures an image of the measurement target onto which the pattern is projected for each of the plurality of projection units; a measuring means for measuring a height of the partial region of the measurement target by processing the captured image, a pattern projected by each of the projection means is a divided projection pattern which projects a first area, the relative position of which with respect to each of the projection means is a first position, with a first luminance, and projects a second area, the relative position of which with respect to each of the projection means is farther away than the first position, with a second luminance lower than the first luminance; a boundary line between the first region and the second region passes through an intersection point between the optical axes of the plurality of projection means and the measurement target; Three-dimensional shape measurement device.
2. the measuring means determines the average of heights of the partial regions measured based on the images acquired for each of the plurality of projection means as the height of the partial regions; The three-dimensional shape measuring apparatus according to claim 1 .
3. the measuring means calculates a height of the partial region based on an image captured by each of the plurality of projection means, the image captured having a luminance within a predetermined range. The three-dimensional shape measuring device according to claim 1 or 2.
4. Each of the plurality of projection means projects a pattern of a predetermined phase onto the measurement target; The measurement means calculates a reliability based on a phase of the partial region in each of the images acquired for each of the plurality of projection means, and calculates a height of the partial region based on an image in which the calculated reliability is within a predetermined range. The three-dimensional shape measuring apparatus according to claim 1 .
Citation Information
Patent Citations
Prevention for magnetic blow of welding arc
JP1983047568A
Zero valent nickel phosphite complex
JP1984048496A
Information processing device, controller, assembling device, information processing method, and program
JP2015010844A
Teaching device for substrate inspection device, and teaching method
JP2016045019A
Three-dimensional shape measurement device
JP2018081048A
