A roadside laser radar background filtering method under a snowy environment
By using ground point filtering and snowflake point filtering methods, the noise problem of lidar point cloud data in snowy conditions was solved, improving target recognition accuracy and traffic safety, and enhancing the traffic efficiency of urban roads.
Patent Information
- Application Number
- CN202311152267.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-07
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-09-07
AI Technical Summary
In snowy conditions, the point cloud data measurement of lidar is inaccurate, leading to a decrease in target recognition accuracy and affecting traffic safety.
A two-part method, consisting of ground point filtering and snowflake point filtering, is adopted. Through data import, analysis, fitting, and separation, the method filters out the uneven ground and drifting snowflake noise in snowy environments, thereby improving the accuracy of point cloud data.
It effectively removes noise from lidar point cloud data in snowy conditions, improves the accuracy of target recognition and traffic safety, shortens processing time, and enhances the traffic efficiency of urban roads.
Smart Images

Figure CN117192513B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of lidar target detection technology, specifically a method for background filtering of roadside lidar in snowy conditions. Background Technology
[0002] Complex snowfall can negatively impact traffic safety in two ways: impaired visibility and increased difficulty in controlling vehicles. With the rapid development of the transportation sector, the requirements for traffic safety of intelligent connected vehicles in snowy conditions are becoming increasingly stringent. However, accurately acquiring traffic data on the road remains a significant research challenge. The quality of this data is affected by snowfall, thus impacting traffic safety and potentially leading to accidents. Therefore, researching ways to improve the accuracy of traffic data in snowy conditions is crucial.
[0003] LiDAR, as a high-precision sensor device, can detect all road users and the surrounding environment within a 360-degree horizontal field of view (FOV). Compared to traditional sensors such as cameras, loop detectors, and radar, LiDAR can operate day and night and has higher target detection accuracy. The working principle of LiDAR is similar to that of radar. It transmits and receives laser beams, measures the time difference and phase difference of the laser beams, determines the three-dimensional coordinates of objects, generates point cloud data, and performs point cloud imaging of the surrounding environment.
[0004] In snowy conditions, the laser emitted by lidar can be absorbed, diffracted, backscattered, or refracted by snowflakes or any particles in the air, leading to inaccurate point cloud data measurements and limiting the lidar's sensing capabilities. Therefore, in snowy and other weather conditions, how to perform noise reduction processing on the acquired roadside lidar point cloud data to obtain noise-free point cloud data for accurate target identification is an urgent technical problem to be solved. Summary of the Invention
[0005] This invention proposes a method for background filtering of roadside lidar in snowy conditions. This method mainly consists of two parts: ground point filtering and snowflake point filtering. Figure 1 As shown, by gradually implementing ground point filtering and snowflake point filtering, the processing of lidar point cloud data under snowfall weather is completed, making the acquired point cloud data more clearly display the target required in the road, shortening the time for processing interference data in target detection, improving the accuracy of acquiring target information, achieving better detection results, and improving road traffic safety and efficiency.
[0006] The technical solution of this invention is to first filter out ground points from the acquired point cloud data, and then process the snowflake points in the data. Ground point filtering is mainly used to process the uneven ground caused by snowfall in snowy weather. Uneven ground will increase the difficulty of subsequent detection work and cause a high false detection rate. In the ground point filtering module, by preprocessing complex ground conditions, the abnormality of snowdrift protrusions is accurately judged, and an accurate plane is constructed in the snow to fit the ground. Snowflake point filtering is mainly used for snowflake point filtering in snowy environment. Snowflake points drift in the air and can easily affect the driver's vision and affect the operation of lidar. In this module, the spatial point density is calculated. Using the classification framework of snowflake noise, pedestrian and vehicle points, the spatial distribution density of the three point clouds is calculated to filter out snowflake noise and perform high-precision environmental analysis.
[0007] This invention proposes a method for background filtering of roadside lidar in snowy conditions, the main features of which include:
[0008] 1) Ground point filtration
[0009] Ground point filtering is the first step in snow cloud data filtering, mainly consisting of a data import unit, a ground analysis unit, a plane fitting unit, and a ground feature separation unit. In snowy conditions, snowflakes do not melt immediately upon landing due to low temperatures. In heavy snowfalls, snowflakes accumulate on the ground, causing variations in surface unevenness. The data import unit imports the raw data collected by roadside lidar into the computer and converts the data format to a computer-calculated data type. The data analysis unit analyzes each point cloud element in the environment, determining whether it belongs to a ground point or a target point. The plane fitting unit, after analyzing the data types, calculates the distance between the remaining point cloud and the fitted plane and compares it with a threshold to determine if it belongs to the fitted plane. The ground feature separation unit separates the fitted plane from the target object, ensuring accurate subsequent target identification.
[0010] 2) Snowflake filtration
[0011] Snowflake point filtering is the second step in filtering snow cloud data, mainly composed of a data import unit, a snowfall analysis unit, a hybrid filtering unit, and a snow object separation unit. In snowy environments, snowflakes drift in the air, and different weather conditions—light, moderate, and heavy snow—can cause varying degrees of visual interference to drivers, easily creating safety hazards. The data import unit imports the data processed in the previous step into the snowflake point filtering step for subsequent operations; the snowfall analysis unit analyzes targets with different spatial densities among non-ground points, calculates the density of spatially located objects, and determines the degree of snowfall using density thresholds; the hybrid filtering unit filters out snowflake point densities in the environment by setting an adaptive threshold based on the degree of snowfall; and the snow object separation unit separates snowflake points from target points, facilitating accurate target identification. Attached Figure Description
[0012] Figure 1 : A schematic diagram of a roadside lidar background filtering method in snowy weather. Detailed Implementation
[0013] This invention proposes a background filtering method for snow point cloud data based on roadside lidar. The method mainly consists of two parts: ground point filtering and snowflake point filtering. By filtering ground points and snowflake points, relevant noise points in the environment are processed, solving the visual impact caused by snowfall. This allows intelligent bicycles to analyze the raw data from roadside lidar to identify snow obstacles on the riding route, reducing false detections and missed detections caused by uneven ground or drifting snowflakes, shortening the time for judging and processing point clouds, solving the problem of snowflakes interfering with visibility, effectively improving the processing accuracy and reliability of point cloud data, enhancing traffic safety under snowy conditions, and improving the efficiency of urban road traffic.
[0014] The specific working process of the roadside lidar background filtering method in snowy weather described in this invention is as follows:
[0015] 1) Ground point filtration
[0016] Ground point filtering is the first step in snow cloud data filtering, mainly consisting of a data import unit, a ground analysis unit, a plane fitting unit, and a ground feature separation unit. In snowy conditions, snowflakes do not melt immediately upon landing due to low temperatures. In heavy snowfalls, snow accumulates on the ground, causing variations in surface unevenness. The data import unit imports the raw data collected by roadside lidar into the computer and converts the data format to a computer-calculated data type. The data analysis unit analyzes each point cloud element in the environment, determining whether it belongs to a ground point or a target point. The plane fitting unit, after analyzing the data type, calculates the distance between the remaining point cloud and the fitted plane and compares it with a threshold to determine if it belongs to the fitted plane. The ground feature separation unit separates the fitted plane from the target object, ensuring accurate subsequent target identification. The specific steps are as follows:
[0017] Step 1: The ground point filtering module initiates the data import unit. Roadside LiDAR is primarily placed on the roadside of urban roads to collect various data points related to road traffic. The data import unit divides the raw .pcap data from the roadside LiDAR into frames and stores them in .cav format on the computer. Based on the single-frame point cloud data, it reads the .csv file (encoded in UTF-8) and determines the positions of different points within each frame to extract the point cloud coordinates (Pointcloud). i _X、Pointcloud i _Y、Pointcloud i _Z, create a point cloud object and store it in matrix P. n In the middle, save it as a .pcd file:
[0018]
[0019] Where: P n A matrix for storing the point cloud of the Nth frame; Pointcloud n _X1, Pointcloud n _Y1、Pointcloud n _Z1 represents the X-axis, Y-axis, and Z-axis coordinates of the original point cloud data in frame N, respectively; the X-axis direction is defined with the LiDAR as the origin, with east as the positive direction and west as the negative direction; the Y-axis direction is defined with the LiDAR as the origin, with south as the positive direction and north as the negative direction; the Z-axis direction is defined with the LiDAR as the origin, with upward as the positive direction and downward as the negative direction; Pointcloud n _X1, Pointcloud n _Y1、Pointcloud n_Z1 represents the three-dimensional coordinates of the first laser point returned after the first laser beam is emitted in the Nth frame of data from the lidar; Pointcloud n _X i Pointcloud n _Y i Pointcloud n _Z i The three-dimensional coordinates of the i-th laser point that returns after the last laser beam is emitted in the N-th frame of data;
[0020] Step 2: Ground Point Filtering After the data import module is completed, the ground analysis unit is started. The ground analysis unit identifies the data obtained by the roadside lidar in the three-dimensional laser imaging scan of the roadside, analyzes its data type, and determines whether the data belongs to ground points or target points.
[0021] Step 2.1: When analyzing ground points using the RANSAC algorithm, for the Nth frame of data, three points a (Pointcloud) are randomly selected. n _X a Pointcloud n _Y a Pointcloud n _Z a ),
[0022] b(Pointcloud n _X b Pointcloud n _Y b Pointcloud n _Z b ),
[0023] c(Pointcloud n _X c Pointcloud n _Y c Pointcloud n _Z c The initial plane Plane is calculated. n _0, calculate the i-th 3D laser point (Pointcloud) n _X i Pointcloud n _Y i Pointcloud n _Z i ) and the initial plane Plan n The distance Distance0_i between the 3D laser point and the initial plane Plane is given by the condition that the distance between the laser point and Plane is equal to the distance between the laser point and Plane.n If the distance Distance0_i ≤ ξ, then the 3D laser point is determined to belong to the ground point Groundpoints. i The 3D laser point was initially assigned to the ground point set GPS_0.
[0024] Plan n _0:Ax+By+Cz+D=0
[0025] A = (Y b -Y a )*(Z c -Z a )-(Z b -Z a )*(Y c -Y a )
[0026] B = (Z) b -Z a )*(X c -X a )-(X b -X a )*(Z c -Z a )
[0027] C = (X b -X a )*(Y c -Y a )-(Y b -Y a )*(X c -X a )
[0028] D = -AX a -BY a -CZ a
[0029]
[0030]
[0031]
[0032] GPCS_0=[Groudpoints1,Groudpoints2,...,Groudpoints i ]
[0033] Where: X a Y a Z a X b Y b Zb X c Y c Z c Let A, B, C, and D be the X, Y, and Z coordinates of three random points a, b, and c, respectively; and let A, B, C, and D be the initial plane Plane. n The correlation coefficient of _0; Plane n The normal vector of _0; d(X0,Y0,Z0) is the plane Plane. n Any point of _0; ξ is the direction vector from point i to point d; ξ is the threshold for determining whether point i belongs to a ground point or a target point.
[0034] Step 2.2: If the 3D laser point is aligned with the initial plane Plane n If the distance Distance0_i > ξ, then the 3D laser point is determined to belong to the target point Nonroudpoints. i The 3D laser point is initially classified into the non-ground point set {NGPS_0}:
[0035] NGPS_0=[Nongroudpoints1,Nongroudpoints2,...,Nongroudpoints i ]
[0036] Step 2.3: Calculate all target points (Nongroudpoints) in the nth frame. i The proportion η in the point cloud data, and ensuring that the probability P of the model is calculated by sampling at least one "external point" in each iteration:
[0037]
[0038] P = 1 - (1 - η) n ) k
[0039] Where: n Nongroudpoints n represents the number of target points in this frame of point cloud data. Groudpoints The number of ground points in this frame of point cloud data; k is the minimum number of iterations;
[0040] Step 3: Due to the snowy environment, snowflakes fall to the ground at low temperatures and do not melt immediately. When there is a lot of snow, it forms on the ground, causing changes in ground level. In the ground point filtering module, after the ground analysis unit finishes, the plane fitting unit is started. The plane fitting unit calculates the normal vector of the point cloud and extracts the initial base points of the point cloud data according to the original algorithm. By traversing the initially extracted ground points, the average elevation is calculated, and the calculated average elevation is used as a threshold to obtain the target point set. Then, the farthest point in the target point set is selected as the seed point, and the remaining two seed points are determined by the farthest point sampling (FPS) algorithm. The farthest point is then fitted to the plane model. By traversing the point cloud data (excluding the three randomly sampled points), the distance from each point to the fitted plane is calculated, and the calculated distance and preset data are compared with the maximum acceptable difference of the plane model to determine whether the point cloud data type is a ground point or a target point.
[0041] Step 3.1: Solve for the point cloud normal vectors, and use a KD-Tree to divide the point cloud space into different regions; obtain the neighborhood point set Q based on the neighborhood radius set. n {(x1,y1,z1),(x2,y2,z2),...,(x m ,y m ,z m First, calculate the sample mean of the point set. Then, the covariance matrix C of the point set is calculated, and finally, the eigenvalues and eigenvectors of the covariance matrix are calculated; the eigenvector corresponding to the smallest eigenvalue is the local normal vector of the neighborhood point set.
[0042]
[0043]
[0044]
[0045] in: Let m be the number of points in the nth frame of point cloud data, and m be the number of points in the nth frame of point cloud data.
[0046] Step 3.2: Since the target point cloud obtained using normal vectors still contains some ground points, a second extraction is performed on the point cloud data using point cloud elevation information. The point cloud data is traversed to obtain the elevation value of each point and stored in an empty list. The average elevation h of the point cloud data is calculated and used as the threshold for the first filtering. All point cloud data is traversed again, and the relationship between the elevation of each point and the threshold h is compared. If the elevation of a point is greater than h, the point is determined to be the target point; if it is less than h, the point is determined to be a ground point.
[0047] Step 3.3: The average elevation of the point cloud cannot completely filter out ground points; therefore, it is necessary to fit an optimal planar model to filter out more accurate ground point clouds. Randomly select one point from the point cloud as a seed point, and use the FPS algorithm to select the remaining two seed points. Assume the dataset S = {p1, p2, ..., p...} L There are L points in total in S. One point p is randomly selected from S. i As the first seed point; calculate the relationship between the remaining n-1 points and p. i Distance from point, choose distance from p i The farthest point p j As the second seed point, p i With p j Write the point set S1 = {p i ,p j}; Select the remaining n-2 points and calculate their distances to each point in the point set S1. Take the shortest distance as the distance from that point to the point set. This will give you the n-2 distances to the point set. Select the farthest point p. k As the third seed point, it is written into the point set S1, at which point p i ={p i ,p j ,p k}; Using seed points in point set S1 to fit a plane model, the optimal plane model is fitted through iteration, thereby accurately filtering out ground points and obtaining target points;
[0048] Step 4: After the plane fitting unit has completed several iterations, the feature separation unit is activated to receive the point set {S1,S2,...,S} from the plane fitting unit. n The initial point set {P1, P2, ..., P} is defined by taking all points from the given set and including all points from the set in the ground point part. n The remaining points in the target point section are included in the target point section, and the ground point section and the target point section are displayed in 3D.
[0049] Step 4.1: If any i-th 3D laser point belongs to the set {S1, S2, ..., S...} n}, then it is marked as Groundpoints n_f_i , where f is the number of iterations, and Groundpoints n_f_i ∈{GDCS_n}, where {GDCS_n} is the set of ground points in the nth frame of data;
[0050] Step 4.2: If the i-th 3D laser point in any n-th frame of point cloud data belongs to the set Then it is marked as Nonroudpoints n_f_i , where f is the number of iterations, and Nonroudpoints n_f_i∈NGDS_n, where NGDS_n is the target point set of the nth frame of data;
[0051] Step 4.5: When the initial point set {P1, P2, ..., P} is... n All points in} are marked as Groundpoints after being evaluated. n_f_i Nonroudpoints n_f_i The data is stored in frames in the point set {GDCS_n, NGDS_n} and visualized frame by frame using the point_cloud_viewer in Open3D.
[0052] Among them: open3d is an open source library for point cloud data processing, which supports rapid development and processing of 3D point data; point_cloud_viewer is a function in the open3d library for displaying 3D point clouds. point_cloud_viewer supports operations such as moving, scaling, and panning point cloud data views.
[0053] 2) Snowflake point filtration
[0054] Snowflake point filtering is the second step in filtering snow cloud data, mainly consisting of a data import unit, a snowfall analysis unit, a hybrid filtering unit, and a snow object separation unit. In snowy conditions, snowflakes drift and varying degrees of light, moderate, and heavy snowfall can cause different levels of visual interference for drivers, potentially creating safety hazards. The data import unit imports the processed data from the previous step into the snowflake point filtering step for subsequent operations; the statistical filtering unit analyzes targets with different spatial densities in non-ground points, calculates the density of spatially located objects, and determines the degree of snowfall using density thresholds; the radius filtering unit filters out snowflake point densities in the environment by setting an adaptive threshold based on the snowfall level; the snow object separation unit separates snowflake points from target points. The specific steps are as follows:
[0055] Step 1: The snowflake point filtering module starts the data import unit. The data import unit imports the ground point set {NGDS_n} processed by the ground point filtering unit frame by frame, and creates a point cloud object, which is saved as a .pcd format file.
[0056] Step 2: The data import unit imports the ground point set {NGDS_n} into the data analysis unit. First, based on the spatial distribution characteristics of all points in the environment, it determines whether the point type is a snowflake point or a target point. Then, based on the snowflake point data after the determination, it calculates the snowflake density in the environment, determines the degree of snowfall, and divides the degree of snowfall into three levels: light snow, moderate snow, and heavy snow.
[0057] Step 2.1: In road environments, target objects are rarely present above 3m from the ground. However, in snowy weather, the proportion of snowflake points in the point cloud data at this spatial distribution is high. Therefore, by using elevation filtering and selecting 3m as the elevation threshold, the snowflake point density ρ in this space is calculated. n_snow :
[0058]
[0059] Where: n snowpointclouds_n Indicates the number of snowflakes in the current frame; n Nongroudpoints_n This indicates the number of non-snowflake points in the current frame;
[0060] Step 2.2: If the i-th Nonroudpoint in the ground point set {NGDS_n} n_i Elevation of point z n_i If the value is ≥3, then the point belongs to the snowflake point set {SPCS_n}.
[0061]
[0062] SPCS_n=[snowpointcloud1,snowpointcloud2,...,snowpointcloud i ]
[0063] Among them: snowpointcloud i This represents the i-th snowflake in the n-th frame of data;
[0064] Step 2.3: If the i-th Nonroudpoint in the point set {NGDS_n} n_i Elevation of point z n_i If the value is less than 3, then the point belongs to the non-snowflake point set {NSPCS_n}.
[0065]
[0066] NSPCS_n
[0067] =[Nonsnowpointcloud1,Nonsnowpointcloud2,...,Nonsnowpointcloud i ]
[0068] Among them: Nonsnowpointcloud i This represents the i-th non-snowflake point in the n-th frame of data;
[0069] Step 2.4: After obtaining the snowflake point set {SPCS_n}, calculate the current frame ρ. n_snow If 0 < ρn_snow If ξ1 ≤ ρ, then the snowfall level in the current frame is determined to be light snow. If ξ1 < ρ n_snow If ≤ξ2, then the snowfall level in the current frame is determined to be moderate snow. n_snow If the value is greater than ξ2, then the snowfall level in the current frame is determined to be heavy.
[0070] Where: ξ1 is the intensity threshold for light snow and moderate snow, and ξ2 is the intensity threshold for moderate snow and heavy snow;
[0071] Step 3: After the data analysis unit determines the snowfall level, it sends the snowfall levels of different frames to the hybrid filtering unit. The hybrid filtering unit performs snow noise reduction processing on the point cloud of the frame through adaptive statistical filtering and adaptive radius filtering.
[0072] Step 3.1: Based on point cloud features, for each point (Nongroudpoint) in the input point cloud... i The average distance between points within its domain:
[0073]
[0074] Assumption Since the distribution follows a Gaussian distribution, the mean μ and standard deviation σ corresponding to the N points in the point cloud space can be further obtained as follows:
[0075]
[0076]
[0077] Where: k is the minimum number of neighboring points to search, d i For Nonroudpoint within the neighborhood constructed by k i Distances to each point;
[0078] Step 3.2: Based on the mean μ and standard deviation σ, set the search quantities k1, k2, k3 for the minimum nearest neighbor points in the statistical filter and the standard deviation coefficient V, respectively. σ_1 V σ_2 V σ_3 According to k1, k2, k3 and V σ_1 V σ_2 V σ_3 Calculate the threshold range (μ-σ·V) σ_1 ,μ+σ·V σ_1 ), (μ-σ·V σ_2 ,μ+σ·V σ_2 ), (μ-σ·V σ_3 ,μ+σ·V σ_3), filter out some noise points, store the filtered snowflake points into snowflake point sets {SPCS_statistic_n_1}, {SPCS_statistic_n_2}, and {SPCS_statistic_n_3}, and store the remaining target points into target point sets {NSPCS_statistic_n_1}, {NSPCS_statistic_n_2}, and {NSPCS_statistic_n_3};
[0079] Where: k1, k2, and k3 are the number of minimum neighbor points searched by statistical filtering under light snow, moderate snow, and heavy snow conditions, respectively; V σ_1 V σ_2 V σ_3 {SPCS_statistic_n_1}, {SPCS_statistic_n_2}, and {SPCS_statistic_n_3} represent the standard deviation coefficients of statistical filtering under light, moderate, and heavy snow conditions, respectively; {NSPCS_statistic_n_1}, {NSPCS_statistic_n_2}, and {NSPCS_statistic_n_3} represent the snowflake point sets after adaptive statistical filtering under light, moderate, and heavy snow conditions, respectively; and {NSPCS_statistic_n_1}, {NSPCS_statistic_n_2}, and {NSPCS_statistic_n_3} represent the target point sets after adaptive statistical filtering under light, moderate, and heavy snow conditions, respectively.
[0080] Step 3.3: Input the target point sets {NSPCS_statistic_n_1}, {NSPCS_statistic_n_2}, and {NSPCS_statistic_n_3} into the adaptive radius filtering algorithm. For different snowfall levels in different frames of point clouds, for each point (Nongroudpoint) in the data of that frame... i Set adaptive filter radii r1, r2, and r3 to construct a spherical search range. If the number of points m within the range is less than the set minimum number of neighboring points M, then the nonroudpoint is determined to be a nonroudpoint. i For snowflake noise points, store them as new point sets {SPCS_radius_n_1}, {SPCS_radius_n_2}, and {SPCS_radius_n_3}, and filter them out; otherwise, keep them and store them in new point sets {NSPCS_radius_n_1}, {NSPCS_radius_n_2}, and {NSPCS_radius_n_3}.
[0081] Where: {SPCS_radius_n_1}, {SPCS_radius_n_2}, and {SPCS_radius_n_3} are the snowflake point sets after adaptive radius filtering under light snow, moderate snow, and heavy snow conditions; {NSPCS_radius_n_1}, {NSPCS_radius_n_2}, and {NSPCS_radius_n_3} are the non-snow point sets after adaptive radius filtering under light snow, moderate snow, and heavy snow conditions;
[0082] Step 4: After the hybrid filtering unit is completed, the computer merges {SPCS_statistic_n_1}, {SPCS_statistic_n_2}, {SPCS_statistic_n_3} with {SPCS_radius_n_1}, {SPCS_radius_n_2}, {SPCS_radius_n_3} and stores them as a new filtered point set {SPCS_afterfilter_n_1}, {SPCS_afterfilter_n_2}, {SPCS_afterfilter_n_3}. This set is then visualized frame by frame using point_cloud_viewer, along with {NSPCS_radius_n_1}, {NSPCS_radius_n_2}, {NSPCS_radius_n_3}.
Claims
1. A method for background filtering of roadside lidar in snowy conditions, characterized mainly by... include: 1) Ground point filtration Ground point filtering is the first step in filtering snow cloud data. It mainly consists of a data import unit, a ground analysis unit, a plane fitting unit, and a ground feature separation unit. In snowy conditions, snowflakes do not melt immediately upon landing due to low temperatures; in heavy snowfalls, snow accumulates on the ground, causing variations in surface unevenness. The data import unit imports the raw data collected by roadside lidar into the computer and converts the data format to a computer-calculated data type. The data analysis unit analyzes each point cloud element in the environment to determine whether it belongs to a ground point or a target point. The plane fitting unit, after analyzing the data type, calculates the distance between the remaining point cloud and the fitted plane and compares it with a threshold to determine if it belongs to the fitted plane. The ground feature separation unit separates the fitted plane from the target object, ensuring accurate subsequent target identification. The specific steps are as follows: Step 1: The ground point filtering module initiates the data import unit. Roadside LiDAR is primarily placed on the roadside of urban roads to collect various data points related to road traffic. The data import unit divides the raw .pcap data from the roadside LiDAR into frames and stores them in .cav format on the computer. Based on the single-frame point cloud data, it reads the .csv file (encoded in UTF-8) and determines the positions of different points within each frame to extract point cloud coordinates. , , Create point cloud objects and store them in a matrix. In the middle, save it as a .pcd file: in: For storing the first The matrix of the frame point cloud; , , The first Frame of raw point cloud data Axis coordinates axis coordinates and Axis coordinates; The axis direction is defined with the lidar as the origin of the coordinate system, with due east as the positive direction and due west as the negative direction. The axis direction is defined with the lidar as the origin of the coordinate system, with due south as the positive direction and due north as the negative direction. The axis direction is defined with the lidar as the origin, with the positive upward direction as the positive direction and the positive downward direction as the negative direction. , , LiDAR at the 1st The three-dimensional coordinates of the first laser point that returns after the first laser beam is emitted in the frame data; , , No. The last laser beam emitted and returned in the frame data The three-dimensional coordinates of each laser point; Step 2: Ground Point Filtering After the data import module is completed, the ground analysis unit is started. The ground analysis unit identifies the data obtained by the roadside lidar in the three-dimensional laser imaging scan of the roadside, analyzes its data type, and determines whether the data belongs to ground points or target points. Step 2.1: When analyzing ground points using the RANSAC algorithm, for the first... Frame data, 3 points randomly selected The initial plane is calculated. Calculate the first 3D laser point With the initial plane distance If the 3D laser point is aligned with the initial plane distance If so, the 3D laser point is determined to be a ground point. The 3D laser point was initially assigned to the ground point set. : in: , , , , , , , , Three random points point, point, Pointed Axis coordinates Axis coordinates Axis coordinates; , , , For the initial plane The correlation coefficient; For plane The normal vector; For plane any point; For the first Click to The direction vector of a point; To determine The threshold for a point to belong to either a ground point or a target point; Step 2.2: If the 3D laser point is aligned with the initial plane distance If so, the 3D laser point is determined to belong to the target point. The 3D laser point was initially classified into the non-ground point set. : Step 2.3: Calculate all target points in the nth frame. Proportion in point cloud data And ensure that the model's probability is calculated by sampling at least one external point in each iteration. : in: This represents the number of target points in the point cloud data of this frame. This represents the number of ground points in this frame of point cloud data. Minimum number of iterations; Step 3: Due to the snowy environment, snowflakes fall to the ground at low temperatures and do not melt immediately. When there is a lot of snow, it forms on the ground, causing changes in the ground level. In the ground point filtering module, after the ground analysis unit is completed, the plane fitting unit is started. The plane fitting unit calculates the normal vector of the point cloud and extracts the initial base points of the point cloud data according to the original algorithm. By traversing the initially extracted ground points, the average elevation is calculated, and the calculated average elevation is used as a threshold to obtain the target point set. Then, the farthest point in the target point set is selected as the seed point, and the remaining two seed points are determined by the farthest point sampling FPS algorithm. The farthest point is then fitted through the plane model. By traversing the point cloud data, excluding the three randomly sampled points, the distance from each point to the fitting plane is calculated, and the calculated distance and preset data are compared with the maximum acceptable difference of the plane model to determine whether the point cloud data type is a ground point or a target point. Step 3.1: Solve for the point cloud normal vectors using... The point cloud space is divided into different regions; the neighborhood point set is obtained based on the neighborhood radius set. First, calculate the sample mean of the point set. , , Then calculate the covariance matrix of the point set. Finally, the eigenvalues and eigenvectors of the covariance matrix are calculated; the eigenvector corresponding to the smallest eigenvalue is the local normal vector of the neighborhood point set. in: x-axis For the first The number of points in a frame point cloud data; Step 3.2: Since the target point cloud obtained using the normal vector still contains some ground points, the point cloud data is further extracted using the point cloud elevation information; the elevation value of each point is obtained by traversing the point cloud data and stored in an empty list, and the average elevation of the point cloud data is calculated. and will This serves as the threshold for the first filtering step; then, all point cloud data is iterated again, and the elevation of each point is compared with the threshold. The relationship is that if the elevation of a certain point is greater than... If the value is less than 1, then the point is determined to be the target point. If so, then the point is determined to be a ground point; Step 3.3: The average elevation of the point cloud cannot completely filter out ground points, so it is necessary to fit an optimal planar model to filter out more accurate ground point clouds; randomly select one point from the point cloud as a seed point, and use the FPS algorithm to select the remaining two seed points; assuming the dataset... The CCP At a point, Randomly select 1 point As the first seed point; calculate the remaining points and Distance from point, select distance The farthest point As the second seed point, and Write point set Select the remaining Calculate the relationship between each point and the point set. The distance to each point in the set is used, and the shortest distance is taken as the distance from that point to the set of points. This yields... The distance to the set of points is calculated, and the farthest point is selected. Write the point set as the third seed point. ,at this time ;Use point set The seed points are fitted to a plane model, and the optimal plane model is fitted through iteration, thereby accurately filtering out ground points and obtaining the target points; Step 4: After the plane fitting unit has completed several iterations, the ground feature separation unit is started to receive the midpoint set of the plane fitting unit. All points, and include all of them in the ground point part, to form the initial point set. The remaining points are included in the target point portion, and the ground point portion and the target point portion are displayed in 3D; Step 4.1: If any of the first... Each 3D laser point belongs to a set Then it is marked as ,in Let be the number of iterations, and ,in For the first The ground point set of frame data; Step 4.2: If any of the first... The first frame of point cloud data Each 3D laser point belongs to a set Then it is marked as ,in Let be the number of iterations, and ,in For the first The target point set of frame data; Step 4.5: When the initial point set After all points are judged, they are marked as follows: And stored in frames in the point set. In the middle, through In Perform frame-by-frame visualization; in: An open-source library for point cloud data processing that supports rapid development and processing of 3D point data; for The library contains functions for displaying 3D point clouds. Supports operations such as moving, scaling, and panning point cloud data. 2) Snowflake point filtration Snowflake point filtering is the second step in snow cloud data filtering, mainly composed of a data import unit, a snowfall analysis unit, a hybrid filtering unit, and a snow object separation unit. In snowy environments, snowflakes drift in the air, and different weather conditions such as light, moderate, and heavy snow can cause varying degrees of visual interference to drivers, easily creating safety hazards. The data import unit imports the processed data from the previous step into the snowflake point filtering step for subsequent operations. The statistical filtering unit analyzes targets with different spatial densities among non-ground points, calculates the density of spatial target objects, and determines the degree of snowfall using a density threshold. The radius filtering unit filters out snowflake point densities in the environment by setting an adaptive threshold based on the degree of snowfall. The snow object separation unit separates snowflake points from target points. The specific working steps are as follows: Step 1: The snowflake filtering module starts the data import unit, which imports the ground point set processed by the ground point filtering unit frame by frame. And create a point cloud object and save it as a .pcd file; Step 2: The data import unit imports the ground point set. The data is input into the data analysis unit. First, based on the spatial distribution characteristics of all points in the environment, the point type is determined to be either a snowflake point or a target point. Then, based on the snowflake point data after the determination, the snowflake density in the environment is calculated to determine the degree of snowfall, and the degree of snowfall is divided into three levels: light snow, moderate snow, and heavy snow. Step 2.1: In road environments, target objects are rarely present above 3m from the ground. However, in snowy weather, the proportion of snowflake points in the point cloud data at this spatial distribution is high. Therefore, by using elevation filtering and selecting 3m as the elevation threshold, the density of snowflake points in this space is calculated. : in: Indicates the number of snowflakes in the current frame; This indicates the number of non-snowflake points in the current frame; Step 2.2: If the ground point set The Middle indivual Elevation of point If the point belongs to the snowflake point set, then the point is determined to belong to the snowflake point set. : in: Indicates the first The first frame in the data One snowflake; Step 2.3: If the point set The Middle indivual Elevation of point If the point belongs to the non-snowflake point set, then it is determined that the point belongs to the non-snowflake : in: Indicates the first The first frame in the data One non-snowflake point; Step 2.4: When obtaining the snowflake point set Then, calculate the current frame. ,if If the snowfall level in the current frame is determined to be light snow, then... If the snowfall level in the current frame is determined to be moderate, then... If so, the snowfall level in the current frame is determined to be heavy snow; in: The intensity thresholds for light and moderate snow are... The intensity thresholds for moderate and heavy snow; Step 3: After the data analysis unit determines the snowfall level, it sends the snowfall levels of different frames to the hybrid filtering unit. The hybrid filtering unit performs snow noise reduction processing on the point cloud of the frame through adaptive statistical filtering and adaptive radius filtering. Step 3.1: Based on point cloud features, for each point in the input point cloud... The average distance between points within its domain: Assumption Following a Gaussian distribution, the point cloud space can be further calculated. The mean of each point and standard deviation for: in: The minimum number of neighboring points to search is set. In order to be in Within the constructed neighborhood Distances to each point; Step 3.2: Based on the mean and standard deviation Set the number of search points for the minimum nearest neighbor in the statistical filter respectively. , , and standard deviation coefficient , , ,according to , , and , , Calculate the threshold range Filter out some noise and store the filtered snowflakes into a snowflake set. , , The remaining target points after filtering are stored in the target point set. , , ; in: , , The number of search points for the minimum nearest neighbor in statistical filtering is given for light snow, moderate snow, and heavy snow, respectively. , , These are the statistical filter standard deviation coefficients for light snow, moderate snow, and heavy snow, respectively. , , These are the snowflake point sets after adaptive statistical filtering under light snow, moderate snow, and heavy snow conditions, respectively. , , These are the target point sets after adaptive statistical filtering under light snow, moderate snow, and heavy snow conditions, respectively. Step 3.3: Set the target points , , The data is fed into an adaptive radius filtering algorithm, which, for different snowfall levels in different frames of point clouds, applies the algorithm to each point in that frame of data. Set the adaptive filter radius , , Construct a spherical search range, if the number of points within the range... Less than the set minimum number of neighboring points Then determine the For snowflake noise points, store them as a new point set. , , Filter out the problematic points and retain the problematic ones, storing them in a new point set. , , ; in: , , The snowflake point set after adaptive radius filtering under light, moderate, and heavy snow conditions; , , This represents the set of non-snow points after adaptive radius filtering under light, moderate, and heavy snow conditions. Step 4: After the hybrid filtering unit is completed, the computer will... , , and , , Merge the points and store them as a new filtered point set. , , ,and , , pass Perform frame-by-frame visualization.
Citation Information
Patent Citations
Laser radar based pedestrian crossing safety control device
CN108629968A
Target detection method based on video image recognition technology
CN112446358A
