Three-dimensional reconstruction method and system based on metasurface structured light
Patent Information
- Application Number
- CN202410992063.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-01
AI Technical Summary
然而,通过现有的诸如光学投影仪和衍射光学元件等结构光技术无法全部实现上述标准,这极大地限制了基于结构光的三维重建的应用范围
[0036]首先获取全空间投影光点对应的多帧图像,所述多帧图像基于预先设置的双目立体摄像机拍摄所述全空间投影光点得到,所述全空间投影光点基于预先设置于目标三维空间中央的超表面生成的随机点阵列结构光得到;然后根据各帧图像中的物体深度信息和所述双目立体摄像机的位姿信息,同步构建各帧图像中的物体对应的三维点云;最后实时拼接连续的所述各帧图像中的物体对应的三维点云,得到所述目标三维空间中的物体对应的表面重建模型。本申请中,随机点阵列结构光通过超表面实现,可以产生数万个随机点并投射至整个4π自由空间,提高了视场角的范围和三维重建的精度;根据各帧图像中的物体深度信息和双目立体摄像机的位姿信息,同步构建各帧图像中的物体对应的三维点云,能够实现三维点云的实时构建,进而提高三维重建的速度。
Smart Images

Figure CN118887339A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of three-dimensional scene reconstruction, and in particular to a three-dimensional reconstruction method and system based on metasurface structured light. Background Art
[0002] 3D reconstruction based on structured light has wide applications in artificial intelligence, surveying and mapping, precision manufacturing and other fields. An ideal 3D reconstruction system has a wide field of view, high precision and high-speed reconstruction. However, the above standards cannot be fully achieved through existing structured light technologies such as optical projectors and diffractive optical elements, which greatly limits the application scope of 3D reconstruction based on structured light.
[0003] Therefore, how to improve the field of view, accuracy and speed of three-dimensional reconstruction is a problem that needs to be solved urgently. Summary of the invention
[0004] In view of the above problems existing in the prior art, the purpose of this application is to propose a three-dimensional reconstruction method and system based on metasurface structured light, so as to at least solve the technical problem of how to improve the field of view, accuracy and speed of three-dimensional reconstruction.
[0005] To achieve the above objectives and other related objectives, the present application provides a three-dimensional reconstruction method based on metasurface structured light, the method comprising:
[0006] Acquire a multi-frame image corresponding to the full-space projection light spot, wherein the multi-frame image is obtained by photographing the full-space projection light spot based on a preset binocular stereo camera, and the full-space projection light spot is obtained based on a random point array structured light generated by a hypersurface preset in the center of the target three-dimensional space;
[0007] Synchronously constructing a three-dimensional point cloud corresponding to the object in each frame image according to the depth information of the object in each frame image and the position information of the binocular stereo camera;
[0008] The three-dimensional point clouds corresponding to the objects in the continuous frame images are spliced in real time to obtain a surface reconstruction model corresponding to the objects in the target three-dimensional space.
[0009] In one embodiment of the present application, the unit diffraction structure of the metasurface is a dielectric nanobrick, the phase control amount of the dielectric nanobrick on the incident light wave is given by the geometric phase, the material of the dielectric nanobrick is amorphous silicon with a refractive index n=3.227 and an extinction coefficient k=0.04 at the working wavelength, and the substrate of the dielectric nanobrick is silicon dioxide.
[0010] In one embodiment of the present application, the dielectric nanobrick has a length of 250 nm, a width of 120 nm, a height of 280 nm, and a center spacing of 300 nm.
[0011] In one embodiment of the present application, the operating wavelength of the metasurface is 650 nm, a single period of the metasurface includes 200×200 dielectric nanobricks, and the metasurface includes 25 single periods.
[0012] In one embodiment of the present application, the diffraction pattern irradiating the metasurface includes an array of 10,000 centrosymmetric random points.
[0013] In one embodiment of the present application, before synchronously constructing the three-dimensional point cloud corresponding to the object in each frame image according to the object depth information in each frame image and the position information of the binocular stereo camera, it also includes:
[0014] According to the internal and external parameters of the binocular stereo camera, the left view and the right view are respectively subjected to distortion elimination and row alignment operations;
[0015] Extracting the two-dimensional coordinates of image points with obvious features in each frame of image;
[0016] Matching image points with the same name in the left view and the right view, and calculating the disparity according to the two-dimensional coordinates, wherein the disparity is the difference between the projections of the same point in space on the image planes of two cameras;
[0017] The depth value of each pixel is calculated according to the disparity to obtain the depth information of the object in each frame image.
[0018] In one embodiment of the present application, the depth value of each pixel is represented as follows:
[0019]
[0020] Where Z is the depth value of each pixel, L is the baseline, f is the focal length of the camera lens, and x is l -x r is the parallax, x l is the horizontal coordinate of the object point in the left view, x r is the horizontal coordinate of the object point in the right view.
[0021] In one embodiment of the present application, the posture information of the binocular stereo camera includes the front and rear posture transformation of the camera, and the three-dimensional point cloud corresponding to the object in each frame image is synchronously constructed according to the object depth information in each frame image and the posture information of the binocular stereo camera, including:
[0022] According to the front-to-back three-dimensional coordinate changes of the same feature point in two adjacent frames of images, the front-to-back position transformation of the camera is obtained by using the rotation and translation matrix in the internal and external parameters of the binocular stereo camera;
[0023] According to the front-back posture transformation of the camera, a continuous motion trajectory of the binocular stereo camera during shooting is obtained;
[0024] Detecting whether the image captured by the binocular stereo camera is a place that has been visited based on similarity, and if the detection result is yes, adjusting the continuous motion trajectory based on the depth information of the same point;
[0025] Obtaining a camera pose matrix according to the adjusted continuous motion trajectory and object depth information in each frame image;
[0026] The camera pose matrix is transformed to splice the depth values into the same coordinate system to obtain a three-dimensional point cloud corresponding to the object in each frame image.
[0027] In one embodiment of the present application, a three-dimensional reconstruction system based on metasurface structured light is also provided, the system comprising:
[0028] The metasurface is set in the center of the target three-dimensional space to generate random point array structured light to obtain full-space projection light points;
[0029] A binocular stereo camera, used for photographing the full-space projection light spots to obtain multiple frames of images corresponding to the full-space projection light spots;
[0030] The three-dimensional reconstruction system device is used to synchronously construct a three-dimensional point cloud corresponding to the object in each frame image according to the depth information of the object in each frame image and the posture information of the binocular stereo camera, and to splice the three-dimensional point clouds corresponding to the objects in the continuous frame images in real time to obtain a surface reconstruction model corresponding to the object in the target three-dimensional space.
[0031] In one embodiment of the present application, the unit diffraction structure of the metasurface is a dielectric nanobrick, the phase control amount of the dielectric nanobrick on the incident light wave is given by the geometric phase, the material of the dielectric nanobrick is amorphous silicon with a refractive index n=3.227 and an extinction coefficient k=0.04 at the working wavelength, and the substrate of the dielectric nanobrick is silicon dioxide;
[0032] The dielectric nanobricks are 250 nm long, 120 nm wide, 280 nm high, and have a center spacing of 300 nm;
[0033] The working wavelength of the metasurface is 650 nm, a single period of the metasurface includes 200×200 dielectric nanobricks, and the metasurface includes 25 single periods;
[0034] The diffraction pattern illuminating the metasurface includes an array of 10,000 random points that are centrosymmetric.
[0035] Beneficial effects of the present invention:
[0036] First, a multi-frame image corresponding to the full-space projection light spot is obtained, and the multi-frame image is obtained based on the full-space projection light spot captured by a pre-set binocular stereo camera, and the full-space projection light spot is obtained based on the random point array structured light generated by the hypersurface pre-set in the center of the target three-dimensional space; then, according to the object depth information in each frame image and the posture information of the binocular stereo camera, a three-dimensional point cloud corresponding to the object in each frame image is synchronously constructed; finally, the three-dimensional point cloud corresponding to the object in each continuous frame image is spliced in real time to obtain a surface reconstruction model corresponding to the object in the target three-dimensional space. In this application, the random point array structured light is realized by a hypersurface, which can generate tens of thousands of random points and project them to the entire 4π free space, thereby improving the range of the field of view angle and the accuracy of three-dimensional reconstruction; according to the object depth information in each frame image and the posture information of the binocular stereo camera, the three-dimensional point cloud corresponding to the object in each frame image is synchronously constructed, which can realize the real-time construction of the three-dimensional point cloud, thereby improving the speed of three-dimensional reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0038] Figure 1 is a flow chart of a three-dimensional reconstruction method based on super-surface structured light shown in an exemplary embodiment of the present application;
[0039] Figure 2 is a schematic diagram of the efficiency of the emitted circularly polarized light of a single nanobrick shown in an exemplary embodiment of the present application;
[0040] Figure 3 is a schematic diagram showing a binocular stereoscopic imaging system working based on the triangle similarity principle, as shown in an exemplary embodiment of the present application;
[0041] Figure 4 It is a structural schematic diagram of a three-dimensional reconstruction system based on supersurface structured light shown as an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0044] First of all, it should be noted that 3D scene reconstruction technology has become an important cornerstone for many applications such as human-computer interaction, virtual reality, and automobile manufacturing due to its high degree of authenticity. In the current technical scope, 3D scene reconstruction mainly relies on three methods: lidar reconstruction, visual reconstruction, and structured light reconstruction.
[0045] Among them, the lidar reconstruction method uses the radar system to scan the surrounding environment and measure the time interval (TOF) from the emission to the return of the laser pulse to calculate the three-dimensional data such as the distance and angle of the target. However, this method is limited by the rotation scanning mechanism and the need for intensive pulse emission, resulting in a complex and large system structure. This makes it difficult for the system to make breakthroughs in miniaturization and precision, and faces challenges in the development of compact integrated devices.
[0046] Among them, the visual reconstruction method uses a camera to capture multi-view images of the target scene, uses the geometric relationship between the image and the real space to extract the depth value, and obtains the three-dimensional information of the entire scene through feature matching and point cloud stitching. Since the image taken by the camera in a single shot is already a two-dimensional picture, compared with the one-dimensional pulse of the lidar, visual reconstruction is easier to obtain a larger field of view (FOV). The larger the field of view, the more three-dimensional information of the target can be included, which improves the information capacity of the reconstruction result. But at the same time, the camera is sensitive to light, and too strong or too weak light will cause the system to introduce large calculation errors, or even fail to obtain depth information. In addition, for scenes that lack visual features, this pure visual solution based on image texture information is also difficult to obtain reliable reconstruction effects.
[0047] Among them, in recent years, thanks to the development of diffraction optics and on-chip image processing technology, three-dimensional reconstruction technology based on structured light has made important breakthroughs. This technology can effectively reduce the interference of ambient light by integrating dot matrix structured light into visual reconstruction, and actively give texture features to the target. It can achieve single-shot face modeling without mechanical scanning, thus making up for the shortcomings of radar solutions and pure vision solutions and greatly improving the efficiency and accuracy of three-dimensional reconstruction. Despite this, the principle of traditional optical components to regulate the phase of light waves based on Snell's law makes the device thick and difficult to miniaturize, and at the current level of technology, the coverage range of the projected dot matrix structured light is still limited (the field of view angle is generally only about 65°), which is difficult to meet the measurement requirements of a wider space and integration of three-dimensional reconstruction systems.
[0048] In some existing technologies, a pseudo-random coding point array is projected into space through a hypersurface, and three-dimensional information is obtained by using the uniqueness of local light point information, which constitutes an effective three-dimensional imaging method. In some existing technologies, a hypersurface with a 180° field of view is used to generate a point array in the transmission space to complete the three-dimensional imaging of space objects. However, in the above technologies, the field of view is limited to the transmission space, and the truly effective imaging range is smaller, and it is still difficult to approach the full space effect. And only a single picture can be imaged, it is not real-time, and the complete three-dimensional model of the target cannot be reconstructed. The full-space field of view can contain three-dimensional information in the complete 4π spatial range, which is conducive to the comprehensive perception of the surrounding environment, and the real-time performance can better perform interactive operations. Therefore, for the future development of three-dimensional reconstruction technology, pursuing the maximization of the field of view and the real-time operation is an extremely important direction.
[0049] Before describing the embodiments of the present application, the technical terms involved in the embodiments of the present application are described here:
[0050] Metasurfaces are ultra-thin artificial surfaces composed of periodically or non-periodically arranged subwavelength unit structures. They can obtain some parameter characteristics that exceed those of natural materials and have a strong ability to control the phase, polarization, propagation mode and other characteristics of the light field. With the characteristics of subwavelength characteristic size and multi-physical quantity light field control, when used as structured light projectors, metasurfaces show significant advantages of large field of view, small volume and high-density information, which accelerates their application in the field of 3D imaging.
[0051] In one embodiment of the present application, a three-dimensional reconstruction method based on metasurface structured light is provided. Figure 1 is a flow chart of a 3D reconstruction method based on super-surface structured light, shown in an exemplary embodiment of the present application. Figure 1 The three-dimensional reconstruction method based on the super surface structured light includes the following steps S110 to S130:
[0052] In step S110, multiple frames of images corresponding to the full-space projection light spots are obtained, and the multiple frames of images are obtained by photographing the full-space projection light spots based on a pre-set binocular stereo camera, and the full-space projection light spots are obtained based on random point array structured light generated by a hypersurface pre-set in the center of the target three-dimensional space.
[0053] In step S120, a three-dimensional point cloud corresponding to the object in each frame image is synchronously constructed according to the depth information of the object in each frame image and the position information of the binocular stereo camera.
[0054] In step S130, the three-dimensional point clouds corresponding to the objects in the continuous frame images are spliced in real time to obtain a surface reconstruction model corresponding to the object in the target three-dimensional space.
[0055] For example, the metasurface is placed in the center of the three-dimensional space so that the entire space is filled with projected light spots as evenly as possible. The structured light is realized through the resonant metasurface, which can generate tens of thousands of projected light spots and project them into the entire 4π free space. The binocular vision technology and stereo matching algorithm are combined to calculate the depth information of the dynamic image in real time to obtain the three-dimensional point cloud. Then, the three-dimensional point clouds of consecutive frames are spliced to achieve incremental point cloud reconstruction.
[0056] By adopting the above-mentioned embodiments provided by the present application, random point array structured light is realized through a metasurface, which can generate tens of thousands of random points and project them to the entire 4π free space, thereby improving the range of the field of view angle and the accuracy of three-dimensional reconstruction; according to the object depth information in each frame image and the posture information of the binocular stereo camera, the three-dimensional point cloud corresponding to the object in each frame image is synchronously constructed, which can realize real-time construction of the three-dimensional point cloud, thereby improving the speed of three-dimensional reconstruction.
[0057] In one embodiment of the present application, the unit diffraction structure of the metasurface is a dielectric nanobrick, the phase control amount of the dielectric nanobrick on the incident light wave is given by the geometric phase, the material of the dielectric nanobrick is amorphous silicon with a refractive index n=3.227 and an extinction coefficient k=0.04 at the working wavelength, and the substrate of the dielectric nanobrick is silicon dioxide.
[0058] Exemplarily, to achieve effective control of light waves in the entire space, the diffraction structure must be able to work in both transmission and reflection modes. A single scatterer composed of a dielectric nanostructure can use its own Mie resonance characteristics to control the scattering of light waves. By reasonably adjusting the resonance peak wavelength to distribute the transmittance-reflection light energy ratio, the formed metasurface can simultaneously control the light field in the transmission space and the reflection space. Based on this, the present application uses dielectric nanobricks as the unit diffraction structure of the full-space metasurface. The phase control amount of the dielectric nanobrick on the incident light wave is given by the geometric phase, that is, α is the nanobrick orientation angle, and its sign depends on the handedness of the incident circularly polarized light.
[0059] For example, in order to make the energy distribution of the metasurface diffracted light beam in the diffraction space more uniform, when designing the nanobrick structure, it is necessary to ensure that it has the same regulating effect on the light wave in the transflective mode. In this application, the metasurface working wavelength λ=650nm is designed. Amorphous silicon with a high refractive index (n=3.227) and a low extinction coefficient (k=0.04) at the working wavelength is used as the brick material, with silicon dioxide as the substrate.
[0060] In one embodiment of the present application, the dielectric nanobrick has a length of 250 nm, a width of 120 nm, a height of 280 nm, and a center spacing of 300 nm.
[0061] For example, the dielectric nanobrick has a length L = 250 nm, a width W = 120 nm, a height H = 280 nm, and a center spacing C = 300 nm. Figure 2 , Figure 2 is a schematic diagram of the efficiency of the emitted circularly polarized light of a single nanobrick shown in an exemplary embodiment of the present application, wherein T co With R co They represent the efficiency of transmitted circularly polarized light and the efficiency of reflected circularly polarized light, T cross With R cross They represent the efficiency of transmitted reverse circularly polarized light and the efficiency of reflected reverse circularly polarized light respectively. Figure 2 It can be seen that the reverse circularly polarized light efficiency of the transmission space and reflection space of the structure at the working wavelength is 30.23% and 27.90% respectively, that is, the energy ratio of the transmission and reflection space is close to 1: 1. In addition, the efficiency of the unwanted transmitted same-direction circularly polarized light that causes zero-order diffraction is 3.31%, and at the same time, the efficiency of the reflected same-direction circularly polarized light is 0.10%.
[0062] In one embodiment of the present application, the operating wavelength of the metasurface is 650 nm, a single period of the metasurface includes 200×200 dielectric nanobricks, and the metasurface includes 25 single periods.
[0063] Exemplarily, this embodiment provides a 4π full-space metasurface that projects dot matrix structured light to effectively reconstruct a three-dimensional model of a scene within a space with a side length of 2m. The periodic structure of the metasurface is closely related to the number of projection points. As the distance between the metasurface and the object increases, the distance between two adjacent points of the projection pattern becomes farther, and the energy density of a single point also decreases. Therefore, after analysis, when there are about 20,000 laser points in the entire space, the reconstruction accuracy and range can be well guaranteed. Since the nanobrick structure can work in transmission and reflection modes at the same time, only 10,000 bright spots are required for the metasurface projection pattern. In order to prevent the light points from being too densely distributed, resulting in too low single-point energy, and too sparsely distributed, resulting in too low imaging resolution, the bright spots are optimized to account for about 25% of all controllable points. Therefore, a single period of the metasurface contains 200×200 nanobricks, and a total of 5×5 periods are designed to reduce the structured light speckle caused by mutual interference between nano units. For λ=650nm, the maximum diffraction angle of the light spot is calculated to be θ=85.3°, the field of view in a single transmission space or reflection space can reach 170.6°, and the overall diffraction light spot can almost cover the entire 4π space range.
[0064] In one embodiment of the present application, the diffraction pattern illuminating the metasurface includes an array of 10,000 centrally symmetric random points.
[0065] Exemplarily, the metasurface projects structured light into space based on Fourier holograms, and it is also particularly important to design the target diffraction pattern. When there are regular-shaped objects in the target reconstruction scene, the ordered array of light spots may just avoid the edge of the object, resulting in the loss of contour information. In comparison, the random light spot array can always ensure that when there are enough light spots, some of the light spots fall on the edge of the object, and the reconstruction result contains more complete scene information. Therefore, the target diffraction pattern adopts the design of a random point array. This geometric phase-based metasurface has Hermitian conjugation characteristics in both transflective and reflective modes, that is, when the target diffraction pattern is a centrally symmetric style, the sample has the same far-field diffraction results for left-handed circularly polarized light and right-handed circularly polarized light. In summary, the designed target diffraction pattern is a centrally symmetric array of 10,000 random points.
[0066] For example, the Gerchberg-Saxton (GS) algorithm is used to restore the phase distribution of the target diffraction pattern, and the sample is manufactured by the standard electron beam lithography method. As a verification, the sample is placed in the center of a square box, irradiated with a laser, and photographed with a high-definition camera to obtain the actual diffraction effect. The metasurface can project random light spots into the entire 4π space range.
[0067] In one embodiment of the present application, before synchronously constructing the three-dimensional point cloud corresponding to the object in each frame image according to the object depth information in each frame image and the position information of the binocular stereo camera, it also includes:
[0068] According to the internal and external parameters of the binocular stereo camera, the left view and the right view are respectively subjected to distortion elimination and row alignment operations;
[0069] Extracting the two-dimensional coordinates of image points with obvious features in each frame of image;
[0070] Matching image points with the same name in the left view and the right view, and calculating the disparity according to the two-dimensional coordinates, wherein the disparity is the difference between the projections of the same point in space on the image planes of two cameras;
[0071] The depth value of each pixel is calculated according to the disparity to obtain the depth information of the object in each frame image.
[0072] In one embodiment of the present application, the depth value of each pixel is represented as follows:
[0073]
[0074] Where Z is the depth value of each pixel, L is the baseline, f is the focal length of the camera lens, and x is l -x r is the parallax, x l is the horizontal coordinate of the object point in the left view, x r is the horizontal coordinate of the object point in the right view.
[0075] Exemplarily, two identical camera structures are used to build a binocular stereo imaging system to collect random point array reflection images projected by the metasurface, thereby calculating the depth value of objects in three-dimensional space. The cameras are placed symmetrically at a certain deflection angle to expand the common field of view of the left and right images and increase the range of single depth imaging. It should be noted that the camera needs to be calibrated before shooting. The internal and external parameters of the camera are obtained by taking multiple standard checkerboard pictures, which are necessary conditions for extracting depth information.
[0076] For example, see Figure 3 , Figure 3 It is a schematic diagram showing a binocular stereoscopic imaging system working based on the triangle similarity principle as shown in an exemplary embodiment of the present application. Figure 3 In the figure, O and M represent the center of the camera lens and the image plane, the baseline is L, and point P is a point in space; α and β are the angles between the camera and the baseline, and between the camera and PO, respectively; x is the horizontal coordinate of the object point in the image coordinate system, and f is the focal length of the camera lens; the footnotes l and r represent the left and right cameras, respectively. Through geometric relationships and trigonometric functions, a mathematical model for depth calculation of spatial object points is established:
[0077]
[0078] When the deflection angle α l =αr =π / 2, the above formula becomes:
[0079]
[0080] Among them, x l -x r It stands for parallax, which means the difference in projection of the same point in space on the image planes of two cameras.
[0081] The main method for calculating the depth value is to find the same-name points in the left and right views, and then calculate the depth based on the relative position relationship of the cameras and the image coordinates of the same-name points. The whole process can be mainly divided into epipolar correction, feature extraction, stereo matching and depth calculation. The cameras are not placed in parallel, so the depth cannot be directly calculated using formula (2). If formula (1) is used for calculation, the amount of calculation will increase greatly, which will seriously slow down the calculation speed. For this reason, before formal processing, the internal and external parameters of the camera are used to perform distortion elimination and row alignment operations on the left and right views, namely, epipolar correction. The corrected left and right views only need to search for the same-name points on the same row, and formula (2) can be directly applied during depth calculation, which greatly improves the image processing efficiency. Then, the two-dimensional coordinates of the image points with obvious features in the image are extracted, which can reach the sub-pixel level, providing a higher precision option for subsequent matching. Then, the same-name image points are matched in the left and right views, and the disparity is calculated. In order to ensure the matching quality while reducing the amount of calculation, a semi-global matching algorithm called SGBM (Semi-Global Block Matching) is used. Finally, the obtained disparity is used to calculate the depth value of each pixel.
[0082] Exemplarily, the accuracy of extracting depth information by the binocular stereo imaging system constructed by the above embodiment is verified, and a random point array is projected onto two cartons placed in space. The two cartons are distributed in front and back gradients, with a relative depth of 48mm. After the hypersurface projects random points, the surface of the carton presents rich texture features. The target image is captured using a binocular camera, and the depth calculation is performed to obtain the depth map of the carton. The results show that the two cartons under test are clearly segmented from the background, and the depth distribution of each on the plane is uniform. The depth values of 3 points are randomly measured on each of the two cartons, and the average depth of the farther plane is 967.23mm, the average depth of the closer plane is 919.05mm, the average distance between the two planes is 48.18mm, and the average error is 0.375%, which verifies the accuracy of the system depth calculation. In order to further verify the performance of the system in complex scenes, one carton is rotated by a certain angle, and a cylinder is placed on the upper end of the other carton to extract its depth information and observe the surface morphology. The depth value obtained by surface measurement is visualized, and a three-dimensional point cloud of the target is formed after denoising and filtering. In order to intuitively display the depth distribution and surface restoration effect of the paper box, the obtained point cloud is fitted to obtain a surface model. The experimental results show that the system can accurately measure the depth value of spatial objects and effectively restore the complete morphological information of the scene. In addition, due to the application of stereo correction and semi-global feature matching in the depth recovery algorithm, the system realizes efficient single-frame image processing, so that the depth reconstruction can reach a real-time processing speed of at least 30fps while ensuring accuracy. Combined with the ultra-large field of view of the metasurface, the system provides powerful hardware and software support for real-time 3D scene reconstruction.
[0083] In one embodiment of the present application, the posture information of the binocular stereo camera includes the front and rear posture transformation of the camera, and the three-dimensional point cloud corresponding to the object in each frame image is synchronously constructed according to the object depth information in each frame image and the posture information of the binocular stereo camera, including:
[0084] According to the front-to-back three-dimensional coordinate changes of the same feature point in two adjacent frames of images, the front-to-back position transformation of the camera is obtained by using the rotation and translation matrix in the internal and external parameters of the binocular stereo camera;
[0085] According to the front-back posture transformation of the camera, a continuous motion trajectory of the binocular stereo camera during shooting is obtained;
[0086] Detecting whether the image captured by the binocular stereo camera is a place that has been visited based on similarity, and if the detection result is yes, adjusting the continuous motion trajectory based on the depth information of the same point;
[0087] Obtaining a camera pose matrix according to the adjusted continuous motion trajectory and object depth information in each frame image;
[0088] The camera pose matrix is transformed to splice the depth values into the same coordinate system to obtain a three-dimensional point cloud corresponding to the object in each frame image.
[0089] Exemplarily, in order to demonstrate the ultra-wide viewing angle accurate three-dimensional reconstruction based on the projection of dot matrix structured light on the super surface, the depth information of multiple frames of images (videos) taken by the camera motion is spliced according to the camera's posture transformation to obtain a wider space of three-dimensional point clouds, so as to establish an ultra-wide viewing angle three-dimensional model of the spatial scene. Here, an algorithm called SLAM (Simultaneous Localization and Mapping) is used. First, two nodes of the left and right cameras are established through the ROS (Robot Operating System) system. The nodes publish topics to transmit image data respectively, and then subscribe to two topics to receive data to realize the instant communication between the two cameras and the operating system, and use the real-time picture as the algorithm input. For each input frame of the image, its depth information can be extracted through the binocular stereo imaging system. The algorithm uses the rotation and translation matrix in the internal and external parameters of the camera to obtain the front and back posture transformation of the camera according to the front and back three-dimensional coordinate changes of the same feature point in two adjacent frames. By solving the continuous frames, the continuous motion trajectory of the camera during the scanning process is obtained. However, the cumulative error between frames will cause the trajectory to deviate seriously over a long period of time. To this end, the back-end uses a graph optimization method to incorporate the information of all previous frames into the calculation, so that the error can be evenly distributed to each observation. Another advantage of this method is that sparse algebra can be used to accelerate the solution process. In order to further ensure the accuracy of the camera pose, the camera is detected based on similarity to see if the picture taken is a place that has been visited before. If the detection result is yes, the information of the same point is passed to the back-end optimization algorithm, and the back-end adjusts the trajectory based on this information. In this way, the depth information of each frame will correspond to a set of camera pose matrices. Through matrix transformation, the depth values of all frames are spliced into the same coordinate system to obtain the three-dimensional point cloud of the scene scanned by the camera. As long as the camera continues to scan, the calculation will be performed synchronously, and the number of point clouds will continue to increase. Therefore, this reconstruction method is also called incremental point cloud reconstruction. Using this feature, as long as the space where the hypersurface projects the random dot matrix is scanned, the complete three-dimensional point cloud data of the scene in the space can be obtained, and then its three-dimensional model can be reconstructed.
[0090] As a verification, four different scenes were built in a space of about 1200mm×1000mm×600mm. The laser was used to illuminate the metasurface placed in the center of the space to form a random dot matrix structured light projection in the reflection space and the transmission space. The binocular camera scanned the spatial scene and simultaneously acquired the three-dimensional point cloud data of the scene. The maximum field of view was measured to be up to 210°. The built scene one only contains the basic plane structure, with one right-angle corner in the metasurface reflection space and three in the transmission space; scenes two and three are based on scene one, with an inclined plane added to the reflection space or the transmission space; scene four is to add two square boxes and a cylinder to the transflection space. Different scenes were scanned and reconstructed to obtain their own three-dimensional point clouds. In order to display the built scene more intuitively, a complete three-dimensional model was established based on the point cloud results. The results show that the three-dimensional model of each scene can be accurately reconstructed. Due to the different scanning ranges each time and the occlusion of the experimental device, the reconstructed three-dimensional model will have different local missing. But in theory, as long as the camera scanning range is large enough, the system can reconstruct a three-dimensional model of the entire enclosed space.
[0091] In one embodiment of the present application, a three-dimensional reconstruction system based on metasurface structured light is also provided. Figure 4 is a schematic diagram of a three-dimensional reconstruction system based on super-surface structured light, shown in an exemplary embodiment of the present application. Figure 4 , the device comprises:
[0092] The metasurface 401 is arranged in the center of the target three-dimensional space to generate random point array structured light to obtain full-space projection light points;
[0093] A binocular stereo camera 402 is used to capture the full-space projection light spots to obtain multiple frames of images corresponding to the full-space projection light spots;
[0094] The three-dimensional reconstruction system device 403 is used to synchronously construct a three-dimensional point cloud corresponding to the object in each frame image according to the depth information of the object in each frame image and the posture information of the binocular stereo camera, and to splice the three-dimensional point clouds corresponding to the objects in the continuous frame images in real time to obtain a surface reconstruction model corresponding to the object in the target three-dimensional space.
[0095] Through the three-dimensional reconstruction system based on metasurface structured light in the embodiment of the present application, random point array structured light is realized through the metasurface, which can generate tens of thousands of random points and project them to the entire 4π free space, thereby improving the range of the field of view angle and the accuracy of three-dimensional reconstruction; according to the object depth information in each frame image and the posture information of the binocular stereo camera, the three-dimensional point cloud corresponding to the object in each frame image is synchronously constructed, which can realize real-time construction of the three-dimensional point cloud, thereby improving the speed of three-dimensional reconstruction.
[0096] In one embodiment of the present application, the unit diffraction structure of the metasurface is a dielectric nanobrick, the phase control amount of the dielectric nanobrick on the incident light wave is given by the geometric phase, the material of the dielectric nanobrick is amorphous silicon with a refractive index n=3.227 and an extinction coefficient k=0.04 at the working wavelength, and the substrate of the dielectric nanobrick is silicon dioxide;
[0097] The dielectric nanobricks are 250 nm long, 120 nm wide, 280 nm high, and have a center spacing of 300 nm;
[0098] The working wavelength of the metasurface is 650 nm, a single period of the metasurface includes 200×200 dielectric nanobricks, and the metasurface includes 25 single periods;
[0099] The diffraction pattern illuminating the metasurface includes an array of 10,000 random points that are centrosymmetric.
[0100] In one embodiment of the present application, a semi-transmissive and semi-reflective metasurface is designed and manufactured, which can fill the entire 4π space with dot matrix structured light projection. A binocular visual imaging system is built, which can reconstruct an accurate three-dimensional model of the spatial scene in real time through stereo matching and point cloud transformation. During the test, a laser was used to illuminate the designed metasurface, projecting 20,000 random light points into a cubic space. Four different spatial scenes were scanned using a binocular camera, and their respective three-dimensional models were established simultaneously, achieving an effective reconstruction field of view of 210°×210°. The test results show that the proposed three-dimensional reconstruction method based on the metasurface dot matrix structured light has a large imaging viewing angle and high real-time performance in real-scene reconstruction, and can instantly obtain three-dimensional information of the entire scene and better perceive the spatial environment. Compared with traditional laser point cloud three-dimensional reconstruction technology, the method of this application has achieved a huge leap in viewing angle coverage, and has also shown obvious advantages in system integration, paving a broader road for the development of cutting-edge fields such as real-scene VR, holographic communication, and digital urban construction.
[0101] For example, in order to demonstrate that the designed metasurface has a 4π field of view projection capability, it is fixed in the center of a cardboard box with a size of 420mm×260mm×330mm. A small hole is opened on both sides of the box as the entrance and exit of the light beam. The 650nm light beam emitted by the laser is vertically irradiated onto the metasurface. After being modulated by the metasurface, the laser is diffracted into the transmission space and the reflection space at the same time, forming a random dot pattern.
[0102] For example, two ordinary 5-megapixel industrial cameras are used to assemble a binocular stereo imaging system. The distance between the centers of the two camera lenses is L=200mm, each is deflected 5° to the midline, and the focal length f of the lens is 8mm. The camera is calibrated by a program written in Python. The depth extraction algorithm involved is also implemented in Python to calculate the depth value of the object.
[0103] For example, the 3D point cloud data of the corresponding target is obtained in both the depth information extraction and the real-time 3D scene reconstruction. The interference points are removed using Cloud Compare and further processed. For the 3D point cloud obtained by the depth information extraction, a quadratic surface fitting operation is performed on it due to the small number of points. For the 3D point cloud of the scene reconstruction with a larger number of points, the model is directly established according to its point cloud distribution.
[0104] The specific embodiments of the three-dimensional reconstruction system based on super-surface structured light in the present application can refer to the examples shown in the above-mentioned three-dimensional reconstruction method based on super-surface structured light, which will not be repeated here.
[0105] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A three-dimensional reconstruction method based on metasurface structured light, characterized in that: The method comprises: Acquire a multi-frame image corresponding to the full-space projection light spot, wherein the multi-frame image is obtained by photographing the full-space projection light spot based on a preset binocular stereo camera, and the full-space projection light spot is obtained based on a random point array structured light generated by a hypersurface preset in the center of the target three-dimensional space; Synchronously constructing a three-dimensional point cloud corresponding to the object in each frame image according to the depth information of the object in each frame image and the position information of the binocular stereo camera; The three-dimensional point clouds corresponding to the objects in the continuous frame images are spliced in real time to obtain a surface reconstruction model corresponding to the objects in the target three-dimensional space.
2. The three-dimensional reconstruction method based on supersurface structured light according to claim 1, characterized in that: The unit diffraction structure of the metasurface is a dielectric nanobrick, the phase control amount of the dielectric nanobrick on the incident light wave is given by the geometric phase, the material of the dielectric nanobrick is amorphous silicon with a refractive index n=3.227 and an extinction coefficient k=0.04 at the working wavelength, and the substrate of the dielectric nanobrick is silicon dioxide.
3. The three-dimensional reconstruction method based on super-surface structured light according to claim 2, characterized in that: The dielectric nanobrick has a length of 250 nm, a width of 120 nm, a height of 280 nm, and a center spacing of 300 nm.
4. The three-dimensional reconstruction method based on super-surface structured light according to claim 2, characterized in that: The operating wavelength of the metasurface is 650 nm, a single period of the metasurface includes 200×200 dielectric nanobricks, and the metasurface includes 25 single periods.
5. The three-dimensional reconstruction method based on super-surface structured light according to claim 1, characterized in that: The diffraction pattern illuminating the metasurface includes an array of 10,000 random points that are centrosymmetric.
6. The three-dimensional reconstruction method based on super-surface structured light according to claim 1, characterized in that: Before synchronously constructing the three-dimensional point cloud corresponding to the object in each frame image according to the object depth information in each frame image and the position information of the binocular stereo camera, the method further includes: According to the internal and external parameters of the binocular stereo camera, the left view and the right view are respectively subjected to distortion elimination and row alignment operations; Extracting the two-dimensional coordinates of image points with obvious features in each frame of image; Matching image points with the same name in the left view and the right view, and calculating the disparity according to the two-dimensional coordinates, wherein the disparity is the difference between the projections of the same point in space on the image planes of two cameras; The depth value of each pixel is calculated according to the disparity to obtain the depth information of the object in each frame image.
7. The three-dimensional reconstruction method based on super-surface structured light according to claim 6, characterized in that: The depth value of each pixel is expressed as follows: Where Z is the depth value of each pixel, L is the baseline, f is the focal length of the camera lens, and x is l -x r is the parallax, x l is the horizontal coordinate of the object point in the left view, x r is the horizontal coordinate of the object point in the right view.
8. The three-dimensional reconstruction method based on super-surface structured light according to claim 1, characterized in that: The posture information of the binocular stereo camera includes the front and rear posture transformation of the camera, and the three-dimensional point cloud corresponding to the object in each frame image is synchronously constructed according to the depth information of the object in each frame image and the posture information of the binocular stereo camera, including: According to the front-to-back three-dimensional coordinate changes of the same feature point in two adjacent frames of images, the front-to-back position transformation of the camera is obtained by using the rotation and translation matrix in the internal and external parameters of the binocular stereo camera; According to the front and rear position transformation of the camera, a continuous motion trajectory of the binocular stereo camera during shooting is obtained; Detecting whether the image captured by the binocular stereo camera is a place that has been visited based on similarity, and if the detection result is yes, adjusting the continuous motion trajectory based on the depth information of the same point; Obtaining a camera pose matrix according to the adjusted continuous motion trajectory and object depth information in each frame image; The camera pose matrix is transformed to splice the depth values into the same coordinate system to obtain a three-dimensional point cloud corresponding to the object in each frame image.
9. A three-dimensional reconstruction system based on metasurface structured light, characterized in that: The system comprises: The metasurface is set in the center of the target three-dimensional space to generate random point array structured light to obtain full-space projection light points; A binocular stereo camera, used for photographing the full-space projection light spots to obtain multiple frames of images corresponding to the full-space projection light spots; The three-dimensional reconstruction system device is used to synchronously construct a three-dimensional point cloud corresponding to the object in each frame image according to the depth information of the object in each frame image and the posture information of the binocular stereo camera, and to splice the three-dimensional point clouds corresponding to the objects in the continuous frame images in real time to obtain a surface reconstruction model corresponding to the object in the target three-dimensional space.
10. The three-dimensional reconstruction system based on metasurface structured light according to claim 9, characterized in that: The unit diffraction structure of the metasurface is a dielectric nanobrick, the phase control amount of the dielectric nanobrick on the incident light wave is given by the geometric phase, the material of the dielectric nanobrick is amorphous silicon with a refractive index n=3.227 and an extinction coefficient k=0.04 at the working wavelength, and the substrate of the dielectric nanobrick is silicon dioxide; The dielectric nanobricks are 250 nm long, 120 nm wide, 280 nm high, and have a center spacing of 300 nm; The working wavelength of the metasurface is 650 nm, a single period of the metasurface includes 200×200 dielectric nanobricks, and the metasurface includes 25 single periods; The diffraction pattern illuminating the metasurface includes an array of 10,000 random points that are centrosymmetric.
