Three-dimensional measurement calculation device, three-dimensional measurement program, recording medium, three-dimensional measurement device, and three-dimensional measurement calculation method

By identifying and processing poor light illumination areas in the three-dimensional measurement device, and using the reference model and weighted average method, the accuracy problem caused by secondary reflection and shadowing in the three-dimensional shape measurement is solved, and the reliability of the measurement results is improved. .

CN118742784APending Publication Date: 2024-10-01YAMAHA MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280092343.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-03-09
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing three-dimensional measurement technology is difficult to accurately handle the problem of poor light illumination caused by secondary reflection and shielding, which affects the accuracy of measurement results.

Method used

By using the reference model and illumination direction information in the three-dimensional measurement device, the shadow area and the secondary reflection area are identified and calculated, and the pattern image is processed using the weighted average method to suppress the influence of adverse light exposure, thereby improving the measurement results of the three-dimensional shape.

Benefits of technology

Effectively identify and process areas with poor light exposure, improve the accuracy and reliability of three-dimensional shape measurement, and reduce errors caused by occlusion and reflection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118742784A_ABST
    Figure CN118742784A_ABST
Patent Text Reader

Abstract

A component model (83) (reference model) indicating a component mounting range (Ref) in which a component (B) is mounted on a substrate (B) and an outer shape of the component (Ref) mounted in the component mounting range (Ref) is acquired. Then, a shadow region (83) and a secondary reflection region (83) (poor irradiation region) are calculated on the basis of projection direction information (84) (irradiation direction information) indicating the projection direction (D) in which the pattern light (L (S)) is projected onto the component (E) in the three-dimensional measurement device (1), and the component model (83). Thus, when measuring the three-dimensional shape of the measurement object (J) on the basis of the pattern image (I (S)) acquired by capturing the image of the pattern light (L (S)) irradiated on the measurement object (J), a shadow region (As) and a secondary reflection region (Ar) in which the irradiation of the pattern light (L) is poor can be acquired.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a technology for measuring the three-dimensional shape of a measurement object based on a pattern image obtained by capturing light of a predetermined pattern irradiating the measurement object. Background Art

[0002] Patent Documents 1 and 2 describe a three-dimensional measurement technique for measuring the three-dimensional shape of a measurement object by a so-called phase shift method. In this three-dimensional measurement technique, the three-dimensional shape of the measurement object is measured based on an image obtained by capturing a camera with light of a predetermined pattern irradiated from a projector to the measurement object.

[0003] In addition, Patent Document 2 proposes suppressing the

[0004] A technology for measuring a three-dimensional shape by taking advantage of the influence of secondary reflections generated when there is a tall object. That is, if secondary reflections occur, such as light emitted from a projector and reflected by the side of a tall object being further reflected by other objects, it is difficult to accurately measure a three-dimensional shape. Therefore, in Patent Document 2, the range of light irradiated from the projector is limited so that the light from the projector does not enter the tall object (cause object) that causes the secondary reflections.

[0005] Prior art literature

[0006] Patent Literature

[0007] Patent Document 1: Japanese Patent Application Publication No. 2012-112952

[0008] Patent Document 2: Japanese Patent Application Publication No. 2016-130663 Summary of the invention

[0009] Problems to be solved by the invention

[0010] However, in order to limit the range of light irradiated from the projector as in Patent Document 2, it is necessary to control the hardware such as the projector of the three-dimensional measurement device, so the control tends to become complicated. In addition, as a poor irradiation of light that affects the measurement of three-dimensional shapes, in addition to the above-mentioned secondary reflection, so-called shielding can also be cited. This shielding refers to the phenomenon that a shadow is generated due to being blocked by an object constituting the measurement object, where the light from the projector does not reach. Patent Document 2 cannot cope with such shielding.

[0011] On the other hand, if the poor illumination area where poor illumination of light occurs in the object to be measured can be known, the poor illumination area can be referred to in the calculation of the three-dimensional shape based on the pattern image obtained by the three-dimensional measurement device. As a result, the calculation of the three-dimensional shape can be performed while suppressing the influence of the poor illumination of light.

[0012] The present invention has been made in view of the above problems, and an object of the present invention is to obtain a poor irradiation area where poor irradiation of light occurs when measuring the three-dimensional shape of a measurement object based on a pattern image obtained by imaging light of a predetermined pattern irradiating the measurement object.

[0013] Means for solving problems

[0014] The three-dimensional measurement computing device of the present invention performs a computing operation for measuring the three-dimensional shape of a measurement object based on a pattern image obtained by a three-dimensional measurement device including an object support portion for supporting a measurement object having a substrate and a component mounted on the substrate, a pattern irradiation portion for irradiating a predetermined pattern of light to the measurement object supported by the object support portion, and a photographing portion for acquiring a two-dimensional pattern image by photographing the light irradiated from the pattern irradiation portion to the measurement object, wherein the computing device comprises: a reference model acquisition portion for acquiring a reference model representing a component mounting range in the substrate for mounting components and an outer shape of the component mounted in the component mounting range; and an area calculation portion for calculating a poorly irradiated area of ​​at least one of a shadow area and a secondary reflection area based on irradiation direction information representing a direction in which light is irradiated to the component in the three-dimensional measurement device and the reference model, the shadow area being an area where a shadow of the component is generated in the substrate due to light irradiated from the photographing portion to the component being blocked by the component, and the secondary reflection area being an area where light irradiated from the photographing portion and reflected by the component is incident on the substrate.

[0015] The three-dimensional measurement program according to the present invention causes a computer to function as the above-mentioned three-dimensional measurement calculation device.

[0016] The recording medium according to the present invention records the above-mentioned three-dimensional measurement program in a computer-readable form.

[0017] The three-dimensional measuring device according to the present invention comprises: an object supporting portion, which supports a measuring object having a substrate and a component mounted on the substrate; a pattern irradiating portion, which irradiates the measuring object supported by the object supporting portion with light of a prescribed pattern; a photographing portion, which acquires a two-dimensional pattern image by photographing the light irradiated from the pattern irradiating portion to the measuring object; and the above-mentioned three-dimensional measurement computing device, which performs a calculation for measuring the three-dimensional shape of the measuring object based on the pattern image.

[0018] The three-dimensional measurement operation method of the present invention performs an operation for measuring the three-dimensional shape of a measurement object based on a pattern image obtained by a three-dimensional measuring device including an object support portion that supports a measurement object having a substrate and a component mounted on the substrate, a pattern irradiation portion that irradiates a predetermined pattern of light to the measurement object supported on the object support portion, and a photographing portion that obtains a two-dimensional pattern image by photographing the light irradiated from the pattern irradiation portion to the measurement object, wherein the operation comprises: a step of obtaining a component mounting range in the substrate for mounting components and a reference model of the outer shape of the component mounted in the component mounting range; and a step of calculating at least one of a shadow area and a secondary reflection area as a poorly irradiated area based on irradiation direction information indicating a direction in which light is irradiated to the component in the three-dimensional measurement device and the reference model. The shadow area is an area where a shadow of the component is generated in the substrate because the light irradiated from the photographing portion to the component is blocked by the component, and the secondary reflection area is an area where light irradiated from the photographing portion and reflected by the component is incident on the substrate.

[0019] In the present invention (three-dimensional measurement computing device, three-dimensional measurement program, recording medium, three-dimensional measurement device, and three-dimensional measurement computing method) configured in this way, a reference model representing a component mounting range for mounting components in a substrate and the outer shape of components mounted in the component mounting range is obtained. Then, based on the irradiation direction information representing the direction in which light is irradiated to the components in the three-dimensional measurement device and the reference model, a poor irradiation area is calculated. In this way, when the three-dimensional shape of the measurement object is measured based on a pattern image obtained by photographing light of a predetermined pattern irradiated to the measurement object, a poor irradiation area where poor irradiation of light occurs can be obtained.

[0020] Here, the poorly irradiated area is at least one of a shadow area where the shadow of the component is generated in the substrate due to the light irradiated from the imaging unit to the component being blocked by the component, and a secondary reflection area where the light irradiated from the imaging unit and reflected by the component is incident on the substrate.

[0021] In addition, the computing device for three-dimensional measurement can be configured as follows: the reference model acquisition unit creates a reference model based on at least one of the inspection data and CAD (Computer-Aided Design) data, the inspection data is data representing a reference for checking the suitability of the positional relationship between the component installed in the component installation range and the component installation range, and the CAD data is data representing the structure of the substrate. In this structure, the reference model can be created by using existing data such as the inspection data or CAD data of the substrate, and the poorly irradiated area can be calculated based on the reference model. It should be noted that the information represented by the inspection data is not limited to the above-mentioned references, and can also include a reference for checking the suitability of the component itself and a reference for checking the suitability of the bonding between the component and the substrate.

[0022] In addition, the three-dimensional measurement computing device can be configured such that the region calculation unit further calculates the poor irradiation region based on the result of recognizing the position of the substrate carried into the three-dimensional measurement device and supported by the object support unit. In this configuration, the poor irradiation region can be accurately calculated based on the actual position of the substrate carried into the three-dimensional measurement device.

[0023] In addition, the three-dimensional measurement computing device can be configured such that the position of the substrate supported by the object support portion is recognized based on the result of photographing the reference mark marked on the substrate by the photographing portion. In this configuration, the poorly irradiated area can be accurately calculated based on the position of the substrate transported to the three-dimensional measurement device.

[0024] In addition, the three-dimensional measurement computing device can be configured such that the region calculation unit further calculates the poor irradiation region based on the result of checking the position of the component installed in the component installation range. In this configuration, the poor irradiation region can be accurately calculated based on the actual position of the component installed in the component installation range.

[0025] In addition, the three-dimensional measurement computing device can be configured to detect the position of the component mounted in the component mounting range based on the result of imaging the component. In this configuration, the poorly irradiated area can be accurately calculated based on the actual position of the component mounted in the component mounting range.

[0026] In addition, the three-dimensional measurement computing device may be configured such that: the pattern irradiation unit includes a plurality of projectors that irradiate light to the component from mutually different directions, the irradiation direction information indicates the direction in which the light is irradiated from the projector to the component for each of the plurality of projectors, and the area calculation unit calculates the poor irradiation area for each of the plurality of projectors. In this configuration, the poor irradiation area generated when the component is irradiated from each of the plurality of projectors can be obtained.

[0027] In addition, the three-dimensional measurement operation device can be configured as follows: it also includes a shape calculation unit that calculates a plurality of unidirectional shape data by performing the following operation on a plurality of projectors respectively, wherein the operation is: based on a pattern image obtained by photographing the light irradiated from the projector to the substrate using the photographing unit, unidirectional shape data representing a value related to the three-dimensional shape, i.e., a shape association value, is calculated for each pixel, and the shape calculation unit performs a first integrated operation processing for calculating the three-dimensional shape of the object to be measured by integrating the plurality of unidirectional shape data by calculating the average of the shape association values ​​respectively represented by the plurality of unidirectional shape data for each pixel, wherein in the first integrated operation processing, the three-dimensional shape of the object to be measured is calculated by multiplying the shape association values ​​of the pixels included in the poorly irradiated area among the shape association values ​​represented by the unidirectional shape data by a weighted average of a weight coefficient less than 1 and greater than 0.

[0028] In this structure, unidirectional shape data showing a value (shape association value) related to a three-dimensional shape for each pixel is calculated based on a pattern image obtained by photographing light irradiated from a projector to a substrate using a photographing unit. That is, the unidirectional shape data is data related to a three-dimensional shape calculated based on photographing a pattern image of light irradiated from a projector to a component. The operation for calculating the unidirectional shape data is performed on a plurality of projectors respectively. Thus, unidirectional shape data is obtained when light is irradiated from a plurality of projectors to a component respectively. The plurality of unidirectional shape data thus obtained are based on a pattern image obtained while irradiating light to a component from respectively different directions. Therefore, a pixel that corresponds to a poorly irradiated area in one unidirectional shape data may correspond to an area that is well irradiated with light in other unidirectional shape data. Thus, the weighted average of the shape association values ​​respectively represented by a plurality of unidirectional shape data can be calculated for each pixel, thereby integrating a plurality of unidirectional shape data to calculate the three-dimensional shape of the object to be measured. Furthermore, in the first integrated calculation process, the three-dimensional shape of the object to be measured is calculated by multiplying the shape correlation values ​​of the pixels included in the poorly irradiated area among the shape correlation values ​​represented by the unidirectional shape data by a weighted average of a weight coefficient that is less than 1 and greater than 0. Thus, the three-dimensional shape of the object to be measured can be appropriately calculated while suppressing the influence of the poorly irradiated area.

[0029] In addition, the three-dimensional measurement computing device may be configured such that, in the first integrated computing process, the three-dimensional shape of the object to be measured is calculated by weighted average of the shape correlation values ​​of the pixels included in the poorly irradiated area by a weight coefficient of 0. In this way, the operation of multiplying the weight coefficient by 0 is an operation of excluding the poorly irradiated area. Thus, the three-dimensional shape of the object to be measured can be appropriately calculated while excluding the influence of the poorly irradiated area.

[0030] It should be noted that the specific content of the shape association value can be variously conceived. For example, the shape association value can be given by the product of the calculated value of the three-dimensional shape calculated based on the pattern image and the reliability of the calculated value, or the shape association value can also be the calculated value of the three-dimensional shape calculated based on the pattern image.

[0031] In addition, the three-dimensional measurement computing device may be configured such that the shape calculation unit performs both the second integrated computing process and the first integrated computing process on the same measurement object, performs the evaluation process on a predetermined number of measurement objects that are the acquisition objects of the pattern image in the three-dimensional measurement device, thereby performing a necessity determination for determining whether the first integrated computing process is necessary or not, the second integrated computing process is a process for calculating the three-dimensional shape of the measurement object by integrating the plurality of unidirectional shape data by calculating a representative value of shape association values ​​represented by the plurality of unidirectional shape data for each pixel without performing weighting corresponding to the poorly irradiated area, the evaluation process is a process for evaluating the difference between the three-dimensional shapes of the measurement object calculated in the first integrated computing process and the second integrated computing process, and when it is determined in the necessity determination that the first integrated computing process is not necessary, the shape calculation unit calculates the three-dimensional shape of the measurement object by the second integrated computing process without performing the first integrated computing process. In this configuration, when the poorly irradiated area does not become a problem, the three-dimensional shape of the measurement object can be accurately calculated by the second integrated computing process that is simpler than the first integrated computing process. Here, the representative value of the shape correlation value represented by the plurality of unidirectional shape data without weighting corresponding to the poorly irradiated area includes an average value or a median value based on a simple average.

[0032] It should be noted that the three-dimensional measurement arithmetic device may be configured to further include a setting operation unit for accepting an operation for setting a predetermined number of times. In this configuration, the user can appropriately adjust the period for executing both the first integrated arithmetic processing and the second integrated arithmetic processing.

[0033] Effects of the Invention

[0034] According to the present invention, when measuring the three-dimensional shape of the measurement object based on a pattern image obtained by capturing light of a predetermined pattern irradiated onto the measurement object, a poor irradiation area where poor irradiation of light occurs can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a block diagram schematically illustrating a three-dimensional measurement device according to the present invention.

[0036] Figure 2 It is schematically shown Figure 1 A top view showing the relationship between a projector and a photographing field of view included in a three-dimensional measuring device.

[0037] Figure 3 It is shown Figure 1 A block diagram showing details of a control device included in a three-dimensional measuring device.

[0038] Figure 4 This is a diagram schematically showing the content of the component model created by the component model acquisition unit.

[0039] Figure 5A This is a diagram showing an example of substrate structure data used for creating a component model in a tabular format.

[0040] Figure 5B This is a diagram showing an example of component data used for creating a component model in a tabular format.

[0041] Figure 5C FIG. 1 is a diagram schematically showing an example of a produced component model.

[0042] Figure 6 It is a diagram schematically showing the content of the poorly irradiated area calculated by the area calculation unit.

[0043] Figure 7 This is a flowchart showing an example of calculation for calculating the poorly irradiated area.

[0044] Figure 8 This is a flowchart showing a first example of three-dimensional measurement.

[0045] Fig. 9 It is shown in Figure 8 Flowchart of obtaining omnidirectional shape data performed in three-dimensional measurement.

[0046] Fig.10 It is shown in Figure 8 Flowchart of the first data integration process performed in the three-dimensional measurement of FIG.

[0047] Fig.11 is schematically shown in Fig.10 A diagram of operations performed in the first data integration process.

[0048] Fig.12 is shown for correction by Figure 7 This is a flowchart of an example of calculation of the calculated poor irradiation area.

[0049] Fig.13 This is a flowchart showing a second example of three-dimensional measurement.

[0050] Fig.14 It is shown in Fig.13 Flowchart of the second data integration process performed in the three-dimensional measurement.

[0051] Fig.15 is schematically shown in Fig.13 A diagram showing the contents of operations performed in three-dimensional measurement. DETAILED DESCRIPTION

[0052] Figure 11 is a block diagram schematically illustrating a three-dimensional measurement device according to the present invention. In this figure and the following figures, an X direction which is a horizontal direction, a Y direction which is a horizontal direction orthogonal to the X direction, and a Z direction which is a vertical direction are appropriately shown. Figure 1 The three-dimensional measuring device 1 measures the three-dimensional shape (appearance shape) of the measuring object J by controlling the conveyor 2, the measuring head 3 and the driving mechanism 4 by the control device 100. The measuring object J is composed of a substrate B (printed substrate) and a component E mounted on the substrate B. The measuring object J is produced by a surface mounter that mounts the component E on the substrate B and is transported to the three-dimensional measuring device 1.

[0053] The conveyor 2 conveys the object J to be measured along a predetermined conveying path. Specifically, the conveyor 2 conveys the object J to be measured before measurement to the measuring position in the three-dimensional measuring device 1, and holds the object J to be measured at the measuring position so that the substrate B becomes horizontal. In addition, when the measurement of the three-dimensional shape of the object J to be measured at the measuring position is completed, the conveyor 2 conveys the object J to be measured after measurement to the outside of the three-dimensional measuring device 1.

[0054] The measuring head 3 has a photographing camera 31 for photographing the photographing field V31 from above, and the measuring object J transported to the measuring position is included in the photographing field V31 and photographed by the photographing camera 31. The photographing camera 31 has individual photographing elements 311 for detecting reflected light from the measuring object J, and an image of the measuring object J is photographed by the individual photographing elements 311.

[0055] Furthermore, the measuring head 3 has a projector 32 for projecting a stripe-shaped pattern light L(S) whose light intensity distribution changes in a sinusoidal wave shape onto the photographing field of view V31. The projector 32 has a light source such as an LED (Light Emitting Diode) and a digital micromirror device that reflects the light from the light source toward the photographing field of view V31. The projector 32 can project a plurality of pattern lights L(S) having different phases onto the photographing field of view V31 by adjusting the angles of each micromirror of the digital micromirror device. That is, the measuring head 3 can measure the three-dimensional shape of the measuring object J within the photographing field of view V31 by the phase shift method by photographing the pattern light L(S) projected from the projector 32 while changing the phase of the pattern light L(S) projected from the projector 32 using the photographing camera 31.

[0056] Figure 2 It is schematically shown Figure 1 A top view of the relationship between the projector and the field of view of the three-dimensional measurement device. Figure 2 As shown, the measuring head 3 has a plurality of (in this example, four) projectors 32 (in Figure 1In order to simplify the illustration, two projectors 32 are representatively shown. Each projector 32 projects pattern light L(S) from obliquely above the shooting field of view V31 of the shooting camera 31. In a top view, the plurality of projectors 32 are arranged in a manner surrounding the shooting camera 31, and are arranged at equal intervals in a circular shape with the vertical direction Z as the center. Therefore, the plurality of projectors 32 project pattern light L(S) from mutually different projection directions D to the shooting field of view V31. It should be noted that the number of projectors 32 provided in the measuring head 3 is not limited to Figure 2 Examples of 4.

[0057] In addition, the measuring head 3 has an illumination 33 ( Figure 1 The projector 32 projects the pattern light L(S) toward the photographing field of view V31 when measuring a three-dimensional shape, whereas the illumination 33 irradiates the photographing field of view V31 with illumination light when photographing a two-dimensional image using the photographing camera 31 .

[0058] The drive mechanism 4 drives the measuring head 3 in the X direction, the Y direction, and the Z direction by means of a motor while supporting the measuring head 3. The measuring head 3 can be driven by the drive mechanism 4 to move above the measuring target portion in the measuring object J and capture the measuring target portion within the photographing field of view V31, and can measure the three-dimensional shape of the measuring target portion within the photographing field of view V31. In particular, the three-dimensional measuring device 1 can measure the three-dimensional shape of the component E and its surroundings (the measuring target portion) while including the component E in the photographing field of view V31 in a manner that facilitates the inspection of the floating of the component E from the substrate B, for example, the floating of the terminals of a package such as a QFP (Quad Flat Package) from the substrate B.

[0059] The control device 100 has a main control unit 110 which is a processor composed of a CPU (Central Processing Unit) and a memory. The main control unit 110 controls the various parts of the device to measure the three-dimensional shape. In addition, the control device 100 has a UI (User Interface) 200 composed of input and output devices such as a display, a keyboard, and a mouse. The user can input instructions to the control device 100 or confirm the measurement results of the control device 100 through the UI 200. In addition, the control device 100 has a projection control unit 120, a shooting control unit 130, and a drive control unit 140. The projection control unit 120 controls the projection of the pattern light L (S) by the projector 32. The shooting control unit 130 controls the shooting camera 31 to shoot the shooting field of view V31 and the irradiation of light from the lighting 33 to the shooting field of view V31. The drive control unit 140 controls the drive mechanism 4 to drive the measuring head 3.

[0060] When the conveyor 2 carries the measurement object J to the measurement position, the main control unit 110 controls the drive mechanism 4 by the drive control unit 140 to move the measuring head 3 above the measurement object portion of the measurement object J. As a result, the measurement object portion is included in the photographing field of view V31 of the photographing camera 31. Next, the main control unit 110 projects the pattern light L(S) from the projector 32 to the photographing field of view V31 and photographs the pattern light L(S) projected to the photographing field of view V31 by the photographing camera 31 (pattern photographing operation). Specifically, the control device 100 has a storage unit 150, and reads out the projection pattern T(S) stored in the storage unit 150. In addition, the main control unit 110 controls the projection control unit 120 based on the projection pattern T(S) read out from the storage unit 150, thereby adjusting the angle of each micromirror of the digital micromirror device of the projector 32 according to the projection pattern T(S). In this way, the pattern light L(S) having the projection pattern T(S) is projected to the photographing field of view V31. Furthermore, the main control unit 110 controls the shooting control unit 130 to shoot the pattern light L(S) projected on the shooting field of view V31 with the shooting camera 31 to obtain a pattern image I(S). The pattern image I is stored in the storage unit 150. It should be noted that the storage unit 150 stores four projection patterns T(S) with phases different from each other by 90 degrees, and the pattern shooting operation is performed four times (S=1, 2, 3, 4) while changing the projection pattern T(S). As a result, four pattern images I(S) are obtained by shooting the pattern light L(S) with phases different from each other by 90 degrees. The main control unit 110 obtains the height of the shooting field of view V31 for each pixel of the shooting camera 31 based on the four pattern images I(S) obtained in this way by the phase shift method. It should be noted that the deformation of the projection pattern T(S) is not limited to the example here. For example, eight projection patterns T(S) with phases different from each other by 45 degrees can also be used, and three projection patterns T(S) with phases different from each other by 120 degrees can also be used.

[0061] Figure 3 It is shown Figure 1The block diagram shows the details of the control device of the three-dimensional measuring device. The control device 100 saves the three-dimensional measuring program 92 downloaded from the external server computer 91 to the storage unit 150. It should be noted that the provision method of the three-dimensional measuring program 92 is not limited to downloading from the outside, and the three-dimensional measuring program 92 can also be provided in a state recorded on a DVD (Digital Versatile Disc) or a USB (Universal Serial Bus). The three-dimensional measuring program 92 is executed by the main control unit 110, and the main control unit 110 is composed of a component model acquisition unit 111, an area calculation unit 112, a pattern image acquisition unit 113 and a shape calculation unit 114. These functional units 111, 112, 113, and 114 play a function corresponding to the poorly irradiated area caused by the component E on the substrate B when the pattern light L (S) is projected onto the measurement object J. Their details are as follows.

[0062] Figure 4 is a diagram schematically showing the contents of the component model created by the component model acquisition unit. Figure 5A FIG. 1 is a diagram showing an example of substrate structure data used for creating a component model in a tabular form. Figure 5B This is a diagram showing an example of component data used for creating a component model in a tabular form. Figure 5C 1 is a diagram schematically showing an example of a component model to be created. The component model acquisition unit 111 uses the substrate structure data 81 representing the structure of the substrate B and the component data 82 representing the outer shape of the component E to be mounted on the substrate B to create a component model 83 representing the three-dimensional existence range of the component E to be mounted on the substrate B. It should be noted that the substrate structure data 81 and the component data 82 are stored in the storage unit 150 in advance.

[0063] Substrate structure data 81( Figure 5A) shows the component mounting range Ref(R) set on the substrate B and the type of component E to be mounted on the component mounting range Ref(R) with respect to each component mounting range Ref(1), Ref(2), Ref(3), ... (R=1, 2, 3, ...). In the substrate structure data 81, the component mounting range Ref(R) is determined by the position (X coordinate) of the component mounting range Ref(R) in the X direction and the position (Y coordinate) of the component mounting range Ref(R) in the Y direction. It should be noted that the component mounting range Ref(R) is a range that is defined by, for example, a pad set on the substrate B and has an extension. In contrast, the position (x, y) of the component mounting range Ref(R) is equivalent to the center of the component mounting range Ref(R) when viewed from above. The component mounting range Ref(R) represented by the substrate structure data 81 is an ideal range where the component E should be mounted, not a range where the component E is actually mounted by the surface mounter. As the substrate structure data 81, CAD data representing the structure of the substrate B, inspection data representing a benchmark for inspecting the suitability of the positional relationship between the component E mounted in the component mounting range Ref(R) in the surface mounting machine and the component mounting range Ref(R), etc. can be used.

[0064] like Figure 5B As shown, the component data 82 shows the structure of the component E for each type of the component E. Specifically, the component data 82 shows the outer shape of the component E such as the length El, width Ew, and height Eh of the rectangular component E, and the presence or absence of the property of the reflected light (pattern light L(S)) (presence or absence of reflection) for various components Ea, Eb, Ec, ...

[0065] The component model acquisition unit 111 creates a component model 83 based on the result that the type of component E to be installed in the component installation range Ref(R) of the substrate B is confirmed by the substrate structure data 81 and the structure of the corresponding type of component E is confirmed by the component data 82. The component model 83 represents the position (x, y) of the component installation range Ref(R) and the shape of the component E installed in the component installation range Ref(R) (the X dimension E_x, Y dimension E_y and Z dimension E_z of the component). In other words, the component model 83 represents the range in which the component E installed in the component installation range Ref(R) protrudes from the substrate B in the Z direction (height direction). Moreover, the component model 83 represents whether the component E installed in the component installation range Ref(R) has the property of reflecting light (pattern light L(S)). The component model 83 is created for each of the multiple component installation ranges Ref(R) set on the substrate B.

[0066] Incidentally, the specific data used to create the component model 83 and the specific method of creating the component model 83 using each data are not limited to the examples here. For example, when the component model 83 is input by the user operating the UI 200, the component model acquisition unit 111 does not need to create the component model 83 based on the substrate structure data 81 and the component data 82, and can simply acquire the component model 83 input by the user.

[0067] Figure 6 It is a diagram schematically showing the content of the poorly irradiated area calculated by the area calculation unit. Figure 6 The component E shown has the property of reflecting the pattern light L(S). Figure 6 , the component E mounted in the component mounting range Ref(R) has a width E_x in the X direction, a length E_y in the Y direction, and a height E_z in the Z direction. In addition, the pattern light L(S) emitted from the projector 32 is projected toward the component E from the projection direction D.

[0068] As a result, in a top view, a shadow area As (poor illumination area) is generated on the downstream side of the projection direction D relative to the component E. The shadow area As is an area where the shadow of the component E is generated in the substrate B because the pattern light L (S) projected from the projector 32 to the component E is blocked by the component E. In addition, in a top view, a secondary reflection area Ar (poor illumination area) is generated on the upstream side of the projection direction D relative to the component E. The secondary reflection area Ar is an area where the light projected from the projector 32 to the component E and reflected by the side of the component E is incident on the substrate B. In the example here, the length of the shadow area As and the secondary reflection area Ar in the Y direction is equivalent to the length E_y of the component E in the Y direction. In addition, the width of the shadow area As and the secondary reflection area Ar in the X direction is equivalent to the width obtained by multiplying the height E_z of the component E by the tangent (tanθs) of the projection elevation angle θs. It should be noted that the secondary reflection area Ar is not generated for the component E that does not reflect the pattern light L (S).

[0069] Such poorly illuminated areas (shadow area As and secondary reflection area Ar) are calculated for each of the plurality of projectors 32. Figure 7 To explain. Figure 7 This is a flowchart showing an example of calculation for calculating the poorly irradiated area. Figure 7 The flowchart is executed by calculation of the main control unit 110.

[0070] In step S101, the count value P (=1, 2, 3, 4) identifying the projector 32 is reset to 0, and in step S102, the count value P is incremented by 1. Furthermore, in step S103, the count value R (=1, 2, 3, ...) identifying the component installation range Ref is reset to 0, and in step S104, the count value R is incremented by 1.

[0071] In step S105, the component model acquisition unit 111 creates a component model 83 of the component E to be mounted in the R-th component mounting range Ref(R). In step S106, for the R-th component mounting range Ref, the area calculation unit 112 confirms the projection direction D of the pattern light L(S) projected by the P-th projector 32. Specifically, the projection direction information 84 indicating the projection direction D of the pattern light L(S) by the projector 32 for each of the plurality of projectors 32 is stored in advance in the storage unit 150, and the area calculation unit 112 confirms the projection direction D by referring to the projection direction information 84.

[0072] In step S107, for the component E represented by the component model 83 created for the R-th component mounting range Ref, the area calculation unit 112 calculates the shadow area As (poor reflection area) generated when the pattern light L(S) is projected from the projection direction D by the P-th projector 32. Furthermore, when the component E represented by the component model 83 created for the R-th component mounting range Ref reflects the pattern light L(S), the area calculation unit 112 calculates the secondary reflection area Ar (poor reflection area) generated when the pattern light L(S) is projected from the projection direction D by the P-th projector 32.

[0073] In step S108, it is confirmed whether the count value R of the component mounting range Ref has reached the number Rmax of the component mounting range Ref set on the substrate B, that is, whether steps S105 to S107 have been executed for all the component mounting ranges Ref set on the substrate B. In the case where there is a component mounting range Ref for which steps S105 to S107 have not been executed (in the case of "No" in step S108), return to step S104. In this way, steps S104 to S107 are repeated until steps S105 to S107 are executed for all the component mounting ranges Ref (in the case of "Yes" in step S108). Thus, the poorly irradiated area (shadow area As·secondary reflection area Ar) generated when the pattern light L(S) is projected from the Pth projector 32 is calculated for the components E of all the component mounting ranges Ref.

[0074] In step S109, it is confirmed whether the count value P of the projector 32 has reached the number Pmax (=4) of the projectors 32, that is, whether steps S103 to S108 have been executed for all the projectors 32. In the case where there are projectors 32 that have not executed steps S103 to S108 (in the case of "No" in step S109), return to step S102. In this way, until steps S103 to S108 are executed for all the projectors 32 (in the case of "Yes" in step S109), steps S102 to S108 are repeatedly executed. Thus, the poor illumination area information 85 shown for all the projectors 32, which will be generated by the components E of the component installation range Ref when the pattern light L (S) is projected from the projector 32, is calculated and saved in the storage unit 150.

[0075] The three-dimensional measurement of the measurement object J is performed using the poor irradiation area information 85 obtained in this way ( Figure 8 ). Figure 8 is a flowchart showing a first example of three-dimensional measurement. Fig. 9 It is shown in Figure 8 Flow chart of obtaining omnidirectional shape data in three-dimensional measurement. Fig.10 It is shown in Figure 8 A flowchart of the first data integration process performed in the three-dimensional measurement of Fig.11 is schematically shown in Fig.10 A diagram of operations performed in the first data integration process. Figure 8 , Fig. 9 and Fig.10 The flowchart is executed under the control of the main control unit 110.

[0076] exist Figure 8 In the three-dimensional measurement of , omnidirectional shape data acquisition is performed in step S201. Fig. 9 As shown, in the acquisition of omnidirectional shape data, recognition of the reference mark marked on the substrate B carried into the three-dimensional measurement device 1 is performed (step S301). Specifically, in a state where the imaging camera 31 faces the reference mark within the imaging field of view V31 from above, the imaging camera 31 captures the reference mark while irradiating the illumination light from the illumination 33 to the reference mark, thereby acquiring a mark image. The mark image is sent from the imaging control unit 130 to the main control unit 110, and the main control unit 110 detects the position of the substrate B held on the conveyor 2 based on the position of the reference mark appearing in the mark image.

[0077] In step S302 , the count value P of the projector 32 is reset to 0, and in step S303 , the count value P is incremented by 1. Furthermore, in step S304 , the count value R of the component mounting range Ref is reset to 0, and in step S305 , the count value R is incremented by 1.

[0078] At the start of step S306, the main control unit 110 uses the drive mechanism 4 to adjust the position of the substrate B so that the R-th component installation range Ref is included in the shooting field of view V31. In particular, the main control unit 110 performs position adjustment of the substrate B to the shooting field of view V31 based on the position of the substrate B detected in step S301. Then, in step S306, the projection control unit 120 and the shooting control unit 130 are controlled by the pattern image acquisition unit 113, and the pattern light L(S) is projected from the P-th projector 32 to the component E of the R-th component installation range Ref, while the pattern light L(S) is photographed by the shooting camera 31. As a result, as described above, four types of pattern images I(S) (S=1, 2, 3, 4) corresponding to different phases are acquired and stored in the storage unit 150.

[0079] In step S307, the shape calculation unit 114 calculates the unidirectional shape data 86 based on the four pattern images I(S) by the phase shift method. The unidirectional shape data 86 is a shape correlation value Q associated with the three-dimensional shape of the component E mounted in the component mounting range Ref for each pixel PX( Fig.11 ) is shown. Here, the pixel PX corresponds to the pixel of the individual imaging element 311, for example. Since the imaging camera 31 is photographing while facing the substrate B from the Z direction, the multiple pixels of the individual imaging element 311 correspond to different positions (X coordinate, Y coordinate) in the substrate B. The shape-related value Q is composed of the measurement value Qm calculated as the height (Z coordinate) by the phase shift method based on the four pattern images I (S) and the reliability Qr of the measurement value Qm. In particular, in the example here, the shape-related value Q is given by the product of the measurement value Qm and the reliability Qr.

[0080] By the way, in the phase shift method, the reliability Qr at each pixel PX can be calculated based on the difference in brightness represented by the pixels PX of the four pattern images I(S) (S = 1, 2, 3, 4). Specifically, if the brightness values ​​when the four pattern images I(S) are captured while shifting the phase by π / 2 each time are d0, d1, d2, and d3, the phase shift angle α is calculated by the following formula:

[0081] α=atan[(d2-d0) / (d3-d1)]

[0082] To calculate, the reliability Qr is calculated by the following formula

[0083] Qr=[(d2-d0)2 +(d3-d1) 2 ] 1 / 2

[0084] To figure out.

[0085] It should be noted that the pixel PX used to calculate the shape-related value Q does not necessarily correspond to the pixel of the individual imaging element 311. For example, when image processing is performed to convert the resolution of an image captured by the individual imaging element 311, the shape-related value Q may be calculated using the pixel PX corresponding to the converted resolution.

[0086] In step S308, it is confirmed whether the count value R of the component mounting range Ref has reached the number Rmax of the component mounting ranges Ref set on the substrate B, that is, whether the acquisition of the pattern image I(S) (step S306) and the calculation of the unidirectional shape data 86 (step S307) have been executed for all the component mounting ranges Ref set on the substrate B. If there is a component mounting range Ref for which steps S306 and S307 have not been executed (in the case of "No" in step S308), the process returns to step S305. In this way, steps S306 and S307 are repeated until the acquisition of the pattern image I(S) (step S306) and the calculation of the unidirectional shape data 86 (step S307) have been executed for all the component mounting ranges Ref (in the case of "Yes" in step S308). Thus, the unidirectional shape data 86 when the pattern light L(S) is projected from the P-th projector 32 is calculated for the components E of all the component mounting ranges Ref.

[0087] In step S309, it is confirmed whether the count value P of the projector 32 has reached the number Pmax (=4) of the projectors 32, that is, whether steps S304 to S308 have been executed for all the projectors 32. If there is a projector 32 that has not executed steps S304 to S308 (if "No" in step S309), it returns to step S303. In this way, steps S304 to S308 are repeated until all the projectors 32 have executed steps S304 to S308 (if "Yes" in step S309). Thus, the unidirectional shape data 86 calculated for the component E of each component installation range Ref when the pattern light L (S) is projected from the projector 32 is obtained for all the projectors 32 and stored in the storage unit 150.

[0088] when Fig. 9 Acquisition of omnidirectional shape data from three-dimensional measurement ( Figure 8 After step S201 is completed, the first data integration process is performed (step S202). Fig.10In the first data integration process shown, the count value R (=1, 2, 3, ...) for identifying the component mounting range Ref is reset to 0 (step S401), and the count value R is incremented by 1 (step S402). Thus, for the component E mounted in the R-th component mounting range Ref, four unidirectional shape data 86 acquired by projecting the projection pattern T (S) from the four projectors 32 are specified. In other words, for the component E in the R-th component mounting range Ref, four unidirectional shape data 86 corresponding to the four projectors 32 are specified.

[0089] Next, the count value N (N=1, 2, 3, ...) of the identification pixel PX is reset to 0 (step S403), and the count value N is incremented by 1 (step S404). Furthermore, in step S405, the count value P (=1, 2, 3, 4) of the identification projector 32 is reset to 0, and in step S406, the count value P is incremented by 1. Thus, the Nth pixel PX of the unidirectional shape data 86 corresponding to the Pth projector 32 is specified.

[0090] Then, the shape calculation unit 114 determines whether the N-th pixel PX designated in this way belongs to the shadow area As or the secondary reflection area Ar based on the poor illumination area information 85 of the storage unit 150 (step S407), and determines the weight coefficient W(P) to be multiplied by the shape association value Q (=measured value Qm×reliability Qr) of the N-th pixel PX (steps S408, S409). That is, if it is determined that the N-th pixel PX belongs to the shadow area As or the secondary reflection area Ar based on the poor illumination area information 85 ("Yes" in step S407), the weight coefficient W(P) with respect to the shape association value Q of the N-th pixel PX is determined to be "0", and the shape association value Q is excluded (step S408). On the other hand, if it is determined by the irradiation bad area information 85 that the Nth pixel PX does not belong to any of the shadow area As and the secondary reflection area Ar ("No" in step S407), the weight coefficient W(P) relative to the shape association value Q of the Nth pixel PX is determined to be 1 (step S410).

[0091] The calculation of steps S407 to S409 for the shape association value Q of the Nth pixel PX is repeated while adding 1 to the count value P of the projector 32 (step S406) until the count value P reaches Pmax (=4) ("Yes" in step S410). Thus, the weight coefficient W(P) for the shape association value Q of the Nth pixel PX corresponding to P=1, 2, 3, 4 respectively is determined. Fig.11In the example, it is determined that the Nth pixel PX corresponding to the projector 32 with P=2 belongs to the shadow area As or the secondary reflection area Ar, and the weight coefficient W(2) of the shape association value Q of the pixel PX is determined to be "0". On the other hand, it is determined that the Nth pixel PX corresponding to the projectors 32 with P=1, 3, and 4 does not belong to any of the shadow area As and the secondary reflection area Ar, and the weight coefficients W(1), W(3), and W(4) of the shape association value Q of these pixels PX are determined to be "1".

[0092] In step S411, the shape calculation unit 114 calculates the weighted average of the shape-related values ​​Q of the N-th pixel PX corresponding to each of the projectors 32 with P=1, 2, 3, and 4 using the weight coefficient W(P) determined in steps S407 to S409, thereby calculating the integrated value H that integrates these shape-related values ​​Q. The formula for calculating the weighted average of the integrated value H is as follows: Fig.11 The result is shown in the "Transformation" column. Fig.11 In the example of , the integrated value H of the Nth pixel PX becomes 159.

[0093] The calculations of steps S405 to S411 are repeated until the count value N reaches the number Nmax of pixels PX constituting the unidirectional shape data 86 ("Yes" in step S412), while the count value N is incremented by 1 (step S404). In this way, the integrated shape data 87 showing the integrated value H integrating the four shape association values ​​Q corresponding to the different projectors 32 for each pixel PX is calculated and stored in the storage unit 150. The integrated shape data 87 is equivalent to the data obtained for the component E mounted in the R-th component mounting range Ref, which integrates the four unidirectional shape data 86 corresponding to the four projectors 32, and represents the three-dimensional shape of the E.

[0094] The calculations of steps S403 to S412 are repeated until the count value R reaches the number Rmax of the component mounting range Ref ("Yes" in step S413), while the count value R is incremented by 1 (step S402). In this way, the integrated shape data 87 is calculated for the components E in all the component mounting ranges Ref.

[0095] In the above-described embodiment, a component model 83 (reference model) indicating a component mounting range Ref of a component E mounted on a substrate B and an outer shape of the component E mounted on the component mounting range Ref is obtained (step S105). Then, based on the projection direction information 84 (irradiation direction information) indicating a projection direction D of the pattern light L (S) projected on the component E in the three-dimensional measurement device 1 and the component model 83, a shadow area As and a secondary reflection area Ar (irradiation poor area) are calculated (step S107). In this way, when the three-dimensional shape of the measurement object J is measured based on the pattern image I (S) obtained by photographing the pattern light L (S) irradiated on the measurement object J, the shadow area As and the secondary reflection area Ar where the illumination poor of the pattern light L occurs can be obtained.

[0096] In addition, the component model acquisition unit 111 (reference model acquisition unit) creates the component model 83 based on at least one of the inspection data representing the reference for inspecting whether the positional relationship between the component E mounted in the component mounting range Ref and the component mounting range Ref is appropriate or not and the CAD data representing the structure of the substrate (step S105). In this configuration, the component model 83 can be created by utilizing existing data such as the inspection data or CAD data of the substrate B, and the shadow area As and the secondary reflection area Ar can be calculated based on the component model 83.

[0097] In addition, a plurality of projectors 32 (pattern irradiation units) are provided for irradiating pattern light L(S) to component E from mutually different projection directions D, and projection direction information 84 shows projection directions D of irradiating light from projector 32 to component E for each of the plurality of projectors 32. In this configuration, if the projector 32 for projecting pattern light L(S) is changed between the plurality of projectors 32, the shadow area As and the secondary reflection area Ar will also change. In response to this, the area calculation unit 112 calculates the shadow area As and the secondary reflection area Ar for each of the plurality of projectors 32 (steps S102 and S107). Thus, the shadow area As and the secondary reflection area Ar generated when light is projected from the plurality of projectors 32 to component E can be obtained.

[0098] In addition, the shape calculation unit 114 performs an operation (step S307) to calculate the value related to the three-dimensional shape, that is, the shape correlation value Q for each pixel PX, based on the pattern image I(S) obtained by photographing the pattern light L(S) irradiated from the projector 32 to the substrate B using the photographing camera 31 (photographing unit). This operation (step S307) is performed on each of the plurality of projectors 32 (step S303), and a plurality of unidirectional shape data 86 corresponding to different projectors 32 are calculated. Furthermore, the shape calculation unit 114 performs a first integrated operation processing (step S307) of calculating the three-dimensional shape of the measurement object J by integrating the plurality of unidirectional shape data 86 by calculating the weighted average of the shape correlation values ​​Q respectively represented by the plurality of unidirectional shape data 86 for each pixel PX. Fig.10 In the first integrated operation process, the three-dimensional shape of the measured object J is calculated by multiplying the shape association value Q of the pixel PX included in the shadow area As or the secondary reflection area Ar among the shape association values ​​Q represented by the unidirectional shape data 86 by a weighted average of the weight coefficient W(P) less than 1 and greater than 0 (step S411).

[0099] In this structure, based on the pattern image I(S) obtained by photographing the pattern light L(S) irradiated from the projector 32 to the substrate B using the photographing camera 31, the unidirectional shape data 86 showing the shape correlation value Q related to the three-dimensional shape for each pixel PX is calculated (step S307). That is, the unidirectional shape data 86 is data related to the three-dimensional shape calculated based on the pattern image I(S) of the pattern light L(S) irradiated from one projector 32 to the component E. The operation (step S307) for calculating the unidirectional shape data 86 is performed for each of the plurality of projectors 32 (step S303). Thus, the unidirectional shape data 86 is obtained when the pattern light L(S) is irradiated from each of the plurality of projectors 32 to the component E. The plurality of unidirectional shape data 86 obtained in this way are based on the pattern image I(S) obtained while irradiating the component E with the pattern light L(S) from each of the different projection directions D. Therefore, a pixel PX that corresponds to the shadow area As or the secondary reflection area Ar in one unidirectional shape data 86 may correspond to an area that is well irradiated with light in another unidirectional shape data 86. Thus, the three-dimensional shape of the measurement object J can be calculated by integrating the plurality of unidirectional shape data 86 by calculating the average of the shape correlation values ​​Q respectively represented by the plurality of unidirectional shape data 86 for each pixel PX ( Fig.10 ). Moreover, in Fig.10In the first integrated calculation process, the three-dimensional shape of the measurement object J is calculated by multiplying the shape association values ​​Q of the pixels PX included in the shadow area As or the secondary reflection area Ar among the shape association values ​​Q represented by the unidirectional shape data 86 by the weight coefficient W(P) less than 1 and greater than 0 (steps S407 to S410). In this way, the three-dimensional shape of the measurement object J can be appropriately calculated while suppressing the influence of the shadow area As or the secondary reflection area Ar.

[0100] In particular, Fig.10 In the first integrated operation process, the three-dimensional shape of the measurement object J is calculated by multiplying the shape association value Q of the pixel PX included in the shadow area As or the secondary reflection area Ar by the weight coefficient W(P) of 0 (steps S407 to S410). In this way, the operation of multiplying the weight coefficient W(P) by 0 is an operation of excluding the shadow area As and the secondary reflection area Ar. In this way, the three-dimensional shape of the measurement object J can be appropriately calculated while excluding the influence of the shadow area As and the secondary reflection area Ar.

[0101] Fig.12 is shown for correction by Figure 7 This is a flowchart of an example of calculation of the calculated poor irradiation area. Fig.12 Flowchart and Fig. 9 The acquisition of the omnidirectional shape data is performed in parallel by the operation of the main control unit 110. In step S501, the count value P of the projector 32 is reset to 0, and in step S502, the count value P is increased by 1. In addition, in step S503, the count value R of the component installation range Ref is reset to 0, and in step S504, the count value R is increased by 1. Thus, the shadow area As and the secondary reflection area Ar calculated for the component E of the Rth component installation range Ref are specified corresponding to the Pth projector 32.

[0102] In step S505, based on Fig. 9 The shadow area As and the secondary reflection area Ar specified in steps S502 and S504 are corrected based on the position of the substrate B detected in step S301 obtained from the omnidirectional shape data. That is, it is assumed that the position of the substrate B detected in step S301 deviates by a position deviation amount Δa from the ideal position of the substrate B used as a premise in the calculation of these shadow areas As and secondary reflection areas Ar. In such a case, by correcting the shadow area As and the secondary reflection area Ar based on the position deviation amount Δa of the substrate B, the shadow area As and the secondary reflection area Ar can be accurately calculated based on the actual position of the substrate B transported to the three-dimensional measurement device 1.

[0103] In step S506 , the shadow area As and the secondary reflection area Ar specified in steps S502 and S504 are corrected based on the position of the component E actually mounted in the R-th component mounting range Ref. The details are as follows.

[0104] In use Fig.12 In the control of poorly irradiated area correction, Fig. 9 In step S306 of acquiring the omnidirectional shape data of the component E, in addition to the pattern image I(S), a two-dimensional image of the component E is acquired. Specifically, the two-dimensional image of the component E is acquired by irradiating the component E in the imaging field of view V31 with illumination light from the illumination 33 and photographing the component E from above with the imaging camera 31. In step S306, based on the two-dimensional image of the component E, the component position indicating the positional relationship between the component E actually mounted in the component mounting range Ref of the substrate B transported to the three-dimensional measuring device 1 and the component mounting range Ref is calculated and stored in the storage unit 150.

[0105] In contrast, it is assumed that the positional relationship between the component mounting range Ref represented by the component position calculated in step S306 and the component E deviates by a positional deviation amount Δb from the ideal positional relationship used as a premise in the calculation of the shadow area As and the secondary reflection area Ar. In such a case, by correcting the shadow area As and the secondary reflection area Ar based on the positional deviation amount Δb of the component E relative to the component mounting range Ref, the shadow area As and the secondary reflection area Ar can be accurately calculated based on the actual position of the component E mounted in the component mounting range Ref of the substrate B transported to the three-dimensional measurement apparatus 1.

[0106] In step S507, it is confirmed whether the count value R of the component mounting range Ref has reached the number Rmax of the component mounting ranges Ref set on the substrate B, that is, whether the corrections of steps S505 to S506 have been performed on all the component mounting ranges Ref set on the substrate B. In the case where there is a component mounting range Ref for which the corrections of steps S505 to S506 have not been performed (in the case of "No" in step S507), return to step S504. In this way, steps S505 to S506 are repeated until the corrections of steps S505 to S506 have been performed on all the component mounting ranges Ref (in the case of "Yes" in step S507). In this way, the poorly irradiated areas (shadow areas As and secondary reflection areas Ar) relative to each component mounting range Ref generated when the pattern light L(S) is projected from the P-th projector 32 are corrected.

[0107] In step S508, it is confirmed whether the count value P of the projector 32 has reached the number Pmax (=4) of the projectors 32, that is, whether steps S503 to S507 have been executed for all the projectors 32. In the case where there are projectors 32 that have not executed steps S503 to S507 (in the case of "No" in step S508), return to step S502. In this way, steps S503 to S507 are repeated until all the projectors 32 have executed steps S503 to S507 (in the case of "Yes" in step S508). In this way, the poorly irradiated area (shadow area As·secondary reflection area Ar) caused by the components E of each component installation range Ref when the pattern light L (S) is projected from each projector 32 is corrected.

[0108] Then, in Fig.10 In the first data integration process, steps S407 to S411 are performed based on the corrected shadow area As and secondary reflection area Ar. Thus, the integrated shape data 87 can be calculated based on the shadow area As and secondary reflection area Ar accurately set for the measurement object J (substrate B and component E) actually transported to the three-dimensional measurement device 1.

[0109] exist Fig.12 In the example of FIG. 5 , the area calculation unit 112 further calculates the shadow area As and the secondary reflection area Ar based on the result of recognizing the position of the substrate B carried into the three-dimensional measurement device 1 and supported by the conveyor 2 (object support unit) in step S301 (step S505). In this configuration, the shadow area As and the secondary reflection area Ar can be accurately calculated based on the actual position of the substrate B carried into the three-dimensional measurement device 1.

[0110] In particular, the position of the substrate B supported by the conveyor 2 is identified based on the result of photographing the reference mark marked on the substrate B by the imaging camera 31 (step S301). In this configuration, the shadow area As and the secondary reflection area Ar can be accurately calculated based on the position of the substrate B carried into the three-dimensional measurement device 1.

[0111] In addition, the area calculation unit 112 further calculates the shadow area As and the secondary reflection area Ar based on the result of detecting the position of the component E installed in the component installation range Ref in step S306 (step S506). In this structure, the shadow area As and the secondary reflection area Ar can be accurately calculated based on the actual position of the component E installed in the component installation range Ref.

[0112] Furthermore, the position of the component E mounted in the component mounting range Ref is detected based on the two-dimensional image of the component E (step S306). In this configuration, the shadow area As and the secondary reflection area Ar can be accurately calculated based on the actual position of the component E mounted in the component mounting range Ref.

[0113] Fig.13 is a flowchart showing a second example of three-dimensional measurement. Fig.14 It is shown in Fig.13 A flowchart of the second data integration process performed in the three-dimensional measurement of Fig.15 is schematically shown in Fig.13 Here, a scenario is assumed in which a plurality of substrates B are sequentially carried into the three-dimensional measurement apparatus 1 and three-dimensional measurement is performed on each substrate B.

[0114] like Fig.13 As shown, in the second example of three-dimensional measurement, the omnidirectional shape data acquisition (step S601) and the first data integration process (step S602) are also performed in the same manner as in the first example. Furthermore, in the second example, the second data integration process (step S603) is performed. Fig.14 It should be noted that the execution order of the first data integration process and the second data integration process is not limited to Fig.13 For example, you can also use Fig.13 The opposite is true.

[0115] like Fig.14 As shown in FIG. 1 , the second data integration process is different from the first data integration process in that the calculation of the simple average (average with all weight coefficients being 1) is performed in step S414 instead of steps S405 to S411 of the first data integration process. That is, in step S414 of the second data integration process, the simple average of the shape correlation values ​​Q of the N-th pixel PX obtained for each of the four projectors 32 is calculated. In this way, the integrated value H is calculated by the simple average instead of the weighted average, and the integrated shape data 87 is obtained.

[0116] After completing the three-dimensional measurement of one substrate B (steps S601 to S603), determine whether steps S601 to S603 have been executed for a specified number of substrates B (more than 1) (step S604). If they have not been executed (if the answer is "No" in step S604), determine whether the measurement has been completed in step S605. If the measurement has been completed (if the answer is "Yes" in step S605), Fig.13 If the three-dimensional measurement is completed, on the other hand, if the measurement is not completed (in the case of "No" in step S605), return to step S601.

[0117] If it is determined in step S604 that steps S601 to S603 have been executed for a specified number of substrates B (yes), the difference between the integrated shape data 87 (three-dimensional shape) obtained in the first data integration process of step S602 and the integrated shape data 87 (three-dimensional shape) obtained in the second data integration process of step S603 is calculated. For example, for the same component installation range Ref of the same substrate B, the average value (i.e., mean square error) of the square of the difference between the integrated shape data 87 (three-dimensional shape) obtained in the first data integration process and the integrated shape data 87 (three-dimensional shape) obtained in the second data integration process is calculated. It should be noted that in the case where one substrate B has multiple component installation ranges Ref, the mean square error can be calculated for each component installation range Ref, or the mean square error can be calculated for a representative component installation range Ref. Moreover, the mean square error is calculated for each of the specified number of substrates B. The average value, central value, or maximum value of each mean square error calculated in this way is calculated as a difference. It should be noted that the specific calculation method of the difference is not limited to the example shown here, and any calculation method that can evaluate the difference between two data can be adopted.

[0118] In step S607, the necessity of the first data integration process is determined based on the difference. Specifically, if the difference is greater than a predetermined threshold, it is determined that the first data integration process is necessary (yes), and if the difference is less than the threshold, it is determined that the first data integration process is not necessary. Fig.15 As shown in the waveforms (three-dimensional shapes) of the "Irradiation-affected" column, when there is an effect of poor irradiation, the peak noise generated by the three-dimensional shape obtained in the second data integration process does not appear in the three-dimensional shape obtained in the first data integration process. This means that the first data integration process is necessary to remove the effect of poor irradiation. On the other hand, Fig.15 As shown in the waveforms (three-dimensional shapes) of the "No adverse effect of irradiation" column, when there is no adverse effect of irradiation, there is no big difference between the three-dimensional shape obtained in the first data integration process and the three-dimensional shape obtained in the second data integration process. This means that the first data integration process is not required.

[0119] If it is determined that the first data integration processing is required ("Yes" in step S607), every time a substrate B is transported to the three-dimensional measuring device 1, omnidirectional shape data acquisition (step S608), first data integration processing (step S609) and determination of the end of measurement (step S610) are executed. In this way, the integrated shape data 87 is calculated by the first data integration processing instead of the second data integration processing (step S609). On the other hand, if it is determined that the first data integration processing is not required ("No" in step S607), every time a substrate B is transported to the three-dimensional measuring device 1, omnidirectional shape data acquisition (step S611), second data integration processing (step S612) and determination of the end of measurement (step S613) are executed. In this way, the integrated shape data 87 is calculated by the second data integration processing instead of the first data integration processing (step S612).

[0120] exist Fig.13 In the example of , the shape calculation unit 114 performs both the first data integration process (step S602) and the second data integration process (step S603) on the same measurement object J. In the second data integration process, the shape calculation unit 114 calculates the average (simple average) of the shape correlation value Q represented by the plurality of unidirectional shape data 86 for each pixel PX and integrates the plurality of unidirectional shape data 86 to calculate the three-dimensional shape (integrated shape data 87) of the measurement object J. Furthermore, the shape calculation unit 114 performs the evaluation process (step S606) of evaluating the difference between the integrated shape data 87 (three-dimensional shape) of the measurement object J calculated in the first data integration process (step S602) and the second data integration process (step S603) on the predetermined number of measurement objects J that are the acquisition targets of the pattern image I (S) in the three-dimensional measurement device 1. Based on the evaluation process, a necessity determination is performed to determine whether the first data integration process is necessary (step S607). Furthermore, if it is determined that the first data integration process is not necessary in the necessity determination of step S607, the shape calculation unit 114 does not perform the first data integration process, and calculates the integrated shape data 87 (three-dimensional shape) of the measurement object J through the second data integration process (steps S611 to S613). In this structure, when the shadow area As and the secondary reflection area Ar do not become a problem, the integrated shape data 87 of the measurement object J can be accurately calculated through the second data integration process that is simpler than the first data integration process.

[0121] It should be noted that in this example, the "predetermined number of sheets" determined in step S604 can also be configured to be set by the user. In this case, the user performs an operation to set the predetermined number of sheets on UI200, and UI200 receives the predetermined number of sheets input by the user and displays the sheet in the form of a blank. Fig.13 In this configuration, the user can appropriately adjust the period (steps S601 to S604) for executing both the first data integration process (step S602) and the second data integration process (step S603).

[0122] Thus, in the above-mentioned embodiment, the three-dimensional measurement device 1 is equivalent to an example of the “three-dimensional measurement device” of the present invention, the control device 100 is equivalent to an example of the “three-dimensional measurement computing device” of the present invention, the component model acquisition unit 111 is equivalent to an example of the “reference model acquisition unit” of the present invention, the area calculation unit 112 is equivalent to an example of the “area calculation unit” of the present invention, the shape calculation unit 114 is equivalent to an example of the “shape calculation unit” of the present invention, the conveyor 2 is equivalent to an example of the “object support unit” of the present invention, the imaging camera 31 is equivalent to an example of the “imaging unit” of the present invention, the projector 32 is equivalent to an example of the “projector” of the present invention, the plurality of projectors 32 are equivalent to an example of the “pattern irradiation unit” of the present invention, the component model 83 is equivalent to an example of the “reference model” of the present invention, the projection direction information 84 is equivalent to an example of the “irradiation direction information” of the present invention, the unidirectional shape data 86 is equivalent to an example of the “unidirectional shape data” of the present invention, the server computer 91 is equivalent to an example of the “recording medium” of the present invention, and the three-dimensional measurement program 92 is equivalent to the “three-dimensional measurement program” of the present invention. an example of a “program”, UI200 is equivalent to an example of a “setting operation unit” of the present invention, the secondary reflection area Ar is equivalent to an example of a “secondary reflection area” and a “poor irradiation area” of the present invention, the shadow area As is equivalent to an example of a “shadow area” and a “poor irradiation area” of the present invention, the substrate B is equivalent to an example of a “substrate” of the present invention, the component E is equivalent to an example of a “component” of the present invention, the pattern image I(S) is equivalent to an example of a “pattern image” of the present invention, the measurement object J is equivalent to an example of a “measurement object” of the present invention, the pattern light L(S) is equivalent to an example of “light” of the present invention, the pixel PX is equivalent to an example of a “pixel” of the present invention, the shape correlation value Q is equivalent to an example of a “shape correlation value” of the present invention, the measurement value Qm is equivalent to an example of a “calculated value” of the present invention, the reliability Qr is equivalent to an example of a “reliability” of the present invention, the component installation range Ref is equivalent to an example of a “component installation range” of the present invention, step S606 is equivalent to an example of an “evaluation process” of the present invention, and step S607 is equivalent to an example of a “necessity determination” of the present invention. Fig.10 The first data integration processing corresponds to an example of the “first integrated calculation processing” of the present invention. Fig.14 The second data integration processing corresponds to an example of the "second integrated calculation processing" of the present invention.

[0123] It should be noted that the present invention is not limited to the above-mentioned embodiments, and various changes can be made to the above-mentioned contents without departing from the scope of the main purpose. For example, it is not necessary to calculate both the secondary reflection area Ar and the shadow area As as the poorly irradiated area. For example, when the influence of one of the secondary reflection area Ar and the shadow area As is large and the influence of the other is small, Figure 7 In step S107, only the one side may be calculated as the poorly irradiated area.

[0124] In addition, Fig.12 In the correction of the poorly irradiated area, only one of the correction based on the position of the substrate B (step S505) and the correction based on the position of the component E (step S506) may be executed without executing the other.

[0125] In addition, the specific content of the shape-related value Q may be changed appropriately. For example, the reliability Qr may not be calculated, and the measured value Qm may be calculated as the shape-related value Q as it is.

[0126] In step S408 , the weight coefficient W(P) multiplied corresponding to the poorly irradiated area does not need to be 0, and may be a value greater than or equal to 0 and less than 1.

[0127] In addition, the functional units 111, 112, 113, and 114 configured in the main control unit 110 by executing the three-dimensional measurement program 92 do not necessarily need to be configured in the control device 100 provided in the three-dimensional measurement device 1. Therefore, the functional units 111, 112, 113, and 114 may be configured in a processor provided in a computer provided independently of the three-dimensional measurement device 1.

[0128] In addition, Figure 1 In the second data integration process, in step S414, instead of calculating the average value (representative value) based on the simple average, the central value (representative value) may be calculated.

[0129] Description of Reference Numerals

[0130] 1…Three-dimensional measuring device

[0131] 100…Control device (calculation device for three-dimensional measurement)

[0132] 111 ...component model acquisition unit (reference model acquisition unit)

[0133] 112 ...area calculation unit (area calculation unit)

[0134] 114…Shape calculation unit

[0135] 2…Conveyor (object support unit)

[0136] 31…Photography camera (photography unit)

[0137] 32…Projector (pattern irradiation unit)

[0138] 83…Component model (baseline model)

[0139] 84…Projection direction information (irradiation direction information)

[0140] 86…One-way shape data

[0141] 91…Server computer (recording medium)

[0142] 92…Three-dimensional measurement program

[0143] 200…UI (setting operation section)

[0144] Ar…Secondary reflection area (poor irradiation area)

[0145] As…Shadow area (poorly illuminated area)

[0146] B…Substrate

[0147] E…Parts

[0148] I(S)…Pattern Image

[0149] J…Measurement object

[0150] L(S)…Pattern light (light)

[0151] PX…Pixel

[0152] Q…Shape-related value

[0153] Qm…Measured value (calculated value)

[0154] Qr…Reliability

[0155] Ref…Component installation range.

Claims

1. A three-dimensional measurement computing device, which performs a computing operation for measuring the three-dimensional shape of the measurement object based on a pattern image obtained by a three-dimensional measurement device including an object support portion that supports the measurement object having a substrate and a component mounted on the substrate, a pattern irradiation portion that irradiates the measurement object supported by the object support portion with light of a predetermined pattern, and a photographing portion that obtains a two-dimensional pattern image by photographing the light irradiated from the pattern irradiation portion to the measurement object, wherein: have: a reference model acquisition unit that acquires a reference model representing a component mounting range in the substrate where the component is to be mounted and an outer shape of the component to be mounted in the component mounting range; and The area calculation unit calculates a poorly irradiated area of ​​at least one of a shadow area and a secondary reflection area based on irradiation direction information indicating a direction in which light is irradiated to the component in the three-dimensional measuring device and the reference model. The shadow area is an area where a shadow of the component is generated in the substrate because the light irradiated from the imaging unit to the component is blocked by the component, and the secondary reflection area is an area where light irradiated from the imaging unit and reflected by the component is incident on the substrate.

2. The three-dimensional measurement computing device according to claim 1, The reference model acquisition unit creates the reference model based on at least one of inspection data and CAD (Computer-Aided Design) data, wherein the inspection data is data representing a reference for inspecting the suitability of a positional relationship between the component installed in the component installation range and the component installation range, and the CAD data is data representing the structure of the substrate.

3. The three-dimensional measurement computing device according to claim 1 or 2, The region calculation unit further calculates the poorly irradiated region based on a result of recognizing the position of the substrate carried into the three-dimensional measurement device and supported by the object support unit.

4. The three-dimensional measurement computing device according to claim 3, The position of the substrate supported by the object supporting portion is recognized based on a result of imaging the reference mark marked on the substrate by the imaging portion.

5. The three-dimensional measurement computing device according to any one of claims 1 to 4, The region calculation unit further calculates the poorly irradiated region based on a result of detecting a position of the component mounted in the component mounting range.

6. The three-dimensional measurement computing device according to claim 5, The position of the component mounted in the component mounting range is detected based on a result of imaging the component.

7. The three-dimensional measurement computing device according to any one of claims 1 to 6, The pattern irradiation unit includes a plurality of projectors for irradiating light toward the component from different directions. The irradiation direction information indicates the direction in which the light will be irradiated from the projector to the component, respectively, with respect to the plurality of projectors. The area calculation unit calculates the poorly irradiated area for each of the plurality of projectors.

8. The three-dimensional measurement computing device according to claim 7, The device further comprises a shape calculating unit for calculating a plurality of unidirectional shape data by executing the following calculation on each of the plurality of projectors: the calculation is to calculate the unidirectional shape data showing a value related to a three-dimensional shape, that is, a shape correlation value, for each pixel based on the pattern image obtained by photographing light irradiated from the projector to the substrate using the photographing unit; The shape calculation unit performs a first integrated calculation process for calculating the three-dimensional shape of the measurement object by integrating the plurality of unidirectional shape data by calculating the average of the shape correlation values ​​respectively represented by the plurality of unidirectional shape data for each pixel. In the first integrated operation processing, the three-dimensional shape of the measured object is calculated by multiplying the shape association values ​​of the pixels included in the poorly irradiated area among the shape association values ​​represented by the unidirectional shape data by a weighted average of a weight coefficient less than 1 and greater than 0.

9. The three-dimensional measurement computing device according to claim 8, In the first integrated calculation process, the three-dimensional shape of the measurement object is calculated by weighted averaging the shape-related values ​​of the pixels included in the poorly irradiated area by a weighting coefficient of 0.

10. The three-dimensional measurement computing device according to claim 8 or 9, The shape-related value is given as a product of a calculated value of the three-dimensional shape calculated based on the pattern image and a reliability of the calculated value.

11. The three-dimensional measurement computing device according to claim 8 or 9, The shape-related value is a calculated value of a three-dimensional shape calculated based on the pattern image.

12. The three-dimensional measurement computing device according to any one of claims 8 to 11, The shape calculation unit performs both the second integrated operation processing and the first integrated operation processing on the same measurement object, and performs the evaluation processing on a predetermined number of measurement objects that have become acquisition objects of the pattern image in the three-dimensional measurement device, thereby performing a necessity determination of determining whether the first integrated operation processing is necessary or not, the second integrated operation processing is a process of calculating the three-dimensional shape of the measurement object by integrating the plurality of unidirectional shape data by calculating a representative value of the shape association value represented by the plurality of unidirectional shape data for each pixel without performing weighting corresponding to the poorly irradiated area, and the evaluation processing is a process of evaluating the difference between the three-dimensional shapes of the measurement object calculated in the first integrated operation processing and the second integrated operation processing, respectively. When it is determined in the necessity determination that the first integrated calculation process is unnecessary, the shape calculation unit calculates the three-dimensional shape of the measurement object through the second integrated calculation process without executing the first integrated calculation process.

13. The three-dimensional measurement computing device according to claim 12, The device further includes a setting operation unit for accepting an operation for setting the predetermined number. 14 . A three-dimensional measurement program that causes a computer to function as the three-dimensional measurement arithmetic device according to claim 1 . 15 . A recording medium recording the three-dimensional measurement program according to claim 14 in a computer-readable form.

16. A three-dimensional measuring device comprising: An object support portion that supports a measurement object having a substrate and a component mounted on the substrate; a pattern irradiation unit for irradiating the measurement object supported by the object support unit with light of a predetermined pattern; an imaging unit that acquires a two-dimensional pattern image by imaging the light irradiated from the pattern irradiation unit to the measurement object; and The three-dimensional measurement arithmetic device according to any one of claims 1 to 13 executes a calculation for measuring the three-dimensional shape of the measurement object based on the pattern image.

17. A three-dimensional measurement operation method, performing an operation for measuring the three-dimensional shape of the measurement object based on a pattern image obtained by a three-dimensional measuring device including an object support portion that supports the measurement object having a substrate and a component mounted on the substrate, a pattern irradiation portion that irradiates the measurement object supported by the object support portion with light of a predetermined pattern, and a photographing portion that obtains a two-dimensional pattern image by photographing the light irradiated from the pattern irradiation portion to the measurement object, wherein: include: A step of obtaining a reference model representing a component mounting range in the substrate where the component is to be mounted and an outer shape of the component to be mounted in the component mounting range; and A process of calculating a poorly irradiated area of ​​at least one of a shadow area and a secondary reflection area based on irradiation direction information indicating the direction in which light is irradiated to the component in the three-dimensional measuring device and the reference model, wherein the shadow area is an area where a shadow of the component is generated in the substrate because light irradiated from the imaging unit to the component is blocked by the component, and the secondary reflection area is an area where light irradiated from the imaging unit and reflected by the component is incident on the substrate.