A dual zoom system and a three-dimensional information acquisition method thereof
Through the combination of micromirror array and algorithms in the dual zoom system, the height calculation error problem of the projection system when texture information is lacking, realizing the acquisition of high-precision three-dimensional data and the retention of texture details.
Patent Information
- Application Number
- CN202510510341.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-23
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2045-04-23
AI Technical Summary
When existing projection systems lack 2D texture information, they cannot accurately obtain the three-dimensional information of objects, especially in areas with sparse texture information, which are prone to height calculation errors.
Using a dual zoom system, two micromirror arrays are integrated, namely the first micromirror array and the second micromirror array, and coaxial light mode and zoom parameter control, combined with EDOF algorithm and vertical measurement algorithm, two-dimensional ultra-depth of field image and surface height information are obtained, and data fusion is carried out to generate three-dimensional information.
It realizes high-precision three-dimensional data acquisition in areas with scarce texture information, ensures the accuracy of three-dimensional data and the retention of texture details, and solves the calculation error problem in traditional 3D imaging technology.
Smart Images

Figure CN120050407B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional measurement, and particularly to a dual-zoom system and a method for obtaining three-dimensional information thereof. Background Art
[0002] With the rapid growth of the demand for digital content, projection display technology has penetrated into high-end fields such as consumer electronics, in-vehicle entertainment, intelligent education, three-dimensional measurement, and industrial visualization. However, the existing projection-side zoom systems can only project structured light, lack 2D texture information, and cannot meet the need for comprehensive information acquisition of objects.
[0003] The mainstream projection technologies are mainly divided into three categories:
[0004] Fixed focal length projection technology relies on a physical lens group to achieve a fixed projection ratio, and requires users to manually adjust the screen distance and focal length to match, so it cannot meet the requirements of dynamic scenarios.
[0005] Mechanical zoom projection technology adjusts the focal length by driving the lens group to move with a motor, but has problems such as long response time, large volume, high risk of mechanical wear, and significant power consumption.
[0006] Liquid lens zoom projection technology is based on the electro-wetting effect or the dielectric wetting effect, and adjusts the focal length by changing the surface tension of the liquid. Although it avoids mechanical moving parts, it depends on liquid diffusion dynamics, is greatly affected by environmental stability, has a complex sealing structure, poor production consistency, and is difficult to meet the time response requirements of fast-moving scenarios such as AR / VR.
[0007] Adding a micromirror array zoom component at the front end of the projection system, the structured light projected is continuously scanned over the measured object within the depth range by changing the focal length. The micromirror array can achieve a change of 320 / 960 steps during the zoom process. Since the depth value corresponding to each step is already included in the original calibration file at the factory, the micromirror array can obtain height information by changing 320 / 960 steps, thereby completing the three-dimensional measurement of the object. However, a single imaging system is limited by the texture and reflection characteristics of the surface of the measured object. If the texture information is too single, during algorithm processing, the focus evaluation operator may exhibit double peaks or multiple peaks, resulting in incorrect calculation of height information.
[0008] It can be seen that the existing technologies still need to be improved. Summary of the Invention
[0009] In view of the deficiencies of the above-mentioned existing technologies, the purpose of the present invention is to provide a method for obtaining three-dimensional information of a dual-zoom system, which overcomes the high calculation error problem faced by traditional 3D imaging technologies in the absence of 2D texture information, and ensures that accurate height information can be obtained even in areas with scarce texture information.
[0010] To achieve the above object, the present invention adopts the following technical solutions:
[0011] A three-dimensional information acquisition method for a dual-zoom system, the dual-zoom system comprising a control device, and a projection unit, a first micromirror array, a second micromirror array, and an imaging unit that are electrically connected to the control device respectively; the three-dimensional information acquisition method includes: adjusting the operating states of the projection unit and the first micromirror array so that the projection end formed by the projection unit and the first micromirror array operates in a coaxial light mode; controlling the second micromirror array to start zooming based on a preset second zoom parameter, and during the zooming process, acquiring in real time the two-dimensional image data collected by the imaging unit and processing it to generate a two-dimensional super-depth-of-field image; adjusting the operating state of the second micromirror array, and when the image collected by the imaging unit is clear, fixing the step parameter of the second micromirror array; controlling the first micromirror array to start zooming based on a preset first zoom parameter, and during the zooming process, acquiring in real time the scanning information fed back by the first micromirror array and the scanning image data collected by the imaging unit, and obtaining surface height information based on the scanning information and the scanning image data; fusing the two-dimensional super-depth-of-field image and the surface height information to generate three-dimensional information including object texture information.
[0012] In the three-dimensional information acquisition method of the dual-zoom system, the adjusting the operating states of the projection unit and the first micromirror array so that the projection end formed by the projection unit and the first micromirror array operates in a coaxial light mode includes: adjusting the light source mode of the projection unit to a single light constant-on mode, and adjusting the step parameter of the first micromirror array to a preset intermediate position so that the projection end formed by the projection unit and the first micromirror array operates in a coaxial light mode; or turning off the projection unit, turning on a preselected annular light power supply, and adjusting the step parameter of the first micromirror array to a preset intermediate position so that the first micromirror array operates in an external annular light mode.
[0013] In the three-dimensional information acquisition method of the dual-zoom system, the controlling the second micromirror array to start zooming based on a preset second zoom parameter, and during the zooming process, acquiring in real time the two-dimensional image data collected by the imaging unit and processing it to generate a two-dimensional super-depth-of-field image includes: obtaining the preset second zoom parameter, controlling the second micromirror array to perform a fast zoom operation based on the preset second zoom parameter, where the preset second zoom parameter includes a zoom start position, a zoom stop position, and a zoom step; during the zooming process, acquiring in real time the two-dimensional images at different focal lengths collected by the imaging unit, integrating multiple two-dimensional images to obtain two-dimensional image data; and processing the two-dimensional image data using an EDOF algorithm to obtain a two-dimensional super-depth-of-field image.
[0014] In the method for obtaining three-dimensional information of the dual-zoom system, when using the EDOF algorithm to process two-dimensional image data to obtain a two-dimensional super-depth-of-field image, it includes: performing preprocessing and feature extraction processing on each of the multiple two-dimensional images included in the two-dimensional image data to obtain multiple two-dimensional feature images including feature descriptors; performing feature matching between different two-dimensional feature images, and based on the matching results, fusing the feature points in different two-dimensional feature images using the weighted average method to generate a depth map; reconstructing a two-dimensional super-depth-of-field image based on the two-dimensional image data and the generated depth map.
[0015] In the method for obtaining three-dimensional information of the dual-zoom system, when adjusting the working state of the second micromirror array and fixing the step parameter of the second micromirror array when the image collected by the imaging unit is clear, it includes: obtaining the feature information of the object to be measured, where the feature information includes the object size and the object shape; based on the feature information of the object to be measured, matching a parameter model in a preset model library, and adjusting the working state of the second micromirror array based on the matched parameter model; when the image collected by the imaging unit is clear, recording the parameter settings of the second micromirror array and fixing the step parameter.
[0016] In the method for obtaining three-dimensional information of the dual-zoom system, when controlling the first micromirror array to start zooming based on a preset first zoom parameter, and during the zooming process, obtaining in real time the scanning information fed back by the first micromirror array and the scanning image data collected by the imaging unit, and obtaining surface height information based on the scanning information and the scanning image data, it includes: obtaining the preset first zoom parameter, and controlling the first micromirror array to start zooming based on the preset first zoom parameter, where the preset first zoom parameter includes a zoom range and a zoom speed; during the zooming process, obtaining in real time the scanning information fed back by the first micromirror array and the scanning image data collected by the imaging unit; the scanning information is step_number information, and the scanning image data includes multiple scanning images, and each scanning image contains the structured light distribution information corresponding to a specific step_number; using a vertical measurement algorithm to obtain the surface height information of the object to be measured based on the scanning information and the scanning image data.
[0017] In the three-dimensional information acquisition method of the dual-zoom system, the vertical measurement algorithm is adopted to obtain the surface height information of the object to be measured based on the scanning information and the scanning image data, including: calculating the modulation degree of the structured light at each pixel point in each scanning image to generate a modulation degree distribution image corresponding to the scanning image; searching for the maximum value of the modulation degree at the position of each pixel point in each modulation degree distribution image, and recording the step_number corresponding to the maximum value of the modulation degree; according to the preset mapping relationship between step_number and height, converting the recorded step_number into the height value of the corresponding position on the surface of the object to be measured, and obtaining the surface height information of the object to be measured. The surface height information of the object to be measured includes the height information of each position on the surface of the object to be measured.
[0018] In the three-dimensional information acquisition method of the dual-zoom system, the two-dimensional super-depth-of-field image and the surface height information are fused to generate three-dimensional information including object texture information, including: performing format verification on the two-dimensional super-depth-of-field image and the surface height information to ensure that the two-dimensional super-depth-of-field image and the surface height information are consistent in the number of pixel points and the arrangement order; based on the principle of one-to-one correspondence of pixel point positions, performing data fusion on the two-dimensional super-depth-of-field image and the surface height information that have passed the format verification to generate the two-dimensional super-depth-of-field image and the surface height information.
[0019] The present invention also correspondingly provides a dual-zoom system, including a control device, a projection unit, a first micromirror array, a second micromirror array, and an imaging unit that are electrically connected to the control device respectively. The control device uses the three-dimensional information acquisition method described above to implement work control; the projection unit is used to emit structured light to the first micromirror array, the first micromirror array is used to perform zoom processing on the structured light and then project the structured light onto the surface of the object to be measured, the second micromirror array is used to acquire the reflected light from the surface of the object to be measured, and the imaging unit is used to receive the light processed by the second micromirror array.
[0020] In the dual-zoom system, the projection unit includes a projector and a first beam splitter, and the imaging unit includes a camera and a second beam splitter; the projector is used to emit structured light, and the first beam splitter is arranged in the optical path between the projector and the first micromirror array; the second beam splitter is arranged on the output optical path of the first beam splitter and is located on the input optical path of the second micromirror array. The second beam splitter is used to project the structured light onto the surface of the object to be measured; the camera is used to receive the light processed by the second micromirror array.
[0021] Beneficial effects:
[0022] The present invention provides a method for acquiring three-dimensional information of a dual-zoom system. By integrating two micromirror arrays, it realizes the precise capture of two-dimensional super-depth-of-field all-focus images and effectively solves the problem of height calculation errors faced by traditional 3D imaging technologies in the absence of two-dimensional texture information. The synergistic effect of the two micromirror arrays not only ensures the high precision of three-dimensional data but also retains the texture details of the scene, enabling accurate height information to be obtained even in areas with scarce texture information, and thus generating high-precision three-dimensional data with rich texture details. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is the first logical flowchart of the three-dimensional information acquisition method provided by the present invention;
[0024] Figure 2 It is the second logical flowchart of the three-dimensional information acquisition method provided by the present invention;
[0025] Figure 3 It is the third logical flowchart of the three-dimensional information acquisition method provided by the present invention;
[0026] Figure 4 It is the fourth logical flowchart of the three-dimensional information acquisition method provided by the present invention;
[0027] Figure 5 It is the fifth logical flowchart of the three-dimensional information acquisition method provided by the present invention;
[0028] Figure 6 It is the sixth logical flowchart of the three-dimensional information acquisition method provided by the present invention;
[0029] Figure 7 It is the seventh logical flowchart of the three-dimensional information acquisition method provided by the present invention;
[0030] Figure 8 It is the optical path structure diagram of the dual-zoom system provided by the present invention.
[0031] Description of main component symbols: 11 - projector, 12 - first beam splitter, 2 - first micromirror array, 3 - second micromirror array, 41 - second beam splitter, 42 - camera, 5 - object to be measured. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0032] The present invention provides a dual-zoom system and a method for acquiring three-dimensional information thereof. To make the purpose, technical solution, and effects of the present invention clearer and more definite, the following further elaborates on the present invention with reference to the accompanying drawings and by way of examples.
[0033] In the description of the present invention, it should be understood that terms such as "installation" and "connection" should be understood in a broad sense. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0034] Please refer to Figure 1 , the present invention provides a three-dimensional information acquisition method for a dual-zoom system. The dual-zoom system includes a control device, and a projection unit, a first micromirror array 2, a second micromirror array 3, and an imaging unit that are electrically connected to the control device respectively; the three-dimensional information acquisition method includes:
[0035] 101. Adjust the working states of the projection unit and the first micromirror array 2 so that the projection end formed by the projection unit and the first micromirror array 2 operates in the coaxial light mode.
[0036] In this embodiment, before acquiring the two-dimensional super-depth-of-field image, the projection end is equivalent to a coaxial light source; the coaxial light source, with its characteristics of high brightness and uniform light, helps to reduce shadows and reflections in the image, thereby improving the clarity and contrast of the image; in addition, the design of the coaxial light source can eliminate the shadows caused by the uneven surface of the object, ensure that the light irradiates the sample uniformly from the same direction and is captured by the imaging unit, thereby reducing scattering and reflection and reducing image noise; by making the projection end operate in the coaxial light mode, it not only helps to present the details of the object to be measured 5 on different focal planes, but also simplifies the design and calibration process of the imaging system, because the coaxial light source is parallel to the optical axis of the microscope lens and no complex adjustment is required to ensure alignment.
[0037] 102. Control the second micromirror array 3 to start zooming based on a preset second zoom parameter. During the zooming process, acquire the two-dimensional image data collected by the imaging unit in real time and process it to generate a two-dimensional super-depth-of-field image.
[0038] 103. Adjust the working state of the second micromirror array 3. When the image collected by the imaging unit is clear, fix the step parameter of the second micromirror array 3.
[0039] In this embodiment, before acquiring the surface height information of the object to be measured 5, it is necessary to fix the parameters of the second micromirror array 3 to lock the focal length of the imaging lens of the imaging end formed by the second micromirror array 3 and the imaging unit; the micromirror array, as a spatial light modulator, realizes the optical switch by precisely controlling the rotation of the mirror of each micromirror unit, and then determines the modulation coefficient by controlling the optical switch time; fixing the parameters of the second micromirror array 3 helps to ensure the stability and accuracy of imaging, avoid imaging blur or distortion caused by the change of the focal length during the measurement process, thereby affecting the accuracy of the height information; at the same time, this step also helps to simplify the measurement process, improve the measurement efficiency, and provide convenience for subsequent data processing and analysis.
[0040] 104. Control the first micromirror array 2 to start zooming based on a preset first zoom parameter. During the zooming process, acquire the scanning information fed back by the first micromirror array 2 and the scanning image data collected by the imaging unit in real time, and obtain the surface height information based on the scanning information and the scanning image data;
[0041] 105. Fuse the two-dimensional super-depth-of-field image and the surface height information to generate three-dimensional information including object texture information.
[0042] The three-dimensional information acquisition method disclosed in this application realizes the precise capture of two-dimensional super-depth-of-field all-focus images by integrating two micromirror arrays, and effectively solves the height calculation error problem faced by traditional 3D imaging technologies in the absence of two-dimensional texture information; the synergistic effect of the two micromirror arrays not only ensures the high precision of three-dimensional data, but also retains the texture details of the scene, enabling accurate height information to be obtained even in areas with scarce texture information, and then generating high-precision three-dimensional data with rich texture details.
[0043] Further, adjusting the working states of the projection unit and the first micromirror array 2 so that the projection end formed by the projection unit and the first micromirror array 2 operates in the coaxial light mode includes:
[0044] 201. Adjust the light source mode of the projection unit to a single light always-on mode, and adjust the step parameter of the first micromirror array 2 to a preset intermediate position, so that the projection end formed by the projection unit and the first micromirror array 2 operates in the coaxial light mode;
[0045] In this embodiment, when the projector 11 of the projection unit uses a single light always-on mode as the light source, the projector 11 can be regarded as a conventional light source; further, by adjusting the step parameter of the first micromirror array 2 to a preset intermediate position, the fixation of the projection end lens focal length can be achieved; thus, the projection end formed by the projection unit and the first micromirror array 2 will operate in the coaxial light mode, equivalent to a coaxial light source.
[0046] 202. Or turn off the projection unit, turn on a preselected ring light power supply, and adjust the step parameter of the first micromirror array 2 to a preset intermediate position, so that the first micromirror array 2 operates in the peripheral ring light mode;
[0047] In this embodiment, in the peripheral annular light mode, the projector 11 is in the off state, and the projection end does not need to project structured light onto the object surface, so the structured light projection and zoom scanning tasks are no longer performed. At this time, the step parameter of the first micromirror array 2 is fixed at the middle default position, which can maintain the stability of the optical structure at the projection end and avoid the resulting light interference with the illumination effect of the annular light. Therefore, under the stable illumination of the peripheral annular light, the camera 42 of the imaging unit can smoothly obtain a two-dimensional super-depth-of-field image by means of the zoom function of the second micromirror array 3.
[0048] In this embodiment, by using the coaxial light source mode for the projection end to work, two-dimensional image data applicable to the measured object 5 with uniform surface reflection characteristics and simple texture can be obtained; while using the peripheral ambient light mode to obtain two-dimensional image data is applicable to the measured object 5 with specific requirements for the light incident angle or being more sensitive to the light emitted by the projector 11.
[0049] Further, please refer to Figure 2 , controlling the second micromirror array 3 to start zooming based on the preset second zoom parameter, and during the zooming process, real-time obtaining the two-dimensional image data collected by the imaging unit and processing it to generate a two-dimensional super-depth-of-field image, including:
[0050] 301. Obtain the preset second zoom parameter, and control the second micromirror array 3 to perform a fast zoom operation based on the preset second zoom parameter. The preset second zoom parameter includes a zoom start position, a zoom stop position, and a zoom step size.
[0051] In this embodiment, during the acquisition process of the two-dimensional super-depth-of-field image, when setting the second micromirror array 3, the start position and the end position define the zoom range of the second micromirror array 3, and the step size parameter determines the magnitude of each zoom. It directly affects the number and resolution of the collected images. For example, if the start position is set to 10, the end position is set to 50, and the step size is 5, then the second micromirror array 3 will zoom in the range from 10 to 50 at intervals of 5 to collect two-dimensional images at different focal lengths. By obtaining the preset second zoom parameter and controlling the second micromirror array 3 to perform a fast zoom operation based on these parameters, precise control of the zoom process is achieved.
[0052] 302. During the zooming process, real-time obtain the two-dimensional images at different focal lengths collected by the imaging unit, and integrate multiple two-dimensional images to obtain two-dimensional image data.
[0053] 303. Process the two-dimensional image data using the EDOF algorithm to obtain a two-dimensional super-depth-of-field image.
[0054] In this embodiment, the EDOF algorithm is used to process two-dimensional image data, further enhancing the clarity and depth-of-field effect of the image; the EDOF algorithm can utilize the redundant information in the image and obtain a two-dimensional super-depth-of-field image through an optimized algorithm, enabling the image to have better clarity and detail performance within the depth-of-field range; this processing not only improves the visual effect of the image but also provides reliable data support for the subsequent three-dimensional information fusion process.
[0055] Further, please refer to Figure 3 , the process of using the EDOF algorithm to process two-dimensional image data to obtain a two-dimensional super-depth-of-field image includes:
[0056] 401. Perform preprocessing and feature extraction on each of the multiple two-dimensional images included in the two-dimensional image data one by one to obtain multiple two-dimensional feature images including feature descriptors;
[0057] In this embodiment, first, perform frame-by-frame preprocessing on the image dataset containing multiple two-dimensional images. The specific operations include: performing noise reduction processing on the two-dimensional image using a median filter to reduce image noise interference; implementing grayscale processing to facilitate subsequent image analysis; using feature point registration technology to register the two-dimensional image to ensure that the images share a unified coordinate system; subsequently, use the scale-invariant feature transform algorithm to extract features including texture from the two-dimensional image and select appropriate feature descriptors for the two-dimensional image after feature extraction to facilitate subsequent feature matching and fusion.
[0058] 402. Perform feature matching between different two-dimensional feature images, and based on the matching results, use the weighted average method to fuse the feature points in different two-dimensional feature images to generate a depth map;
[0059] In this embodiment, after generating the depth map, the bilinear interpolation algorithm can be used to smooth the depth map to reduce depth mutations.
[0060] 403. Reconstruct a two-dimensional super-depth-of-field image based on the two-dimensional image data and the generated depth map;
[0061] In this embodiment, based on the two-dimensional image data and the generated depth map, use the multi-scale fusion technology to synthesize the image information of different focal planes onto a single plane to achieve the reconstruction of the two-dimensional super-depth-of-field image; then, perform post-processing steps on the reconstructed two-dimensional super-depth-of-field image, including image sharpening, contrast enhancement, etc., aiming to improve the visual quality of the image; finally, use the signal-to-noise ratio evaluation technology to evaluate the quality of the reconstructed two-dimensional super-depth-of-field image to ensure that it meets the established quality standards.
[0062] Further, please refer to Figure 4, when adjusting the working state of the second micromirror array 3, when the image collected by the imaging unit is clear, fixing the step parameter of the second micromirror array 3 includes:
[0063] 501. Obtain the feature information of the object to be measured 5, and the feature information includes the object size and the object shape;
[0064] 502. Based on the feature information of the object to be measured 5, match a parameter model in a preset model library, and adjust the working state of the second micromirror array 3 based on the matched parameter model;
[0065] In this embodiment, based on the feature information of the object to be measured 5, a preset parameter model is selected; the parameter models in the preset model library are trained based on the historical data of similar objects to be measured 5, and can automatically adjust the parameters of the second micromirror array 3 to adapt to different objects to be measured 5, realizing adaptive imaging of the object to be measured 5, improving the imaging efficiency and imaging quality; after loading the parameter model, the system automatically adjusts the parameters of the second micromirror array 3 to achieve the best imaging effect. At this time, observe the viewfinder screen of the observation camera 42 to confirm whether the imaging is clear.
[0066] 503. When the image collected by the imaging unit is clear, record the parameter settings of the second micromirror array 3 and fix the step parameter;
[0067] In this embodiment, when the step parameter of the second micromirror array 3 is fixed, the focal length of the imaging end lens is locked, which not only simplifies the imaging process, but also improves the imaging stability and consistency, providing strong support for subsequent three-dimensional information generation.
[0068] Further, please refer to Figure 5 , controlling the first micromirror array 2 to start zooming based on a preset first zoom parameter. During the zooming process, real-time obtain the scanning information fed back by the first micromirror array 2 and the scanning image data collected by the imaging unit, and obtain the surface height information based on the scanning information and the scanning image data, including:
[0069] 601. Obtain a preset first zoom parameter, and control the first micromirror array 2 to start zooming based on the preset first zoom parameter, and the preset first zoom parameter includes a zoom range and a zoom speed;
[0070] In this embodiment, during the process of obtaining the surface height information, it is crucial to adjust the parameters of the first micromirror array 2; the zoom range determines the scanning coverage distance of the structured light projected by the projector 11 along the depth direction on the object surface, and the zoom speed controls the scanning rate of the structured light; for example, when measuring a large object, a larger zoom range needs to be set to ensure that the structured light can cover all parts of the object; while when there is a high requirement for measurement efficiency, the zoom speed can be appropriately increased; by obtaining the preset first zoom parameters and precisely controlling the first micromirror array 2 to start zooming based on these parameters, the controllability and accuracy of the zoom process are achieved.
[0071] 602. During the zoom process, the scanning information fed back by the first micromirror array 2 and the scanning image data collected by the imaging unit are obtained in real time; the scanning information is step_number information, and the scanning image data includes multiple scanning images, and each scanning image contains the structured light distribution information corresponding to a specific step_number.
[0072] In this embodiment, the scanning information includes step_number information, which helps to track each change during the zoom process; while the scanning image data contains multiple scanning images, and each image corresponds to the structured light distribution information under a specific step_number, which provides key information for reconstructing the three-dimensional shape of the object 5 to be measured.
[0073] 603. Adopt a vertical measurement algorithm to obtain the surface height information of the object 5 to be measured based on the scanning information and the scanning image data.
[0074] In this embodiment, by adopting a vertical measurement algorithm and based on the scanning information and the scanning image data, the surface height information of the object 5 to be measured can be accurately obtained; the vertical measurement algorithm can make full use of the structured light distribution information in the scanning information and the scanning image data, and through calculation and analysis, obtain the height distribution on the surface of the object 5 to be measured, so as to achieve high-precision three-dimensional measurement; not only improves the measurement accuracy, but also provides reliable data support for the subsequent generation of three-dimensional information.
[0075] Further, please refer to Figure 6 The adopting of the vertical measurement algorithm to obtain the surface height information of the object 5 to be measured based on the scanning information and the scanning image data includes:
[0076] 701. Calculate the modulation degree of the structured light at each pixel point in each scanning image to generate a modulation degree distribution image corresponding to the scanning image.
[0077] In this embodiment, the vertical measurement algorithm first processes each input scanned image, calculates the modulation degree of structured light for each pixel point in the image. The modulation degree is a parameter characterizing the intensity change of structured light at a specific pixel point. By applying the mathematical model of the modulation degree, the calculation of the modulation degree is performed on all pixel points of the scanned image, and finally a modulation degree distribution image is generated.
[0078] 702. Search for the maximum value of the modulation degree at the position of each pixel point in each modulation degree distribution image, and record the step_number corresponding to the maximum value of the modulation degree.
[0079] In this embodiment, when analyzing each scanned image, the modulation degree distribution image is processed by the vertical measurement algorithm to determine the peak value of the modulation degree at the position of each pixel point, and the corresponding step number is recorded; this process is based on the principle of structured light scanning, that is, when the structured light beam is precisely focused on a specific point on the surface of the object, the modulation degree value at this point will reach the peak.
[0080] 703. According to the preset mapping relationship between step_number and height, convert the recorded step_number into the height value at the corresponding position on the surface of the measured object 5, and obtain the surface height information of the measured object 5. The surface height information of the measured object 5 includes the height information of each position on the surface of the measured object 5.
[0081] In this embodiment, the preset mapping relationship between step_number and height can be obtained through system calibration; for example, a standard object with a known height is scanned to construct a correspondence table between step_number and the actual height; through this method, the height data of each position on the object surface can be calculated, providing basic information for the generation of three-dimensional information.
[0082] Further, please refer to Figure 7 , the fusion of the two-dimensional super-depth-of-field image and the surface height information to generate three-dimensional information including object texture information includes:
[0083] 801. Perform format verification on the two-dimensional super-depth-of-field image and the surface height information to ensure that the two-dimensional super-depth-of-field image and the surface height information are consistent in terms of the number of pixel points and the arrangement order.
[0084] In this embodiment, first, the consistency between the surface height information in pointxyz format and the two-dimensional super-depth-of-field image data is checked to ensure that the number of pixel points and the arrangement order match. Specifically, each point in the pointxyz dataset is traversed through an algorithm and matched with the pixel points in the two-dimensional super-depth-of-field image to verify the corresponding relationship of the spatial positions. Further, a high-precision tool is used to accurately verify the x, y, and z coordinate information of the pointxyz data points to ensure that the data point coordinates meet the predetermined accuracy standard. Still further, the resolution and color channels of the two-dimensional super-depth-of-field image are checked to ensure compliance with the experimental requirements. Specifically, the pixel density and clarity of the image are evaluated to ensure that the magnification and detail display meet the analysis needs, and the accuracy of the RGB color mode, color saturation, and contrast are checked to ensure the authenticity and accuracy of the image.
[0085] 802. Based on the principle of one-to-one correspondence of pixel point positions, the two-dimensional super-depth-of-field image and surface height information that have passed the format check are subjected to data fusion to generate the two-dimensional super-depth-of-field image and surface height information.
[0086] In this embodiment, based on the principle of precise correspondence of pixel point positions, the two-dimensional super-depth-of-field image and surface height information that have passed the format check are used as input data, and the data is fused through the application of a three-dimensional data fusion algorithm, such as the Poisson fusion algorithm. During the data fusion process, the texture information of the two-dimensional super-depth-of-field image is accurately mapped to each corresponding point of the surface height information, achieving seamless integration of the data. This process finally generates high-precision three-dimensional data containing texture information and the surface height information corresponding to each pixel point, which is represented in pointxyzrgb format. The fused data is then stored in a database or an external storage device for subsequent analysis and application needs. Further, since the acquisition of the surface height information and the collection of the two-dimensional super-depth-of-field image share the same imaging system, that is, a dual-zoom system, and the measurement is coaxial with the camera 42, there is no shadow occlusion problem, so the direct fusion of two-dimensional and three-dimensional data can be achieved. Based on the precise correspondence of pixel point positions, a high-precision three-dimensional dataset containing clear texture information can be constructed without a complex calibration process, which has the advantages of convenience and speed in the data fusion process.
[0087] Please refer to Figure 8The present invention also provides a dual zoom system accordingly, including a control device and a projection unit, a first micromirror array 2, a second micromirror array 3 and an imaging unit electrically connected to the control device respectively, wherein the control device adopts any of the three-dimensional information acquisition methods described above to realize work control; the projection unit is used to emit structured light to the first micromirror array 2, the first micromirror array 2 is used to perform zoom processing on the structured light and then project the structured light onto the surface of the object to be measured 5, the second micromirror array 3 is used to obtain reflected light from the surface of the object to be measured 5, and the imaging unit is used to receive light processed by the second micromirror array 3.
[0088] For further information, see Figure 8 The projection unit includes a projector 11 and a first beam splitter 12, and the imaging unit includes a camera 42 and a second beam splitter 41; the projector 11 is used to emit structured light, and the first beam splitter 12 is arranged in the optical path between the projector 11 and the first micromirror array 2; the second beam splitter 41 is arranged on the output optical path of the first beam splitter 12 and is located on the input optical path of the second micromirror array 3, and the second beam splitter 41 is used to project the structured light onto the surface of the object 5 to be measured; the camera 42 is used to receive the light processed by the second micromirror array 3.
[0089] The dual zoom system disclosed in the present application is designed based on a micromirror array and is divided into a projection end and an imaging end. The projection end zoom system can realize three-dimensional measurement of the vertical method, and use the calibration data of the micromirror array to complete the height information calculation. Without complex calibration, it can quickly realize three-dimensional measurement based on modulation. The dual zoom system combines the projection end and the imaging end, which not only has a high utilization rate of optical elements and a simple structure, but also can obtain a two-dimensional super-depth of field full-focus image, effectively avoiding height calculation errors caused by lack of two-dimensional texture information. Through the cooperation of two micromirror arrays, the dual zoom system can generate high-precision three-dimensional information containing texture, providing strong support for three-dimensional measurement and reconstruction.
[0090] It is understandable that those skilled in the art can make equivalent substitutions or changes based on the technical solution and inventive concept of the present invention, and all these changes or substitutions should fall within the protection scope of the present invention.
Claims
1. A three-dimensional information acquisition method for a dual-zoom system, characterized in that, The dual-zoom system includes a control device, and a projection unit, a first micromirror array, a second micromirror array, and an imaging unit that are electrically connected to the control device respectively; the three-dimensional information acquisition method includes: Adjust the working states of the projection unit and the first micromirror array so that the projection end formed by the projection unit and the first micromirror array operates in the coaxial light mode; Based on a preset second zoom parameter, control the second micromirror array to start zooming. During the zooming process, continuously acquire the two-dimensional image data collected by the imaging unit and process it to generate a two-dimensional super-depth-of-field image; Adjust the working state of the second micromirror array. When the image collected by the imaging unit is clear, fix the step parameter of the second micromirror array; Based on a preset first zoom parameter, control the first micromirror array to start zooming. During the zooming process, continuously acquire the scanning information fed back by the first micromirror array and the scanning image data collected by the imaging unit, and obtain the surface height information based on the scanning information and the scanning image data; Fuse the two-dimensional super-depth-of-field image and the surface height information to generate three-dimensional information including object texture information.
2. The three-dimensional information acquisition method of a dual zoom system according to claim 1, characterized in that The adjusting the working states of the projection unit and the first micromirror array so that the projection end formed by the projection unit and the first micromirror array operates in the coaxial light mode includes: Adjust the light source mode of the projection unit to the single light constant-on mode, and adjust the step parameter of the first micromirror array to a preset intermediate position, so that the projection end formed by the projection unit and the first micromirror array operates in the coaxial light mode; Or turn off the projection unit, turn on a preselected annular light source, and adjust the step parameter of the first micromirror array to a preset intermediate position, so that the first micromirror array operates in the peripheral annular light mode.
3. The three-dimensional information acquisition method of a dual zoom system according to claim 1, characterized in that, The based on a preset second zoom parameter, control the second micromirror array to start zooming. During the zooming process, continuously acquire the two-dimensional image data collected by the imaging unit and process it to generate a two-dimensional super-depth-of-field image includes: Obtain a preset second zoom parameter, and based on the preset second zoom parameter, control the second micromirror array to perform a fast zoom operation. The preset second zoom parameter includes a zoom start position, a zoom stop position, and a zoom step; During the zooming process, continuously acquire the two-dimensional images at different focal lengths collected by the imaging unit, and integrate multiple two-dimensional images to obtain two-dimensional image data; Process the two-dimensional image data using the EDOF algorithm to obtain a two-dimensional super-depth-of-field image.
4. The three-dimensional information acquisition method of a dual zoom system according to claim 3, characterized in that, The processing the two-dimensional image data using the EDOF algorithm to obtain a two-dimensional super-depth-of-field image includes: Perform preprocessing and feature extraction processing on each of the multiple two-dimensional images included in the two-dimensional image data to obtain multiple two-dimensional feature images including feature descriptors; Perform feature matching between different two-dimensional feature images, and according to the matching results, fuse the feature points in different two-dimensional feature images using the weighted average method to generate a depth map; Reconstruct a two-dimensional super-depth-of-field image according to the two-dimensional image data and the generated depth map.
5. A three-dimensional information acquisition method for a dual zoom system according to claim 1, characterized in that The adjusting the working state of the second micromirror array. When the image collected by the imaging unit is clear, fix the step parameter of the second micromirror array includes: Obtain the feature information of the object to be measured, where the feature information includes the object size and the object shape; Based on the characteristic information of the object under test, match the parameter model in the preset model library, and adjust the working state of the second micromirror array based on the matched parameter model; When the image collected by the imaging unit is clear, record the parameter settings of the second micromirror array and fix the step parameter.
6. The three-dimensional information acquisition method of a dual zoom system according to claim 1, characterized in that, Based on the preset first zoom parameter, control the first micromirror array to start zooming. During the zooming process, real-time obtain the scanning information fed back by the first micromirror array and the scanning image data collected by the imaging unit. Based on the scanning information and the scanning image data, obtain the surface height information, including: Obtain the preset first zoom parameter, and control the first micromirror array to start zooming based on the preset first zoom parameter. The preset first zoom parameter includes the zoom range and the zoom speed; During the zooming process, real-time obtain the scanning information fed back by the first micromirror array and the scanning image data collected by the imaging unit; The scanning information is the step_number information, and the scanning image data includes multiple scanning images, and each scanning image contains the structured light distribution information corresponding to a specific step_number; Adopt a vertical measurement algorithm to obtain the surface height information of the object under test based on the scanning information and the scanning image data.
7. The three-dimensional information acquisition method of a dual zoom system according to claim 6, characterized in that The adopting a vertical measurement algorithm to obtain the surface height information of the object under test based on the scanning information and the scanning image data includes: Calculate the modulation degree of the structured light at each pixel point in each scanning image to generate a modulation degree distribution image corresponding to the scanning image; Search for the maximum value of the modulation degree at the position of each pixel point in each modulation degree distribution image, and record the step_number corresponding to the maximum value of the modulation degree; According to the preset mapping relationship between step_number and height, convert the recorded step_number into the height value of the corresponding position on the surface of the object under test to obtain the surface height information of the object under test. The surface height information of the object under test includes the height information of each position on the surface of the object under test.
8. A method for obtaining three-dimensional information of a dual zoom system according to claim 1, characterized in that, The fusing the two-dimensional super-depth-of-field image and the surface height information to generate three-dimensional information including object texture information includes: Perform format verification on the two-dimensional super-depth-of-field image and the surface height information to ensure that the two-dimensional super-depth-of-field image and the surface height information are consistent in the number of pixel points and the arrangement order; Based on the principle of one-to-one correspondence of pixel point positions, perform data fusion on the two-dimensional super-depth-of-field image and the surface height information that have passed the format verification to generate the two-dimensional super-depth-of-field image and the surface height information.
9. A dual zoom system, characterized in that, It includes a control device and a projection unit, a first micromirror array, a second micromirror array, and an imaging unit that are electrically connected to the control device respectively. The control device uses the three-dimensional information acquisition method described in any one of claims 1-8 to implement work control; The projection unit is used to emit structured light to the first micromirror array. The first micromirror array is used to perform zoom processing on the structured light and then project the structured light onto the surface of the object under test. The second micromirror array is used to obtain the reflected light from the surface of the object under test. The imaging unit is used to receive the light processed by the second micromirror array.
10. A dual zoom system according to claim 9, characterized in that, The projection unit includes a projector and a first beam splitter, and the imaging unit includes a camera and a second beam splitter; the projector is configured to emit structured light, and the first beam splitter is disposed in the optical path between the projector and the first micromirror array; the second beam splitter is disposed on the output optical path of the first beam splitter and in the input optical path of the second micromirror array, and the second beam splitter is configured to project the structured light onto the surface of the object to be measured; the camera is configured to receive the light processed by the second micromirror array.
Citation Information
Patent Citations
Device and method for exposing light-sensitive layer
CN110337611A
High-precision three-dimensional reconstruction method and device based on large depth of field and related components thereof
CN113160393A