Detection method of passable space in underground parking garage based on 4D millimeter wave radar
Through the clustering algorithm and height threshold filtering of 4D millimeter wave radar, the problem of high false detection rate in passable space detection in underground parking garages is solved, and accurate detection and efficient data processing in indoor closed scenes are achieved.
Patent Information
- Application Number
- CN202210114643.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-30
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-01-30
AI Technical Summary
Existing technology In indoor closed scenes such as underground parking garages, millimeter wave radar is difficult to accurately detect passable spaces, and the false detection rate is high, resulting in detection failure.
4D millimeter wave radar is used to obtain point cloud data, and a clustering algorithm is used to distinguish obstacle reflections and noise points. The noise points that have not been successfully clustered and the point clouds whose height does not meet the threshold are deleted, and the boundary points of the passable space are obtained and placed in the upper position. displayed on the machine.
It effectively filters out 80% of noise spots, reduces false detections of ceiling reflections by 90%, improves the accuracy and efficiency of passable space detection, and simplifies data processing.
Smart Images

Figure CN114488026B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automobile radar application, and in particular to a method for detecting passable space in an underground parking garage based on a 4D millimeter wave radar. Background Art
[0002] In the field of intelligent driving, automatic parking technology is developing rapidly, and multi-sensor perception fusion technology in underground parking garage scenes has become an important part of automatic parking technology. Among them, millimeter-wave radar has the advantages of wide detection range, relatively accurate detection of obstacle coordinates, speed, and height information, and can work in all-weather environments. Therefore, millimeter-wave radar is widely installed in vehicle-mounted perception sensors.
[0003] Among other sensors, visual sensors are passive sensors that are sensitive to ambient lighting and lighting changes, and can only identify object categories marked in the training data. They have limitations and poor detection robustness in traversable spaces. LiDAR has the advantages of highly reliable obstacle detection capabilities, high detection accuracy, and high resolution, but it is expensive and cannot work around the clock.
[0004] Patent CN110008941B describes a method that utilizes features such as the target signal-to-noise ratio provided by an on-board millimeter-wave radar, fuses multiple sensor data, introduces a smoothing algorithm, comprehensively considers feature information such as obstacle position and speed, and combines the Bresenham algorithm to perform Gaussian filtering on the obtained grid map, then updates the grid map state and outputs the detection results of the passable space in real time; however, this method is not well suited for indoor closed scenes such as underground parking garages, because the ceilings of underground parking garages are often paved with objects with strong reflective properties such as metal pipes, and many point clouds will be detected on the ceiling above the lane. When these point clouds are projected onto the two-dimensional coordinate system on the ground, they will be mistakenly detected as impassable, resulting in an increase in the false detection rate and even the failure of the passable space detection method.
[0005] Therefore, it is necessary to develop a millimeter-wave radar-based passable space detection method suitable for indoor closed scenes such as underground parking garages. Summary of the invention
[0006] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a method for detecting passable space in an underground parking garage based on 4D millimeter-wave radar, which can operate in all-weather and all-terrain environments and can also transmit the passable space in real time and accurately.
[0007] The present invention adopts the following technical solution, a method for detecting the passable space of an underground parking garage based on a 4D millimeter wave radar, characterized in that the passable space detection method comprises the following steps:
[0008] Step 1, obtain 4D millimeter wave radar point cloud data through Ethernet;
[0009] Step 2, clustering the point cloud data in three-dimensional space;
[0010] Step 3, remove the unclustered clutter from the point cloud data;
[0011] Step 4, deleting cluster points whose height values do not meet the threshold from the point cloud data;
[0012] Step 5, obtaining the boundary points of the traversable space from the point cloud data;
[0013] Step 6: Display the boundary points of the traversable space in the host computer.
[0014] Furthermore, in step 1, the specific process of obtaining 4D millimeter wave radar point cloud data includes:
[0015] Step 1-1, read a frame of detection data from the radar at a certain period through the Ethernet UDP protocol;
[0016] Step 1-2, first convert the physical value of a frame of radar data, according to the vehicle coordinate system definition and trigonometric function relationship, convert the distance, azimuth and pitch angle values into X, Y, Z coordinate values, and then convert the coordinate values to the vehicle coordinate system to form point cloud data and store it in global variables.
[0017] Furthermore, the detection data includes distance, azimuth, elevation, speed and signal-to-noise ratio.
[0018] Furthermore, in step 2, the specific process of clustering the point cloud data in three-dimensional space includes:
[0019] Step 2-1, initialize a point object container and store the point cloud data in the container. The point object contains the following member variables: coordinates X / Y / Z, ID, whether it has been visited, cluster ClusterID, whether it is a core point flag IsKey, and neighborhood point list;
[0020] Step 2-2, set clustering parameters;
[0021] Step 2-3, select a point from the point cloud data at random, mark the Visited attribute of the point as visited, calculate the number of points PtsNum within the neighborhood radius R of the point, if the number of points PtsNum is greater than the set threshold MinPts, then mark the IsKey attribute of the point as a core point, and assign a cluster ClusterID; at the same time, traverse all points within the neighborhood radius R of the point and perform the following operations, mark the Visited attribute of the point as visited, assign the same cluster ClusterID, and repeat steps 2-3 for these points until all points in the point cloud data are traversed and visited;
[0022] Step 2-4: For the successfully clustered point cloud clusters, calculate the average Z coordinate of each point cloud cluster and store it in the variable ClassZInfo.
[0023] Furthermore, in step 3, the specific process of deleting the unclustered clutter points from the cloud data is: traversing each point cloud data, reading the cluster ClusterID attribute of each point, if the ClusterID value is 0, then move the point out of the container, otherwise skip the point and keep the point in the container.
[0024] Furthermore, in step 4, the specific process of deleting the cluster points whose height values do not meet the threshold from the cloud data includes:
[0025] Step 4-1, set the height threshold parameters of the point cloud cluster according to the actual vehicle size and radar height, and set the following variables: the minimum Z coordinate value PtMinZ and the maximum Z coordinate value PtMaxZ;
[0026] Step 4-2, traverse each point cloud data, read the cluster ClusterID attribute of each point, and read the average Z coordinate value of the ClusterID point cloud cluster from the variable ClassZInfo. If the Z coordinate value is greater than the PtMaxZ threshold or less than the PtMinZ threshold, each point in the point cloud cluster is moved out of the container, otherwise, the point cloud cluster is skipped and retained in the container.
[0027] Furthermore, in step 5, the specific process of obtaining the boundary points of the traversable space from the point cloud data includes:
[0028] Step 5-1, traverse each point cloud data, calculate the distance between each point and the origin of the coordinate system, and the angle between the origin and the vector of the point in the coordinate system;
[0029] Step 5-2, sort the point cloud data according to the angle in the coordinate system from 0 to 360 degrees, and set the angle parameter threshold AngResolution;
[0030] Step 5-3, formulate the following rules for screening the boundary points of the passable space, with the origin of the coordinate system as the center, and divide the XY plane of the coordinate system into several sector-shaped areas according to the AngResolution threshold angle interval; then traverse each point cloud data, find the point closest to the origin of the coordinate system in each sector-shaped area, and store it in the variable FreeSpacePt. These points are the boundary points of the passable space obtained.
[0031] Furthermore, in step 6, the specific process of displaying the boundary points of the traversable space in the host computer includes: traversing each point in the final output variable FreeSpacePt of step 5-3 and drawing a graph.
[0032] Compared with the prior art, this solution has the following beneficial effects:
[0033] 1. This solution uses a clustering algorithm to distinguish the point cloud reflected by obstacles from the clutter, thereby deleting the clutter and false points. It can effectively filter out 80% of the clutter in the environment and improve the accuracy of the executable area detection.
[0034] 2. This solution uses the pitch detection capability of the 4D millimeter-wave radar to calculate the point cloud height of the clustered ceiling and other interference reflections, and then compares it with the set threshold. It can effectively filter out 90% of the ceiling reflection noise problems in indoor closed scenes such as underground parking garages, greatly ensuring the accuracy of the executable area detection.
[0035] 3. The final output of this solution is a series of boundary key points, rather than a grid map. It not only accurately represents the scope of the traversable space, but also simplifies the amount of data transmission. For users of the traversable space, it reduces the complexity of data processing and processor operation time, thereby improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 Detection flow chart of the present invention.
[0037] Figure 2 A display diagram of the traversable space of the host computer in one embodiment of the present invention. DETAILED DESCRIPTION
[0038] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0039] Example: See Figure 1 , Figure 2 The present invention adopts the following technical solution: a method for detecting the passable space of an underground parking garage based on a 4D millimeter wave radar, comprising the following steps:
[0040] Step 1, obtain 4D millimeter wave radar point cloud data through Ethernet;
[0041] Step 2, clustering the point cloud data in three-dimensional space;
[0042] Step 3, remove the unclustered clutter from the point cloud data;
[0043] Step 4, deleting cluster points whose height values do not meet the threshold from the point cloud data;
[0044] Step 5, obtaining the boundary points of the traversable space from the point cloud data;
[0045] Step 6: Display the boundary points of the traversable space in the host computer.
[0046] The present invention makes full use of the pitch detection capability of the 4D millimeter-wave radar, detects objects through a clustering algorithm, and effectively filters out 90% of ceiling reflection noise in indoor closed scenes such as underground parking garages by calculating the height of the objects, which can greatly ensure the accuracy of the detection of passable spaces.
[0047] During implementation, in step 1, the specific process of obtaining 4D millimeter wave radar point cloud data includes:
[0048] Step 1-1, read a frame of detection data from the radar according to a certain period through the Ethernet UDP protocol; wherein the detection data includes distance, azimuth, pitch angle, speed and signal-to-noise ratio.
[0049] Step 1-2, first convert the physical value of a frame of radar data, and convert the distance, azimuth and pitch angle values into (vehicle coordinate system) X, Y, Z coordinate values according to the vehicle coordinate system definition and trigonometric function relationship, and then convert the coordinate values to the vehicle coordinate system to form point cloud data and store it in global variables.
[0050] In step 2, the specific process of clustering the point cloud data in three-dimensional space includes:
[0051] Step 2-1, initialize a point object container and store the point cloud data in the container. The point object contains the following member variables: coordinates X / Y / Z, ID, visited flag Visited, cluster ClusterID, core point flag IsKey, and neighborhood point list.
[0052] Step 2-2, set clustering parameters; there are three clustering parameters, namely, neighborhood radius R, minimum number of neighborhood data MinPts, and data dimension Dimension. As an implementation method, here, based on the analysis of real vehicle test data, the neighborhood radius R is set to 2 meters, the minimum number of neighborhood data MinPts is set to 12, and the data dimension Dimension is set to 3.
[0053] Step 2-3, select a point from the point cloud data at random, mark the Visited attribute of the point as visited, calculate the number of points PtsNum within the neighborhood radius R of the point, if the number of points PtsNum is greater than the set threshold MinPts, then mark the IsKey attribute of the point as a core point, and assign a cluster ClusterID; at the same time, traverse all points within the neighborhood radius R of the point and perform the following operations, mark the Visited attribute of the point as visited, assign the same cluster ClusterID, and repeat steps 2-3 for these points until all points in the point cloud data are traversed and visited.
[0054] Step 2-4: For the successfully clustered point cloud clusters, calculate the average Z coordinate of each point cloud cluster and store it in the variable ClassZInfo.
[0055] In step 3, the specific process of deleting the unclustered points from the cloud data is as follows: traverse each point cloud data, read the cluster ID attribute of each point, if the Cluster ID value is 0, move the point out of the container, otherwise skip the point and keep it in the container.
[0056] In step 4, the specific process of deleting the cluster points whose height values do not meet the threshold from the cloud data includes:
[0057] Step 4-1, set the height threshold parameters of the point cloud cluster according to the actual vehicle size and radar height, and set the following variables: the minimum Z coordinate value PtMinZ and the maximum Z coordinate value PtMaxZ; as an implementation method, the minimum Z coordinate value PtMinZ is -0.9 and the maximum Z coordinate value PtMaxZ is 1.6.
[0058] Step 4-2, traverse each point cloud data, read the cluster ClusterID attribute of each point, and read the average Z coordinate value of the ClusterID point cloud cluster from the variable ClassZInfo. If the Z coordinate value is greater than the PtMaxZ threshold or less than the PtMinZ threshold, each point in the point cloud cluster is moved out of the container, otherwise, the point cloud cluster is skipped and retained in the container.
[0059] In step 5, the specific process of obtaining the boundary points of the traversable space from the point cloud data includes:
[0060] Step 5-1, traverse each point cloud data, calculate the distance between each point and the origin of the coordinate system, and the angle between the origin and the vector of the point in the coordinate system.
[0061] Step 5-2, sort the point cloud data according to the angle in the coordinate system from 0 to 360 degrees, and set the angle parameter threshold AngResolution. As an implementation method, the AngResolution value is taken as 1 here.
[0062] Step 5-3, formulate the following rules for screening the boundary points of the passable space, with the origin of the coordinate system as the center, and divide the XY plane of the coordinate system into several sector-shaped areas according to the AngResolution threshold angle interval; then traverse each point cloud data, find the point closest to the origin of the coordinate system in each sector-shaped area, and store it in the variable FreeSpacePt. These points are the boundary points of the passable space obtained.
[0063] In step 6, the specific process of displaying the boundary points of the passable space in the host computer includes: traversing each point in the final output variable FreeSpacePt of step 5-3 and drawing a graph. These points are the boundary points of the passable space.
[0064] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.
Claims
1. A method for detecting the passable space of an underground parking garage based on 4D millimeter wave radar, characterized in that: The traversable space detection method comprises the following steps: Step 1, obtain 4D millimeter wave radar point cloud data through Ethernet; Step 2: clustering the point cloud data in three-dimensional space. The specific process of clustering the point cloud data in three-dimensional space includes: Step 2-1, initialize a point object container and store the point cloud data in the container. The point object contains the following member variables: coordinates X / Y / Z, ID, whether it has been visited, cluster ClusterID, whether it is a core point flag IsKey, and neighborhood point list; Step 2-2, set clustering parameters; Step 2-3, select a point from the point cloud data at random, mark the Visited attribute of the point as visited, calculate the number of points PtsNum within the neighborhood radius R of the point, if the number of points PtsNum is greater than the set threshold MinPts, then mark the IsKey attribute of the point as a core point and assign a cluster ClusterID; at the same time, traverse all points within the neighborhood radius R of the point and perform the following operations, mark the Visited attribute of the point as visited, assign the same cluster ClusterID, and repeat steps 2-3 for these points until all points in the point cloud data are traversed and visited; Step 2-4, for the successfully clustered point cloud clusters, calculate the average Z coordinate of each point cloud cluster and store it in the variable ClassZInfo; Step 3, deleting the unclustered points from the point cloud data; the specific process of deleting the unclustered points from the point cloud data is: traversing each point cloud data, reading the cluster ClusterID attribute of each point, if the ClusterID value is 0, then move the point out of the container, otherwise skip the point and keep the point in the container; Step 4, deleting cluster points whose height values do not meet the threshold from the point cloud data; Step 5, obtaining the boundary points of the passable space from the point cloud data; the specific process of obtaining the boundary points of the passable space from the point cloud data includes: Step 5-1, traverse each point cloud data, calculate the distance between each point and the origin of the coordinate system, and the angle between the origin and the vector of the point in the coordinate system; Step 5-2, sort the point cloud data according to the angle in the coordinate system from 0 to 360 degrees, and set the angle parameter threshold AngResolution; Step 5-3, formulate the following rules for screening the boundary points of the passable space, with the origin of the coordinate system as the center, and divide the coordinate system XY plane into several sector areas according to the AngResolution threshold angle interval; then traverse each point cloud data, find the point closest to the origin of the coordinate system in each sector area, and store it in the variable FreeSpacePt. These points are the boundary points of the passable space obtained; Step 6: Display the boundary points of the traversable space in the host computer.
2. The method for detecting the passable space of an underground parking garage based on 4D millimeter wave radar according to claim 1 is characterized in that: In step 1, the specific process of obtaining 4D millimeter wave radar point cloud data includes: Step 1-1, read a frame of detection data from the radar at a certain period through the Ethernet UDP protocol; Step 1-2, first convert the physical value of a frame of radar data, according to the vehicle coordinate system definition and trigonometric function relationship, convert the distance, azimuth and pitch angle values into X, Y, Z coordinate values, and then convert the coordinate values to the vehicle coordinate system to form point cloud data and store it in global variables.
3. The underground parking garage passable space detection method based on 4D millimeter wave radar according to claim 2 is characterized in that: The detection data includes distance, azimuth, elevation, speed and signal-to-noise ratio.
4. The method for detecting the passable space of an underground parking garage based on 4D millimeter wave radar according to claim 2 is characterized in that: In step 4, the specific process of deleting the cluster points whose height values do not meet the threshold from the point cloud data includes: Step 4-1, set the height threshold parameters of the point cloud cluster according to the actual vehicle size and radar height, and set the following variables: the minimum Z coordinate value PtMinZ and the maximum Z coordinate value PtMaxZ; Step 4-2, traverse each point cloud data, read the cluster ClusterID attribute of each point, and read the average Z coordinate value of the ClusterID point cloud cluster from the variable ClassZInfo. If the Z coordinate value is greater than the PtMaxZ threshold or less than the PtMinZ threshold, each point in the point cloud cluster is moved out of the container, otherwise, the point cloud cluster is skipped and retained in the container.
5. The method for detecting traversable space in an underground parking garage based on 4D millimeter wave radar according to claim 4 is characterized in that: In step 6, the specific process of displaying the boundary points of the traversable space in the host computer includes: traversing each point in the final output variable FreeSpacePt of step 5-3 and drawing a graph.
