Indoor and outdoor multi-scale three-dimensional reconstruction method based on unmanned aerial vehicle
FPV-NeRF solves the temporal consistency and global structure problems of NeRF in UAV 3D reconstruction through multi-scale camera space estimation and global-local scene encoder, combined with cross-resolution attention mechanism and hybrid point position embedding algorithm. Achieved higher fidelity 3D model reconstruction.
Patent Information
- Application Number
- CN202411182743.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing neural radiation field (NeRF)-based 3D reconstruction of UAVs has problems with temporal consistency, global structure, and local granularity, resulting in insufficient rendering and loss of details.
An indoor and outdoor multi-scale 3D reconstruction method FPV-NeRF based on drones is proposed. Through multi-scale camera space estimation, global-local scene encoder and rendering and comprehensive loss function, the temporal consistency and global structure are improved, and cross-resolution is introduced. rate attention mechanism and hybrid point position embedding algorithm to enhance spatial perception.
It achieves more continuous and smoother three-dimensional structure reconstruction, enhances global structural integrity and high-fidelity local detail restoration, and ensures temporal consistency and capture of high-frequency signals.
Smart Images

Figure CN118691752A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computer vision and unmanned aerial vehicle (UAV), and in particular relates to an indoor and outdoor multi-scale three-dimensional reconstruction method based on an unmanned aerial vehicle (UAV). Background Art
[0002] In the field of computer vision and drone technology, 3D reconstruction is an important task, which aims to obtain 3D information of objects or scenes in order to better understand, analyze and apply this information to various fields and tasks, such as unmanned driving, environmental monitoring, and mapping. In the task of indoor and outdoor multi-scale 3D reconstruction, it is necessary to use computer vision and drone technology to convert the first-person perspective images taken by drones into third-person 3D models.
[0003] During the flight of a drone, due to the limited viewing angle and large changes in spatial scale, the rendering of details at different scales is different. How to synthesize views from limited drone first-person perspective (FPV) videos and perform 3D reconstruction is a key issue. At present, the main problems that need to be solved in the neural radiant field (NeRF) for indoor and outdoor multi-angle 3D reconstruction algorithms based on drones are as follows:
[0004] (1) Temporal consistency problem: The model relies on a single ray from a pixel during training and samples only a single point in each iteration. It lacks consideration of the correlation between adjacent time frames and thus cannot guarantee the coherence and stability between adjacent frames in the video sequence.
[0005] (2) Global structure problem: During the point sampling process, only local features are often focused on while the acquisition and integration of global features are ignored. As a result, the overall shape and structure of the object cannot be accurately represented in these low-texture areas.
[0006] (3) Local granularity problem: When the viewing angle is limited, NeRF obtains limited information and has difficulty capturing subtle features of objects. At the same time, its sampling frequency for local details is insufficient, which violates the Nyquist-Shannon theorem and causes high-frequency signals to be folded into low-frequency signals during the continuous signal sampling process, making it impossible to restore local details with high fidelity. Summary of the invention
[0007] The purpose of this invention is to solve the problem of insufficient rendering of different scales in traditional neural radiation field (NeRF) due to the change of spatial scale. A drone-based indoor and outdoor multi-scale 3D reconstruction method FPV-NeRF is proposed, which improves the temporal consistency, global structure and local granularity, and introduces an innovative view synthesis method to enhance the spatial perception of drones.
[0008] The technical solution of the present invention is as follows:
[0009] Step 1: Multi-scale camera space estimation: Select key frames to predict the UAV trajectory and attitude, sample a pixel point in the frame as a view ray for the spatial subdivision of the multi-scale distortion function, and use a learnable feature library to capture the features of the image point in the spatial configuration.
[0010] Step 2: Global-local scene encoder: synthesize images of different resolutions in space, and pass each image point position and corresponding features through the global-local scene encoder to obtain the hidden features of the pixel.
[0011] Step 3, rendering and comprehensive loss: The hidden features of the pixels obtained in step 2 are passed to the rendering decoder MLP layer to predict the local color and density of each light, generate images based on color and density, calculate color loss, resolution depth distribution differences, and evaluate the consistency differences at the intersection, construct a total loss function, and perform overall evaluation and reverse training.
[0012] Step 1 describes the selection of key frames to predict the trajectory and attitude of the drone. The spatial subdivision of the multi-scale distortion function is as follows:
[0013] 1) Key frame selector. Calculate the information entropy of each drone video frame, consider the color entropy within the frame and the entropy between frames, and multiply the color entropy within the frame and the entropy between frames to evaluate the frame information. The expression is:
[0014] (1)
[0015] (2)
[0016] in, It is The information entropy of frames is frames, is the first The probability of gray values is calculated, and the key frames with significant information entropy in both intra-frame color entropy and inter-frame entropy will be identified.
[0017] 2) UAV trajectory prediction. Unlike previous Structure from Motion (SfM) based methods, our method exploits sequential video acquisition, where keyframes naturally exhibit visual overlap, eliminating the need for exhaustive image pair matching. Based on the identified keyframes, a vocabulary tree-based cycle detection is used to match each image to its closest temporal counterpart. Assuming the scene part contains Points = { , ... }, for a video with a duration of Each point ∈ , considering the The frame is where the point initially appears, and the sequential trajectory can be predicted by minimizing the reprojection error:
[0018] (3)
[0019] in, For time Internal and external parameters when For this frame The pixel position of . is the project function. The output is the Euclidean space of the camera matrix, which is processed by the subsequent block subdivision module to achieve multi-block warping in camera space.
[0020] 3) Perform spatial subdivision on the Euclidean space of the camera matrix. Since our scene presents different camera trajectories in different spatial regions, it is necessary to make different distortion functions (i.e. Jacob matrices) for each spatial region to ensure that the camera position and direction are accurately aligned with the pixels in a specific region. The goal of using the octree structure for spatial subdivision is to identify the pixels with the same edge length. If a visible light camera center is within the distance ( is set to 3), the node will be subdivided into 8 child nodes; otherwise, it will become a leaf node. This process is repeated until all leaf nodes are obtained.
[0021] The synthesis of images with different resolutions and the calculation of hidden features described in step 2 are specifically as follows:
[0022] 1) Cross-resolution attention mechanism. Query the features of a specific point in the feature pool to get the point embedding , and then use multi-resolution hash coding to obtain the preprocessed point embedding . Multi-resolution can effectively capture scene features of different scales. Low resolution emphasizes global aspects, while high resolution reveals finer details. Learning-based multi-resolution hash coding autonomously prioritizes relevant details without task-specific constraints. In the context of drone scenes characterized by different scales, this method can be applied to ensure a comprehensive representation that includes a large number of structures and tiny details. However, it processes images independently at each resolution, ignoring the correlation between resolutions. To address this issue, we propose a cross-resolution attention mechanism to measure the correlation between different resolutions. Following the Transformer model, a scaled dot product attention mechanism is used to calculate the query on the features of image points at different resolutions. ,key Sum The features captured in step 1 form a feature pool, and the features of the image points are queried in the feature pool to obtain the point embedding , and then use multi-resolution hash coding to obtain the preprocessed point embedding , embedding from point get The process is as follows:
[0023] (4)
[0024] (5)
[0025] in, , , ∈ is the weight matrix, and is the dimension of embedding and attention key. Based on the Transformer-like model, we introduce position embedding to convert the first The data location is embedded in the The resolution levels are as follows:
[0026] (6)
[0027] In order to pursue comprehensive multi-resolution features, we introduce an additional learnable global-level feature in the cross-resolution module, denoted as , the overall structure of the entire scene is learned through training. It is used to connect with features at different resolution levels, thereby establishing attention connections between all levels.
[0028] 2) Point position grouping. The feature pooling described above discretely regroups the point space features, resulting in differences between adjacent points. Previous methods computed continuous features based on position information, which usually involved using a learnable linear transformation , with weights and deviation , obtain continuous local features for each point and convert the point position Projecting to a higher dimensional In the space, high-frequency functions are used. However, insufficient sampling frequency violates the Nyquist-Shannon theorem, causing high-frequency signals to be folded into low-frequency signals during continuous signal sampling. Therefore, a mixed point position embedding algorithm is constructed to group neighboring points into multivariate Gaussian regions and surround the points with the region. The expected group position ( , , ) as query input to a learnable linear transformation middle:
[0029] (7)
[0030] in, express and The number of frequency changes, · represents the dot product operation, and the calculated Yes Continuous feature representation after specific linear transformation and frequency modulation.
[0031] 3) Volume features. The above-mentioned point objects with encoded position coordinates are input into the model to find the corresponding features. In order to pursue the representation of the overall component, our method deeply studies the bounding volume hierarchy (BVH) algorithm. This geometric query accelerator takes advantage of the view that if a query object avoids volume intersection, then it excludes interaction with objects inside the volume. The present invention calculates a volume feature for each drone environment segment through BVH and stores it in a learnable volume feature pool. The formal volume feature embedding is expressed as:
[0032] (8)
[0033] in Indicates that the coordinates are A sampling point at Selecting an algorithm for volume features involves two key steps: First, determine the point using the BVH method The volume index of the image is obtained; secondly, the volume feature is selected according to the index. Indicates the total amount of available volume.
[0034] The rendering and loss calculation described in step 3 are specifically as follows:
[0035] 1) The color loss. Although the above methods can almost solve the problems of temporal consistency, global structure and local granularity, there are still some problems in learning a structure with limited training supervision perspective. By leveraging the spatial-temporal information of the video, we propose a new loss function to penalize rendering results that perform poorly in terms of obvious details and temporal consistency. First, the RGB color reconstruction loss is calculated by the Charbonnier loss, which is the difference between the RGB values of the reconstructed image and the RGB values of the real image. A fixed correction value is introduced, denoted as , the loss term is defined as follows:
[0036] (9)
[0037] in, , , Represents the sampling view ray RGB rendering value, , , represents the corresponding ground truth value in the original input frame.
[0038] 2) The depth distribution difference between the resolutions. This loss term is used to quantitatively evaluate the mutual depth difference between the two resolutions to resist the introduced noise and alleviate local distortions. Our method adopts the Earthmoving Distance (EMD) based on optimal transport theory to quantify the depth distribution difference between resolutions. EMD is different from traditional indicators. It not only examines the value difference of corresponding points, but also incorporates the transportation cost into the evaluation and emphasizes the distribution shape. In spatial contexts, EMD excels at shape-based comparisons, especially when analyzing density distributions. In terms of comparing and aligning the distribution of spatial data points, the advantage of EMD is that it can simultaneously consider spatial arrangement and structural nuances. Representation difference alignment loss function The formula is expressed as:
[0039] (10)
[0040] in, Indicates the sampling view ray Previous Points For each point along this ray Calculates the cumulative distribution function , covering along the sampling view ray All points of The overall difference distribution.
[0041] 3) The consistency difference at the intersection is evaluated. Our method involves a spatial subdivision based on camera parameters, which may lead to inconsistencies between adjacent blocks. This loss term evaluates the bounded variation of the function with respect to adjacent octree nodes, promoting uniform density and color at their intersections. Using the bounded variation function from image restoration, which is suitable for non-continuous distributions, the feature consistency difference between adjacent octree nodes The calculation is as follows:
[0042] (11)
[0043] Randomly sample the borders of octree nodes edge points, the set of this point is For each position The edge points of the and Get their characteristics and , these features are conditioned on their respective adjacent intersection tree nodes.
[0044] 4) The final loss is the sum of the above loss terms. The total loss function is as follows:
[0045] (12)
[0046] in, , , are the weights of these loss terms.
[0047] The present invention has the following beneficial effects:
[0048] FPV-NeRF, proposed for reconstructing UAV flight trajectories from a first-person perspective, optimizes the global-local aspects of all points in the UAV flight space estimation. Trajectory reconstruction is performed using adjacent time frames to simulate the environment space, and the trajectory is divided according to the position and posture of the UAV in adjacent frames, so that FPV-NeRF is able to build a more continuous and smoother overall structure and achieve better temporal consistency. The integrity of the global structure is enhanced by the thoughtful design of cross-attention between different resolutions and the acquisition of mentioned features. The space is subdivided into regions with different warping functions, and the sampling point position coordinates are converted into high-dimensional features including high-frequency components to ensure high-fidelity restoration of local details. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 Comparison between the FPV-NeRF proposed in the present invention and the NeRF-based method;
[0050] Figure 2 It is the overall framework of the present invention;
[0051] Figure 3 Visualization of UAV vehicle trajectories and automatically generated FPV video trajectories and camera poses;
[0052] Figure 4 This is a schematic diagram of the difference alignment;
[0053] Figure 5 To compare the quality results with several SOTA methods;
[0054] Figure 6 Ablation results for cross-resolution attention.
[0055] Figure 7 Parameters for different lattice groups in formula 7 comparison;
[0056] Figure 8 is the value in equation 10 ablation study results. DETAILED DESCRIPTION
[0057] The present invention will be further described below in conjunction with specific embodiments.
[0058] like Figure 2 As shown, the indoor and outdoor multi-scale 3D reconstruction method FPV-NeRF based on drone of the present invention comprises the following steps:
[0059] Step 1: Multi-scale camera space estimation: Select key frames to predict the UAV trajectory and attitude, sample a pixel point in the frame as a view ray for the spatial subdivision of the multi-scale distortion function, and use a learnable feature library to capture the features of the image point in the spatial configuration.
[0060] Step 2: Global-local scene encoder: synthesize images of different resolutions in space, and pass each image point position and corresponding features through the global-local scene encoder to obtain the hidden features of the pixel.
[0061] Step 3, rendering and comprehensive loss: The hidden features of the pixels obtained in step 2 are passed to the rendering decoder MLP layer to predict the local color and density of each light, generate images based on color and density, calculate color loss, resolution depth distribution differences, and evaluate the consistency differences at the intersection, construct a total loss function, and perform overall evaluation and reverse training.
[0062] Example 1
[0063] Figure 2 This is a rough demonstration of the overall FPV-NeRF architecture proposed in this paper. In the multi-scale camera space estimation step, key frames are selected to predict the trajectory and posture of the drone, and the Jacobian matrix is used to perform seamless point warping in space, such as Figure 1 shown.
[0064] like Figure 3 As shown, we first build a UAV trajectory space to define the camera position and orientation in its spatial layout. We use keyframe selection to predict the trajectory of the UAV and calculate the information entropy of each UAV video frame, taking into account the color entropy within the frame and the entropy between frames. Multiplying these components evaluates the frame information and ensures that the selected frames are diverse and representative.
[0065] In the prediction of drone trajectories, the method of the present invention takes advantage of sequential video acquisition, in which frames naturally have visual overlap, so there is no need for exhaustive image pairing. Using vocabulary tree-based cycle detection, each image is matched with its closest corresponding image in time, and the sequential trajectory can be predicted by minimizing the reprojection error. Block processing is then performed to ensure accurate estimation at different scales. View rays are generated for the sample points from the estimated camera space. The scene of the present invention presents different camera trajectories in different areas (as shown in Figure 2). This requires making different distortion functions (i.e., Jacob matrices) for each area to ensure that the position and orientation of the camera are accurately aligned with the pixels in a specific area.
[0066] like Figure 4 , Drone Dataset Collection: This paper constructs a new benchmark for 3D reconstruction of drone videos (called drone dataset). Unmanned aerial vehicle footage is captured along predefined paths to ensure different perspectives and different altitudes. The drone dataset is shot by DJI mini3 pro and contains ten boundless scenes, including sky, grassland, and a large number of buildings. Each scene is shot by a drone that first flies around the building in the air, then lands and enters the building from the gate. The time span of each flight video ranges from 3 minutes to 7 minutes. At the same time, the working altitude of the drone also shows diversity, ranging from 40 meters to 170 meters. The scenes shot include markets, gardens, parks, squares, libraries, etc., all of which were shot in New York City, USA. When elaborating the summary dataset related to drones, an exhaustive calibration procedure was carried out to detect from both internal and external dimensions. This meticulous work is centered on the precise determination of intrinsic and extrinsic parameters and is based on a predetermined image size of 3024×4032 pixels. The examination of the camera's intrinsic parameters requires a discriminative analysis of key attributes, including focal length, principal point, radial distortion tilt, and intrinsic matrix. The focal length of the UAV camera is a key intrinsic parameter for accurate pixel coordinate mapping. Frames are extracted from the clips and arranged in chronological order, and keyframe selection is performed to find the frame that best represents the UAV trajectory.
[0067] Multi-scale camera space estimation: Estimate the camera space at multiple scales using various warping functions and layered processing. Sample points from the estimated camera space and generate view rays for these points. Figure 5 ,As can be seen from the figure, the synthetic frames of DVGO appear blurry when representing such long ,trajectories due to limited resolution. The results of Mip-NeRF-360 and F2-NeRF suffer from local noise and ,distortion due to the imbalanced spatial organization of the scene. In contrast, FPV-NeRF takes advantage of adaptive ,space segmentation, considers scene features at different scales, and gives full ,performance to the global-local representation capability.
[0068] Example 2
[0069] The global-local scene encoder proposed in the present invention is used to combine global features with local details, calculate the overall feature representation for each point, and create a comprehensive scene representation. The present invention proposes a cross-resolution attention mechanism to measure the correlation between different resolutions. Multi-resolution can effectively capture scene features of different scales. At low resolution, the overall features are highlighted, while high resolution can reveal finer details. In order to pursue detailed multi-resolution features, we integrate an additional global-level feature in the cross-resolution attention module, as shown in Figure 2. The role of the feature is to connect with features at different resolution levels and promote attention connections at all levels. The cross-resolution attention mechanism is applied to ensure detailed and accurate encoding of the scene.
[0070] Then the point positions are grouped. The feature pool described in the feature library above discretely recombines the point space features, and there are significant differences between adjacent points. The present invention constructs a hybrid point position embedding method to group neighboring points into multivariate Gaussian regions, and inputs the expected grouping position (Er(x), Er(y), Er(z)(x, y, z) of the area around the point (x, y, z) as a query input into the learnable linear transformation φ. The feature pool is used to integrate information from multiple key frames, which helps to capture spatial changes.
[0071] For volume features, in order to pursue overall component representation, the method of the present invention deeply studies the bounding volume hierarchy (BVH) algorithm. If the query object avoids volume intersection, the interaction with internal objects is excluded. The method of the present invention calculates an enclosing feature for each UAV environment fragment and stores it in a learnable volume feature library. First, the volume index of the point is determined using the BVH method; second, the volume feature is selected based on the index. Volume intersection is avoided, interaction with internal objects is excluded, and overall component representation is achieved.
[0072] The global scene is encoded by building a feature pool that integrates information from multiple keyframes, and a spherical harmonic encoder is used to capture spatial changes. A multi-layer perceptron (MLP) is applied to refine the scene representation at a finer scale. The tiny MLP in the scene encoder has a hidden layer of width 64 for obtaining scene features and volume density, while the rendering MLP has two hidden layers of width 64 for obtaining RGB colors. In terms of feature pool training, the setting adopted by the present invention uses a 16-layer hash table, each layer contains a certain number of feature vectors of dimension 2. On the drone dataset, each layer contains 221 feature vectors and the number of training steps is 80k. On other datasets, each level contains 219 and the number of training steps is 20k. The network is trained using the Adam optimizer. A widely accepted training and testing configuration is used, and 12.5% of the key frames are randomly selected from the drone video as test images, and the remaining frames constitute the training set. In order to quantitatively evaluate the quality of novel view synthesis, three indicators are used: PSNR, SSIM and LPIPS (VGG). As Figure 4 As shown, the low-resolution difference uses the reconstruction result of the first-level octree, which clearly shows blocks with inaccurate positions but relative transparency. In the comparison of different camera space estimation methods on UAV datasets, the present invention first analyzes the time complexity of various trajectory prediction (TP) methods: continuous matching method (Seq.) and exhaustive matching method (Exh.), the former matches nearby frames, and the latter matches all frames in the video. In terms of the impact of global-local encoders on UAV datasets, cross-resolution atten-tion, grouped point location embedding Elocation and volume embedding Evolume are systematically excluded.
[0073] Example 3
[0074] In the rendering and comprehensive loss tasks, the present invention utilizes the spatiotemporal information of the video to propose a novel loss function to penalize poor rendering results in terms of apparent details and temporal consistency, which includes three parts: (1) Color alignment. The RGB color reconstruction loss is calculated by the Charbonnier loss between the RGB values of the reconstructed image and the ground truth image. We introduce a fixed correction value in it, which has the advantage of being more stable. (2) Difference alignment. This loss term is used to quantitatively evaluate the equivalent depth difference between two resolutions, providing robustness to the introduction of noise to mitigate local distortion. The method of the present invention uses ground moving distance (EMD) to quantify the depth distribution difference between resolutions. The difference in corresponding point values is carefully studied, and the transportation cost is also incorporated into the evaluation, emphasizing the distribution shape. This unique property enables EMD to well distinguish the differences in distributions that are generally similar but have subtle deviations. In the spatial context, EMD excels at shape-based comparisons, especially when analyzing density distributions. When comparing and adjusting the distribution of spatial data points, the advantage of EMD is that it can simultaneously consider subtle differences in spatial arrangement and structure. (3) Smooth consistency. The proposed method involves local subdivision based on camera parameters, which may lead to inconsistency between neighboring blocks. This loss term evaluates the bounded variation of the function relative to neighboring octree nodes, thus promoting consistency in density and color at node intersections. Using bounded variation functions in image restoration (applicable to non-continuous distributions), we randomly sample N edge points on the boundaries of octree nodes, and this set of points is denoted as ξ. For each identical edge point at position (x, y, z) ∈ ξ, we will obtain their features F(φ0) and F(φ1) from two different warping functions φ0 and φ1 conditioned on their corresponding neighboring octree nodes. The final loss is the sum of the above loss terms. The network is trained through the joint supervision of the three loss functions, which not only guarantees comprehensive and detailed rendering quality in the RGB domain, but more importantly, keeps the coherence and consistency of the generated 3D model in spatial and temporal dimensions. Current NeRF methods, especially when dealing with drone videos containing various indoor and outdoor multi-scale scenes, ignore this point.
[0075] As shown in Table 1 and Figure 5As shown in Figure 2, FPV-NeRF takes advantage of adaptive spatial segmentation and considers scene features at different scales to fully utilize the global-local representation capability. The FPV-NeRF model is fed with preprocessed frames and their corresponding camera poses, and the model is trained by optimizing the neural network to minimize the difference between the predicted view and the actual view; spatiotemporal continuity is used to ensure that the generated FPV video is temporally consistent. To demonstrate the compatibility of FPV-NeRF, two widely used datasets are evaluated. As shown in Tables 2 and 3, FPV-NeRF consistently achieves comparable results with leading voxel-based methods on both datasets. An ablation study is performed on the proposed drone dataset to demonstrate the effect of each proposed module. Different camera space estimation methods. The result of the exhaustive matching method (see Table 4) is that the time complexity for trajectory data is quadratic O(n2).
[0076] In summary, temporal consistency is ensured by sequential trajectory method (Table 4) and smoothness consistency (Table 6). Local granularity is achieved by difference alignment and global-local encoding (e.g. Figure 6 , Figure 7 and Figure 8 The global structure is ensured by cross-resolution attention, grouped point localization, and volume embedding (Table 5).
[0077] Table 1: Main results of the drone dataset
[0078]
[0079] Table 2: Previous results on the NeRF-360-V2 dataset
[0080]
[0081] Table 3: Results from previous local forest forums dataset
[0082]
[0083] Table 4: Comparison of different camera space estimation methods on UAV dataset
[0084]
[0085] Table 5: Effect of global-local encoder on UAV dataset
[0086]
[0087] Table 6: Effect of different loss term weights on UAV dataset
[0088]
Claims
1. A multi-scale 3D reconstruction method for indoor and outdoor environments based on drones, characterized in that: The following steps are involved: Step 1: Select key frames to predict the trajectory and attitude of the drone. For the spatial subdivision of the multi-scale distortion function, sample a pixel point in the frame as a view ray and use a learnable feature library to capture the features of the image points in the spatial configuration. Step 2: synthesize images of different resolutions in space, and use the global-local scene encoder to obtain the hidden features of each image point position and corresponding features; Step 3: The hidden features of the pixels are passed to the rendering decoder MLP layer to predict the local color and density of each ray and complete the 3D reconstruction.
2. The method for indoor and outdoor multi-scale 3D reconstruction based on drone according to claim 1, characterized in that: The specific implementation process of selecting key frames to predict the trajectory and posture of the drone and the spatial subdivision of the multi-scale distortion function is as follows: Step 1.
1. Calculate the information entropy of each drone video frame, multiply the intra-frame color entropy and inter-frame entropy to evaluate the frame information. The expression is: (1) (2) in It is The information entropy of frames is frames, is the first The probability of gray values, the key frames with significant information entropy in both intra-frame color entropy and inter-frame entropy will be identified; Step 1.2: Based on the identified keyframes, use the cycle detection of the vocabulary tree to match each image with its closest corresponding image in time; assuming that the scene part contains Points = { , ... }, for a video with a duration of Each point ∈ , No. The frame is where the point initially appears, and the sequential trajectory is predicted by minimizing the reprojection error: (3) in For time Internal and external parameters when For this frame The pixel position of is the project function, the output is the Euclidean space of the camera matrix; Step 1.3: Subdivide the Euclidean space of the camera matrix: Use the octree structure to subdivide the space, the goal is to identify The tree nodes intersect the visible light camera; if a visible light camera center is at a distance , is a parameter, the node will be subdivided into 8 child nodes; otherwise, it will become a leaf node; this process is repeated until all leaf nodes are obtained.
3. The method for indoor and outdoor multi-scale 3D reconstruction based on drone according to claim 2, characterized in that: The specific implementation process of step 2 is as follows: Step 2.1: Following the Transformer model, we use the scaled dot product attention mechanism to calculate queries on features of image points at different resolutions. ,key Sum , the features captured in step 1 form a feature pool, Query the features of the image points in the feature pool to get the point embedding , and then use multi-resolution hash coding to obtain the preprocessed point embedding , embedding from point get The process is as follows: (4) (5) in, , , ∈ is the weight matrix, and is the dimension of embedding and attention key; position embedding is introduced to convert the first The data location is embedded in the The resolution levels are as follows: (6) Introducing an additional learnable global level feature, denoted as , used to connect with features at different resolution levels and establish attention connections between all levels; Step 2.2: Construct a hybrid point location embedding algorithm by grouping neighboring points into multivariate Gaussian regions and surrounding the points with this region. The expected group position ( , , ) as query input to a learnable linear transformation middle: (7) in, express and The number of frequency changes, · represents the dot product operation, and the calculated Yes Continuous feature representation after linear transformation and frequency modulation; Step 2.3: Calculate a volume feature for each drone environment segment through BVH and store it in a learnable volume feature pool In the formal volume feature embedding representation: (8) in Indicates that the coordinates are A sampling point at represents the total amount of available volume, Select an algorithm for the volume feature.
4. The method for indoor and outdoor multi-scale 3D reconstruction based on drone according to claim 3, characterized in that: The volume feature selection algorithm is specifically as follows: First, the BVH method is used to determine this point The volume index of the image is obtained; secondly, the volume feature is selected according to the index.
5. The method for indoor and outdoor multi-scale 3D reconstruction based on drone according to claim 1, characterized in that: The step 3 also includes generating an image based on color and density, calculating color loss, resolution depth distribution difference, and evaluating consistency difference at the intersection, constructing a total loss function, and performing overall evaluation and reverse training.
6. The method for indoor and outdoor multi-scale 3D reconstruction based on drone according to claim 5, characterized in that: The color loss: First, the RGB color reconstruction loss is calculated by the Charbonnier loss, which is the difference between the RGB value of the reconstructed image and the RGB value of the real image, introducing a correction value , the loss term is defined as follows: (9) in, , , Represents the sampling view ray RGB rendering value, , , represents the corresponding ground truth value in the original input frame; The resolution depth distribution difference: The bulldozer distance EMD based on optimal transmission theory is used to quantify the depth distribution difference between resolutions, and the difference alignment loss function is expressed The formula is: (10) in, Indicates the sampling view ray Previous Points The difference value at each point along this ray Calculates the cumulative distribution function , covering along the sampling view ray All points of The overall difference distribution of The consistency difference at the intersection of the evaluation: using the bounded variation function from image restoration, suitable for non-continuous distribution, the feature consistency difference between adjacent octree nodes The calculation is as follows: (11) Randomly sample the borders of octree nodes edge points, the set of this point is Indicates that for each position The edge points are obtained from two different deformation functions. and Get their characteristics and ,These features are conditioned on their respective adjacent intersection tree nodes; The total loss function is: (12) in, , , is the weight of the loss term.
Citation Information
Patent Citations
Three-dimensional reconstruction method for multi-view stereo matching based on cross-scale Transform
CN117830538A
Lightweight hand reconstruction and driving method
CN117994480A
Nerve radiation field-based single tree image three-dimensional reconstruction method and device
CN118154770A
Cited By
Building planning model and aerial video overlapping display method and device and electronic equipment
CN120343220A
