Multi-angle photography unmanned aerial vehicle surveying and mapping method
By dividing the local slope into units through the first round of photography and calculating the perspective quality influence factor, a set of optimal perspectives is generated for supplementary photography. This solves the problem of difficulty in obtaining the true geometry of complex slopes in traditional methods, realizes the geometric integrity and accuracy improvement of three-dimensional mapping of high and steep slopes, and ensures the stability and timeliness of the mapping results.
Patent Information
- Application Number
- CN202611629029.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-21
- Publication Date
- 2026-11-20
AI Technical Summary
In emergency mapping scenarios of steep rock slopes after rainstorms, earthquakes, or construction disturbances, traditional multi-angle photography methods with fixed pitch angles, fixed overlap rates, and fixed flight path templates are insufficient to fully capture the true spatial geometry of complex slopes within a limited number of flight sorties. This results in repeated acquisition of easily photographed areas, lack of perspective in difficult-to-photograph areas, and an inability to effectively distinguish differences in reconstruction quality, leading to insufficient stability of the mapping results.
The first round of photography is used to obtain rough survey results, divide local slope units, calculate the perspective quality influence factor, generate a candidate perspective set and perform optimal scoring, generate a second round of photography plan, obtain an enhanced image set and its perspective quality label, perform weighted reconstruction, calculate the survey credibility and generate a credibility zoning map, and form a supplementary shooting suggestion.
Without significantly increasing the number of flights, it effectively compensates for the lack of viewpoints in concave surfaces, overhanging edges, and areas with weak reflective textures, improves the geometric integrity and accuracy of 3D mapping results, reduces the risk of data gaps, enhances the stability and timeliness of mapping results, and reduces manual interpretation and re-flight time.
Smart Images

Figure CN123135010A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of unmanned aerial vehicle (UAV) mapping, and more particularly to a UAV mapping method using multi-angle photography. Background Technology
[0002] In emergency mapping scenarios of steep rock slopes after heavy rain, the slope surface simultaneously contains concave surfaces, fractured surfaces, slippery reflective surfaces, and areas partially obscured by vegetation. Traditional multi-angle photography methods using fixed pitch angles, fixed overlap rates, and fixed flight path templates are insufficient to fully capture the true spatial geometry of the complex slope within a limited number of flight sorties. Consequently, although the mapping results generate a 3D model, it is often impossible to reliably and clearly indicate which areas in the model are reliable, which areas have geometric gaps, and from which angle to retake the image.
[0003] Existing technologies typically employ drones equipped with visible light cameras to photograph and collect images of the target slope along a preset orthogonal flight path and several oblique flight paths. They then use RTK positioning information and a small number of ground control points to complete aerial triangulation, and finally use SfM and MVS to reconstruct and generate DOM, DSM, point cloud, or 3D models. When the modeling effect of a local area is poor, the model defects are usually checked manually and a re-flight is arranged.
[0004] However, in actual use, it still has some shortcomings. Most of the multi-angle photography in the existing schemes are fixed-angle template-based acquisitions. The shooting angle, flight strip spacing and overlap rate are mainly set uniformly before flight. It cannot be dynamically adjusted according to the concavity and convexity of the local slope, the occlusion relationship of the visible field, the reflectivity of the wet surface and the richness of the texture. Therefore, it is easy to have many repeated acquisitions in easy-to-shoot areas and still lack of perspective in difficult-to-shoot areas, which ultimately results in obvious gaps in the data of local concave surfaces, cracks and reflective surfaces. Summary of the Invention
[0005] This invention addresses the challenges of emergency mapping of steep rock slopes after heavy rain, earthquakes, or construction disturbances, where local vegetation obscures the slope. Traditional multi-angle photography methods with fixed pitch angles, overlap rates, and flight path templates struggle to capture the true spatial geometry of complex slopes within a limited number of flight sorties. This results in repetitive data collection in easily accessible areas and a lack of perspective in difficult-to-capture areas. Furthermore, existing technologies often treat differences in perspective quality, local obstruction, and glare interference as anomalies to be eliminated or manually re-flyed after reconstruction, failing to effectively distinguish the actual contribution of different shooting angles to reconstruction quality. This leads to insufficient stability of mapping results across different scenarios and slope conditions. Therefore, this invention proposes a multi-angle photography UAV mapping method.
[0006] To achieve the above objectives, this invention proposes a multi-angle photography method for UAV mapping, comprising:
[0007] The first round of photography was conducted on the target survey area to obtain rough survey results;
[0008] Based on the preliminary measurement results, local slope units were divided, and the perspective quality influence factor was calculated for each local slope unit.
[0009] A set of candidate viewpoints is constructed based on local slope units, and the optimal score of each candidate viewpoint in the set is calculated to generate a second round of photography plan;
[0010] Reshoots were conducted according to the second round of the photography plan to obtain an enhanced image set and its perspective quality labels;
[0011] The enhanced image set and its viewpoint quality labels are subjected to weighted reconstruction to obtain the weighted reconstruction result;
[0012] Based on the weighted reconstruction results, the mapping reliability of each local slope unit is calculated, and a reliability zoning map is generated;
[0013] A list of suggested reshoots is generated based on the credibility zoning map.
[0014] Preferably, the local slope is divided into units based on the coarse survey results, and the perspective quality influence factor is calculated for each unit, including:
[0015] Based on the preliminary survey results, the slope is divided into local slope units;
[0016] For each local slope unit, calculate the viewing quality impact factors, including occlusion risk value, texture effective value, shadow risk value, and reflection risk value.
[0017] Preferably, the slope is divided based on the coarse survey results to obtain local slope units, including:
[0018] For each point in the coarse measurement results, calculate the rate of change of normal and the rate of change of curvature;
[0019] Each point is divided according to the rate of change of normal and the rate of change of curvature to obtain the preliminary slope unit;
[0020] The initial slope units are merged and subdivided to form the smallest surveying decision unit, which is then used as the local slope unit.
[0021] Preferably, a candidate viewpoint set is constructed based on local slope units, and the optimal score for each candidate viewpoint in the set is calculated to generate a second-round photography plan, including:
[0022] Using the geometric center of the local slope unit as the observation reference point, an initial candidate viewpoint is generated based on its principal normal vector, boundary range, and preset azimuth and pitch step sizes.
[0023] Perform a field-of-view analysis on each initial candidate viewpoint to obtain a set of candidate viewpoints;
[0024] Based on the perspective quality influence factor, a weighted summation model is used to calculate the optimal score for each candidate perspective.
[0025] The best scores of each candidate perspective are sorted in descending order, and several perspectives are selected as the reshoot perspectives for this unit, thus generating the second round of photography plan.
[0026] Preferably, generating the initial candidate viewpoint includes:
[0027] Extract the geometric center of the local slope element as the observation reference point and calculate the principal normal vector of the local slope element;
[0028] Using the observation reference point as the target point, an initial direction line pointing to the observation reference point is generated according to the preset azimuth and pitch step sizes. Each initial direction line corresponds to the attitude of an initial candidate viewpoint.
[0029] The optimal shooting distance for each initial direction line is calculated based on the target ground sampling distance and camera intrinsic parameters. The observation reference point is then shifted in the opposite direction of the initial direction line to the optimal shooting distance, thereby obtaining the candidate shooting positions.
[0030] Preferably, a field-of-view analysis is performed on each initial candidate viewpoint direction to obtain a candidate viewpoint set, including:
[0031] The geometric center and boundary information of each local slope unit are mapped to the initial candidate view direction, forming a mapping relationship between the candidate view and one or more local slope units;
[0032] For each initial candidate viewpoint direction, calculate the visibility of its corresponding local slope unit and identify the occluded parts;
[0033] Candidate views that cannot cover any local slope unit are eliminated, and candidate views that cover at least one local slope unit are retained.
[0034] The retained candidate viewpoints and the set of local slope units they cover constitute the final candidate viewpoint set.
[0035] Reshoots were conducted according to the second round of the photography plan to obtain an enhanced image set and its viewpoint quality labels, including:
[0036] According to each reshoot angle in the second round of photography plan, the drone is controlled to collect images and metadata, thereby forming an enhanced image set;
[0037] The optimal score for each image corresponding to the reshoot angle is used as the preset quality score for that image.
[0038] The actual quality index of the image is obtained, and the preset quality score is corrected accordingly to obtain the viewpoint quality label of the image.
[0039] On the other hand, the UAV mapping method also includes:
[0040] Preferably, the preset quality score is corrected to obtain the viewpoint quality label of the image, including:
[0041] Obtain the actual quality indicators of the image, construct a quality vector, and label it as M=[m1, m2, ..., m n ];
[0042] Define the penalty factor p corresponding to each actual quality indicator mi. i (m) i ), when m i When the preset expected value is reached, p i =1, otherwise p i <1;
[0043] The corrected quality score is calculated based on the preset quality score of the image, and is specifically expressed as follows:
[0044]
[0045] Where Qc represents the corrected quality score, Qp represents the preset quality score, and n represents the actual number of quality indicators, i=1,…,n;
[0046] The corrected quality score will be used as the viewpoint quality label for the image.
[0047] Preferably, the enhanced image set and its viewpoint quality labels are subjected to weighted reconstruction to obtain a weighted reconstruction result, including:
[0048] Feature points are extracted from each image in the enhanced image set, and sparse matching is performed on the same feature points in different images; the viewpoint quality label of each image is used as the observation weight of each feature point on that image.
[0049] A position objective function is constructed based on the observation weights of each feature point to calculate the camera pose and sparse point cloud.
[0050] Based on the camera pose, the geometric mean of the viewpoint quality labels of the two images in the image pair is used as the matching cost weight to perform weighted dense matching and generate a dense point cloud.
[0051] The sparse point cloud, dense point cloud, and camera pose are output as the weighted reconstruction result.
[0052] Preferably, the mapping reliability of each local slope unit is calculated based on the weighted reconstruction results, and a local reliability zoning map is generated, including:
[0053] Normalized parameters are extracted for each local slope unit, including normalized values for image quantity, normalized values for ray intersection direction dispersion, normalized values for texture stability, and normalized values for reprojection residuals.
[0054] The mapping confidence value Ck of the local slope unit is calculated using a weighted summation model, specifically expressed as: Ck=α˙Nk+β˙Dk+γ˙Uk−δ˙Ek, where Nk is the normalized value of the number of images effectively participating in the reconstruction, Dk is the normalized value of the ray intersection direction dispersion, Uk is the normalized value of the texture stability, Ek is the normalized value of the reprojection residual, and α, β, γ, and δ are preset weights;
[0055] The confidence values of each local slope unit are compared with preset thresholds to divide the area into high confidence, medium confidence and low confidence zones. The division results are then mapped to the corresponding areas of the 3D model or orthophoto to generate a confidence zoning map.
[0056] Compared with the prior art, the present invention has the following beneficial effects:
[0057] I. This invention performs an initial rough survey and divides the local slope into units. Then, it calculates the perspective quality influencing factors such as occlusion, texture, shadow, and reflection for each unit, thereby generating differentiated supplementary shooting perspectives for each unit. Without significantly increasing the number of flight sorties, it effectively supplements the perspective gaps in concave surfaces, overhanging edges, and areas with weak reflection and texture. This is beneficial to improving the geometric integrity of 3D mapping results for complex and steep slopes, effectively reducing the risk of data gaps in difficult-to-shoot areas caused by traditional fixed template-based acquisition, while also ensuring the timeliness and flight safety of emergency mapping.
[0058] Second, this invention outputs a mapping reliability zoning map for each local slope unit, and derives supplementary shooting angle suggestions based on low-reliability units, automatically generating subsequent supplementary shooting plans. This eliminates the need for repeated test flights based on human experience, allowing emergency decision-makers to intuitively understand which areas in the model are reliable and which have geometric gaps. By using the viewpoint quality label as the observation weight for weighted bundle adjustment and weighted dense matching, high-quality viewpoints play a dominant role in reconstruction, effectively suppressing the negative impact of low-quality viewpoints. This results in higher-precision 3D geometric results without adding additional payloads such as lidar, significantly reducing the time cost of manual interpretation and secondary supplementary flights. It effectively overcomes the technical defects of existing technologies, such as the disconnect between viewpoint acquisition and reconstruction quality and the unknowable reliability of the results.
[0059] Third, this invention improves the view coverage integrity and 3D reconstruction accuracy of concave surfaces, overhanging edges, and areas with weak reflectivity and texture in steep rock slopes by dividing local slope units through initial coarse surveying and calculating view quality influencing factors such as occlusion, texture, shadow, and reflection. Furthermore, it uses actual quality indicators to multiply and correct the preset view score, and incorporates view quality labels throughout the entire process of weighted bundle adjustment and weighted dense matching. This further reduces the interference of motion blur, overexposure, attitude deviation, shadow occlusion, and specular reflection on the 3D mapping results, thereby making the final output 3D model, credibility zoning map, and reshoot suggestion list more stable, accurate, and capable of emergency decision-making. Attached Figure Description
[0060] Figure 1 This is a flowchart of the UAV mapping method of the present invention;
[0061] Figure 2 This is a comparison diagram of the effects of the present invention and the prior art. Detailed Implementation
[0062] To make the technical means, creative features, objectives, and effects of this invention easier to understand, the invention is further described below with reference to specific embodiments. However, the following embodiments are merely preferred embodiments of this invention and not all of them. Other embodiments obtained by those skilled in the art based on the embodiments described herein without creative effort are all within the protection scope of this invention.
[0063] Example 1:
[0064] To achieve the above objectives, please refer to Figure 1 This invention provides a method for UAV mapping using multi-angle photography, comprising:
[0065] Obtain the initial terrain constraint results of the target survey area, and perform the first round of photography based on the initial terrain constraint results to obtain the coarse survey results.
[0066] In this embodiment, it should be specifically explained that the method for obtaining the coarse measurement results is as follows:
[0067] First, acquire the basic data of the target survey area to generate the initial terrain constraint results;
[0068] It should be explained that the basic data may include survey area boundary information, existing terrain data, and rapid reconnaissance image data. Among them, the survey area boundary information can be obtained from the mission planning document or manually labeled; the existing terrain data can be a historical digital elevation model (DEM) or a digital surface model (DSM); in the absence of existing terrain data, preliminary image data can also be obtained by performing low-density rapid reconnaissance flights by UAVs.
[0069] The basic data is processed to generate initial terrain constraint results, which include at least the flight altitude range, no-fly buffer zone, and target ground sampling distance;
[0070] Specifically, the initial terrain constraint results also include:
[0071] Based on the boundary information of the survey area and existing topographic data, the maximum elevation difference of the survey area is calculated to determine the safe altitude range for UAV flight.
[0072] A no-fly zone is created by extending a certain distance outward from the boundary to prevent drones from entering dangerous areas;
[0073] The target ground sampling distance is determined based on the minimum identification scale requirements of the task. When no minimum identification scale is given, a default value can be set according to the mapping accuracy requirements.
[0074] It should be explained that the target ground sampling distance means the minimum spatial detail scale that the final result allows for identification and measurement. If the task specification clearly requires the minimum structural size to be identified as dmin, then the target ground sampling distance should be less than or equal to dmin / 3. If the task specification does not specify the minimum structural size, then 2 cm / pixel to 3 cm / pixel can be used by default for ordinary emergency mapping areas, and 1 cm / pixel can be used by default for key dangerous rock areas.
[0075] After obtaining the initial terrain constraints, the first round of photography tasks is planned based on these constraints.
[0076] It should be explained that the first round of photography adopts a circumferential or coverage flight path, so that the UAV can collect images from multiple directions along the periphery or above the survey area. During the flight, the flight altitude, heading and image acquisition interval of the UAV are controlled so that the acquired images meet the basic overlap requirements, but no differential adjustments are made to the shooting angle and overlap rate for local slopes.
[0077] After the first round of photography, raw image data covering the entire survey area and corresponding pose information are acquired. Based on the image data and pose information, initial three-dimensional point cloud data is generated using aerial triangulation to obtain coarse measurement results. These coarse measurement results are used to characterize the overall terrain structure of the survey area and provide basic data for subsequent local slope unit division and adaptive multi-angle photography.
[0078] Based on the preliminary measurement results, the local slope surface was divided into units, and the perspective quality influence factor was calculated for each unit.
[0079] In this embodiment, it should be specifically noted that after obtaining the coarse measurement results, the coarse measurement results are divided into local slope units, and the viewpoint quality influence factor of each local slope unit is calculated, as detailed below:
[0080] The point cloud data in the coarse measurement results are preprocessed, including the removal of isolated points and noise points, and the necessary density equalization processing is performed on the point cloud. Then, the normal change rate and curvature change rate are calculated for each point in the point cloud. The normal change rate is obtained by comparing the angle between the normal vector of the point and the normal vector of each point in its neighborhood. The curvature change rate can be calculated based on the geometric distribution of the neighborhood points. Specifically, it can be obtained by fitting a local quadratic surface and calculating the variance of the principal curvature.
[0081] Based on the above normal change rate and curvature change rate, the point cloud is segmented.
[0082] Specifically, a threshold for the rate of change of normal is set, for example, 15° to 25°, and a threshold for the rate of change of curvature is set, for example, 0.2 to 0.4. The set of points whose rate of change of normal and rate of change of curvature change change change continuously change within the preset threshold range is divided into the same preliminary slope unit. That is, when the rate of change of normal or the rate of change of curvature change between adjacent points exceeds the threshold, that point is taken as the unit boundary, thereby dividing the entire point cloud into several preliminary slope units.
[0083] After obtaining the initial slope units, they are merged and subdivided.
[0084] It should be explained that when the initial slope units are segmented according to the rate of change of normal and the rate of change of curvature, a large number of fragmented units with too small an area and unclear geometric meaning are easily generated due to the influence of point cloud noise, local minor bumps or vegetation discrete points. These fragmented units cannot be used independently as supplementary shooting decision objects. If they are directly used for subsequent view planning, the number of candidate views and the amount of computation will increase exponentially. Therefore, it is necessary to further refine the initially formed slope units.
[0085] The merging and subdivision process specifically includes: calculating the normal change rate of two adjacent preliminary slope units; if the normal change rate is less than the preset first merging threshold, for example, 10°, and the area of both units is less than the preset maximum merging area, for example, 5m², then the two are merged into one unit; if the average curvature change rate of adjacent units at the boundary is less than the preset second merging threshold, for example, 0.1, and merging will not cause the normal variance inside the unit to exceed the preset upper limit of dispersion, for example, 15°, then they are merged, and the above judgment is continued for the new unit until merging can no longer be performed.
[0086] For each initial slope unit, the rate of curvature change of each point inside it is obtained. If there is a continuous point band with a rate of curvature change greater than the preset subdivision threshold (e.g., 0.5), the unit is divided into two or more sub-units along the point band. After division, the area of the sub-unit is checked. If the area of the sub-unit is less than the preset minimum mapping unit area, e.g., 0.5m², it is merged into the adjacent larger unit to avoid the occurrence of isolated units that are too small.
[0087] After merging and subdividing, multiple minimum mapping decision units are obtained, which are used as local slope units. The spatial range, principal normal, boundary contour and point cloud index of each unit are recorded.
[0088] Furthermore, after completing the local slope unit division, the viewpoint quality impact factor is calculated for each local slope unit, including occlusion risk value, texture effective value, shadow risk value, and reflection risk value, as detailed below:
[0089] Occlusion risk analysis is performed using coarse triangulation meshes. Specifically, a slope triangulation mesh is generated based on the coarse point cloud results. For each local slope unit, its boundary in three-dimensional space is projected onto the triangulation mesh. The sum of the areas of all triangles falling within the boundary of the unit is calculated, and the proportion of this area to the total area of the local slope unit is calculated. This proportion is the occlusion risk value.
[0090] It should be added that the slope triangulation network represents the currently known slope geometry. If the proportion of a local slope unit covered by the triangulation network is higher, it means that the unit has a more complete geometric representation in the coarse measurement model, and the possibility of it being occluded when photographed from a new perspective is relatively low. Conversely, if the coverage ratio is low, it indicates that the unit may be located in a depression, overhang, or narrow area, which the existing triangulation network cannot fully represent, i.e., the risk of occlusion is high. The occlusion risk value is between 0 and 1, with a larger value indicating a lower risk and more complete coverage, and a smaller value indicating a higher risk.
[0091] The effective texture value is calculated using the image grayscale gradient. Specifically, for each local slope unit, an image that can completely cover the unit is selected from the first round of photographic images, or the best one is selected from multiple images. All pixels in the corresponding area of the unit in the image are extracted, and the grayscale gradient of each pixel is calculated. Specifically, the Sobel operator or the Laplacian operator can be used to obtain the gradient magnitude. Then, the variance of all gradient magnitudes in the shaded area is calculated, and the variance is normalized to the interval [0, 1]. Specifically, the obtained variance can be divided by the theoretical maximum variance or min-max normalization can be used. The normalized value is the effective texture value.
[0092] It should be added that before calculating the effective value of the texture, it is necessary to determine the projection area of the local slope unit on the selected image. In this embodiment, the slope triangular mesh generated by the coarse measurement point cloud is used to project all the vertices of the triangular facets in the unit to the image pixel coordinates according to the collinearity equation, and the convex hull of the projection point set is taken as the projection area.
[0093] It should be explained that the gray-level gradient variance reflects the richness of texture in a local area of an image. The larger the variance, the more dramatic the changes in brightness and darkness in the area, and the more feature points there are, which is beneficial for subsequent feature matching and 3D reconstruction. The smaller the variance, the flatter the texture, such as a smooth rock surface or water surface, which is difficult to match. The closer the effective texture value is to 1, the richer the texture is, and the closer it is to 0, the poorer the texture is.
[0094] The specific calculation method for the shadow risk value is as follows: Based on the known solar altitude angle and azimuth angle (which can be obtained from meteorological data or astronomical algorithms during aerial photography), determine the illumination direction vector L. For each local slope unit, calculate the normal vector N by averaging the normals of all triangular faces within the unit in the coarse triangulation network. Then calculate the angle θ between the illumination direction and the normal, satisfying cosθ=(L·N) / (|L||N|). If cosθ≤0, that is, the illumination direction is away from the slope, then the unit is completely in shadow, and the number of shadow-covered points is the total number of points in the unit. If cosθ>0, then it is necessary to further simulate ray tracing on the slope triangulation network: emit rays from each point in the unit along the opposite direction of illumination. If the ray intersects with the triangulation network, then the point is covered by its own shadow. Count the proportion of the number of points covered by shadow to the total number of points in the unit, and obtain the shadow risk value after normalization.
[0095] It should be added that when computing power is limited, the linear mapping of cosθ can be used directly as an approximation of shadow risk. In this case, the shadow risk value can take the maximum value of 0 and 1-cosθ. The shadow risk value is between 0 and 1. The larger the value, the more severe the shadow coverage, and the less conducive it is to image detail extraction.
[0096] The specific calculation method for the reflectivity risk value is as follows:
[0097] For each local slope unit, select an image from the first round of photographic images that is centered and clear. Extract the pixel area corresponding to the unit in the image and count the number of pixels whose grayscale value exceeds a preset saturation threshold. If the preset saturation threshold is 250, divide it by the total number of pixels in the unit to obtain the saturated pixel ratio. This ratio is directly used as the reflection risk value.
[0098] It should be added that when there is specular reflection on the slope (such as wet and slippery rock surface, water stains, smooth mineral surface), the intensity of reflected light may exceed the linear response range of the camera sensor, resulting in pixel saturation. The saturated area cannot provide effective grayscale difference, and feature matching fails. Therefore, the higher the proportion of saturated pixels, the greater the risk of reflection. The reflection risk value is between 0 and 1, where 0 means no saturated pixels and 1 means fully saturated.
[0099] It is important to know that the above four factors are all calculated based on the first round of rough measurement data, without waiting for the second round of supplementary shooting. Therefore, they can be completed in real time at the flight site, ensuring the timeliness of emergency mapping. The specific calculation methods for the four factors can be adjusted according to the actual sensor characteristics and mission requirements, adjusting the threshold or normalization method.
[0100] A set of candidate viewpoints is constructed based on local slope units, and the optimal score of each candidate viewpoint in the set is calculated to generate a second round of photography plan.
[0101] In this embodiment, it should be specifically explained that after obtaining the local slope unit and its viewpoint quality influence factor, a candidate viewpoint set is constructed based on the local slope unit, and the candidate viewpoints are screened. The specific process is as follows:
[0102] Extract the geometric center of the local slope unit as the observation reference point, and calculate its principal normal vector by averaging the normals of all triangular facets within the unit;
[0103] Using the observation reference point as the target point, in the hemispherical space pointed to by the unit principal normal vector, an initial direction line pointing to the observation reference point is generated according to the preset azimuth step and pitch step. Each direction line corresponds to the attitude of an initial candidate viewpoint.
[0104] It should be explained that the azimuth step size is the angular interval between two adjacent candidate view directions on the horizontal plane. The azimuth angle is usually 0° with true north as the starting point, increasing clockwise, ranging from 0° to 360°. The pitch step size is the angular interval between two adjacent candidate view directions in the vertical direction. The pitch angle is usually 0° with the horizontal plane as the starting point, with upward tilting as positive and downward tilting as negative. The range is determined based on the relative position of the UAV and the slope. For example, the azimuth step size is 30° by default, the pitch step size is 15° by default, and the pitch angle range is set to -45° to 45°. The step size can be adjusted according to the accuracy required for the task, the maneuverability of the UAV, and the onboard computing power: for high-precision mapping, the step size can be reduced to 15° and 10°, and for emergency rapid mapping, it can be widened to 45° and 20°. In addition, for complex slope units with drastic curvature changes, the step size can be adaptively densified to generate denser candidate viewpoints.
[0105] The optimal shooting distance for each initial direction line is calculated based on the target ground sampling distance and camera intrinsic parameters. Specifically, it is the ratio of the product of the focal length in the camera intrinsic parameters and the target ground sampling distance to the pixel size. The observation reference point is then shifted along the opposite direction of the direction line to the optimal shooting distance, thereby obtaining candidate shooting positions. At the same time, it is checked whether the preset flight safety boundaries (such as minimum ground clearance and buffer distance from obstacles) are exceeded. If they are exceeded, the distance along the direction line is adjusted to be within the safety boundaries, and the actual target ground sampling distance is recalculated to ensure that it is not lower than the minimum resolution required by the mission.
[0106] For each initial candidate viewpoint direction, a field-of-view analysis is performed on the candidate shooting positions to filter effective viewpoints and establish a mapping relationship between viewpoints and local slope units. Specifically, this includes:
[0107] The geometric center and boundary information of each local slope unit are projected onto the imaging plane of the current candidate viewpoint. It is determined whether the unit falls within the field of view of the camera. If it is within the field of view, the local slope unit is marked as a potential coverage object of the candidate viewpoint, forming a preliminary mapping relationship between the candidate viewpoint and one or more local slope units.
[0108] It needs to be explained that determining whether a local slope unit falls within the camera's field of view can be done using a method based on imaging plane projection. This includes: for a candidate viewpoint, given its shooting position, attitude angles (yaw, pitch, roll), and camera intrinsic parameters (focal length, pixel size, image width W, height H), the geometric center and vertices of the boundary convex hull of the local slope unit are projected onto the image pixel coordinate system according to the collinearity equation to obtain the corresponding pixel coordinates (u, v). If at least one projection point satisfies 0 ≤ u < W and 0 ≤ v < H, then the unit is considered to fall within the camera's field of view; otherwise, the unit is considered not to be within the field of view, and the candidate viewpoint cannot cover the unit.
[0109] For each candidate viewpoint and its mapped local slope unit, a ray is emitted from the candidate shooting position to the uniformly sampled points within the unit. Occlusion is determined using a coarse triangulation network. At this time, the proportion of the number of occluded sampling points to the total number of sampling points in the unit is counted. If this proportion is lower than a preset visibility threshold (e.g., 30%), the unit is considered visible from the viewpoint; otherwise, the unit is considered severely occluded and removed from the mapping relationship of the viewpoint.
[0110] If a candidate viewpoint no longer covers any local slope unit after the visible field analysis and its mapping set is empty, then the candidate viewpoint will be removed entirely.
[0111] All candidate views that cover at least one local slope unit are retained, and each candidate view is associated with and stored in relation to the set of local slope units that it can effectively cover. These retained candidate views and the set of units they cover together constitute the candidate view set corresponding to the local slope unit. For each unit, its candidate view is the view that can effectively cover it.
[0112] As one implementation method:
[0113] Suppose that after the first round of coarse surveying of a steep rock slope, a local slope unit is identified in the middle of the slope. This unit is concave, with its principal normal pointing southwest. The unit area is approximately 12 square meters, and the boundary curvature varies considerably. In order to generate a second round of supplementary shooting angles for this unit, the system first uses its geometric center as the observation reference point. Within the hemispherical space pointing towards the principal normal of the unit, initial candidate angle lines are generated with an azimuth step of 30° and an elevation step of 15°. The elevation angle range is -45° to +45°, resulting in a total of 12 (azimuth) × 7 (elevation) = 84 initial angle lines. For each angle line, based on the target ground sampling distance (set to 2 cm / pixel), camera focal length (25 mm), and pixel size (4.5 μm), the optimal shooting distance is calculated to be approximately 11.1 meters.
[0114] The distance was checked to see if it exceeded the flight safety boundaries (e.g., minimum altitude 5 meters, maximum 50 meters). Here, 11.1 meters met the requirements, thus determining a candidate shooting position. Next, a field-of-view analysis was performed: rays were emitted from this shooting position to 100 uniformly sampled points within the unit. A coarse triangulation network was used to determine occlusion. If more than 30 points were occluded, the viewpoint was discarded. After screening, 52 out of 84 initial viewpoints passed the field-of-view check, forming the candidate viewpoint set for this unit.
[0115] Furthermore, for each viewpoint in the candidate viewpoint set, a weighted summation model is used to calculate its optimal score, specifically expressed as follows:
[0116] ,
[0117] Where Qj represents the preferred score for the j-th candidate viewpoint, V j T j S j and R j These represent the occlusion risk value, texture effective value, shadow risk value, and reflection risk value, respectively. j The intersection angle complementarity is represented by ω1, ω2, ω3, ω4, and ω5, which represent the weights corresponding to the occlusion risk value, texture effective value, intersection angle complementarity, shadow risk value, and reflection risk value, respectively. For example, equal weights are used by default, ω1=ω2=ω3=ω4=ω5=0.2. These weights can also be adjusted according to the actual scene. For example, ω1 can be increased in severely occluded concave areas, and ω5 can be increased in highly reflective and slippery areas. The higher the optimal score, the better the viewpoint is in terms of information gain, texture quality, geometric complementarity, and the least interference from shadows and reflections.
[0118] It needs to be explained that the intersection angle complementarity is used to characterize the degree of complementarity of the spatial intersection angle distribution between the candidate viewpoint and the existing set of viewpoints. Specifically, it is calculated as follows: the angle between the ray direction of a candidate viewpoint and the ray direction of each existing viewpoint is calculated, and the minimum value of these angles is taken. If the minimum angle is less than the preset lower limit of the ideal intersection angle, for example, 15°, the complementarity is low; if it is close to the ideal intersection angle, for example, 30°, the complementarity is high. Specifically, it can be expressed as:
[0119] ,
[0120] Where θ min θ represents the minimum angle. low θ represents the lower limit of the ideal intersection angle. opt Let θ represent the ideal intersection angle, and set its range to [0, 1]. min >θ low A j =0, the larger the intersection angle complementarity, the better the geometric complementarity with the existing viewpoint.
[0121] Sort all the viewpoints in its candidate viewpoint set from high to low according to the preferred score, and select a number of the top-ranked viewpoints as the supplementary shooting viewpoints for the unit. The number of selected viewpoints can be dynamically adjusted according to the unit complexity. For ordinary slope units, 2 to 3 viewpoints can be selected, and for concave or cantilever units, 5 to 7 viewpoints can be selected.
[0122] The reshooting perspectives of all local slope units are merged and deduplicated. A path planning algorithm is used to optimize the flight path of the merged reshooting perspective set to generate a flight path with the shortest total flight distance or the lowest energy consumption. The flight path and the corresponding reshooting perspective instruction set are packaged together. The flight path contains a series of waypoints. The location coordinates, flight speed and hovering time after reaching each waypoint are recorded to form the second round of photography plan.
[0123] It needs to be explained that the reshooting perspective merging and deduplication specifically involves deleting perspectives that are completely identical or extremely similar in shooting position and attitude. For example, perspectives with a position difference of less than 1 meter or an attitude angle difference of less than 5° are considered duplicates. Path planning algorithms are used to generate the drone's flight path, such as greedy search based on the traveling salesman problem or the A* algorithm.
[0124] This invention customizes the optimal reshoot angle for each local slope unit based on its geometry, texture richness, lighting conditions, and coverage of existing viewpoints. This fundamentally solves the problem of repeated shooting in easy-to-shoot areas and lack of viewpoints in difficult-to-shoot areas. High-quality reshoot angles are selected through comprehensive scoring to avoid post-reconstruction failure.
[0125] The second round of photography was conducted to reshoot and obtain an enhanced image set and its perspective quality labels.
[0126] In this embodiment, the specific steps for acquiring the enhanced image set are as follows:
[0127] The UAV's onboard flight control system flew sequentially according to the waypoints in the second round of photography plan. At each waypoint, it first adjusted to the target position and attitude, and then triggered the camera to capture an image for reshooting. During the acquisition process, the onboard computer synchronously recorded metadata, which included at least the UAV's position coordinates at the time of shooting (RTK / PPK calculated values), the camera's three-axis attitude angles (pitch angle, roll angle, yaw angle), lens focal length, focusing distance, exposure parameters (shutter speed, ISO, aperture), and solar altitude angle and azimuth angle.
[0128] All acquired images and their corresponding metadata are packaged into an enhanced image set, in which each image can be linked to its reshot viewpoint through an index.
[0129] Example 1 involves conducting an initial coarse survey and dividing the local slope into units. Then, for each unit, the perspective quality influencing factors such as occlusion, texture, shadow, and reflection are calculated. This allows for the generation of differentiated supplementary shooting perspectives for each unit. Without significantly increasing the number of flight sorties, this effectively supplements the perspective gaps in concave surfaces, overhanging edges, and areas with weak reflection and texture. This is beneficial for improving the geometric integrity of 3D mapping results for complex and steep slopes, effectively reducing the risk of data gaps in difficult-to-shoot areas caused by traditional fixed template-based acquisition, while also ensuring the timeliness and flight safety of emergency mapping.
[0130] Example 2:
[0131] This embodiment 2 provides an improved solution based on embodiment 1. Embodiment 1 solves the problem of missing viewpoints in difficult-to-capture areas due to fixed-angle template acquisition, enabling the effective acquisition of geometric information in complex areas such as depressions, overhangs, and reflections through differentiated reshoots. However, in practical application scenarios, such as under different lighting conditions, different slope wetness levels, and different camera parameter settings, the actual image quality still fluctuates significantly. Existing reconstruction methods tend to treat low-quality images and high-quality images equally, leading to insufficient stability in the accuracy and reliability judgment of 3D reconstruction, and situations where some areas of the model are deformed or cannot be measured. This embodiment introduces a viewpoint quality label generation and transmission mechanism based on embodiment 1, integrating the comprehensive score in the planning stage with indicators such as sharpness, exposure, and pose deviation in the actual acquisition to form a quality label that runs through weighted reconstruction and reliability calculation. This achieves the effect of further distinguishing the contribution of different image quality while preserving the integrity of the reshoots, further solving the defect of lacking local reliability partitioning and directional reshoot basis in the reconstruction results. The specific steps are as follows:
[0132] For each image in the enhanced image set, obtain the preferred score of its corresponding reshot angle, and use its preferred score directly as the preset quality score of the image.
[0133] It should be explained that the preset quality score reflects the theoretical evaluation of the viewpoint during the planning stage, which includes a comprehensive trade-off between occlusion gain, effective texture value, intersection angle complementarity, shadow risk, and reflection risk. Therefore, directly assigning this optimal score to the preset quality score of the corresponding image can achieve a direct mapping from the planned viewpoint quality to the actual image quality, avoiding the information gap caused by redesigning an independent quality evaluation system during the acquisition stage. At the same time, this definition also ensures the consistency of data throughout the entire process from acquisition planning to weighted reconstruction, enabling the reconstruction algorithm to accurately identify and prioritize the images that are considered to have the greatest information gain value during the planning stage.
[0134] Because the image quality may deviate from theoretical expectations due to factors such as airflow disturbances, automatic exposure adjustments, and temporary cloud cover during actual acquisition, it is necessary to correct the preset score based on measured data. This correction yields the image's viewpoint quality label, including:
[0135] For each image, the actual quality index is calculated in real time, forming a quality vector, and labeled as M=[m1, m2, ..., m n ];
[0136] It should be explained that the actual quality indicators include, but are not limited to, image sharpness evaluation value, effective coverage area ratio, overexposed pixel ratio, underexposed pixel ratio, and deviation angle between actual and planned attitude. Among them, the image sharpness evaluation value is calculated using the Laplacian gradient variance, and the higher the value, the sharper the image. The effective coverage area ratio is obtained by projecting local slope units (the units that the image is designed to cover) onto the image and counting the proportion of effective pixels in the projected area to the total number of pixels in the projected area. The overexposed pixel ratio represents the proportion of pixels with a gray value greater than 250 to the total number of pixels in the image. The underexposed pixel ratio represents the proportion of pixels with a gray value less than 5 to the total number of pixels in the image. The deviation angle between actual and planned attitude is obtained by calculating the norm of the Euler angle difference between the actual recorded attitude angle and the planned attitude angle.
[0137] It should be added that the actual quality indicators reflect the image acquisition quality in the second round of photography. In practical applications, those skilled in the art can add other indicators that can reflect the image acquisition quality according to specific task requirements, camera characteristics and environmental conditions, such as motion blur (based on image frequency domain analysis or optical flow estimation), signal-to-noise ratio (based on uniform region pixel variance), haze concentration (based on dark channel prior or contrast attenuation estimation), geometric distortion (based on the difference between calibration parameters and actual pose), edge sharpness retention rate, etc. These additional indicators can also define corresponding penalty factor functions and be integrated into the preset quality score correction process using the same multiplicative correction model, all of which fall within the scope of this invention.
[0138] For each actual quality indicator m i Define a corresponding penalty factor p i (m) i ), satisfying: when m i When the preset expected value is reached, p i =1, when m i When p deviates from the preset expected value i <1;
[0139] Specifically, the penalty factor can be a piecewise linear function or a sigmoid function. For example, for a sharpness index m1, if the expected threshold is mo1, then p i (m) i The value is the minimum of the ratios of 1 to the sharpness index and the expected threshold; for the overexposure ratio m3, a preset expected value mo3 is set, and the ratio of the overexposure ratio to the preset expected value is calculated, then p i (m) i () is the maximum value among the differences between the values 0 and 1 and the ratio.
[0140] It should be explained that the purpose of setting the penalty factor is to quantify the dynamic disturbances such as motion blur, exposure deviation, insufficient coverage, and pose error generated during the actual acquisition process into correction coefficients. This allows the preset quality score to be adjusted to a view quality label that better reflects the actual data quality. By adopting a piecewise linear or S-shaped form, the quality gradient is reflected in a smooth and continuous manner. This retains some useful information while avoiding the instability caused by threshold jumps. The above settings make the view quality label realistic and reliable, providing a reasonable weight basis for subsequent weighted reconstruction.
[0141] The corrected quality score is calculated based on the preset quality score of the image, and is specifically expressed as follows:
[0142]
[0143] Where Qc represents the corrected quality score, Qp represents the preset quality score, and n represents the actual number of quality indicators, i=1,…,n. The multiplicative model ensures that any indicator that fails to meet the standard will significantly reduce the final score.
[0144] The corrected quality score Qc is directly used as the viewpoint quality label of the image and stored as a numerical attribute associated with the image, such as the range [0, 1]. If Qc is less than 0 after calculation, it is truncated to 0, and if it is greater than 1, it is truncated to 1. Finally, the enhanced image set and its viewpoint quality label are output.
[0145] It should be added that if the view quality label of an image is lower than the preset lower limit, for example, if the view quality label is less than 0.3, the system can issue an alarm, indicating that the image quality is too poor and suggesting that it be re-acquired in subsequent flights; if it is not re-acquired, its weight in subsequent reconstruction will be extremely low and will have little impact on the final result.
[0146] The enhanced image set and its viewpoint quality labels are weighted and reconstructed to obtain the weighted reconstruction result.
[0147] In this embodiment, it should be specifically explained that the enhanced image set is input into the weighted reconstruction process to obtain the weighted reconstruction result, which specifically includes:
[0148] Feature points are extracted from all images in the enhanced image set, and sparse matching is performed on the same feature points found between different images based on the feature points. The view quality label of each image is used as the observation weight of each feature point on that image.
[0149] Specifically, before matching begins, feature points have been extracted from each image in the enhanced image set. Each feature point has a descriptor, which is a string of values representing the texture information around that point. The specific sparse matching steps are as follows:
[0150] For each feature point in an image, calculate the Euclidean distance or Hamming distance between its descriptor and the descriptors of all feature points in another image. Find the nearest point and the second nearest point. The nearest point is the most similar point. If the nearest distance divided by the second nearest distance is less than a preset threshold, which can be adjusted according to the actual data, the smaller the threshold, the more reliable the matching but the fewer the number of matches. It is usually set to 0.6~0.8. Then the pair of points is considered to be a reliable preliminary match. Otherwise, it is discarded. Distance matching can filter out erroneous matches caused by blurry or repetitive textures.
[0151] After initial matching, geometric constraints are used to filter the points. A common method is the random sampling consensus algorithm, which calculates the fundamental matrix or homography matrix between two images based on the epipolar geometry principle. It calculates the reprojection error of all matching point pairs under the geometric model, retains matching point pairs with errors less than a preset threshold as inliers, and removes outliers with large errors. This process is repeated multiple times, and the model with the most inliers is selected as the final geometric relationship. All inlier matching pairs that pass through the model are output. This step can effectively remove erroneous matches caused by changes in viewpoint, occlusion, or duplicate textures.
[0152] For each matched pair after filtering, record the indexes of the two images in which it is located;
[0153] When there are many images, it is necessary to jointly match the feature points of all images to form a matching chain across multiple images. The matching map method is usually adopted: if point A matches on image 1 and image 2, and the same point on image 2 matches on image 3, then the point is associated with images 1, 2, and 3. Finally, each 3D object point corresponds to a set of matching points across different images, and these matching points will jointly participate in bundle adjustment.
[0154] Once the matching of identical feature points between different images is completed, each 3D spatial point corresponds to several feature points on multiple images. Then, the camera pose and sparse point cloud are calculated to minimize the weighted sum of the reprojection errors of all feature points. The specific steps are as follows:
[0155] Suppose there are G images in total, each image has 6 exterior orientation parameters, including three position coordinates and three attitude angles. There are three-dimensional points, each of which will be observed on several images. Each observation corresponds to a feature point, and the observation weight is equal to the view quality label of the image.
[0156] For each observation, the reprojection error is defined as: the Euclidean distance between the theoretical pixel coordinates obtained by projecting the 3D points onto the image according to the camera pose and the actual extracted feature point coordinates.
[0157] The objective function is constructed using weighted bundle adjustment to minimize the weighted sum of squares of all observations. The objective function is specifically expressed as:
[0158]
[0159] Where E represents the total weighted error value, which is the objective function of optimization. The purpose of iterative optimization is to minimize E. g represents the image index, and g=1,…,G. u represents the three-dimensional point observation index, and u=1,…,U. Qcg represents the observation weight of the g-th image, and egu represents the reprojection error of the u-th observation on the g-th image.
[0160] It should be explained that the objective function constructed by using weighted bundle adjustment can minimize the sum of squared reprojection errors of all feature points. In this embodiment, the weight of each feature point observation in the adjustment is not based on traditional empirical values (such as equal weights) or fixed values preset according to GPS / IMU accuracy, but directly uses the generated view quality label. Through this weight setting, the reprojection error of high-quality images occupies a larger proportion in the objective function, and the optimization process will prioritize reducing the projection error on these images; the influence of low-quality images is automatically weakened, thereby avoiding the contamination of the reconstruction results by images with motion blur, overexposure, underexposure, or large attitude deviation.
[0161] The total weighted error is iterated. In each iteration, the objective function is expanded by first-order Taylor around the current estimate to obtain the linearized normal equation. The sparse linear equation system is solved using sparse matrix techniques. The camera parameters and 3D point coordinates are updated accordingly, and the new total error is calculated. The iteration continues until the error change is less than the threshold or the maximum number of iterations is reached.
[0162] After convergence, the precise camera pose of each image and the spatial coordinates of each 3D point are output, which constitute a sparse point cloud.
[0163] Furthermore, after obtaining the precise camera pose for each image through weighted bundle adjustment, the corresponding 3D spatial point is calculated for each pixel in the image, thus forming a dense point cloud. The sparse point cloud, dense point cloud, and camera pose are then output as the weighted reconstruction result. The specific steps include:
[0164] Based on the camera pose and overlap, select several suitable stereo pairs for each image. The selection principles include: the baseline length between the two images is moderate, the intersection angle is between 15° and 45°, and the viewpoint quality labels of both images are higher than a certain threshold (e.g., 0.3) to ensure that the quality of the images participating in the matching is not too poor.
[0165] For each selected stereo image pair, the matching cost weight is first calculated as follows: Take the viewpoint quality labels of the two images and calculate their geometric mean, which is the square root of the product of the two labels. This geometric mean will be used as the weight factor for the image pair in the subsequent matching process. For example, if one image has a label of 0.9 and the other has a label of 0.8, the matching cost weight is approximately 0.85; if one image has a label of 0.9 and the other has a label of only 0.3, the weight is approximately 0.52. The higher the weight, the more reliable the image pair is, and the greater its role in the matching.
[0166] It should be added that, during the selection of image pairs, each image pair is assigned a weight, which is jointly determined by the viewpoint quality labels of the two images. In this embodiment, the geometric mean of the quality labels of the two images (i.e., the square root of the product) is taken. This setting is because if an image has a low quality label due to blurring or exposure problems, the weight of all matching points involved in it will be reduced accordingly.
[0167] For pixel-by-pixel dense matching of two images in an image pair, a commonly used algorithm is semi-global matching.
[0168] For example, taking semi-global matching as an example, firstly, for each pixel in the left image, search for possible disparity values along the epipolar line in the right image, and calculate the original matching cost under each candidate disparity; the original matching cost is usually measured by mutual information, sum of absolute differences, or Census transform; after obtaining the original matching cost, multiply the original matching cost of the image pair by the weight of the image pair to obtain the weighted cost; in this way, the cost of high-quality image pairs is amplified as a whole, while the cost of low-quality image pairs is suppressed.
[0169] Cost aggregation is performed based on weighted costs. Specifically, the weighted costs can be dynamically calculated and accumulated along multiple directions (e.g., 8 or 16 directions) to obtain the aggregated cost. The disparity corresponding to the minimum aggregated cost for each pixel is then taken to obtain the initial disparity map.
[0170] The disparity map is checked for left-right consistency, and occlusion and mismatched points are removed. After post-processing such as median filtering and subpixel interpolation, an accurate disparity map is obtained.
[0171] Based on the disparity map and camera pose, the three-dimensional coordinates of each pixel are calculated through triangulation to generate a dense point cloud. When multiple image pairs cover the same area, multiple point clouds can be fused by weighted average (e.g., by image pair weight) to improve integrity and accuracy.
[0172] Based on the weighted reconstruction results, the mapping reliability of each local slope unit is calculated, and a reliability zoning map is generated.
[0173] In this embodiment, it should be specifically noted that the mapping reliability of each local slope unit is calculated based on the weighted reconstruction results, as detailed below:
[0174] All images involved in the reconstruction of this local slope unit are statistically analyzed and normalized to obtain the normalized image count value.
[0175] It should be explained that, here, participation in reconstruction means that feature points belonging to the unit can be extracted from the image, and these feature points have been successfully matched with other images and participated in bundle adjustment. However, since the view quality labels of each image are different, the number of images cannot be simply counted. Specifically, the view quality labels of each participating image can be accumulated.
[0176] For example, if a cell is covered by 5 images with quality labels of 0.9, 0.8, 0.7, 0.6, and 0.5, the weighted number of images is 0.9 + 0.8 + 0.7 + 0.6 + 0.5 = 3.5. This weighted number is divided by a preset baseline number, such as 4.0, and the result is limited to between 0 and 1 to obtain a normalized value. If the weighted number exceeds the baseline value, it is set to 1. The larger the value, the more high-quality images support the reconstruction of the cell.
[0177] The specific steps for calculating the normalized value of the ray intersection direction dispersion are as follows:
[0178] For each 3D point within the local slope unit, obtain the unit vector pointing from the camera's optical center to that point. The endpoints of these unit vectors fall on the unit sphere, with each vector corresponding to a point on the sphere. Calculate its covariance matrix and obtain three eigenvalues λ1≥λ2≥λ3. The dispersion of the ray direction can be measured by λ3 / λ1: the closer the ratio is to 1, the more uniform the ray direction distribution and the higher the reconstruction accuracy; the closer the ratio is to 0, the more collinear the ray directions and the poor the intersection conditions.
[0179] The dispersion is obtained by averaging the ratio of all points within the local slope unit. Since this value is naturally between 0 and 1, it can be directly used as a normalization value. The larger the value, the better the intersection conditions.
[0180] Calculating texture stability and normalizing the value specifically includes:
[0181] From the weighted reconstruction results, the projection area of the unit on each participating image is extracted, and the variance of the gray-level gradient within the area is obtained;
[0182] The coefficient of variation of the variance value between different images is calculated and obtained by dividing the standard deviation by the mean. The smaller the coefficient of variation, the more stable the texture is under different viewpoints and the higher the matching reliability.
[0183] The coefficient of variation is mapped to the 0~1 interval through Uk=1−min(1, coefficient of variation) to obtain the normalized value of texture stability. Texture stability reflects whether the texture of the local slope unit is consistent and rich in multiple images.
[0184] The calculation of the normalized reprojection residuals includes:
[0185] For all 3D points within the local slope unit, collect the reprojection residuals of all observations and calculate the root mean square error. This error is usually expressed in pixels. The calculated average residual is then used to calculate the average residual. A maximum allowable residual is preset, for example, 2.0 pixels. The normalized value of the reprojection residual is the minimum of the ratios of 1 to the average residual and the maximum residual.
[0186] Furthermore, the mapping reliability value of the local slope unit is calculated using a weighted summation model by normalizing the number of images, the dispersion of ray intersection direction, the texture stability, and the reprojection residual. Specifically, it is expressed as: Ck = α˙Nk + β˙Dk + γ˙Uk − δ˙Ek, where Nk is the normalized value of the number of images effectively participating in the reconstruction, Dk is the normalized value of the dispersion of ray intersection direction, Uk is the normalized value of the texture stability, Ek is the normalized value of the reprojection residual, and α, β, γ, and δ are preset weights. By default, equal weights can be used, i.e., α = β = γ = δ = 0.25. If the task particularly emphasizes geometric accuracy, β can be appropriately increased and δ can be decreased; if the texture conditions are poor, γ can be increased. The specific values of the weights can be calibrated based on measured data or expert experience, but the sum should be kept at 1 so that Ck naturally falls between 0 and 1.
[0187] Based on the confidence value of each local slope unit, the confidence value of each local slope unit is compared with a preset threshold, specifically including:
[0188] When Ck≥0.75, it indicates that the reconstruction quality of the area is excellent and can be directly used for geometric measurement and emergency interpretation, and the local slope unit is divided into a high confidence zone;
[0189] When 0.55≤Ck<0.75, it indicates that the area is basically usable, but there is some error or insufficient texture. The local slope unit is then classified as a medium confidence zone.
[0190] When Ck < 0.55, it indicates that the reconstruction quality of the area is poor, the geometric information is unreliable, there are data gaps or severe occlusion, and the local slope unit is classified as a low confidence area.
[0191] It should be added that the above thresholds can be adjusted according to the actual task requirements. For example, for high-precision monitoring of dangerous rocks, the high confidence threshold can be increased to 0.85.
[0192] Finally, the confidence level of each local slope unit is mapped to the corresponding area of the 3D model: different colors can be assigned to different levels (e.g., green for high confidence, yellow for medium confidence, and red for low confidence), generating a local confidence zoning map covering the entire survey area. This zoning map can be overlaid on the 3D model or output separately as a raster image or vector surface layer; users can use this map to intuitively determine which areas can be used directly and which areas need to be re-flyed.
[0193] A list of suggested reshoots is generated based on the credibility zoning map.
[0194] After completing the weighted reconstruction and credibility calculation, all the aforementioned intermediate results are integrated into a final mapping result that can be directly used by users, specifically including:
[0195] First, based on the dense point cloud in the weighted reconstruction results, standardized 3D mapping results are generated, including triangulation of the dense point cloud to obtain a textured 3D mesh model, regularization of the point cloud into a digital surface model (DSM), differential correction of the original image using the DSM to generate an orthophoto (DOM), and automatic extraction of contour lines and specified profile lines from the DSM to create topographic cross-section maps.
[0196] Then, the local confidence zoning map is overlaid on the 3D model or orthophoto, and different colors are assigned to the high, medium and low confidence zones and their semi-transparency is set to form a product that integrates surveying results and confidence indicators. At the same time, an independent confidence zoning vector layer is output for GIS analysis.
[0197] For low-confidence areas in the confidence partitioning map, an automatic list of targeted reshoot suggestions is generated: for each low-confidence unit, backtrack the highest-scoring but not yet successfully captured view in its candidate view set. If all candidate views have been tried, a new shooting angle is recommended based on the unit's geometric features and the direction of the missing ray. Each list includes the target area number, recommended shooting position, camera pose, estimated ground sampling distance, and expected confidence improvement.
[0198] Finally, this step outputs three-dimensional mapping results, local credibility zoning maps, and a list of suggested reshoots, which together constitute the final mapping results.
[0199] This embodiment collects actual quality indicators to correct the images formed in Embodiment 1, obtaining a viewpoint quality label for each image. This label is then used as the weight of the observation value throughout the entire process of weighted bundle adjustment and weighted dense matching. This significantly improves the geometric reliability, regional credibility visualization, and automation level of emergency re-collection of 3D mapping results for complex steep slopes without increasing the number of additional flight sorties.
[0200] Depend on Figure 2 It is evident that, compared to existing technologies, this invention demonstrates superior performance in terms of geometric integrity of complex slopes, reliability characterization of local mapping, automation level of image orientation reshooting, and stability of cross-scene mapping. Specifically, this invention improves the view coverage integrity and 3D reconstruction accuracy of concave surfaces, overhanging edges, and areas with weak reflectivity and texture in steep rock slopes by dividing local slope units through initial coarse surveying and calculating view quality influencing factors such as occlusion, texture, shadow, and reflection. Furthermore, it reduces the interference of motion blur, overexposure, pose deviation, shadow occlusion, and specular reflection on 3D mapping results by multiplicatively correcting the preset view score using actual quality indicators and integrating view quality labels throughout the entire process of weighted bundle adjustment and weighted dense matching. This results in a more stable, accurate, and emergency-relevant output of the 3D model, reliability zoning map, and reshoot suggestion list.
[0201] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the claimed invention.
Claims
1. A UAV mapping method using multi-angle photography, characterized in that, include: The first round of photography was conducted on the target survey area to obtain rough survey results; Based on the preliminary measurement results, local slope units were divided, and the perspective quality influence factor was calculated for each local slope unit. A candidate viewpoint set is constructed based on local slope units, and the optimal score of each candidate viewpoint in the set is calculated according to the viewpoint quality influence factor to generate a second round of photography plan. Reshoots were conducted according to the second round of the photography plan to obtain an enhanced image set and its perspective quality labels; The enhanced image set and its viewpoint quality labels are subjected to weighted reconstruction to obtain the weighted reconstruction result; Based on the weighted reconstruction results, the mapping reliability of each local slope unit is calculated, and a reliability zoning map is generated; A list of suggested reshoots is generated based on the credibility zoning map.
2. The UAV mapping method according to claim 1, characterized in that, Based on the preliminary survey results, the local slope surface was divided into units, and the perspective quality influence factor was calculated for each unit, including: Based on the preliminary survey results, the slope is divided into local slope units; For each local slope unit, calculate the viewing quality impact factors, including occlusion risk value, texture effective value, shadow risk value, and reflection risk value.
3. The UAV mapping method according to claim 2, characterized in that, Based on the preliminary survey results, the slope is divided into local slope units, including: For each point in the coarse measurement results, calculate the rate of change of normal and the rate of change of curvature; Each point is divided according to the rate of change of normal and the rate of change of curvature to obtain the preliminary slope unit; The initial slope units are merged and subdivided to form the smallest surveying decision unit, which is then used as the local slope unit.
4. The UAV mapping method according to claim 1, characterized in that, A candidate viewpoint set is constructed based on local slope units, and the optimal score for each candidate viewpoint in the set is calculated to generate a second-round photography plan, including: Using the geometric center of the local slope unit as the observation reference point, an initial candidate viewpoint is generated based on its principal normal vector, boundary range, and preset azimuth and pitch step sizes. Perform a field-of-view analysis on each initial candidate viewpoint to obtain a set of candidate viewpoints; Based on the perspective quality influence factor, a weighted summation model is used to calculate the optimal score for each candidate perspective. The scores of each candidate perspective are sorted in descending order, and several perspectives are selected as the reshoot perspectives for this unit, thereby generating the second round of photography plan.
5. The UAV mapping method according to claim 4, characterized in that, The generation of initial candidate viewpoints includes: Extract the geometric center of the local slope element as the observation reference point and calculate the principal normal vector of the local slope element; Using the observation reference point as the target point, an initial direction line pointing to the observation reference point is generated according to the preset azimuth and pitch step sizes. Each initial direction line corresponds to the attitude of an initial candidate viewpoint. The optimal shooting distance for each initial direction line is calculated based on the target ground sampling distance and camera intrinsic parameters. The observation reference point is then shifted in the opposite direction of the initial direction line to the optimal shooting distance, thereby obtaining the candidate shooting positions.
6. The UAV mapping method according to claim 4, characterized in that, For each initial candidate viewpoint direction, a viewpoint set is obtained through viewpoint analysis, including: The geometric center and boundary information of each local slope unit are mapped to the initial candidate view direction, forming a mapping relationship between the candidate view and one or more local slope units; For each initial candidate viewpoint direction, calculate the visibility of its corresponding local slope unit and identify the occluded parts; Candidate views that cannot cover any local slope unit are eliminated, and candidate views that cover at least one local slope unit are retained. The retained candidate viewpoints and the set of local slope units they cover constitute the final candidate viewpoint set.
7. The UAV mapping method according to claim 1, characterized in that, Reshoots were conducted according to the second round of the photography plan to obtain an enhanced image set and its viewpoint quality labels, including: According to each reshoot angle in the second round of photography plan, the drone is controlled to collect images and metadata, thereby forming an enhanced image set; The optimal score for each image corresponding to the reshoot angle is used as the preset quality score for that image. The actual quality index of the image is obtained, and the preset quality score is corrected accordingly to obtain the viewpoint quality label of the image.
8. The UAV mapping method according to claim 7, characterized in that, The preset quality score is corrected to obtain the viewpoint quality label for the image, including: Obtain the actual quality indicators of the image, construct a quality vector, and label it as M=[m1, m2, ..., m n ]; Define the penalty factor p corresponding to each actual quality indicator mi. i (m) i ), when m i When the preset expected value is reached, p i =1, otherwise p i <1; The corrected quality score is calculated based on the preset quality score of the image, and is specifically expressed as follows: Where Qc represents the corrected quality score, Qp represents the preset quality score, and n represents the actual number of quality indicators, i=1,…,n; The corrected quality score will be used as the viewpoint quality label for the image.
9. The UAV mapping method according to claim 1, characterized in that, The enhanced image set and its viewpoint quality labels are subjected to weighted reconstruction to obtain the weighted reconstruction result, including: Feature points are extracted from each image in the enhanced image set, and sparse matching is performed on the same feature points in different images; the viewpoint quality label of each image is used as the observation weight of each feature point on that image. A position objective function is constructed based on the observation weights of each feature point to calculate the camera pose and sparse point cloud. Based on the camera pose, the geometric mean of the viewpoint quality labels of the two images in the image pair is used as the matching cost weight to perform weighted dense matching and generate a dense point cloud. The sparse point cloud, dense point cloud, and camera pose are output as the weighted reconstruction result.
10. The UAV mapping method according to claim 1, characterized in that, Based on the weighted reconstruction results, the mapping reliability of each local slope unit is calculated, and a local reliability zoning map is generated, including: Normalized parameters are extracted for each local slope unit, including normalized values for image quantity, normalized values for ray intersection direction dispersion, normalized values for texture stability, and normalized values for reprojection residuals. The mapping confidence value Ck of the local slope unit is calculated using a weighted summation model, specifically expressed as: Ck=α˙Nk+β˙Dk+γ˙Uk−δ˙Ek, where Nk is the normalized value of the number of images effectively participating in the reconstruction, Dk is the normalized value of the ray intersection direction dispersion, Uk is the normalized value of the texture stability, Ek is the normalized value of the reprojection residual, and α, β, γ, and δ are preset weights; The confidence values of each local slope unit are compared with preset thresholds to divide the area into high confidence, medium confidence and low confidence zones. The division results are then mapped to the corresponding areas of the 3D model or orthophoto to generate a confidence zoning map.
