Batch processing method for building three-dimensional index facing urban park exposure scene and related device

By adopting a batch processing method based on adaptive building instance segmentation and multi-scale buffer construction, the timeliness and adaptability issues of UAV LiDAR technology in urban park building pattern analysis are solved, achieving efficient and accurate batch processing and analysis.

CN123181715APending Publication Date: 2026-11-27INST OF URBAN ENVIRONMENT CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611332322.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing UAV lidar technology has several drawbacks when processing point cloud data of urban park buildings. These include insufficient timeliness of building pattern analysis, limited adaptability of building instance segmentation, and a disconnect between point cloud segmentation and pattern index calculation. As a result, it is difficult to meet the needs of batch analysis across multiple parks, locations, and scales.

Method used

This paper presents a batch processing method for building 3D indices in urban park exposure scenarios. By acquiring target point cloud files and analysis point data, it classifies ground points and non-ground points, adaptively segments building instances, constructs multi-scale buffers, and calculates building 3D spatial indices. It integrates point cloud processing, building instance segmentation, and index calculation into the same automated batch processing framework.

Benefits of technology

It improves the efficiency and accuracy of converting UAV LiDAR data into building layout analysis, supports batch processing of multiple parks, multiple locations, and multiple scales, reduces manual intervention, and improves the timeliness and consistency of data updates and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181715A_ABST
    Figure CN123181715A_ABST
Patent Text Reader

Abstract

The application discloses a building three-dimensional index batch processing method for an urban park exposure scene and a related device, relates to the technical field of geographic information processing, and comprises the following steps: acquiring a target point cloud file and corresponding target analysis point data, performing preposition judgment by using a completion verification file and an index result file, and automatically skipping objects that have met the completion condition. For objects that have not been completed, the following steps are performed: ground points and non-ground points are classified, a ground elevation model is constructed, building points are extracted, and the height from the ground is calculated; a segmentation strategy is adaptively selected according to the spatial distribution characteristics to perform building instance segmentation; a multi-scale buffer zone is constructed with the target analysis point as the center, and building three-dimensional space indexes under each scale are calculated; an index result file and a completion verification file are generated; and the processing is circularly performed until all objects are processed. The application improves the efficiency, accuracy and repeatability of three-dimensional quantitative analysis of the building environment in the urban park.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of geographic information processing technology, and in particular to a batch processing method and related apparatus for building 3D indexes in urban park exposure scenarios. Background Technology

[0002] UAV-based LiDAR technology can acquire high-density 3D point cloud data of parks and their surrounding areas in a short time, providing a data foundation for building layout surveys and dynamic updates. However, after point cloud data acquisition, it still needs to go through multiple stages, including ground elevation construction, building point identification, building instance segmentation, boundary correction, and index calculation. Existing processing workflows typically rely on various software programs and manual operations. The improvement in data acquisition efficiency has not been synchronously translated into building layout analysis efficiency, making it difficult to generate timely 3D building layout results that can be used for planning evaluation and environmental analysis.

[0003] Existing building point cloud processing methods often employ fixed height thresholds, distance clustering, or projected connected components for building segmentation. In situations with undulating terrain, vegetation interference, missing point clouds, or densely distributed buildings, problems such as misidentification of non-building objects, overlapping of adjacent buildings, or over-segmentation of the same building can easily occur. The segmentation results typically require manual review and repeated adjustments, reducing the timeliness of batch processing and data updates for UAV point clouds and affecting the accuracy of metric calculations.

[0004] Furthermore, existing methods typically separate building point cloud segmentation from multi-scale pattern calculation. After building extraction, it is necessary to manually create buffers of different radii, crop data, apply statistical indicators, and summarize results in the geographic information system. When multiple parks, multiple target locations, and multiple buffer scales are involved, the processing becomes cumbersome and prone to problems such as inconsistent parameters, missing results, and incomplete files, making it difficult to meet the needs of rapid processing, batch analysis, and periodic updates of UAV LiDAR data. Summary of the Invention

[0005] The purpose of this application is to provide a batch processing method and related apparatus for building 3D indices in urban park exposure scenarios, which can realize an automated batch processing flow from park point cloud data input to multi-scale building 3D index output.

[0006] To achieve the above objectives, this application provides the following solution: In a first aspect, this application provides a batch processing method for building 3D indices in urban park exposure scenarios, characterized by comprising: Obtain the current target point cloud file and the corresponding target analysis point data; the current target point cloud file includes a 3D point cloud of a city park; the current target point cloud file is selected from a batch of point cloud files to be processed. Check if the current target point cloud file has a corresponding completion verification file and indicator result file; if the detection result is yes, then determine whether the current target point cloud file meets the preset completion conditions based on the corresponding completion verification file and indicator result file; if the determination result is yes, return to the step "Get the current target point cloud file" until there are no unselected point cloud files in a batch of point cloud files to be processed. If the test result is negative or the judgment result is negative, then perform the following steps: The three-dimensional point cloud is classified into ground points and non-ground points to obtain a set of ground points and a set of non-ground points; and building points are extracted from the set of non-ground points to obtain a set of building points. A ground elevation model is constructed based on a set of ground points, and the ground elevation of each building point is determined based on the ground elevation model. When the number of building points exceeds the first preset threshold, a segmentation strategy is adaptively selected based on the spatial distribution characteristics of the building points to instantiate and segment the building points, resulting in several building instances. Centered on the target analysis point, a multi-scale buffer is constructed according to the preset buffer radius sequence, and the building three-dimensional spatial index of each scale buffer is calculated. Generate the indicator result file and completion verification file corresponding to the current target point cloud file; return to the step "Get the current target point cloud file" until there are no unselected point cloud files in a batch of point cloud files to be processed.

[0007] Secondly, this application provides a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described method for batch processing of building three-dimensional indices for urban park exposure scenarios.

[0008] Thirdly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method for batch processing of building three-dimensional indices for urban park exposure scenarios.

[0009] Fourthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method for batch processing of building 3D indices for urban park exposure scenarios.

[0010] According to the specific embodiments provided in this application, this application has the following technical effects: This application provides a batch processing method and related apparatus for 3D building indices in urban park exposure scenarios. It integrates point cloud data processing, building instance segmentation, multi-scale buffer construction, and index calculation into a single automated batch processing framework, thereby reducing manual intervention and improving the efficiency and accuracy of 3D quantitative analysis of the park's architectural environment. First, by acquiring target point cloud files and point data, and using completion verification files and index result files for pre-judgment, completed objects are automatically skipped. This allows the batch processing to resume from the breakpoint even if the program is interrupted, avoiding duplicate or missed processing. Second, based on the height above the ground, a segmentation strategy is adaptively selected according to the spatial distribution characteristics of the building points. This allows building instance segmentation to adapt to building scenes with varying densities, reducing the overlap of adjacent buildings or over-segmentation of buildings, providing reliable building instance data for subsequent index calculations. Finally, centered on the target analysis point, a multi-scale buffer is automatically constructed according to a preset buffer radius sequence, and 3D spatial indices at each scale are calculated, avoiding the tedious manual creation of buffers and calculation of spatial indices. In summary, this application enables UAV LiDAR data to be quickly and stably converted into 3D building layout information that can be used for planning evaluation and environmental exposure modeling, supports batch processing needs for multiple parks, multiple locations, and multiple scales, and effectively improves the timeliness of data updates and analysis. Attached Figure Description

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

[0012] Figure 1 A flowchart illustrating a batch processing method for building 3D indices in an urban park exposure scenario, provided as an embodiment of this application; Figure 2 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

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

[0014] With the development of refined urban governance, public health research, and environmental exposure modeling, the three-dimensional spatial morphology of urban parks and their surrounding built environment has gradually become an important foundational data for assessing spatial openness, building obstruction, landscape perception quality, and residents' environmental exposure levels. Compared to two-dimensional building outlines, land use data, or remote sensing imagery, three-dimensional point cloud data can directly reflect the height, volume, and spatial structure of buildings, thus possessing high application value in urban spatial morphology analysis.

[0015] This application proposes a batch processing method for three-dimensional indices of park buildings based on point cloud data. Centered on the target analysis points, it automatically completes point cloud processing of buildings, construction of multi-scale buffers, calculation of three-dimensional indices, and output of results, thereby improving the efficiency, stability, and repeatability of three-dimensional quantitative analysis of park building environment.

[0016] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0017] In one exemplary embodiment, such as Figure 1 As shown, a batch processing method for building 3D indices in urban park exposure scenarios is provided. This method is executed by a computer device and includes the following steps: S01. Obtain the current target point cloud file and the corresponding target analysis point data; the current target point cloud file includes a 3D point cloud of a city park; the current target point cloud file is selected from a batch of point cloud files to be processed.

[0018] S02. Check if the current target point cloud file has a corresponding completion verification file and indicator result file.

[0019] S03. If the detection result is yes, then determine whether the current target point cloud file meets the preset completion conditions based on the corresponding completion verification file and indicator result file; if the determination result is yes, then return to the step "Get the current target point cloud file" until there are no unselected point cloud files in a batch of point cloud files to be processed.

[0020] S04. If the detection result is negative or the judgment result is negative, then perform the following steps: The 3D point cloud is classified into ground points and non-ground points to obtain a set of ground points and a set of non-ground points. Building points are extracted from the set of non-ground points to obtain a set of building points. A ground elevation model is constructed based on the ground point set, and the ground elevation of each building point is determined based on the ground elevation model. When the number of building points exceeds a first preset threshold, a segmentation strategy is adaptively selected to instantiate the building points based on their spatial distribution characteristics, resulting in several building instances. A multi-scale buffer is constructed with the target analysis point as the center and a preset buffer radius sequence is used, and the 3D spatial indicators of the buildings in each scale buffer are calculated. An indicator result file and a completion verification file corresponding to the current target point cloud file are generated. The process returns to the step "Get the current target point cloud file" until there are no unselected point cloud files in a batch of point cloud files to be processed.

[0021] The above-mentioned preset buffer radius sequence is determined based on the input buffer scale parameters (maximum buffer radius and buffer radius step size).

[0022] The size of the first preset threshold can be set according to actual needs, and it is a positive number greater than 0.

[0023] As an optional implementation, the three-dimensional spatial indicators of the building include one or more of the following: number of buildings, building height, building coverage area, building coverage rate, building volume density, building compactness, sky visibility factor, building occlusion rate, boundary density, patch density, and building crowding.

[0024] The index result file includes the name of the city park, the coordinates of the target analysis point, the elevation of the target analysis point, the height of the input viewpoint, the absolute elevation of the viewpoint, a three-dimensional spatial index table of buildings, and a building segmentation information worksheet. The three-dimensional spatial index table of buildings includes three-dimensional spatial indicators under different buffer radii. The building segmentation information worksheet includes building segmentation modes, the number of building instances, and statistical data generated during the building segmentation process.

[0025] The completion verification file includes a processing status identifier, input point cloud path, output directory path, maximum buffer radius, buffer radius step size, expected number of indicator records, actual number of indicator records, maximum number of buildings, building segmentation mode, and output file list; the expected number of indicator records is equal to the length of the preset buffer radius sequence. The actual number of indicator records refers to the number of buffer 3D spatial indicator records in the building 3D spatial indicator table. There is a one-to-one correspondence between buffer 3D spatial indicator records and buffers (or buffer radii).

[0026] In some embodiments, the method further includes generating point cloud processing result files and visualization result files.

[0027] The point cloud processing result file includes: a point cloud file containing non-ground points, a classified point cloud file with ground categories labeled, and a point cloud file with building instance numbers if building instances exist. The visualization result files include: a buffer visualization file showing the spatial range of each buffer zone centered on the target analysis point, and a building segmentation visualization file showing the spatial distribution of each building instance, provided that building instances exist.

[0028] As an optional implementation, the preset completion conditions include a first condition, a second condition, a third condition, and a fourth condition.

[0029] The first condition is: the completion verification file exists and the processing status is marked as completed.

[0030] The second condition is that the indicator result file exists, and the number of buffer indicator records therein is equal to the expected number of indicator records, and the buffer radius sequence recorded therein is consistent with the preset buffer radius sequence.

[0031] The third condition is that the non-ground point cloud file, the classified point cloud file with the ground category labeled, and the buffer visualization file exist and are not empty.

[0032] The fourth condition is: given the existence of building instances, a point cloud file with a building instance number and a building segmentation visualization file exist and are not empty.

[0033] As an optional implementation, the 3D point cloud is classified into ground points and non-ground points, specifically including: First, a cloth simulation filtering method is used to separate ground points in the 3D point cloud. If the number of extracted ground points is less than a second preset threshold, a downgraded ground estimation method based on grid elevation statistics is used to extract ground points. The downgraded ground estimation method based on grid elevation statistics includes: dividing the horizontal coordinates of the point cloud into grids according to a preset grid size; and determining ground points in each grid based on the elevation distribution of the points.

[0034] The second preset threshold can be set according to actual needs and is a positive number greater than 0.

[0035] As an optional implementation, based on the spatial distribution characteristics of the building points, a segmentation strategy is adaptively selected to instantiate and segment the building points, specifically including: Based on the horizontal coordinates, calculate the nearest neighbor distance statistics for each building point, and determine whether the current building point distribution belongs to a dense building scene based on these statistics.

[0036] If the judgment result is negative, a general building segmentation strategy is adopted: clustering is performed based on the horizontal coordinates and height above the ground of the building points; based on the number of building points, building height and projected area of ​​each cluster result, the cluster results are filtered to obtain several building instances, and the number of each building instance is determined.

[0037] If the judgment result is yes, then the roof-dominant building segmentation strategy is adopted: extract the roof-dominant points from the building points, cluster the roof-dominant points to obtain several roof clustering results; determine the corresponding building instance number for each roof clustering result; and determine the building instance number of each other building point according to the horizontal proximity relationship between other building points and the roof-dominant points.

[0038] In some embodiments, the method further includes: If the number of building points is lower than the first preset threshold, it is determined that there are no building instances.

[0039] The above solution overcomes the shortcomings of existing technologies, such as insufficient timeliness of building pattern analysis after UAV LiDAR data acquisition, limited adaptability of building instance segmentation, separation between point cloud segmentation and pattern index calculation, and difficulty in ensuring the consistency and completeness of batch analysis results at multiple points and scales. It realizes integrated automatic processing from building point cloud segmentation and roof correction to multi-scale building pattern index calculation, thereby improving the efficiency, accuracy and consistency of converting UAV LiDAR data into building pattern analysis results.

[0040] To aid those skilled in the art in understanding, the following embodiments further illustrate the point.

[0041] Existing multi-scale buffer analysis typically requires manual construction of buffers, cropping of building data, statistical analysis, and export of results within geographic information system (GIS) software. This approach suffers from low automation and is prone to issues such as missing results, inconsistent scales, or incomplete files when handling multiple parks, locations, and buffer radii. The method proposed in this embodiment acquires park point clouds and target analysis point coordinates, performs ground point separation, digital terrain model construction, building point extraction, ground clearance calculation, and adaptive building instance segmentation. Centered on the target analysis point, a multi-scale buffer is constructed based on input scale parameters, various indicators are calculated, and results, visualization files, and completion verification results are output. This method improves the automation, consistency, and repeatability of 3D quantitative analysis of park built environments. Specifically, it includes the following steps: S11. Obtain the object to be processed and its input data.

[0042] The process involves acquiring point cloud data and target analysis point data for the city parks to be analyzed (hereinafter referred to as parks). The point cloud data includes the three-dimensional coordinate information of the points, and the target analysis point data includes the park name and its corresponding X, Y, and Z coordinates (i.e., three-dimensional coordinates). Based on the park name, the process matches the corresponding point cloud file in a preset point cloud data directory and creates a corresponding result output directory for each park.

[0043] In one embodiment, the point cloud data is in LAS or LAZ format; the target analysis point data is stored in tabular form and includes at least the fields "Park Name", "X", "Y", and "Z". The X and Y coordinates are used to determine the center of the multi-scale buffer zone, and the Z coordinate is used to determine the ground elevation at the target analysis point. These coordinates, combined with a preset viewpoint height, determine the viewpoint elevation required for calculating the sky visibility factor and building occlusion rate.

[0044] S12. Determine whether the object to be processed has been processed.

[0045] Before performing calculations on a specific park, the completion verification file and indicator result file in the corresponding result output directory of that park are read to determine whether they meet the preset completion conditions. If they do, the duplicate calculation of that park is skipped; if they do not meet the conditions, the subsequent processing steps are continued.

[0046] The preset completion conditions include: the completion verification file exists and the recorded processing status is "processing completed"; the indicator result file exists and contains a preset number of buffer indicator records (i.e., the number of recorded buffers equals the preset buffer radius sequence length); the buffer radius sequence in the indicator result is consistent with the (preset) buffer radius sequence generated by the input buffer scale parameters; and the necessary point cloud intermediate result files and buffer visualization files exist and are not empty. This enables the batch processing process to resume from breakpoints and avoids the repeated calculation of completed objects.

[0047] In some embodiments, the processing status recorded above includes "processing completed" and "not completed". Specifically, the processing status is considered "not completed" when the current processing object has not yet started processing, is being processed, is interrupted or encounters an exception during processing, or the output result after processing does not meet the preset completion conditions. Once the current processing object completes point cloud processing, building instance segmentation, multi-scale buffer index calculation, and the corresponding result file output, a completion verification file is generated, and the processing status is set to "processing completed". In subsequent batch processing, if the processing status is detected as "processing completed" and the index result file and necessary output files simultaneously meet the preset completion conditions, the processing object is skipped; otherwise, the processing object is considered an incomplete object, and the processing flow is re-executed.

[0048] S13. Read point cloud data and perform ground point separation.

[0049] Read the point cloud data of the current park to obtain the X, Y, and Z coordinates of each point. Separate the point cloud data into ground points and non-ground points to obtain a set of ground points and a set of non-ground points, and mark the ground points as ground categories in the point cloud classification attributes.

[0050] In one implementation, a cloth-based simulation filtering method is preferentially used for ground point separation. When the cloth-based simulation filtering method is unavailable or fails (in which case the number of extracted ground points is 0, less than a second preset threshold), a downgraded ground estimation method based on grid elevation statistics is used for ground point extraction. The downgraded ground estimation method includes: dividing the point cloud planar coordinates into grids according to a preset grid size; within each grid, determining low-elevation points as ground points based on the elevation distribution of the points. Through this method, even when the external filtering component is unavailable or the local point cloud quality is poor, the subsequent processing flow can still continue.

[0051] The basic processing principles of "point cloud grid division" and "determining ground candidate points based on low elevation statistics within the grid" employed in this step are common techniques in point cloud ground extraction. This step primarily serves as a degradation mechanism when the cloth simulation filtering method is unavailable or fails, ensuring the batch processing workflow can continue. In one specific implementation, a grid index benchmark is first established based on the minimum X and minimum Y coordinates of the point cloud planar coordinates. The grid number for each point in the X and Y directions is calculated according to a preset grid size, thus dividing the point cloud into several two-dimensional planar grids. For each grid, the elevation values ​​of all points are extracted, and their elevation distribution is statistically analyzed. When the number of points within a grid is lower than a third preset threshold, the lowest elevation within that grid is used as the ground determination threshold; when the number of points within a grid reaches the third preset threshold, the low quantile elevation value is determined based on the elevation distribution of the points within that grid and used as the ground determination threshold. Points with elevations less than or equal to the ground determination threshold are identified as ground candidate points, and the remaining points are identified as non-ground points.

[0052] S14. Construct a digital terrain model (i.e., a ground elevation model) based on a set of ground points.

[0053] A digital terrain model is constructed based on the set of ground points, which is used to query the ground elevation corresponding to any location to be analyzed. Specifically, the planar coordinates of the ground points are rasterized according to a preset grid size, and the lowest elevation of the ground points within the same grid is taken as the ground elevation of that grid.

[0054] For the location to be queried, the ground elevation of the corresponding grid is first queried based on its X and Y coordinates. If no valid surface point exists in the grid, the elevation of the nearest neighbor ground point is used as the backoff ground elevation. This obtains the ground elevation corresponding to the building point or target analysis point, providing a basis for subsequent calculations of the building point's height above the ground, determination of viewpoint elevation, and calculation of building 3D spatial indicators.

[0055] S15. Extract building points and calculate the height of the building points above the ground.

[0056] Building category points are extracted from the point cloud classification results to obtain a set of building points. In one implementation, points with the classification attribute of building category are taken as building points. For each building point, the corresponding ground elevation is queried in the digital terrain model based on its X and Y coordinates, and the difference between the absolute elevation of the building point and the corresponding ground elevation is taken as the height of the building point above the ground.

[0057] If the number of building points is lower than the first preset threshold, it is considered that there are no effective building points around the current target analysis point that can be used to calculate the three-dimensional building index. A multi-scale index result with zero building points is generated, and a completion verification file is output. In this case, the building instance segmentation point cloud file and the building segmentation visualization file may not be generated.

[0058] S16. Perform adaptive building instance segmentation on the building points.

[0059] When the number of building points exceeds the first preset threshold, the building point set is adaptively segmented into building instances based on the spatial distribution characteristics of the building points to obtain the building instance number corresponding to each building point.

[0060] Specifically, the density of building point distribution is first determined based on the nearest neighbor distance statistics of the building point's planar coordinates. If the building point distribution does not meet the criteria for dense scene determination, a general building segmentation strategy is adopted: clustering is performed based on the spatial coordinates and height above the ground of the building points, and building instances are filtered according to the number of points, building height, and projected area of ​​the clustering results. Noisy clusters or non-building clusters that do not meet the preset conditions (i.e., are less than the corresponding lower threshold) are removed to obtain the building instance number.

[0061] If the distribution of building points meets the criteria for dense scene determination, a roof-dominant building segmentation strategy is adopted: first, roof-dominant points are extracted from the building points, then the roof-dominant points are clustered to obtain roof clustering results; subsequently, based on the planar proximity relationship between building points and roof-dominant points, the building instance numbers obtained from roof clustering are back-projected to all building points (i.e., determining the building instance number to which each building point belongs). This method reduces the situation where adjacent buildings are closely clustered or the same building is over-segmented in densely built areas.

[0062] In one implementation, the building instance number is written into the extended attributes of the point cloud data to form a building segmentation point cloud result with the building instance number.

[0063] In one implementation, the density of building point distribution is determined based on the nearest neighbor distance statistics of the building point's planar coordinates, specifically including: Based on the planar coordinates of each building point, the horizontal distance between each building point and its nearest neighbor (excluding itself) is calculated, and the resulting nearest neighbor distance sequence is statistically analyzed. The median of these nearest neighbor distances is used as a statistical value characterizing the spatial density of the building points. This statistical value is compared with a preset dense scene determination threshold. When the statistical value is less than or equal to the preset dense scene determination threshold, the current building point distribution is determined to belong to a dense building scene; when the statistical value is greater than the preset dense scene determination threshold, the current building point distribution is determined not to belong to a dense building scene. For example, the preset dense scene determination threshold can be 0.6 m. For instance, when the median nearest neighbor distance of a building point is 0.38 m, it is determined to be a dense building scene because it is less than 0.6 m, and a roof-dominated building segmentation strategy is adopted; when the median nearest neighbor distance is 0.92 m, it is determined to be a general building scene because it is greater than 0.6 m, and a general building segmentation strategy is adopted. The dense scene determination threshold can be set according to the point cloud spatial resolution, point density, and actual building distribution characteristics.

[0064] S17. Construct a multi-scale buffer and calculate the three-dimensional spatial indices of the building.

[0065] Using the X and Y coordinates of the target analysis point as centers, multiple circular buffers of various spatial scales are constructed based on the input buffer scale parameters. These buffer scale parameters include the buffer radius step size and the maximum buffer radius. A radius sequence (i.e., a preset buffer radius sequence) is generated based on the buffer radius step size and the maximum buffer radius, and corresponding buffers are constructed using each radius value in the radius sequence.

[0066] For each buffer zone, building points located within the buffer zone are filtered based on the planar (i.e., horizontal) distance between the building points and the target analysis points, and building points with building instance numbers are further filtered as valid building points; based on the valid building points and their corresponding building instance numbers, the three-dimensional spatial indicators of the buildings within the buffer zone are calculated.

[0067] The three-dimensional spatial indicators of buildings include one or more of the following: number of buildings, building height, building coverage area, building coverage rate, building volume density, building compactness, sky visibility factor, building occlusion rate, boundary density, patch density, and building crowding.

[0068] The number of buildings is determined by deduplicating the number of building instance numbers within the current buffer zone; the building height index is calculated based on the ground height of the effective building points, including one or more of the following: maximum building height, average building height, 90th percentile of height, and coefficient of variation of height; the building coverage area is determined by the grid area occupied by the effective building points on the horizontal plane; the building coverage ratio is determined by the ratio of the building coverage area to the buffer zone area; the building volume density is determined by the ratio of the estimated building volume based on the projected area and height of the building instance to the buffer zone area; the building compactness is determined by the projected area and boundary perimeter of the building instance; the boundary density is determined by the ratio of the sum of the boundary perimeters of the building instances to the buffer zone area; the patch density is determined by the ratio of the number of building instances to the buffer zone area; and the building crowding is determined by the building volume and the nearest neighbor distance between the center points of the building instances.

[0069] The sky visibility factor is calculated based on the azimuth and elevation angles between the viewpoint position at the target analysis point and the effective building points within the buffer zone. The building occlusion rate is determined based on the sky visibility factor. The viewpoint position is determined based on the three-dimensional coordinates of the target analysis point and the input viewpoint height; the number of azimuth angle intervals is either input by the user or read from the configuration file.

[0070] In one implementation, the buffer radius step size, maximum buffer radius, viewpoint height, building coverage grid resolution, and number of azimuth intervals are all configurable parameters. For example, when the buffer radius step size is 10 meters and the maximum buffer radius is 500 meters, multiple buffer scales ranging from 10 meters to 500 meters are formed.

[0071] When there are no valid building points or building instances within a certain buffer, the number of buildings, building height, building coverage area, building coverage rate, building volume density, building compactness, building occlusion rate, boundary density, patch density, and building crowding of the buffer are all set to zero, and the sky visibility factor is set to one.

[0072] S18. Generate the result file, perform completion verification, and summarize the batch processing results.

[0073] Write the corresponding 3D spatial indicators of the buildings at each buffer scale into the indicator result file. The indicator result file shall include at least the park name, coordinates of the target analysis point, elevation of the target analysis point, height of the input viewpoint, absolute elevation of the viewpoint, building segmentation mode, buffer radius, buffer area, and 3D spatial indicators of each building.

[0074] In one embodiment, the index result file includes a building 3D spatial index worksheet and a building segmentation information worksheet; the building 3D spatial index worksheet is used to record indicators such as the number of buildings, building height, building coverage area, building coverage rate, building volume density, sky visibility factor, building occlusion rate, boundary density, patch density, and building crowding at different buffer scales; the building segmentation information worksheet is used to record building segmentation patterns, the number of building instances, and statistical information related to the building segmentation process.

[0075] Simultaneously, the system outputs point cloud processing result files and visualization result files. The point cloud processing result files include non-ground point cloud files, categorized point cloud files with labeled ground categories, and point cloud files with building instance numbers generated when building instances exist. The visualization result files include buffer visualization files centered on the target analysis point, and building segmentation visualization files generated when building instances exist.

[0076] After the result file is generated, a completion verification file is generated. The completion verification file records the processing status of the current object, the input point cloud path, the output directory, the maximum buffer radius, the buffer radius step size, the expected number of indicator records, the actual number of indicator records, the maximum number of buildings, the building segmentation mode, and the output file information. Each buffer or buffer radius corresponds to one indicator record, and each buffer indicator record contains various indicators for that buffer.

[0077] Subsequently, the output of the current processing object is verified according to preset completion conditions. Preset completion conditions include: the completion verification file exists and its status is valid (i.e., processing is complete); the indicator result file exists and contains the expected number of buffer indicator records (i.e., the actual number of indicator records equals the expected number of indicator records); the buffer radius sequence in the indicator result is consistent with the input buffer scale parameter (i.e., the recorded buffer radius sequence is consistent with the preset buffer radius sequence determined by the maximum buffer radius and the buffer radius step size); the non-ground point cloud file, the ground classification point cloud file, and the buffer visualization file exist and are not empty; when the number of buildings is not zero (i.e., building instances exist), the point cloud file with the building instance number and the building segmentation visualization file exist and are not empty.

[0078] When the number of building points is lower than the first preset threshold, or when there are no valid building instances in any buffer, multi-scale building 3D spatial index results with zero building count are generated / output. In this case, according to preset rules, point cloud files with building instance numbers and building segmentation visualization files are not allowed to be generated, but index result files, necessary point cloud processing results, buffer visualization result files and completion verification files are still output.

[0079] When there are multiple parks or multiple target analysis points, the above steps are executed sequentially for each park or target analysis point. For processing objects that have already met the completion conditions, duplicate calculations are skipped during batch processing. For processing objects that are incomplete or have incomplete output, the corresponding processing flow is re-executed. After all processing objects are completed, the indicator result files of each processing object are read to generate a summary indicator result file.

[0080] Based on the same inventive concept, this paper also provides a batch processing system for building 3D indices in urban park exposure scenarios. The system includes a data acquisition module, a completion judgment module, a ground processing module, a building extraction module, a building segmentation module, a buffer analysis module, an index calculation module, a result output module, and a result verification module.

[0081] The system comprises the following modules: a data acquisition module for acquiring point cloud data of the city park to be analyzed and target analysis point data, and matching the corresponding point cloud file according to the city park name; a completion judgment module for determining whether the object to be processed meets the preset completion conditions; a ground processing module for separating ground points and constructing a digital terrain model; a building extraction module for extracting building points and calculating the height of the building points above the ground; a building segmentation module for adaptive building instance segmentation of building points; a buffer analysis module for constructing buffers of multiple spatial scales centered on the target analysis point; an index calculation module for calculating the three-dimensional spatial indexes of buildings; a result output module for outputting index result files, point cloud processing result files, building segmentation result files, visualization result files, and summary index result files; and a result verification module for performing completion verification.

[0082] In some embodiments, the above-mentioned completion verification specifically includes: First, the expected output file and preset buffer radius sequence are determined based on the current processing object and the input buffer scale parameters, and the expected number of buffer index records is determined based on the preset buffer radius sequence.

[0083] Then, check if the completion verification file corresponding to the current processing object exists, and determine if the processing status recorded in it is "processing completed". If the completion verification file does not exist or the processing status is not "processing completed", then it is determined that the current processing object is not completed.

[0084] If the completion verification file meets the requirements, further check whether the indicator result file exists and can be read normally, and count the actual number of buffer indicator records generated in it. Compare the actual number of buffer indicator records with the expected number of buffer indicator records, and verify one by one whether the buffer radius sequence recorded in the indicator result file is consistent with the preset buffer radius sequence generated based on the maximum buffer radius and the buffer radius step size. If the number of records is inconsistent or the buffer radii are missing, duplicated, or out of order, the current processing object is determined to be incomplete.

[0085] Subsequently, an integrity check is performed on the necessary output files of the current processing object, including checking whether the non-ground point cloud files, the classified point cloud files with labeled ground categories, and the buffer visualization files exist and are not empty.

[0086] Further, based on the number of buildings in the indicator results, it is determined whether there are valid building instances in the current processing object. When valid building instances exist, it is also checked whether the point cloud file with building instance number and the building segmentation visualization file exist and are not empty; when the number of building points is lower than the first preset threshold or the number of buildings in all buffers is zero, it is allowed not to generate the point cloud file with building instance number and the building segmentation visualization file.

[0087] When all the above verification conditions are met, the current processing object is determined to be processed successfully; when any condition is not met, it is determined to be processed unsuccessfully, and the corresponding missing files or abnormal items are recorded so that the batch processing program can re-execute the corresponding processing flow of the processing object in subsequent runs.

[0088] Compared with existing technologies, this method has at least the following beneficial effects: First, it can quickly convert building point clouds acquired by UAV LiDAR into quantitative results that can be used for building pattern analysis, automatically obtain various spatial indicators, and improve the timeliness and completeness of converting UAV point cloud data into building three-dimensional pattern analysis results.

[0089] Second, using the input target analysis point as the unified analysis center, and continuously constructing multiple spatial scale buffers based on the input buffer scale parameters, three-dimensional spatial indicators of the building are generated within each buffer according to a consistent calculation method. This enables the acquisition of a continuous indicator sequence for the same target point at different spatial scales, improving the comparability of multi-scale environmental exposure analysis results and the applicability of modeling.

[0090] Third, adaptive building instance segmentation is performed based on the spatial distribution characteristics of building points. Different segmentation strategies are used in general building areas and dense building areas. This can reduce the problem of adjacent buildings sticking together or being over-segmented caused by fixed parameter segmentation methods in dense building scenarios, thereby improving the reliability of indicators that depend on building instance recognition results, such as the number of buildings, patch density, boundary density, and building crowding.

[0091] Fourth, integrating point cloud reading, ground processing, building point extraction, building instance segmentation, multi-scale buffer index calculation, result output, and batch processing verification into a unified process can reduce manual operations such as buffer creation, data trimming, and item-by-item statistical analysis. This reduces repetitive work and the risk of human error in multi-park, multi-location, and multi-scale analysis, and improves the efficiency, consistency, and repeatability of batch calculations.

[0092] The technical solution of this application will be further explained below with specific examples.

[0093] Example 1: Organization of input data and batch objects.

[0094] In this example, the input data includes point cloud data and target analysis point data. The point cloud data can be a LAS or LAZ format point cloud file, which includes at least the X, Y, and Z coordinates of the points and may include point cloud classification attributes. The target analysis point data can be stored in a tabular file, which includes at least the park name, X coordinate, Y coordinate, and Z coordinate fields.

[0095] The park name is used to match the corresponding point cloud file, the X and Y coordinates are used to determine the center of the buffer zone, and the Z coordinate is used to represent the ground elevation at the target analysis point. The target analysis point can be the park center point, entrance point, observation point, sampling point, centroid point, or other park-related analysis points specified by the user.

[0096] During batch processing, each record in the target analysis point data is first read, and the corresponding point cloud file is searched in the point cloud data directory based on the park name. The search method can include exact match and containment match: priority is given to searching for point cloud files whose filenames match the park name; if no exact match file exists, then point cloud files whose filenames contain the park name are searched. For each park to be processed, a corresponding result output directory is created, and the point cloud processing results, building segmentation results, indicator results, visualization results, and completion verification files are saved in this directory.

[0097] In one implementation, the buffer radius step size, maximum buffer radius, digital terrain model grid size, viewpoint height, building coverage grid resolution, number of azimuth intervals, and building segmentation parameters are all configurable parameters, input by the user or read from a configuration file. For example, the buffer radius step size can be 10 meters, the maximum buffer radius can be 500 meters, the viewpoint height can be 1.7 meters, the building coverage grid resolution can be 1 meter, and the number of azimuth intervals can be 72.

[0098] Example 2: Ground elevation model and building height calculation.

[0099] In this example, after separating the point cloud data into ground points, a digital terrain model is constructed based on the set of ground points. Specifically, the ground points are divided into several planar grids according to a preset grid size, and the lowest elevation of the ground points within the same grid is used as the ground elevation of that grid. For any location where the ground elevation needs to be queried, the ground elevation of the grid containing that location is queried first; when there are no valid ground points in that grid, the elevation of the nearest neighbor ground point is used as the backoff ground elevation.

[0100] Let the first The absolute elevation of each building point is The ground elevation corresponding to its plane coordinates is Then the height of the building point above the ground for: in, For the first The height of each building point above the ground This is the absolute elevation of the building point. This refers to the corresponding ground elevation obtained through a digital terrain model query.

[0101] The above method converts the absolute elevation of a building point into height information relative to the ground. Subsequent indicators such as maximum building height, average height, 90th percentile height, building density, sky visibility factor, and building obstruction rate can all be further calculated based on the building point's height above the ground or its absolute elevation.

[0102] In one implementation, if the point cloud classification attributes already include building categories, then points with building categories are taken as building points; if the point cloud classification attributes are incomplete, candidate building points can also be extracted by combining height thresholds, non-ground point sets, spatial clustering results, or prior external building data.

[0103] Example 3: Building instance segmentation method.

[0104] In this embodiment, adaptive building instance segmentation is performed on the set of building points. Before segmentation, the nearest neighbor distance statistics of the building points on the plane coordinates are calculated, and the distribution of the current building points is used to determine whether it belongs to a dense building scene.

[0105] When the distribution of building points does not meet the criteria for a dense building scene, a general building segmentation method is used. This method performs density clustering based on the three-dimensional coordinates and height above the ground of the building points, and then filters the clustering results. Filtering criteria can include one or more of the following: number of cluster points, building height, and projected area. Clustering results with too few points, too low height, or too small projected area can be discarded as noisy clusters or non-building clusters; the remaining clustering results are assigned building instance numbers.

[0106] When the distribution of building points meets the criteria for a dense building scene, a roof-dominant building segmentation method is adopted. This method first extracts roof-dominant points from the building points, then clusters the roof-dominant points to obtain roof clustering results; subsequently, based on the planar proximity relationship between all building points and roof-dominant points, the roof clustering numbers are back-projected to all building points to obtain the building instance numbers corresponding to all building points.

[0107] In one implementation, the dominant roof point can be obtained by: removing outliers from building points; calculating the point cloud normal vector and retaining horizontal roof points whose normal vectors are approximately vertical; and extracting top slice points close to the highest elevation within a local raster. These steps can be used individually or in combination.

[0108] After building instance segmentation is completed, the building instance number is written into the extended attributes of the point cloud data, forming a point cloud result file with building instance numbers. Points with building instance numbers (greater than zero) are used as valid building points in subsequent buffer index calculations; points without building instance numbers can be treated as noise points or unsegmented points.

[0109] Example 4: Calculation of three-dimensional spatial indicators for multi-scale buildings.

[0110] In this example, a radius sequence is generated using the X and Y coordinates of the target analysis point as the center, based on the input buffer radius step size and the maximum buffer radius. Let the buffer radius step size be... The maximum buffer radius is Then the first buffer radius for: ; in, , This represents the number of buffer scales. The radius is... buffer area for: ; For radius The buffer zone filters building points whose planar distances satisfy the following formula: ; in, The planar coordinates of the target analysis point are used. These are the planar coordinates of the building points. Building points located within the current buffer and possessing a building instance number are considered as the set of valid building points. The set of building instances is formed by removing duplicate building instance numbers corresponding to valid building points. .

[0111] Number of buildings Determined based on the number of elements in the set of building instances: ; Building height metrics are calculated based on the ground clearance of each building point in the valid building point set. Building height metrics include one or more of the following: maximum building height, average building height, 90th percentile of height, and coefficient of variation of height. ; ; ; ; in, To obtain the 90th percentile value of the height; The standard deviation of the effective building point height above the ground; This represents the average height of the effective building points above the ground. To prevent extremely small positive numbers with a denominator of zero.

[0112] Building coverage area is determined based on the area occupied by the effective building points on the horizontal plane within the grid. Let the building coverage grid resolution be... The number of unique grid cells occupied by valid building points within the current buffer is The building coverage area for: ; Building coverage for: ; For each building instance in the current buffer Calculate the projected area based on its planar projection points. and boundary perimeter The height of the building instance is determined based on the 90th percentile of the building point's height above the ground. In one implementation, the projected area and boundary perimeter The convex hull area can be calculated based on the convex hull of the building instance's planar projection points. When the convex hull area calculation fails or the area is invalid, the area occupied by the building point's planar grid can be used as the projected area.

[0113] Building Instance Quantity for: ; Building density for: ; Building compactness can be determined based on the projected area and boundary perimeter of the building instance. For building instances Its compactness for: ; Current buffer zone building compactness The average compactness of each building instance used in the calculation: ; in, The number of building instances participating in the compactness calculation.

[0114] Boundary density Determined based on the ratio of the sum of the perimeters of the building instances' boundaries to the area of ​​the buffer zone: ; Patch density Determined based on the number of building instances and the buffer zone area, and converted to a per-hectare scale: ; Building congestion is determined based on the building instance's volume and the nearest neighbor distance between the building instances' center points. Let the building instances be... The size is Its distance from the center point of the nearest neighboring building instance is The minimum distance threshold is The building crowding for: ; in, This represents the number of building instances participating in the building congestion calculation. If the number of building instances participating in the calculation within the current buffer is less than two, the building congestion score is set to zero.

[0115] Notice, The meaning is different from Nr'. Among them, The number of building instances within a buffer of radius r, obtained by deduplicating the building instance numbers, represents the number of buildings in the buffer. Nr' represents the number of building instances that meet the building congestion calculation conditions and actually participate in the building congestion calculation.

[0116] Minimum distance threshold To avoid abnormally amplified calculation results due to distance being in the denominator of the building crowding calculation formula when the nearest neighbor distance between the center points of building instances is too small, a specific method is used. For each building instance, the nearest neighbor distance between its center points and those of other building instances is calculated, and this nearest neighbor distance is compared with a minimum distance threshold. When the nearest neighbor distance is less than the minimum distance threshold, the minimum distance threshold is used instead of the actual nearest neighbor distance in the calculation; when the nearest neighbor distance is not less than the minimum distance threshold, the actual nearest neighbor distance is used. The minimum distance threshold can be preset based on the point cloud spatial resolution, building instance segmentation accuracy, and the building scale of the target area. For example, in this embodiment, the minimum distance threshold is set to 1.0 m.

[0117] The sky visibility factor is calculated based on the azimuth and elevation angles between the viewpoint position at the target analysis point and the effective building points within the buffer zone. Let the three-dimensional coordinates of the target analysis point be... Input viewpoint height is Then the viewpoint coordinates are: ; For any valid building point within the current buffer zone Its horizontal distance relative to the viewpoint and elevation difference They are respectively: ; ; For satisfying and For the building point, calculate its elevation angle relative to the viewpoint: ; Let the number of azimuth intervals be Divide the horizontal 360-degree direction into Within each azimuth angle interval, the maximum elevation angle of the building point is taken. The current sky visibility factor in the buffer. for: ; Building obstruction rate Determined based on sky visibility factor: ; When there are no valid building points or valid building instances within a certain buffer, the number of buildings, building height, building coverage area, building coverage rate, building volume density, building compactness, building occlusion rate, boundary density, patch density, and building crowding of the buffer are all set to zero, and the sky visibility factor is set to one.

[0118] Example 5: Results output, visualization, and completion verification.

[0119] After calculating the three-dimensional spatial indicators for each buffer zone, the results are written to an indicator result file. This indicator result file may include a worksheet of three-dimensional spatial indicators and a worksheet of building segmentation information.

[0120] The Architectural 3D Spatial Indicators worksheet records various spatial indicators under different buffer radii. The Architectural Segmentation Information worksheet records architectural segmentation patterns, the number of architectural instances, and statistical information during the architectural segmentation process. The statistical information during architectural segmentation may include nearest neighbor distance statistics used to determine the spatial density of architectural points, the number of dominant rooftop points, and the number of architectural instance segments.

[0121] In one implementation, each record in the index results file corresponds to a buffer radius and includes the park name, target analysis point coordinates, target analysis point elevation, input viewpoint height, viewpoint absolute elevation, building segmentation mode, buffer radius, buffer area, and three-dimensional spatial indicators of each building.

[0122] Simultaneously, it can output point cloud processing result files and visualization result files. Point cloud processing result files can include non-ground point cloud files, categorized point cloud files with labeled ground categories, and point cloud files with building instance numbers generated when building instances exist. Visualization result files can include buffer visualization results centered on the target analysis point, and one or more of the following: building segmentation top view, side view, and 3D visualization results generated when building instances exist.

[0123] After the result file is generated, a completion verification file is generated. This completion verification file records the processing status of the current object, the input point cloud path, the output directory, the maximum buffer radius, the buffer radius step size, the expected number of indicator records, the actual number of indicator records, the maximum number of buildings, the building segmentation mode, and the output file information. After the completion verification file is generated, the output results of the current object are reviewed.

[0124] In one implementation, after the relevant result files and completion verification files for each processed object are generated, a completion review is performed on that processed object. This review is not performed separately after each individual file is generated, but rather a unified verification of all expected output results for the current processed object after its output process is completed.

[0125] Specifically, a preset buffer radius sequence is first generated based on the input maximum buffer radius and buffer radius step size, and the expected number of buffer index records (i.e., the expected number of index records) is determined accordingly. For example, when the buffer radius step size is 10 m and the maximum buffer radius is 500 m, the preset buffer radius sequence is 10 m, 20 m, ..., 500 m, a total of 50 scales, so the expected number of buffer index records is 50.

[0126] Next, check if the completion verification file corresponding to the currently processed object exists, and whether the processing status recorded in it is "processing completed". If the completion verification file does not exist or the processing status does not meet the requirements, the review will fail.

[0127] Based on this, check if the indicator result file exists and can be read normally; count the actual number of buffer indicator records and compare it with the expected number of buffer indicator records; at the same time, verify whether the actual recorded buffer radius sequence is consistent with the preset buffer radius sequence. If the number of records is inconsistent, or if there are missing, duplicate, or inconsistent buffer radii, the review fails.

[0128] Next, it checks whether the necessary point cloud processing result files and visualization result files exist and are not empty, including non-ground point cloud files, categorized point cloud files with labeled ground categories, and buffer visualization files. If a valid building instance exists for the current processing object, it also checks whether the point cloud file with the building instance number and the building segmentation visualization file exist and are not empty.

[0129] When the number of building points is lower than the first preset threshold, or when there are no valid building instances in each buffer, it is permissible not to generate point cloud files with building instance numbers and building segmentation visualization files. In this case, the main checks are whether the multi-scale index results with zero building number, the necessary point cloud processing results, the buffer visualization results, and the completeness verification files are complete.

[0130] When all the above conditions are met, the current processing object is deemed to have passed the review; if any condition is not met, the current processing object is deemed incomplete, and the corresponding missing files or abnormal items are recorded. Therefore, when the batch processing runs again, objects that have passed the review will skip redundant calculations, while objects that have failed the review will have their processing flow re-executed.

[0131] In one exemplary embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows. Figure 2 As shown, the computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores view-related point cloud data. The I / O interfaces are used for information exchange between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements a three-dimensional exponential batch processing method for architectural elements in exposed urban park scenes.

[0132] Those skilled in the art will understand that Figure 2 The structures shown are merely block diagrams of some structures related to the present application and do not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than shown in the figures, or combine certain components, or have different component arrangements. In an exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0133] In one exemplary embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0134] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0135] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Moreover, the collection, use and processing of the relevant data are carried out in compliance with the relevant data protection laws and policies of the country where the location is located, and with the authorization granted by the owner of the corresponding device.

[0136] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

[0137] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0138] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0139] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A batch processing method for building 3D indices in urban park exposure scenarios, characterized in that, include: Obtain the current target point cloud file and the corresponding target analysis point data; The current target point cloud file includes a 3D point cloud of a city park; The current target point cloud file is selected from a batch of point cloud files to be processed; Check if the current target point cloud file has a corresponding completion verification file and indicator result file; If the detection result is yes, then determine whether the current target point cloud file meets the preset completion conditions based on the corresponding completion verification file and indicator result file; If the judgment result is yes, return to the step "Get the current target point cloud file" until there are no unselected point cloud files in a batch of point cloud files to be processed; If the test result is negative or the judgment result is negative, then perform the following steps: The three-dimensional point cloud is classified into ground points and non-ground points to obtain a set of ground points and a set of non-ground points; and building points are extracted from the set of non-ground points to obtain a set of building points. A ground elevation model is constructed based on a set of ground points, and the ground elevation of each building point is determined based on the ground elevation model. When the number of building points exceeds the first preset threshold, a segmentation strategy is adaptively selected based on the spatial distribution characteristics of the building points to instantiate and segment the building points, resulting in several building instances. Centered on the target analysis point, a multi-scale buffer is constructed according to the preset buffer radius sequence, and the building three-dimensional spatial index of each scale buffer is calculated. Generate the indicator result file and completion verification file corresponding to the current target point cloud file; Return to the step "Get the current target point cloud file" until there are no unselected point cloud files in the batch of point cloud files to be processed.

2. The batch processing method for building 3D indices in urban park exposure scenarios according to claim 1, characterized in that, The three-dimensional spatial indicators of buildings include one or more of the following: number of buildings, building height, building coverage area, building coverage rate, building volume density, building compactness, sky visibility factor, building occlusion rate, boundary density, patch density, and building crowding. The index result file includes the name of the city park, the coordinates of the target analysis point, the elevation of the target analysis point, the height of the input viewpoint, the absolute elevation of the viewpoint, a three-dimensional spatial index table of buildings, and a building segmentation information worksheet. The three-dimensional spatial index table of buildings includes three-dimensional spatial indicators under different buffer zone radii. The building segmentation information worksheet includes building segmentation mode, number of building instances, and statistical data generated during the building segmentation process. The completion verification file includes a processing status identifier, input point cloud path, output directory path, maximum buffer radius, buffer radius step size, expected number of indicator records, actual number of indicator records, maximum number of buildings, building segmentation mode, and output file list; the expected number of indicator records is equal to the length of the preset buffer radius sequence; the actual number of indicator records refers to the number of buffer three-dimensional space indicator records in the building three-dimensional space indicator table.

3. The batch processing method for building 3D indices in urban park exposure scenarios according to claim 2, characterized in that, Also includes: Generate point cloud processing result files and visualization result files; The point cloud processing result file includes: a point cloud file containing non-ground points, a classified point cloud file with ground categories labeled, and a point cloud file with building instance numbers if building instances exist. The visualization result files include: a buffer visualization file showing the spatial range of each buffer zone centered on the target analysis point, and a building segmentation visualization file showing the spatial distribution of each building instance, provided that building instances exist.

4. The batch processing method for building 3D indices in urban park exposure scenarios according to claim 3, characterized in that, The preset completion conditions include a first condition, a second condition, a third condition, and a fourth condition; The first condition is: the completion verification file exists and the processing status is marked as completed; The second condition is: the indicator result file exists, and the number of buffer indicator records therein is equal to the expected number of indicator records, and the buffer radius sequence recorded therein is consistent with the preset buffer radius sequence; The third condition is that: non-ground point cloud files, classified point cloud files with labeled ground categories, and buffer visualization files exist and are not empty; The fourth condition is: given the existence of building instances, a point cloud file with a building instance number and a building segmentation visualization file exist and are not empty.

5. The batch processing method for building 3D indices in urban park exposure scenarios according to claim 1, characterized in that, The three-dimensional point cloud is classified into ground points and non-ground points, specifically including: First, a cloth simulation filtering method is used to separate ground points in the three-dimensional point cloud; If the number of extracted ground points is less than the second preset threshold, a downgraded ground estimation method based on grid elevation statistics is used to extract ground points. The downgraded ground estimation method based on grid elevation statistics includes: dividing the horizontal coordinates of the point cloud into grids according to a preset grid size; and determining ground points within each grid based on the elevation distribution of the points.

6. The batch processing method for building 3D indices in urban park exposure scenarios according to claim 1, characterized in that, Based on the spatial distribution characteristics of building points, an adaptive segmentation strategy is selected to instantiate and segment the building points, specifically including: Based on the horizontal coordinates, calculate the nearest neighbor distance statistics for each building point, and determine whether the current building point distribution belongs to a dense building scene based on the statistics. If the judgment result is negative, a general building segmentation strategy is adopted: clustering is performed based on the horizontal coordinates and height above the ground of the building points; based on the number of building points, building height and projected area of ​​each cluster result, the cluster results are filtered to obtain several building instances, and the number of each building instance is determined. If the judgment result is yes, then the roof-dominant building segmentation strategy is adopted: extract the roof-dominant points from the building points, cluster the roof-dominant points to obtain several roof clustering results; determine the corresponding building instance number for each roof clustering result; and determine the building instance number of each other building point according to the horizontal proximity relationship between other building points and the roof-dominant points.

7. The batch processing method for building 3D indices in urban park exposure scenarios according to claim 1, characterized in that, Also includes: If the number of building points is lower than the first preset threshold, it is determined that there are no building instances.

8. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that the processor executes the computer program to implement the architectural three-dimensional index batch processing method for urban park exposure scenarios as described in any one of claims 1-7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the batch processing method for building three-dimensional indices for urban park exposure scenarios as described in any one of claims 1-7.

10. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the batch processing method for building three-dimensional indices for urban park exposure scenarios as described in any one of claims 1-7.