Semantic perception multi-view terrain three-dimensional reconstruction method, medium and equipment

By extracting multi-view semantic features through the self-supervised remote sensing model and attention module, and assisting the depth prediction module, it solves the problems of ignoring semantic information and insufficient accuracy of segmentation models in the existing technology, and achieves a more accurate three-dimensional terrain reconstruction effect.

CN118608708APending Publication Date: 2024-09-06SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410693987.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing multi-view 3D reconstruction methods ignore semantic information, resulting in poor reconstruction performance in occlusion and weak texture areas, and rely on semantic segmentation models with limited accuracy and generalization capabilities, which affects the algorithm effect.

Method used

The self-supervised pre-trained remote sensing model and attention module are used to extract the semantic correlation between multiple views. The semantic information interaction module and the multi-scale feature extraction module assist the neural network in estimating the depth map of the terrain multi-view to achieve more accurate terrain. 3D reconstruction.

Benefits of technology

The performance of the multi-view 3D reconstruction model is enhanced, and the accuracy and robustness of the reconstruction are improved by exploring and mining semantic relationships, especially the processing capabilities in occlusion and weak texture areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608708A
    Figure CN118608708A
Patent Text Reader

Abstract

The invention provides a multi-view terrain three-dimensional reconstruction method based on semantic perception, a medium and equipment. The method comprises the following steps: extracting three-level multi-view features from a multi-view image by using a semantic information interaction module, and then obtaining semantic related information between a reference view and a source view through a three-layer semantic information attention layer so as to obtain semantic information interaction features; performing multi-scale feature extraction by combining the multi-view image and semantic interaction features and by means of a multi-scale feature extraction module, and respectively obtaining D multi-view features of different scales; a depth prediction module is adopted to carry out D-stage depth prediction on the multi-view features; and a final three-dimensional point cloud is generated according to the depth prediction map, and three-dimensional reconstruction is completed. According to the method, a self-supervised pre-trained remote sensing model and an attention module are used for mining semantic correlation among multiple views, and a neural network model is assisted to estimate a depth map of the multiple views of the terrain, so that more accurate three-dimensional reconstruction of the terrain is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional reconstruction technology, and more specifically, to a semantically-aware multi-view terrain three-dimensional reconstruction method, medium and device. Background Art

[0002] Multi-view Figure 3 According to the output data form, the multi-dimensional reconstruction method can be divided into point cloud-based method, voxel-based method, mesh-based method and depth map-based method. Figure 3 Although the dimensional reconstruction method is simple and intuitive, it is relatively difficult to optimize the neural network model due to the modal differences between the three types of output data forms and the input multi-views.

[0003] The depth map-based method converts the 3D scene reconstruction problem into the prediction problem of the depth map corresponding to multiple views, and directly optimizes it using the neural network model. This method makes the reconstruction process more direct and efficient. In addition, as an intermediate representation of multiple views and 3D scenes, the depth map can be flexibly applied to different downstream tasks. Therefore, the depth map-based method is currently the most popular method for multi-view scene reconstruction. Figure 3 Mainstream technical solutions for maintenance and reconstruction.

[0004] Early traditional multi-view Figure 3 The 3D reconstruction method relies on manually designed features and similarity measurement methods to extract and match features from multiple views to find the corresponding feature points between different views, and then calculate the depth map using the binocular geometric relationship. Figure 3 The multi-dimensional reconstruction method is computationally complex and highly dependent on manual parameters, which results in poor generalization of the algorithm in scenes such as occluded areas and weak texture areas. To solve this problem, early work MVSNet used a neural network model to complete the multi-view Figure 3 It proposes an end-to-end, low-memory multi-view Figure 3 dimensional reconstruction method, laying the foundation for multi-view Figure 3 Later, CasMVSNet proposed a three-stage network structure to construct feature pyramids of different scales and cost volume pyramids to predict depth maps of different scales, thereby achieving coarse-to-fine depth prediction. Figure 3 Most subsequent works continue this coarse-to-fine reconstruction paradigm.

[0005] Although the previous methods have made great progress, they still have the following two shortcomings:

[0006] 1) Ignoring the semantic information of multiple views, lacking the exploration and mining of semantic information between multiple views; especially in the task of terrain 3D reconstruction, occlusion between multiple views is very common, which limits the existing multi-view Figure 3 The performance of the dimensional reconstruction method;

[0007] 2) Simply use the semantic segmentation model to obtain explicit segmentation results of multiple views and perform special processing on this basis; this method is limited by the accuracy and generalization ability of the semantic segmentation model. The semantic segmentation model cannot generalize to multiple views of any 3D scene. Figure 3 Dimensional reconstruction provides accurate segmentation results, thus affecting the algorithm effect. Summary of the invention

[0008] In order to overcome the shortcomings and deficiencies in the prior art, the purpose of the present invention is to provide a semantically-aware multi-view terrain 3D reconstruction method, medium and device; this method uses a self-supervised pre-trained remote sensing model and an attention module to mine the semantic correlation between multiple views, and assists a neural network model in estimating the depth map of multiple views of the terrain, thereby achieving more accurate terrain 3D reconstruction.

[0009] In order to achieve the above object, the present invention is implemented by the following technical solutions: a semantically aware multi-view terrain 3D reconstruction method, based on a multi-view terrain 3D reconstruction model; the multi-view terrain 3D reconstruction model includes a semantic information interaction module, a multi-scale feature extraction module and a depth prediction module;

[0010] The semantically aware multi-view terrain 3D reconstruction method comprises the following steps:

[0011] S1, input a multi-view image consisting of a reference view and a source view, and camera parameters corresponding to the multi-view image;

[0012] S2, using the semantic information interaction module to extract three-level multi-view features from the multi-view image, and then obtaining the semantic related information between the reference view and the source view through the three-layer semantic information attention layer, so as to obtain the semantic information interaction feature;

[0013] S3, combining the multi-view image and semantic interaction features, using the multi-scale feature extraction module, performing multi-scale feature extraction, and obtaining multi-view features of D different scales, respectively; where D ≥ 3 and D is an integer;

[0014] S4. Use the depth prediction module to perform D-stage depth prediction on the multi-view features: each stage corresponds to a multi-view feature of a scale, and the scale of the multi-view features in the previous stage is less than the scale of the multi-view features in the next stage; the sub-steps of each stage include differentiable homography transformation, adaptive aggregation and depth prediction; the depth prediction of the next stage is based on the multi-view features of the scale corresponding to the stage, combined with the depth prediction of the previous stage, to perform depth prediction refinement and iteration; the depth prediction module uses the depth prediction map obtained in the last stage as output;

[0015] S5. Combine the depth prediction map output by the depth prediction module with the corresponding camera parameters, back-project the reference view pixels corresponding to the reference view into the three-dimensional space, and use the consistency constraints between multiple viewpoints to filter the pixels during the back-projection process to generate the final three-dimensional point cloud and complete the three-dimensional reconstruction.

[0016] Preferably, in step S2, the semantic information interaction module includes a self-supervised remote sensing model and a three-layer semantic information attention layer; the self-supervised remote sensing model refers to a visual Transformer model composed of several layers of Transformer blocks;

[0017] The method for acquiring the semantic information interaction feature is:

[0018] The multi-view image is input into the self-supervised remote sensing model, and the features of the two different layers in the middle of the self-supervised remote sensing model and the output of the last layer of the Transformer block are extracted as the three-level multi-view features; the reference view features in the first-level multi-view features are input into the self-attention layer for global semantic information update; the updated reference view features are used as Q of the cross-attention layer, and the source view features are used as K and Y to capture the semantic correlation between the reference view and the source view to obtain the updated source view features, completing the first round of semantic information update and interaction;

[0019] Then, the updated reference view features and source view features are spliced ​​and added to the multi-view features of the next level to perform the next round of semantic information update and interaction; the execution is repeated until three rounds of semantic information update and interaction are completed; the reference view features and source view features obtained from the third round of semantic information update and interaction are spliced ​​as the final semantic information interaction features.

[0020] Preferably, in step S3, the multi-scale feature extraction module includes a series of convolutional layers and interpolation upsampling layers;

[0021] The multi-scale feature extraction module performs multi-layer convolution operations on the multi-view images, and adds the semantic information interaction features obtained by the semantic information interaction module after the bottom-level convolution; extracts the outputs of the middle D-1 different layers of convolution from the multi-layer convolution, as well as the output of the bottom-level convolution after adding the semantic information interaction features, and obtains D multi-view features of different scales through convolution and interpolation upsampling layers.

[0022] Preferably, in step S4, the differentiable homography transformation refers to: based on the multi-view features of the corresponding scale of the current stage Perform differentiable homography transformation to obtain multi-view transformation features under the reference perspective Where V0 is the reference view feature at the reference view angle, is the source view feature under the reference perspective; adaptive aggregation refers to: transforming features of multiple views Adaptive aggregation is performed to obtain the cost volume C; depth prediction refers to: using 3D U-Net to regularize the cost volume C, calculating the absolute depth prediction value of each pixel point of the reference view corresponding to the reference view, and forming a depth prediction map.

[0023] Preferably, the differentiable homography transform is based on the multi-view features of the corresponding scale at the current stage Taking the reference view feature F0 as the reference perspective, a series of depth hypothesis planes are established, and all source view features The source view transformation feature is obtained by transforming the camera parameters to the reference view. In addition, the reference view feature F0 is directly used as the reference view transformation feature V0;

[0024] A series of depth hypothesis planes in the first stage refers to: a series of depth hypothesis planes obtained by uniformly sampling the depth range of multi-view features; a series of depth hypothesis planes in the second and subsequent stages refers to: a series of depth hypothesis planes are set using the depth prediction map obtained in the previous stage as the initial depth and half of the initial depth range of the previous stage as the depth range; the number of depth hypothesis planes in the latter stage is less than the number of depth hypothesis planes in the previous stage.

[0025] Preferably, the adaptive aggregation is for the multi-view transformation features obtained after the differentiable homography transformation First, each source view transform feature Calculate the similarity with the reference view transformation feature V0 with matching cost, and then learn the corresponding weight ω through a sub-network i And weight the matching cost, and sum all the matching costs to get the final cost body C:

[0026]

[0027] Preferably, the depth prediction uses 3D U-Net to regularize the cost volume C; predict the probability of each pixel point of the reference view feature F0 in each depth hypothesis plane, and calculate the absolute depth prediction value pred_depth of each pixel point of the reference view in a probability weighted manner to form a depth prediction map;

[0028] The absolute depth prediction value pred_depth of each pixel is:

[0029] pred_depth=d0×p0+d1×p1+…+d q-1 *p q-1

[0030] Among them, d0, d1, ..., d q-1 Represent q depth hypothesis planes respectively; p0, p1, ..., p q-1 They represent the probabilities corresponding to the q depth hypothesis planes.

[0031] Preferably, the multi-view terrain 3D reconstruction model refers to a trained multi-view terrain 3D reconstruction model; during the training of the depth prediction module, the self-supervised remote sensing model of the semantic information interaction module is frozen, and the losses of each stage of the depth prediction module are calculated respectively, and the total loss is the weighted sum of the losses of all stages; then gradient backpropagation and model parameter update are performed, and the training is repeated for several rounds.

[0032] A readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the semantically-aware multi-view terrain three-dimensional reconstruction method.

[0033] A computer device comprises a processor and a memory for storing a program executable by the processor. When the processor executes the program stored in the memory, the semantically-aware multi-view terrain three-dimensional reconstruction method is implemented.

[0034] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0035] The present invention focuses on exploring and mining the semantic relationship between multiple views, extracts robust, multi-level multi-view semantic features with the help of the generalization ability and semantic emergence ability of the self-supervised pre-trained remote sensing model, designs an attention module to fuse and interact with the semantic related information between the reference view and the source view layer by layer, strengthens the model's ability to perceive the semantics between multiple views, assists the model in estimating the depth prediction map of the terrain multi-view, and enhances the multi-view Figure 3 3D reconstruction model, thereby achieving more accurate 3D reconstruction of terrain. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1It is an overall block diagram of the semantically-aware multi-view terrain 3D reconstruction method of the present invention;

[0037] Figure 2 It is a structural schematic diagram of a semantic information interaction module of the semantically-aware multi-view terrain 3D reconstruction method of the present invention;

[0038] Figure 3 2 is a schematic diagram of the structure of a multi-scale feature extraction module of the semantically-aware multi-view terrain 3D reconstruction method of the present invention;

[0039] Figure 4(a) to Figure 4(h) They are eight kinds of reconstructed point cloud scene visualization effects obtained by the present invention. DETAILED DESCRIPTION

[0040] The present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0041] Embodiment 1

[0042] The present embodiment provides a semantically-aware multi-view terrain 3D reconstruction method based on a multi-view terrain 3D reconstruction model; the multi-view terrain 3D reconstruction model includes a semantic information interaction module, a multi-scale feature extraction module and a depth prediction module.

[0043] Semantic-aware multi-view terrain 3D reconstruction methods, such as Figure 1 As shown, the following steps are included:

[0044] S1. Input a multi-view image consisting of a reference view and a source view, and the camera parameters corresponding to the multi-view image.

[0045] S2. Use the semantic information interaction module to extract three-level multi-view features from the multi-view image, and then mine the reference through the three-layer semantic information attention layer to obtain the semantic related information between the reference view and the source view, thereby obtaining the semantic information interaction features.

[0046] Semantic information interaction module, such as Figure 2 As shown, it includes a self-supervised remote sensing model and three layers of semantic information attention layers; the self-supervised remote sensing model refers to a visual Transformer model composed of several layers of Transformer blocks.

[0047] The method for acquiring the semantic information interaction feature is:

[0048] The multi-view image is input into the self-supervised remote sensing model, and the features of the two different layers in the middle of the self-supervised remote sensing model and the output of the last layer of the Transformer block are extracted as the three-level multi-view features; the reference view features in the first-level multi-view features are input into the self-attention layer to update the global semantic information; the updated reference view features are used as Q of the cross-attention layer, and the source view features are used as K and Y to capture the semantic correlation between the reference view and the source view to obtain the updated source view features, completing the first round of semantic information update and interaction;

[0049] Then, the updated reference view features and source view features are concatenated and added to the multi-view features of the next level to perform the next round of semantic information update and interaction; the process is repeated until three rounds of semantic information update and interaction are completed; the reference view features and source view features obtained from the third round of semantic information update and interaction are used as the final semantic information interaction features.

[0050] S3. Combining the multi-view images with semantic interaction features, and using the multi-scale feature extraction module, multi-scale feature extraction is performed to obtain multi-view features of D different scales, respectively; where D ≥ 3 and D is an integer.

[0051] The multi-scale feature extraction module includes a series of convolutional layers and interpolation upsampling layers, such as Figure 3 shown.

[0052] In this embodiment, the number of scale types D is 3; the multi-scale feature extraction module obtains large-scale, medium-scale and small-scale multi-view features; specifically, the multi-scale feature extraction module performs multi-layer convolution operations on the multi-view image, and adds the semantic information interaction features obtained by the semantic information interaction module after the bottom-level convolution; the outputs of the two different middle layers of convolution and the output of the bottom-level convolution after adding the semantic information interaction features are extracted from the multi-layer convolution, and the large-scale, medium-scale and small-scale multi-view features are obtained through convolution and interpolation upsampling layers.

[0053] S4. Use the depth prediction module to perform D stages of depth prediction on the multi-view features: each stage corresponds to a multi-view feature of a scale, and the scale of the multi-view features in the previous stage is less than the scale of the multi-view features in the next stage; the sub-steps of each stage include differentiable homography transformation, adaptive aggregation and depth prediction; the depth prediction of the next stage is based on the multi-view features of the scale corresponding to the stage, combined with the depth prediction of the previous stage, to perform depth prediction refinement and iteration; the depth prediction module uses the depth prediction map obtained in the last stage as output.

[0054] Differentiable homography transformation refers to: multi-view features based on the corresponding scale of the current stage Perform differentiable homography transformation to obtain multi-view transformation features Where V0 is the reference view transform feature at the reference view angle, is the source view transformation feature under the reference perspective; adaptive aggregation refers to: Adaptive aggregation is performed to obtain the cost volume C; depth prediction refers to: using 3D U-Net to regularize the cost volume C, calculating the absolute depth prediction value of each pixel point of the reference image corresponding to the reference view, and forming a depth prediction map.

[0055] Among them, the differentiable homography transformation is based on the multi-view features of the corresponding scale at the current stage Taking the reference view feature F0 as the reference perspective, a series of depth hypothesis planes are established, and all source view features The reference view transformation feature is obtained by transforming the camera parameters to the reference view angle In addition, the reference view feature F0 is directly used as the reference view transformation feature V0;

[0056] A series of depth hypothesis planes in the first stage refers to: a series of depth hypothesis planes obtained by uniformly sampling the depth range of multi-view features; a series of depth hypothesis planes in the second and subsequent stages refers to: a series of depth hypothesis planes are set using the depth prediction map obtained in the previous stage as the initial depth and half of the initial depth range of the previous stage as the depth range; the number of depth hypothesis planes in the latter stage is less than the number of depth hypothesis planes in the previous stage.

[0057] Adaptive aggregation, for multi-view transformation features obtained after differentiable homography transformation First, each source view transform feature Calculate the similarity with the reference view transformation feature V0 with matching cost, and then learn the corresponding weight ω through a sub-network i And weight the matching cost, and sum all the matching costs to get the final cost body C:

[0058]

[0059] Depth prediction: Use 3D U-Net to regularize the cost volume C, and use the powerful learning ability of the neural network to remove the uncertain effects of noise, occlusion, and weak texture areas. Predict the probability of each pixel of the reference view feature F0 at each depth hypothesis plane, and calculate the absolute depth prediction value pred_depth of each pixel of the reference view in a probability-weighted manner to form a depth prediction map.

[0060] Predicting the probability of each pixel of the reference feature F0 in each depth hypothesis plane is similar to predicting the probability of an object belonging to a certain class in a classification task; the specific method is: using the classification idea to predict the depth in the depth prediction module of the multi-view terrain 3D reconstruction model; different from classification, the depth prediction result of the multi-view terrain 3D reconstruction model does not take the highest probability, but performs probability weighting on the depth hypothesis plane.

[0061] The absolute depth prediction value pred_depth of each pixel is:

[0062] pred_depth=d0×p0+d1×p1+…+d q-1 *p q-1

[0063] Among them, d0, d1, ..., d q-1 Represent q depth hypothesis planes respectively; p0, p1, ..., p q-1 They represent the probabilities corresponding to the q depth hypothesis planes.

[0064] S5. Combine the depth prediction map output by the depth prediction module with the corresponding camera parameters, back-project the reference view pixels into the three-dimensional space, and use the consistency constraints between multiple perspectives to filter the pixels during the back-projection process to generate the final three-dimensional point cloud and complete the three-dimensional reconstruction.

[0065] The multi-view terrain 3D reconstruction model of the present invention refers to a trained multi-view terrain 3D reconstruction model; during the training of the depth prediction module, the self-supervised remote sensing model of the semantic information interaction module is frozen, and the losses of each stage of the depth prediction module are calculated respectively, and the total loss is the weighted sum of the losses of all stages; then gradient back propagation and model parameter update are performed, and the training is repeated for several rounds.

[0066] The following takes 3 multi-view feature scale types and 3-stage depth prediction as an example to illustrate the specific multi-view terrain 3D reconstruction model training steps:

[0067] X1. According to the general multi-view Figure 3 Prepare a training data set by dimensional reconstruction data processing; take a batch of data from the data set each time, including multiple groups of multi-view images and camera parameters corresponding to the multiple views (including camera intrinsic parameters and camera extrinsic parameters), where each group of multi-view images consists of a reference view image and four source view images;

[0068] X2. For multi-view images, the semantic information interaction module is used to extract three-layer multi-view features using the self-supervised remote sensing model (CSMAE). Then, the reference is continuously mined through the three-layer semantic information attention layer to obtain the semantic related information between the reference view and the source view, and the semantic information interaction feature is obtained;

[0069] X3. Combining multi-view images with newly acquired semantic interaction features, multi-scale feature extraction is performed with the help of a multi-scale feature extraction module to obtain small-scale, medium-scale, and large-scale multi-view feature maps, paving the way for the next three-level processing flow.

[0070] X4. In the first stage, the minimum scale feature map is selected, and 48 depth hypothesis planes are uniformly selected within the preset initial depth interval. These depth hypothesis planes are used to adjust the multi-view features through differential homography transformation and aggregated to form a cost volume;

[0071] X5. The initially constructed cost volume is optimized by 3D U-Net to eliminate noise. After that, the probability of each pixel corresponding to each depth hypothesis plane is predicted, and the absolute depth prediction value is determined by the probability weighted aggregation method.

[0072] X6. Enter the second stage, taking the first-order depth prediction map as the new starting point, reducing the depth exploration range to half of the previous stage, and again evenly selecting 32 depth hypothesis planes around the central depth, repeating the operation process from X4 to X5;

[0073] X7. The third stage follows the logic of the second stage, but the depth assumptions are halved to 8, and the depth prediction is continuously refined. The whole process is iterative;

[0074] X8. After the loss calculation of the three stages is completed, the total loss is the weighted sum of the losses of the three stages, with weights of 0.5, 1, and 2 respectively; then gradient backpropagation and model parameter update are performed, and the training is repeated for 16 rounds (epochs). Among them, the weights of the self-supervised remote sensing model of the semantic information interaction module are frozen and do not participate in gradient calculation and parameter update.

[0075] After training the multi-view terrain 3D reconstruction model, the reasoning steps include:

[0076] Y1. According to the general multi-view Figure 3 Prepare a training data set by dimensional reconstruction data processing; take a batch of data from the data set each time, including multiple groups of multi-view images and camera parameters corresponding to the multiple views (including camera intrinsic parameters and camera extrinsic parameters), where each group of multi-view images consists of a reference view image and four source view images;

[0077] Y2. For multi-view images, the semantic information interaction module is used to extract three-layer multi-view features using the self-supervised remote sensing model (CSMAE). Then, the reference is continuously mined through the three-layer semantic information attention layer to obtain the semantic related information between the reference view and the source view, and the semantic information interaction feature is obtained;

[0078] Y3. Combining multi-view images with newly acquired semantic interaction features, and using the multi-scale feature extraction module, multi-scale feature extraction is implemented to obtain small-scale, medium-scale, and large-scale multi-view feature maps, paving the way for the next three-level processing flow;

[0079] Y4. In the first stage, the minimum scale feature map is selected, and 48 depth hypothesis planes are uniformly selected within the preset initial depth interval. These depth hypothesis planes are used to adjust the multi-view features through differential homography transformation and aggregated to form a cost volume;

[0080] Y5. The initially constructed cost volume is optimized by 3D U-Net to eliminate noise. After that, the probability of each pixel corresponding to each depth hypothesis plane is predicted, and the absolute depth prediction value is determined by the probability weighted aggregation method.

[0081] Y6. Enter the second stage, using the first-order depth prediction map as a new starting point, reduce the depth exploration range to half of the previous stage, and again evenly select 32 depth hypothesis planes around the central depth, repeating the operation process from Y4 to Y5; Y7. The third stage follows the logic of the second stage, but the depth hypothesis planes are halved to 8, and the depth prediction is continuously refined, and the entire process is iterated; Y8. In the final stage, the depth prediction map generated in the third stage is used as the final depth output for the entire scene at all perspectives. Once the depth prediction maps of all perspectives are completed through model reasoning, these depth prediction maps are combined with their corresponding camera parameters to realize pixel-level reverse projection, converting information from two-dimensional image space to three-dimensional space coordinates. Using consistency constraints from different perspectives, the three-dimensional points obtained by the reverse projection are strictly screened and corrected to eliminate those in multiple views. Figure 1 The outliers showing large deviations in the consistency test are removed, and finally the reconstructed point cloud scene is obtained.

[0082] Multi-view is obtained by shooting the same 3D scene from different perspectives. Therefore, there is semantic consistency between the multi-view pixels corresponding to a certain point in the 3D space, which can further improve the accuracy of the model's depth prediction. The present invention focuses on exploring and mining the semantic relationship between multi-views, extracting robust, multi-level multi-view semantic features with the help of the generalization ability and semantic emergence ability of the self-supervised pre-trained remote sensing model, designing an attention module to fuse and interact with the semantic related information between reference views and source views layer by layer, strengthening the model's semantic perception ability between multi-views, assisting the model in estimating the depth prediction map of multi-view terrain, and enhancing the multi-view Figure 3 3D reconstruction model, thereby achieving more accurate 3D reconstruction of terrain.

[0083] In addition, the semantic information interaction module designed by the method of the present invention can be easily connected with other multi-view Figure 3The dimensional reconstruction method is combined to further improve the accuracy of depth prediction, which is plug-and-play.

[0084] To further illustrate the advantages of the method of the present invention, the present invention is trained and tested on the complex terrain dataset WHU-MVS, and the obtained depth prediction map is used to reconstruct the point cloud for visualization. Figure 4(a) to Figure 4(h) There are eight kinds of visualization effects of reconstructed point cloud scenes. Table 1 shows the experimental results on the HUW-MVS dataset, using the mean absolute error in meters (M), the percentage of pixels with an absolute error less than 0.6M (<0.6M (%)), and the percentage of pixels with an absolute error less than 3 times the depth hypothesis plane (<3-interval (%)) as performance indicators. The smaller the absolute error (M), the stronger the model performance, and the larger the values ​​of <0.6M (%) and <3-interval (%), the stronger the model performance.

[0085] Table 1 Experimental results on WHU-MVS

[0086] method Absolute error (M) <0.6M(%) <3-interval(%) COLMAP SURE 0.2245 93.69 92.09 MVSNet 0.1543 95.82 95.36 R-MVSNet 0.1505 95.99 95.64 RED-Net 0.1041 98.08 97.93 CasMVSNet 0.1038 97.64 97.75 TransMVSNet 0.1441 96.11 96.03 UniMVSNet 0.1032 97.71 97.84 Method of the present invention 0.09837 97.86 97.94

[0087] It can be seen from Table 1 that the method of the present invention can effectively reduce the depth prediction error.

[0088] Embodiment 2

[0089] This embodiment provides a readable storage medium, wherein the readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the semantically-aware multi-view terrain 3D reconstruction method described in the first embodiment.

[0090] Embodiment 3

[0091] This embodiment provides a computer device, including a processor and a memory for storing a program executable by the processor. When the processor executes the program stored in the memory, the semantically-aware multi-view terrain 3D reconstruction method described in the first embodiment is implemented.

[0092] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A semantically aware multi-view terrain 3D reconstruction method, characterized by: Based on a multi-view terrain 3D reconstruction model; the multi-view terrain 3D reconstruction model includes a semantic information interaction module, a multi-scale feature extraction module and a depth prediction module; The semantically aware multi-view terrain 3D reconstruction method comprises the following steps: S1, input a multi-view image consisting of a reference view and a source view, and camera parameters corresponding to the multi-view image; S2, using the semantic information interaction module to extract three-level multi-view features from the multi-view image, and then mining the reference through the three-layer semantic information attention layer to obtain the semantic related information between the reference view and the source view, thereby obtaining the semantic information interaction feature; S3, combining the multi-view image and semantic interaction features, using the multi-scale feature extraction module, performing multi-scale feature extraction, and obtaining multi-view features of D different scales, respectively; where D ≥ 3 and D is an integer; S4. Use the depth prediction module to perform D-stage depth prediction on the multi-view features: each stage corresponds to a multi-view feature of a scale, and the scale of the multi-view features in the previous stage is less than the scale of the multi-view features in the next stage; The sub-steps of each stage include differentiable homography transformation, adaptive aggregation and depth prediction. The depth prediction of the next stage is based on the multi-view features of the corresponding scale of the stage, combined with the depth prediction of the previous stage, to perform depth prediction refinement and iteration. The depth prediction module uses the depth prediction map obtained in the last stage as output. S5. Combine the depth prediction map output by the depth prediction module with the corresponding camera parameters, back-project the reference view pixels into the three-dimensional space, and use the consistency constraints between multiple perspectives to filter the pixels during the back-projection process to generate the final three-dimensional point cloud and complete the three-dimensional reconstruction.

2. The semantically-aware multi-view terrain 3D reconstruction method according to claim 1, characterized in that: In step S2, the semantic information interaction module includes a self-supervised remote sensing model and a three-layer semantic information attention layer; the self-supervised remote sensing model refers to a visual Transformer model composed of several layers of Transformer blocks; The method for acquiring the semantic information interaction feature is: The multi-view image is input into the self-supervised remote sensing model, and the features of the two different layers in the middle of the self-supervised remote sensing model and the output of the last layer of the Transformer block are extracted as the three-level multi-view features; the reference view features in the first-level multi-view features are input into the self-attention layer for global semantic information update; the updated reference view features are used as Q of the cross-attention layer, and the source view features are used as K and Y to capture the semantic correlation between the reference view and the source view to obtain the updated source view features, completing the first round of semantic information update and interaction; Then, the updated reference view features and source view features are concatenated and added to the multi-view features of the next level to perform the next round of semantic information update and interaction; the process is repeated until three rounds of semantic information update and interaction are completed; the reference view features and source view features obtained from the third round of semantic information update and interaction are used as the final semantic information interaction features.

3. The semantically-aware multi-view terrain 3D reconstruction method according to claim 2, characterized in that: In step S3, the multi-scale feature extraction module includes a series of convolutional layers and interpolation upsampling layers; The multi-scale feature extraction module performs multi-layer convolution operations on the multi-view images, and adds the semantic information interaction features obtained by the semantic information interaction module after the bottom-level convolution; extracts the outputs of the middle D-1 different layers of convolution from the multi-layer convolution, as well as the output of the bottom-level convolution after adding the semantic information interaction features, and obtains D multi-view features of different scales through convolution and interpolation upsampling layers.

4. The semantically-aware multi-view terrain 3D reconstruction method according to claim 1, characterized in that: In step S4, the differentiable homography transformation refers to: based on the multi-view features of the corresponding scale at the current stage Perform differentiable homography transformation to obtain multi-view transformation features under the reference perspective Where V0 is the reference view transform feature at the reference view angle, is the source view transformation feature under the reference view; Adaptive aggregation refers to: transforming features of multiple views Adaptive aggregation is performed to obtain the cost volume C; depth prediction refers to: using 3D U-Net to regularize the cost volume C, calculating the absolute depth prediction value of each pixel point of the reference view corresponding to the reference view, and forming a depth prediction map.

5. The semantically-aware multi-view terrain 3D reconstruction method according to claim 4, characterized in that: The differentiable homography transform is based on the multi-view features of the corresponding scale at the current stage Taking the reference view feature F0 as the reference perspective, a series of depth hypothesis planes are established, and all source view features The source view transformation feature is obtained by transforming the camera parameters to the reference view. The reference view feature F0 is directly used as the reference view transformation feature V0; A series of depth hypothesis planes in the first stage refers to: a series of depth hypothesis planes obtained by uniformly sampling the depth range of multi-view features; a series of depth hypothesis planes in the second and subsequent stages refers to: a series of depth hypothesis planes are set using the depth prediction map obtained in the previous stage as the initial depth and half of the initial depth range of the previous stage as the depth range; the number of depth hypothesis planes in the latter stage is less than the number of depth hypothesis planes in the previous stage.

6. The semantically-aware multi-view terrain 3D reconstruction method according to claim 4, characterized in that: The adaptive aggregation is used to obtain the multi-view transformation features after the differentiable homography transformation. First, each source view transform feature Calculate the similarity with the reference view transformation feature V0 with matching cost, and then learn the corresponding weight ω through a sub-network i And weight the matching cost, and sum all the matching costs to get the final cost body C:

7. The semantically-aware multi-view terrain 3D reconstruction method according to claim 4, characterized in that: The depth prediction uses 3D U-Net to regularize the cost volume C; predicts the probability of each pixel point of the reference view feature F0 in each depth hypothesis plane, and calculates the absolute depth prediction value pred_depth of each pixel point of the reference view in a probability weighted manner to form a depth prediction map; The absolute depth prediction value pred_depth of each pixel is: pred_depth=d0×p0+d1×p1+…+d q-1 *p q-1 Among them, d0, d1, ..., d q-1 Represent q depth hypothesis planes respectively; p0, p1, ..., p q-1 They represent the probabilities corresponding to the q depth hypothesis planes.

8. The semantically-aware multi-view terrain 3D reconstruction method according to claim 2, characterized in that: The multi-view terrain 3D reconstruction model refers to a trained multi-view terrain 3D reconstruction model; during the training of the depth prediction module, the self-supervised remote sensing model of the semantic information interaction module is frozen, and the losses of each stage of the depth prediction module are calculated respectively, and the total loss is the weighted sum of the losses of all stages; then gradient backpropagation and model parameter update are performed, and the training is repeated for several rounds.

9. A readable storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, enables the processor to perform the semantically-aware multi-view terrain three-dimensional reconstruction method according to any one of claims 1 to 8.

10. A computer device comprising a processor and a memory for storing a program executable by the processor, characterized in that: When the processor executes the program stored in the memory, the semantically-aware multi-view terrain three-dimensional reconstruction method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Depth map generation method, device and equipment based on multi-view stereoscopic vision

    CN118864692A

  • A method, device and apparatus for generating a depth map based on multi-view stereo vision

    CN118864692B