Adaptive selection method for key frames of three-dimensional reconstruction of unmanned aerial vehicle video stream based on spatial geometric constraint

By analyzing the 3D model state of the UAV video stream and selecting appropriate keyframes to supplement weak spatial areas, the problems of uneven coverage and redundant frames in UAV 3D reconstruction were solved, achieving more efficient 3D reconstruction.

CN123160801APending Publication Date: 2026-11-24CHANGZHOU WUJIN PLANNING SURVEY & DESIGN INST
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611690639.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In the process of UAV 3D reconstruction, existing technologies have difficulty in selecting appropriate keyframes based on the spatial geometry of the 3D model, resulting in problems such as keyframe redundancy, missing frames, uneven spatial coverage, and insufficient geometric constraints.

Method used

By acquiring the current 3D model state of the UAV video stream, we can analyze weak spatial regions, determine the observability and orientation difference of candidate frames, calculate the spatial geometric supplement contribution, dynamically adjust frame selection parameters, select key frames, and update the model state.

Benefits of technology

It improves the spatial coverage balance and geometric constraints of 3D reconstruction, reduces redundant frames, and improves reconstruction quality and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160801A_ABST
    Figure CN123160801A_ABST
Patent Text Reader

Abstract

This invention discloses an adaptive keyframe selection method for 3D reconstruction of UAV video streams based on spatial geometric constraints, relating to the fields of computer vision and UAV application technology. It acquires several image frames from the initial stage of the UAV video stream and establishes a current 3D model state M, which includes a 3D point cloud P, camera pose T, and 3D point observation records O. Based on the 3D point cloud P and the 3D point uncertainty σ in the current 3D model state M, this invention determines spatially weak regions W and judges the observability of candidate frames F for these regions W. This transforms the keyframe selection from a method based on the degree of change between image frames to a method based on the spatial geometric requirements of the current 3D model. This allows for the supplementation of keyframes for regions with insufficient spatial coverage and / or insufficient geometric constraints, reducing redundant frames and improving the problem of uneven spatial coverage in the 3D model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computer vision and UAV application technology, and in particular to an adaptive keyframe selection method for 3D reconstruction of UAV video streams based on spatial geometric constraints. Background Technology

[0002] With the widespread application of drone technology in aerial surveying, agricultural monitoring, infrastructure inspection, and emergency rescue, drone video streams have become an important data source for large-scale scene 3D reconstruction. Drone aerial surveying generates a large number of continuous image frames, containing highly redundant visual information. To improve the computational efficiency and model quality of 3D reconstruction, it is necessary to select representative keyframes from the video stream to participate in subsequent dense reconstruction and model optimization.

[0003] For example, patent publication number CN121392717B, entitled "An Adaptive Keyframe Extraction Method and System Based on Multi-Sensor Fusion and Motion Trajectory Prediction," overcomes the shortcomings of existing technologies in extracting keyframes in complex flight states and changing scenarios by fusing perception and prediction information and introducing a dynamic weighting mechanism. This significantly improves the efficiency and model quality of UAV 3D reconstruction.

[0004] In UAV 3D reconstruction, the selection of keyframes in the video stream is usually based primarily on the degree of change between adjacent image frames, lacking a direct correlation with the current spatial geometry of the 3D model. Therefore, it is difficult to determine the actual keyframes needed to supplement the model based on areas with insufficient spatial coverage and / or insufficient geometric constraints. Furthermore, for candidate frames that can observe corresponding areas, it is difficult to further determine whether their observation direction has effective spatial complementarity relative to existing observation directions, easily leading to the selection of frames that overlap with existing observation directions and have limited added geometric constraints. In addition, fixed frame selection parameters are difficult to adapt to the dynamic changes in model quality and spatially weak areas during 3D reconstruction, resulting in keyframe redundancy, missing keyframes, uneven spatial coverage, and insufficient geometric constraint supplementation. Therefore, a keyframe selection method for UAV 3D reconstruction is needed that can determine candidate frame requirements based on the current spatially weak areas of the 3D model, evaluate the spatial geometric supplementation capability of candidate frames by considering their observability, observation direction differences, and baseline relationships, and dynamically adjust frame selection parameters based on reconstruction quality. Summary of the Invention

[0005] The purpose of this application is to provide an adaptive keyframe selection method for 3D reconstruction of UAV video streams based on spatial geometric constraints, which can effectively solve the problems mentioned in the background art.

[0006] To achieve the above objectives, this application provides the following technical solution: an adaptive keyframe selection method for 3D reconstruction of UAV video streams based on spatial geometric constraints, comprising: S1. Acquire several image frames at the beginning stage of the UAV video stream and establish the current three-dimensional model state M. The current three-dimensional model state M includes three-dimensional point cloud P, camera pose T, three-dimensional point observation record O, and three-dimensional point uncertainty σ. S2. Based on the three-dimensional points and their uncertainties σ in the current three-dimensional model state M, perform spatial region analysis on the three-dimensional model to determine the spatially weak regions W with insufficient spatial coverage or insufficient geometric constraints. S3. Obtain candidate frame F in the video stream, determine whether the candidate frame F can observe the spatially weak region W, and if it can be observed, record the three-dimensional points in the spatially weak region W that can be observed by the candidate frame F. S4. For a three-dimensional point that can be observed by the candidate frame F, compare the spatial difference between the observation direction v of the candidate frame F on the three-dimensional point and the existing observation direction of the three-dimensional point, and determine the directional difference degree D of the candidate frame F on the spatially weak region W. S5. Calculate the spatial geometrical supplementation contribution G of the candidate frame F based on the weakness of the spatially weak region W and the directional difference degree D; S6. Determine whether to select the candidate frame F as a key frame based on the spatial geometric supplement contribution G; S7. Add the selected keyframes to the 3D reconstruction to update the current 3D model state M, and adjust the frame selection parameters according to the reconstruction quality, then return to execute S2.

[0007] Specifically, S1 establishes the current 3D model state M, including: Feature extraction and feature matching are performed on the aforementioned image frames. The camera pose T is solved based on the matching results, and the three-dimensional point cloud P is obtained through triangulation. Record the observation frames and feature point positions corresponding to each 3D point p to form the 3D point observation record O; The camera pose T and the 3D point cloud P are jointly optimized, and the uncertainty σ of the 3D points is determined based on the optimization results.

[0008] Among them, the spatially weak region W identified in S2 includes: The three-dimensional space corresponding to the three-dimensional point cloud P is divided into multiple spatial regions R. Based on the number of three-dimensional points, the number of observation frames, the uncertainty of three-dimensional points, and the distribution of observation directions in each spatial region R, the coverage integrity C of each spatial region R is determined. Based on the coverage integrity C and the uncertainty of three-dimensional points σ, the spatial regions with insufficient spatial coverage or insufficient geometric constraints are determined as the spatial weak regions W.

[0009] In S3, determining whether candidate frame F can observe the spatially weak region W includes: The observation range V of the candidate frame F is determined based on the camera intrinsic parameters and camera pose T. The intersection of the observation range V is judged for the weak spatial region W. The three-dimensional points that are within the effective imaging range of the candidate frame F and meet the depth condition are determined as the observable three-dimensional points.

[0010] In S4, the directional difference D between candidate frame F and spatially weak region W is determined, including: The candidate frame observation direction v is determined based on the camera position X of the candidate frame F and the position of the observable 3D point, and the existing observation direction set U corresponding to the observable 3D point is determined based on the 3D point observation record O. Calculate the spatial angle between the candidate frame observation direction v and each vector in the existing observation direction set U, and correct the spatial angle based on the observation baseline between the candidate frame F and the corresponding existing observation frame to obtain the direction difference degree D.

[0011] In S5, the spatial geometrical complement contribution G of candidate frame F is calculated, including: Based on the normalized uncertainty n of the observable 3D points and the corresponding correction direction difference d', the point-level supplementary contribution corresponding to each observable 3D point is determined, and the point-level supplementary contributions are aggregated to obtain the spatial geometric supplementary contribution G.

[0012] In S6, determining whether to select candidate frame F as a keyframe includes: The spatial geometric supplement contribution G is compared with the current selection threshold θ. When the spatial geometric supplement contribution G reaches the selection threshold θ, the candidate frame F is determined as a key frame candidate. When the candidate frame F and the previous key frame meet the preset interval condition, the candidate frame F is selected as a key frame.

[0013] The keyframe selection parameters adjusted based on the updated 3D reconstruction quality include: The selected keyframes are added to the 3D reconstruction and the 3D point cloud P, the camera pose T, the 3D point observation record O, and the 3D point uncertainty σ are updated. The average reprojection error E and the proportion of spatially weak regions A of the updated 3D model are calculated, and the selection threshold θ is adjusted according to the average reprojection error E and the proportion of spatially weak regions A.

[0014] Adjusting the selected threshold θ includes: When the average reprojection error E or the proportion of weak spatial regions A indicates that the geometric constraints of the current 3D model are insufficient, the selection threshold θ is reduced to increase the selection probability of keyframes. When the average reprojection error E and the proportion of spatially weak regions A sufficiently characterize the geometric constraints of the current 3D model, the selection threshold θ is increased to reduce the selection probability of keyframes.

[0015] Specifically, the current flight stage is determined based on UAV positioning data and a preset waypoint sequence, and the selected threshold θ or the minimum interval between candidate frames is adjusted according to the degree of spatial perspective change corresponding to different flight stages. Specifically, during flight phases with significant changes in viewing angle, the selection threshold θ is lowered or the minimum interval is shortened; during flight phases with minor changes in viewing angle or non-primary mapping phases, the selection threshold θ is increased or the minimum interval is extended.

[0016] In summary, the technical effects and advantages of this invention are as follows: This invention determines the spatially weak region W based on the 3D point cloud P and the 3D point uncertainty σ in the current 3D model state M, and judges the observability of the candidate frame F for the spatially weak region W. This changes the key frame selection method from one based on the degree of change between image frames to one based on the spatial geometric requirements of the current 3D model. As a result, key frames can be added to regions with insufficient spatial coverage and / or insufficient geometric constraints, reducing redundant frames and improving the problem of uneven spatial coverage in the 3D model.

[0017] This invention obtains an initial directional difference degree d by comparing the observation direction vector v of the candidate frame with the existing set of observation direction vectors U, and then corrects the directional difference degree d' based on the baseline ratio r. Furthermore, it calculates the spatial geometric supplementary contribution G by combining the normalized uncertainty n. This allows the evaluation of candidate frames to simultaneously consider the constraint requirements of spatially weak regions and the degree of directional complementarity between candidate frames and existing observations. This avoids selecting candidate frames that overlap with existing observation directions and have limited actual new geometric constraints, thereby improving the supplementary role of the selected keyframes in the spatial geometric constraints of 3D reconstruction.

[0018] This invention updates the current 3D model state M by adding selected keyframes to the 3D reconstruction, and adjusts the selection threshold θ and other frame selection parameters according to the average reprojection error E and the proportion of weak areas A, forming a keyframe selection closed loop based on reconstruction quality feedback. This allows the frame selection strategy to dynamically change according to the current 3D model quality, reducing the problem of too many or too few keyframes selected due to fixed frame selection parameters. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 Flowchart of an adaptive keyframe selection method for 3D reconstruction of UAV video streams based on spatial geometric constraints; Figure 2 A schematic diagram for identifying vulnerable areas in space; Figure 3 A schematic diagram for determining the observation range of candidate frames; Figure 4 A schematic diagram illustrating the complementarity analysis of observation directions; Figure 5 A schematic diagram for reconstructing the quality feedback closed loop; Detailed Implementation

[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0022] Example 1, Reference Figures 1 to 5 The illustrated adaptive keyframe selection method for 3D reconstruction of UAV video streams based on spatial geometric constraints is applied to UAV aerial survey scenarios, including: Acquire several image frames at the beginning of the UAV video stream and establish the current 3D model state M. The current 3D model state M includes the 3D point cloud P, camera pose T, 3D point observation record O, and 3D point uncertainty σ. Based on the three-dimensional points and their uncertainties σ in the current state of the three-dimensional model M, a spatial region analysis is performed on the three-dimensional model to identify the spatially weak regions W with insufficient spatial coverage and / or insufficient geometric constraints. Acquire candidate frames F in the video stream, determine whether candidate frames F can observe the spatially weak region W, and if they can, record the three-dimensional points in the spatially weak region W that can be observed by candidate frames F. For a three-dimensional point that can be observed by a candidate frame F, compare the spatial difference between the observation direction v of the candidate frame F and the existing observation direction of the three-dimensional point to determine the directional difference degree D of the candidate frame F for the spatially weak region W. Based on the degree of weakness and directional difference D of the spatially weak region W, the spatial geometrical supplementation contribution G of the candidate frame F is calculated. Whether to select candidate frame F as a keyframe is determined based on the spatial geometric supplement contribution G; The selected keyframes are added to the 3D reconstruction to update the current 3D model state M, and the frame selection parameters are adjusted according to the reconstruction quality before returning to perform spatial weak area analysis.

[0023] Preferably, several image frames from the initial stage of the UAV video stream are acquired to establish the current 3D model state M, including: Feature extraction and feature matching are performed on several image frames in the initial stage. After removing mismatches using the random sampling consensus algorithm, the camera pose T is solved by motion reconstruction structure, and the three-dimensional point cloud P is obtained by triangulation. For each 3D point p, record the image frame index and corresponding feature point coordinates observed at that 3D point to form a 3D point observation record O; Perform bundle adjustment to jointly optimize the poses T of all cameras and the 3D point cloud P, minimize the reprojection error, and calculate the covariance matrix Σ of each 3D point p through covariance propagation based on the optimized Jacobian matrix. Take the trace of the covariance matrix Σ as the 3D point uncertainty σ of that 3D point.

[0024] It is worth noting that M represents the current state of the 3D model; P represents the 3D point cloud; p represents a single 3D point; T represents the camera pose; O represents the 3D point observation record; σ represents the 3D point uncertainty; and Σ represents the 3D point covariance matrix.

[0025] The formula for calculating the uncertainty σ of a three-dimensional point is: σ=trace(Σ)=Σ11+Σ22+Σ33; In the formula, σ represents the uncertainty of a three-dimensional point; Σ is the 3×3 covariance matrix of that three-dimensional point. trace(Σ) is the trace of the covariance matrix, which is the sum of the three main diagonal elements Σ11, Σ22, and Σ33, corresponding to the position variance of the corresponding three-dimensional point in the x, y, and z coordinate axes, respectively.

[0026] A 3D point cloud P is a set of 3D coordinate points of a scene that is recovered by triangulation from the starting frame of a video stream, and is used to represent the sparse geometric structure of the scene.

[0027] The camera pose T is the rotation matrix and translation vector of each frame in the world coordinate system, used to describe the spatial position and orientation of the camera.

[0028] The 3D point observation record O is an index set of which image frames each 3D point was observed in, used to trace the observation source of that point.

[0029] The uncertainty σ of a three-dimensional point is the sum of the variances of the three-dimensional point position estimates. It is used to characterize the sufficiency of the geometric constraints of the point. The higher the uncertainty, the weaker the observation constraints of the point.

[0030] The trace of the covariance matrix Σ is the sum of the variances of a three-dimensional point along the x, y, and z coordinate axes, and is used to comprehensively characterize the total uncertainty of the three-dimensional position.

[0031] In detail, since the initial 3D model M is the benchmark for all subsequent spatial geometric constraint analyses, if there are large errors in the pose and point cloud of the initial model, the subsequent weak region identification and candidate frame evaluation will deviate from the reality. Therefore, bundle adjustment is used to jointly optimize the pose T of the initial frame and the 3D point cloud P in order to improve the accuracy of the initial model by minimizing the reprojection error.

[0032] For example, in densely built-up areas, without beam adjustment, pose drift between adjacent frames can cause systematic shifts in 3D points, leading to deviations in voxel region partitioning and coverage integrity calculations.

[0033] In detail, in addition to the trace of the covariance matrix Σ, the calculation of the uncertainty σ of a three-dimensional point can also be simplified by using the average reprojection error of the three-dimensional point in all observation frames. After normalizing the average reprojection error to the range of 0 to 1, it can be used as a proxy index for uncertainty.

[0034] When computational resources are limited or the covariance matrix for bundle adjustment is unavailable, this simplification method can provide uncertainty estimates with lower computational overhead.

[0035] Preferably, based on the three-dimensional points in the current three-dimensional model state M and their uncertainties σ, a spatial region analysis is performed on the three-dimensional model to determine the spatially weak regions W, including: Calculate the bounding box of the 3D point cloud P in the world coordinate system, and divide the bounding box into multiple voxel regions R along the three coordinate axes. The side length of each voxel region is 5 to 10 times the average nearest neighbor distance of the point cloud, preferably 8 times. For each voxel region R, the coverage completeness C of the voxel region is calculated by weighting the number of 3D points in the region, the number of keyframes observing the region, the average uncertainty of the 3D points in the region, and the condition number of the covariance matrix of the observation direction vector in the region. The point density factor has a weight of 0.2, the number of observation frames has a weight of 0.3, the uncertainty factor has a weight of 0.3, and the direction diversity factor has a weight of 0.2. Calculate the mean and standard deviation of the coverage integrity C of all voxel regions. Voxel regions with coverage integrity C lower than the mean minus 0.5 times the standard deviation, and / or voxel regions with average uncertainty higher than the mean plus 0.5 times the standard deviation, are identified as spatially weak regions W.

[0036] It is worth noting that R represents the voxel region; C represents the coverage integrity; and W represents the spatially weak region.

[0037] The formula for calculating coverage completeness C is: C = 0.2 × point density factor + 0.3 × observation frame factor + 0.3 × uncertainty factor + 0.2 × orientation diversity factor.

[0038] In the formula, the point density factor is the ratio of the number of 3D points in the region to the maximum number of 3D points in all regions, normalized to 0~1; the observation frame number factor is the ratio of the number of keyframes observed in the region to the maximum number of observation frames in all regions, normalized to 0~1. The uncertainty factor is 1 minus the ratio of the average uncertainty within the region to the maximum average uncertainty across all regions; that is, the lower the uncertainty, the higher the uncertainty factor. The directional diversity factor is 1 minus the ratio of the condition number of the regional observation direction vector covariance matrix to the maximum condition number in all regions. In other words, the smaller the condition number, the higher the directional diversity factor.

[0039] The weights of the four factors are 0.2, 0.3, 0.3, and 0.2, respectively. The observation frame number factor and the uncertainty factor have higher weights because these two factors directly reflect the strength of the geometric constraints.

[0040] The formula for determining the side length of a voxel is: s = 8 × d_avg; In the formula, s is the side length of the voxel region; d_avg is the average nearest neighbor distance of the point cloud, that is, the arithmetic mean of the nearest neighbor distances of all three-dimensional points; 8 is the side length coefficient, which ranges from 5 to 10, and is preferably 8.

[0041] The rationale for choosing 8 times is as follows: Under typical UAV aerial survey point cloud density, 8 times the average nearest neighbor distance allows each voxel to typically contain 10-50 3D points. This is neither too coarse, leading to uneven coverage within the area, nor too fine, resulting in excessive computation. 5-10 times is considered acceptable, with 5 times corresponding to high-density point cloud scenarios and 10 times corresponding to low-density point cloud scenarios.

[0042] The adaptive threshold and weak area determination criteria are as follows: W={R|C<μC-0.5σC or σR>μσ+0.5σσ}; In the formula, W represents the set of spatially weak regions; R represents the voxel region; C represents the region coverage integrity; μC represents the mean of the coverage integrity of all regions; σC represents the standard deviation of the coverage integrity; σR represents the average uncertainty of the region; μσ represents the mean of the average uncertainty of all regions; σσ represents the standard deviation of the average uncertainty; and 0.5 is the threshold coefficient. When the coverage integrity C of region R is lower than μC−0.5σC, or the average uncertainty σR of the region is higher than μσ+0.5σσ, the region is identified as a spatially weak region.

[0043] The basis for taking 0.5 times the standard deviation is that, under the assumption of normal distribution, the area below the mean minus 0.5 times the standard deviation accounts for about 30% of the total population, which can reasonably identify areas with insufficient constraints without excessively expanding the scope of weaknesses.

[0044] A spatial bounding box is the smallest cuboid that contains all three-dimensional points and is used to define the spatial extent of a three-dimensional model.

[0045] The voxel region R is a cubic subregion obtained by uniformly dividing the spatial bounding box along the three coordinate axes, used to discretize the continuous space into analyzable basic units.

[0046] The condition number of the covariance matrix of the observation direction vector is the ratio of the largest singular value to the smallest singular value of the covariance matrix formed by all observation direction vectors in the region. The smaller the condition number, the more uniform and diverse the distribution of observation directions; the larger the condition number, the more concentrated the observation directions are in a single direction.

[0047] The spatially weak region W is a voxel region where the coverage integrity is lower than the adaptive threshold and / or the average uncertainty is higher than the adaptive threshold. That is, the region in the current 3D model where the spatial constraints are insufficient and supplementary observations are needed.

[0048] In detail, because the spatial coverage of a 3D model is continuously distributed, it is impossible to quantitatively identify which regions have insufficient constraints without spatial discretization. Therefore, a voxel mesh is used to divide the space into regular sub-regions, so that the coverage of each region can be calculated and compared independently.

[0049] For example, in urban architectural scenarios, the voxel areas on the building facade and rear are usually low in point density and have a single observation direction, so their coverage integrity is significantly lower than that of the building top and front areas.

[0050] In detail, because fixed thresholds cannot adapt to the differences in point density and coverage status in different scenarios, statistical adaptive thresholds are adopted so that the identification of weak areas can automatically adapt to the overall coverage level in the scenario.

[0051] For example, in open terrain scenes, the overall coverage is better and the mean is higher, and the weakness threshold is also increased accordingly. In densely built-up scenes, the overall coverage is worse and the mean is lower, and the weakness threshold is also decreased accordingly.

[0052] In detail, in addition to regular voxel grids, the voxel region can also be divided using an octree adaptive partitioning method. When the number of 3D points in a voxel exceeds 50, it is recursively subdivided until the number of points in a voxel does not exceed 50 or the maximum depth is reached.

[0053] The octree approach can achieve finer spatial resolution in areas with high point density and maintain coarser resolution in areas with low point density, which is beneficial for balancing computational load and analysis accuracy.

[0054] Preferably, acquiring candidate frames F in the video stream and determining whether candidate frame F can observe the spatially weak region W includes: Based on the camera intrinsic parameters and camera pose T of candidate frame F, construct the view frustum V of the candidate frame in the world coordinate system; For each spatially weak region W, calculate the axis-aligned bounding box of that region, and use the separated axis theorem to determine whether the axis-aligned bounding box intersects with the view frustum V. If they do not intersect, the region is determined to be unobservable by candidate frame F. For intersecting weak spatial regions W, the three-dimensional point p in the region is projected onto the image plane through the camera pose T of the candidate frame. The three-dimensional point whose projection coordinates are within the effective range of the image and whose depth is between the near and far planes of the view frustum is determined as the observable point. The observable points are assigned to image grid cells according to their projection positions. Each grid cell is 16×16 pixels in size. Within each grid cell, the points are sorted by depth from smallest to largest. The three points with the smallest depth are retained as visible points, and the remaining points are removed from the observable points.

[0055] It is worth noting that F represents the candidate frame; V represents the candidate frame frustum.

[0056] The view frustum V is a hexahedral spatial region determined by the camera's intrinsic and extrinsic parameters. It represents the range that the camera can observe in three-dimensional space and is defined by six clipping planes: left, right, top, bottom, near, and far.

[0057] An axis-aligned bounding box is the smallest bounding cuboid of a spatially weak region along the three coordinate axes in the world coordinate system, used for rapid intersection detection.

[0058] The separating axis theorem is a fast algorithm for determining whether two convex polyhedra intersect. It determines the intersection relationship by detecting whether the projections of the two polyhedra on a series of potential separating axes overlap.

[0059] 3D point projection is the process of transforming 3D points to the camera coordinate system through the camera pose T, and then projecting them onto the image plane through the intrinsic parameter matrix. The projected coordinates are used to determine whether the point falls within the effective range of the image.

[0060] Observable points are the set of three-dimensional points that can be observed by candidate frames in a weak spatial region, and are the objects of subsequent directional difference analysis.

[0061] An image grid cell is a 16×16 pixel grid used to group and sort observable points by projection position and depth.

[0062] The reason for choosing 16×16 pixels is that, at common image resolutions (such as 4000×3000), this grid size corresponds to a reasonable occlusion detection granularity, which can eliminate obvious occlusions without losing effective observations.

[0063] Visible points are the three points with the lowest depth in each image grid cell. Points with higher depth are considered to be occluded by foreground objects and are removed.

[0064] In detail, because the computational workload of directly performing projection verification on each 3D point of each weak region is large, we first perform pre-screening by detecting the intersection of the view frustum V and the axis-aligned bounding box to quickly eliminate obviously unobservable regions. We then perform precise 3D point projection verification only on the regions that pass the pre-screening, which helps to improve processing efficiency.

[0065] For example, when the candidate frame orientation is completely opposite to a weak region, the axis-aligned bounding box does not intersect with the view frustum, and the region can be excluded in constant time without point-by-point projection.

[0066] In detail, because 3D point projection verification only determines whether a point is within the view frustum and does not consider whether the point is occluded by other objects, depth-ordered occlusion culling is introduced. Points with greater depth near the same projection position are identified as occluded and removed, ensuring that the observable point set truly contains points visible to the candidate frame. For example, in an architectural scene, points on the outside of the building may occlude points on the inside. Without occlusion culling, the inside points would be misclassified as observable, leading to invalid observations in subsequent orientation difference analysis.

[0067] Preferably, for a 3D point that can be observed by candidate frame F, the spatial difference between the observation direction v of candidate frame F for the 3D point and the existing observation direction of the 3D point is compared to determine the directional difference degree D of candidate frame F for the spatially weak region W, including: For each observable point p, calculate the unit vector pointing from the candidate frame camera optical center X to that 3D point, as the candidate frame observation direction vector v; Based on the three-dimensional point observation record O, obtain the camera optical center X of all existing observation frames that have observed the three-dimensional point, calculate the unit vector from the camera optical center of each existing observation frame to the three-dimensional point, and form the set of existing observation direction vectors U. Calculate the angle between the candidate frame observation direction vector v and each vector in the existing observation direction vector set U, and take the smallest angle as the initial direction difference degree d of the three-dimensional point; Calculate the baseline length b between the candidate frame F and the existing observation frame that produces the minimum angle, and the average observation distance L from the candidate frame and the existing observation frame to the 3D point. The ratio of the baseline length b to the average observation distance L is taken as the baseline ratio r. The smaller of the ratio of baseline ratio r to reference baseline ratio K and 1 is taken as the correction factor m. The reference baseline ratio K is 0.1~0.3, preferably 0.15. The initial directional difference d is multiplied by the correction factor m to obtain the corrected directional difference d'. The corrected directional difference d' of all observable points is weighted and averaged according to the normalized uncertainty n of each three-dimensional point to obtain the directional difference D of the candidate frame for the spatially weak region.

[0068] In the formula, v is the candidate frame observation direction vector; X is the camera optical center; U is the set of existing observation direction vectors; d is the initial direction difference; b is the baseline length; L is the average observation distance; r is the baseline ratio; K is the reference baseline ratio; m is the correction factor; d' is the corrected direction difference; n is the normalized uncertainty; and D is the regional direction difference.

[0069] The formula for calculating the directional difference is: r = b / L; m=min(r / K,1); d' = d × m; D = Σ(n×d') / Σn; In the formula, Σ represents the summation over all observable points. The baseline ratio r is equal to the baseline length b divided by the average observation distance L; the correction factor m is equal to the smaller of the ratio of the baseline ratio r to the reference baseline ratio K and 1; the corrected directional difference d' is equal to the initial directional difference d multiplied by the correction factor m; the regional directional difference D is equal to the sum of the products of the normalized uncertainty n of all observable points and the corrected directional difference d' divided by the sum of the normalized uncertainties.

[0070] The candidate frame observation direction vector v is a unit vector pointing from the candidate frame camera optical center X to the observable 3D point p, used to characterize the candidate frame's observation direction to that point.

[0071] The existing set of observation direction vectors U is the set of observation direction vectors of all keyframes that have observed the 3D point, used to characterize the existing observation angle distribution of the point.

[0072] The initial directional difference d is the angle between the candidate frame's observation direction and the closest direction in the set of existing observation directions U. The larger the angle, the newer the direction from which the candidate frame observes the point. The reason for taking the minimum angle instead of the average angle is that the minimum angle directly reflects the difference between the candidate frame's direction and the closest direction in the existing observations. If there is an existing observation direction that almost coincides with the candidate frame, it means that the direction has been fully covered, and even if other existing directions have large differences, the additional constraints provided by the candidate frame are limited.

[0073] The baseline length b is the spatial distance between the camera optical center of the candidate frame and the camera optical center of the existing observation frame that forms the minimum angle, used to characterize the observation baseline between the two frames.

[0074] The average observation distance L is the average value of the distances from the candidate frame and the existing observation frame to the three-dimensional point, used to normalize the baseline length into a ratio independent of the observation scale.

[0075] The baseline ratio r is the ratio of the baseline length b to the average observation distance L, used to characterize the length of the observation baseline relative to the observation distance. A larger baseline ratio indicates a stronger triangulation constraint.

[0076] The reference baseline ratio K is the reference threshold for baseline ratio correction, set to 0.15. When the baseline ratio r is lower than this value, the correction factor m is less than 1, and the direction difference degree is discounted.

[0077] The basis for setting it to 0.15 is as follows: In triangulation, the ratio of the baseline to the observation distance directly determines the relative accuracy of three-dimensional reconstruction. When this ratio is lower than 0.15, the condition number of triangulation increases significantly, that is, a small error in the observation direction will lead to a large error in the position of the three-dimensional point. At this time, even if the direction angle is large, the actual constraint strength is limited. The acceptable range is 0.1~0.3, which corresponds to scenarios with different accuracy requirements.

[0078] The correction factor m is the smaller value between the ratio of the baseline ratio r to the reference baseline ratio K and 1, used to discount the direction difference degree when the baseline is too short. When r ≥ K, m=1 and no discount is applied; when r < K, m=r / K decreases proportionally.

[0079] The calculation formula for the normalized uncertainty n is: n=(σ-σmin) / (σmax-σmin); In the formula, n is the normalized uncertainty, with a value range of 0~1; σ is the original uncertainty of the three-dimensional point; σmin is the minimum value among the uncertainties of all observable points; σmax is the maximum value among the uncertainties of all observable points. The point with the highest uncertainty has n=1, and the point with the lowest uncertainty has n=0. n is used as the weight during weighted aggregation, and points with higher uncertainty have larger weights.

[0080] In detail, because only judging whether the candidate frame can see the weak area is not enough to guarantee that it can provide new geometric constraints. If the candidate frame and the existing observation frame observe the area from almost the same direction, even if they can see it, it is only repeated observation, which has limited improvement on the triangulation accuracy. Therefore, observation direction difference analysis is introduced, and the novelty of the candidate frame direction and the existing direction is quantified through the minimum angle. For example, in a building facade scenario, existing observation frames all observe the facade from the front. If the candidate frame also observes from the front, the minimum angle is close to 0, and the direction difference degree is low; if the candidate frame observes from the side, the minimum angle is large, and the direction difference degree is high.

[0081] In detail, because the triangulation constraint strength is different when the angle of observation direction is the same but the baseline length is different, the actual triangulation accuracy improvement is limited when the baseline is too short, even if the angle of direction is large. Therefore, the baseline ratio r correction factor is introduced.

[0082] For example, when the candidate frame is only 0.5 meters away from the existing frame and the observation distance is 10 meters, the baseline ratio is 0.05, which is much lower than the reference baseline ratio K=0.15. At this time, even if the directional angle is 30°, the correction factor is 0.05 / 0.15≈0.33, and the corrected directional difference is about 10°, which is significantly corrected compared with the initial 30°.

[0083] In detail, because the degree of constraint insufficiency varies among different 3D points in the weak region, points with high uncertainty require new observations to reduce uncertainty. Therefore, when aggregating regional directional differences, normalized uncertainty n is used as the weight, so that points with high uncertainty contribute more to the final directional differences, which is beneficial for prioritizing the supplementation of the weakest constrained points.

[0084] In detail, besides the minimum angle method, the initial direction difference can also be calculated using the average angle method. This involves calculating the average angle between the candidate frame's observation direction and all existing observation directions as the initial direction difference. The average angle method characterizes the average difference between the candidate frame's direction and all existing directions, while the minimum angle method characterizes the difference between the candidate frame's direction and the closest existing direction. Each method has its own emphasis, and the choice can be made based on the specific scenario.

[0085] Preferably, the spatial geometrical supplementation contribution G of candidate frame F is calculated based on the weakness degree and directional difference degree D of the spatially weak region W, including: For each observable point p, the point-level contribution value of the three-dimensional point is obtained by multiplying the normalized uncertainty n of the three-dimensional point by the result of dividing the correction direction difference d' of the three-dimensional point by 90°. The spatial geometrical supplement contribution G of the candidate frame is obtained by averaging the point-level contribution values ​​of all observable points.

[0086] In the formula, G is the spatial geometrical supplement contribution of the candidate frame, and its value ranges from 0 to 1.

[0087] The formulas for calculating the point-level contribution value and the spatial geometric supplementary contribution G are as follows: g = n × d' / 90; G = (1 / N) × Σg; In the formula, g is the point-level contribution value of a single observable point; n is the normalized uncertainty of the point (0~1), which represents how much supplementation is needed at the point; d' is the correction directional difference degree of the point, in degrees; 90 is the theoretical upper limit of directional difference, in degrees, which is normalized to the range of 0~1 by dividing by 90°; G is the spatial geometric supplementation contribution, with a value range of 0~1; N is the total number of observable points; Σg is the sum of the point-level contribution values ​​of all observable points, and G is the arithmetic mean of the point-level contribution values ​​of all observable points.

[0088] In detail, because the spatial geometric supplementation contribution needs to reflect both the extent of regional deficiencies and the quality of candidate frame supplementation, a point-level weighted aggregation method is adopted. The normalized uncertainty n of each observable point is multiplied by the normalized correction direction difference d' / 90° and then averaged, so that the supplementation contribution can simultaneously reflect the degree of weakness and the degree of directional complementarity.

[0089] For example, if all observable points covered by a candidate frame are points with high uncertainty and large directional differences, the spatial geometric supplement contribution is close to 1; if the covered points have low uncertainty or directional differences are close to 0, the contribution is close to 0.

[0090] In detail, besides point-level weighted aggregation, the calculation method for spatial geometric supplementation contributions can also adopt a regional-level multi-factor weighted approach. This involves multiplying the weakness level by a weight of 0.4, the normalized directional difference by a weight of 0.4, and the point coverage ratio by a weight of 0.2, and then summing them. The regional-level approach provides a comprehensive evaluation at the regional level, while the point-level approach provides a detailed evaluation at the point level. The choice between the two can be made based on computational resources and accuracy requirements.

[0091] Preferably, determining whether to select candidate frame F as a keyframe based on the spatial geometrical supplement contribution G includes: The spatial geometrical supplement contribution G is compared with the selected threshold θ, with an initial value of 0.3 and a range of 0.1 to 0.6. If the spatial geometric supplement contribution G is greater than or equal to the selection threshold θ, and the number of frames between the candidate frame F and the previous key frame is greater than or equal to 8 frames, then the candidate frame F is selected as the key frame. Otherwise, it is considered a redundant frame.

[0092] The keyframe selection criteria are as follows: When G≥θ and Δf≥8, candidate frame F is selected as the key frame; otherwise, it is determined to be a redundant frame.

[0093] Where G represents the spatial geometrical contribution of the candidate frame; θ is the selection threshold; and Δf is the number of frames between the candidate frame and the previous keyframe. The initial value of the selection threshold θ is 0.3, with a range of 0.1 to 0.6. The rationale for choosing 0.3 is that, within the contribution range of 0 to 1, 0.3 can filter out candidate frames that make substantial contributions to weak areas, while avoiding too many redundant frames. 0.1 to 0.6 is an acceptable range, with 0.1 corresponding to a high-efficiency priority scenario (selecting more frames) and 0.6 corresponding to a high-precision priority scenario (selecting fewer frames).

[0094] The basis for choosing 8 frames per second is that, under the conventional aerial survey conditions of 30fps video frame rate and UAV speed of about 5m / s, an 8-frame interval corresponds to about 0.27 seconds of flight time and about 1.3 meters of spatial displacement. This displacement can ensure that there is enough parallax between adjacent keyframes for triangulation, while avoiding the continuous selection of spatially adjacent duplicate frames as keyframes.

[0095] Redundant frames are candidate frames whose spatial geometric contribution is less than the selection threshold or does not meet the interval constraint, and they do not participate in subsequent 3D reconstruction.

[0096] In detail, because selecting frames solely based on spatial geometric supplementary contributions may lead to the continuous selection of too many keyframes during periods of slow scene change, resulting in redundancy, a minimum interval frame constraint is introduced, requiring at least 8 frames between adjacent keyframes. This helps to control keyframe density while ensuring coverage.

[0097] Preferably, the selected keyframes are added to the 3D reconstruction to update the current 3D model state M, and the frame selection parameters are adjusted according to the reconstruction quality, including: The selected keyframes are added to the bundle adjustment optimization to update the 3D point cloud P, camera pose T, 3D point observation record O, and 3D point uncertainty σ. Calculate the average reprojection error E and the percentage of weak areas A in the updated 3D model; If the average reprojection error E is greater than 2 pixels or the proportion of weak areas A is greater than 30%, then the threshold θ will be multiplied by 0.8. If the average reprojection error E is less than 0.5 pixels and the proportion of weak areas A is less than 10%, then the threshold θ will be multiplied by 1.2. Each adjustment should not exceed 20%, and the adjusted selection threshold θ should be limited to the range of 0.1 to 0.6. Return to the weak region W in the execution space for analysis.

[0098] Where E is the average reprojection error in pixels; and A is the percentage of weak regions, which is the ratio of the number of weak regions to the total number of voxel regions.

[0099] The average reprojection error E is the average reprojection error of all 3D points across all observation frames, used to characterize the overall accuracy of the 3D model.

[0100] The basis for choosing 2 pixels as the quality deficiency threshold is that 2 pixels is the upper limit of acceptable reprojection error in the field of 3D reconstruction. Exceeding 2 pixels indicates that the model accuracy is insufficient and more keyframes are needed to enhance the constraints.

[0101] The basis for choosing 0.5 pixels as the quality excess threshold is that 0.5 pixels indicates that the model accuracy is already very sufficient, and keyframes can be appropriately reduced to improve reconstruction efficiency.

[0102] The percentage of weak regions, A, is the ratio of the number of weak regions in space to the total number of voxel regions, used to characterize the proportion of insufficiently constrained regions in a 3D model.

[0103] The basis for using 30% as the quality deficiency threshold is that when more than 30% of the voxel area is judged as a weak area, it indicates that the overall coverage is obviously insufficient and the keyframe density needs to be increased.

[0104] The basis for taking 10% as the quality excess threshold is: when the proportion of weak areas is less than 10%, it indicates that the model coverage is good and keyframes can be reduced.

[0105] The closed-loop adjustment rule for selecting the threshold θ is as follows: If E>2 or A>30%, then θ=θ×0.8; If E < 0.5 and A < 10%, then θ = θ × 1.2; After adjustment, θ will be limited to the range of [0.1, 0.6], with each adjustment not exceeding 20%.

[0106] Where E is the average reprojection error in pixels; A is the percentage of weak areas; and θ is the selected threshold.

[0107] When E>2 pixels or A>30% (either condition is met), it indicates that the reconstruction quality is insufficient. Multiply θ by 0.8 to lower the threshold so that more candidate frames can pass the frame selection condition. When E < 0.5 pixels and A < 10% (both conditions are met simultaneously), it indicates that the reconstruction quality is excessive. Multiply θ by 1.2 to increase the threshold and reduce redundant frames.

[0108] Each adjustment should not exceed 20%, and the adjusted θ should be limited to the range of 0.1 to 0.6 to prevent the threshold from deviating too far from the reasonable range.

[0109] In detail, if the frame selection parameters are fixed, they cannot adapt to the dynamic changes in model quality during the reconstruction process. When the model constraints are insufficient, more keyframes are needed to enhance the constraints. When the model quality is good enough, the number of keyframes can be reduced to improve efficiency. Therefore, a closed-loop adaptive adjustment mechanism based on reconstruction quality is established to form a complete closed loop of frame selection, reconstruction, evaluation, parameter tuning, and re-frame selection.

[0110] For example, in areas with insufficient constraints, such as the back of a building, an increase in the proportion of weak areas (A) will trigger a decrease in the threshold (multiplied by 0.8), allowing more candidate frames to be selected as keyframes to enhance the constraints in that area.

[0111] In detail, because frequent and large adjustments to the selection threshold may cause frame selection density oscillations, the adjustment range is set to no more than 20% each time, and the selection threshold is limited to the range of 0.1 to 0.6, which helps to maintain the stability of the frame selection process.

[0112] In detail, in addition to the average reprojection error E and the proportion of weak areas A, the reconstruction quality assessment indicators can also include indicators such as the average uncertainty of three-dimensional points and the utilization rate of key frames, so as to more comprehensively characterize the reconstruction quality.

[0113] Preferably, the method also includes a flight phase differentiation strategy: Based on the UAV's positioning data and preset waypoint sequence, the current flight phase is identified. The flight phase includes the straight flight path phase, the turning phase, the cross-flight path connection phase, and the takeoff and landing phase. During the turning phase, the threshold θ will be multiplied by 0.7, and the minimum interval frame number will be multiplied by 0.5. During the cross-band transition phase, a threshold θ multiplied by 0.8 will be selected; During takeoff and landing, a threshold θ multiplied by 1.5 will be selected.

[0114] The flight phase refers to the flight state of the UAV during aerial surveying. It is identified based on positioning data and preset waypoint sequences. The perspective change characteristics and surveying value are different in different phases.

[0115] The straight-line flight path phase is the phase in which the UAV flies at a constant speed along a preset flight path, with smooth changes in the field of view and the use of standard frame selection parameters.

[0116] The turning phase is when the drone changes its flight direction. The perspective changes drastically and coverage gaps are likely to occur. To increase the keyframe density, the threshold is multiplied by 0.7 and the minimum interval frame number is multiplied by 0.5.

[0117] The reason for multiplying by 0.7 is that the camera orientation changes rapidly during the turning phase, the difference in viewpoint between adjacent frames is large, but the spatial coverage is discontinuous. Lowering the threshold is beneficial for capturing observations from more angles. Multiplying the interval by 0.5 reduces it from 8 frames to 4 frames, ensuring that key frames are not interrupted during the turning process.

[0118] The cross-strip transition phase is the stage where the UAV transitions from one flight strip to an adjacent flight strip. The overlapping area of ​​adjacent flight strips needs to be fully constrained. A threshold value multiplied by 0.8 is selected to ensure coverage at the transition point.

[0119] The takeoff and landing phases are the stages when the UAV takes off and lands. In non-effective mapping areas, a threshold multiplied by 1.5 will be selected to reduce redundant frames.

[0120] In detail, because UAV aerial surveying adopts a strip-shaped route design, the perspective change characteristics and mapping value of different flight stages are significantly different. The perspective changes are large and coverage gaps are easy to occur during the turning and crossing of the flight strip. The take-off and landing stages are not effective mapping areas. Therefore, adopting differentiated frame selection parameters for different stages is beneficial to improve the rationality of frame selection by utilizing the UAV flight geometry prior.

[0121] For example, during the turning phase, the camera orientation changes rapidly. If the standard threshold is still used, it may result in insufficient keyframes and broken coverage in the turning area. Lowering the threshold and reducing the interval can increase the keyframe density in the turning area.

[0122] Example 2: This example provides a keyframe selection system for UAV 3D reconstruction based on spatial geometric constraints, including a 3D modeling module, a weak region analysis module, a candidate frame coverage judgment module, a directional complementarity analysis module, a supplementary contribution calculation module, a keyframe selection module, and a closed-loop update module.

[0123] The 3D modeling module is used to acquire several image frames from the initial stage of the UAV video stream and establish the current 3D model state M. The weak region analysis module is used to determine the spatial weak region W based on the three-dimensional points in the current three-dimensional model state M and their uncertainty σ. The candidate frame coverage determination module is used to determine whether the candidate frame F can observe the spatially weak region W. The direction complementarity analysis module is used to compare the spatial difference between the observation direction v of the candidate frame for a 3D point and the existing observation direction, and to determine the direction difference degree D. The supplementary contribution calculation module is used to calculate the spatial geometric supplementary contribution G of the candidate frame based on the degree of weakness and directional difference of the spatial weak region. The keyframe selection module is used to determine whether to select a candidate frame as a keyframe based on the spatial geometric supplement contribution G. The closed-loop update module is used to add selected keyframes to the 3D reconstruction to update the current 3D model state M, and adjust the frame selection parameters according to the reconstruction quality.

[0124] The specific execution methods of each module are the same as the corresponding steps in Example 1, and will not be repeated here.

[0125] Finally, it should be noted that the above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. An adaptive keyframe selection method for 3D reconstruction of UAV video streams based on spatial geometric constraints, characterized in that, include: S1. Acquire several image frames at the beginning stage of the UAV video stream and establish the current three-dimensional model state M. The current three-dimensional model state M includes three-dimensional point cloud P, camera pose T, three-dimensional point observation record O, and three-dimensional point uncertainty σ. S2. Based on the three-dimensional points and their uncertainties σ in the current three-dimensional model state M, perform spatial region analysis on the three-dimensional model to determine the spatially weak regions W with insufficient spatial coverage or insufficient geometric constraints. S3. Obtain candidate frame F in the video stream, determine whether the candidate frame F can observe the spatially weak region W, and if it can be observed, record the three-dimensional points in the spatially weak region W that can be observed by the candidate frame F. S4. For a three-dimensional point that can be observed by the candidate frame F, compare the spatial difference between the observation direction v of the candidate frame F on the three-dimensional point and the existing observation direction of the three-dimensional point, and determine the directional difference degree D of the candidate frame F on the spatially weak region W. S5. Calculate the spatial geometrical supplementation contribution G of the candidate frame F based on the weakness of the spatially weak region W and the directional difference degree D; S6. Determine whether to select the candidate frame F as a key frame based on the spatial geometric supplement contribution G; S7. Add the selected keyframes to the 3D reconstruction to update the current 3D model state M, and adjust the frame selection parameters according to the reconstruction quality, then return to execute S2.

2. The adaptive keyframe selection method for 3D reconstruction of UAV video stream based on spatial geometric constraints according to claim 1, characterized in that: S1 establishes the current 3D model state M, including: Feature extraction and feature matching are performed on the aforementioned image frames. The camera pose T is solved based on the matching results, and the three-dimensional point cloud P is obtained through triangulation. Record the observation frames and feature point positions corresponding to each 3D point p to form the 3D point observation record O; The camera pose T and the 3D point cloud P are jointly optimized, and the uncertainty σ of the 3D points is determined based on the optimization results.

3. The adaptive keyframe selection method for 3D reconstruction of UAV video stream based on spatial geometric constraints according to claim 2, characterized in that: S2 identifies the spatially weak region W, including: The three-dimensional space corresponding to the three-dimensional point cloud P is divided into multiple spatial regions R. Based on the number of three-dimensional points, the number of observation frames, the uncertainty of three-dimensional points, and the distribution of observation directions in each spatial region R, the coverage integrity C of each spatial region R is determined. Based on the coverage integrity C and the uncertainty of three-dimensional points σ, the spatial regions with insufficient spatial coverage or insufficient geometric constraints are determined as the spatial weak regions W.

4. The adaptive keyframe selection method for 3D reconstruction of UAV video stream based on spatial geometric constraints according to claim 3, characterized in that: In S3, determining whether candidate frame F can observe the spatially weak region W includes: The observation range V of the candidate frame F is determined based on the camera intrinsic parameters and camera pose T. The intersection of the observation range V is judged for the weak spatial region W. The three-dimensional points that are within the effective imaging range of the candidate frame F and meet the depth condition are determined as the observable three-dimensional points.

5. The adaptive keyframe selection method for 3D reconstruction of UAV video stream based on spatial geometric constraints according to claim 1, characterized in that: In S4, the directional difference D between candidate frame F and spatially weak region W is determined, including: The candidate frame observation direction v is determined based on the camera position X of the candidate frame F and the position of the observable 3D point, and the existing observation direction set U corresponding to the observable 3D point is determined based on the 3D point observation record O. Calculate the spatial angle between the candidate frame observation direction v and each vector in the existing observation direction set U, and correct the spatial angle based on the observation baseline between the candidate frame F and the corresponding existing observation frame to obtain the direction difference degree D.

6. The adaptive keyframe selection method for 3D reconstruction of UAV video stream based on spatial geometric constraints according to claim 1, characterized in that: The spatial geometric complement contribution G of candidate frame F is calculated in S5, including: Based on the normalized uncertainty n of the observable 3D points and the corresponding correction direction difference d', the point-level supplementary contribution corresponding to each observable 3D point is determined, and the point-level supplementary contributions are aggregated to obtain the spatial geometric supplementary contribution G.

7. The adaptive keyframe selection method for 3D reconstruction of UAV video stream based on spatial geometric constraints according to claim 1, characterized in that: In S6, determining whether to select candidate frame F as a keyframe includes: The spatial geometric supplement contribution G is compared with the current selection threshold θ. When the spatial geometric supplement contribution G reaches the selection threshold θ, the candidate frame F is determined as a key frame candidate. When the candidate frame F and the previous key frame meet the preset interval condition, the candidate frame F is selected as a key frame.

8. The adaptive keyframe selection method for 3D reconstruction of UAV video stream based on spatial geometric constraints according to claim 7, characterized in that: The keyframe selection parameters are adjusted based on the updated 3D reconstruction quality, including: The selected keyframes are added to the 3D reconstruction and the 3D point cloud P, the camera pose T, the 3D point observation record O, and the 3D point uncertainty σ are updated. The average reprojection error E and the proportion of spatially weak regions A of the updated 3D model are calculated, and the selection threshold θ is adjusted according to the average reprojection error E and the proportion of spatially weak regions A.

9. The adaptive keyframe selection method for 3D reconstruction of UAV video stream based on spatial geometric constraints according to claim 8, characterized in that: Adjusting the selected threshold θ includes: When the average reprojection error E or the proportion of weak spatial regions A indicates that the geometric constraints of the current 3D model are insufficient, the selection threshold θ is reduced to increase the selection probability of keyframes. When the average reprojection error E and the proportion of spatially weak regions A sufficiently characterize the geometric constraints of the current 3D model, the selection threshold θ is increased to reduce the selection probability of keyframes.

10. The adaptive keyframe selection method for 3D reconstruction of UAV video stream based on spatial geometric constraints according to claim 9, characterized in that: The current flight phase is determined based on the UAV positioning data and the preset waypoint sequence. The selection threshold θ or the minimum interval between candidate frames is adjusted according to the degree of spatial perspective change corresponding to different flight phases. Specifically, during flight phases with significant changes in viewing angle, the selection threshold θ is lowered or the minimum interval is shortened; during flight phases with minor changes in viewing angle or non-primary mapping phases, the selection threshold θ is increased or the minimum interval is extended.

Citation Information

Patent Citations

  • An adaptive key frame extraction method and system based on multi-sensor fusion and motion trajectory prediction

    CN121392717B