A parking lot road center line topology construction method
By acquiring map element data, sampling parking space polygons and vehicle trajectory lines, and constructing a three-dimensional centerline using Gaussian mixture model and topological relationships, the problem of insufficient accuracy of the parking lot road centerline topology network is solved, achieving high-precision path planning and automatic parking.
Patent Information
- Application Number
- CN202611474830.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-21
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies suffer from insufficient geometric, semantic, and topological accuracy when constructing the centerline topology network of parking lot roads, failing to meet the high-precision map requirements of autonomous driving.
By acquiring map element data, sampling parking space polygons and vehicle trajectory lines, clustering is performed based on the spatial distribution characteristics of parking space polygons to generate floor structures, and probability distribution fitting is performed using a Gaussian mixture model to establish line-to-line topological relationships and line-to-parking space topological relationships. The binding results between parking spaces and center lines are output, thus realizing the construction of a three-dimensional center line.
It improves the geometric, semantic, and topological accuracy of the parking lot road centerline topology network, ensuring the accuracy and safety of path planning and automated parking.
Smart Images

Figure CN123181545A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent driving and high-precision map construction technology, specifically to a method for constructing the topology of the centerline of a parking lot road. Background Technology
[0002] The centerline and topology network of parking lot roads are the core data foundation for realizing Automated Parking (AVP), and the accuracy of its construction directly affects the accuracy and safety of vehicle path planning and navigation. Unlike open outdoor roads, parking lot environments are characterized by complex structures, limited space, and multiple intersecting levels, which places higher demands on the accuracy of the centerline topology network construction.
[0003] Existing methods suffer from several shortcomings in constructing the topological network of parking lot road centerlines. In terms of geometric accuracy, traditional centerline extraction methods are mostly based on 2D planar trajectory smoothing or simple skeleton extraction, employing fixed-parameter dilation or smoothing operations. Parking lots contain both narrow lanes and open intersection areas; fixed parameters cannot adapt to these spatial differences. This results in centerlines in narrow areas deviating from actual traversable boundaries and insufficient topological connectivity in open areas. Furthermore, existing methods often ignore the continuity of Z-axis elevation information, making it difficult to accurately reconstruct the 2D skeleton into a 3D multi-branched centerline that supports cross-floor representation. Regarding semantic accuracy, existing floor division methods rely heavily on manual annotation or simple elevation rule thresholds, which struggle to handle elevation noise and local terrain undulations in the collected data. This is particularly problematic for unknown planar areas or transition ramps lacking clear elevation features, easily leading to semantic errors or topological breaks in the floor structure. Finally, in terms of topological accuracy, noise in the collected trajectories easily generates numerous short edges, spikes, and micro-loops during topology construction, making the topology overly complex and unstable, requiring significant manual post-processing intervention and further reducing the reliability of the topological network.
[0004] In summary, the overall accuracy of existing technologies cannot meet the high-precision map requirements of autonomous driving. Therefore, there is an urgent need for a method to improve the accuracy of the map construction, specifically enhancing the accuracy of the parking lot road centerline topology network. Summary of the Invention
[0005] To overcome the above-mentioned technical defects, this application provides a method for constructing the topology of the centerline of a parking lot road.
[0006] To solve the above problems, this application is implemented according to the following technical solution:
[0007] Acquire map element data in the parking lot. The map element data includes a set of parking space polygons and a set of vehicle trajectory lines. The parking space polygons are formed by connecting multiple three-dimensional vertices in sequence to form a closed shape. The three-dimensional vertices are the position coordinates of the corner points of the parking spaces in three-dimensional space.
[0008] The vehicle trajectory line is divided into trajectory segments, and the trajectory segments are sampled to obtain sampling points;
[0009] Clustering is performed based on the spatial distribution characteristics of the parking space polygons to obtain the floor structure of the parking lot;
[0010] Based on the floor structure, the floor number of each trajectory segment is obtained;
[0011] Based on the distance relationship between the sampling points and the parking space polygon, a passage area is generated;
[0012] The skeleton of the passage area is extracted to obtain a two-dimensional centerline;
[0013] The elevation of the two-dimensional centerline is restored to obtain the three-dimensional centerline. The elevation restoration is the process of using the elevation information carried by the original vehicle trajectory points to assign elevation values to each sampling point on the two-dimensional plane centerline and converting it into a three-dimensional spatial curve.
[0014] Based on the spatial distance between the endpoints of the three-dimensional centerline, a line-to-line topological relationship is established;
[0015] Based on the projection distance and directional angle between the parking space and the three-dimensional centerline, a line-parking space topology is established.
[0016] Based on the line-to-line topology and line-to-parking space topology, the topology network of each centerline and the road centerline is obtained;
[0017] Based on the line-parking space topology relationship, the binding result between the parking space and the center line is output.
[0018] Furthermore, the step of clustering based on the spatial distribution features of the parking space polygons to obtain the floor structure of the parking lot includes:
[0019] Extract the elevation value of the center point of each parking space polygon in the set of parking space polygons, and construct an elevation set;
[0020] The optimal number of clusters for a Gaussian mixture model is determined using the Bayesian information criterion.
[0021] Based on the optimal number of clusters, a Gaussian mixture model is used to fit the probability distribution of the elevation set to obtain the Gaussian component to which the center elevation value of each parking space belongs.
[0022] The floor number corresponding to each parking space is determined based on the Gaussian component.
[0023] The parking spaces are assigned to their corresponding floors based on their floor numbers to obtain the parking lot's floor structure.
[0024] Furthermore, obtaining the floor number of each trajectory segment based on the floor structure includes:
[0025] Search for adjacent parking spaces in the XY plane, and calculate the voting weight based on the planar distance and elevation difference between the sampling point and the center of the adjacent parking space. The voting weight is inversely proportional to the planar distance and elevation difference.
[0026] Based on the voting weights, a weighted vote is performed on the floors of adjacent parking spaces to determine the floor number of each sampling point and record the vote value of each floor.
[0027] When the highest vote value is greater than the confidence parameter multiplied by the second highest vote value, the sampling point is assigned to the floor with the highest number of votes;
[0028] If all sampling points within a trajectory segment are successfully assigned, the trajectory segment is successfully stratified, and the corresponding floor number is the floor number that appears most frequently in the entire trajectory segment; otherwise, it is not successfully stratified.
[0029] Generate floor prototypes from the successfully layered trajectory segments;
[0030] For trajectory segments that were not successfully stratified, calculate the local slope;
[0031] Based on the comparison results between the local slope and the slope threshold, the trajectory segments are classified.
[0032] The distance between the trajectory feature vector of the trajectory segment and the feature vector of each floor prototype is calculated, and the floor prototype with the closest distance is selected as the matching result. The floor number of the trajectory segment is determined based on the matching result.
[0033] Further, generating the passage area based on the distance relationship between the sampling point and the parking space polygon includes:
[0034] Calculate the distance from the sampling point to the nearest parking space boundary;
[0035] The expansion radius of the sampling point is determined based on the distance from the sampling point to the nearest parking space boundary. When the sampling point is located inside the parking space polygon, the expansion radius is a preset minimum expansion radius. When the sampling point is located outside the parking space polygon, the expansion radius is equal to the preset minimum expansion radius plus the distance multiplied by a preset scaling factor, and does not exceed a preset maximum expansion radius.
[0036] A buffer region is generated with each sampling point as the center and the corresponding expansion radius as the radius;
[0037] Perform a union operation on all buffer areas to obtain the passage area.
[0038] Further, the elevation restoration of the two-dimensional centerline to obtain the three-dimensional centerline includes:
[0039] Search for neighborhood points of each sampling point on the two-dimensional center line in the vehicle trajectory line, extract the elevation values of the neighborhood points, and construct an elevation candidate set;
[0040] The candidate elevation set is clustered according to a preset height threshold to obtain at least one elevation layer;
[0041] Each sampling point is processed sequentially along the direction of the two-dimensional centerline. If the neighboring points of the current sampling point belong to a single elevation layer, the single elevation layer is selected. If the neighboring points of the current sampling point belong to multiple elevation layers, the elevation layer with the smallest elevation difference between the current sampling point and the previous sampling point is selected. If the minimum elevation difference is not less than a preset continuity threshold, the current elevation trajectory is terminated and a new elevation trajectory branch is generated. The elevation trajectory is a continuous three-dimensional spatial curve formed when points on the two-dimensional centerline are continuously assigned to the same elevation layer in spatial order.
[0042] Based on each sampling point and its selected elevation layer, generate the three-dimensional centerline corresponding to each elevation trajectory branch.
[0043] Furthermore, establishing line-to-line topological relationships based on the spatial distance between the endpoints of the three-dimensional centerline includes:
[0044] Extract the start and end points of each 3D centerline;
[0045] Calculate the spatial distance between the endpoints of one three-dimensional centerline and the endpoints of another three-dimensional centerline. When the spatial distance is less than a connectivity threshold, mark the two endpoints as candidate connection pairs.
[0046] Cluster all candidate connection pairs and group candidate connection pairs that share the same endpoint into the same connectivity group. Each connectivity group corresponds to a topology node.
[0047] When the number of endpoints in the connected group containing the start and end points of the three-dimensional centerline is 1, the three-dimensional centerline is determined to be an isolated edge and is removed.
[0048] Calculate the average spatial coordinates of all endpoints in the connected group retained after removing isolated edges. If the minimum projection distance among the projection distances of the average spatial coordinates to the center line connected by the connected group retained after removing isolated edges is greater than a preset deviation threshold, then the average spatial coordinates are corrected to the orthogonal projection point on the center line as the three-dimensional coordinates of the topological node corresponding to the connected group retained after removing isolated edges.
[0049] When the length of the three-dimensional centerline is less than a preset length threshold and the number of edges connected to the topological nodes at both ends of the three-dimensional centerline is greater than or equal to 2, the topological nodes at both ends are merged into a single node.
[0050] Furthermore, establishing the line-parking space topology based on the projected distance and directional angle between the parking space and the three-dimensional centerline includes:
[0051] Extract the midpoint of the edge of the parking space facing the road;
[0052] Retrieve candidate centerlines within a preset search radius;
[0053] Calculate the projected distance from the midpoint of the edge to the candidate center line, and remove candidate center lines whose projected distance is greater than a preset distance threshold;
[0054] Calculate the angle between the local direction of the candidate centerline at the projection position and the direction of the parking space edge, and remove candidate centerlines whose angle is less than a preset angle threshold;
[0055] The comprehensive matching cost is calculated based on the projection distance and the directional angle, and the candidate centerline with the smallest comprehensive matching cost is selected as the binding centerline of the parking space.
[0056] Furthermore, the process of obtaining the topology network of each centerline and the road centerline based on the line-to-line topology and the line-to-parking space topology includes:
[0057] Based on the floor number of the corresponding trajectory segment, obtain the floor number of each centerline;
[0058] Based on the line-parking space topology, determine the parking spaces bound to each center line;
[0059] When a center line is bound to a parking space, if the floor number of the center line is inconsistent with the floor number of the bound parking space, the floor number of the center line will be updated to the floor number of the bound parking space.
[0060] When a center line is bound to multiple parking spaces, the floor numbers of each bound parking space are counted, and the floor number with the highest frequency is selected as the floor number of the bound parking space of the center line.
[0061] Based on the connectivity in the line-to-line topology, the center lines of floor numbers within a preset unknown interval are clustered to obtain unknown connected groups;
[0062] The floor numbers of adjacent known floor centerlines on the boundary of the unknown connected group are counted, and the target floor is determined by majority vote. The floor numbers of all centerlines in the unknown connected group are then updated to the target floor.
[0063] Furthermore, the step of obtaining the topological network of each centerline and the road centerline based on the line-to-line topology and the line-to-parking space topology also includes:
[0064] Retrieve the floor number of the centerline associated with a regular topology node;
[0065] When all the floor numbers are known floor numbers, the floor number of the regular topology node is set to that floor number;
[0066] When all the floor numbers are unknown, the floor numbers of the regular topology nodes are marked as undefined.
[0067] Furthermore, the step of outputting the binding result between the parking space and the center line based on the line-parking space topology includes:
[0068] Obtain the centerline identifier bound to each parking space polygon;
[0069] The output includes a set of three-dimensional centerlines containing standardized start and end node IDs and a set of parking spaces associated with road IDs, serving as the binding result between the parking spaces and the centerlines.
[0070] Compared with the prior art, the beneficial effects of this application are:
[0071] This application improves the construction accuracy of the parking lot road centerline topology network from three dimensions: geometric accuracy, semantic accuracy, and topological accuracy by using techniques such as map element data fusion, adaptive expansion, elevation restoration, floor clustering, and two-stage trajectory allocation.
[0072] In terms of geometric accuracy, this application dynamically adjusts the expansion radius based on the distance from the sampling point to the nearest parking space boundary, so that the narrow lane area can accurately restore the passable boundary, the open area can ensure topological connectivity, and the two-dimensional skeleton can be reconstructed into a three-dimensional centerline using the elevation information of the original trajectory points. This solves the problems of fixed parameter expansion causing the centerline to deviate from the real passable boundary and lack of Z-axis elevation expression.
[0073] In terms of semantic accuracy, this application uses the center elevation of parking spaces as samples, employs a Gaussian mixture model for probability distribution fitting, and introduces the Bayesian information criterion to automatically determine the optimal number of clusters, thereby achieving automated identification of floor structures. Combined with a two-stage floor allocation strategy, the first stage allocates initial floors and generates floor prototypes through weighted voting by neighboring parking spaces. The second stage performs slope analysis on unsuccessful stratification trajectories and matches them with the floor prototypes based on feature similarity, ensuring accurate floor assignment for each trajectory segment. This solves the problem of floor misalignment and breakage caused by manual annotation or simple threshold division.
[0074] In terms of topological accuracy, this application establishes line-to-line topological relationships based on endpoint spatial distance and eliminates isolated edges and short-side collapses. It establishes line-to-parking space topological relationships based on projection distance and directional angle to ensure accurate parking space connection. Based on topological connectivity, it propagates floor semantics to unknown areas and ramp areas through majority voting and hierarchical inheritance rules, so that each center line and each topological node in the topological network has accurate and coherent floor semantic labels.
[0075] The improved accuracy in the three dimensions mentioned above supports each other and jointly solves the technical problem of insufficient accuracy in existing methods. The output road centerline topology network can support autonomous driving applications such as cross-floor path planning and automatic parking. Attached Figure Description
[0076] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0077] The specific embodiments of this application will be further described in detail below with reference to the accompanying drawings, wherein:
[0078] Figure 1 This is a schematic diagram illustrating the steps of a parking lot road centerline topology construction method provided in this application. Detailed Implementation
[0079] 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 of ordinary skill in the art without creative effort are within the scope of protection of this application. It should be understood that the step numbers used herein are only for convenience of description and are not intended to limit the order of execution of the steps.
[0080] 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.
[0081] In one exemplary embodiment, such as Figure 1 As shown, this application provides a method for constructing the topology of the centerline of a parking lot road, including steps 101 to 111.
[0082] Step 101: Obtain map element data in the parking lot. The map element data includes a set of parking space polygons and a set of vehicle trajectory lines. The parking space polygons are formed by connecting multiple three-dimensional vertices in sequence to form a closed shape. The three-dimensional vertices are the position coordinates of the corner points of the parking spaces in three-dimensional space.
[0083] Specifically, by performing spatiotemporal alignment and fusion of data collected from multiple parking lots, multiple types of core map element data in the parking lots are obtained. The core map elements include at least:
[0084] The set of parking space polygons is denoted as ,in This represents the total number of parking spaces. Each parking space is represented by a polygon. A closed structure composed of multiple sequentially arranged 3D vertices is used to describe the actual occupied area of a parking space in 3D space. Preferably, the parking space polygon has undergone cross-pass data association, duplicate detection, and fusion processing to ensure that each parking space has a unique physical correspondence in space. Furthermore, iterative closest point (ICP) registration, graph optimization, or multi-frame fusion methods based on semantic constraints can be used to align parking space elements.
[0085] The set of vehicle trajectory lines is denoted as ,in This represents the total number of trajectory lines. Each journey includes [number of trajectory lines]. It consists of multiple three-dimensional trajectory points arranged in chronological order, used to reflect the actual driving path of vehicles in the parking lot. Preferably, the trajectory lines have been aligned with the coordinate system, and the trajectories of different trips are kept independent without forced fusion, so as to preserve the real traffic behavior characteristics of different vehicles.
[0086] Step 102: Divide the vehicle trajectory line into trajectory segments, sample the trajectory segments, and obtain sampling points.
[0087] Specifically, for each trajectory segment, based on its total length and preset sampling step size (preferably, the step size... The number of sampling points is determined. Preferably, uniform sampling is performed using an arc length parameterization method to reduce the impact of uneven trajectory point density and obtain a set of sampling points.
[0088] The sampling points are used in subsequent steps to generate a passage area based on the spatial relationship between the sampling points and parking spaces, and to obtain the floor number of the trajectory segment based on floor voting based on the sampling points.
[0089] Step 103: Cluster the parking spaces based on their spatial distribution features to obtain the floor structure of the parking lot.
[0090] Furthermore, the step of clustering based on the spatial distribution features of the parking space polygons to obtain the floor structure of the parking lot includes:
[0091] Extract the elevation value of the center point of each parking space polygon in the set of parking space polygons, and construct an elevation set;
[0092] The optimal number of clusters for a Gaussian mixture model is determined using the Bayesian information criterion.
[0093] Based on the optimal number of clusters, a Gaussian mixture model is used to fit the probability distribution of the elevation set to obtain the Gaussian component to which the center elevation value of each parking space belongs.
[0094] The floor number corresponding to each parking space is determined based on the Gaussian component.
[0095] The parking spaces are assigned to their corresponding floors based on their floor numbers to obtain the parking lot's floor structure.
[0096] Specifically, since parking lots typically contain multiple relatively independent floor plans, parking spaces exhibit a clear layered clustering distribution along the Z-axis (elevation). Preferably, the center elevation of each parking space is used as the clustering sample. A Gaussian Mixture Model (GMM) is employed to perform cluster analysis on the parking space elevations to automatically identify the parking lot's floor structure. The floor structure includes the floor number of each parking space and the total number of floors.
[0097] For each parking space polygon, calculate the elevation value of its geometric center point. Construct a set of elevations for all parking space center points. .
[0098] A probabilistic model containing C Gaussian components is used to model the elevation set Z. The expectation-maximization (EM) algorithm is used to iteratively estimate the model parameters, including the weights, mean, and variance of each component.
[0099] To avoid manually specifying the number of floors, the Bayesian Information Criterion (BIC) is used to determine the optimal number of clusters C*, i.e., to find the C value that minimizes BIC(C). Preferably, when the mean difference between adjacent Gaussian components is less than a preset height threshold, adjacent floors are merged to reduce the problem of excessive stratification caused by local noise.
[0100] Step 104: Based on the floor structure, obtain the floor number of each trajectory segment.
[0101] Furthermore, obtaining the floor number of each trajectory segment based on the floor structure includes:
[0102] Search for adjacent parking spaces in the XY plane, and calculate the voting weight based on the planar distance and elevation difference between the sampling point and the center of the adjacent parking space. The voting weight is inversely proportional to the planar distance and elevation difference.
[0103] Based on the voting weights, a weighted vote is performed on the floors of adjacent parking spaces to determine the floor number of each sampling point and record the vote value of each floor.
[0104] When the highest vote value is greater than the confidence parameter multiplied by the second highest vote value, the sampling point is assigned to the floor with the highest number of votes;
[0105] If all sampling points within a trajectory segment are successfully assigned, the trajectory segment is successfully stratified, and the corresponding floor number is the floor number that appears most frequently in the entire trajectory segment; otherwise, it is not successfully stratified.
[0106] Generate floor prototypes from the successfully layered trajectory segments;
[0107] For trajectory segments that were not successfully stratified, calculate the local slope;
[0108] Based on the comparison results between the local slope and the slope threshold, the trajectory segments are classified.
[0109] The distance between the trajectory feature vector of the trajectory segment and the feature vector of each floor prototype is calculated, and the floor prototype with the closest distance is selected as the matching result. The floor number of the trajectory segment is determined based on the matching result.
[0110] After obtaining the parking lot floor clustering results, assign corresponding floor numbers to various map elements and assign different category labels to different types of spatial areas. For example, the first numbering interval can be used to represent normal floors (such as floor numbers). The second numbering interval represents an unknown area (such as floor number). The third numbering interval represents the ramp area (such as floor number). ).
[0111] For each parking space, the corresponding floor number is directly assigned based on its GMM clustering result.
[0112] For the trajectory segment, a two-stage floor allocation strategy is adopted.
[0113] Phase 1: For each sampling point in the trajectory segment, search for the k nearest parking spaces within a distance threshold range in the XY plane, preferably with k ranging from 3 to 10. For each adjacent parking space, calculate a weighted score to reflect its support for the floor affiliation of the sampling point. The calculation formula is as follows: .in, The distance between the sampling point and the center of the parking space in the XY plane. The height difference along the Z-axis. For adjustable weight parameters, To avoid dividing by zero for small constants.
[0114] Based on the above weights, a weighted vote is performed on the floor corresponding to the nearest parking space to obtain the vote value for each floor. If the vote value of a certain floor satisfies... If the sampling point is not specified, it will be assigned to the corresponding floor. This is the confidence level control parameter. The floor assignment results for all sampling points along the entire trajectory segment are statistically analyzed, and the floor with the most frequent occurrences is selected as the initial floor number for that trajectory segment.
[0115] To ensure the reliability of the floor prototype, the set of trajectory segments that were successfully layered in this stage can be used to generate the trajectory prototype features of each floor, including average height, height range, XY projection range, and slope statistical features, providing a prototype basis for subsequent layer matching of unsuccessfully layered trajectories.
[0116] Phase Two: For trajectory segments that failed to be stratified in Phase One, further trajectory structure analysis is performed. First, the local slope of the trajectory segment is calculated: Based on the slope threshold, the trajectory segments are classified into planar trajectory segments, uphill trajectory segments, or downhill trajectory segments. Subsequently, trajectory features are extracted, including average height, height range, XY projection range, trajectory length, and slope statistical features.
[0117] Next, the trajectory segments to be layered are matched with known floor prototypes based on similarity. These known floor prototypes are generated statistically from the trajectory segments successfully layered in the first stage. Preferably, Euclidean distance, Mahalanobis distance, or weighted feature distance can be used for matching to determine the most similar floor. If the match is successful, the trajectory segment is assigned to the corresponding floor; if the match fails, a special floor number is created for the trajectory segment to ensure the integrity of the topological structure: it is assigned to an unknown plane area number (second number interval) or a ramp area number (third number interval). After processing, a set of parking spaces with floor semantic labels is obtained. and trajectory segment set Each map element is associated with a corresponding floor number, providing input data for subsequent centerline geometry generation and topology construction.
[0118] Step 105: Generate a passage area based on the distance relationship between the sampling point and the parking space polygon.
[0119] Further, generating the passage area based on the distance relationship between the sampling point and the parking space polygon includes:
[0120] Calculate the distance from the sampling point to the nearest parking space boundary;
[0121] The expansion radius of the sampling point is determined based on the distance from the sampling point to the nearest parking space boundary. When the sampling point is located inside the parking space polygon, the expansion radius is a preset minimum expansion radius. When the sampling point is located outside the parking space polygon, the expansion radius is equal to the preset minimum expansion radius plus the distance multiplied by a preset scaling factor, and does not exceed a preset maximum expansion radius.
[0122] A buffer region is generated with each sampling point as the center and the corresponding expansion radius as the radius;
[0123] Perform a union operation on all buffer areas to obtain the passage area.
[0124] Specifically, for each sampling point, the distance to the nearest parking space boundary is calculated. If the sampling point is located inside the parking space, the distance is recorded as 0.
[0125] The adaptive expansion radius is defined based on this distance. When the sampling point is located inside or in contact with a parking space, In other cases, .in, For the minimum expansion radius, The maximum expansion radius, This is the distance scaling factor. Preferably, , , This design allows for smaller expansion in narrow lane areas and larger expansion in open areas, thus more accurately restoring the actual traffic space.
[0126] For each sampling point, a circular buffer region is constructed with its adaptive expansion radius as the radius. The buffer regions of all sampling points are then combined to obtain the polygon of the vehicle-accessible area. Preferably, isolated regions with an area smaller than a threshold are removed, and boundary noise is smoothed. Furthermore, morphological closing operations can be used to eliminate local breaks between trajectories.
[0127] Step 106: Extract the skeleton of the passage area to obtain a two-dimensional center line.
[0128] To extract the road center structure from the traffic area, the traffic area is rasterized, and a road skeleton is generated based on a morphological skeleton extraction algorithm. Then, the stability of the centerline is improved through graph structure optimization.
[0129] The polygon of the passage area Convert to a binary raster image, where pixels within the polygonal region are set to 1, and pixels outside the region are set to 0. The preferred raster resolution is... .
[0130] A morphological thinning algorithm is used to skeletonize the binary raster image, extracting a skeleton of single-pixel width. Preferably, any one of the Zhang-Suen algorithm, Guo-Hall algorithm, or Medial Axis algorithm can be used. Furthermore, to reduce edge jagged edges, Gaussian smoothing or opening / closing operations can be performed on the raster image before skeletonization.
[0131] Convert the skeleton graph into an undirected graph structure. ,in It is a set of skeleton pixel nodes. This represents the set of connections between nodes. An eight-neighborhood connection method is used to construct the graph structure. Based on node degree, the skeleton nodes are divided into: endpoint nodes (degree 1), path nodes (degree 2), and branch nodes (degree ≥ 3). Endpoint nodes and branch nodes are designated as critical nodes.
[0132] For endpoint branches in the graph structure, calculate their path length to the nearest critical node. When the path length is less than a preset path length threshold, delete the corresponding branch to eliminate short spike structures caused by trajectory noise. The preset path length threshold is set according to the trajectory sampling frequency, positioning accuracy, and scene spatial scale, and preferably ranges from 0.5 to 5m. In a preferred embodiment, the preset threshold is set to 2m. When the endpoint branch length is less than 2m, the branch is considered an abnormally short branch caused by trajectory noise and is deleted.
[0133] For small-scale closed loops in a graph structure, when the number of nodes in the closed loop is less than a preset node number threshold, the closed loop is shrunk to a single representative node while retaining its connection with external nodes. This reduces local redundancy in the skeleton structure and improves the stability of the centerline. The preset threshold is used to determine the size of the closed loop structure, and its value is determined based on the trajectory sampling density, graph node generation strategy, and scene spatial scale. Preferably, the preset node number threshold ranges from 3 to 10 nodes. In a preferred embodiment, the threshold is set to 5. When the number of nodes in the closed loop is less than 5, the closed loop is shrunk to a single representative node while retaining its connection with external nodes.
[0134] Extract the center path of the road from the optimized graph structure. For any key node, traverse along the graph edges to the next key node to obtain the path node sequence. Then, convert the rasterized path into a vectorized polyline, and the set of all paths constitutes the two-dimensional centerline result.
[0135] The above optimizations can reduce local redundant structures in the skeleton and improve the stability of the centerline.
[0136] Step 107: Perform elevation restoration on the two-dimensional centerline to obtain the three-dimensional centerline. The elevation restoration is the process of using the elevation information carried by the original vehicle trajectory points to assign elevation values to each sampling point on the two-dimensional plane centerline and converting it into a three-dimensional spatial curve.
[0137] Further, the elevation restoration of the two-dimensional centerline to obtain the three-dimensional centerline includes:
[0138] Search for neighborhood points of each sampling point on the two-dimensional center line in the vehicle trajectory line, extract the elevation values of the neighborhood points, and construct an elevation candidate set;
[0139] The candidate elevation set is clustered according to a preset height threshold to obtain at least one elevation layer;
[0140] Each sampling point is processed sequentially along the direction of the two-dimensional centerline. If the neighboring points of the current sampling point belong to a single elevation layer, the single elevation layer is selected. If the neighboring points of the current sampling point belong to multiple elevation layers, the elevation layer with the smallest elevation difference between the current sampling point and the previous sampling point is selected. If the minimum elevation difference is not less than a preset continuity threshold, the current elevation trajectory is terminated and a new elevation trajectory branch is generated. The elevation trajectory is a continuous three-dimensional spatial curve formed when points on the two-dimensional centerline are continuously assigned to the same elevation layer in spatial order.
[0141] Based on each sampling point and its selected elevation layer, generate the three-dimensional centerline corresponding to each elevation trajectory branch.
[0142] Specifically, since the skeleton extraction process is completed in a two-dimensional plane, the original trajectory is used to recover the centerline elevation information, thereby constructing a complete three-dimensional centerline.
[0143] For sampling points on the two-dimensional center line, in the original trajectory set The trajectory points within the search spatial neighborhood are used to obtain a candidate set of elevations. Preferably, only those with horizontal distances meeting a preset threshold are retained. The neighborhood trajectory points.
[0144] The candidate elevation sets are clustered, with similar elevation values grouped into the same level, resulting in several elevation layers. Each layer corresponds to a potential spatial layer or ramp transition structure in the parking lot.
[0145] Sampling points are processed sequentially along the centerline, and an elevation correlation is established through the continuity constraint of elevation changes: when a certain elevation layer remains stable between adjacent sampling points (e.g., the elevation difference between adjacent points is less than a preset continuity threshold), the elevation trajectory continues; when a new elevation layer appears and meets the continuity condition, a new elevation trajectory branch is generated; when the continuity of a certain elevation layer is interrupted, the elevation trajectory is terminated. This achieves the decomposition and reconstruction of a two-dimensional centerline into multiple three-dimensional centerlines.
[0146] By mapping each elevation trajectory back to the spatial coordinates of the centerline, a three-dimensional centerline set is obtained, realizing a unified expression of the parking lot's multi-level and ramp structures.
[0147] For each generated 3D centerline, resampling is performed along its length at fixed intervals to obtain a resampled point sequence. Preferably, the resampling interval is 1m to 3m. By standardizing the sampling interval, the impact of uneven density of the original centerline points on direction estimation can be reduced.
[0148] For each point in the resampled point sequence, calculate the local orientation angle ϕ = arctan(θ) using its immediate and neighboring points. Here, Δx and Δy represent the difference in X and Y coordinates between the two endpoints of the neighborhood window, respectively. This yields the centerline direction sequence. Preferably, a sliding window method is used to calculate the direction angle to improve the stability of the direction estimation.
[0149] Calculate the directional change between adjacent sampling points The cumulative directional change along the centerline is statistically analyzed. When the cumulative directional change exceeds a preset cumulative threshold, or when a single directional change exceeds a preset abrupt change threshold, the centerline is split at the current position. Preferably, the cumulative directional change threshold is set to 20°, and the single directional change threshold is set to 45°. The split centerline segment will serve as the basic unit for subsequent topology node connections.
[0150] Through the above processing, the decomposition and reconstruction of the two-dimensional centerline into multiple three-dimensional centerlines, as well as the unified expression of the parking lot's multi-level and ramp structures, are achieved. By unifying the sampling interval, the impact of uneven density of the original centerline points on direction estimation can be reduced.
[0151] Step 108: Establish line-to-line topology based on the spatial distance between the endpoints of the three-dimensional centerline.
[0152] Furthermore, establishing line-to-line topological relationships based on the spatial distance between the endpoints of the three-dimensional centerline includes:
[0153] Extract the start and end points of each 3D centerline;
[0154] Calculate the spatial distance between the endpoints of one three-dimensional centerline and the endpoints of another three-dimensional centerline. When the spatial distance is less than a connectivity threshold, mark the two endpoints as candidate connection pairs.
[0155] Cluster all candidate connection pairs and group candidate connection pairs that share the same endpoint into the same connectivity group. Each connectivity group corresponds to a topology node.
[0156] When the number of endpoints in the connected group containing the start and end points of the three-dimensional centerline is 1, the three-dimensional centerline is determined to be an isolated edge and is removed.
[0157] Calculate the average spatial coordinates of all endpoints in the connected group retained after removing isolated edges. If the minimum projection distance among the projection distances of the average spatial coordinates to the center line connected by the connected group retained after removing isolated edges is greater than a preset deviation threshold, then the average spatial coordinates are corrected to the orthogonal projection point on the center line as the three-dimensional coordinates of the topological node corresponding to the connected group retained after removing isolated edges.
[0158] When the length of the three-dimensional centerline is less than a preset length threshold and the number of edges connected to the topological nodes at both ends of the three-dimensional centerline is greater than or equal to 2, the topological nodes at both ends are merged into a single node.
[0159] Specifically, in order to connect discrete centerline segments into a connected road network and eliminate redundant structures, a topology construction strategy based on endpoint spatial matching and graph connectivity optimization is adopted.
[0160] Extract the start and end points of each 3D centerline as initial topology nodes. For nodes containing... The set of center lines generates a total of Each node has an initial endpoint node, and each node records its three-dimensional spatial coordinates and the identifier of its centerline.
[0161] The set of centerlines is traversed, and the minimum spatial distance from one endpoint of a centerline to another is calculated. If this distance is less than a preset connectivity tolerance threshold, the two endpoints are marked as candidate connection pairs. Further, a graph connectivity analysis algorithm is used to cluster and merge all candidate connection pairs, grouping endpoint nodes whose spatial locations satisfy the connectivity condition into the same node connected component. The preset connectivity tolerance threshold is used to determine the spatial continuity between endpoints of different centerlines, and its value is determined based on trajectory positioning accuracy, centerline fitting error, and road spatial scale. Preferably, the connectivity tolerance threshold ranges from 0.5 to 5 m. In a preferred embodiment, it is set to 2 m; when the minimum spatial distance between two centerline endpoints is less than 2 m, they are considered candidate connection relationships.
[0162] Count the number of endpoints contained in the connected components of each node. If the connected components containing the start and end points of a centerline both have a size of 1, meaning they are not connected to any other centerlines, then they are considered isolated edges and removed.
[0163] For the retained connected components, node coordinate optimization is performed: First, the average spatial coordinates of all endpoints within the component are calculated; then, the minimum projection distance from the average spatial coordinates to the associated centerline of the component is calculated. If the projection distance is greater than a preset deviation threshold, it indicates that the average coordinates deviate significantly from the actual road, and the node coordinates are corrected to the orthogonal projection point of the average spatial coordinates on the associated centerline; otherwise, the average spatial coordinates are retained as the final three-dimensional coordinates of the topological node. The preset deviation threshold is used to determine the positional deviation between the node's average coordinates and the associated centerline, and its value is set based on the trajectory positioning accuracy, centerline fitting error, and road width. Preferably, the deviation threshold ranges from 0.3 to 2m. In a preferred embodiment, it is set to 1m; when the minimum distance from the node's average coordinates to the associated centerline is greater than 1m, the node is corrected to the orthogonal projection position on the centerline.
[0164] To avoid redundant short edges and small closed loops in the topology graph caused by local noise, short edge collapse processing is performed on the topology network.
[0165] The degree of each node in the topology network is counted, which is the number of centerlines connecting that node. The three-dimensional spatial length of each valid centerline is calculated. If the length of a centerline is less than a preset length threshold, and the degree of the nodes at its starting and ending points is greater than or equal to 2, a collapse operation is triggered: the starting and ending points of the centerline are topologically merged into a single node, and the connection relationships of the affected centerlines are updated. Subsequently, invalid self-loop edges generated after merging are removed, thereby improving the simplicity of the topology network.
[0166] Step 109: Based on the projection distance and directional angle between the parking space and the three-dimensional centerline, establish the line-parking space topology relationship.
[0167] Furthermore, establishing the line-parking space topology based on the projected distance and directional angle between the parking space and the three-dimensional centerline includes:
[0168] Extract the midpoint of the edge of the parking space facing the road;
[0169] Retrieve candidate centerlines within a preset search radius;
[0170] Calculate the projected distance from the midpoint of the edge to the candidate center line, and remove candidate center lines whose projected distance is greater than a preset distance threshold;
[0171] Calculate the angle between the local direction of the candidate centerline at the projection position and the direction of the parking space edge, and remove candidate centerlines whose angle is less than a preset angle threshold;
[0172] The comprehensive matching cost is calculated based on the projection distance and the directional angle, and the candidate centerline with the smallest comprehensive matching cost is selected as the binding centerline of the parking space.
[0173] Specifically, in order to establish the connection between parking spaces and the road network, a feature matching strategy based on spatial proximity and directional consistency is adopted to accurately bind each parking space to its corresponding traffic centerline.
[0174] A spatial index structure is constructed for all valid 3D centerlines, which are the 3D centerlines retained after isolating edges. For each parking space polygon, the center point of its edge facing the road is extracted. Using the edge center point as a reference, within a preset search radius, a set of candidate centerlines is quickly retrieved using the spatial index structure.
[0175] For each parking space and its candidate centerline, calculate the comprehensive matching cost, which is a weighted average of distance cost and angle cost:
[0176] First, calculate the average projected distance from the edge endpoint of the parking space to the candidate centerline. If the average projected distance is greater than a preset maximum projected distance threshold, the candidate centerline is directly eliminated.
[0177] Next, the directional angle score is calculated. The local tangent vector of the candidate centerline at the projection position is extracted, and the absolute value of the cosine of the angle between it and the tangent vector of the parking space edge is calculated as the parallelism score. If the parallelism score is less than a preset minimum parallelism threshold, the candidate centerline is eliminated.
[0178] Finally, construct the comprehensive matching cost function: .in, The distance cost after normalization. The angle cost is calculated based on the parallelism score. and These are distance weights and angle weights, respectively.
[0179] Iterate through all candidate centerlines for parking spaces and select the centerline with the lowest overall matching cost as the optimal matching result. Assign a unique identifier to the corresponding parking space to complete the binding of the line-parking space topology.
[0180] Step 110: Based on the line-to-line topology and line-to-parking space topology, obtain the topology network of each centerline and the road centerline.
[0181] Furthermore, the process of obtaining the topology network of each centerline and the road centerline based on the line-to-line topology and the line-to-parking space topology includes:
[0182] Based on the floor number of the corresponding trajectory segment, obtain the floor number of each centerline;
[0183] Based on the line-parking space topology, determine the parking spaces bound to each center line;
[0184] When a center line is bound to a parking space, if the floor number of the center line is inconsistent with the floor number of the bound parking space, the floor number of the center line will be updated to the floor number of the bound parking space.
[0185] When a center line is bound to multiple parking spaces, the floor numbers of each bound parking space are counted, and the floor number with the highest frequency is selected as the floor number of the bound parking space of the center line.
[0186] Based on the connectivity in the line-to-line topology, the center lines of floor numbers within a preset unknown interval are clustered to obtain unknown connected groups;
[0187] The floor numbers of adjacent known floor centerlines on the boundary of the unknown connected group are counted, and the target floor is determined by majority vote. The floor numbers of all centerlines in the unknown connected group are then updated to the target floor.
[0188] Furthermore, the step of obtaining the topological network of each centerline and the road centerline based on the line-to-line topology and the line-to-parking space topology also includes:
[0189] Retrieve the floor number of the centerline associated with a regular topology node;
[0190] When all the floor numbers are known floor numbers, the floor number of the regular topology node is set to that floor number;
[0191] When all the floor numbers are unknown, the floor numbers of the regular topology nodes are marked as undefined.
[0192] Specifically, since some centerlines may be marked as unknown areas or ramp areas during the preliminary processing, it is necessary to use their topological connection relationship with known floors to infer and unify their true floor affiliation.
[0193] Extract all floor numbers within the unknown plane range (e.g.) The centerlines of unknown planes are clustered into several unknown plane connected groups based on topological connectivity (i.e., shared topological nodes).
[0194] For each unknown plane connected group, traverse its boundary nodes and count all those connected to that boundary node that belong to a known floor (e.g., ...). The floor number along the center line of the target floor is determined. A majority vote is used to select the known floor number that appears most frequently as the target floor. Subsequently, the floor numbers of all centerlines within this connected group were uniformly updated to... This enables automatic completion of floor attributes in unknown areas.
[0195] Extract all floor numbers that fall within the ramp interval (e.g.) The centerline of the ramp is also constructed based on the topological connection relationship.
[0196] For each ramp connectivity group, obtain the floor numbers of all known floor centerlines connected to its boundary nodes, and extract the 3D elevation value Z of the corresponding boundary nodes. To avoid semantic ambiguity when ramps cross floors, a lower-floor priority principle is introduced: among all adjacent known floors, the floor with the lowest elevation value Z is selected as the target floor to which the ramp connectivity group belongs. Subsequently, the floor numbers of all centerlines within the ramp connection group were uniformly updated to... .
[0197] After completing the centerline floor attribute correction, the floor semantics need to be passed down to the topology nodes to ensure the continuity of node indexes during subsequent path planning.
[0198] For each topological node belonging to a ramp connectivity group, obtain the set of all known floor numbers connected to that connectivity group. To ensure that the navigation system can correctly index to the target high floor when the vehicle is traveling uphill, all topological nodes within the ramp connectivity group are uniformly assigned the highest floor number from the set of known floor numbers.
[0199] For regular topological nodes in non-ramp areas, extract the set of floor numbers of all associated centerlines. If a known floor number exists in this set, inherit that number as the floor attribute of the node; if the node is only associated with unknown or invalid centerlines, mark its floor attribute as undefined (e.g., ...). (This will be left for subsequent manual verification or rule-based fallback.)
[0200] This step effectively solves the problem of semantic breaks in floors caused by missing local data or noise in complex parking lots. In the final output topology network, each centerline and each topology node has accurate and coherent three-dimensional spatial coordinates and floor semantic labels, providing a high-quality data foundation for downstream high-precision map rendering, cross-floor path planning, and autonomous driving navigation.
[0201] Step 111: Output the binding result between the parking space and the center line based on the line-parking space topology relationship.
[0202] Furthermore, the step of outputting the binding result between the parking space and the center line based on the line-parking space topology includes:
[0203] Obtain the centerline identifier bound to each parking space polygon;
[0204] The output includes a set of three-dimensional centerlines containing standardized start and end node IDs and a set of parking spaces associated with road IDs, serving as the binding result between the parking spaces and the centerlines.
[0205] Specifically, the final output includes a set of three-dimensional centerlines containing standardized start and end node IDs, and a set of parking spaces associated with road IDs, forming a parking lot topology network with complete spatial connectivity and semantic relationships.
[0206] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of this application. It should be understood that the above descriptions are merely specific embodiments of this application and are not intended to limit the scope of protection of this application. In particular, it should be noted that any modifications, equivalent substitutions, or improvements made by those skilled in the art within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for constructing the topology of a parking lot road centerline, characterized in that, include: Acquire map element data in the parking lot. The map element data includes a set of parking space polygons and a set of vehicle trajectory lines. The parking space polygons are formed by connecting multiple three-dimensional vertices in sequence to form a closed shape. The three-dimensional vertices are the position coordinates of the corner points of the parking spaces in three-dimensional space. The vehicle trajectory line is divided into trajectory segments, and the trajectory segments are sampled to obtain sampling points; Clustering is performed based on the spatial distribution characteristics of the parking space polygons to obtain the floor structure of the parking lot; Based on the floor structure, the floor number of each trajectory segment is obtained; Based on the distance relationship between the sampling points and the parking space polygon, a passage area is generated; The skeleton of the passage area is extracted to obtain a two-dimensional centerline; The elevation of the two-dimensional centerline is restored to obtain the three-dimensional centerline. The elevation restoration is the process of using the elevation information carried by the original vehicle trajectory points to assign elevation values to each sampling point on the two-dimensional plane centerline and converting it into a three-dimensional spatial curve. Based on the spatial distance between the endpoints of the three-dimensional centerline, a line-to-line topological relationship is established; Based on the projection distance and directional angle between the parking space and the three-dimensional centerline, a line-parking space topology is established. Based on the line-to-line topology and line-to-parking space topology, the topology network of each centerline and the road centerline is obtained; Based on the line-parking space topology relationship, the binding result between the parking space and the center line is output.
2. The parking lot road centerline topology construction method according to claim 1, characterized in that, The step of clustering based on the spatial distribution features of the parking space polygons to obtain the floor structure of the parking lot includes: Extract the elevation value of the center point of each parking space polygon in the set of parking space polygons, and construct an elevation set; The optimal number of clusters for a Gaussian mixture model is determined using the Bayesian information criterion. Based on the optimal number of clusters, a Gaussian mixture model is used to fit the probability distribution of the elevation set to obtain the Gaussian component to which the center elevation value of each parking space belongs. The floor number corresponding to each parking space is determined based on the Gaussian component. The parking spaces are assigned to their corresponding floors based on their floor numbers to obtain the parking lot's floor structure.
3. The parking lot road centerline topology construction method according to claim 1, characterized in that, The step of obtaining the floor number of each trajectory segment based on the floor structure includes: Search for adjacent parking spaces in the XY plane, and calculate the voting weight based on the planar distance and elevation difference between the sampling point and the center of the adjacent parking space. The voting weight is inversely proportional to the planar distance and elevation difference. Based on the voting weights, a weighted vote is performed on the floors of adjacent parking spaces to determine the floor number of each sampling point and record the vote value of each floor. When the highest vote value is greater than the confidence parameter multiplied by the second highest vote value, the sampling point is assigned to the floor with the highest number of votes; If all sampling points within a trajectory segment are successfully assigned, the trajectory segment is successfully stratified, and the corresponding floor number is the floor number that appears most frequently in the entire trajectory segment; otherwise, it is not successfully stratified. Generate floor prototypes from the successfully layered trajectory segments; For trajectory segments that failed to be layered, calculate the local slope; Based on the comparison results between the local slope and the slope threshold, the trajectory segments are classified. The distance between the trajectory feature vector of the trajectory segment and the feature vector of each floor prototype is calculated, and the floor prototype with the closest distance is selected as the matching result. The floor number of the trajectory segment is determined based on the matching result.
4. The parking lot road centerline topology construction method according to claim 1, characterized in that, The step of generating a passage area based on the distance relationship between the sampling points and the parking space polygon includes: Calculate the distance from the sampling point to the nearest parking space boundary; The expansion radius of the sampling point is determined based on the distance from the sampling point to the nearest parking space boundary. When the sampling point is located inside the parking space polygon, the expansion radius is a preset minimum expansion radius. When the sampling point is located outside the parking space polygon, the expansion radius is equal to the preset minimum expansion radius plus the distance multiplied by a preset scaling factor, and does not exceed a preset maximum expansion radius. A buffer region is generated with each sampling point as the center and the corresponding expansion radius as the radius; Perform a union operation on all buffer areas to obtain the passage area.
5. The parking lot road centerline topology construction method according to claim 1, characterized in that, The elevation restoration of the two-dimensional centerline to obtain the three-dimensional centerline includes: Search for neighborhood points of each sampling point on the two-dimensional center line in the vehicle trajectory line, extract the elevation values of the neighborhood points, and construct an elevation candidate set; The candidate elevation set is clustered according to a preset elevation threshold to obtain at least one elevation layer; Each sampling point is processed sequentially along the direction of the two-dimensional centerline. If the neighboring points of the current sampling point belong to a single elevation layer, the single elevation layer is selected. If the neighboring points of the current sampling point belong to multiple elevation layers, the elevation layer with the smallest elevation difference between the current sampling point and the previous sampling point is selected. If the minimum elevation difference is not less than a preset continuity threshold, the current elevation trajectory is terminated and a new elevation trajectory branch is generated. The elevation trajectory is a continuous three-dimensional spatial curve formed when points on the two-dimensional centerline are continuously assigned to the same elevation layer in spatial order. Based on each sampling point and its selected elevation layer, generate the three-dimensional centerline corresponding to each elevation trajectory branch.
6. The parking lot road centerline topology construction method according to claim 1, characterized in that, The establishment of line-to-line topology based on the spatial distance between the endpoints of the three-dimensional centerline includes: Extract the start and end points of each 3D centerline; Calculate the spatial distance between the endpoints of one three-dimensional centerline and the endpoints of another three-dimensional centerline. When the spatial distance is less than a connectivity threshold, mark the two endpoints as candidate connection pairs. Cluster all candidate connection pairs and group candidate connection pairs that share the same endpoint into the same connectivity group, with each connectivity group corresponding to a topology node; When the number of endpoints in the connected group containing the start and end points of the three-dimensional centerline is 1, the three-dimensional centerline is determined to be an isolated edge and is removed. Calculate the average spatial coordinates of all endpoints in the connected group retained after removing isolated edges. If the minimum projection distance among the projection distances of the average spatial coordinates to the center line connected by the connected group retained after removing isolated edges is greater than a preset deviation threshold, then the average spatial coordinates are corrected to the orthogonal projection point on the center line as the three-dimensional coordinates of the topological node corresponding to the connected group retained after removing isolated edges. When the length of the three-dimensional centerline is less than a preset length threshold and the number of edges connected to the topological nodes at both ends of the three-dimensional centerline is greater than or equal to 2, the topological nodes at both ends are merged into a single node.
7. The parking lot road centerline topology construction method according to claim 1, characterized in that, The establishment of a line-parking space topology based on the projection distance and directional angle between the parking space and the three-dimensional centerline includes: Extract the midpoint of the edge of the parking space facing the road; Retrieve candidate centerlines within a preset search radius; Calculate the projected distance from the midpoint of the edge to the candidate center line, and remove candidate center lines whose projected distance is greater than a preset distance threshold; Calculate the angle between the local direction of the candidate centerline at the projection position and the direction of the parking space edge, and remove candidate centerlines whose angle is less than a preset angle threshold; The comprehensive matching cost is calculated based on the projection distance and the directional angle, and the candidate centerline with the smallest comprehensive matching cost is selected as the binding centerline of the parking space.
8. The parking lot road centerline topology construction method according to claim 1, characterized in that, The process of obtaining the topology network of each centerline and the road centerline based on the line-to-line topology and the line-to-parking space topology includes: Based on the floor number of the corresponding trajectory segment, obtain the floor number of each centerline; Based on the line-parking space topology, determine the parking spaces bound to each center line; When a center line is bound to a parking space, if the floor number of the center line is inconsistent with the floor number of the bound parking space, the floor number of the center line will be updated to the floor number of the bound parking space. When a center line is bound to multiple parking spaces, the floor numbers of each bound parking space are counted, and the floor number with the highest frequency is selected as the floor number of the bound parking space of the center line. Based on the connectivity in the line-to-line topology, the center lines of floor numbers within a preset unknown interval are clustered to obtain unknown connected groups; The floor numbers of adjacent known floor centerlines on the boundary of the unknown connected group are counted, and the target floor is determined by majority vote. The floor numbers of all centerlines in the unknown connected group are then updated to the target floor.
9. A method for constructing the topology of a parking lot road centerline according to claim 1, characterized in that, The process of obtaining the topological network of each centerline and the road centerline based on the line-to-line topology and the line-to-parking space topology also includes: Retrieve the floor number of the centerline associated with a regular topology node; When all the floor numbers are known floor numbers, the floor number of the regular topology node is set to that floor number; When all the floor numbers are unknown, the floor numbers of the regular topology nodes are marked as undefined.
10. A method for constructing the topology of a parking lot road centerline according to claim 1, characterized in that, The step of outputting the binding result between the parking space and the center line based on the line-parking space topology relationship includes: Obtain the centerline identifier bound to each parking space polygon; The output includes a set of three-dimensional centerlines containing standardized start and end node IDs and a set of parking spaces associated with road IDs, serving as the binding result between the parking spaces and the centerlines.
