Campus vegetation coverage measurement method based on unmanned aerial vehicle aerial image semantic segmentation
By establishing horizontal area units and projection relationships in the campus vegetation coverage measurement, performing geometric and recognition scale gating, grouping and fusing images, and determining acceptable and unknown areas, the problem of inaccurate vegetation area calculation in existing technologies has been solved, and accurate vegetation coverage measurement and result traceability have been achieved.
Patent Information
- Application Number
- CN202611465734.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-20
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies for calculating campus vegetation coverage suffer from problems such as differences between aerial photography scale and imaging, accumulation of weights from repeated observations, and inconsistent handling of occluded areas, resulting in inaccurate vegetation area calculations and difficulty in distinguishing between observed and unobserved areas.
By establishing horizontal area units and the projection relationship of the target's upper surface, geometric and identification scale gating is implemented. Groups are formed according to direction and imaging conditions, representative images are selected for fusion, and the acceptable area is determined based on the fusion category components and inter-group differences. Unknown causes are recorded and re-sampled, and vegetation coverage is recalculated.
It achieves unified horizontal area measurement, suppresses the impact of repeated observations, retains unknown areas and their sources, supports the traceability and comparison of results in different campus areas, and improves the accuracy and reliability of vegetation coverage measurement.
Smart Images

Figure CN123181542A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of UAV remote sensing image processing and vegetation coverage measurement, and particularly to a method for measuring campus vegetation coverage based on semantic segmentation of UAV aerial images. Background Technology
[0002] Campus vegetation surveys involve the distribution of grasslands, shrubs, tree canopies, and features around roads and buildings. Using drones to collect overlapping aerial images and then obtaining feature distribution through photogrammetry and image classification is a technical approach for conducting regional surveys. Manual visual estimation relies on surveyors' judgment of boundaries and occluded areas; directly identifying vegetation after stitching together aerial images also requires processing image scale, local lighting, and perspective differences.
[0003] When campus buildings, tree canopies, and ground features occlude each other, similar image locations in multiple views may correspond to surfaces at different heights. Without a unified set of observation objects and the actual resolution required for identification, the classification of bare soil, leaf litter, and vegetation may be affected by occlusion, shadows, and loss of detail. An increased number of overlapping photographs may also cause repeated observations in similar directions to carry more weight in the fusion process, rather than providing adequate support for independent observations.
[0004] Regional coverage calculation also requires a clear definition of the area measurement method. Directly accumulating the area of sloping surfaces or repeatedly counting the same horizontal location will cause a discrepancy between the vegetation area and the horizontal area of the surveyed area; excluding areas that are difficult to observe or cannot be reliably identified before calculating the proportion will change the denominator. Outputting only a single coverage value makes it difficult to distinguish between areas that have been supported by observations and areas that still need to be measured, and it is also inconvenient to arrange supplementary collection based on unknown reasons.
[0005] Therefore, there is a need for a campus vegetation coverage measurement method based on semantic segmentation of UAV aerial images that can overcome the shortcomings of the existing technologies. Summary of the Invention
[0006] One objective of this invention is to propose a method for calculating campus vegetation coverage based on semantic segmentation of UAV aerial images. Addressing issues in existing technologies such as differences between aerial scale and imaging, cumulative weighting of repeated observations, and inconsistent handling of occluded areas, this invention proposes a method that establishes horizontal area units and projection relationships of the target's upper surface within a fixed survey area. It then applies geometric and recognition scale gating to the original views, groups images by direction and imaging conditions, selects representative images for fusion, and distinguishes between acceptable and unknown areas based on group retention sensitivity, inter-group discrepancies, and fusion confidence conditions. Finally, it arranges supplementary sampling and recalculation based on the unknown causes. This invention offers the technical advantages of unifying the horizontal area measurement standard, suppressing the dominance of repeated observations on the fusion results, preserving unknown areas and their sources, and supporting the traceability and comparison of results across different campus areas.
[0007] This invention provides a method for calculating campus vegetation coverage based on semantic segmentation of UAV aerial images, including: S1, acquiring original overlapping color images of the campus and camera information, reconstructing the campus surface by combining scale control information, and establishing horizontal area units with common physical dimensions and their projection relationship with the original view within a fixed survey polygon; S2, performing occlusion and geometric consistency checks based on the projection relationship, and performing image quality gating according to a common recognition scale to obtain qualified observations for each horizontal area unit; S3, using the trained semantic segmentation model to generate probabilities for qualified observations of vegetation, bare soil, leaf litter, and other non-vegetation categories, grouping them according to observation direction and imaging conditions, selecting a representative image for each group, and then... S4. Based on the spatial correspondence of the marked surfaces, perform inter-group normalization fusion to obtain the fusion category component; S5. Based on the fusion category component, effective group support, and the removal of vegetation component changes and inter-group differences representing the observations, determine the acceptable vegetation units, acceptable non-vegetation units, and unknown units; S6. S7. Summarize the determination results according to the horizontal union area of the horizontal area units, and output the confirmed vegetation percentage, unknown percentage, and unknown attribution range with the total area of the fixed survey polygon as the denominator, and record the unknown reasons; S8. Based on the unknown reasons, screen the supplementary sampling poses that can improve the observation support, sort the unknown horizontal areas that can be processed per unit of estimated time, and re-execute steps S2 to S5 using the supplementary images to update the measurement results.
[0008] Optionally, S1 includes: acquiring original overlapping color images, camera intrinsic parameters and position and attitude information during the same survey period, using ground control point coordinates or known physical length as scale control information, and reconstructing the campus surface with physical scale by solving the camera pose through image matching and bundle adjustment.
[0009] In a unified plane coordinate system, the survey polygon is fixed in advance, the required lower limit of the width of the ground features and the side length of the horizontal area unit are identified, and the same lower limit of the width of the ground features and the side length of the unit are used in different campus areas. The boundary units are cut into the survey polygon so that the internal units of each unit do not overlap and the union is equal to the survey polygon.
[0010] The campus surface that is first touched vertically within the unit is determined as the target upper surface. The same horizontal position is measured only once. The upper surfaces of buildings and tree canopies are both included in the determination. Ground features located below them are not measured repeatedly. Units whose target upper surface cannot be determined are retained as unknown units.
[0011] A projection relationship is established using camera intrinsic parameters, camera pose, and the three-dimensional coordinates of the target's upper surface.
[0012] Optionally, S2 includes: checking visibility with a ray from the camera center to the upper surface of the target, discarding views where the ray intersects with other surfaces, and discarding views where the difference between the depth corresponding to the projection position and the depth of the upper surface of the target exceeds the depth tolerance, or where the reprojection residual exceeds the residual threshold.
[0013] Based on the local projection mapping from the upper surface of the target to the image plane, the first of the corresponding lengths of the unit pixel along the two main horizontal directions is calculated as the effective surface sampling distance;
[0014] The effective surface sampling distance upper limit is determined by a pre-fixed lower limit of ground feature width and the minimum number of pixels required for identification, and qualified observations are screened by combining the lower limit of sharpness and the upper limit of the proportion of underexposed and overexposed pixels;
[0015] Using validation samples that are independent of the survey area and have ground feature annotations and geometric references, the depth tolerance, residual threshold, minimum number of pixels, lower limit of sharpness, and upper limit of exposure ratio are determined. A parameter combination that simultaneously meets the preset geometric error tolerance and vegetation merging category identification error tolerance is selected and fixedly used among the areas to be compared. The entire horizontal area covered by the projection of the upper surface of the unit target is gated. Only the view that completely covers the unit and whose entire projection area is gated by geometry and imaging is considered a qualified observation. Local effective observations are not extrapolated to whole unit observations.
[0016] Cells for which complete and valid observational support has not been obtained are retained as unknown cells.
[0017] Optionally, S3 includes: generating multi-class probability per pixel on the original view; mapping the class probability corresponding to the upper surface of the same target to horizontal area units through projection relationship; taking the complete horizontal range of the unit as the common calculation range; superimposing the horizontal projection boundary of the mapped pixels into horizontal patches that do not overlap and are covered by the unit internally; retaining the class probability of each patch; and multiplying the class probability by the area of the patch, summing them, and then dividing by the horizontal area of the unit to obtain the class components of a single image.
[0018] Limited observation groups were divided according to pre-fixed ranges of line of sight azimuth, top angle, effective surface sampling distance, and exposure status.
[0019] In each group, a representative image is selected by comparing the images in order of increasing reprojection residual, decreasing sharpness, and increasing effective surface sampling distance. If the indicators are the same, the image number is selected.
[0020] Valid groups containing representative images are assigned the same weight and the sum of the weights between groups is equal. The class probabilities of representative images are fused on the same horizontal area, and the unit fused class component is obtained by weighted average according to the area of the area. The group weight is not increased by the number of images within the group.
[0021] In each horizontal area and unit level, all vegetation category components are added together to form a vegetation merged category component, and bare soil, leaf litter layer and other non-vegetation category components are added together to form a non-vegetation merged category component.
[0022] Furthermore, the semantic segmentation model obtained through training adopts physical area consistency training: acquire overlapping training images with multiple types of pixel annotations and corresponding relationships on the upper surface of the same target, project the predicted vegetation probability and vegetation annotation of each training view onto the common visible horizontal area respectively, weight and sum according to the horizontal area corresponding to the pixel and divide by the area of the common visible horizontal area to obtain the predicted vegetation area ratio and the labeled vegetation area ratio.
[0023] The training objective consists of multi-class segmentation supervision loss, the difference between the predicted vegetation area ratio and the labeled vegetation area ratio, and the difference between the predicted vegetation area ratios between corresponding training views, excluding occluded or geometrically invalid regions.
[0024] Using non-negative loss weights and multi-class segmentation supervision loss weights greater than zero, loss weights are selected and model parameters are updated through independent validation samples. The trained model is used for class probability generation in step S3.
[0025] Furthermore, the line-of-sight azimuth interval, the top-view interval, and the effective surface sampling distance interval adopt the interval boundaries fixed before the survey. Except for the last interval which includes the right endpoint, all intervals are left-closed and right-open. The exposure status is divided into fixed two-dimensional intervals based on the proportion of underexposed and overexposed pixels. The boundary assignment rules remain the same before and after the resampling.
[0026] When a supplementary image falls into an existing observation group, the representative image is replaced only when the results of the hierarchical comparison change. When it falls into a new observation group, a new representative image is added. Then, the same inter-group weights are reassigned according to the number of valid groups, and the number and corresponding quality index of the representative image before and after replacement are saved.
[0027] Optionally, S4 includes: for a horizontal area cell containing at least two valid groups, successively deleting the representative observation of one group, re-normalizing and merging the remaining groups, calculating the absolute value of the difference between the vegetation merged category component obtained each time and the vegetation merged category component obtained by merging all groups, taking the peak value among all absolute differences as the component sensitivity, multiplying the component sensitivity by the horizontal area of the cell as the area contribution sensitivity, and calculating the range of the vegetation merged category components of each group.
[0028] Under the conditions that the target surface geometry is valid, the number of valid groups reaches the preset minimum number of groups, the two sensitivities do not exceed the corresponding thresholds, and the difference between vegetation components between groups does not exceed the divergence threshold, if the fused vegetation merging category components of all horizontal areas within the unit reach the acceptance threshold, it is determined to be an acceptable vegetation unit; if the fused non-vegetation merging category components of all horizontal areas reach the acceptance threshold, it is determined to be an acceptable non-vegetation unit. Other cases where complete valid support cannot be obtained, where vegetation and non-vegetation are mixed between areas, or where the above acceptance conditions are not met are all determined to be unknown units.
[0029] The minimum number of groups is not less than two, the acceptance threshold is greater than one-half and not greater than one, and each threshold is determined based on the parameter combination that meets the upper limit of the false judgment rate of the vegetation merging category in the independently labeled verification samples, and is fixedly used among the areas to be compared.
[0030] Disagreements between vegetation subclasses are only considered in the acceptance decision through the merged vegetation component, and do not trigger unknown decisions independently.
[0031] Optionally, S5 includes: calculating the horizontal union area for the acceptable vegetation unit, the acceptable non-vegetation unit, and the unknown unit respectively; only units whose entire horizontal area is accepted as the same union category are included in the corresponding acceptable area, and the remaining units are included in the unknown area; the average category probability of the unit is not directly used as the confirmed physical area share; the sum of the three areas is equal to the total area of the pre-fixed survey polygon.
[0032] Divide the acceptable vegetation area and the unknown area by the total area of the survey polygon to obtain the confirmed vegetation percentage and the unknown percentage. Output the unknown attribution range with the confirmed vegetation percentage as the lower endpoint and the sum of the confirmed vegetation percentage and the unknown percentage as the upper endpoint, and simultaneously output the range description based on the condition that the accepted category is correctly determined.
[0033] Establish a ledger that includes unit location, target upper surface, source image number, observation group, category components and judgment criteria, and record the actual triggering reasons for unknown units such as geometric invalidity, target occlusion, insufficient actual resolution, unqualified exposure or sharpness, insufficient support of effective groups, insufficient fusion confidence, mixed categories within the unit, and sensitive conflicts related to vegetation area.
[0034] The unknown area is not subtracted from the denominator. When the unknown area is zero, the complete single-value coverage is output.
[0035] Furthermore, when outputting measurement results for different campus areas, the survey polygon version, unit side length, lower limit of ground feature width, observation gating parameters, observation group boundaries, acceptance judgment parameters, and semantic segmentation model version are all saved together.
[0036] Only results using the same identification scale and processing parameters are included in the same set of regional comparison data. Scene records of illumination, maintenance frequency and personnel activities are associated with unit location, and unknown proportions, unknown attribution ranges and range descriptions are retained along with the regional comparison data.
[0037] Optionally, S6 includes: generating candidate supplementary sampling poses that meet flight safety distance constraints for unknown units; predicting the visibility of candidate poses to unknown units, effective surface sampling distance, and observation group to which they belong based on campus surface and camera parameters; filtering candidate poses that provide new observation directions for occlusion or insufficient support for effective groups; filtering candidate poses that meet common recognition scales for effective surface sampling distances for insufficient actual resolution; filtering candidate poses that can establish common feature correspondences with existing images and form intersection observations for geometrically invalid images; filtering candidate poses that can pass the corresponding gating for imaging settings for exposure or sharpness defects; and filtering candidate poses for new observation groups for insufficient fusion confidence or vegetation area sensitive conflicts.
[0038] For intra-cell merging category mixing, the expected processable area is only included when existing observations have imaging or geometric defects and candidate poses are expected to eliminate the corresponding defects. Spatial mixing cells that have been confirmed by complete and valid observations remain unknown, and repeated image mixing cells are not counted as processable gains.
[0039] The expected processable area of the unit horizontal union area that is expected to improve the corresponding unknown cause and is gated is used as the expected processable area of the candidate pose. It is then sorted by the expected time required for flight movement and data acquisition, and the covered expected processable areas are deduplicated after the candidate pose is selected.
[0040] If the gating results are not changed within the existing observation group, nor are they replaced with repeated observations of representative images with better geometric or imaging quality, the expected processable area is recorded as zero.
[0041] After the supplementary images are collected, they are geometrically registered with the existing images. When the campus surface needs to be repaired, the geometric reconstruction and projection relationship are jointly updated. Under the condition that the survey polygons and unit divisions remain fixed, the gating, grouping and fusion, judgment and calculation are carried out again. Units that are abnormal in the supplementary images or still do not meet the acceptance conditions continue to be retained as unknown units.
[0042] The beneficial effects of this invention are:
[0043] 1. By reconstructing the campus surface under physical scale constraints, projecting the target surface onto the target surface, and gating the geometry and imaging quality, we can ensure that category evidence corresponds to the same target surface and a common identification scale. By combining multi-class segmentation of vegetation, bare soil, leaf litter, and other non-vegetation features, we can provide corresponding processing mechanisms to reduce misaligned projections and feature confusion.
[0044] 2. By selecting a representative image from each group and normalizing and fusing them between groups, the number of duplicate photos in the same group does not directly increase the group weight; by using the changes in vegetation components after group deletion and the differences in components between groups, the conflict between observation dominance and vegetation area is identified, and areas that do not meet the acceptance criteria are retained as unknown areas.
[0045] 3. By using fixed survey polygons, horizontal union area calculation, and retention of unknown areas, the confirmed and unknown proportions of vegetation share a fixed denominator; by recording unknown causes, selecting targeted supplementary sampling poses, and re-gating and fusing, a traceable supplementary measurement and update chain is formed, providing data with unknown range descriptions for regional comparison and scene factor correlation analysis. Attached Figure Description
[0046] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:
[0047] Figure 1 This is a flowchart illustrating the overall process of the campus vegetation coverage measurement method based on semantic segmentation of UAV aerial images according to the present invention.
[0048] Figure 2 This is a flowchart of the grouped representative observation fusion in S3 of this invention. Detailed Implementation
[0049] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0050] refer to Figures 1-2A method for calculating campus vegetation coverage based on semantic segmentation of UAV aerial images includes: S1. Acquiring original overlapping color images of the campus and camera information, reconstructing the campus surface by combining scale control information, and establishing horizontal area units with common physical dimensions and their projection relationship with the original view within a fixed survey polygon; S2. Performing occlusion and geometric consistency checks based on the projection relationship, and performing image quality gating according to a common recognition scale to obtain qualified observations for each horizontal area unit; S3. Using the trained semantic segmentation model, generating probabilities for qualified observations of vegetation, bare soil, leaf litter, and other non-vegetation categories, grouping them according to observation direction and imaging conditions, selecting a representative image for each group, and calculating the target upper surface... S4. Based on the spatial correspondence of the surfaces, the groups are normalized and fused to obtain the fused category components; S5. Based on the fused category components, effective group support, and the removal of vegetation component changes and inter-group differences in vegetation components that represent the observations, the acceptable vegetation units, acceptable non-vegetation units, and unknown units are determined; S6. The determination results are summarized according to the horizontal union area of the horizontal area units, and the confirmed vegetation percentage, unknown percentage, and unknown attribution range are output with the total area of the fixed survey polygon as the denominator, and the unknown reasons are recorded; S7. Based on the unknown reasons, the supplementary sampling poses that can improve the observation support are selected, and the supplementary sampling is sorted according to the unknown horizontal area that can be processed per unit of estimated time. Steps S2 to S5 are re-executed using the supplementary sampling images to update the measurement results.
[0051] In this specific embodiment, S1 includes:
[0052] This specific implementation method uses a campus vegetation measurement workstation to read the original color images collected by drones. Pre-defined teaching areas, road areas, and green areas within the campus are used as the same batch of survey objects. Data collection is completed along the main and intersecting flight paths within the same survey period. Supplementary data collection is restricted to this period and only under conditions of no surface changes such as pruning or construction. If changes in ground features occur, a new survey batch is established to prevent the mixing of tree canopy or ground observations from different time periods onto the same target surface. This specific implementation method sets the lower limit of ground feature width to 0.20 meters and the side length of horizontal area units to 0.50 meters. These two parameters are fixed across the campus areas to be compared. The actual collection height is determined based on the subsequent effective surface sampling distance gating results.
[0053] The workstation establishes an image registration table indexed by the original image number, saving the shooting time, image width and height, camera number, focal length, principal point, radial and tangential distortion coefficients, exposure time, aperture, ISO, and initial position and attitude values. It retains the original pixels and does not use the orthophoto stitched image as semantic segmentation input. In this embodiment, the overlapping flight path is set with a forward overlap rate of 80% and a lateral overlap rate of 70%. Vertical top view and cross-oblique view are collected. The scale is established using ground control points distributed around and inside the survey area. The coordinates of the control points are provided by ground measurement records in the same measurement coordinate system. An independent checkpoint is reserved to check the reconstruction deviation. The checkpoint is not used for adjustment constraints at the same time.
[0054] The geometric processing program extracts scale-invariant local features from the original image, establishes candidate matches with a descriptor nearest neighbor distance ratio not exceeding 0.75, and eliminates matches that do not meet epipolar constraints through random sampling consistency estimation of the fundamental matrix. The upper limit of the initial screening image point error is set to 2 pixels. The multi-view corresponding points that pass the test are triangulated into sparse 3D points. The sum of the squared distances between the image plane projection position of the corresponding point and the measured image point is used as the image residual term. The sum of the squares of the ground control point coordinate residuals divided by their measurement standard deviation is used as the scale constraint term. The camera pose and 3D points are jointly optimized. The image residuals are also divided by the image point positioning standard deviation before participating in the optimization to avoid directly adding meters and pixels. Iterative least squares is used to solve until the decrease ratio of the normalization target between two adjacent normalizations is less than one millionth or reaches 100 iterations.
[0055] The workstation uses the adjustment results to perform multi-view stereo matching, saves the depth map, validity mask and supporting view number of each image, backprojects the consistent depth into a point cloud with physical scale and forms a triangular mesh surface; writes the ground control point residual, independent checkpoint error, triangle vertex coordinates and the number of supporting observations into the geometric record. A single triangle must have matching support from at least three images and pass the independent geometric tolerance described in S2 to participate in the reliable target upper surface determination. Unmatched holes are not filled into a known surface according to the surrounding ground height. Multi-view correspondence failures caused by tree canopy swings are retained in the geometric validity mask.
[0056] Within a unified metric plane coordinate system, the workstation fixes the vertex coordinates, hole boundaries, and versions of the survey polygons. A square grid is laid out around the common origin. Edge cells are clipped by finding the intersection of the polygons, retaining only intersections with areas greater than zero. The clipping results are not re-expanded or rounded. The common boundaries of the internal grids are uniquely assigned by row and column numbers, and the boundary area itself is zero. Each cell does not overlap with the others, and its horizontal union is equal to the survey polygon. The sum of the areas of the directed triangles is calculated by sorting the polygon vertices and subtracting the hole area. The result is stored in square meters, and the cell and its area are retained even if subsequent observations are missing.
[0057] For each horizontal location, the program intersects the triangulation network vertically from top to bottom, selects the valid intersection point with the largest height, establishes a piecewise mapping of the target's upper surface, and clips the triangle projection boundary where the upper surface switch occurs into the corresponding horizontal unit. Regardless of whether there is a roof, tree canopy, grass under a tree, or facade at the same horizontal location, only the first contacting upper surface is measured once. Both building upper surfaces and tree canopy upper surfaces participate in the classification, and the ground features below them are not measured repeatedly. Vertical facades do not increase the horizontal area. If any positive area of a unit has no reliable intersection point or it cannot be determined whether there is a higher surface, the geometry is marked as invalid and the entire unit is retained as unknown. It is forbidden to extrapolate the part with a surface to the missing part.
[0058] For the effective target surface, the three-dimensional points are first transformed to the camera coordinate system by the rotation and translation obtained from the adjustment. The horizontal and vertical coordinates are divided by the positive optical axis depth, and then mapped to the original image pixel coordinates according to the camera radial and tangential distortion model, focal length, and principal point. The projection calculation uses the same distortion model as the camera calibration. Areas that fall behind the camera, outside the image boundary, or have no back-projection intersection are recorded as unsupported. The original image pixels are read directly without using the distortion-free image coordinates. The pixel footprint is back-projected to the same target surface through the original pixel boundary and then obtained by horizontal projection.
[0059] The workstation establishes a unit geometry table, indexed by survey batch, unit row and column number, and cut component number, and saves horizontal polygons, horizontal areas, target triangle numbers, surface height ranges, projection relationships, valid geometric markers, and geometric versions. The image registration form and the unit geometry table are handed over to S2 together. In this implementation, the parameter records are all searched using the processing parameter version. Subsequent verification shows that the selected gating, grouping, and admission parameters are attached to the same version. If the corresponding version is missing, automatic admission is stopped and the unknown is retained. The apparent coverage of a certain area is not improved by temporarily changing the parameters of a certain area.
[0060] In this specific embodiment, S2 includes:
[0061] The observation screening program reads the unit geometry table, camera pose, projection relationship, and original image of S1. Based on the projection relationship, it performs occlusion and geometric consistency checks. For units with valid geometric upper surface of the target, candidate observation records are established frame by frame, recording the unit number, image number, projection area, depth consistency, reprojection residual, effective surface sampling distance, sharpness, and exposure ratio. Only when the entire target upper surface projection of a complete unit is within the effective range of the image is it entered into the gating process. Local defects caused by the image edge still render the image invalid for the entire unit. Geometrically invalid units are directly passed as unknown, and adjacent objects captured by other views are not used to replace the target.
[0062] The ray is determined by the camera center and the target surface, and the first intersection point is calculated. The first intersection point is obtained by using the triangulation accelerated index. If the first intersection point is not the upper surface to which the target triangle belongs, it is judged as occlusion. For the visible area, the optical axis depth of the target 3D point in the camera coordinate system is compared with the optical axis depth of the original view independent stereo matching depth map given by the corresponding pixel. The depth re-rendered from the same triangulation is not regarded as independent consistency evidence. If the absolute value of the difference between the two exceeds the depth tolerance or either depth is invalid, it is discarded. When the depth interpolation encounters the foreground and background boundaries, it is not averaged across the boundaries.
[0063] The reprojection residual is calculated from the corresponding points of the multi-view support triangle of the target triangle. It is the Euclidean distance between the projected position of the triangulated 3D point and the measured image point, in pixels. Each triangle uses the peak value of the support point residual. Areas without sufficient corresponding points are not assigned zero residual, and the marked geometry is invalid. The residual index of the unit observation is the peak value of all covered triangles, and the depth difference index is the maximum absolute difference of the covered area, which is used for comparison between the current gated and S3 representative images.
[0064] The program calculates the local projection Jacobian matrix from horizontal metric coordinates to pixel coordinates for each patch of the target's upper surface, and performs singular value decomposition on this second-order matrix, with both singular values expressed in pixels per meter; in this implementation, the effective surface sampling distance is written as... ,in This represents the length of the first-valued single pixel along the two principal horizontal directions at the current local location, in meters per pixel. It is calculated by local projection and must be positive. This represents the minimum of the two singular values of the projection Jacobian matrix, in pixels per meter. It is obtained from camera parameters and target triangle geometry and must be greater than zero. If the matrix singularity or numerical calculation cannot provide a valid lower bound, the observation is judged as unqualified. The upper bound of the local sampling distance of the whole domain is compared with the upper limit of the scale. If the upper bound exceeds the upper limit, the observation is discarded. The unit record takes the upper bound of the local sampling distance of the whole domain. The actual resolution of all tilted surfaces is directly obtained by not dividing the camera center height by the focal length.
[0065] The effective upper limit of the surface sampling distance is determined by dividing the lower limit of the fixed ground feature width by the minimum number of pixels selected for verification. In this implementation, the candidate values for the minimum number of pixels are set to 4, 5, 6, and 8. When the selected value is 5, the upper limit is 0.04 meters per pixel. The grayscale is calculated according to the red, green, and blue channel coefficients. The program forms grayscale values from 0 to 255 in the original image according to the red, green, and blue channel coefficients of 0.299, 0.587, and 0.114. The variance of the sum of the horizontal and vertical second-order differences is used as the sharpness. The calculation is fixed within a 15-pixel square neighborhood at the center of each projected pixel. Pixels with abnormal exposure are screened according to the grayscale threshold comparison. Underexposure and overexposure are defined as grayscale values not greater than 5 and not less than 250, respectively. Their proportion is obtained by counting the effective pixels in the neighborhood. When the neighborhood is missing, the local area is not gated. The higher the sharpness, the clearer the image.
[0066] To ensure that the global gating has a defined range, the program overlays the target triangle projection boundary, the original pixel boundary, the depth map validity boundary, and the horizontal back-projection boundary of the occlusion contour to generate the gating check area. Pixel probability and neighborhood quality index are taken as constant values within each pixel footprint. Occlusion is judged by visible polygon clipping. Depth difference and projection derivative are estimated using interval boundaries within the geometric area. If it cannot be proven that the entire area passes the threshold, recursively subdivide into quarters. If it cannot be proven to pass even after subdivision to a horizontal side length of 0.002 meters, it is retained as a failure. Complete cells must be seamlessly covered by the passed areas. Any positive area failure, hole, or unresolved area will cause the observation to be rejected. Areas with small values are not directly deleted, nor are they represented by the center sample to represent the entire area.
[0067] The gating parameters are determined by an independent verification site before the survey. The verification samples include grassland, shrubs, tree canopy, bare soil, leaf litter, roofs, and hardened pavement. They are equipped with pixel category labels, feature width measurements, and independent geometric references. Training and verification are conducted separately for each site to avoid the same target appearing in both. In this implementation, the 95th percentile of the horizontal checkpoint error is preset to be no more than 0.03 meters, and the error ratio of the horizontal area-weighted identification of merged vegetation categories is no more than 5%. The verification label will merge all vegetation subcategories and count the errors. Vegetated and non-vegetated reference areas are required to meet this error tolerance separately to avoid the majority class masking the error of another class.
[0068] On the same frozen segmentation model, depth tolerances of 0.03, 0.05, and 0.08 meters, residual thresholds of 0.5, 1.0, and 1.5 pixels, the aforementioned minimum pixel count candidates, and resolution lower limits of 60, 100, and 140, and two exposure ratio upper limits of 0.01, 0.03, and 0.05 are enumerated. Parameter combinations are filtered by comparing verification errors, retaining only combinations that simultaneously meet the preset geometric and recognition error tolerances and have effective verification support in both merged categories. Among these, the combination with the largest horizontal area of the complete unit that passes is selected first. If the areas are the same, the selection is based on the parameter enumeration order. Empty candidate sets are discontinued from using the model for formal acceptance and are retrained or verification samples are collected. These values are candidate settings for this implementation method. The actual values used are written into the gating parameter record by the above verification process, and it is not claimed that any candidate combination will necessarily pass.
[0069] The workstation binds and saves the selected combination, verification sample batch, error calculation results, camera calibration version, and segmentation model version. The area to be compared and the supplementary images read the same combination. When the model or calibration changes, a new parameter version is created and the area to be compared is recalculated. The qualified observation records save the worst sharpness of the entire field, the peak values of the two exposure ratios, the peak value of the residual, and the upper limit of the effective surface sampling distance for S3 grouping and hierarchical comparison. The failure records retain the actual reasons such as target occlusion, geometric invalidity, insufficient actual resolution, and exposure or sharpness failure. Units that have not obtained complete and effective observation support are kept unknown and the records are transmitted to S5.
[0070] In this specific embodiment, S3 includes:
[0071] The semantic processing program reads the qualified observation records of S2 and performs pixel-by-pixel inference on the original images from which they originated. Before the formal survey, the workstation trains a convolutional semantic segmentation network with skip connections between the encoder and decoder. In this implementation, five downsampling levels are set up, with the number of channels being 32, 64, 128, 256, and 512 respectively. Each layer uses two 3-pixel square convolutions and nonlinear activation. Adjacent coding layers are downsampled by 2 times. The decoder upsamples layer by layer and concatenates with the corresponding coding features. Six channels are output with single-pixel convolution. The category order is fixed as grassland, shrubs, canopy, bare soil, leaf litter, and other non-vegetation. Roofs, roads, water bodies, etc. are labeled in other non-vegetation channels according to the meaning of the above surface.
[0072] Training images are taken from labeled sites separate from the campus space to be tested. The images are divided into 70% training, 15% parameter selection and verification, and 15% archive check according to the site. The same target and the same acquisition sequence corresponding to different views must not be in different sets. The annotators draw six types of labels on the original pixels. When the leaves are still attached to the canopy, they are considered vegetation. The fallen leaf layer on the ground is considered the leaf layer. The shadow is labeled according to the actual surface category it supports. Pixels whose category cannot be confirmed from the field record and the corresponding view are set to ignore. The shadow itself is not used as the vegetation category. Each image retains the camera model, the correspondence between the target surface and the occlusion mask. Label verification and geometric verification are completed before generating training pairs.
[0073] The input is a 512-pixel square three-channel image block. The pixel value is divided by 255 and then fed into the network. Training uses synchronous rotation, flipping, and color perturbation, and geometric augmentation updates the pixel coordinates and mask simultaneously. The network output performs numerically stable normalized exponent operations on the six channels. That is, first subtract the channel response with the largest value for the same pixel and then take the exponent. Each exponent is divided by the sum of the exponents of the six channels to obtain a non-negative probability that sums to one. Inference processes the original image with a sliding window with a stride of 384 pixels. Overlapping predictions are averaged equally at the same original pixel position. The edges are filled with mirror images and then cropped back to the original range without changing the ground footprint of the original pixels. The output size is consistent with the original image.
[0074] Physical area consistency training uses two overlapping views of the same target surface as a pair. First, it calculates the geometrically valid and commonly visible horizontal area of both views. Then, it projects the predicted vegetation probability and binary vegetation label onto this area. The area after cropping by the pixel horizontal footprint is weighted and summed and divided by the commonly visible horizontal area to form the predicted vegetation area ratio and labeled vegetation area ratio for each view. The probability is the sum of the three vegetation channels. The binary label takes one for vegetation pixels and zero for non-vegetation pixels. Any part of the common area that is ignored, occluded, or geometrically invalid by the view label is removed from both views. Pairs with a remaining area of zero do not participate in the area calculation to avoid using two area ratios from different regions to constrain each other.
[0075] Training objectives adopt ,in This represents the total loss of a training batch, is a dimensionless nonnegative quantity, and is used for backpropagation. This represents the average of the negative logarithms of the true class prediction probabilities on the effectively labeled pixels. It is a dimensionless, non-negative multi-class segmentation supervision loss. Before calculating the negative logarithm, the lower limit of the probability is set to one part per billion. This represents the squared mean of the difference between the predicted vegetation area percentage and the labeled vegetation area percentage in the valid view. This represents the squared mean of the difference between the predicted vegetation area percentages of the two views in a valid pair. Both are dimensionless and between zero and one. The mean is counted only for valid items. When there are no valid area items in the batch, the corresponding item is zero. The dimensionless, non-negative weight representing the consistency of area labeling. The dimensionless non-negative weights representing cross-view area consistency have candidate values of 0, 0.1, 0.5, and 1. The weights of multiple supervision items are fixed at one. All quantities are calculated by the current batch prediction, annotation, and geometric mask as described in this paragraph.
[0076] Before calculating the loss for each batch, the number of effective supervised pixels is counted. If the number is zero, the batch is skipped, resampled, and no parameter update is performed. Training is stopped and labels are added when there are no effective supervised pixels in the training sample pool, and empty sampling is not repeated. The validation loss only accumulates non-empty effective supervised pixels. Empty batches are not included in the average and early stopping comparison. When the effective supervised pixels in the entire validation set are zero, the validation is deemed invalid and model selection is stopped. The workstation uses the same data partitioning to train the network for each weight combination. The parameters are updated with adaptive moment estimation using 8 pairs of image blocks in a batch and an initial learning rate of 0.001. The training is conducted for a maximum of 100 rounds. The validation loss for multiple classes does not decrease for 10 consecutive rounds. The workstation stops training and retains the parameter with the lowest validation loss for that combination. Among the weight combinations, the combination with the vegetation merging category error ratio of no more than 5% by area weight is first selected. Then, the combination with the lowest multi-class validation loss is selected. For the same value, the weight candidate enumeration order is used. The sealed check set is only used after selection and is not used for repeated parameter tuning. If the check fails, it is not included in the current batch of investigation. The final model is frozen after validation is completed jointly with the S2 gating parameters. During operation, the unlabeled prediction of the test area is not used to replace the validation label.
[0077] For each unit, the program reads the original pixel probability of the qualified image, back-projects the four sides of the pixel onto the same target surface determined by S1 and clips it to the unit's horizontal range, and performs planar superposition of the pixel footprint boundaries of all participating views with the surface switching boundary to form a horizontal region that is non-overlapping internally and whose union is exactly a complete unit. Each region saves its area, boundary, corresponding pixel number for each view, and six types of probability. The probability is assigned according to the pixel's predicted value within the horizontal footprint of a single original pixel. Any positive area region without a corresponding probability causes the view to lose its qualification as a whole unit and returns to S2 for update. Zero-area boundaries do not participate in the area and probability calculation.
[0078] For a certain category of a view, the cell category components are arranged as follows: Calculation, where This indicates that the category component of the view in the current cell is a dimensionless quantity between zero and one. The dimensionless integer index representing the horizontal region, taking a value from one to the total number of regions. This represents the total number of positive area regions after the current units are superimposed, and is a dimensionless positive integer. Indicates the first The area of each zone is calculated from horizontal polygons, in square meters, and is greater than zero. This indicates that the view is in the [number]th [period]. The predicted probability for this category for each region is a dimensionless quantity ranging from zero to one and is derived from the original pixel probabilities. This represents the current horizontal area of the cell stored in S1, in square meters and greater than zero. The sum of the areas of all areas must equal this area. It is calculated and saved separately for each of the six categories. The cell component is used for inter-group comparison and cannot replace the subsequent acceptance check of all areas.
[0079] The workstation uses the upper surface of the target at the centroid of the unit's horizontal area as the observation direction reference. If the centroid is inside the hole, the target point inside the unit closest to the centroid is selected. The azimuth and the angle of view relative to the horizontal plane are calculated using the direction from that point to the camera center. The azimuth is zero in the north direction of the plane coordinate system and increases clockwise. The azimuth of strictly vertical lines of sight is uniformly recorded as zero. Before the survey, the azimuth is divided into boxes of 0, 90, 180, 270, and 360 degrees, the angle of view is divided into boxes of 0, 45, 70, and 90 degrees, the effective surface sampling distance is divided into boxes of 0, 0.02, 0.03, and 0.05 meters per pixel, and the exposure ratio is divided into boxes of 0, 0.01, 0.03, and 0.05 for both axes. All intervals except the last interval, which includes the right endpoint, are left-closed and right-open. 360 degrees are normalized to zero. Values outside the qualified observation range are not grouped.
[0080] The observation group key consists of the five interval numbers mentioned above. The resolution uses the upper limit of the S2 global domain, and the exposure two axes use the peak values of underexposure and overexposure ratios, respectively. Within the same unit, the groups are aggregated according to the group key. Each group is compared step by step according to the peak value of the reprojection residual from small to large, the minimum sharpness value from large to small, and the upper limit of the effective surface sampling distance from small to large. When the first three items are exactly the same, a representative image is selected in ascending order of image number. The comparison uses the saved original values instead of the rounded values displayed. Each group has only one representative. Adding any number of other photos to the same group does not increase the weight of the group, nor is the number of photos interpreted as the number of independent supports.
[0081] The program sums the six probabilities of all valid group representative images in each common horizontal area, and then divides by the number of valid groups to obtain the area fusion category probability. The weight of each valid group is the reciprocal of the number of valid groups, and the weights sum to one. Then, according to the aforementioned horizontal area weighting rule, the fusion probability replaces the single view probability to form the unit fusion category component. At the area and unit levels, grassland, shrubs, and canopy are added to form the vegetation fusion category component, and bare soil, leaf litter, and other non-vegetation are added to form the non-vegetation fusion category component. The sum of the two is one. If the number of valid groups is zero, no division is performed and the unknown is recorded. The single group result is still saved but not accepted in S4.
[0082] When supplementary images enter this step, the same set of boundaries and comparison order are used. When entering an existing group, the representative image is replaced only when it wins the comparison at each level. When entering a new group, a new representative image is added and normalized again according to the actual number of effective groups. The pixel footprint boundaries of the affected units are re-overlaid for both replacement and addition. The representative image number, three quality indicators and group key before and after replacement are saved. If the original representative image has not changed, its probability is not accumulated again. Finally, the area probability table, the unit components of each group, the fused components of the whole group and the representative image change record are written into the observation fusion log, and these data, together with the S2 geometry and gating flags, are transmitted to S4.
[0083] In this specific embodiment, S4 includes:
[0084] The unit determination program reads the observation fusion log of S3 and first checks whether the union of the areas of the same unit is equal to the fixed unit of S1, whether each effective group retains complete observations, and whether the geometry and model version used are consistent. If any positive area area is missing, the geometry of the target's upper surface is invalid, or the number of effective groups is less than the preset minimum number of groups, the entire unit is retained as unknown. In this implementation, the candidate values for the minimum number of groups are set to 2, 3, and 4. The actual values are selected and fixed after independent annotation and verification. Non-representative photos in the same group are not added to the number of effective groups.
[0085] For cells with at least two valid groups, the program successively removes one representative image, and the remaining groups are re-fused according to their respective weights (the reciprocal of the number of remaining groups) to obtain the vegetation merging category component for each cell; this implementation uses Record component sensitivity, where This represents the sensitivity of the current unit to component retention, a dimensionless non-negative quantity ranging from zero to one. The dimensionless integer index represents the deleted valid group. Iterate through all valid groups in the current cell. Indicates deletion of the first The remaining groups were then re-normalized, and the vegetation category components were merged. This represents the unit vegetation merging category component of the S3 group. Both are dimensionless quantities between zero and one. The negative subscript only indicates the deletion of the group, not the negative group number. The maximum value operation covers all valid groups, and the peak value among all absolute differences is used as the component sensitivity.
[0086] The program multiplies the sensitivity of this component by the horizontal area of the current unit in square meters to obtain the area contribution sensitivity in square meters. The maximum value minus the minimum value of the vegetation merging category component of each unit of all representative images is used as the inter-group divergence, the latter being a dimensionless quantity between zero and one. The area contribution sensitivity reflects the area contribution change corresponding to the change of probability component. It is only used as an acceptance condition and not as the confirmed vegetation area. The actual area after cropping is used for the boundary cropping unit. It is not substituted with the area of a complete square. The results of each group, the peak corresponding group, and the range corresponding group are all saved to the judgment basis record.
[0087] The acceptance parameters are selected on independent labeled verification units separate from the campus to be tested. Each verification unit is determined by the fine vegetation merging labels of the complete horizontal range as either fully vegetated, entirely non-vegetated, or spatially mixed. Units with missing reference labels do not participate in the acceptance parameter verification. In this implementation, the following enumerations are used: acceptance thresholds of 0.80, 0.90, and 0.95; component sensitivity thresholds of 0.02, 0.05, and 0.10; area contribution sensitivity thresholds of 0.005, 0.0125, and 0.025 square meters; intergroup divergence thresholds of 0.05, 0.10, and 0.20; and the aforementioned minimum number of groups. The acceptance threshold is always greater than half and does not exceed one. The two sensitivity thresholds are compared with the calculation results in dimensionless and square meter terms, respectively.
[0088] For each parameter combination, the verification unit is judged according to the complete process of this step. Units that are accepted but whose reference labels do not correspond to the complete merge category are recorded as incorrectly accepted. Spatial mixed units that are accepted as a whole are also counted as incorrect. Two types of misjudgment rates are determined by dividing the area of incorrectly accepted vegetation units by the area of all accepted vegetation units and the area of incorrectly accepted non-vegetation units by the area of all accepted non-vegetation units. Combinations with a denominator of zero are not considered to have passed the verification. This implementation requires that the two types of misjudgment rates do not exceed the preset 2% and each has at least 100 acceptance verification units. The combination that meets the conditions and has the largest total acceptance area is selected. If the values are the same, they are selected in the enumeration order. If no combination passes, no automatic acceptance result is generated. The verification samples are supplemented or the unit is retrained and run in the new version.
[0089] During the operation, the probability of a region is compared only if the following conditions are met simultaneously: geometric validity, complete observation of the entire region, the number of valid groups reaches the minimum number of groups, the two sensitivities do not exceed their respective thresholds, and the inter-group divergence does not exceed the threshold. All positive area regions of the current unit are traversed. If the merged vegetation category component of each region is not less than the acceptance threshold, the entire unit is marked as acceptable vegetation. If the merged non-vegetation category component of each region is not less than the same threshold, it is marked as acceptable non-vegetation. Since the two merged components are complementary and the threshold is greater than half, the two acceptance conditions cannot be met simultaneously.
[0090] If some areas meet the vegetation acceptance criteria and others meet the non-vegetation acceptance criteria, the merging categories within the marked unit are mixed and the complete unit is classified as unknown. If neither category of the remaining area meets the acceptance threshold, it is recorded as insufficient fusion confidence. If it fails to pass the sensitivity or divergence threshold, it is recorded as vegetation area sensitive conflict. All reasons are allowed to be recorded simultaneously. The probability redistribution between grassland, shrubs and canopy is judged only by their merging probability. The divergence between vegetation subclasses is judged only by the merged vegetation component and does not trigger unknown judgment alone. The divergence between bare soil and leaf layer within non-vegetation cannot bypass the area criterion of merging categories.
[0091] This implementation uses a unit with a horizontal area of 0.25 square meters to illustrate the operation sequence. Assume three groups of representative observation unit vegetation components are 0.94, 0.92, and 0.90 respectively, and the corresponding patch values are the same as the unit components of that group. Then, the entire group is merged to 0.92. The components after deleting any group are 0.91, 0.92, and 0.93 respectively. The component sensitivity is 0.01, the area contribution sensitivity is 0.0025 square meters, and the inter-group divergence is 0.04. Under the verification settings of a minimum of 3 groups, an acceptance threshold of 0.90, and sensitivity and divergence thresholds of 0.05, 0.0125 square meters, and 0.10 respectively, this unit meets the acceptance conditions. These data are only operational examples. If a non-vegetated patch with a positive area appears within it, even if the unit average is still 0.92, it must be re-examined and the full vegetation determination should not be used.
[0092] The program writes the three-state determination of each unit, the complete area inspection results, the vegetation and non-vegetation components of the smallest area, the number of effective groups, the group retention calculation results, the area contribution sensitivity, the inter-group divergence and the triggering reasons into the determination log. Unknown units still retain the existing probability and geometric records for S6 to select for supplementary sampling, but for S5, only the category status and fixed horizontal boundary of the whole unit are output, and the probability multiplied by the area is not output as the confirmed area.
[0093] In this specific embodiment, S5 includes:
[0094] The area calculation program reads the S4 judgment ledger, summarizes the judgment results by the horizontal union area of the horizontal area units, and links them item by item using the S1 unit geometry table as a complete index, so that units without any valid images are also included in the calculation. When the unit number is repeated, the version and boundary are compared first. If contradictory states are found within the same version, the unit is kept as unknown and the data conflict is recorded. Horizontal polygon unions are performed for acceptable vegetation, acceptable non-vegetation and unknown units respectively, and the three types of areas are calculated in square meters. Each unit can only be classified into one state. If a part of the unit is identified with high confidence, that part cannot be made into a confirmed area on its own.
[0095] The program verifies that there are no positive areas intersecting within the three types of unions, and that the total union of the three types equals the fixed survey polygon. Area closure is achieved by polygon topology comparison combined with double-precision calculation error checking. The allowable numerical error of area difference is set to the maximum value between one billionth and one millionth of the total area per square meter. If the error exceeds this range, boundary clipping and union are re-executed. The program does not close the account by scaling a certain type of area proportionally. If the account is still not closed, the calculation anomaly is saved and the complete coverage is not published. Zero-area common lines on the boundary are not counted repeatedly in any area.
[0096] After the area is closed, press and Calculation, where This indicates the confirmed percentage of vegetation, a dimensionless quantity ranging from zero to one. This represents an unknown percentage, a dimensionless quantity ranging from zero to one. This represents the horizontal union area of all accommodating vegetation units. The horizontal union area of all unknown units is represented by the area calculated from the polygon union in this step and expressed in square meters. S1 represents the total horizontal area of the pre-fixed survey polygon, expressed in square meters and must be greater than zero. Neither of the two numerators is greater than the total area and there is no positive area overlap between them. The confirmed proportion of non-vegetation is obtained by dividing the area of the union of acceptable non-vegetation horizontal areas by the same fixed total area. Unknown areas must not be deducted from any coverage denominator.
[0097] The output record uses the confirmed vegetation percentage as the lower endpoint of the unknown attribution range and the sum of the confirmed and unknown vegetation percentages as the upper endpoint. It also specifies that this range is conditional on the correct determination of accepted vegetation and non-vegetation. It only expresses the range caused by the attribution of the unknown horizontal area between the two merged categories and does not interpret it as a statistical confidence interval or overall error guarantee. If the unknown area is zero, the two endpoints coincide and the complete single-value coverage is output, but the processing parameter version and the judgment correctness condition are still retained. When the unknown area is greater than zero, the two endpoints are retained. Even if the display precision makes the two endpoints the same, the unknown flag must not be hidden.
[0098] To illustrate the fixed denominator calculation, this implementation method sets the total area of the survey polygon to 1000 square meters, the area that can accept vegetation to 620 square meters, the area that can accept non-vegetation to 280 square meters, and the unknown area to 100 square meters. The output will show that the vegetation has been confirmed to account for 62%, the unknown to 10%, and the unknown to 62% to 72% of the total area. Without removing the unknown areas, the denominator will be 900 square meters. If, after resampling, 40 square meters of the unknown area are accepted as vegetation, 30 square meters are accepted as non-vegetation, and 30 square meters remain unknown, then under the condition that the other units are judged to remain at their original values, the calculation will be recalculated to obtain 66%, 3%, and 66% to 69%, respectively. This is only used to illustrate the rules for updating the ledger and the denominator and is not considered as field test data or actual effect conclusions.
[0099] The accounting ledger saves the location polygon, target upper surface triangle and height, source image number, representative observation group, area and unit category components, three-state determination, group retention sensitivity and determination parameters for each unit; for unknown reasons, it reads the actual trigger markers such as geometric invalidity, target occlusion, insufficient actual resolution, exposure or sharpness failure, insufficient support of effective groups, insufficient fusion confidence, mixed categories within the unit, and vegetation area sensitive conflict, and stores them as a set of reasons rather than a single priority label, retaining the corresponding failed image and area location, and avoiding the re-collection planning only seeing a general unknown category;
[0100] When outputting results for each region, the program simultaneously attaches the survey polygon version, grid origin, cell side length, lower limit of feature width, observation gating parameters and version, observation group boundary and boundary assignment rules, acceptance criteria parameters, model version, and geometric version. The program uses the complete combination of common identification scale and processing parameter versions as the region comparison key. Only results with the same comparison key and from the same survey time are included in the same comparison group. The polygons of each region are allowed to be different, but their fixed versions are all retained. It is prohibited to directly merge results with changed thresholds after supplementary sampling into the original comparison group.
[0101] The workstation spatially associates unit location with scene records. Illumination records save the collection time and shadow coverage status, maintenance records save the recording period, operation date, and weekly frequency for that period, and personnel activity records the observation period and the number of people passing through per unit time. When scene records are missing, null values are saved without filling them with zeros, and these scene records are not used to reverse-write the unit vegetation category. Regional comparison data always includes the unknown proportion, unknown attribution range, and their condition descriptions for subsequent interpretation of scene differences. Area results are written into the regional calculation table, and all unknown units and their causes, boundaries, and sources are handed over to S6 to generate supplementary collection candidates.
[0102] In this specific embodiment, S6 includes:
[0103] The supplementary sampling planning procedure uses the unknown unit ledger of S5 and the current campus surface as input, and reads the current position of the UAV, the remaining mission time, and the selected target set to form the current planning state. Taking the horizontal centroid of the unknown unit cluster area as the observation target, it generates discrete candidate camera positions and orientations within the allowed operating space. The candidate fields include position, azimuth, top angle, camera exposure settings, target unit set, and flight path. In this implementation, sampling positions are taken at relative heights of 20, 30, and 40 meters above the target and at horizontal offsets of 0, 10, and 20 meters. Non-zero offsets are arranged at 45-degree azimuth intervals, with the optical axis pointing towards the target. The candidate positions must be within the operating space and the camera must be facing the target. Overlapping positions and orientations are merged into one candidate. Positions outside the safety constraints are not included in the scoring.
[0104] The planning program reads the safety distance set by the task. In this implementation, 5 meters is used as an example configuration. The campus obstacle surface is expanded outward by adding the upper limit of the positioning error to this distance. The candidate camera position and the entire path from the current UAV position to this position must not cross the expanded obstacle or the boundary of the work space. A passable adjacency graph is constructed with a three-dimensional mesh. A connection is established only when the connection between adjacent meshes passes the collision check. The shortest path search is used at the cost of path length. The continuous line segments after path interpolation are checked again. Candidates that cannot be connected, have missing upper limits of positioning error, or have insufficient remaining time for the task to reach, collect, and return data are directly eliminated. The example value of the safety configuration does not replace the task's setting of actual working conditions.
[0105] For retained candidates, the program uses the S1 camera projection model and the campus surface to predict the visible range of the entire unit, the upper limit of the effective surface sampling distance, and the S3 observation group. It uses the same full-domain inspection area and complete coverage requirements as S2. If any unresolved area is predicted, the expected processable area of the unit is not considered. When a geometrically invalid unit cannot be rendered directly and reliably, a conservative target space envelope is formed by the effective surface height range around the hole and the back projection constraints of the existing view. Candidates must meet the field of view and resolution requirements for all feasible target positions within the envelope before entering the set to be evaluated. If a finite envelope cannot be obtained, only a mark for manual verification is saved and the candidate's benefit to the unit is zero.
[0106] Exposure and sharpness predictions were based on test shots taken at an independent verification site prior to the survey. These records were indexed by the same camera, focal length, exposure time, aperture, ISO, and measured ambient illuminance range. The original images were saved with underexposure and overexposure percentages and sharpness calculated according to the S2 rule. Illuminance ranges were divided into bins of 1000 lux each, with the last bin including the right endpoint. When there were at least 10 test shots under the same index, the peak value of the exposure percentage and the minimum value of the sharpness were taken as conservative predictions. If there were insufficient records or the current illuminance exceeded the verified range, gating was not inferred. Test shot updates were obtained first before evaluation. Test shots that were not gated by S2 measurement could not be directly used to form the accepted area.
[0107] The cause screening is performed item by item according to the set of unknown causes. For units with target occlusion or insufficient support of effective groups, only candidates that can form a new line of sight and are expected to obtain complete observations are retained. The change of direction must change at least one of the fixed azimuth or top-view bins. For insufficient actual resolution, the upper limit of the predicted distance is required not to exceed the upper limit of the common scale. For unqualified exposure or sharpness, the conservative prediction of the test shooting record is required to pass the corresponding gating. For insufficient fusion confidence or vegetation area sensitive conflict, the candidate is required to enter a new observation group that does not yet contain representative images. Here, "expectedly processable" means that it can improve the observation conditions rather than pre-guaranteeing a change in the final category. Whether it can be accepted is still left to the S4 after the supplementary sampling.
[0108] For geometric invalidity, candidates must also see common features established in at least two existing images around the defect. The predicted number of common features must be no less than 20 and form an intersection angle of 5 to 45 degrees with at least one existing view. The number is obtained by checking the visibility of each existing 3D feature after projecting it onto the candidate view. The intersection angle is calculated from the direction of the feature point pointing to the center of the two cameras respectively. These conditions are checked simultaneously on a finite target envelope. Any location that cannot prove to have intersection and complete observation capabilities will not be considered as a gain. If the actual re-sampling and matching is unsuccessful, the geometric invalidity mark is retained. The estimated number of features cannot be regarded as geometric repair has been completed.
[0109] For mixed categories within a cell, the program checks whether the existing observations of that cell still have removable geometric or imaging defects. Only when such defects exist and the candidate is expected to eliminate the corresponding defects will it be included in the expected processable set. When there are complete and valid observations that have confirmed that vegetation and non-vegetation are spatially mixed in the same cell, the entire cell remains unknown regardless of the number of new photos. Repeatedly photographing such mixed cells will not be counted as area gain. When there are multiple unknown causes in the same cell, the candidate must expect to improve at least one actual cause and pass other known gating constraints. Candidates that only improve exposure but are still completely occluded are not allowed to obtain area scores.
[0110] When a candidate belongs to an existing observation group, the program judges whether the predicted quality is sufficient to replace the representative image according to the S3 step-by-step comparison rule. Only cases where the upper or lower bound of the prediction can prove the improvement of the corresponding comparison item are recorded as expected replacements. Vague predictions that are clearer are not used to replace comparisons. The program does not change the gating results of the unit, nor does it form repeated observations of the same group with a representative image of better quality. The expected processable area is recorded as zero. The new and old projection relationships that may be involved in geometric restoration are all attached with candidate reason records so as to verify whether the improvement on which the data is based has occurred after re-collection.
[0111] For each candidate, the program will take the horizontal union of the unknown units that are expected to improve the cause and pass the above checks, and then... Calculate the ranking score, where This indicates the unknown horizontal area that the candidate unit is expected to process in a given time, expressed in square meters per second. Higher values are selected first. This represents the expected horizontal union area of the candidate units that have not yet been covered by the selected candidates in this round. The area is in square meters and is not less than zero. It comes from the union and deduplication results of the unit boundaries after the cause screening. This indicates the estimated time to move from the current planned position to the candidate and complete the data collection, in seconds and must be greater than zero. The estimated time is obtained by dividing the path length through the collision check by the mission-set flight speed, plus the additional time for altitude change and the stable data collection time. If the movement and ascent / descent are synchronized, only the time of the first two is counted and not added again. In this implementation, the stable data collection time is set to 5 seconds. The flight speed and ascent / descent speed are read from the UAV mission settings.
[0112] The program selects candidates from highest to lowest score, prioritizing those with shorter estimated time in case of a tie, and then selecting in ascending order of candidate number. After selection, covered units are removed from the set of processable units of other candidates, and the horizontal union area is recalculated. At the same time, the newly selected position is used as the starting point for the next move to replan the time and safety path. It implements a successive greedy sorting rather than using outdated benefits after a single sort. Each selection checks the remaining task time and return time. The round stops when the remaining budget is insufficient or the remaining estimated processable area of all candidates is zero. It does not sacrifice benefits by reducing the safety distance or changing the size of the survey unit. The selected position, orientation, exposure settings, and unknown reasons for the target are written into the supplementary collection task list.
[0113] After completing the acquisition of a candidate pose, the workstation registers the acquired images and matches and registers them with existing images. The new camera pose is calculated using the original scale control constraints. When surface repair is required, the point cloud, triangulation, and projection relationship of the target's upper surface are jointly updated. The survey polygons, mesh origins, and clipping units remain fixed. All units involved in geometric changes, along with previously accepted units, are re-executed from S2 to S5. The confirmed area before and after the acquisition is allowed to increase or decrease. The expected benefits of the new photos are not directly added to the original vegetation area. Even if the geometry is not changed, the units affected by the new or replaced representatives must be regrouped, fused, and judged.
[0114] If the actual exposure, clarity, geometric correspondence, or effective group support does not meet the conditions, the reason for the failure of the supplementary collection record is retained. The supplementary collection anomalies and units that still do not meet the acceptance conditions remain unknown. If the temporal change of ground features is detected, merging is stopped and a new survey batch is generated. After each round of actual recalculation, the workstation re-screens candidates with a new unknown ledger, saves the planned processing area, actual gating results, representative image changes, and updated area calculation tables. Supplementary collection ends when the task budget is reached, the unknown area is zero, or there are no safe candidates with positive benefits. Finally, the confirmed percentage, unknown percentage, and unknown attribution range with conditional explanations as specified in S5 are output.
[0115] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
[0116] This invention connects the geometric relationships of the target surface, evidence of the original view categories, and horizontal area calculations, and establishes a regional comparison caliber using a fixed survey range and a common identification scale. The output unknown attribution range is used to express the impact of attribution of areas that have not yet been accepted, provided that the accepted category determination is correct. Areas where complete observation support is insufficient or where vegetation and non-vegetation spaces are mixed within a unit are retained as unknown. If the acceptance conditions are still not met after supplementary surveys, these areas will continue to be retained. When the unknown area is zero, a complete single-value coverage is formed.
[0117] The improvements of this invention are reflected in the processing structure of observation fusion and supplementary measurement selection: grouping represents the weight accumulation caused by image duplication in image fusion, group retention sensitivity and inter-group divergence determination are connected to the unknown ledger, and unknown reasons further drive supplementary sampling and recalculation. Physical area consistency training is used as an optional training method for the semantic segmentation model, in conjunction with observation gating, group fusion, and fixed denominator calculation.
Claims
1. A method for calculating campus vegetation coverage based on semantic segmentation of UAV aerial images, characterized in that, include: S1. Acquire original overlapping color images of the campus and camera information, reconstruct the campus surface by combining scale control information, and establish horizontal area units with common physical dimensions within fixed survey polygons, as well as the projection relationship between the target's upper surface and the original view; S2. Perform occlusion and geometric consistency checks based on the projection relationship, and perform image quality gating according to the common recognition scale to obtain qualified observations for each horizontal area unit; S3. Use the trained semantic segmentation model to generate probabilities for qualified observations of vegetation, bare soil, leaf litter, and other non-vegetation categories, group them according to observation direction and imaging conditions, select a representative image for each group, and perform inter-group normalization according to the spatial correspondence of the target's upper surface. S4. Based on the fusion category components, effective group support, and the removal of representative vegetation component changes and inter-group vegetation component differences, determine the acceptable vegetation units, acceptable non-vegetation units, and unknown units. S5. Summarize the determination results by the horizontal union area of the horizontal area units, and output the confirmed vegetation percentage, unknown percentage, and unknown attribution range with the total area of the fixed survey polygon as the denominator, and record the unknown reasons. S6. Based on the unknown reasons, select the supplementary sampling poses that can improve the observation support, sort the unknown horizontal areas that can be processed per unit of estimated time, and re-execute steps S2 to S5 using the supplementary images to update the measurement results.
2. The method for calculating campus vegetation coverage based on semantic segmentation of UAV aerial images according to claim 1, characterized in that, S1 includes: Original overlapping color images, camera intrinsic parameters, and position and attitude information were collected during the same survey period. Ground control point coordinates or known physical lengths were used as scale control information. The camera pose was calculated and the campus surface with physical scale was reconstructed through image matching and bundle adjustment. The survey polygon was pre-fixed in a unified plane coordinate system, and the required lower limit of ground feature width and the side length of horizontal area units were identified. The same lower limit of ground feature width and side length of units were used for different campus areas. Boundary units were clipped into the survey polygon to ensure that the internal units of each unit do not overlap and the union is equal to the survey polygon. The campus surface that is first touched vertically in the unit is determined as the target upper surface. The same horizontal position is measured only once. The upper surfaces of buildings and tree canopies are both included in the determination. Ground features located below them are not measured repeatedly. Units whose target upper surface cannot be determined are retained as unknown units. The projection relationship is established using camera intrinsic parameters, camera pose, and the three-dimensional coordinates of the target upper surface.
3. The method for calculating campus vegetation coverage based on semantic segmentation of UAV aerial images according to claim 1, characterized in that, S2 includes: Visibility is checked using rays from the camera center to the target's upper surface. Views where the rays intersect with other surfaces are discarded, as are views where the difference between the depth corresponding to the projection position and the depth of the target's upper surface exceeds the depth tolerance, or where the reprojection residual exceeds the residual threshold. Based on the local projection mapping from the target's upper surface to the image plane, the first of the two corresponding lengths along the two main horizontal directions for each unit pixel is calculated as the effective surface sampling distance. The upper limit of the effective surface sampling distance is determined by a pre-fixed lower limit for the width of ground features and the minimum number of pixels required for identification. Qualified observations are then selected by combining the lower limit for sharpness and the upper limit for the proportion of underexposed and overexposed pixels. Using validation samples that are independent of the survey area and have ground feature annotations and geometric references, the depth tolerance, residual threshold, minimum number of pixels, lower limit of sharpness, and upper limit of exposure ratio are determined. A parameter combination that simultaneously meets the preset geometric error tolerance and vegetation merging category identification error tolerance is selected and fixedly used among the areas to be compared. The entire horizontal area covered by the projection of the upper surface of the unit target is gated. Only the view that completely covers the unit and whose entire projection area is gated by geometry and imaging is considered a qualified observation. Local effective observations are not extrapolated to whole unit observations. Units that do not obtain complete effective observation support are retained as unknown units.
4. The method for calculating campus vegetation coverage based on semantic segmentation of UAV aerial images according to claim 3, characterized in that, S3 includes: generating pixel-by-pixel multi-class probabilities on the original view; mapping the class probabilities corresponding to the same target's upper surface to horizontal area units through projection relationships; using the complete horizontal range of the unit as the common calculation range; superimposing the horizontal projection boundaries of the mapped pixels into horizontal patches that are mutually non-overlapping and overlap the unit; retaining the class probabilities of each patch; multiplying the class probabilities by the patch area, summing them, and then dividing by the unit's horizontal area to obtain the class components of a single image; dividing the image into finite observation groups according to pre-fixed viewing azimuth intervals, top-view intervals, effective surface sampling distance intervals, and exposure state intervals; and further dividing the image into groups according to... A representative image is selected by comparing the reprojection residuals in ascending order, the sharpness in descending order, and the effective surface sampling distance in ascending order. If the indicators are the same, the image number is selected. Valid groups containing representative images are assigned the same weight, and the sum of the weights between groups is equal. The category probabilities of the representative images are fused in the same horizontal area, and the unit fused category component is obtained by weighted averaging according to the area of the area. The group weight is not increased by the number of images within the group. At each horizontal area and unit level, all vegetation category components are added to form a vegetation merged category component, and bare soil, leaf litter layer, and other non-vegetation category components are added to form a non-vegetation merged category component.
5. The method for calculating campus vegetation coverage based on semantic segmentation of UAV aerial images according to claim 4, characterized in that, S4 includes: For a horizontal area unit containing at least two valid groups, successively delete representative observations from one group, re-normalize and merge the remaining groups, calculate the absolute value of the difference between the vegetation merged category component obtained each time and the vegetation merged category component obtained from the fusion of all groups, take the peak value among all absolute differences as the component sensitivity, multiply the component sensitivity by the horizontal area of the unit as the area contribution sensitivity, and calculate the range of the vegetation merged category components of each group; under the conditions that the target upper surface is geometrically valid, the number of valid groups reaches the preset minimum number of groups, the two sensitivities do not exceed the corresponding thresholds, and the difference between vegetation components between groups does not exceed the divergence threshold, if the merged vegetation merged category of all horizontal areas within the unit... If all components reach the acceptance threshold, the unit is considered an acceptable vegetation unit. If all merged non-vegetation components in all horizontal areas reach the acceptance threshold, the unit is considered an acceptable non-vegetation unit. Units that cannot obtain complete and effective support, show a mixture of vegetation and non-vegetation between areas, or do not meet the above acceptance conditions are considered unknown units. The minimum number of groups is not less than two, and the acceptance threshold is greater than one-half but not greater than one. Each threshold is determined based on the parameter combination that meets the upper limit of the preset false judgment rate of vegetation merging categories in the independently labeled verification samples, and is fixedly used in the areas to be compared. The divergence between vegetation subclasses only participates in the acceptance determination through the merged vegetation components and does not trigger unknown determination on its own.
6. The method for calculating campus vegetation coverage based on semantic segmentation of UAV aerial images according to claim 5, characterized in that, S5 include: The horizontal union area is calculated for acceptable vegetation units, acceptable non-vegetation units, and unknown units respectively. Only units whose entire horizontal area is accepted into the same merging category are included in the corresponding acceptable area, while the remaining units are included in the unknown area. The average category probability of the units is not directly used as the confirmed physical area share. The sum of the three areas equals the total area of the pre-fixed survey polygon. The acceptable vegetation area and the unknown area are divided by the total area of the survey polygon to obtain the confirmed vegetation percentage and the unknown percentage. The unknown attribution range is output with the confirmed vegetation percentage as the lower endpoint and the sum of the confirmed vegetation percentage and the unknown percentage as the upper endpoint. At the same time, the range description is output based on the condition that the accepted category is correctly determined. A ledger is established that includes unit location, target upper surface, source image number, observation group, category component, and determination criteria. The actual triggering reasons in unknown unit records include geometric invalidity, target occlusion, insufficient actual resolution, exposure or sharpness failure, insufficient effective group support, insufficient fusion confidence, mixing of merged categories within the unit, and vegetation area sensitive conflicts. The unknown area is not deducted from the denominator. When the unknown area is zero, the complete single-value coverage is output.
7. The method for calculating campus vegetation coverage based on semantic segmentation of UAV aerial images according to claim 6, characterized in that, S6 include: For unknown cells, candidate poses that meet flight safety distance constraints are generated. Based on campus surface and camera parameters, the visibility of candidate poses to unknown cells, effective surface sampling distance, and their corresponding observation group are predicted. For occlusion or insufficient support of effective groups, candidate poses providing new observation directions are selected. For insufficient actual resolution, candidate poses whose effective surface sampling distance meets the common recognition scale are selected. For geometrically invalid poses, candidate poses that can establish common feature correspondences with existing images and form intersection observations are selected. For unacceptable exposure or sharpness, candidate poses that can pass the corresponding gating settings are selected. For insufficient fusion confidence... Alternatively, candidate poses for new observation groups can be screened based on vegetation area sensitivity conflicts; for mixed categories within a unit, the expected processable area is only included when existing observations have imaging or geometric defects and the candidate pose is expected to eliminate the corresponding defects. Spatial mixed units that have been confirmed by complete and valid observations continue to be unknown, and mixed units that have been repeatedly photographed are not counted as processable benefits; the horizontal union area of units that are expected to improve the corresponding unknown causes and are gated is used as the expected processable area of the candidate pose, divided by the expected time required for flight movement and acquisition, and sorted, and the already covered expected processable areas are deduplicated after the candidate pose is selected. Within existing observation groups, if the gating results are not changed and the images are not replaced with duplicate observations of representative images with better geometric or imaging quality, the expected processable area is recorded as zero. After re-collection, the re-collected images are geometrically registered with the existing images. When it is necessary to repair the campus surface, the geometric reconstruction and projection relationship are jointly updated. Under the condition that the survey polygons and unit divisions remain fixed, the gating, grouping and fusion, judgment and calculation are carried out again. Units that are abnormal after re-collection or still do not meet the acceptance conditions continue to be retained as unknown units.
8. The method for calculating campus vegetation coverage based on semantic segmentation of UAV aerial images according to claim 4, characterized in that, The semantic segmentation model trained uses physical area consistency training: overlapping training images with multi-class pixel annotations and corresponding relationships on the upper surface of the same target are acquired. The predicted vegetation probability and vegetation annotation of each training view are projected onto a common visible horizontal region. The predicted vegetation area ratio and the labeled vegetation area ratio are weighted and summed according to the horizontal area corresponding to each pixel and divided by the area of the common visible horizontal region to obtain the predicted vegetation area ratio and the labeled vegetation area ratio. The training objective is composed of multi-class segmentation supervision loss, the difference between the predicted vegetation area ratio and the labeled vegetation area ratio, and the difference between the predicted vegetation area ratios of corresponding training views, excluding occluded or geometrically invalid regions. Non-negative loss weights are used, and the multi-class segmentation supervision loss weight is greater than zero. The loss weights are selected and the model parameters are updated through independent validation samples. The trained model is used for class probability generation in step S3.
9. The method for calculating campus vegetation coverage based on semantic segmentation of UAV aerial images according to claim 4, characterized in that, The line-of-sight azimuth interval, the top-view interval, and the effective surface sampling distance interval adopt fixed interval boundaries before the survey. Except for the last interval which includes the right endpoint, all intervals are left-closed and right-open. The exposure status is divided into fixed two-dimensional intervals based on the proportion of underexposed and overexposed pixels. The boundary assignment rules remain the same before and after the re-sampling. When the re-sampling image falls into an existing observation group, the representative image is replaced only when the results of the hierarchical comparison change. When it falls into a new observation group, a new representative image is added. Subsequently, the same inter-group weights are reassigned according to the number of effective groups. The number and corresponding quality index of the representative image before and after replacement are saved.
10. The method for calculating campus vegetation coverage based on semantic segmentation of UAV aerial images according to claim 6, characterized in that, When outputting measurement results for different campus areas, the survey polygon version, unit side length, lower limit of ground feature width, observation gating parameters, observation group boundary, acceptance judgment parameters, and semantic segmentation model version are saved together. Only the results using the same recognition scale and processing parameters are included in the same set of regional comparison data. The scene records of illumination, maintenance frequency, and personnel activities are associated with the unit location, and the unknown proportion, unknown attribution range, and range description are retained along with the regional comparison data.
