Three-dimensional measurement method and system based on digital image correlation of single camera-projector system
By combining a single camera-projector system with the DIC method, non-contact, high-precision three-dimensional shape and displacement measurement is achieved, which solves the problems of high cost and the impact of spraying in traditional methods, and provides an efficient three-dimensional measurement solution.
Patent Information
- Application Number
- CN202410598932.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-15
Smart Images

Figure CN118189857B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of optical measurement, and in particular relates to a three-dimensional measurement method and system based on digital image correlation of a single camera-projector system. Background Art
[0002] Digital image correlation (DIC) can achieve real-time deformation and displacement measurement. This measurement method is two-dimensional and cannot measure the out-of-plane deformation and displacement of the sample. Therefore, 3D-DIC came into being. 3D-DIC has the advantages of high speed and high precision, and has been widely used in fields such as material mechanics, structural engineering, and biomedicine.
[0003] Conventional 3D-DIC uses a pair of synchronized high-speed cameras to capture the object under test painted with speckle patterns before and after deformation. Pixel correspondence is established through stereo matching and temporal matching. Stereo pixel matching is used for 3D reconstruction at each moment, while temporal pixel matching is used for 3D deformation and displacement measurement. However, the use of two high-speed cameras increases system cost, and the use of spray-on speckle makes it a contact measurement, which limits the subsequent use of the object under test due to its irreversibility. Therefore, the development of a monocular DIC method is crucial to reduce hardware costs and eliminate the necessity for precise camera synchronization.
[0004] To overcome these shortcomings, single-camera-based 3D-DIC methods have been developed. The first type uses additional optical devices, such as a four-mirror adapter, a double prism, or a transmission diffraction grating, to capture images of the object from different angles on different parts of the camera. However, this method has a limitation in that each view can only be captured on half of the sensor plane, resulting in at least a 50% reduction in spatial resolution. The second method uses a color camera consisting of three independent red, green, and blue chips on a 3CCD sensor to capture images from different perspectives. However, color cameras have unavoidable image noise and reduce spatial resolution.
[0005] When measuring deformation using the DIC method, a random contrast dot pattern is required. When the object to be measured does not have rich texture information, speckle needs to be created. There are two methods for creating speckles: spraying and projection. All of the above methods require drawing on the object to be measured, which may affect the use of the object to be measured. Summary of the invention
[0006] The object of the present invention is to provide a three-dimensional measurement method and system based on digital image correlation of a single camera-projector system.
[0007] The technical solution to achieve the purpose of the present invention is as follows: In a first aspect, the present invention provides a three-dimensional measurement method based on digital image correlation of a single camera-projector system, comprising the following steps:
[0008] Step 1: Project a fringe pattern onto a standard flat plate, and determine an initial absolute phase map based on the captured image;
[0009] Step 2: Project a speckle pattern onto a standard flat plate and collect a speckle image of the standard flat plate;
[0010] Step 3: Collecting the original speckle image of the object to be measured through a single camera-projector measurement system;
[0011] Step 4, matching the speckle images obtained in step 2 and step 3, and obtaining an absolute phase map of the object to be measured through the initial absolute phase map obtained in step 1;
[0012] Step 5: The absolute phase of the object to be measured is recovered by phase recovery, and after phase expansion, the phase is combined with calibration parameters to reconstruct the three-dimensional information of the object to be measured;
[0013] Step 6: Calculate the three-dimensional point clouds after displacement, make a difference between the corresponding points, and get the displacement of the object.
[0014] Furthermore, in step 1, the stripe pattern captured by the camera is assumed to be:
[0015]
[0016] in represents the number of phase shift steps, represents pixel coordinates, Indicates the background light intensity. represents the modulation degree of the fringe image, is the phase shift step number, represents the phase value of the code, and the fringe amplitude is calculated by the following formula:
[0017]
[0018] Calculated by the least squares algorithm:
[0019] .
[0020] Furthermore, the speckle design in step 2 uses Glare software to design a speckle pattern with a diameter of 6 pixels, a density of 80%, and a deviation of 40%, and collects a standard flat plate speckle image. The original fringe image of the standard flat plate is collected by a single camera-projector measurement system. The single camera-projector measurement system includes a projector, a camera, and a computer. The specific steps of collecting the original fringe image of the standard flat plate are: using a computer to load the speckle pattern, projecting a speckle image through a projector, and receiving it through a camera after being reflected by the standard flat plate.
[0021] Furthermore, in step three, the original speckle image of the object to be measured is collected by a single camera-projector measurement system, and the object is moved forward 5 times with a step length of 1 mm.
[0022] Furthermore, in step 4, the modified zero-mean normalized squared variance is used To determine the best match between the reference subset and the target subset, it is calculated by the following formula:
[0023]
[0024] in, is the selected subset of the reference image, and are the intensity distributions of the reference image and the deformed image, respectively. and denote the reference image and the deformed image sub-regions respectively, represents the deformation parameter, which determines the shape function of the coordinates of corresponding points in the two images, and denote the displacement in the x and y directions respectively, Respectively in the reference image Stretching and contraction.
[0025] Furthermore, the absolute phase of the object to be measured is recovered by phase recovery, and after phase expansion, the phase is combined with the calibration parameters to reconstruct the three-dimensional information of the object to be measured; when the match is determined, the displacement of the corresponding reference point and the deformed object point is calculated by the corresponding difference; the three-dimensional displacement in the global world coordinate system Expressed as
[0026]
[0027] in, represents the three-dimensional coordinates before deformation, Indicates the corresponding points after deformation.
[0028] In a second aspect, the present invention provides a three-dimensional measurement system based on digital image correlation of a single camera-projector system, comprising a digital light processing projector, an industrial camera and a computer. The speckle pattern is loaded by the computer, a speckle image is projected by the projector, and the speckle image is received by the camera after being reflected by a standard plate. The computer is used to implement the steps of the method described in the first aspect.
[0029] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the program.
[0030] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.
[0031] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention provides a three-dimensional measurement technology based on digital image correlation of a single camera-projector system. On the one hand, the system only uses one camera, which can reduce the system size while maintaining high-precision three-dimensional morphology and displacement. On the other hand, compared with the traditional monocular DIC solution, the method uses projected speckle, does not require spraying on the object to be measured, and does not affect the use of the object to be measured. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the three-dimensional measurement method based on digital image correlation of a single camera-projector system of the present invention.
[0033] Figure 2 It is a schematic diagram of the process of the present invention.
[0034] Figure 3 2 is a schematic diagram of the FPP principle in the method of the present invention, in which (a) is a four-step phase-shift fringe image, (b) is a wrapped phase, and (c) is an absolute phase.
[0035] Figure 4 This is the phase calculation process in the method of the present invention.
[0036] Figure 5 It is the standard sphere in the reconstruction accuracy experiment. In the figure, (a) is the accurate parameters of the standard sphere, and (b) is the parameters of the standard sphere for three-dimensional measurement of the present invention.
[0037] Figure 6 It is the measurement result of deformed paper. In the figure, (a) is the texture map obtained at different times, (b) is the reconstructed shape at the corresponding time, and (c) is the reconstructed displacement at the corresponding time. DETAILED DESCRIPTION
[0038] The purpose of the present invention is to solve the above problems and propose a three-dimensional measurement technology based on digital image correlation of a single camera-projector system.
[0039] Fringe Projection Profilometry (FPP) is combined with DIC to simultaneously acquire accurate 3D shape and displacement in a non-contact and high-speed manner. FPP establishes the projector-camera relationship through phase, and DIC establishes the correspondence through matching. The initial absolute phase map is found by FPP, and then DIC matching is performed between the reference image and the current image to obtain the absolute phase of the object. Finally, the 3D shape is reconstructed using the absolute phase map. In addition, the displacement in each direction is calculated by the difference of the first point cloud. This method not only avoids segmenting the scene, so as not to halve the resolution of each view, but also eliminates the need to spray paint on the specimen, which affects the specimen itself. Experiments on complex scenes demonstrate the effectiveness of the proposed method and show high-precision 3D shape and displacement accuracy, thus proving the feasibility of our method.
[0040] The system can reconstruct objects and accurately calculate displacements and deformations. Unlike the commonly used single-camera stereo DIC technology that uses a four-mirror adapter, a dual prism or a diffraction grating and sprayed speckle, the method of the present invention truly uses a single camera and projected speckle. The method does not require any auxiliary equipment and can calculate three-dimensional reconstruction and displacement using only an industrial camera and a projector. Secondly, the second advantage of the method of the present invention is the projected speckle. Compared with the common sprayed speckle, this method does not affect the object and can be used in specific scenarios. The feasibility of the proposed method and the accuracy of the established system were demonstrated through actual experiments on the shape measurement of a standard sphere, the in-situ and out-of-plane displacement measurement of an object, and the three-dimensional deformation measurement of paper. It is hoped that the proposed method can be extended to a 3D-DIC imaging system including a camera-projector system in the future for three-dimensional shape, displacement and deformation measurement.
[0041] Combine the following Figure 1 , Figure 2 And specific embodiments are provided to further illustrate the present invention. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.
[0042] A. Step-shift algorithm
[0043] Phase shift profilometry requires the camera to capture multiple sinusoidally encoded images with different phase shifts, encoding each coordinate in the time domain. The intensity distribution of the fringes can be described as:
[0044]
[0045] in represents the number of phase shift steps, represents pixel coordinates, Indicates the background light intensity. represents the modulation degree of the fringe image, is the phase shift step number, Indicates the encoded phase value.
[0046] The calculation formula of the fringe amplitude is:
[0047]
[0048] in .
[0049] The wrapped phase can be calculated by the least squares algorithm
[0050]
[0051] The phase values are wrapped in In the range of , this result is ambiguous and cannot be directly used in fringe projection profilometry. Therefore, in the process of three-dimensional measurement, it is necessary to convert it into a continuous absolute phase through phase unwrapping to achieve accurate correspondence between the camera and projector coordinates. The formula is as follows:
[0052]
[0053] in is an integer, called the stripe order, is the absolute phase.
[0054] The specific principle is as follows Figure 3 shown.
[0055] B. Establish the correspondence between camera and projector pixels
[0056] In the combination of DIC and FPP, DIC is mainly used to solve the problem of sub-pixel high-precision image coordinate displacement before and after the deformation of the object. Therefore, the corresponding points before and after the deformation can be found. As a powerful full-field analysis method, DIC is widely used for displacement and deformation analysis based on the similarity of image intensity distribution before and after deformation. Therefore, accurate pixel-level image tracking can be achieved with this method. For a given point in the reference image, we use the modified zero-mean normalized sum of squared variance (ZNSSD) criterion to determine the best match between the reference subset and the target subset, as follows:
[0057]
[0058] in, is the selected subset of the reference image, and are the intensity distributions of the reference image and the deformed image, respectively. and denote the reference image and the deformed image sub-regions respectively, represents the deformation parameter, which determines the shape function of the coordinates of corresponding points in the two images, and denote the displacement in the x and y directions respectively, Respectively in the reference image Stretching and contraction.
[0059] Therefore, the standard plate speckle image and the speckle image of the object to be measured There is a unique correspondence between them. In order to track and For the same points in , a reference subset centered on the interest point can be extracted from and . Then, in each iteration, the target subset centered on the initial guess extracted from and is transformed and compared with the reference subset. Once the transformed target subset with the highest match to the reference subset is found, and The corresponding points between them will be extracted.
[0060] We perform DIC at each grid point to establish and There is a grid step between grid points, and the correspondence is established one by one on the grid block (a subset of the grid step pixels centered at the grid point). Since we have already obtained the absolute phase of the standard plate I know The absolute phase value of each pixel and and So we can extract the correspondence between Absolute phase diagram of , so we get the absolute phase of the object to be measured. The specific process is as follows Figure 4 shown.
[0061] C. 3D shape and displacement calculation
[0062] The absolute phase of the object to be measured is recovered by phase recovery, and after phase expansion, the phase is combined with the calibration parameters to reconstruct the three-dimensional information of the object to be measured. When the match is determined, the displacement of the corresponding reference point and the deformed object point can be calculated by corresponding difference. Three-dimensional displacement in the global world coordinate system It can be expressed as
[0063]
[0064] in, represents the three-dimensional coordinates before deformation, Indicates the corresponding points after deformation.
[0065] D. Monocular DIC experiment
[0066] To verify the proposed method, we built a monocular projection system consisting of a A digital light processing (DLP) projector (Texas Instruments DLP Light Crafter 6500) and a 8-bit pixel depth The image was taken with an industrial camera (Basler acA1920-155um). The camera was equipped with a lens with a focal length of 25 mm. The distance between the object to be measured and the imaging system was about 70 cm. In all experiments, the subset size of DIC was Pixels, step size is 1 pixel. The system uses the method proposed by Zhang Zhengyou for calibration and chooses the camera coordinates as the world coordinates.
[0067] In order to quantitatively evaluate the accuracy of the established monocular shape and displacement measurement system, the reconstruction accuracy of a standard sphere was evaluated by spherical space error, which includes the sphere center distance and the spherical error of a single sphere.
[0068] Experiment 1: Measuring a Standard Sphere
[0069] Figure 5 (a) in the figure is the exact parameters of the standard ball. Figure 5 In (b), the diameter of the left ball calculated by our method is 50.9301mm, the diameter of the right ball is 50.8881mm, and the distance between the centers of the two balls is 100.7332mm, so the distance errors are 0.0664mm and 0.0453mm respectively. Our proposed method makes the distance error between the centers of the two balls 0.3922mm, which is quite small considering that the radius of the ball is about 100.3410mm.
[0070] Experiment 2: Displacement Accuracy Test
[0071] Move the object forward 5 times with a step length of 1 mm, and take a picture each time. The object is fixed at a minimum step length of 20 The image was moved along the Z axis on a precision translation stage (LD90-RM-2) with a step size of 2 mm. At each position, the fitted plane of the calculated depth map was used as the ground truth, the plane at position 1 was selected as the reference plane, and the displacements at the other five positions were solved using a subset of pixels using the DIC tracking algorithm. The displacement measurement results are shown in Table 1.
[0072] Table 1
[0073]
[0074] The average displacement and root mean square error in the X, Y, and Z directions are also given, and the average error is within 0.2 mm. This experiment shows that the proposed method has strong capabilities in micro-displacement measurement and can achieve an accuracy of 0.2 mm when using a structured light system. These results verify that our measurement system can achieve accurate displacement in a single camera measurement system.
[0075] Experiment 3: Dynamic Test
[0076] We measured a dynamic scene where a piece of paper was squeezed and deformed by a stick to verify the effectiveness of the proposed method in dynamic situations. 2D image matching and tracking are achieved through image correlation matching. Then, the absolute phase map at each moment can be obtained using the 2D matching information. At the same time, 3D coordinate matching can also be achieved. Finally, the 3D displacement of the test region (ROI) is calculated by directly subtracting the 3D coordinates of the matching points. Figure 6 It can be seen that our scheme is effective in dynamic situations.
[0077] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A three-dimensional measurement method based on digital image correlation of a single camera-projector system, characterized in that: The following steps are involved: Step 1: Project a fringe pattern onto a standard flat plate, and determine an initial absolute phase map based on the captured image; The fringe pattern captured by the camera is: ; in represents the number of phase shift steps, represents pixel coordinates, Indicates the background light intensity. represents the modulation degree of the fringe image, is the phase shift step number, represents the phase value of the code, and the fringe amplitude is calculated by the following formula: ; The wrapped phase is calculated using the least squares algorithm: ; The phase values are wrapped in Within the range of , it is converted into a continuous absolute phase through phase unwrapping, so as to achieve accurate correspondence between the camera and projector coordinates. The formula is as follows: ; in is an integer, called the stripe order, is the absolute phase; Step 2: Project a speckle pattern onto a standard flat plate and collect a speckle image of the standard flat plate; Step 3: Collect the original speckle image of the object to be measured by the single camera-projector measurement system, and move the object to be measured forward 5 times with a step length of 1 mm; Step 4, matching the speckle images obtained in step 2 and step 3, and obtaining an absolute phase map of the object to be measured through the initial absolute phase map obtained in step 1; The squared normalized variance was modified to zero mean. To determine the best match between the reference subset and the target subset, it is calculated by the following formula: ; in, is the selected subset of the reference image, and are the intensity distributions of the reference image and the deformed image, respectively. and denote the reference image and the deformed image sub-regions respectively, represents the deformation parameter, which determines the shape function of the coordinates of corresponding points in the two images, and denote the displacement in the x and y directions respectively, Respectively, in the reference image Stretching and contraction on From the absolute phase of the standard plate Obtain standard flat plate speckle image The absolute phase value of each pixel and the standard plate speckle image and the speckle image of the object to be measured The corresponding relationship between them is used to extract the speckle image of the object to be measured. Absolute phase diagram of , thereby obtaining the absolute phase of the object to be measured; Step 5: The absolute phase of the object to be measured is recovered by phase recovery, and after phase expansion, the phase is combined with calibration parameters to reconstruct the three-dimensional information of the object to be measured; Step 6: Calculate the three-dimensional point clouds after displacement, make a difference between the corresponding points, and obtain the displacement of the object; The absolute phase of the object to be measured is recovered by phase recovery, and after phase expansion, the phase is combined with the calibration parameters to reconstruct the three-dimensional information of the object to be measured; when the match is determined, the displacement of the corresponding reference point and the deformed object point is calculated by the corresponding difference; the three-dimensional displacement in the global world coordinate system Expressed as ; in, represents the three-dimensional coordinates before deformation, Indicates the corresponding points after deformation.
2. The method according to claim 1, characterized in that The speckle design in the step 2 uses Glare software to design a speckle pattern with a diameter of 6 pixels, a density of 80%, and a deviation of 40%, and collects a standard flat plate speckle image; the original fringe image of the standard flat plate is collected by a single camera-projector measurement system.
3. The method according to claim 2, characterized in that The single camera-projector measurement system includes a projector, a camera and a computer. The specific steps of the single camera-projector measurement system to collect the original fringe image of the standard plate are: using a computer to load the speckle pattern, projecting a speckle image through a projector, and receiving it through a camera after being reflected by the standard plate.
4. A three-dimensional measurement system based on digital image correlation of a single camera-projector system, characterized in that: The invention comprises a digital light processing projector, an industrial camera and a computer. The speckle pattern is loaded by the computer, a speckle image is projected by the projector, and the speckle image is received by the camera after being reflected by a standard plate. The computer is used to implement the steps of any method described in claims 1-3.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
