Sparse visual angle three-dimensional reconstruction method based on depth prior information
Through a sparse perspective 3D reconstruction method based on depth prior information, using motion recovery and 3D Gaussian splattering algorithm, the existing sparse perspective 3D reconstruction method solves the problems of high scene requirements and large computing resources in the existing technology, and achieves low-constraint High-quality three-dimensional reconstruction under various conditions, suitable for fields such as virtual reality and cultural relics protection.
Patent Information
- Application Number
- CN202411072863.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-09-17
AI Technical Summary
Existing sparse view 3D reconstruction methods have shortcomings in high shooting scene requirements, large computing resources, and poor generalization effects. It is difficult to achieve high-quality 3D reconstruction in limited camera view angles and low-texture scenes.
A sparse perspective 3D reconstruction method based on depth prior information is used, the camera pose and sparse point cloud are obtained through the motion recovery structure algorithm, the monocular depth estimation prior information is used for point cloud completion, and the three-dimensional Gaussian splash algorithm is combined to obtain depth information. Rendering, designing linear constraints and smoothing regularization terms for object-level rendering depth to achieve consistency and continuity of depth maps.
It achieves high-quality 3D reconstruction under low-constraint conditions, reduces the demand for computing resources and data sets, is suitable for fields such as virtual reality, augmented reality, and cultural relic protection, and improves the accuracy and user-friendliness of 3D rendering.
Smart Images

Figure CN118657888A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer vision information processing, and specifically relates to a sparse perspective three-dimensional reconstruction method based on depth prior information, which is suitable for the construction of virtual environments or augmented reality scenes, or drone aerial photography and map construction under conditions of limited shooting perspective. Background Art
[0002] Sparse view 3D reconstruction algorithms have a wide range of applications in various fields, especially when a limited number of cameras are required or camera placement is restricted. On drones and mobile devices, only a limited number of cameras can usually be used to capture and reconstruct scenes. Sparse view 3D reconstruction algorithms can help drones and mobile devices achieve 3D reconstruction of scenes, which can be used in applications such as navigation, map making, and environmental monitoring. In the fields of virtual reality and augmented reality, it is necessary to reconstruct 3D scenes from images captured by cameras in real time to provide a more immersive experience. Sparse view 3D reconstruction algorithms can achieve fast and accurate 3D reconstruction under limited camera viewpoints, which can be used in applications such as virtual reality games, simulation training, and product displays. In the field of cultural relics protection and cultural heritage, ancient buildings, cultural relics, and artworks often need to be 3D reconstructed and digitally preserved. Sparse view 3D reconstruction algorithms can achieve high-precision reconstruction of cultural relics and cultural heritage under limited shooting conditions, which can be used in applications such as cultural relics protection and digital museums.
[0003] The following common sparse view 3D reconstruction methods are used in real-world applications: Structured light methods use special light sources and texture patterns to capture depth information in a scene. Typical algorithms include grating projection and phase shifting. These methods typically require pre-calibration of the scene and a certain understanding of the relationship between the light source and the camera.
[0004] Stereo vision methods use two or more cameras to simultaneously capture the same scene and infer depth information by comparing images from different perspectives. Algorithms include binocular stereo vision and multi-view geometry. These methods require camera calibration and image matching and are sensitive to scene texture and lighting conditions.
[0005] Motion estimation methods use the motion of the camera or objects in the scene to infer depth information. Common algorithms include optical flow and structure-from-motion estimation. These methods are suitable for dynamic scenes or when the camera is moving, but may not perform well in reconstructing static scenes.
[0006] Deep learning methods learn the mapping relationship from images to depth by training neural networks. Typical algorithms include convolutional neural networks and autoencoders. These methods perform well when processing complex scenes and large amounts of data, but require a large amount of training data and computing resources.
[0007] However, the shortcomings of the above existing methods are mainly reflected in the following aspects: (1) The structured light method has high requirements for the shooting scene and requires the installation of expensive structured light imagers. At the same time, it is difficult to shoot large-scale outdoor scenes, and the applicable conditions are limited. (2) The stereo vision method either requires a calibrated binocular camera, and the baseline distance between the cameras cannot be too close, which places high requirements on the imaging equipment; or it is difficult to handle the three-dimensional reconstruction problem in poorly textured scenes. (3) A series of motion estimation methods such as the optical flow method are better at estimating moving scenes. When reconstructing static scenes, the camera needs to move, but it also faces the problem of poor three-dimensional reconstruction imaging in poorly textured scenes. (4) The classic deep learning-based three-dimensional method requires a large-scale three-dimensional dataset to complete the model training on this basis, and the algorithm has poor generalization effect across scene types. Summary of the Invention
[0008] To solve the above technical problems, the present invention provides a sparse perspective 3D reconstruction method based on depth prior information, which can achieve high 3D scene reconstruction quality while being simple in calculation and easy in engineering implementation.
[0009] To achieve the above object, the technical solution adopted by the present invention is as follows: A sparse perspective 3D reconstruction method based on depth prior information, the method comprising the following steps: Step 1: Obtain the camera shooting pose, camera intrinsic parameter matrix, and scene sparse point cloud of the input multi-frame image through the motion recovery structure algorithm. The camera shooting pose and camera intrinsic parameter matrix provide the mapping relationship between the three-dimensional points and the two-dimensional depth map at each perspective; Step 2: Use a large-model dense prediction transformer for scene depth estimation to obtain prior information on the monocular depth estimation of the scene at each known viewpoint. Step 3: Using the feature string information of the sparse scene point cloud in step 1, obtain the mapping of the sparse scene point cloud to the two-dimensional image, obtain the sparse depth information of each frame view image, and use the sparse point cloud completion method based on the monocular depth prior normal plane to achieve the neighborhood point cloud expansion of each 3D point. The expansion result is used as the initialization point cloud input of the 3D Gaussian splattering algorithm; Step 4: Design linear constraints for object-level rendering depth so that the depth information under the synthetic perspective presents a reasonable spatial distance and near position layout. Add a smoothing regularization term to achieve consistency supervision between the depth map under each perspective and the scene monocular depth estimation prior information obtained in step 2. Step 5: Construct a 3D Gaussian model for the initialized point cloud input. One point represents a 3D Gaussian sphere. Projection and rasterization are performed at different viewpoints. The optical and depth information of each viewpoint image after forward rendering is output. L1 norm supervision of the optical information is completed based on the RGB image information of the existing viewpoint. The L1 norm loss and the linear constraint of the object-level rendering depth designed in step 4 are minimized. The rendered depth information is constrained and gradient backpropagation is performed to optimize the position, covariance, and color attributes of each 3D Gaussian. The entire optimization process constitutes the training process of 3D Gaussian splatting. Step 6. After training is completed, any camera shooting pose is input into the constructed 3D Gaussian model, and the scene optical information and depth information under the corresponding perspective are rendered and output to describe the visual texture information of the entire scene and related scene structure information.
[0010] The beneficial effects of the present invention are: This invention uses 3D Gaussian splatting to achieve 3D reconstruction models in sparse viewing angles. This reduces the constraints on scene imaging and does not require large-scale 3D reconstruction datasets of similar scenes. Furthermore, given the current scene to be reconstructed, the demand for a smaller number of viewing angles is also lower. This makes it more suitable for user-friendly 3D scene rendering in real-world situations. This method uses a priori models of monocular depth estimation to establish a rough 3D structure for the scene to be reconstructed. Using this as a clue, combined with a priori models of image segmentation, the scene is segmented into a combination of planar regions. Using the points obtained from structure from motion, the neighborhood of the depth map is expanded within each planar region, completing the initial point cloud and improving the accuracy of subsequent rendering by the 3D reconstruction algorithm. The linear constraint of object-level rendering depth adopted by the present invention can achieve weak supervision of the correlation between the depth map obtained by monocular depth prior and the depth map obtained by scene rendering. Compared with the traditional absolute value loss, the correlation constraint is more robust. At the same time, the newly added smooth regularization term loss can ensure that the depth map has as few discontinuities as possible such as jumps during the rendering process, thereby accelerating the convergence process of the algorithm.
[0011] In summary, the present invention has been experimentally verified on a small dataset of indoor and outdoor scenes. The method is feasible and the engineering technology is easy to implement, so it is practical. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is a flow chart of the sparse perspective 3D reconstruction method based on depth prior information of the present invention; Figure 2 Completion module for sparse point clouds; Figure 3 This is an example of object-level scale consistency between the monocular depth prior and the depth information obtained by SFM; Figure 4 The rendering result of the new perspective in the scene to be reconstructed. DETAILED DESCRIPTION
[0013] The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
[0014] like Figure 1 As shown, the specific steps of the present invention are as follows: First, based on the sparse point cloud reconstruction results and the monocular depth estimation prior information, a sparse point cloud completion module is implemented. The specific structure is as follows Figure 2 As shown, the monocular depth estimation prior information provides a hint of the scene structure, which is convenient for extracting patch planes. By projecting the depth information after filling in each perspective into three-dimensional space, the sparse point cloud completion result can be obtained, which enhances the understanding of the initialized three-dimensional Gaussian model on the scene structure. The three-dimensional Gaussian splash is used as the main framework of the algorithm. The completed three-dimensional sparse point cloud is used as the input of the algorithm, and 3D Gaussian initialization is performed. The 3D Gaussian ball is projected and rasterized at different perspectives, and the 3D Gaussian ball with large gradient changes is cloned and pruned for adaptive adjustment. The output result is the optical information and depth information of the rendered image from each perspective. Then, in the gradient backpropagation, the absolute value deviation of the pixel value between the RGB image obtained by rendering and the RGB true value is supervised by the L1 norm loss. In order to ensure the continuity and rationality of the scene structure, the overfitting problem existing in the training of sparse perspective image scenes is reduced. According to the object-level scale consistency characteristics of the monocular depth prior, such as Figure 3 As shown in the figure, the monocular depth prior and the depth information (approximate depth truth) obtained by the motion-based structure-from-motion algorithm for the same adjacent object (the dark mask area) have a strong linear property. Based on this, the monocular depth prior is adjusted to a scale consistent with the depth information D obtained by motion-based structure-from-motion. A normalized cross-correlation loss function is designed to constrain the rationality of rendering depth map structure changes through the single-view depth prior. Finally, the 3D reconstruction effects of the proposed method and the classic 3DGS algorithm are compared and tested on the LLFF dataset. The rendering effect is shown in the following example. Figure 4 The indicators are shown in Table 1. PSNR is the peak signal-to-noise ratio, SSIM is the structural similarity, and the larger the value, the higher the rendering quality; LPIPS is the perceptual similarity, and the smaller the value, the higher the rendering quality.
[0015] Table 1
[0016] Specifically, the method comprises the following steps: Step 1: Use the structure-from-motion algorithm to obtain the camera pose, camera intrinsic parameter matrix, and scene sparse point cloud of the input multi-frame image. The camera pose and camera intrinsic parameter matrix provide a mapping relationship between 3D points and 2D depth maps at each viewpoint. This mapping relationship and sparse point cloud will be further used in the sparse point cloud completion module in step 3. Step 2: Use a large-model dense prediction transformer for scene depth estimation to obtain prior information on the monocular depth estimation of the scene at each known viewpoint. Step 3: Using the feature string information of the sparse scene point cloud in step 1, obtain the mapping of the sparse scene point cloud to the two-dimensional image, obtain the sparse depth information of each frame view image, and use the sparse point cloud completion method based on the monocular depth prior normal plane to achieve the neighborhood point cloud expansion of each 3D point. The expansion result is used as the initialization point cloud input of the 3D Gaussian splattering algorithm; Step 3.1. First, use the feature string information of the scene sparse point cloud obtained in step 1 to obtain the scene reliable sparse depth information D of each view image. D is a sparse matrix of size H×W, where H is the pixel height of the image and W is the pixel width of the image. Step 3.2: Using the regional segmentation results of each view image, combined with the scene depth prior information obtained in step 2, calculate the gradient information of the depth value in each segmented sub-region, ensure that the absolute value of the gradient information of the depth value is less than the set threshold, and screen the mask matrix of the small facet plane in the scene to be reconstructed ,in is the mask matrix of the jth patch plane structure of the i-th view image. The mask matrix elements are Boolean variables and the matrix size is H×W. When the pixel coordinates (x, y) are within the plane structure, , otherwise, the value is zero, x represents the pixel coordinate of the pixel point in the length direction of the image, and y represents the pixel coordinate of the pixel point in the width direction of the image; Step 3.3: Merge the pixel coordinates (x, y) with the corresponding depth value d to obtain the high-dimensional space coordinates (x, y, d). If the coordinate set of the high-dimensional space coordinates (x, y, d) constitutes a sampling point of a plane in the high-dimensional space, then the pixel coordinates (x, y) projected into the actual three-dimensional space will also fit the plane structure; mask the depth information D, take the depth information within each sub-plane structure under the current viewing angle, and use the singular value decomposition method to fit the high-dimensional space patch plane parameters. The expression of the patch plane in the high-dimensional space is: , Among them, (a, b, c) T is the normal vector of the patch plane in the high-dimensional space, the superscript T represents the transpose of the matrix, the modulus is 1, (x, y, d) represents the corresponding coordinates of the pixel point coordinates (x, y) in the high-dimensional space at the current viewing angle, and w is a scalar; Calculate the plane parameters of each patch one by one. The point cloud involved only includes the current perspective depth information D. After each pixel is mapped to the high-dimensional space, the mask matrix All points in the current patch plane described; calculate the average coordinates of all 3D points in the patch plane ,but ,in is the coordinate of the nth point in the jth patch plane in the high-dimensional space at the current viewing angle, and the intermediate matrix A, X is expressed as follows: , , but Equivalent to , perform singular value decomposition on the intermediate matrix A , U, , V represents the result of the singular value decomposition operation. The optimal solution is the last column vector of V, which realizes the calculation of the plane equation and completes the point cloud expansion guided by the plane of the depth prior method under the current viewing angle; Step 3.4: According to the camera shooting pose information, the depth map Dep filled with all perspectives is projected into the three-dimensional space to achieve sparse point cloud completion based on the guidance of the monocular depth prior normal plane.
[0017] The monocular depth estimation prior information obtained in step 4 and step 2 can reflect the distance relationship of spatial objects to a certain extent, especially revealing the position relationship between adjacent pixels and the camera. However, the 3D Gaussian rendering will lead to overfitting under the training perspective to a certain extent, causing the background collapse under the synthetic perspective, resulting in the appearance of a large number of "suspended 3D Gaussian balls", that is, background noise. In order to ensure the continuity and rationality of the scene structure and alleviate the overfitting problem in the training of sparse perspective image scenes, a linear constraint on the object-level rendering depth is designed so that the depth information under the synthetic perspective presents a reasonable spatial distance position layout, and a smoothing regularization term is added to achieve consistency supervision between the depth map under each perspective and the scene monocular depth estimation prior information obtained in step 2.
[0018] According to the least squares method, the monocular depth information of each segmented area in the view image is restored to a scale consistent with the depth information D obtained by the motion recovery structure; a normalized cross-correlation loss function CC(·) is constructed, which is expressed as: , Among them, De mono De is the monocular depth estimation prior information obtained in step 2, render is the depth map obtained by forward rendering of the 3D Gaussian model, For De mono The depth map obtained by averaging the image blocks, For Derender The depth map is obtained by averaging the image blocks; Ω is the set of central pixel coordinates of each block after the image is divided into blocks, (x c ,y c ) is the center pixel coordinate of each image block, Δ (xc,yc) is the center pixel coordinate (x c ,y c ) is the set of all pixel coordinates in the image block where (x',y') is the center pixel coordinate (x c ,y c ) The coordinates of each pixel in the image block; Smooth regularization constraint L smooth (·)for: , Where, Ω all is the set of all pixel coordinates in the image; p is the enumeration value of the pixel coordinates in the image; ▽ is the Laplace operator, which is used to calculate the rendered depth map De render The gradient information of ; ||·|| is the two-norm.
[0019] Let the loss function L(·) be: , Where L1(·,·) represents the one-norm loss, I gt Represents the true value of the RGB image of the training perspective, I render Represents the RGB image obtained by forward rendering of the three-dimensional Gaussian model, 、 represents the normalized cross-correlation loss function and the weight of the smooth regularization constraint.
[0020] Step 5: Using 3D Gaussian splatting as the main framework of the algorithm, the completed 3D sparse point cloud is used as the algorithm input, and 3D Gaussian initialization is performed. The 3D Gaussian sphere is projected and rasterized at different perspectives. The output result is the optical information and depth information of the rendered image at each perspective. Based on the RGB image information of the existing perspective, the L1 norm supervision of the optical information is completed, the L1 norm loss is minimized, and the gradient back propagation is performed to optimize the position, covariance, and color attributes of each 3D Gaussian. The entire optimization process constitutes the training process of 3D Gaussian splatting; Step 6: After training is completed, the model can render and output the scene optical information and depth information from any perspective to describe the visual texture information of the entire scene and related scene structure information.
[0021] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A sparse view 3D reconstruction method based on depth prior information, characterized in that: The method comprises the following steps: Step 1: Obtain the camera shooting pose, camera intrinsic parameter matrix, and scene sparse point cloud of the input multi-frame image through the motion recovery structure algorithm, wherein the camera shooting pose and the camera intrinsic parameter matrix provide a mapping relationship between the three-dimensional points and the two-dimensional depth map at each viewing angle; Step 2: Using a large-model dense prediction transformer for scene depth information estimation, obtain the monocular depth estimation prior information of the scene at each known viewing angle; Step 3: Using the feature string information of the sparse scene point cloud in step 1, obtain the mapping of the sparse scene point cloud to the two-dimensional image, obtain the sparse depth information of each frame of the view image, and use the sparse point cloud completion method guided by the monocular depth prior normal plane to realize the expansion of the neighborhood point cloud of each three-dimensional point. The expansion result is used as the initialization point cloud input of the three-dimensional Gaussian splash algorithm; Step 4: Design linear constraints for object-level rendering depth so that the depth information under the synthetic perspective presents a reasonable spatial near-far position layout, add a smoothing regularization term, and achieve consistency supervision between the depth map under each perspective and the scene monocular depth estimation prior information obtained in step 2; Step 5: Construct a 3D Gaussian model for the initialization point cloud input. One point represents a 3D Gaussian sphere. Project and rasterize at different viewing angles. Output the optical information and depth information of each viewing angle image after forward rendering. Complete the L1 norm supervision of the optical information based on the RGB image information of the existing viewing angle, minimize the L1 norm loss, minimize the linear constraint of the object-level rendering depth designed in step 4, constrain the rendering depth information, and perform gradient back propagation to optimize the position, covariance, and color attributes of each 3D Gaussian. The entire optimization process constitutes the training process of three-dimensional Gaussian splashing. Step 6. After training is completed, any camera shooting posture is input into the constructed 3D Gaussian model, and the scene optical information and depth information under the corresponding viewing angle are rendered and output to describe the visual texture information of the entire scene and related scene structure information.
2. The sparse perspective 3D reconstruction method based on depth prior information according to claim 1, characterized in that: The step 1 motion recovery structure algorithm includes: for an input multi-frame image sequence, first extracting SIFT feature points from each frame of the image; then, using a feature descriptor to describe the local features of each feature point, using the similarity measurement of the feature descriptors to achieve feature point matching of different images, and obtaining the camera shooting pose, camera intrinsic parameter matrix, and scene sparse point cloud of the input multi-frame images during the reconstruction process of the incremental motion recovery structure algorithm.
3. The sparse perspective 3D reconstruction method based on depth prior information according to claim 1, characterized in that: The sparse point cloud completion method based on the monocular depth prior normal plane guidance in step 3 is: Step 3.1, first use the feature string information of the scene sparse point cloud obtained in step 1 to obtain the scene reliable sparse depth information D of each view image, where D is a sparse matrix of size H×W, H is the pixel height of the image, and W is the pixel width of the image; Step 3.2: Using the regional segmentation results of each view image and the scene depth prior information obtained in step 2, calculate the gradient information of the depth value in each segmented sub-region, ensure that the absolute value of the gradient information of the depth value is less than the set threshold, and screen the mask matrix of the small facet plane in the scene to be reconstructed. ,in is the mask matrix of the jth patch plane structure of the i-th view image. The mask matrix elements are Boolean variables and the matrix size is H×W. When the pixel coordinates (x, y) are within the plane structure, , otherwise, the value is zero, x represents the pixel coordinate of the pixel point in the length direction of the image, and y represents the pixel coordinate of the pixel point in the width direction of the image; Step 3.3, merge the pixel coordinates (x, y) with the corresponding depth value d to obtain the high-dimensional space coordinates (x, y, d). If the coordinate set of the high-dimensional space coordinates (x, y, d) constitutes a sampling point of the plane in the high-dimensional space, then the pixel coordinates (x, y) projected into the actual three-dimensional space must also fit the plane structure; mask the depth information D, take the depth information in each sub-plane structure under the current viewing angle, and use the singular value decomposition method to fit the high-dimensional space patch plane parameters, where the expression of the patch plane in the high-dimensional space is: , Among them, (a,b,c) T is the normal vector of the patch plane in the high-dimensional space, the superscript T represents the transpose of the matrix, the modulus is 1, (x, y, d) represents the corresponding coordinates of the pixel point coordinates (x, y) in the high-dimensional space under the current viewing angle, and w is a scalar; Calculate the plane parameters of each patch one by one. The point cloud involved only includes the current viewing angle depth information D. After each pixel is mapped to the high-dimensional space, the mask matrix All points in the current patch plane described; calculate the average coordinates of all 3D points in the patch plane ,but ,in is the coordinate of the nth point in the jth patch plane in the high-dimensional space at the current viewing angle, and the intermediate matrix A, X is expressed as follows: , , but Equivalent to , perform singular value decomposition on the intermediate matrix A , U, , V represents the result of singular value decomposition operation, the optimal solution is the last column vector of the unitary matrix V, which realizes the calculation of the plane equation and completes the point cloud expansion guided by the plane of the depth prior method under the current viewing angle; Step 3.4: According to the camera shooting posture information, project the depth map Dep filled with all perspectives into the three-dimensional space to achieve sparse point cloud completion guided by the monocular depth prior normal plane.
4. The sparse perspective 3D reconstruction method based on depth prior information according to claim 1, characterized in that: The linear constraints of the object-level rendering depth in step 4 include: According to the least squares method, the monocular depth information of each segmented area in the view image is restored to a scale consistent with the depth information D obtained by the motion recovery structure; a normalized cross-correlation loss function CC (·) is constructed, and the expression is: , Among them, De mono De is the monocular depth estimation prior information obtained in step 2, render is the depth map obtained by forward rendering of the 3D Gaussian model. For De mono The depth map obtained by averaging the image blocks is For De render The depth map is obtained by averaging the image blocks; Ω is the set of central pixel coordinates of each block after the image is divided into blocks, (x c ,y c ) is the center pixel coordinate of each image block, Δ (xc,yc) is the center pixel coordinate (x c ,y c ) is the set of all pixel coordinates in the image block, (x',y') is the center pixel coordinate (x c ,y c ) in the image block; Smooth regularization constraint L smooth (·)for: , In the formula, Ω all is the set of all pixel coordinates in the image; p is the enumeration value of the pixel coordinates in the image; ▽ is the Laplace operator, which is used to find De render Gradient information of ; ||·|| is the two-norm; Let the loss function L(·) be: , In the formula, L1(·,·) represents the one-norm loss, I gt Represents the true value of the RGB image at the training perspective, I render Represents the RGB image obtained by forward rendering of the 3D Gaussian model. , represents the normalized cross-correlation loss function and the weights of the smooth regularization term constraints.
Citation Information
Cited By
Camera pose solving method, system and terminal based on 3DGS
CN119048603A
Laparoscopic surgery scene three-dimensional reconstruction method and system based on three-dimensional Gaussian sputtering
CN119091060A
Three-dimensional scene reconstruction method based on multi-modal regularization and temperature smoothing constraint
CN119169208A
New view angle synthesis method based on sparse view
CN119206124A
Multi-modal three-dimensional instance segmentation method based on three-dimensional Gaussian splashing
CN119296104A
