Three-dimensional model reconstruction method and device, equipment and medium

By obtaining the point cloud data information of the three-dimensional map, using grid convolutional neural networks and deep learning models to perform preliminary reconstruction and texture refinement of the three-dimensional model, the problems of high hardware dependence and low accuracy in the existing technology are solved, and the High-texture and high-definition 3D model reconstruction.

CN118823263APending Publication Date: 2024-10-22CHINA MOBILE SHANGHAI ICT CO LTD +2
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311587137.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing 3D reconstruction methods have problems such as high hardware dependence, high cost, low accuracy, blurred boundaries and poor texture quality at structural connections.

Method used

By obtaining the point cloud data information of the 3D map, the grid convolutional neural network is used for preliminary reconstruction, combined with the deep learning model for texture refinement, and a high-resolution texture map is generated through hybrid iterative solution to improve the geometric image of the 3D model.

Benefits of technology

It achieves high-precision 3D model reconstruction that does not rely on hardware, improves the clarity and texture quality of the 3D model, solves the problems of blurred boundaries and complex structures, and generates reconstructed images with high texture and high definition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823263A_ABST
    Figure CN118823263A_ABST
Patent Text Reader

Abstract

The invention discloses a three-dimensional model reconstruction method, apparatus and device, and a medium. The method comprises the steps of obtaining point cloud data information of a target image in a three-dimensional map; according to the point cloud data information, initializing a preset grid convolutional neural network to obtain a preliminarily reconstructed three-dimensional model; according to the point cloud data information, constructing a two-dimensional model through a deep learning model, and performing texture refining operation on the preliminarily reconstructed three-dimensional model through the two-dimensional model; and performing mixed iteration solution on the three-dimensional model and the two-dimensional model after the texture refining operation to obtain a target three-dimensional model. By adopting the method, the problems of fuzzy boundary and complex structure in the process of reconstructing the three-dimensional model can be solved, so that the reconstruction effect of the three-dimensional model is optimal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a method, device, equipment and medium for reconstructing a three-dimensional model. Background Art

[0002] In recent years, the field of robotics has developed rapidly. In the field of robotic computer vision, the three-dimensional reconstruction of objects has always been the most basic problem and has received widespread attention. The three-dimensional reconstruction method is to reconstruct the three-dimensional model in the image-based three-dimensional map. The basic goal is to infer the three-dimensional geometric structure of the three-dimensional map model from one or more two-dimensional images. At present, there are three main methods based on image-based three-dimensional reconstruction technology. One is to measure the distance of the object through hardware equipment and calculate the distance difference to obtain the three-dimensional model; the other is to reconstruct the three-dimensional model based on the object image by inferring the camera parameters and the object depth through deep learning; the last one is based on the sequenced detection images, and the scale of the reconstructed position is restored through orderly arrangement.

[0003] However, the inventors have found that the prior art has at least the following problems: the first method mentioned above requires additional hardware equipment support, is difficult to operate and has high cost; the second method has low accuracy in the three-dimensional image after three-dimensional reconstruction, and is limited by the quality of image acquisition and generation, so the clarity and texture quality of the generated images are relatively poor; the third method uses sequenced detection images, resulting in blurred boundaries, poor texture quality at structural joints, and low clarity. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a three-dimensional model reconstruction method, device, equipment and medium, which can solve the problems of blurred boundaries and complex structures in the process of reconstructing the three-dimensional model, so as to achieve the best reconstruction effect of the three-dimensional model.

[0005] To achieve the above object, an embodiment of the present invention provides a method for reconstructing a three-dimensional model, comprising:

[0006] Obtain point cloud data information of the target image in the three-dimensional map;

[0007] Initializing a preset grid convolutional neural network according to the point cloud data information to obtain a preliminary reconstructed three-dimensional model;

[0008] According to the point cloud data information, a two-dimensional model is constructed by a deep learning model, and a texture refinement operation is performed on the initially reconstructed three-dimensional model by using the two-dimensional model;

[0009] The three-dimensional model after the texture refinement operation and the two-dimensional model are mixed and iterated to obtain a target three-dimensional model.

[0010] As an improvement of the above solution, the step of obtaining point cloud data information of a target image in a three-dimensional map includes:

[0011] The spatial information and color information of the target image in the three-dimensional map are acquired to obtain the point cloud data information.

[0012] As an improvement of the above solution, the preset grid convolutional neural network is initialized according to the point cloud data information to obtain a preliminary reconstructed three-dimensional model, including:

[0013] Using the spatial information in the point cloud data information as input to the grid convolutional neural network;

[0014] Based on the edge length regularization term and the chamfer loss function, the grid convolutional neural network is improved through a linear cumulative additive method to obtain the geometry and texture details of the three-dimensional model, reconstruct the surface mesh of the three-dimensional model, and obtain a preliminary reconstructed three-dimensional model.

[0015] As an improvement of the above scheme, the mesh convolutional neural network is improved by a linear cumulative additive method based on an edge length regularization term and a chamfer loss function to obtain the geometric figures and texture details of the three-dimensional model, reconstruct the surface mesh of the three-dimensional model, and obtain a preliminary reconstructed three-dimensional model, including:

[0016] Generating a three-dimensional grid of the grid convolutional neural network as a first three-dimensional grid according to spatial information of the input target image;

[0017] By extracting voxel features of the first three-dimensional network, predicting the probability network of single voxel occupancy, replacing each occupied voxel with a triangular mesh according to a preset voxel occupancy probability and a voxel occupancy binarization threshold, and merging shared vertices and edges between adjacent occupied voxels to generate a second three-dimensional mesh;

[0018] Processing the second three-dimensional mesh by mesh subdivision branching, and continuously updating the vertex positions of the second three-dimensional mesh;

[0019] In the process of updating the vertex positions, the target loss function is calculated based on the edge length regularization term and the chamfer loss function. When the target loss function approaches convergence, the vertex position update is completed to obtain a preliminary reconstructed three-dimensional model.

[0020] As an improvement of the above solution, the objective loss function is:

[0021] L=aL chamfer +bL edge ;

[0022]

[0023]

[0024] Among them, a and b are configurable hyperparameters, L chamfer is the chamfer loss function, L edge is the loss function corresponding to the edge length regularization term, p is the vertex of the generated network, To generate the sampling point of the network surface, q is a point in the input point cloud, N(p) is the ring adjacent to the vertex in the generated network, and k∈N(p).

[0025] As an improvement of the above solution, the two-dimensional model is constructed by a deep learning model according to the point cloud data information, and the texture refinement operation is performed on the initially reconstructed three-dimensional model by the two-dimensional model, including:

[0026] A two-dimensional model is constructed based on the deep learning model using an improved fully convolutional network semantic segmentation model;

[0027] Using the color information in the point cloud data information as input of the two-dimensional model;

[0028] By predicting the spatial vertex positions corresponding to the images in the two-dimensional model, using sparse mapping as a supervision sample, training an independent two-dimensional model, performing coordinate refinement in the X, Y and Z directions and generating R, G, B color values;

[0029] The vertex positions in the preliminary reconstructed three-dimensional model are updated using the predicted dense position UV map, which is then fed into the two-dimensional model for texture refinement to complete iterative optimization.

[0030] As an improvement of the above solution, the three-dimensional model after the texture refinement operation and the two-dimensional model are subjected to mixed iterative solution to obtain a target three-dimensional model, including:

[0031] According to the three-dimensional model and the two-dimensional model after the texture refinement operation, a high-resolution texture map is generated in a mixed iterative manner to improve the geometric image of the three-dimensional model and obtain a target three-dimensional model.

[0032] The embodiment of the present invention further provides a three-dimensional model reconstruction device, comprising:

[0033] A point cloud data acquisition module is used to acquire point cloud data information of a target image in a three-dimensional map;

[0034] A three-dimensional model construction module, used to initialize a preset grid convolutional neural network according to the point cloud data information to obtain a preliminary reconstructed three-dimensional model;

[0035] A two-dimensional model construction module, used to construct a two-dimensional model through a deep learning model according to the point cloud data information, and perform a texture refinement operation on the initially reconstructed three-dimensional model through the two-dimensional model;

[0036] The hybrid iterative solution module is used to perform hybrid iterative solution on the three-dimensional model after the texture refinement operation and the two-dimensional model to obtain a target three-dimensional model.

[0037] An embodiment of the present invention also provides a three-dimensional model reconstruction device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the three-dimensional model reconstruction method as described in any one of the above.

[0038] An embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a three-dimensional model reconstruction method as described in any one of the above.

[0039] Compared with the prior art, the reconstruction method, device, equipment and medium of the three-dimensional model disclosed in the present invention obtain the point cloud data information of the target image of the three-dimensional model in the three-dimensional map and store it in the database, extract the point cloud data in the database, initialize the 3D network by improving the MeshCNN framework, obtain the preliminary reconstructed three-dimensional model, and establish a 2D network through the deep learning model, and refine the three-dimensional model texture based on the preliminary generated geometric body mesh, and solve the mixed iteration of the two-dimensional-three-dimensional network. The present invention uses a 2D-3D deep fusion model, and enables the model to converge quickly by improving the MeshCNN network model; refine the three-dimensional model through the 2D network, enhance the smoothness, and finally obtain the reconstructed three-dimensional model stereo image, so that the model is more suitable for the rapid prediction and target reconstruction of the target on the two-dimensional image in the three-dimensional map scene, and does not rely on the hardware level, and can solve the three-dimensional high-definition reconstruction of the image level at the general level and the hardware level, and fully considers the problem of fuzzy boundaries of the three-dimensional model and complex building structure in the three-dimensional map, and finally presents a high-texture and high-definition reconstructed image. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a flowchart of a method for reconstructing a three-dimensional model provided by an embodiment of the present invention;

[0041] Figure 2 is a principle block diagram of a three-dimensional model reconstruction method in an embodiment of the present invention;

[0042] Figure 3 It is a schematic diagram of the construction principle of the MeshCNN network in an embodiment of the present invention;

[0043] Figure 4 is a structural schematic diagram of a two-dimensional model based on a fully convolutional network semantic segmentation model in an embodiment of the present invention;

[0044] Figure 5 is a schematic structural diagram of a three-dimensional model reconstruction device provided by an embodiment of the present invention;

[0045] Figure 6 It is a structural schematic diagram of a three-dimensional model reconstruction device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] In the description of the present application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0048] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0049] See also Figure 1 , is a flow chart of a method for reconstructing a three-dimensional model provided by an embodiment of the present invention. The embodiment of the present invention provides a method for reconstructing a three-dimensional model, comprising the following steps S11 to S14:

[0050] S11, obtaining point cloud data information of the target image in the three-dimensional map;

[0051] S12, initializing a preset grid convolutional neural network according to the point cloud data information to obtain a preliminary reconstructed three-dimensional model;

[0052] S13, constructing a two-dimensional model through a deep learning model according to the point cloud data information, and performing a texture refinement operation on the initially reconstructed three-dimensional model through the two-dimensional model;

[0053] S14, performing mixed iterative solution on the three-dimensional model after the texture refinement operation and the two-dimensional model to obtain a target three-dimensional model.

[0054] It should be noted that 3D reconstruction refers to the establishment of a mathematical model suitable for computer representation and processing of 3D objects. It is the basis for processing, operating and analyzing its properties in a computer environment, and is a key technology for establishing virtual reality that expresses the objective world.

[0055] In the embodiment of the present invention, the boundary of the target image of the three-dimensional model in the three-dimensional map is blurred, and the staircase structure is delicate and complex, resulting in low definition and low texture after three-dimensional reconstruction, and the sampling itself depends on hardware, and the accuracy depends on high-quality samples. Figure 2 , is a principle block diagram of a three-dimensional model reconstruction method in an embodiment of the present invention. The embodiment of the present invention reconstructs the corresponding surface mesh with fine details of geometry and texture given input point cloud data by improving the 2D-3D hybrid model. The initial untextured 3D model is reconstructed by building a network based on an improved MeshCNN (Mesh Convolutional Neural Networks), and then a 2D model is built based on an FCN (Fully Convolutional Neural Network) network to improve the geometry quality and generate high-resolution texture maps in an iterative manner.

[0056] In each iteration, a texture atlas is first constructed using the geometric mesh, and then the positions and colors of the samples input to the sparse point cloud are warped into the texture UV space, resulting in a sparse position UV map and a sparse color UV map, respectively. Using the sparse maps as supervised samples, an independent 2D model is trained for XYZ refinement and RGB generation. The vertex positions in the 3D model are updated using the predicted dense position UV map, which is then fed into the 2D model for another refinement. The hybrid network runs iteratively until the geometric mesh and texture output are stable, ultimately resulting in a high-precision, high-quality 3D model.

[0057] The technical means of the embodiment of the present invention are adopted to obtain the point cloud data information of the target image of the three-dimensional model in the three-dimensional map and store it in the database, extract the point cloud data in the database, initialize the 3D network by improving the MeshCNN framework, obtain the preliminary reconstructed three-dimensional model, and establish a 2D network through the deep learning model, and refine the three-dimensional model texture based on the preliminary generated geometric body mesh, and solve the mixed iteration of the two-dimensional-three-dimensional network. The present invention uses a 2D-3D deep fusion model, and enables the model to converge quickly by improving the MeshCNN network model; refine the three-dimensional model through the 2D network, enhance the smoothness, and finally obtain the reconstructed three-dimensional model stereo image, so that the model is more suitable for the rapid prediction and target reconstruction of the target on the two-dimensional image in the three-dimensional map scene, and does not rely on the hardware level, and can solve the three-dimensional stereo high-definition reconstruction under the general image level and the hardware level, and fully considers the problem of fuzzy boundaries of the three-dimensional model and complex building structure in the three-dimensional map, and finally presents a high-texture and high-definition reconstructed image.

[0058] As a preferred implementation, the embodiment of the present invention is further implemented on the basis of the above embodiment, step S11, that is, obtaining the point cloud data information of the target image in the three-dimensional map, includes: obtaining the spatial information and color information of the target image in the three-dimensional map to obtain the point cloud data information.

[0059] Specifically, the spatial information data of the target image, namely the XYZ dimensional coordinates, is obtained as the sample input of the 3D model. i}, i = 1, 2, ..., n, for a single sample image pic i , the 3D network model focuses on the values ​​of the three dimensions of space X, Y, and Z, and remembers the array (X, Y, Z) i is the spatial information of the i-th sample point. At the same time, the color information of the sample is collected as the input of the 2D model, and the array (R, G, B) is recorded i Sample image pic i The color information of the point, the generated sample number is recorded as id.

[0060] As a preferred implementation, step S12, that is, initializing a preset grid convolutional neural network according to the point cloud data information to obtain a preliminary reconstructed three-dimensional model, includes:

[0061] S121, using the spatial information in the point cloud data information as input of the grid convolutional neural network;

[0062] S122. Based on the edge length regularization term and the chamfer loss function, the grid convolutional neural network is improved through a linear cumulative additive method to obtain the geometry and texture details of the three-dimensional model, reconstruct the surface mesh of the three-dimensional model, and obtain a preliminary reconstructed three-dimensional model.

[0063] In an embodiment of the present invention, based on the edge length regularization term and the chamfer loss function, the MeshCNN network is improved through a linear cumulative additive method to initialize the 3D network, obtain the fine details of the geometry and texture of the initially reconstructed three-dimensional model, and reconstruct the corresponding surface mesh.

[0064] See also Figure 3 , is a schematic diagram of the construction principle of the MeshCNN network in an embodiment of the present invention. The initial untextured 3D mesh is reconstructed by constructing a 3D network based on the improved MeshCNN. Given the initial point cloud as input, a convex hull is generated as the initial mesh, and the mesh is deformed into the target shape. A graph is constructed on the edge of the initial convex hull, on which the model network can be run to generate vertex displacements to update the 3D shape. The features on each graph node are specified as random vectors sampled from a Gaussian distribution, and the mesh CNN is trained to deform the mesh by minimizing the chamfer distance to the input point cloud. The network topology is updated and refined again using the model network.

[0065] As a preferred implementation, step S122 specifically includes:

[0066] Generating a three-dimensional grid of the grid convolutional neural network as a first three-dimensional grid according to spatial information of the input target image;

[0067] By extracting voxel features of the first three-dimensional network, predicting the probability network of single voxel occupancy, replacing each occupied voxel with a triangular mesh according to a preset voxel occupancy probability and a voxel occupancy binarization threshold, and merging shared vertices and edges between adjacent occupied voxels to generate a second three-dimensional mesh;

[0068] Processing the second three-dimensional mesh by mesh subdivision branching, and continuously updating the vertex positions of the second three-dimensional mesh;

[0069] In the process of updating the vertex positions, the target loss function is calculated based on the edge length regularization term and the chamfer loss function. When the target loss function approaches convergence, the vertex position update is completed to obtain a preliminary reconstructed three-dimensional model.

[0070] Specifically, 3D voxels are first extracted: the 3D shape of each detected geometric body is given by predicting the probability network of single voxel occupancy. When the input sample array (X, Y, Z) i, mark the cubic area occupied by the three-dimensional model as G×G×G, that is, predict the complete three-dimensional shape of the area. Input the voxel occupancy probability and the binarization threshold of voxel occupancy. Each occupied voxel is replaced by a rectangular triangle mesh, and the shared vertices and edges between adjacent occupied voxels are merged to generate a rough 3D shape, which is the second three-dimensional mesh.

[0071] Next, the mesh subdivision branch is processed: After the mesh is built, the voxel grid from the previous step provides a rough 3D shape. This 3D shape is processed by the mesh subdivision branch, which refines its vertex positions using a series of subdivision stages.

[0072] Specifically, generate an image-aligned feature vector for each mesh vertex. Given a feature map, compute a bilinearly interpolated image feature at each projected vertex location. Propagate information along mesh edges. Given the input vertex features {fi}, compute the updated features:

[0073]

[0074] Where N(i) is the neighbors of the i-th vertex in the grid, W0 and W1 are the learned weight matrices, and Relu() is the linear rectification function. Each stage of the grid subdivision branch uses several graph convolutional layers to aggregate information on the local grid area.

[0075] Updated vertex positions are calculated, updating the mesh geometry. Each stage of the mesh subdivision branch ends with vertex subdivision, generating an intermediate mesh output.

[0076] In the process of updating the vertex position, the target loss function is established and updated: when the vertex position is updated, when the target loss function approaches convergence, the geometric prediction is completed, the model is judged to be optimal, and the fitting is stopped. In an embodiment of the present invention, the edge length regularization term and the chamfer loss function are used to improve the MeshCNN network through a linear cumulative additive method. The target loss function is:

[0077] L=aL chamfer +bL edge ;

[0078]

[0079]

[0080] Among them, a and b are configurable hyperparameters, L c h amfer is the chamfer loss function, L edge is the loss function corresponding to the edge length regularization term, p is the vertex of the generated network, To generate the sampling point of the network surface, q is a point in the input point cloud, N(p) is the ring adjacent to the vertex in the generated network, and k∈N(p).

[0081] By adopting the technical means of the embodiment of the present invention, the edge length regularization term is added to the chamfer loss function to accelerate the convergence speed of the network and effectively increase the model accuracy.

[0082] As a preferred implementation, step S13, i.e., constructing a two-dimensional model through a deep learning model according to the point cloud data information, and performing a texture refinement operation on the initially reconstructed three-dimensional model through the two-dimensional model, includes:

[0083] S131. Construct a two-dimensional model based on the deep learning model using the improved fully convolutional network semantic segmentation model;

[0084] S132, using the color information in the point cloud data information as input of the two-dimensional model;

[0085] S133, by predicting the spatial vertex positions corresponding to the image in the two-dimensional model, using sparse mapping as a supervision sample, training an independent two-dimensional model, performing coordinate refinement in the X, Y and Z directions and generating R, G, B color values;

[0086] S134, using the predicted dense position UV map to update the vertex positions in the preliminary reconstructed three-dimensional model, and then feeding it into the two-dimensional model for texture refinement to complete iterative optimization.

[0087] In an embodiment of the present invention, the preliminary reconstructed 3D model obtained in the previous step is refined by the trained 2D model, the 2D representation of the 3D grid is used as the image input, and a 2D network is constructed based on the deep learning model using the improved full convolutional network semantic segmentation model, effectively refining the 3D model target with complex structure and blurred boundaries. By predicting the spatial vertex position corresponding to the image in the 2D model, using sparse mapping as a supervision sample, an independent 2D network is trained for XYZ refinement and RGB generation.

[0088] Specifically, we first create a spatial coordinate mapping: create a UV atlas from the initial mesh. For each point q in the input point cloud, we query the triangle face ID and barycentric coordinates within the mesh surface triangle to find its nearest point on the initial mesh. The UV coordinates in the texture atlas are calculated, and the coordinates (x, y, z) of each point q in the input point cloud are randomly selected for traversal. Finally, a sparse three-dimensional XYZ map is created in UV space to record the 3D positions of all points in the input point cloud.

[0089] Then refine the spatial coordinate mapping: train the 2D sparse mapping projection of the 3D image through a fully convolutional network semantic segmentation model. Figure 4 , is a structural diagram of a two-dimensional model based on a fully convolutional network semantic segmentation model in an embodiment of the present invention, by improving the model architecture of FCN. It has a two-dimensional structure and is divided into several blocks along the depth dimension. An early exit classifier is implemented at the end of each block, and flexibility is achieved by the possibility of stopping calculations at any desired classifier. In addition to batch standard statistics, all subnetworks share their parameters. In order to solve the problem of three-dimensional model targets in three-dimensional maps, the boundaries of the three-dimensional models are blurred in the image acquisition itself, and the staircase structure is fine and complex. After three-dimensional reconstruction, there are low clarity and low texture, and the sampling itself depends on hardware, and the accuracy depends on high-quality samples.

[0090] As a preferred implementation, step S14, i.e., performing mixed iterative solution on the three-dimensional model after the texture refinement operation and the two-dimensional model to obtain a target three-dimensional model, includes:

[0091] S141. Generate a high-resolution texture map in a hybrid iterative manner based on the three-dimensional model and the two-dimensional model after the texture refinement operation, improve the geometric image of the three-dimensional model, and obtain a target three-dimensional model.

[0092] In the embodiment of the present invention, the refinement of the dimensional optimization of the vertex space information by 2D significantly improves the clarity and texture of the 3D geometry and enhances the smoothness. The model generates high-resolution textures, uses the 2D network to encode the color information of the collected samples as the (r, g, b) color values ​​of the input point cloud into a sparse UV map, and runs the 2D network to reconstruct a dense texture map supervised by the sparse signal from the input point cloud.

[0093] Given the input point cloud data, the corresponding surface mesh is reconstructed with fine details of geometry and texture. The initial untextured 3D model is reconstructed by building a network based on the improved MeshCNN, and then a 2D model is built based on the FCN network to improve the geometry quality and generate high-resolution texture maps in an iterative manner. Through the iterative run of the two networks, the vertex positions in the 3D model are updated with the predicted dense position UV map, which is then fed into the 2D model for another refinement, gradually improving the surface quality to obtain a 3D model.

[0094] As an example, assume that the input image input size is 4×4, the element matrix is: input = [x1x2x3x4x5x6x7x8x9x10x11x12x13x14x15x16], the convolution kernel size is 3×3, the element matrix is: input = [w0, 0w0, 1w0, 2w1, 0w1, 1w1, 2w2, 0w2, 1w2, 2]; when the stride is 1 and the padding is 0, it can be calculated that the output tensor size after the convolution operation is 2×2. The fully connected layer can use a matrix to represent its operation. The convolutional layer can also: expand the input element matrix into a column vector X: input = [x1x2x3x4x5x6x7x8x9x10x11x12x13x14x15x16]T; expand the element matrix of the output image output into a column vector Y: output = [y1y2y3y4]T; for the input element matrix X and the output element matrix Y, use matrix operations to describe this process: Y = CX;

[0095] By derivation, we can get the sparse matrix C (the convolutional layer has fewer parameters than the fully connected layer because most of C is a sparse matrix):

[0096] C=[w0,0w0,1w0,20w1,0w1,1w1,20w2,0w2,1w2,2000000w0,0w0,1w0,20w1,0w1,1w1,20w2,0w2,1w2,2000 00000w0,0w0,1w0,20w1,0w1,1w1,20w2,0w2,1w2,2000000w0,0w0,1w0,20w1,0w1,1w1,20w2,0w2,1w2,2];

[0097] At this time, the shape of input X is 4×4. After convolution downsampling, it becomes output Y, with a shape of 2×2. If the input is 2×2, it can be upsampled to 4×4 by doing the inverse operation of the above formula X=C*Y. If we only focus on the dimension here, it is not necessarily required that C*C=1, so C* can be replaced by CT, then: X=CTY, which realizes the upsampling of low-resolution feature maps to high-resolution.

[0098] In summary, the three-dimensional map in the embodiment of the present invention Figure 3 The reconstruction method of the 3D model is to build a double-layer model and thin the model to meet the reconstruction conditions of the 3D model with sharp boundaries and complex structural details. For comparison, Poisson reconstruction is selected as the baseline method for model comparison. Figure 3The utility of the two models is compared in the 3D model sample and the public database free3D. The F1-score is selected as the evaluation standard of the model. The calculation method is as follows:

[0099]

[0100] Among them, P is the recall rate and R is the precision rate. The larger the F1 score value, the better the performance of the model.

[0101]

[0102] It can be seen that in the scene of 3D model reconstruction of 3D maps, the imaging effect quality of the 2D-3D fusion model is significantly better than the baseline method. The two-layer model is used to refine the 3D model, which further solves the problem of fuzzy edge definition of the 3D model in the scene, as well as fuzzy edges and low texture caused by the complexity and sharpness of the 3D model itself. Compared with the benchmark comparison model, the effect in the same data set in the 3D map scene is improved by about 5%, and the method is significantly creative.

[0103] By adopting the technical means of the embodiment of the present invention, based on the complete closed-loop three-dimensional reconstruction means, a set of overall architecture processes from three-dimensional model generation in three-dimensional maps to detail optimization is generated, and the clarity of the three-dimensional model is made to reach the global optimum through iteration, thereby generating a high-texture and high-definition three-dimensional model used in three-dimensional maps. By improving the MeshCNN network model, the model can converge quickly; by refining the three-dimensional model through the 2D network, the smoothness is enhanced, and finally a stereo image of the reconstructed three-dimensional model is obtained, making the model more suitable for rapid prediction and reconstruction of targets on two-dimensional images in three-dimensional map scenes. The present invention uses a 2D-3D deep fusion model, which does not rely on the hardware level, but through detection, generative model modeling, to 2D model refinement, and by constructing a two-layer deep learning model, it solves the problem of three-dimensional stereo high-definition reconstruction at a general image level and not relying on the hardware level, and fully considers the problems of blurred boundaries of three-dimensional models and complex building structures in three-dimensional maps, and finally presents a high-texture and high-definition reconstructed image.

[0104] See also Figure 5 , is a schematic diagram of the structure of a three-dimensional model reconstruction device provided by an embodiment of the present invention. The embodiment of the present invention provides a three-dimensional model reconstruction device 20, including:

[0105] The point cloud data acquisition module 21 is used to acquire point cloud data information of the target image in the three-dimensional map;

[0106] A three-dimensional model construction module 22 is used to initialize a preset grid convolutional neural network according to the point cloud data information to obtain a preliminary reconstructed three-dimensional model;

[0107] A two-dimensional model construction module 23 is used to construct a two-dimensional model through a deep learning model according to the point cloud data information, and perform a texture refinement operation on the initially reconstructed three-dimensional model through the two-dimensional model;

[0108] The hybrid iterative solution module 24 is used to perform hybrid iterative solution on the three-dimensional model after the texture refinement operation and the two-dimensional model to obtain a target three-dimensional model.

[0109] As a preferred implementation, the point cloud data acquisition module 21 is specifically used to: acquire the spatial information and color information of the target image in the three-dimensional map to obtain the point cloud data information.

[0110] As a preferred implementation, the three-dimensional model building module 22 is specifically used for:

[0111] Using the spatial information in the point cloud data information as input to the grid convolutional neural network;

[0112] Based on the edge length regularization term and the chamfer loss function, the grid convolutional neural network is improved through a linear cumulative additive method to obtain the geometry and texture details of the three-dimensional model, reconstruct the surface mesh of the three-dimensional model, and obtain a preliminary reconstructed three-dimensional model.

[0113] As a preferred embodiment, the mesh convolutional neural network is improved by a linear cumulative additive method based on an edge length regularization term and a chamfer loss function to obtain the geometric figures and texture details of the three-dimensional model, reconstruct the surface mesh of the three-dimensional model, and obtain a preliminary reconstructed three-dimensional model, including:

[0114] Generating a three-dimensional grid of the grid convolutional neural network as a first three-dimensional grid according to spatial information of the input target image;

[0115] By extracting voxel features of the first three-dimensional network, predicting the probability network of single voxel occupancy, replacing each occupied voxel with a triangular mesh according to a preset voxel occupancy probability and a voxel occupancy binarization threshold, and merging shared vertices and edges between adjacent occupied voxels to generate a second three-dimensional mesh;

[0116] Processing the second three-dimensional mesh by mesh subdivision branching, and continuously updating the vertex positions of the second three-dimensional mesh;

[0117] In the process of updating the vertex positions, the target loss function is calculated based on the edge length regularization term and the chamfer loss function. When the target loss function approaches convergence, the vertex position update is completed to obtain a preliminary reconstructed three-dimensional model.

[0118] Preferably, the objective loss function is:

[0119] L=aL chamfer +bL edge ;

[0120]

[0121]

[0122] Among them, a and b are configurable hyperparameters, L chamfer is the chamfer loss function, L edge is the loss function corresponding to the edge length regularization term, p is the vertex of the generated network, To generate the sampling point of the network surface, q is a point in the input point cloud, N(p) is the ring adjacent to the vertex in the generated network, and k∈N(p).

[0123] As a preferred implementation, the two-dimensional model building module 23 is specifically used for:

[0124] A two-dimensional model is constructed based on the deep learning model using an improved fully convolutional network semantic segmentation model;

[0125] Using the color information in the point cloud data information as input of the two-dimensional model;

[0126] By predicting the spatial vertex positions corresponding to the images in the two-dimensional model, using sparse mapping as a supervision sample, training an independent two-dimensional model, performing coordinate refinement in the X, Y and Z directions and generating R, G, B color values;

[0127] The vertex positions in the preliminary reconstructed three-dimensional model are updated using the predicted dense position UV map, which is then fed into the two-dimensional model for texture refinement to complete iterative optimization.

[0128] As a preferred implementation, the hybrid iterative solution module 24 is specifically used for:

[0129] According to the three-dimensional model and the two-dimensional model after the texture refinement operation, a high-resolution texture map is generated in a mixed iterative manner to improve the geometric image of the three-dimensional model and obtain a target three-dimensional model.

[0130] The technical means of the embodiment of the present invention are adopted to obtain the point cloud data information of the target image of the three-dimensional model in the three-dimensional map and store it in the database, extract the point cloud data in the database, initialize the 3D network by improving the MeshCNN framework, obtain the preliminary reconstructed three-dimensional model, and establish a 2D network through the deep learning model, and refine the three-dimensional model texture based on the preliminary generated geometric body mesh, and solve the mixed iteration of the two-dimensional-three-dimensional network. The present invention uses a 2D-3D deep fusion model, and enables the model to converge quickly by improving the MeshCNN network model; refine the three-dimensional model through the 2D network, enhance the smoothness, and finally obtain the reconstructed three-dimensional model stereo image, so that the model is more suitable for the rapid prediction and target reconstruction of the target on the two-dimensional image in the three-dimensional map scene, and does not rely on the hardware level, and can solve the three-dimensional stereo high-definition reconstruction under the general image level and the hardware level, and fully considers the problem of fuzzy boundaries of the three-dimensional model and complex building structure in the three-dimensional map, and finally presents a high-texture and high-definition reconstructed image.

[0131] It should be noted that a three-dimensional model reconstruction device provided in an embodiment of the present invention is used to execute all process steps of a three-dimensional model reconstruction method in the above embodiment. The working principles and beneficial effects of the two correspond one to one, and thus will not be described in detail.

[0132] See also Figure 6 , is a structural schematic diagram of a three-dimensional model reconstruction device provided in an embodiment of the present invention. An embodiment of the present invention provides a three-dimensional model reconstruction device 30, including a processor 31, a memory 32, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the three-dimensional model reconstruction method described in any one of the above embodiments.

[0133] It should be noted that a three-dimensional model reconstruction device provided in an embodiment of the present invention is used to execute all process steps of a three-dimensional model reconstruction method in the above embodiment. The working principles and beneficial effects of the two correspond one to one, and thus will not be described in detail.

[0134] An embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the three-dimensional model reconstruction method described in any one of the above embodiments.

[0135] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0136] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for reconstructing a three-dimensional model, characterized in that: include: Obtain point cloud data information of the target image in the three-dimensional map; Initializing a preset grid convolutional neural network according to the point cloud data information to obtain a preliminary reconstructed three-dimensional model; According to the point cloud data information, a two-dimensional model is constructed by a deep learning model, and a texture refinement operation is performed on the initially reconstructed three-dimensional model by using the two-dimensional model; The three-dimensional model after the texture refinement operation and the two-dimensional model are mixed and iterated to obtain a target three-dimensional model.

2. The three-dimensional model reconstruction method according to claim 1, characterized in that: The step of obtaining point cloud data information of a target image in a three-dimensional map includes: The spatial information and color information of the target image in the three-dimensional map are acquired to obtain the point cloud data information.

3. The three-dimensional model reconstruction method according to claim 2, characterized in that: Initializing a preset grid convolutional neural network according to the point cloud data information to obtain a preliminary reconstructed three-dimensional model includes: Using the spatial information in the point cloud data information as input to the grid convolutional neural network; Based on the edge length regularization term and the chamfer loss function, the grid convolutional neural network is improved through a linear cumulative additive method to obtain the geometry and texture details of the three-dimensional model, reconstruct the surface mesh of the three-dimensional model, and obtain a preliminary reconstructed three-dimensional model.

4. The three-dimensional model reconstruction method according to claim 3, characterized in that: The grid convolutional neural network is improved by a linear cumulative additive method based on the edge length regularization term and the chamfer loss function to obtain the geometric figures and texture details of the three-dimensional model, reconstruct the surface mesh of the three-dimensional model, and obtain a preliminary reconstructed three-dimensional model, including: Generating a three-dimensional grid of the grid convolutional neural network as a first three-dimensional grid according to spatial information of the input target image; By extracting voxel features of the first three-dimensional network, predicting the probability network of single voxel occupancy, replacing each occupied voxel with a triangular mesh according to a preset voxel occupancy probability and a voxel occupancy binarization threshold, and merging shared vertices and edges between adjacent occupied voxels to generate a second three-dimensional mesh; Processing the second three-dimensional mesh by mesh subdivision branching, and continuously updating the vertex positions of the second three-dimensional mesh; In the process of updating the vertex positions, the target loss function is calculated based on the edge length regularization term and the chamfer loss function. When the target loss function approaches convergence, the vertex position update is completed to obtain a preliminary reconstructed three-dimensional model.

5. The three-dimensional model reconstruction method according to claim 4, characterized in that: The objective loss function is: <h2 style=";text-align:left;direction:ltr">L=aL<h2 style=";text-align:left;direction:ltr"> chamfer <h2 style=";text-align:left;direction:ltr"> +bL<h2 style=";text-align:left;direction:ltr"> edge <h2 style=";text-align:left;direction:ltr"> ; Among them, a and b are configurable hyperparameters, L chamfer is the chamfer loss function, L edge is the loss function corresponding to the edge length regularization term, p is the vertex of the generated network, To generate the sampling point of the network surface, q is a point in the input point cloud, N(p) is the ring adjacent to the vertex in the generated network, and k∈N(p).

6. The method for reconstructing a three-dimensional model according to claim 2, wherein: The step of constructing a two-dimensional model through a deep learning model according to the point cloud data information, and performing a texture refinement operation on the initially reconstructed three-dimensional model through the two-dimensional model includes: A two-dimensional model is constructed based on the deep learning model using an improved fully convolutional network semantic segmentation model; Using the color information in the point cloud data information as input of the two-dimensional model; By predicting the spatial vertex positions corresponding to the images in the two-dimensional model, using sparse mapping as a supervision sample, training an independent two-dimensional model, performing coordinate refinement in the X, Y and Z directions and generating R, G, B color values; The vertex positions in the initially reconstructed three-dimensional model are updated using the predicted dense position UV map, and are fed into the two-dimensional model for texture refinement to complete iterative optimization.

7. The method for reconstructing a three-dimensional model according to any one of claims 1 to 6, characterized in that: The method of performing mixed iterative solving on the three-dimensional model after the texture refinement operation and the two-dimensional model to obtain a target three-dimensional model includes: According to the three-dimensional model and the two-dimensional model after the texture refinement operation, a high-resolution texture map is generated in a mixed iterative manner to improve the geometric image of the three-dimensional model and obtain a target three-dimensional model.

8. A three-dimensional model reconstruction device, characterized in that: include: A point cloud data acquisition module is used to acquire point cloud data information of a target image in a three-dimensional map; A three-dimensional model construction module, used to initialize a preset grid convolutional neural network according to the point cloud data information to obtain a preliminary reconstructed three-dimensional model; A two-dimensional model construction module, used to construct a two-dimensional model through a deep learning model according to the point cloud data information, and perform a texture refinement operation on the initially reconstructed three-dimensional model through the two-dimensional model; The hybrid iterative solution module is used to perform hybrid iterative solution on the three-dimensional model after the texture refinement operation and the two-dimensional model to obtain a target three-dimensional model.

9. A three-dimensional model reconstruction device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for reconstructing a three-dimensional model as claimed in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the three-dimensional model reconstruction method according to any one of claims 1 to 7.

Citation Information

Cited By

  • High-precision three-dimensional terrain reconstruction method based on deep learning

    CN120655849A