Dynamic three-dimensional measurement method and system for high-reflectivity sample
Through the technology of combining laser speckle projection and binocular polarization camera, using polarization enhancement and all-light processing, single-frame imaging three-dimensional measurement of high reflectivity samples is realized, which solves the problem of information loss caused by glare in traditional methods and improves the efficiency of Measurement accuracy and efficiency.
Patent Information
- Application Number
- CN202310307356.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-03-27
AI Technical Summary
In the measurement of high reflectivity samples, traditional structured light three-dimensional measurement methods cause imaging oversaturation due to glare, resulting in information loss and reduced reconstruction accuracy. Existing solutions such as powder spraying and multiple exposure methods have problems of inconvenience and low efficiency.
Using laser speckle projection combined with a binocular polarization camera, through polarization enhancement, all-light processing and window adaptive polarization fusion technology, single-frame imaging achieves high dynamic range three-dimensional measurement and reconstruction, and uses multi-polarization channel sensors and triangulation methods to restore three-dimensional information.
It realizes single-frame imaging to complete high dynamic range three-dimensional measurement and reconstruction, improves measurement accuracy and efficiency, avoids the loss of glare information, and is suitable for high reflectivity samples.
Smart Images

Figure CN118705992A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of optical three-dimensional measurement, and in particular to a high-reflectivity sample dynamic three-dimensional measurement method, and also to a high-reflectivity sample dynamic three-dimensional measurement system. Background Art
[0002] The acquisition of the three-dimensional shape of an object is of great significance. Among them, optical three-dimensional measurement technology has the advantages of non-contact, fast, simple and easy-to-operate system, etc. It is also the most widely used technology for non-contact measurement. It has relatively mature applications in reverse engineering, cultural heritage protection, deformation detection, and industrial parts quality monitoring. Speckle projection three-dimensional measurement is the most mature method. This method projects random speckle patterns onto the surface of the object to be measured, uses the camera to synchronously collect speckle patterns from different perspectives, and then uses stereo matching technology to match and process to obtain the disparity map, so as to restore the three-dimensional information using triangulation. However, due to the limited imaging dynamic range of the camera, when the structured light three-dimensional measurement method is used to measure highly reflective objects such as ceramic bottles, aircraft metal shells, and industrial parts after milling, large areas of glare will cause the camera imaging to be oversaturated. At this time, when using the traditional structured light three-dimensional measurement method, the structured light information at the glare will be lost, resulting in a decrease in reconstruction accuracy and even large areas of data holes.
[0003] To address this problem, in current industrial applications, workers often spray degradable powder on the surface of highly reflective workpieces to cover the highlights. However, the disadvantages of this method are obvious. Spraying powder is not only time-consuming and laborious, but also increases the thickness of the surface of the object being measured. The accuracy of the measurement will be affected by the uniformity of the spraying. In addition, the most mature and effective method is the multiple exposure method, which refers to a series of imaging of the same field of view at different camera exposure times, thereby fusing it into an image that avoids image saturation. This method requires a certain number of projections or imaging, which limits its application in dynamic 3D measurement. Summary of the invention
[0004] In order to overcome the defects of the prior art, the technical problem to be solved by the present invention is to provide a dynamic three-dimensional measurement method for high-reflectivity samples, which can achieve high dynamic range three-dimensional measurement and reconstruction with only single-frame imaging, laying the foundation for dynamic three-dimensional measurement and reconstruction of high dynamic range.
[0005] The technical solution of the present invention is: the dynamic three-dimensional measurement method of high reflectivity samples comprises the following steps:
[0006] (1) A binocular vision measurement system is formed by combining a speckle projection module with an imaging module. The speckle generated by the laser transmission diffraction element is projected onto the surface of the object to be measured. After being modulated by the surface of the object to be measured, the image is formed in a polarization camera.
[0007] (2) Calibrate the polarization camera, obtain the camera's internal and external parameters, turn on the adjustable laser to illuminate the diffractive optical element to generate speckle projection onto the surface of the object to be measured, and use the binocular polarization camera to synchronously collect the data;
[0008] (3) The high dynamic range images captured by the camera have two areas: overexposed and underexposed. The maximum grayscale value of a pixel imaged by an 8-bit camera is 255. When I = 255, it means that the pixel at that point is overexposed and needs to be processed.
[0009] (4) If the high-reflection area is overexposed after polarization enhancement, I = 255, then polarization full-light processing is used;
[0010] (5) If it is still overexposed, I = 255, polarization fusion processing is used to select the pixel point in the optimal polarization channel under the matching window for matching;
[0011] (6) performing epipolar correction on the processed left fusion image and right strategic fusion image;
[0012] (7) After being fused into a high dynamic range image, pixel by pixel matching is performed in the right image with the same fusion strategy;
[0013] (8) After matching, the disparity map is obtained. Combined with the system calibration parameters, the three-dimensional data is obtained by using the triangulation method and the camera internal and external parameter matrix obtained by calibration according to the triangular position relationship between the binocular camera and the object to be measured, and three-dimensional reconstruction is performed.
[0014] The present invention utilizes a method of combining laser speckle projection with binocular polarization camera imaging to synthesize high dynamic range speckle images, performs polarization enhancement and polarization full light processing on dark areas, and uses window adaptive polarization fusion for overbright areas and exposed areas, and selects a suitable polarization channel for the matching window of each pixel point to achieve matching. Therefore, high dynamic range three-dimensional measurement and reconstruction can be achieved with only a single frame of imaging, laying a foundation for dynamic three-dimensional measurement and reconstruction of high dynamic range.
[0015] A high-reflectivity sample dynamic three-dimensional measurement system is also provided, which includes: a projection module and an imaging module. After the polarization camera in the imaging module is calibrated, the projection module uses an adjustable laser to illuminate the diffraction optical element to generate stable randomly distributed speckle, which is projected onto the surface of the object to be measured. The left polarization camera and the right polarization camera in the imaging module are then synchronously collected to collect multi-polarization channel speckle patterns modulated by the object to be measured from different viewing angles. The left polarization image is then input into a high dynamic range adaptive fusion to obtain a fused image and a fusion strategy. The right polarization image is epipolarly corrected with the left polarization fused image according to the fusion strategy. The corrected images are matched pixel by pixel to obtain a disparity map, and the reconstruction result is obtained through a three-dimensional reconstruction method. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic structural diagram of a dynamic three-dimensional measurement system for high reflectivity samples according to the present invention, wherein 1 is an adjustable laser, 2 is a diffractive optical element, 3 is a right polarization camera, 4 is a left polarization camera, and 5 is an object to be measured.
[0017] Figure 2 It is a flow chart of the three-dimensional reconstruction method of the present invention.
[0018] Figure 3 It is a flow chart of the high dynamic range adaptive fusion method of the present invention.
[0019] Figure 4 It is a grayscale image of the tested scene obtained in the experiment of the present invention.
[0020] Figure 5 It is the grayscale image fused in the experiment of the present invention.
[0021] Figure 6 It is a schematic diagram of the three-dimensional reconstructed point cloud generated by the experiment of the present invention. DETAILED DESCRIPTION
[0022] like Figure 2 As shown, this high reflectivity sample dynamic three-dimensional measurement method includes the following steps:
[0023] (1) A binocular vision measurement system is formed by combining a speckle projection module with an imaging module. The speckle generated by the laser transmission diffraction element is projected onto the surface of the object to be measured. After being modulated by the surface of the object to be measured, the image is formed in a polarization camera.
[0024] (2) Calibrate the polarization camera, obtain the camera's internal and external parameters, turn on the adjustable laser to illuminate the diffractive optical element to generate speckle projection onto the surface of the object to be measured, and use the binocular polarization camera to synchronously collect the data;
[0025] (3) The high dynamic range images captured by the camera have two areas: overexposed and underexposed. The maximum grayscale value of a pixel imaged by an 8-bit camera is 255. When I = 255, it means that the pixel at that point is overexposed and needs to be processed.
[0026] (4) If the high-reflection area is overexposed after polarization enhancement, I = 255, then polarization full-light processing is used;
[0027] (5) If it is still overexposed, I = 255, polarization fusion processing is used to select the pixel point in the optimal polarization channel under the matching window for matching;
[0028] (6) performing epipolar correction on the processed left fusion image and right strategic fusion image;
[0029] (7) After being fused into a high dynamic range image, pixel by pixel matching is performed in the right image with the same fusion strategy;
[0030] (8) After matching, the disparity map is obtained. Combined with the system calibration parameters, the three-dimensional data is obtained by using the triangulation method and the camera internal and external parameter matrix obtained by calibration according to the triangular position relationship between the binocular camera and the object to be measured, and three-dimensional reconstruction is performed.
[0031] The present invention utilizes a method of combining laser speckle projection with binocular polarization camera imaging to synthesize high dynamic range speckle images, performs polarization enhancement and polarization full light processing on dark areas, and uses window adaptive polarization fusion for overbright areas and exposed areas, and selects a suitable polarization channel for the matching window of each pixel point to achieve matching. Therefore, high dynamic range three-dimensional measurement and reconstruction can be achieved with only a single frame of imaging, laying a foundation for dynamic three-dimensional measurement and reconstruction of high dynamic range.
[0032] Preferably, in step (1), the speckle projection module comprises: an adjustable laser and a diffractive optical element, the imaging module comprises a first polarization camera and a second polarization camera, and the polarization camera uses a multi-polarization channel sensor to collect multi-polarization speckle images of 0°, 45°, 90° and 135° in a single frame.
[0033] Preferably, in step (2), the polarization camera is calibrated using Zhang Zhengyou's checkerboard calibration method to obtain the camera's internal and external parameters, wherein the polarization camera acquisition is selected as 0°, 45°, 90° and 135° polarization channel imaging modes.
[0034] Preferably, in step (3), the four polarization images collected are subjected to multi-sensor polarization enhancement processing, the principle of which is:
[0035]
[0036] in represents the superposition of polarized Stokes vectors, I0, I 45 ,I 90 , and I 135 Respectively
[0037] 0°, 45°, 90° and 135° polarization images.
[0038] Preferably, in step (4), the principle of polarization full light processing is:
[0039]
[0040] Preferably, in step (5), the optimization index is the window evaluation grayscale gradient of the speckle image:
[0041]
[0042] Select the window size: 5*5.
[0043] Preferably, in step (6), the epipolar line correction adopts the Fusiello method.
[0044] Preferably, in step (7), the ZNCC algorithm is used for image matching, and the spatial matching correlation coefficient is:
[0045]
[0046] Among them, w is the correlation coefficient. The larger w is, the more relevant the left and right images of the pixel are. The size of the correlation window is selected as: (2w m +1)×(2w m +1); Represents the grayscale average of all pixels in the reference sub-region on the left and the sub-region to be matched on the right; I L (u,v),I R (u, v) represents the grayscale value of a pixel in the reference sub-region of the left image and the sub-region to be matched in the right image.
[0047] Preferably, in step (8), the disparity map obtained by matching is combined with the internal parameters obtained by camera calibration, and three-dimensional information is obtained by triangulation. The specific formula used is:
[0048]
[0049] Where f is the focal length of the polarization camera obtained by calibration, B is the baseline length between the left and right cameras, in mm; represents the imaging center coordinates of the right polarization camera, The imaging center coordinates of the left polarization camera, in pixels; [u L ,v L ] represents the pixel coordinates on the left image, in pixels; [x, y, z] represents the pixel coordinates [u L ,v L ]For the three-dimensional coordinate information, the unit is mm.
[0050] like Figure 1 As shown, a high reflectivity sample dynamic three-dimensional measurement system is also provided, which includes: a projection module and an imaging module. After the polarization camera in the imaging module is calibrated, the projection module uses an adjustable laser to illuminate the diffraction optical element to generate a stable randomly distributed speckle, which is projected onto the surface of the object to be measured. The left polarization camera and the right polarization camera in the imaging module are then synchronously collected to collect multi-polarization channel speckle patterns modulated by the object to be measured from different viewing angles. The left polarization image is then input into a high dynamic range adaptive fusion to obtain a fused image and a fusion strategy. The right polarization image is epipolarly corrected with the left polarization fused image according to the fusion strategy. The corrected image is matched pixel by pixel to obtain a disparity map, and the reconstruction result is obtained by a three-dimensional reconstruction method.
[0051] A specific embodiment of the present invention is described in detail below.
[0052] A high dynamic range three-dimensional measurement method based on single-frame imaging of a polarization camera, the specific implementation steps are as follows:
[0053] Step 1, a binocular vision measurement system is formed by using a speckle projection module composed of an adjustable laser 1 and a diffractive optical element 2 in combination with an imaging module of a polarization camera 3 and a polarization camera 4. The measurement principle is that a laser is transmitted through a diffraction element to generate a speckle projection onto the surface of an object to be measured 5, and the speckle is imaged in a polarization camera after being modulated by the surface of the object to be measured. The polarization camera uses a multi-polarization channel sensor to collect multi-polarization speckle images of 0°, 45°, 90° and 135° in a single frame.
[0054] Step 2: For the above binocular vision system, perform the following steps: Figure 2 Processing, first calibrate the system polarization camera, obtain the camera intrinsic and extrinsic parameters, turn on the adjustable laser to illuminate the diffractive optical element to generate speckle projection onto the surface of the object, use the binocular polarization camera to synchronously collect the image, and after collection, perform high dynamic range adaptive fusion in step 3, epipolar correction and stereo matching in step 4, and three-dimensional reconstruction in step 5.
[0055] Step 3: The high dynamic range image captured by the camera has two areas: overexposed and underexposed. The maximum grayscale value of the pixel imaged by the 8-bit camera is 255, so when I=255, it means that the pixel at this point is overexposed and needs to be processed. The processing method is as follows: Figure 3 As shown, according to step 1, the camera collects 4 polarization images, and performs multi-sensor polarization enhancement processing on the images. The principle is:
[0056]
[0057] In the formula represents the superposition of polarized Stokes vectors;
[0058] Step 4: If the high-reflection area is overexposed after the increase, that is, I=255, polarized full light processing is used, and its principle is:
[0059]
[0060] Step 5: If it is still overexposed, that is, I=255, polarization fusion processing is used to select the pixel point matching in the optimal polarization channel under the matching window. The optimization index is the window evaluation grayscale gradient of the speckle image:
[0061]
[0062] In this example, the window size is selected as: 5*5.
[0063] Step 6, performing epipolar correction on the processed left fused image and right strategic fused image;
[0064] Step 7: In this example, the image is collected as Figure 4 As shown in Figure 2, after being fused into a high dynamic range image, Figure 5 As shown, pixel by pixel is matched in the right image of the same fusion strategy, and the matching formula is:
[0065]
[0066] Among them, w is the correlation coefficient. The larger w is, the more relevant the left and right images of the pixel are. The size of the correlation window is selected as: (2w m +1)×(2w m +1); Represents the grayscale average of all pixels in the reference sub-region on the left and the sub-region to be matched on the right; I L (u,v),I R (u,v) represents the gray value of a pixel in the reference sub-region of the left image and the sub-region to be matched in the right image. In this example, the matching window size is selected as: 5*5.
[0067] Step 8: After matching, the disparity map is obtained. Combined with the system calibration parameters, the three-dimensional data is obtained by using the triangulation method and the camera internal and external parameter matrix obtained by calibration according to the triangular position relationship between the binocular camera and the object to be measured, and three-dimensional reconstruction is performed. The three-dimensional reconstruction result in this example is as follows: Figure 6 shown.
[0068] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention are still within the protection scope of the technical solution of the present invention.
Claims
1. A dynamic three-dimensional measurement method for high reflectivity samples, characterized in that: It includes the following steps: (1) A binocular vision measurement system is formed by combining a speckle projection module with an imaging module. The speckle generated by the laser transmission diffraction element is projected onto the surface of the object to be measured. After being modulated by the surface of the object to be measured, the image is formed in a polarization camera. (2) Calibrate the polarization camera, obtain the camera's internal and external parameters, turn on the adjustable laser to illuminate the diffractive optical element to generate speckle projection onto the surface of the object to be measured, and use the binocular polarization camera to synchronously collect the data; (3) The high dynamic range images captured by the camera have two areas: overexposed and underexposed. The maximum grayscale value of a pixel imaged by an 8-bit camera is 255. When I = 255, it means that the pixel at that point is overexposed and needs to be processed. (4) If the high-reflection area is overexposed after polarization enhancement, I = 255, then polarization full-light processing is used; (5) If it is still overexposed, I = 255, polarization fusion processing is used to select the pixel point in the optimal polarization channel under the matching window for matching; (6) performing epipolar correction on the processed left fusion image and right strategic fusion image; (7) After being fused into a high dynamic range image, pixel by pixel matching is performed in the right image with the same fusion strategy; (8) After matching, the disparity map is obtained. Combined with the system calibration parameters, the three-dimensional data is obtained by using the triangulation method and the camera internal and external parameter matrix obtained by calibration according to the triangular position relationship between the binocular camera and the object to be measured, and three-dimensional reconstruction is performed.
2. The method for dynamic three-dimensional measurement of high reflectivity samples according to claim 1, characterized in that: In the step (1), the speckle projection module includes: an adjustable laser and a diffractive optical element, and the imaging module includes a first polarization camera and a second polarization camera, and the polarization camera uses a multi-polarization channel sensor to collect multi-polarization speckle images of 0°, 45°, 90° and 135° in a single frame.
3. The method for dynamic three-dimensional measurement of high reflectivity samples according to claim 2, characterized in that: In the step (2), the polarization camera is calibrated using Zhang Zhengyou's chessboard calibration method to obtain the camera's internal and external parameters, wherein the polarization camera acquisition is selected as 0°, 45°, 90° and 135° polarization channel imaging modes.
4. The method for dynamic three-dimensional measurement of high reflectivity samples according to claim 3, characterized in that: In step (3), the four polarization images collected are subjected to multi-sensor polarization enhancement processing, the principle of which is: in represents the superposition of polarized Stokes vectors, I0, I 45 ,I 90 , and I 135 Represents 0°, 45°, 90° and 135° polarization images respectively.
5. The method for dynamic three-dimensional measurement of high reflectivity samples according to claim 4, characterized in that: In step (4), the principle of polarization full light processing is:
6. The method for dynamic three-dimensional measurement of high reflectivity samples according to claim 5, characterized in that: In step (5), the optimization index is the window evaluation grayscale gradient of the speckle image: Select the window size: 5*5.
7. The method for dynamic three-dimensional measurement of high reflectivity samples according to claim 6, characterized in that: In the step (6), the epipolar line correction adopts the Fusiello method.
8. The method for dynamic three-dimensional measurement of high reflectivity samples according to claim 7, characterized in that: In step (7), the ZNCC algorithm is used for image matching, and the spatial matching correlation coefficient is: Among them, w is the correlation coefficient. The larger w is, the more relevant the left and right images of the pixel are. The size of the correlation window is selected as: (2w m +1)×(2w m +1); Represents the grayscale average of all pixels in the reference sub-region on the left and the sub-region to be matched on the right; I L (u,v),I R (u, v) represents the grayscale value of a pixel in the reference sub-region of the left image and the sub-region to be matched in the right image.
9. The method for dynamic three-dimensional measurement of high reflectivity samples according to claim 8, characterized in that: In the step (8), the disparity map is matched with the internal parameters obtained by camera calibration, and three-dimensional information is obtained by triangulation. The specific formula used is: Where f is the focal length of the polarization camera obtained by calibration, B is the baseline length between the left and right cameras, in mm; represents the imaging center coordinates of the right polarization camera, The imaging center coordinates of the left polarization camera, in pixels; [u L ,v L ] represents the pixel coordinates on the left image, in pixels; [x, y, z] represents the pixel coordinates [u L ,v L ]For the three-dimensional coordinate information, the unit is mm.
10. The system of the high reflectivity sample dynamic three-dimensional measurement method according to claim 1, characterized in that: It includes: The projection module and the imaging module, after calibrating the polarization camera in the imaging module, the projection module uses an adjustable laser to illuminate the diffraction optical element to generate stable randomly distributed speckle, which is projected onto the surface of the object to be measured, and then the left polarization camera and the right polarization camera in the imaging module synchronously collect the speckle pattern of multiple polarization channels modulated by the object to be measured from different viewing angles, and then the left polarization image is input into the high dynamic range adaptive fusion to obtain the fused image and fusion strategy, the right polarization image is epipolar corrected with the left polarization fused image according to the fusion strategy, the corrected image is matched pixel by pixel to obtain the disparity map, and the reconstruction result is obtained by the three-dimensional reconstruction method.
Citation Information
Patent Citations
Three-dimensional measurement method and system based on optical grating projection unit and binocular polarization cameras
CN110146036A
Active three-dimensional imaging method, device and equipment and storage medium
CN110500957A
High-reflection object measurement method and system based on laser speckle limit constraint projection
CN110940295A
Binocular three-dimensional imaging method combining laser dot matrix and polarization vision
CN111121722A
Binocular speckle structured light three-dimensional reconstruction method and system
CN111145342A
