Dynamic grid detection method and device based on point cloud and fused with spatio-temporal information, and medium
By introducing spatiotemporal information and sector raster data organization into point cloud data, and combining spatial and temporal information, the problem of ignoring the three-dimensional point cloud data processing and time dimensions in the existing technology is solved, and high-precision dynamic object detection and Dynamic raster checkout.
Patent Information
- Application Number
- CN202410783265.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-11
AI Technical Summary
Existing point cloud-based dynamic object detection methods mainly focus on two-dimensional images, have less processing of three-dimensional point cloud data, and ignore dynamic changes in the time dimension, making it difficult to effectively handle complex dynamic scenes.
A dynamic raster detection method based on point cloud that fuses spatio-temporal information is adopted. By constructing a spatio-temporal raster representation, combining spatial and temporal information, the motion characteristics of dynamic objects are identified, and the fan-shaped raster data organization form is used to fuse multi-frame point cloud data. And perform dynamic detection through the coefficient of variation.
It achieves high-precision dynamic object detection, takes into account the characteristics of scanning points and algorithm efficiency, reduces the space and time complexity of the algorithm, improves the detection rate of dynamic grids, and overcomes the problem of point-to-point lidar caused by different scanning times. The problem of different distances.
Smart Images

Figure CN118762163A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of point cloud processing, and in particular to a dynamic grid detection method, device and medium based on point cloud fusion of spatiotemporal information. Background Art
[0002] Traditional point cloud-based dynamic object detection methods usually rely on predefined rules or simple statistical models, which are often ineffective when dealing with complex dynamic scenes. In recent years, with the rapid development of machine learning, especially deep learning technology, learning-based methods have begun to be introduced into dynamic object detection. These methods can learn the characteristics of dynamic and static objects through training data, so as to classify and detect more accurately.
[0003] However, most existing learning-based dynamic object detection methods focus on 2D images, and relatively few work on 3D point cloud data. In addition, these methods usually only consider spatial information and ignore dynamic changes in the temporal dimension, which is a significant limitation when dealing with dynamic environments. Summary of the invention
[0004] The purpose of the present invention is to provide a dynamic grid detection method, device and medium based on point cloud fusion spatiotemporal information, combining information in two dimensions of space and time, capturing the motion characteristics of dynamic objects by constructing a spatiotemporal grid representation, and identifying dynamic objects based on dynamic grids.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] A dynamic grid detection method based on point cloud fusion spatiotemporal information includes the following steps:
[0007] S1, obtain the surrounding road point cloud data collected by the laser radar;
[0008] S2, identifying the ground plane of each frame of point cloud based on the surrounding road point cloud data, traversing each point cloud in the frame, calculating the distance between it and the corresponding ground plane, and selecting the point clouds whose calculated distances are within a preset distance range to form a point cloud set for each frame;
[0009] S3, assume that the projections of all three-dimensional points in the point cloud set in the two-dimensional plane are distributed within the fan-shaped area, and the fan-shaped area is evenly divided into V annular areas based on the radial distance in the polar axis direction of the fan-shaped area, and the fan-shaped area is evenly divided into U sectors based on the radian in the rotation direction of the polar axis. The entire fan-shaped area is divided into U*V grids, and each point in the point cloud set is traversed, and the point is placed in the corresponding grid according to the two-dimensional coordinates of the point;
[0010] S4, raster fusion of point cloud sets of multiple frames;
[0011] S5, performing dynamic detection on the grid of the fused multi-frame point cloud to obtain a dynamic point cloud detection result.
[0012] The one-dimensional projection points of the three-dimensional points in the point cloud set are distributed in the fan-shaped area (r max ,θ min ,θ max ), where r max is the preset maximum distance parameter, which is determined by the system operation scenario; θ min and θ max They are the minimum and maximum angle parameters, respectively, which are determined by the FOV of the lidar.
[0013] For the fan-shaped area (r max ,θ min ,θ max ) in the point cloud set of the 3D point p = [x, y, z] T , ignore the z value and project the 3D point into the grid, let the grid it belongs to be c = [u, v] T , c represents the intersection area of the uth sector and the vth annular area, and the calculation method of c is as follows:
[0014]
[0015] in θ=atan2(y,x),r θ is the radian resolution of the grid, r d is the radial resolution,
[0016]
[0017] The step S4 comprises the following steps:
[0018] S41, for k frames of point clouds to be fused, all frame point clouds are mapped to the moment of the first frame point cloud through the posture relationship, wherein the posture transformation between frames is obtained by forward integration of the inertial odometer data;
[0019] S42, superimposing the points in the k-frame point cloud set that have undergone posture transformation in units of grids to obtain a fused fan-shaped grid image.
[0020] The step S42 is specifically as follows:
[0021] Represent the grid as a statistic. Let the grid being updated be The statistics are M2 k (u,v),n k (u,v),μ k (u, v), the i-th grid to be fused The statistics are M2 k,i (u,v),n k,i (u,v),μ k,i (u, v), where μ is the timestamp average of the point clouds in the grid, M2 is the second central moment of the grid, and n is the number of point clouds in the grid;
[0022] Convert the process of raster overlay to step-by-step The statistics are superimposed on The statistical process of the grid center point to the laser radar is introduced into the weight factor w i , the second central moment of the grid and the number of point cloud statistics in the statistics are weighted and superimposed, that is, n stored in k,i (u, v) and M2 k,i (u, v) are weighted to get w i n k,i (u, v) and w i M2 k,i (u, v), combined with the timestamp average statistic n k,i (u, v) for statistical superposition; where,
[0023] w i From the grid center point q to O k and to O i The distance determines:
[0024]
[0025] in:
[0026]
[0027] O k and O i denote the positions of the lidar at time k and i respectively, It represents the conversion matrix from the J coordinate system to the I coordinate system, L represents the lidar coordinate system, B represents the inertial odometer coordinate system, W represents the world coordinate system, and G represents the gravity coordinate system.
[0028] The step S5 comprises the following steps:
[0029] S51, dynamically calculating the average value of the timestamps and the second central moment of the grid for all points in the fused grid, and calculating the coefficient of variation of each grid based on the average value and the second central moment;
[0030] S52, performing dynamic grid detection based on the calculated coefficient of variation and a preset coefficient of variation threshold.
[0031] The coefficient of variation is:
[0032]
[0033] Among them, μ is the average value of the timestamp, M2 is the second central moment of the grid, and ts start is the timestamp of the earliest frame in the fused k-frame point cloud, and n is the number of point clouds in the grid.
[0034] In step S52, a first coefficient of variation threshold and a second coefficient of variation threshold are set, wherein the first coefficient of variation threshold is less than the second coefficient of variation threshold. If the coefficient of variation of the grid is greater than the first coefficient of variation threshold, the grid is a dynamic candidate grid, and the judgment continues.
[0035] It is determined whether the coefficient of variation of the dynamic candidate grid is greater than the second coefficient of variation threshold, or whether the coefficients of variation of the four neighboring grids of the dynamic candidate grid are all greater than the second coefficient of variation threshold. If the coefficient of variation of the dynamic candidate grid is greater than the second coefficient of variation threshold, or the coefficients of variation of the four neighboring grids of the dynamic candidate grid are all greater than the second coefficient of variation threshold, then the grid is a dynamic grid, otherwise it is not a dynamic grid.
[0036] A dynamic grid detection device based on point cloud fusion of spatiotemporal information comprises a memory, a processor, and a program stored in the memory, wherein the processor implements the method described above when executing the program.
[0037] A storage medium stores a program, which implements the method described above when executed.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] (1) The present invention uses the data organization form of a fan-shaped grid to express the point cloud, and transforms the dynamic object recognition problem into the dynamic grid detection problem of integrating time distribution. It can take into account the characteristics of the scanning points and the efficiency of the algorithm, and realize high-precision dynamic grid detection, thereby realizing dynamic object detection.
[0040] (2) When calculating the coefficient of variation, the present invention takes into account the problem that the grid dynamics cannot be judged by a constant threshold because the mean of the point cloud timestamp gradually increases as the system runs, while the standard deviation will not be affected by the increase in the mean. The coefficient of variation is calculated by using the relative timestamp as the timestamp attribute of the point, so that dynamic grid detection can be performed using a preset coefficient of variation threshold.
[0041] (3) The present invention converts the three-dimensional point information stored in the sector grid into three statistics: the second central moment of the point cloud in the grid, the number of points in the grid, and the mean of the time stamp of the point cloud in the grid. The statistics are used to calculate the coefficient of variation, which greatly reduces the spatial complexity of the algorithm. At the same time, since the point copying and moving process is reduced, the time complexity of the algorithm is also reduced.
[0042] (4) The present invention takes into account the density difference of the points in the two grids and introduces weights to weight the number of points in the statistics and the mean of the timestamp. This overcomes the problem of different distances between the points in the two grids and the lidar caused by different scanning times, and improves the spatiotemporal accuracy of grid fusion.
[0043] (5) To solve the problem of dynamic objects crossing grids, the present invention uses a dual-threshold method to determine dynamic grids, thereby improving the detection rate of dynamic grids. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a flow chart of the method of the present invention;
[0045] Figure 2 It is a schematic diagram of the structure of the fan-shaped grid;
[0046] Figure 3 This is a schematic diagram of the distance of the same grid center point under the laser radar at different times;
[0047] Figure 4 A point cloud fan-shaped grid distribution diagram in one embodiment;
[0048] Figure 5 A comparison chart of single-threshold and dual-threshold detection results in an embodiment. DETAILED DESCRIPTION
[0049] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0050] This embodiment provides a dynamic grid detection method based on point cloud fusion spatiotemporal information. Figure 1 As shown, the following steps are included:
[0051] S1, obtain the surrounding road point cloud data collected by the laser radar.
[0052] S2, based on the surrounding road point cloud data, identify the ground plane of each frame of point cloud, traverse each point cloud in the frame, calculate the distance between it and the corresponding ground plane, and select the calculated distance within the preset distance range [h min ,h max] constitute the point cloud set of each frame.
[0053] Let point p in the point cloud = [x, y, z] T The distance to the ground plane is d s (p):
[0054]
[0055] Wherein, ax+by+z+c=O is the fitted ground plane equation, and a, b, and c are the parameters of the ground plane equation.
[0056] set up is the original point cloud, and the filtered point cloud can be obtained as
[0057]
[0058] S3, suppose that the projections of all three-dimensional points in the point cloud set in the two-dimensional plane are distributed within the fan-shaped area, and the fan-shaped area is evenly divided into V annular areas based on the radial distance in the polar axis direction of the fan-shaped area, and the fan-shaped area is evenly divided into U sectors based on the radian in the rotation direction of the polar axis. The entire fan-shaped area is divided into U*V grids, and each point in the point cloud set is traversed, and the point is placed in the corresponding grid according to the two-dimensional coordinates of the point.
[0059] In the work of dynamic detection, a dynamic object often contains hundreds or even thousands of points. Treating these points as independent individuals will increase the difficulty of dynamic detection. Therefore, before dynamic detection, it is necessary to find a point cloud representation method other than point set, which can take into account the characteristics of LiDAR scanning and the integrity of points as much as possible while taking into account efficiency.
[0060] In addition to using point sets to represent point clouds, there are many methods for representing point clouds in three-dimensional space, such as KD-Tree (K-Dimensional Tree), Octree, and voxel expression mentioned in adaptive voxel filtering. KD-Tree and Octree are generally used to organize point cloud data to improve the efficiency of searching and querying point clouds, and are not suitable for dynamic detection. Voxel expression maps point clouds to three-dimensional voxel grids, and uses the attributes of each voxel (including the number of three-dimensional points, the extreme values and average values of three-dimensional points on each coordinate axis, etc.) as the characteristics of the voxel. However, the voxelized expression ignores the distance of each point from the laser radar. In fact, due to the influence of the laser radar's scanning mode, the spatial density of the point is related to the distance from the point to the laser radar. The farther the distance from the laser radar, the smaller the spatial density; conversely, the greater the spatial density. Therefore, there is a contradiction in the selection of side length in the voxel-based representation method: if the side length is set too large, the spatial range of the points wrapped by the voxel becomes larger, and the voxel is not representative enough due to the different spatial distribution properties of the points; if the side length is set too small, the efficiency of the algorithm will be greatly reduced. In addition, the points on the same dynamic object may span multiple voxels at the same time, which brings additional difficulties to dynamic object detection.
[0061] In order to take into account the characteristics of the scanning points and the efficiency of the algorithm, this embodiment uses the data organization form of the fan-shaped grid to express the point cloud The structure of the fan-shaped grid is as follows Figure 2 shown.
[0062] set up A three-dimensional point p = [x, y, z] in T , since the distance from the point to the ground has been fully considered in the point cloud screening process, z is ignored, and the polar coordinates of p can be obtained as Where atan2(*) represents the binary inverse tangent function.
[0063] Assume that the two-dimensional projection points of the three-dimensional points in the point cloud set are distributed in the fan-shaped area (r max ,θ min ,θ max ), where r max is the preset maximum distance parameter, which is determined by the system operation scenario; θ min and θ max are the minimum and maximum angle parameters, respectively, which are determined by the FOV of the laser radar. For the FOV of Livox Avia (70.4°×77.2°), this embodiment uses θ min Set to (i.e. -40°), θ max Set to (i.e. 40°).
[0064] After the fan-shaped area is obtained, the fan-shaped area can be evenly divided into V annular areas based on the radial distance in the polar axis direction, and the fan-shaped area can be evenly divided into U sectors based on the arc in the rotation direction of the polar axis. Thus, the entire fan-shaped area is divided into U*V grids. The arc resolution of the grid can be obtained as r θ , the radial resolution is r d :
[0065]
[0066] Therefore, for the fan-shaped area (r max ,θ min ,θ max ) in the point cloud collection of small three-dimensional points p = [x, y, z] T , ignore the z value and project the 3D point into the grid, let the grid it belongs to be c = [u, v] T , c represents the intersection area of the u-th sector and the v-th annular area, and the calculation method of c is as follows:
[0067]
[0068] in θ=atan2(y,x).
[0069] right After completing the mapping of the fan-shaped grid for all points in, we can get The fan-shaped grid representation, assuming the mapping process is The fan grid is The above process can be simplified into symbolic representation:
[0070]
[0071] Further, you can use Uniquely represents a grid in a sector grid map, defined from the grid The symbolic representation of the point cloud is:
[0072]
[0073] Since only the points with the smallest sector area (r, θ1, θ2) are projected and saved in the sector grid map, is irreversible, the point cloud set taken from the fan grid is Subset of:
[0074]
[0075] S4, performs raster fusion on point cloud sets of multiple frames.
[0076] It is very difficult to determine whether a point in a point cloud is moving from only one frame of point cloud measurement. There are two main reasons:
[0077] (1) The sparsity problem of single-frame point clouds. Single-frame point clouds are sparsely distributed in space, which makes it difficult for the algorithm to classify the three-dimensional points belonging to the same dynamic object as a whole, increasing the difficulty of point cloud motion detection. For non-repetitive scanning LiDAR, the sparsity problem is particularly prominent.
[0078] (2) Time span problem. Single-frame point clouds are often aligned to the coordinate system at the same time in the front-end odometer, making it difficult to determine whether a point is moving on the time axis; even if the point cloud is not aligned to the same time, the time span of a single-frame point cloud measurement is often only 0.1 seconds, making it difficult to determine the movement of the point.
[0079] To this end, this embodiment fuses the information of multiple frames of point cloud information to generate a fan-shaped grid map. Specifically, in dynamic tracking, a sliding window Ω is maintained, and each element of the window includes the point cloud after the point cloud is filtered using the ground distance. Linear transformation and
[0080] Assume t i The elements of the moment are The length of the point cloud window is n+1, then t k Point cloud window at the moment
[0081] set up For elements Point cloud in In t k The fan-shaped grid mapped in the polar coordinate system at the time is:
[0082]
[0083] in,
[0084] One by one Ω k The elements in t k After the mapping is completed in the polar coordinate system of the time, this embodiment uses a fan-shaped grid queue The fan-shaped grid image representing the multi-frame point cloud mapping, specifically, step S4 includes the following steps:
[0085] S41, for the k frames of point clouds to be fused, all frame point clouds are mapped to the moment of the first frame point cloud through the posture relationship, wherein the posture transformation between frames is obtained by forward integration of the inertial odometer data.
[0086] S42, superimposing the points in the k-frame point cloud set that have undergone posture transformation in units of grids to obtain a fused fan-shaped grid image.
[0087] In grid units The elements in are superimposed to obtain the superimposed fan-shaped grid map Specifically, for the grid coordinate c = [u, v] T , the grid after overlay is as follows:
[0088]
[0089] By superimposing the above formula on all grids, we can get
[0090] However, the above algorithm first requires The 3D points are saved in all the stored sector grids, and then all the saved 3D points need to be stored in the sector grid when the sector grid is superimposed. At the same time, when calculating the coefficient of variation, it is necessary to visit all three-dimensional points again. Therefore, the time and space complexity of the algorithm is very high.
[0091] This embodiment adopts a method of dynamically calculating the standard deviation and the mean. The three-dimensional points are not actually stored in the grid, but the second central moment M2 of the point cloud with a small grid, the number of points n in the grid and the mean μ of the point cloud timestamp in the grid are stored.
[0092] Suppose the grid that needs to be updated is The point added to the grid is p.
[0093] Assume the timestamp of p is ts, add the grid before p The second central moment maintained is M2 old , the number of points is n old , the mean of the point cloud timestamp is μ old ; Correspondingly, the updated parameters are M2 new , n new , μ new .
[0094] The parameter updating process is shown in Table 1.
[0095] Table 1 Grid parameter update algorithm
[0096]
[0097] The updating process of the number of points n is obvious. new With M2 new The update process.
[0098] μnew The update process is as follows:
[0099]
[0100] M2 new The update process is as follows:
[0101]
[0102] Therefore, the process of raster overlay is transformed into a step-by-step The statistics are superimposed on The statistical process is shown in Table 2.
[0103] Table 2 Raster overlay algorithm
[0104]
[0105] The update of the mean μ and the number of points n is obvious. The update process of M2 is as follows:
[0106]
[0107] From the update process, we can see that for the same grid coordinate c = [u, v] T , the above algorithm treats Different elements in and Directly add to However, although and The spatial properties of the represented grid are consistent, but the properties of the point cloud in the grid are different.
[0108] The point cloud in t i The laser radar scan at the moment is obtained, and The point cloud in t j The different scanning times lead to different distances between the points in the two grids and the laser radar. Let the grid coordinates c = [u, v] T The center point of the grid represented is q, and the polar coordinates of q are [r, θ] T , the three-dimensional space coordinates of q are [rcosθ, r sinθ, z] T ,from Figure 3 It can be observed intuitively that i With d j difference.
[0109] d i With d jThe difference in d directly leads to the difference in the density of points in the two grids, which further leads to a large difference in the number of point clouds in the two grids: for objects in the grid, when d i >d j hour, The number of points is often less than The number of points in d i <d j hour, The number of points is often greater than The number of points in .
[0110] Therefore, a weight factor w is introduced from the grid center point to the lidar distance i , the second central moment of the grid and the number of point cloud statistics in the statistics are weighted and superimposed, that is, n stored in k,i (u, v) and M2 k,i (u, v) are weighted to get w i n k,i (u, v) and w i M2 k,i (u, v), combined with the timestamp average statistic n k,i (u, v) performs statistical superposition.
[0111] w i From the grid center point q to O k and to O i The distance determines:
[0112]
[0113] in:
[0114]
[0115] O k and O i denote the positions of the lidar at time k and i respectively, It represents the conversion matrix from the J coordinate system to the I coordinate system, L represents the lidar coordinate system, B represents the inertial odometer coordinate system, W represents the world coordinate system, and G represents the gravity coordinate system.
[0116] For the convenience of calculation, when calculating the weight, the center point of the two-dimensional grid is taken, that is, the three-dimensional space coordinates of q are set to [r cosθ, rsinθ, 0] T After the weight factor is introduced, before executing the algorithm in Table 2, n stored in k,i (u, v) is changed to w i n k,i (u, v), M2k, i(u,v) is changed to w i M2 k,i (u, v).
[0117] S5, performing dynamic detection on the grid of the fused multi-frame point cloud to obtain a dynamic point cloud detection result.
[0118] S51, dynamically calculating the timestamp average value and the second central moment of all points in the fused grid, and calculating the coefficient of variation of each grid based on the average value and the second central moment.
[0119] get After that, it is possible to determine whether the grid is a dynamic grid by the time distribution of the points in the grid.
[0120] In order to intuitively display the time distribution of points in the grid, this embodiment will In and Plotted in three different colors on the same graph. Figure 4 shown.
[0121] from Figure 4 It can be observed that if the point cloud in each grid is regarded as a whole, when dynamic points appear in the grid, the time distribution of the point cloud inside the grid containing the dynamic points will become uneven ( Figure 4 In contrast, if a spatial region has only static points, the time distribution of the point cloud inside the grid will remain balanced. In practice, the resolution of the grid is higher, so the imbalance is more obvious.
[0122] For the algorithm, a quantitative indicator is needed to represent the degree of imbalance in the temporal distribution of the point cloud in the grid. This study uses the coefficient of variation (CV) as a measure of the discreteness of the temporal distribution of the point cloud in the grid.
[0123] The coefficient of variation is highly efficient to calculate. For a distribution, it can be obtained by simply dividing the standard deviation by the mean:
[0124]
[0125] Then the coefficient of variation CV can be calculated for each grid.
[0126] However, the timestamps of the points in the point cloud will increase as the system runs, so the mean of the point cloud timestamp distribution will gradually increase when calculating the coefficient of variation. However, since the standard deviation is calculated by measuring the difference between the timestamp of each point in the point cloud and the mean of the point cloud timestamp, the standard deviation will not be affected by the increase in the mean. As the system runs, the CV value will gradually decrease and cannot pass a constant threshold th CV Determine the dynamics of the grid.
[0127] In order to remove the influence of timestamp growth on the calculation of coefficient of variation, this embodiment uses relative timestamp as the timestamp attribute of the point. The earliest point in the time stamp is ts stat , modify the calculation of the coefficient of variation to:
[0128]
[0129] Combined with M2 obtained by the method in step S4, the standard deviation is calculated according to the definition:
[0130]
[0131] Combined with the introduced relative timestamp, the calculation method of the grid variation coefficient in this embodiment is as follows:
[0132]
[0133] Among them, μ is the average value of the timestamp, M2 is the second central moment of the grid, and ts start is the timestamp of the earliest frame in the fused k-frame point cloud, and n is the number of point clouds in the grid.
[0134] S52, performing dynamic grid detection based on the calculated coefficient of variation and a preset coefficient of variation threshold.
[0135] The existing algorithm uses a unified threshold th CV The coefficient of variation of all grids is determined. Figure 4 As can be seen in the figure, the same dynamic object may span multiple grids at the same time, resulting in different point cloud distributions in the spanned grids.
[0136] Suppose a dynamic object spans and Two grids, if most of the point clouds on the dynamic object are mapped on , while a small part is mapped in In the example, a fixed threshold th is used. CV will make It is difficult to be judged as a dynamic grid, so that part of the point cloud in a dynamic object cannot be judged as a dynamic point cloud, such as Figure 5 (a) shown.
[0137] For the problem of crossing grids, this embodiment proposes a dual threshold method to improve the detection rate of dynamic grids, setting the first coefficient of variation threshold th CVl and the second coefficient of variation threshold th CVu , where the first coefficient of variation threshold th CVl Less than the second coefficient of variation threshold th CVu .
[0138] If the coefficient of variation of the grid is greater than the first coefficient of variation threshold th CVl , then the grid is a dynamic candidate grid, and the next step is to proceed:
[0139] Determine whether the coefficient of variation of the grid is greater than the second coefficient of variation threshold th CVu , if the coefficient of variation of the grid is greater than the second coefficient of variation threshold th CVu , then the grid is a dynamic grid; or the coefficient of variation of the four neighboring grids of the grid is greater than the second coefficient of variation threshold th CVu , then the grid is also judged as a dynamic grid, otherwise it is not a dynamic grid.
[0140] Assume that the detected dynamic grid set is DG, and the dynamic grid detection method integrating spatiotemporal information is shown in Table 3. Its detection structure is as follows: Figure 5 (b) as shown.
[0141] Table 3 Dynamic grid detection algorithm integrating spatiotemporal information
[0142]
[0143]
[0144] At this point, the algorithm stores point clouds in fan-shaped grids, integrates the spatiotemporal characteristics of point cloud distribution, successfully screens out grids containing dynamic point clouds, and completes dynamic detection of point clouds.
[0145] This embodiment also provides a dynamic grid detection device based on point cloud fusion spatiotemporal information, including:
[0146] Point cloud acquisition module: used to obtain point cloud data of surrounding roads collected by LiDAR;
[0147] Point cloud set screening module: used to identify the ground plane of each frame of point cloud based on the surrounding road point cloud data, and traverse each point cloud in the frame, calculate the distance between it and the corresponding ground plane, and screen the point clouds whose calculated distances are within a preset distance range to form a point cloud set for each frame;
[0148] Grid construction module: Assume that the projections of all three-dimensional points in the point cloud set in the two-dimensional plane are distributed within the fan-shaped area. The fan-shaped area is evenly divided into V annular areas based on the radial distance in the polar axis direction of the fan-shaped area. The fan-shaped area is evenly divided into U sectors based on the radian in the rotation direction of the polar axis. The entire fan-shaped area is divided into U*V grids. Each point in the point cloud set is traversed and placed in the corresponding grid according to the two-dimensional coordinates of the point.
[0149] Raster fusion module: performs raster fusion on point cloud collections of multiple frames;
[0150] Dynamic grid detection module: Dynamically detect the grid of multi-frame point cloud fusion to obtain dynamic point cloud detection results.
[0151] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0152] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.
[0153] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning, or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A dynamic grid detection method based on point cloud fusion spatiotemporal information, characterized in that: The following steps are involved: S1, obtain the surrounding road point cloud data collected by the laser radar; S2, identifying the ground plane of each frame of point cloud based on the surrounding road point cloud data, traversing each point cloud in the frame, calculating the distance between it and the corresponding ground plane, and selecting the point clouds whose calculated distances are within a preset distance range to form a point cloud set for each frame; S3, assume that the projections of all three-dimensional points in the point cloud set in the two-dimensional plane are distributed within the fan-shaped area, and the fan-shaped area is evenly divided into V annular areas based on the radial distance in the polar axis direction of the fan-shaped area, and the fan-shaped area is evenly divided into U sectors based on the radian in the rotation direction of the polar axis. The entire fan-shaped area is divided into U*V grids, and each point in the point cloud set is traversed, and the point is placed in the corresponding grid according to the two-dimensional coordinates of the point; S4, raster fusion of point cloud sets of multiple frames; S5, performing dynamic detection on the grid of the fused multi-frame point cloud to obtain a dynamic point cloud detection result.
2. The method for dynamic grid detection based on point cloud fusion spatiotemporal information according to claim 1, characterized in that: The two-dimensional projection points of the three-dimensional points in the point cloud set are distributed in the fan-shaped area (r max ,θ min ,θ max ), where r max is the preset maximum distance parameter, which is determined by the system operation scenario; θ min and θ max They are the minimum and maximum angle parameters, respectively, which are determined by the FOV of the lidar.
3. The method for dynamic grid detection based on point cloud fusion spatiotemporal information according to claim 2, characterized in that: For the fan-shaped area (r max ,θ min ,θ max ) in the point cloud set of the 3D point p = [x, y, z] T , ignore the z value and project the 3D point into the grid, let the grid it belongs to be c = [u, v] T , c represents the intersection area of the uth sector and the vth annular area, and the calculation method of c is as follows: in θ=atan2(y,x),r θ is the radian resolution of the grid, r d is the radial resolution, 4. The method for dynamic grid detection based on point cloud fusion spatiotemporal information according to claim 1, characterized in that: The step S4 comprises the following steps: S41, for k frames of point clouds to be fused, all frame point clouds are mapped to the moment of the first frame point cloud through the posture relationship, wherein the posture transformation between frames is obtained by forward integration of the inertial odometer data; S42, superimposing the points in the k-frame point cloud set that have undergone posture transformation in units of grids to obtain a fused fan-shaped grid image.
5. The method for dynamic grid detection based on point cloud fusion spatiotemporal information according to claim 4, characterized in that: The step S42 is specifically as follows: Represent the grid as a statistic. Let the grid being updated be The statistics are M2 k (u,v),n k (u,v),μ k (u,v), the i-th grid to be fused The statistics are M2 k,i (u,v),n k,i (u,v),μ k,i (u, v), where μ is the average of the timestamps of the small point clouds in the grid, M2 is the second central moment of the grid, and n is the number of point clouds in the grid; Convert the process of raster overlay to step-by-step The statistics are superimposed on The statistical process of the grid center point and the introduction of a weight factor w from the distance to the laser radar i , the second central moment of the grid and the number of point cloud statistics in the statistics are weighted and superimposed, that is, n stored in k,i (u, v) and M2 k,i (u, v) are weighted to get w i n k,i (u, v) and w i M2 k,i (u, v), combined with the timestamp average statistic n k,i (u, v) for statistical superposition; where, w i From the grid center point q to O k and to O i The distance determines: in: O k and O i denote the positions of the lidar at time k and i respectively, It represents the conversion matrix from the J coordinate system to the I coordinate system, L represents the lidar coordinate system, B represents the inertial odometer coordinate system, W represents the world coordinate system, and G represents the gravity coordinate system.
6. The method for dynamic grid detection based on point cloud fusion spatiotemporal information according to claim 1, characterized in that: The step S5 comprises the following steps: S51, dynamically calculating the average value of the timestamps and the second central moment of the grid for all points in the fused grid, and calculating the coefficient of variation of each grid based on the average value and the second central moment; S52, performing dynamic grid detection based on the calculated coefficient of variation and a preset coefficient of variation threshold.
7. The method for dynamic grid detection based on point cloud fusion spatiotemporal information according to claim 6, characterized in that: The coefficient of variation is: Among them, μ is the average value of the timestamp, M2 is the second central moment of the grid, and ts start is the timestamp of the earliest frame in the fused k-frame point cloud, and n is the number of point clouds in the grid.
8. The method for dynamic grid detection based on point cloud fusion spatiotemporal information according to claim 6, characterized in that: In step S52, a first coefficient of variation threshold and a second coefficient of variation threshold are set, wherein the first coefficient of variation threshold is less than the second coefficient of variation threshold. If the coefficient of variation of the grid is greater than the first coefficient of variation threshold, the grid is a dynamic candidate grid, and the judgment continues. It is determined whether the coefficient of variation of the dynamic candidate grid is greater than the second coefficient of variation threshold, or whether the coefficients of variation of the four neighboring grids of the dynamic candidate grid are all greater than the second coefficient of variation threshold. If the coefficient of variation of the dynamic candidate grid is greater than the second coefficient of variation threshold, or the coefficients of variation of the four neighboring grids of the dynamic candidate grid are all greater than the second coefficient of variation threshold, then the grid is a dynamic grid, otherwise it is not a dynamic grid.
9. A dynamic grid detection device based on point cloud fusion spatiotemporal information, comprising a memory, a processor, and a program stored in the memory, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
10. A storage medium having a program stored thereon, characterized in that: When the program is executed, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Unmanned surface vehicle obstacle detection method based on laser radar
CN119247390A
Small-opening underground cavity volume detection method and device
CN120063419A
Method for detecting integrity of laser radar point cloud in service area
CN120334887A
A method for detecting the integrity of lidar point clouds in service areas
CN120334887B
