Urban rod-shaped facility point cloud automatic identification and extraction method
Through methods based on voxel expansion and RANSAC, the problem of difficulty in extracting rod-shaped facilities in vehicle-mounted laser scanning point clouds is solved, and accurate identification and extraction are achieved, especially in scenes with composite structures and many interference points, which improves the accuracy of extraction. Robustness and adaptability.
Patent Information
- Application Number
- CN202410792665.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-24
AI Technical Summary
In urban road scenes, it is difficult to extract rod-shaped facilities from point cloud data obtained by vehicle-mounted laser scanning. They are affected by ground points, low objects, occlusions and interference elements, resulting in inaccurate extraction and low efficiency.
A method based on voxel expansion and RANSAC is used to perform preliminary extraction by constructing a longitudinal voxel template. The RANSAC algorithm is used to fit the circle model, and the region growing algorithm and principal component analysis are combined to screen and eliminate interference points to ensure the extraction of complete rod-shaped facilities. Point cloud.
It achieves accurate identification and extraction when the original point cloud of rod-shaped facilities has fragments and discontinuities, effectively identifies composite structures, eliminates interference points, and improves the robustness and adaptability of extraction.
Smart Images

Figure CN118691886A
Abstract
Description
Technical Field
[0001] The invention relates to the field of surveying and mapping and real-scene three-dimensional, and in particular to a method for automatically identifying and extracting urban rod-shaped facility point clouds based on voxel expansion and RANSAC. Background Art
[0002] The introduction of information concepts such as "real 3D" construction and "smart city" has greatly promoted the development of spatial geographic information technology. People's demand for high-quality 3D geographic information is increasing. How to efficiently obtain 3D spatial data and accurately and efficiently post-process it has become a hot topic in current research. With the development and rise of 3D laser scanning technology, people can obtain 3D point cloud data in large-scale scenes at low cost and high efficiency, which has gradually become an important way to collect large-scale 3D scene data. Among them, vehicle-mounted laser scanning technology can quickly obtain the 3D spatial coordinates and texture color information of surface points of ground objects, and has the characteristics of short data acquisition time, wide scanning range, high accuracy, and strong timeliness.
[0003] The pole-shaped facilities around urban roads are an important part of the city's basic geographic information. How to accurately and efficiently extract and classify pole-shaped facilities in road scenes is of great significance to urban planning, traffic management and emergency response. The original point cloud obtained by vehicle-mounted laser scanning contains many ground objects and a large amount of data. The spatial distribution of the point cloud is uneven, and some ground object point clouds are missing due to occlusion. In urban road scenes, there are many interfering factors such as pedestrians, vehicles, vegetation, buildings, and isolation railings. Pole-shaped facilities are artificial components that are commonly found in urban road scenes, including street lights, traffic lights, signs, telephone poles, and other categories, which cause great difficulties in the extraction of pole-shaped facilities. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a method for automatically identifying and extracting urban pole-shaped facility point clouds based on voxel expansion and RANSAC. Complete pole-shaped facilities are extracted from complex point cloud data, providing important support for 3D navigation, 3D modeling and smart city related applications.
[0005] The technical solution of the present invention is:
[0006] An automatic extraction and classification method for urban pole-shaped facility point clouds is proposed. After filtering out ground points and low-rise points in the point cloud, a longitudinal voxel template of pole-shaped objects is constructed, and the pole point cloud is initially extracted by dilation followed by erosion. According to the arc-shaped features of the horizontal projection of the pole point cloud, the circular model is fitted using the RANSAC algorithm to extract the arc-shaped point set, and the difference of the fitted circle is used as the threshold to further filter the pole point cloud. Tree targets are eliminated based on the morphological differences between the projections of the crowns of street trees and the auxiliary structures of pole-shaped facilities on the horizontal plane, and only the poles of artificial pole-shaped facilities are retained. The extension direction of the auxiliary structures of pole-shaped facilities is obtained using principal component analysis, and the complete pole-shaped facility point cloud is obtained by regional growth with the pole execution direction as a constraint.
[0007] Furthermore,
[0008] The following steps are involved:
[0009] Step 1: Filter out ground points and low objects.
[0010] Step 2: Rough extraction of the pole point cloud based on 3D voxel template matching.
[0011] Step 3: Fine extraction of the pole point cloud based on RANSAC.
[0012] Step 4: Eliminate tree targets using horizontal projection morphology differences.
[0013] Step 5: Complete the extraction of pole-shaped facilities based on the region growing algorithm.
[0014] Going further,
[0015] The step 1 is specifically:
[0016] A progressive morphological filtering algorithm is used to separate ground points from non-ground points, and three-dimensional voxels are constructed for non-ground points. Voxels that are located below a height of 2m and have no continuous distribution containing internal points in the space above a height of 2m in the longitudinal direction are deleted, thereby filtering out ground points and low ground objects.
[0017] The step 2 is specifically:
[0018] The remaining point clouds are voxelized with three-dimensional voxels of a certain side length, and longitudinal voxel erosion and voxel expansion templates are constructed. The missing parts of the pole point cloud of the pole-shaped facility are connected through the voxel expansion operation to ensure the continuity of the spatial distribution of the pole, and then the pole point cloud of the pole-shaped facility is extracted by the voxel erosion operation.
[0019] The step 3 is specifically:
[0020] The initial pole point cloud is projected onto the xoy plane, and several arc point sets are extracted using the RANSAC algorithm. The radius and center coordinates of each fitted circle are retained, and a 0.2m buffer zone is established to extract the arc point cloud. Finally, the difference between each arc point set and its fitted circle model is calculated, and the fitting circle difference threshold e is set to further screen the pole point cloud to obtain an accurate pole point cloud of the pole-shaped facility.
[0021] The step 4 is specifically as follows:
[0022] A rectangular box model is constructed with the pole vertex of the pole point cloud as the center, and the points in the rectangular box model are projected to the xoy plane. A regular grid is inserted to divide each projection point set respectively, and the distribution threshold of the grid is set to identify tree targets and remove them.
[0023] The step 5 completes the extraction of rod-shaped facilities based on the region growing algorithm, which is specifically the following steps:
[0024] ① Determine whether there are complex subsidiary structures.
[0025] ② Region growing extracts complete accessory structures.
[0026] ③Euclidean clustering segmentation to remove interference points.
[0027] Among them, step ① is specifically as follows:
[0028] A rectangular box model is established with the middle of the pole as the center. If there are no points in the box or the points in the box cannot be projected onto the plane to obtain a linear point set of a certain density, then the pole-shaped facility does not have a composite structure; if the points in the box are projected onto the plane to obtain a linear point set of a certain density, then the pole-shaped facility has a composite structure.
[0029] Step ②, specifically:
[0030] The auxiliary structure points of the rod-shaped facility are projected onto the xoy plane, and the extension direction of the auxiliary structure is extracted using principal component analysis. Regional growth is performed on the rod head and the rod shaft according to the extension direction. For rod-shaped facilities without composite structures, only the rod head part is used for regional growth to obtain a complete rod-shaped facility.
[0031] Step ③, specifically:
[0032] After removing the pole points from the pole-shaped facility point cloud extracted by regional growing, the remaining part is clustered using Euclidean distance. The points in each cluster set are projected onto the plane respectively. The interference point set of tree crowns and branches is eliminated by using the horizontal projection morphological difference, and then the poles are restored to obtain the correct pole-shaped facility point cloud.
[0033] The beneficial effects of the present invention are
[0034] Even when the original point cloud of the pole-shaped facility is missing or discontinuous, it can still be accurately identified and extracted.
[0035] The composite structure of the rod-shaped facilities is fully considered, and the rod-shaped facilities with composite structures can be effectively identified and extracted.
[0036] It effectively solves the problem of accurate extraction when pole-shaped facilities are attached to other ground objects and effectively eliminates interference points.
[0037] The robustness and universality shown in the experiments are superior to other commonly used methods, and it is well adapted to various complex scenarios and environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a schematic diagram of the workflow of the present invention;
[0039] Figure 2 This is a schematic diagram of several common rod-shaped facility point clouds;
[0040] Figure 3 It is a horizontal projection diagram of the attached structure of the rod-shaped feature;
[0041] Figure 4 is a schematic diagram of three-dimensional voxel template matching;
[0042] Figure 5 This is a schematic diagram of the pole point cloud extracted by RANSAC;
[0043] Figure 6 It is a schematic diagram of the construction of a rectangular box model;
[0044] Figure 7 It is a schematic diagram of tree target recognition;
[0045] Figure 8 is a schematic diagram of regional growth;
[0046] Fig. 9 This is the rendering of the rod-shaped facility extraction. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0048] The present invention provides an automatic extraction and classification method for urban pole-shaped facility point clouds based on RANSAC and random forest. According to the spatial distribution characteristics and geometric characteristics of pole-shaped facilities, the method constructs a longitudinal voxel template, uses the expansion and corrosion operation of the template to initially extract the pole point cloud, and introduces a random sample consistency algorithm to extract a point set with a circular arc shape in the horizontal projection, and further screens the pole points using the difference of the fitted circle. According to the difference in the horizontal projection morphology between the street trees and the upper structure of the artificial pole-shaped facilities, a distinction standard is established to further screen the artificial pole-shaped facilities, and then the complete pole-shaped facility point cloud is obtained by regional growth with direction as a constraint.
[0049] The specific implementation process is as follows Figure 1 As shown, the following steps are included:
[0050] Step 1: Filter out ground points and low objects.
[0051] The existence of ground points and low terrain points not only reduces the calculation efficiency, but also causes the terrain objects to stick together, causing trouble for subsequent processing. Therefore, it is necessary to remove the ground points and low terrain points first.
[0052] The progressive morphological filtering algorithm is a public method for segmenting ground points and non-ground points. This method is used to process the point cloud, remove ground points, and retain non-ground points.
[0053] Considering that the points of low objects are distributed below a certain height, low objects can be filtered out by setting an elevation threshold. However, pole-shaped facilities are connected to the ground. In order to prevent the bottom of the pole-shaped target from being filtered out as a low object, a three-dimensional voxel can be constructed for the remaining point cloud to retain the bottom of the pole-shaped object. A three-dimensional voxel is constructed with a side length of 0.2m, and the internal points of the voxels below 2m in height are judged as follows: ① below 2m in height; ② there are no continuously distributed voxels containing internal points in the space above 2m in its longitudinal direction. If both of the above conditions are met at the same time, the internal point is removed.
[0054] Step 2: Rough extraction of the pole point cloud based on 3D voxel template matching.
[0055] After removing the ground points and low ground points, the rod-shaped objects can exist relatively independently in the remaining point cloud. The rod point cloud features of the rod-shaped objects are obvious, and they are vertically upward and continuously distributed in space. Based on this feature, the preliminary recognition and extraction of the rod point cloud can be achieved. However, when the vehicle-mounted laser scanning collects data, some ground point clouds are partially missing due to the obstruction of the laser by the ground objects. The rod-shaped ground point cloud will also have a similar situation, resulting in discontinuity of the rod point cloud, which increases the difficulty of extracting the rod point cloud. The initial rod point cloud in the remaining ground objects can be screened out according to the template by constructing a longitudinal voxel expansion and corrosion template. The specific steps of the algorithm are as follows:
[0056] ① Input the remaining point cloud data, calculate the maximum and minimum values of the remaining point cloud x, y, and z coordinates respectively, and determine the spatial range of the point cloud. x The remaining point cloud is voxelized for edge length, and the voxels without laser points inside are deleted.
[0057] ② Construct a volume expansion template. Let the height of the expansion template be H1, then the number of vertical volume elements contained in the template is the height of the expansion template divided by the side length of the volume element, that is, n1 = H1 / D x .like Figure 4 (c) with Figure 4 As shown in (d), the missing parts of the point cloud are connected using the constructed voxel expansion template to ensure the continuity of the spatial distribution of the rod.
[0058] ③ Construct a voxel corrosion template. Set the height of the corrosion template to H2. The number of vertical voxels contained in the template is the height of the corrosion template divided by the side length of the voxel, that is, n2 = H 2 / D x like Figure 4 (e) with Figure 4 As shown in (f), the expanded point cloud is corroded using the constructed voxel corrosion template. After corrosion, only the ground features that are longitudinally continuous and whose height is greater than or equal to H2 remain as the initial pole point cloud.
[0059] Step 3: Precise extraction of pole point cloud based on RANSAC.
[0060] The rod part of the rod-shaped feature has a cylindrical geometric feature, and its projection point set on the horizontal plane is distributed in an arc shape. The rod point cloud is extracted using the RANSAC algorithm. First, the initial rod point cloud obtained in step 2 is projected to the xoy plane, and a regular grid with a side length of 0.1m is inserted to divide the projected point cloud. The projected points are clustered using the Euclidean distance. Figure 5 As shown, the RANSAC algorithm is used to retain the radius R and center coordinates O of each fitted circle. i (x oi ,y oi ), a buffer zone of 0.2 m is established to extract arc point clouds. According to the comprehensive pole facility construction standard, the cross section of the pole-shaped facilities in urban road scenes has a certain range. In order to improve the accuracy and efficiency of searching for arc point sets, the radius range of the RANSAC algorithm fitting the optimal arc model is set to 0.1 m to 0.4 m.
[0061] Several arc-shaped point sets are extracted using the RANSAC algorithm. In addition to the pole point cloud, there are also some noise points. These noise points also have the feature of arc-shaped horizontal projection, such as the outer surface points of some artificial structures. Although these noise points have similar spatial characteristics with the pole point cloud of the pole-shaped features in horizontal projection, the cross-sectional projection of the pole-shaped part of the point cloud is more consistent with the circle. Therefore, the pole point cloud can be further screened by calculating the difference between each arc-shaped point set and its fitted circle model and setting the fitting circle difference threshold e. The fitting circle difference calculation formula is as follows:
[0062]
[0063] In the above formula, (x pi ,y pi ) are the coordinates of each point in the point set, (x oi ,y oi ) is the center coordinate of the fitted circle model corresponding to the point set, R i is the radius of the fitted circle, d i is the distance from each point to the circular model, e i is the difference between a certain point set and the fitted circle model.
[0064] Step 4: Eliminate tree targets using horizontal projection morphology differences.
[0065] In addition to the pole-shaped part of the pole-shaped facilities, the extracted pole point cloud also includes the trunk part of the tree target, and consider distinguishing them based on their auxiliary structures. The projection of the crown of the tree on the horizontal plane is clustered and divergent, while the auxiliary structures of the pole-shaped facilities are mostly linear or strip-shaped after projection. The projection of the two on the horizontal plane is obviously different.
[0066] Based on the RANSAC algorithm, the center coordinates of the fitting circle of each rod point cloud set are obtained. i (x oi ,y oi ), the height of each pole column can be calculated based on the pole point cloud, and a rectangular box model with a length of 1.5m, a width of 1.5m, and a height of 1m is constructed with the pole vertex as the center. The points contained in each rectangular box model are counted and a series of point sets are generated. These point sets are the point clouds of some auxiliary structures of the corresponding pole. The points in each box model are projected onto the xoy plane, and a 5×5 regular grid with a side length of 0.3m is inserted to divide each projection point set, and its projection morphology is analyzed. Figure 7 As shown, the projection point set corresponding to the pole-shaped facilities is linear or strip-shaped, and the number of grids occupied by the projection points is small, while the projection point set of tree targets covers a larger area, the point cloud is scattered and occupies a larger number of grids. This is used as a basis to distinguish between trees and artificial pole-shaped facilities.
[0067] Step 5: Complete the extraction of pole-shaped facilities based on the region growing algorithm.
[0068] After processing in step 4, the pole point cloud of the artificial pole-shaped facility is obtained. The auxiliary structure of the pole-shaped facility is generally connected to the pole at the top of the pole. However, there are also some pole-shaped facilities with composite structures, such as the composite of street lights and signboards, and the composite of street lights and signal lights. The branches and leaves of the crown of street trees may adhere to the pole of the pole-shaped facility, and there may be spatial overlap between the objects. Here, the upper quarter of the pole is defined as the pole head, and the quarter to half is defined as the pole body. Starting from the pole of a certain pole-shaped facility, the pole head and pole body are grown. The specific steps of the method are as follows:
[0069] ① Determine whether there are any composite auxiliary structures. Use the method of constructing a rectangular box model in step 4 to build a rectangular box model with a length of 1.5m, a width of 1.5m, and a height of 0.8m with the middle of the pole as the center. If there are no points in the box or the points in the box cannot be projected onto the plane to obtain a linear point set of a certain density, then the pole-shaped facility does not have a composite structure; if the points in the box are projected onto the plane to obtain a linear point set of a certain density, then the pole-shaped facility has a composite structure.
[0070] ② Regional growth to extract complete auxiliary structures. After the points inside the rectangular box are projected onto the plane, the extension direction of the auxiliary structure of the rod-shaped facility is obtained through principal component analysis. Figure 8 As shown, the rod head and the rod shaft are regionally grown in the extension direction, and the rod-shaped facility without a composite structure is regionally grown only with the rod head part to obtain a complete rod-shaped facility.
[0071] ③ Euclidean clustering segmentation to remove interference points. For the extracted pole-shaped facility point cloud, after removing the pole points, the remaining part is clustered by Euclidean distance. At this time, a pole-shaped facility may obtain more than one cluster set, which may correspond to the auxiliary structure, composite structure and other ground feature point clouds connected to the pole of the pole-shaped facility. Often, the crown of the street tree is easy to adhere to the pole of the pole-shaped facility. Project the points in each cluster set to the plane respectively, use the method described in step 4 to eliminate the cluster set of crown features, and then restore the pole to get the correct pole-shaped facility point cloud again.
[0072] The above description is only a preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, and is not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for automatically identifying and extracting urban pole-shaped facility point clouds, characterized in that: After filtering out the ground points and low ground points in the point cloud, the vertical voxel template of the rod-shaped object is constructed to initially extract the rod point cloud by first dilation and then erosion. According to the arc-shaped features of the horizontal projection of the pole point cloud, the RANSAC algorithm is used to fit the circle model to extract the arc-shaped point set, and the difference of the fitted circle is used as the threshold to further filter the pole point cloud; According to the morphological differences between the projections of the crowns of street trees and the auxiliary structures of pole-shaped facilities on the horizontal plane, tree targets are eliminated and only the poles of artificial pole-shaped facilities are retained. The extension direction of the auxiliary structures of pole-shaped facilities is obtained by principal component analysis, and the complete pole-shaped facility point cloud is obtained by regional growth with the pole execution direction as the constraint.
2. The method according to claim 1, It is characterized in that The following steps are involved: Step 1): Filter out ground points and low objects; Step 2): Rough extraction of the pole point cloud based on 3D voxel template matching; Step 3): Fine extraction of the pole point cloud based on RANSAC; Step 4): Eliminate tree targets using horizontal projection morphology differences; Step 5): Extract rod-shaped facilities based on region growing algorithm.
3. The method according to claim 2, characterized in that The step 1) specifically includes: A progressive morphological filtering algorithm is used to separate ground points from non-ground points, and three-dimensional voxels are constructed for non-ground points. Voxels that are located below a height of 2m and have no continuous distribution containing internal points in the space above a height of 2m in the longitudinal direction are deleted.
4. The method according to claim 2, characterized in that: The step 2) specifically includes: The remaining point clouds are voxelized with three-dimensional voxels, and longitudinal voxel erosion and voxel expansion templates are constructed. The missing parts of the pole point cloud of the pole-shaped facility are connected through the voxel expansion operation, and then the pole point cloud of the pole-shaped facility is extracted by the voxel erosion operation.
5. The method according to claim 2, characterized in that: The step 3) is specifically: The initial pole point cloud is projected onto the xoy plane, and several arc point sets are extracted using the RANSAC algorithm. The radius and center coordinates of each fitted circle are retained, and a 0.2m buffer zone is established to extract the arc point cloud. Finally, the difference between each arc point set and its fitted circle model is calculated, and the fitting circle difference threshold e is set to further screen the pole point cloud to obtain an accurate pole point cloud of the pole-shaped facility.
6. The method according to claim 2, characterized in that The step 4) is specifically: A rectangular box model is constructed with the pole vertex of the pole point cloud as the center, and the points in the rectangular box model are projected to the xoy plane. A regular grid is inserted to divide each projection point set respectively, and the distribution threshold of the grid is set to identify tree targets and remove them.
7. The method according to claim 2, characterized in that The step 5) completes the extraction of rod-shaped facilities based on the region growing algorithm, comprising the following steps: ① Determine whether there are complex accessory structures; ② Region growing to extract complete subsidiary structures; ③Euclidean clustering segmentation to remove interference points.
8. The method according to claim 7, characterized in that: The step ① is specifically as follows: A rectangular box model is established with the middle of the pole as the center. If there are no points in the box or the points in the box cannot be projected onto the plane to obtain a linear point set of a certain density, then the pole-shaped facility does not have a composite structure; if the points in the box are projected onto the plane to obtain a linear point set of a certain density, then the pole-shaped facility has a composite structure.
9. The method according to claim 8, characterized in that The step ② is specifically as follows: The auxiliary structure points of the rod-shaped facility are projected onto the xoy plane, and the extension direction of the auxiliary structure is extracted using principal component analysis. Regional growth is performed on the rod head and the rod shaft according to the extension direction. For rod-shaped facilities without composite structures, only the rod head part is used for regional growth to obtain a complete rod-shaped facility.
10. The method according to claim 9, characterized in that: Step ③, specifically: After removing the pole points from the pole-shaped facility point cloud extracted by regional growing, the remaining part is clustered using Euclidean distance. The points in each cluster set are projected onto the plane respectively. The interference point set of tree crowns and branches is eliminated by using the horizontal projection morphological difference, and then the poles are restored to obtain the correct pole-shaped facility point cloud.
