Ground segmentation processing method and apparatus, and electronic device and medium

By filtering angle data and fitting surface splicing in lidar point cloud data, the problem of poor ground segmentation effect in the existing technology is solved, high-precision ground segmentation in complex scenes is achieved, and the segmentation effect is improved. accuracy and adaptability.

WO2024198313A1PCT designated stage expired Publication Date: 2024-10-03MOMENTA (SUZHOU) TECHNOLOGY CO LTD

Patent Information

Application Number
PCT/CN2023/125162
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-24
Filing Date
2023-10-18
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

When the existing technology uses the rule-based method for ground segmentation, it is difficult to accurately segment the ground when the road surface is not flat enough, there are ups and downslopes, or there are many obstacles in the point cloud, resulting in poor segmentation results.

Method used

By obtaining the angle data in the lidar point cloud data, the spatial points that meet the preset angle conditions are selected as ground candidate points, and the point cloud blocks are spliced ​​into fitting surfaces to achieve more accurate fitting and segmentation of the ground.

Benefits of technology

It improves the accuracy and adaptability of ground segmentation, and can accurately segment the ground in complex road scenes such as uphill and downhill slopes, rainy days, urban areas, etc., and significantly improves the average intersection over union ratio (MIOU), especially in congestion, construction, mud, etc. The ground segmentation effect of road sections is better.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023125162_03102024_PF_FP_ABST
    Figure CN2023125162_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a ground segmentation processing method and apparatus, and an electronic device and a medium. The method comprises: acquiring first point cloud data, wherein the first point cloud data is obtained according to point cloud data which is output by a LiDAR sensor of a vehicle, and the first point cloud data comprises coordinate data of a plurality of spatial points; according to the coordinate data of the spatial points in the first point cloud data, acquiring angle data of the spatial points in the first point cloud data; acquiring spatial points, the angle data of which meets a preset angle condition, in the first point cloud data and using same as candidate ground points, so as to obtain a first set of candidate ground points; performing division according to the first set of candidate ground points to obtain a plurality of point cloud blocks, and performing ground fitting processing on spatial points in the point cloud blocks, so as to obtain fitting surface data of the point cloud blocks; and performing fitting surface splicing processing according to the fitting surface data of each point cloud block, so as to obtain spatial points, which serve as ground points, in the plurality of point cloud blocks. The embodiments of the present application can better implement ground segmentation.
Need to check novelty before this filing date? Find Prior Art

Description

Ground segmentation processing method, device, electronic equipment and medium

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 24, 2023, with application number 202310301370.8 and application name “Ground segmentation processing method, device, electronic equipment and medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of autonomous driving technology, and in particular to a ground segmentation processing method, device, electronic equipment and medium. Background Art

[0003] LiDAR sensors are essential for Level 3 / L4 autonomous driving systems. They emit thousands of laser signals to provide high-resolution data. These laser signals are reflected back by objects and then returned to the sensor. The sensor then calculates the time it takes for the laser signals to return, determining the object's distance and generating LiDAR point cloud data.

[0004] Perception algorithms based on LiDAR point cloud data have been a key focus of autonomous driving research and development in recent years. For example, LiDAR point cloud data can be used to measure attributes based on geometric distances between points, enabling low-level obstacle detection. However, ground points can interfere with the point set of objects located on the ground, making ground segmentation based on LiDAR point cloud data a challenging aspect of autonomous driving LiDAR perception.

[0005] One feasible implementation involves using a rule-based approach to ground segmentation. For example, given that the ground in the area the vehicle travels through is relatively flat, the normal vector of the ground point cloud will be approximately parallel to the z-axis of the LiDAR coordinate system. Therefore, the z-axis of the area the vehicle travels through can be used as the ground surface. This ground surface can serve as a reference for relatively flat terrain and smaller areas. However, this approach still has significant issues. For example, it is generally only suitable for fitting small areas of flat ground and is prone to errors when the road surface is not flat, there are ups and downslopes, or when the point cloud contains a large proportion of obstacles.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a ground segmentation processing method, device, electronic device and medium, which can better implement ground segmentation.

[0008] In a first aspect, an embodiment of the present application provides a ground segmentation processing method, comprising: obtaining first point cloud data, wherein the first point cloud data is obtained based on point cloud data output by a laser radar sensor of a vehicle, and the first point cloud data includes coordinate data of multiple spatial points; obtaining angle data of the spatial points in the first point cloud data based on the coordinate data of the spatial points in the first point cloud data; obtaining spatial points in the first point cloud data whose angle data meet preset angle conditions as ground candidate points to obtain a first ground candidate point set; dividing multiple point cloud blocks based on the first ground candidate point set, and performing ground fitting processing on the spatial points in the point cloud blocks to obtain fitting surface data of the point cloud blocks; performing fitting surface splicing processing based on the fitting surface data of each point cloud block to obtain spatial points in multiple point cloud blocks as ground points.

[0009] The embodiment of the present application is based on lidar point cloud data. Through the ground prior method of angle screening and fitting surface splicing, the ground area can be better fitted, thereby achieving more accurate segmentation of ground points and non-ground points in the lidar point cloud data.

[0010] Optionally, according to the coordinate data of the spatial point in the first point cloud data, the angle data of the spatial point in the first point cloud data is obtained, including: according to the coordinate data of the spatial point in the first point cloud data, obtaining the first angle of the spatial point in the first point cloud data, the first angle being the angle between the line connecting the spatial point and the vehicle position point and the horizontal plane; wherein, the spatial point whose angle data satisfies the preset angle condition includes: the spatial point whose first angle is less than the first preset angle threshold.

[0011] The first angle reflects the distance between a spatial point and the ground. Subsequently, based on the first angles of different spatial points, spatial points with larger first angles can be filtered out and excluded from consideration as ground point candidates. This angle difference filtering process yields highly precise ground point candidates, suitable for both level and uphill road scenarios.

[0012] Optionally, based on the coordinate data of the spatial point in the first point cloud data, the angle data of the spatial point in the first point cloud data is obtained, including: based on the coordinate data of the spatial point in the first point cloud data, obtaining the second angle of the spatial point in the first point cloud data, the second angle being the angle between the line connecting the spatial point and the vehicle position point and the ground where the vehicle is currently located; wherein, the spatial point whose angle data satisfies the preset angle condition includes: the spatial point whose second angle is less than the second preset angle threshold.

[0013] The second angle reflects the distance between a spatial point and the ground. Given that ground angles typically vary little within a certain range, spatial points with larger second angles can be subsequently filtered out based on the second angles of different spatial points. These points are then excluded from consideration as ground point candidates. This angle difference filtering process yields highly precise ground point candidates, suitable for both level and uphill road scenarios.

[0014] Optionally, ground fitting processing is performed on the spatial points in the point cloud block to obtain fitting surface data of the point cloud block, including: performing ground fitting processing on the spatial points in the point cloud block to obtain a first fitting surface; performing ground fitting processing on the spatial points involved in the first fitting surface and the spatial points in the point cloud block whose distance from the first fitting surface is less than a first preset distance threshold to obtain a second fitting surface; and obtaining the fitting surface data of the point cloud block based on the second fitting surface.

[0015] In this way, the ground points within each point cloud block can be fitted. Based on the fitting surface data of each point cloud block, the fitting surfaces of adjacent point cloud blocks can be spliced. For example, the fitting surfaces corresponding to some point cloud blocks can be corrected and optimized, thereby obtaining ground points more accurately.

[0016] Optionally, the fitting surface data of the point cloud block includes: the angle, height, and continuity of the fitting surface of the point cloud block with the fitting surface of the adjacent point cloud block; performing fitting surface splicing processing according to the fitting surface data of each point cloud block to obtain spatial points as ground points in multiple point cloud blocks, including: determining whether the fitting surface of each point cloud block is correctly fitted according to the fitting surface data of each point cloud block, wherein the fitting surface of the correctly fitted point cloud block can be spliced ​​with the fitting surface of the adjacent point cloud block; correcting the fitting surface of the point cloud block that is determined to be not correctly fitted; obtaining spatial points as ground points in multiple point cloud blocks according to the fitting surface of the point cloud block that is determined to be correctly fitted and the corrected fitting surface of the point cloud block that is determined to be not correctly fitted.

[0017] Based on the fitting surface of the correctly fitted point cloud block and the corrected fitting surface, the ground points can be obtained. The ground of the vehicle's environment can be fitted based on the obtained ground points.

[0018] Optionally, obtaining the first point cloud data includes: obtaining multi-frame point cloud data, wherein the point cloud data output sequentially by the lidar sensor within a period of time includes multi-frame point cloud data, and the duration of the period of time is not greater than a preset duration threshold; performing time series fusion processing on the multi-frame point cloud data to obtain the first point cloud data.

[0019] By performing time-series fusion processing, multiple frames can be spliced ​​together, which can reduce the missing point clouds in some road areas caused by occlusion, thereby expanding the road point cloud segmentation range in the front and rear directions. The point cloud data obtained can be closer to the actual driving environment of the vehicle, and the road segmentation effect achieved can be better.

[0020] Optionally, a plurality of point cloud blocks are divided according to the first ground candidate point set, including: obtaining ground height data of the ground within a set distance range around the vehicle based on the posture data of the vehicle in a previous period of time; screening out abnormal candidate points in the first ground candidate point set based on the ground height data, wherein the abnormal candidate points are within the set distance range around the vehicle, and the distance between the abnormal candidate points and the ground where the vehicle is currently located is greater than a second preset distance threshold; removing the screened abnormal candidate points from the first ground candidate point set to obtain a second ground candidate point set; and dividing the second ground candidate point set into a plurality of point cloud blocks.

[0021] Based on the vehicle's posture, we can obtain a priori information about the ground height near the vehicle's trajectory, which can be used to better filter non-ground candidate points. By filtering ground candidate points based on the vehicle's posture, we can improve the accuracy of ground segmentation.

[0022] In a second aspect, an embodiment of the present application provides a ground segmentation processing device, comprising: a first acquisition module for acquiring first point cloud data, wherein the first point cloud data is obtained based on the point cloud data output by the vehicle's laser radar sensor, and the first point cloud data includes coordinate data of multiple spatial points; a second acquisition module for acquiring angle data of spatial points in the first point cloud data based on the coordinate data of the spatial points in the first point cloud data; a third acquisition module for acquiring spatial points in the first point cloud data whose angle data meet preset angle conditions as ground candidate points, so as to obtain a first ground candidate point set; a first processing module for dividing a plurality of point cloud blocks based on the first ground candidate point set, and performing ground fitting processing on the spatial points in the point cloud blocks to obtain fitting surface data of the point cloud blocks; a second processing module for performing fitting surface splicing processing based on the fitting surface data of each point cloud block to obtain spatial points in a plurality of point cloud blocks as ground points.

[0023] In a third aspect, an embodiment of the present application provides an electronic chip, comprising: a processor for executing computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered to execute any method as in the first aspect.

[0024] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes at least one processor, the processor and a memory are coupled, the memory is used to store computer program instructions, and the processor is used to execute the computer program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute a method as described in any one of the first aspects.

[0025] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes any method as in the first aspect.

[0026] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is run on a computer, it enables the computer to execute any method as described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0028] FIG1 is a flow chart of a ground segmentation processing method provided by one embodiment of the present application;

[0029] FIG2 is a schematic diagram of a ground segmentation processing result obtained when using a rule-based method to perform ground segmentation;

[0030] FIG3 is a schematic diagram of a ground segmentation processing result provided by an embodiment of the present application;

[0031] FIG4 is a schematic diagram of another ground segmentation processing result obtained when using a rule-based method to perform ground segmentation;

[0032] FIG5 is a schematic diagram of a ground segmentation processing result provided by another embodiment of the present application;

[0033] FIG6 is a block diagram of a ground segmentation processing device provided by one embodiment of the present application;

[0034] FIG7 is a schematic structural diagram of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0035] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0036] It should be clear that the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0037] The terms used in the embodiments of the present application are for the purpose of describing specific embodiments only and are not intended to limit the present application. The singular forms "a", "an", "the" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise.

[0038] It should be understood that the term "at least one" used in this article refers to one or more, and "plurality" refers to two or more. The term "and / or" used in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0039] It should be understood that although the terms "first," "second," etc. may be used to describe the set thresholds in the embodiments of the present application, these set thresholds should not be limited to these terms. These terms are merely used to distinguish the set thresholds from each other. For example, without departing from the scope of the embodiments of the present application, the first set threshold may also be referred to as the second set threshold, and similarly, the second set threshold may also be referred to as the first set threshold.

[0040] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.

[0041] As shown in FIG1 , an embodiment of the present application provides a ground segmentation processing method, including steps 101 to 105:

[0042] Step 101: Acquire first point cloud data, wherein the first point cloud data is obtained based on point cloud data output by a lidar sensor of a vehicle, and the first point cloud data includes coordinate data of multiple spatial points.

[0043] In one embodiment, the vehicle in step 101 may be an autonomous vehicle and may be equipped with a laser radar sensor.

[0044] In one embodiment, the internal motor of the LiDAR sensor completes a scan with one revolution, thereby obtaining a frame of LiDAR point cloud data (or LiDAR point cloud image). A frame of LiDAR point cloud data (or simply point cloud data) can be a dataset of spatial points around the vehicle obtained by the LiDAR sensor. The coordinate data of each spatial point can include the three-dimensional coordinate value of the spatial point.

[0045] In one feasible implementation, in addition to the coordinate data of the spatial point, the lidar point cloud data may also include the color information, reflection intensity information, etc. of the spatial point.

[0046] In one implementation, the first point cloud data may be any frame of point cloud data output by the lidar sensor, such as the current frame of point cloud data output by the lidar sensor. In another implementation, the first point cloud data may be point cloud data obtained by performing time-series fusion processing on multiple frames of point cloud data output by the lidar sensor.

[0047] In one embodiment of the present application, the step of obtaining the first point cloud data may include: obtaining multiple frames of point cloud data, wherein the point cloud data sequentially output by the lidar sensor within a period of time includes the multiple frames of point cloud data, and the duration of the period of time is not greater than a preset duration threshold; performing time series fusion processing on the multiple frames of point cloud data to obtain the first point cloud data.

[0048] In one feasible implementation, based on the T-th frame point cloud data output by the lidar sensor, or the T-th frame boundary, the corresponding historical frame point cloud data (for example, every 20 meters, the time does not exceed 8 seconds) and the corresponding future frame point cloud data (for example, every 20 meters, the time does not exceed 12 seconds) can be searched, and then these frame point cloud data are time-series fused to obtain the first point cloud data.

[0049] By performing time-series fusion processing, multiple frames can be spliced ​​together, which can reduce the missing point clouds in some road areas caused by occlusion, thereby expanding the road point cloud segmentation range in the front and rear directions. The point cloud data obtained can be closer to the actual driving environment of the vehicle, and the road segmentation effect achieved can be better.

[0050] In one embodiment of the present application, the point cloud data output by the lidar sensor is raw data, and the point cloud data obtained after time-series fusion processing is also raw data. The raw data can be processed to obtain first point cloud data. The implementation method of data processing the raw data may include: creating a polar grid based on the raw data, calculating the point cloud that falls within the grid (or fence) in the polar grid, and retaining the point with the largest polar diameter in the grid to obtain the first point cloud data.

[0051] In one embodiment, the specifications of the polar grid may be: range: 360°×80m, size: 360×160.

[0052] Step 102: Obtain angle data of the spatial point in the first point cloud data according to the coordinate data of the spatial point in the first point cloud data.

[0053] The positional relationship between different spatial points and the ground is correspondingly different. In one embodiment, based on any point on the ground, the angles between the lines connecting different spatial points and that point and the ground are different. Specifically, spatial points farther from the ground have larger angles, and vice versa.

[0054] In one feasible implementation, the angular data of the spatial point, which reflects the distance between the spatial point and the ground (i.e., the ground in the vehicle's environment), can be obtained based on the coordinate data of the spatial point. This allows the angular data of the spatial point to be used to filter out some spatial points with a high probability of being used to construct the ground from all the spatial points in the lidar point cloud (these spatial points can generally include the spatial points obtained when the sensor scans the ground or objects near the ground) as ground candidate points, while filtering out some spatial points that are not usually used to construct the ground (these spatial points can generally include the spatial points obtained when the sensor scans objects near non-ground locations, such as buildings, other vehicles, etc.). Removing most obstacle point clouds helps to obtain high-quality ground candidate points.

[0055] Based on the angle data of the spatial points, we can filter out the spatial points that are closest to the ground and use only these points to fit the ground. By eliminating the spatial points that are far from the ground, we can obtain highly accurate ground candidate points, which helps to accurately fit the ground and reduces data processing pressure without affecting the ground segmentation effect.

[0056] In one embodiment, the angle data of each spatial point may be calculated from near to far in each angular direction (or each emission angle).

[0057] In one embodiment, the 128 spatial points at each emission angle of the lidar point cloud can be arranged in sequence from near to far, and the angle data of each spatial point can be calculated accordingly.

[0058] In one embodiment of the present application, the step of obtaining the angle data of the spatial point in the first point cloud data based on the coordinate data of the spatial point in the first point cloud data may include: obtaining the first angle (or angle with the horizontal plane) of the spatial point in the first point cloud data based on the coordinate data of the spatial point in the first point cloud data, the first angle being the angle between the line connecting the spatial point and the vehicle position point and the horizontal plane.

[0059] In one embodiment, the vehicle position point may be, for example, the center position point of the vehicle. In another embodiment, the vehicle position point may be, for example, the position point of a laser radar sensor on the vehicle.

[0060] The first angle can reflect the distance relationship between the spatial point and the ground. Subsequently, based on the first angles of different spatial points, spatial points with larger first angles can be screened out. These spatial points can be excluded as candidate ground points.

[0061] When a vehicle is traveling on uphill or downhill or horizontal roads, the angle between the line connecting the spatial point and the vehicle's position point and the horizontal plane obtained when the vehicle's lidar sensor scans the ground is usually within a smaller angle range. The angle can be determined by judging whether the corresponding spatial point can be used as a candidate ground point by judging whether the first angle falls within the corresponding preset angle range.

[0062] In one embodiment of the present application, the step of obtaining the angle data of the spatial point in the first point cloud data based on the coordinate data of the spatial point in the first point cloud data may include: obtaining the second angle (or point-to-point angle) of the spatial point in the first point cloud data based on the coordinate data of the spatial point in the first point cloud data, the second angle being the angle between the line connecting the spatial point and the vehicle position point and the ground where the vehicle is currently located.

[0063] Optionally, the vehicle position point may be, for example, the center position point of the vehicle, a position point of a lidar sensor on the vehicle, or the like.

[0064] In one embodiment, data on the ground where the vehicle is currently located can be obtained based on the vehicle's current position data or the position data within a previous period of time.

[0065] The second angle can reflect the distance relationship between the spatial point and the ground. Considering that the angle of the ground within a certain range usually does not change much, the spatial points with larger second angles can be screened out based on the second angles of different spatial points. These spatial points can be excluded as candidate ground points.

[0066] When a vehicle is traveling on uphill or downhill slopes or horizontal roads, the angle between the line connecting the spatial point obtained by the vehicle's lidar sensor when scanning the ground and the vehicle's current position point and the ground where the vehicle is currently located can usually be within a smaller angle range. The angle can be determined by judging whether the corresponding spatial point can be used as a candidate ground point by judging whether the second angle falls within the corresponding preset angle range.

[0067] In one embodiment of the present application, the angle data of a spatial point may also include a first angle and a second angle of the spatial point. Based on the two angles, non-ground candidate points are screened from two perspectives. This further improves the accuracy of ground candidate point screening, resulting in a highly accurate set of ground candidate points. This improves the accuracy of ground segmentation.

[0068] Step 103 : obtaining spatial points in the first point cloud data whose angle data satisfy a preset angle condition as ground candidate points to obtain a first ground candidate point set.

[0069] In one embodiment, for a polar grid created based on the first point cloud data, the point cloud in the polar grid may be traversed to screen out spatial points that meet the angle condition as candidate ground points.

[0070] In one embodiment, based on the angle data of each spatial point in the first point cloud data and in combination with the preset angle conditions, spatial points whose angle data meet the preset angle conditions can be screened out from the spatial points of the first point cloud data as candidate ground points.

[0071] Feasibly, after selecting spatial points whose angle data meet a preset angle condition from the spatial points of the first point cloud data, these spatial points may constitute a first ground candidate point set.

[0072] In one embodiment of the present application, the angle data of a spatial point may include the aforementioned first angle of the spatial point. Based on this, a spatial point whose angle data satisfies a preset angle condition may include a spatial point whose first angle is less than a first preset angle threshold. The preset angle condition may include: the first angle of the spatial point is less than the first preset angle threshold.

[0073] In one embodiment, the value range of the first preset angle threshold may be, for example, 8° to 12°, or 9° to 11°.

[0074] According to the first angles of different spatial points, spatial points with larger first angles in the first point cloud data can be screened out. These spatial points are usually spatial points far from the ground and can be excluded as ground candidate points.

[0075] In one embodiment of the present application, the angle data of a spatial point may include the aforementioned second angle of the spatial point. Based on this, a spatial point whose angle data satisfies a preset angle condition may include a spatial point whose second angle is less than a second preset angle threshold. The preset angle condition may include: the second angle of the spatial point is less than the second preset angle threshold.

[0076] The first angle is the angle corresponding to the horizontal plane. Unlike the first angle, the second angle is the angle corresponding to the ground where the vehicle is currently located. Considering that there may be an angle difference between the ground where the vehicle is currently located and the horizontal plane, the second preset angle threshold may be smaller than the first preset angle threshold.

[0077] In one embodiment, the value range of the first preset angle threshold may be, for example, 2° to 4°.

[0078] In one embodiment of the present application, the angle data of a spatial point may include the first and second angles of the spatial point. Based on this, a spatial point whose angle data satisfies a preset angle condition may include: a spatial point whose first angle is less than a first preset angle threshold, and whose second angle is less than a second preset angle threshold. The preset angle condition may include: the first angle of the spatial point is less than the first preset angle threshold, and the second angle is less than the second preset angle threshold.

[0079] The embodiment shown in FIG1 can obtain high-precision ground candidate points through angle difference screening processing, and can adapt to road scenes of horizontal sections and uphill and downhill sections.

[0080] Step 104 : Divide a plurality of point cloud blocks according to the first ground candidate point set, and perform ground fitting processing on the spatial points in the point cloud blocks to obtain fitting surface data of the point cloud blocks.

[0081] In one embodiment of the present application, the first point cloud data may be a frame of point cloud data output by a lidar sensor, which may be processed to obtain ground candidate points in the first point cloud data. Furthermore, the ground candidate points may be obtained by processing at least one corresponding historical frame of point cloud data output by the lidar sensor, and processing at least one corresponding future frame of point cloud data output by the lidar sensor. These obtained ground candidate points are then fused to obtain a fused set of ground candidate points, and the fused set of ground candidate points is divided into multiple point cloud blocks.

[0082] In one embodiment, the first ground candidate point set may be divided into multiple point cloud blocks.

[0083] In another embodiment, after selecting spatial points whose angle data meets preset angle conditions from the spatial points in the first point cloud data to obtain a first set of candidate ground points, the first set of candidate ground points can be further screened, and a new set of candidate ground points can be formed from the newly screened spatial points. For example, this re-screening can be performed based on the vehicle's posture data. Accordingly, the new set of candidate ground points can be divided into multiple point cloud blocks.

[0084] In one embodiment of the present application, the step of dividing a plurality of point cloud blocks according to a first ground candidate point set may include: obtaining ground height data of the ground within a set distance range around the vehicle based on the posture data of the vehicle over a previous period of time; screening out abnormal candidate points in the first ground candidate point set based on the ground height data, wherein the abnormal candidate points are within the set distance range around the vehicle, and the distance between the abnormal candidate points and the ground where the vehicle is currently located is greater than a second preset distance threshold; removing the screened abnormal candidate points from the first ground candidate point set to obtain a second ground candidate point set; and dividing the second ground candidate point set into a plurality of point cloud blocks.

[0085] In one embodiment, the value range of the set distance may be, for example, 8m to 12m, or 9m to 11m.

[0086] In one embodiment, the second preset distance threshold may be any value between 0.4 m and 0.6 m.

[0087] In one possible implementation, the 3D trajectory of the vehicle can be derived from its position data over a period of time. This 3D trajectory can then be used to obtain ground height data for the ground within 10 meters of the vehicle's trajectory. Based on this ground height data and the height data of the spatial points, candidate ground points within 10 meters of the vehicle's trajectory that are more than 0.5 meters above the ground can be filtered out.

[0088] Based on the ego pose, we can obtain a priori information about the ground height near the ego trajectory, which can be used to better filter non-ground candidate points. By filtering ground candidate points based on the ego pose, we can improve the accuracy of ground segmentation.

[0089] In one embodiment, a set of candidate ground points may be divided into several patches (blocks) according to polar angle directions to achieve point cloud rasterization. A patch may be a three-dimensional grid. The divided patches may be the aforementioned multiple point cloud blocks.

[0090] In one embodiment, when the point cloud area is divided into a number of patches according to the polar angle direction, the patch specifications may be: range: [-80, 40, 120, 40], size (patch size): 10×10.

[0091] After dividing the point cloud blocks, ground fitting can be performed on each point cloud block. Specifically, a surface corresponding to the point cloud block can be fitted based on the spatial points within the point cloud block. In one implementation, the fitted surfaces corresponding to adjacent point cloud blocks can be spliced ​​together, and the resulting surface can represent the ground in the vehicle's environment.

[0092] In a feasible implementation, for each point cloud block, the search and fitting of spatial points can be iteratively performed within the point cloud block to obtain a fitting surface corresponding to the point cloud block.

[0093] In one embodiment of the present application, performing ground fitting processing on spatial points within a point cloud block to obtain fitting surface data for the point cloud block may include: performing ground fitting processing on the spatial points within the point cloud block to obtain a first fitting surface; performing ground fitting processing on spatial points involved in the first fitting surface and spatial points within the point cloud block whose distance from the first fitting surface is less than a first preset distance threshold to obtain a second fitting surface; and obtaining fitting surface data for the point cloud block based on the second fitting surface. In this manner, ground fitting can be achieved for each point cloud block.

[0094] In one embodiment of the present application, the fitted surface data for a point cloud block includes at least one of the angle and height of the fitted surface of the point cloud block, and the degree of continuity with the fitted surfaces of adjacent point cloud blocks. Based on the fitted surface data of each point cloud block, the fitted surfaces of adjacent point cloud blocks can be spliced ​​together. For example, the fitted surfaces corresponding to some point cloud blocks can be modified and optimized to more accurately obtain ground points.

[0095] In one embodiment, the first preset distance threshold may be any value between 0.2 m and 0.4 m.

[0096] In a feasible implementation, after the second fitting surface is obtained, iterative fitting processing may no longer be performed, and fitting surface data of the point cloud block may be directly obtained based on the second fitting surface.

[0097] In another feasible implementation, after obtaining the second fitting surface, one or more (for example, 2) iterative fitting processes may be performed, and the fitting surface data of the point cloud block may be obtained based on the finally obtained fitting surface.

[0098] In one embodiment, taking another iterative fitting process as an example, the ground fitting process of the point cloud block may include: performing ground fitting process on the spatial points in the point cloud block to obtain a first fitting surface; performing ground fitting process on the spatial points involved in the first fitting surface and the spatial points in the point cloud block whose distance from the first fitting surface is less than 0.3m to obtain a second fitting surface; performing ground fitting process on the spatial points involved in the second fitting surface and the spatial points in the point cloud block whose distance from the second fitting surface is less than 0.3m to obtain a third fitting surface, and using the data of the third fitting surface as the fitting surface data of the point cloud block.

[0099] After fitting the surface, the points within the point cloud block that are closest to the surface are retained and refitted based on them. This cycle can be repeated at least once. This iterative fitting process makes the fitted surface more closely aligned with the actual ground conditions at the corresponding location, facilitates subsequent stitching of the fitted surfaces, and improves ground segmentation accuracy.

[0100] In step 105, the fitted surface data of each point cloud block is stitched together to obtain spatial points in the multiple point cloud blocks as ground points. These ground points can be used to construct the ground in the vehicle's environment, thereby achieving the purpose of ground segmentation of the LiDAR point cloud.

[0101] In one embodiment of the present application, step 105 may include: determining whether the fitting surface of each point cloud block is fitted correctly based on the fitting surface data of each point cloud block, wherein the fitting surface of the correctly fitted point cloud block can be spliced ​​with the fitting surface of the adjacent point cloud block; correcting the fitting surface of the point cloud block that is determined to be not fitted correctly; and obtaining spatial points as ground points in multiple point cloud blocks based on the fitting surface of the correctly fitted point cloud block and the corrected fitting surface of the point cloud block that is determined to be not fitted correctly.

[0102] In one embodiment of the present application, the fitting surface data of the point cloud block includes: at least one of the angle and height of the fitting surface of the point cloud block, and the degree of continuity with the fitting surface of an adjacent point cloud block.

[0103] Based on the continuity and stability of the ground, if the fitting surface data includes the angle of the fitting surface, the angles of the fitting surfaces of adjacent point cloud blocks should generally be similar, the heights of the fitting surfaces of adjacent point cloud blocks should generally be similar, and the continuity of the fitting surfaces of adjacent point cloud blocks should generally be similar and can be spliced. If the difference is large, it can be considered that the fitting surface of the corresponding point cloud block is not accurate and needs to be corrected. If the difference is small, it can be considered that the fitting surface of the corresponding point cloud block is relatively accurate and does not need to be corrected.

[0104] The fitted surface to be corrected can be modified based on the fitted surfaces of its adjacent point cloud blocks to adjust the spatial points constructing the fitted surface. The corrected fitted surface can then be spliced ​​with the fitted surfaces of the adjacent point cloud blocks. By splicing the fitted surfaces of the individual point cloud blocks, a single fitted surface can be obtained, which corresponds to the ground surface within the vehicle's environment.

[0105] In one embodiment, based on the fitting surface of the correctly fitted point cloud block and the corrected fitting surface, the spatial points involved in these fitting surfaces can be obtained, and the ground points in the multiple divided point cloud blocks can include these spatial points. Furthermore, the ground points can also include spatial points in the point cloud block whose distance from its fitting surface is less than a corresponding preset distance threshold. In one embodiment, the corresponding preset distance threshold can be any value within 0.1m to 0.3m. Feasibly, the spatial points involved in the fitting surface in the point cloud block and the spatial points within 0.2m from the fitting surface can be taken as ground points.

[0106] In one feasible implementation, the ground surface of the vehicle's environment can be fitted based on the obtained ground points. The obtained ground points can be substantially consistent with the spatial points obtained by the sensor scanning the actual ground surface. A fitting surface of the ground surface can then be accurately fitted based on the ground points. The spatial points above the fitting surface can be the spatial points obtained by the sensor scanning obstacles on the actual ground surface.

[0107] The ground flatness and continuity prior is used to verify the correctness of ground fitting between the split point cloud blocks. This helps to obtain accurate ground points. This patchwork fitting processing method is suitable for uphill and downhill scenes or scenes where the road surface is not level, and can achieve good segmentation effects at the junction of the ground and obstacles.

[0108] The embodiment shown in Figure 1 provides a LiDAR ground segmentation implementation for autonomous driving. Based on LiDAR point cloud data, this implementation uses a ground prior approach based on angle screening and surface fitting to better fit the ground area, thereby achieving more accurate segmentation of ground and non-ground points in the LiDAR point cloud data. This implementation is applicable to scenarios such as uphill and downhill driving, rainy days, urban areas, streets, and unusual-shaped vehicles, ensuring that all obstacles within the road area are completely segmented into the ground. Furthermore, the embodiment shown in Figure 1 can also be combined with processes such as time series fusion and ego-vehicle posture filtering to further enhance ground segmentation performance.

[0109] Compared to the implementation method of ground segmentation using rule-based methods, the embodiment shown in Figure 1 can achieve more accurate ground segmentation and is suitable for fitting large and small areas of flat ground. It can still ensure accurate segmentation of the ground area when the road surface is not flat, ups and downslopes, and there are many obstacles in the point cloud. The ground segmentation effect is better in congested, under construction, muddy and other sections of the road, and the MIOU (Mean Intersection over Union) is significantly improved, specifically by more than 30%. Among them, MIOU can be obtained by dividing the intersection of the predicted area and the actual area by the union of the predicted area and the actual area.

[0110] Please refer to Figures 2 and 3. Based on the ground in the same scene, Figure 2 is a schematic diagram of the ground segmentation processing results obtained when the rule-based method is used to perform ground segmentation, and Figure 3 is a schematic diagram of the ground segmentation processing results obtained when the embodiment shown in Figure 1 is used to perform ground segmentation.

[0111] Referring to Figure 2, by comparing the actual road surface with the ground segmentation results obtained using the rule-based method, we can detect four areas where the ground segmentation results are poor (as shown in the four marked boxes in Figure 2). The missing ground within each marked box and the ground outside the marked box are displayed using different colors (this color distinction is not shown in Figure 2).

[0112] Referring to FIG3 , by comparing and analyzing the actual road surface and the ground segmentation processing result obtained using the embodiment shown in FIG1 , it can be detected that the ground segmentation processing result does not have four poor ground segmentation effects.

[0113] Please refer to Figures 4 and 5. Based on the ground in the same scene, Figure 4 is a schematic diagram of the ground segmentation processing results obtained when the rule-based method is used to perform ground segmentation, and Figure 5 is a schematic diagram of the ground segmentation processing results obtained when the embodiment shown in Figure 1 is used to perform ground segmentation.

[0114] Referring to Figure 4, by comparing the actual road surface with the ground segmentation results obtained using the rule-based method, it can be detected that the ground segmentation results have a poor performance (as shown in a marked box in Figure 2). The missing ground within the marked box and the ground outside the marked box are displayed with different colors (this color distinction is not shown in Figure 2).

[0115] Referring to FIG5 , by comparing and analyzing the actual road surface and the ground segmentation processing results obtained using the embodiment shown in FIG1 , it can be detected that the ground segmentation processing results do not have four poor ground segmentation effects.

[0116] It can be seen that compared with the rule-based method for ground segmentation, the ground segmentation processing result when the embodiment shown in FIG1 is used for ground segmentation is better.

[0117] As shown in Figure 6, an embodiment of the present application provides a ground segmentation processing device 60, including: a first acquisition module 601, used to acquire first point cloud data, wherein the first point cloud data is obtained according to the point cloud data output by the vehicle's lidar sensor, and the first point cloud data includes coordinate data of multiple spatial points; a second acquisition module 602, used to acquire angle data of spatial points in the first point cloud data according to the coordinate data of the spatial points in the first point cloud data; a third acquisition module 603, used to acquire spatial points in the first point cloud data whose angle data meet preset angle conditions as ground candidate points, so as to obtain a first ground candidate point set; a first processing module 604, used to divide multiple point cloud blocks according to the first ground candidate point set, and perform ground fitting processing on the spatial points in the point cloud blocks to obtain fitting surface data of the point cloud blocks; a second processing module 605, used to perform fitting surface splicing processing according to the fitting surface data of each point cloud block, to obtain spatial points in multiple point cloud blocks as ground points.

[0118] One embodiment of the present application provides an electronic chip, comprising: a processor, which is used to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered to execute the method described in any embodiment of the present application.

[0119] An embodiment of the present application provides an electronic device, which includes at least one processor, the processor and a memory coupled, the memory being used to store computer program instructions, and the processor being used to execute the computer program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method described in any embodiment of the present application.

[0120] One embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer is enabled to execute the method described in any embodiment of the present application.

[0121] One embodiment of the present application provides a computer program product, which includes a computer program. When the computer program runs on a computer, the computer executes the method described in any embodiment of the present application.

[0122] Figure 7 is a schematic diagram of a computer device provided in an embodiment of the present application. As shown in Figure 7, the computer device 20 of this embodiment includes: a processor 21 and a memory 22. The memory 22 is used to store a computer program 23 that can be executed on the processor 21. When the computer program 23 is executed by the processor 21, it implements the steps of the method embodiment of the present application. To avoid repetition, they are not described here one by one. Alternatively, when the computer program 23 is executed by the processor 21, it implements the functions of each model / unit in the device embodiment of the present application. To avoid repetition, they are not described here one by one.

[0123] The computer device 20 includes, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that FIG7 is merely an example of the computer device 20 and does not limit the computer device 20 . The computer device 20 may include more or fewer components than shown, or may combine certain components or different components. For example, the computer device may also include input and output devices, network access devices, buses, and the like.

[0124] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc.

[0125] The memory 22 can be an internal storage unit of the computer device 20, such as a hard disk or memory of the computer device 20. The memory 22 can also be an external storage device of the computer device 20, such as a plug-in hard disk, a Smart Media (SM) card, a Secure Digital (SD) card, a Flash Card, etc. equipped on the computer device 20. Furthermore, the memory 22 can include both an internal storage unit of the computer device 20 and an external storage device. The memory 22 is used to store the computer program 23 and other programs and data required by the computer device. The memory 22 can also be used to temporarily store data that has been output or is about to be output.

[0126] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.

[0127] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0128] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0129] The integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program code.

[0130] In the embodiments of the present application, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, commodity, or apparatus comprising the element.

[0131] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0132] The various embodiments in this application are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences from other embodiments. In particular, the device embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the partial description of the method embodiments.

[0133] Those skilled in the art will appreciate that the various units and algorithm steps described in the embodiments of the present application can be implemented using a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0134] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0135] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A ground segmentation processing method, characterized in that: include: Acquire first point cloud data, wherein the first point cloud data is obtained according to point cloud data output by a laser radar sensor of the vehicle, and the first point cloud data includes coordinate data of a plurality of spatial points; Acquire angle data of the spatial point in the first point cloud data according to the coordinate data of the spatial point in the first point cloud data; Acquire spatial points in the first point cloud data whose angle data satisfy a preset angle condition as ground candidate points to obtain a first ground candidate point set; Dividing a plurality of point cloud blocks according to the first ground candidate point set, and performing ground fitting processing on the spatial points in the point cloud blocks to obtain fitting surface data of the point cloud blocks; Fitting surface splicing processing is performed according to the fitting surface data of each of the point cloud blocks to obtain spatial points in the multiple point cloud blocks as ground points.

2. The method according to claim 1, characterized in that: The acquiring, according to the coordinate data of the spatial point in the first point cloud data, the angle data of the spatial point in the first point cloud data comprises: Acquire a first angle of the spatial point in the first point cloud data according to the coordinate data of the spatial point in the first point cloud data, wherein the first angle is an angle between a line connecting the spatial point and the vehicle position point and a horizontal plane; The spatial point whose angle data satisfies a preset angle condition includes: a spatial point whose first angle is less than a first preset angle threshold.

3. The method according to claim 1, characterized in that The acquiring, according to the coordinate data of the spatial point in the first point cloud data, the angle data of the spatial point in the first point cloud data comprises: According to the coordinate data of the spatial point in the first point cloud data, obtaining a second angle of the spatial point in the first point cloud data, wherein the second angle is an angle between a line connecting the spatial point and the vehicle position point and the ground where the vehicle is currently located; Among them, the spatial point whose angle data satisfies the preset angle condition includes: a spatial point whose second angle is less than a second preset angle threshold.

4. The method according to claim 1, characterized in that: The performing ground fitting processing on the spatial points in the point cloud block to obtain fitting surface data of the point cloud block includes: Performing ground fitting processing on the spatial points in the point cloud block to obtain a first fitting surface; Performing ground fitting processing on the spatial points involved in the first fitting surface and the spatial points in the point cloud block whose distance from the first fitting surface is less than a first preset distance threshold, to obtain a second fitting surface; The fitting surface data of the point cloud block is obtained according to the second fitting surface.

5. The method according to claim 1, characterized in that: The fitting surface data of the point cloud block includes: at least one of an angle, a height, and a degree of continuity of the fitting surface of the point cloud block with the fitting surface of an adjacent point cloud block; The performing fitting surface splicing processing according to the fitting surface data of each of the point cloud blocks to obtain the spatial points in the plurality of point cloud blocks as ground points includes: According to the fitting surface data of each point cloud block, determining whether the fitting surface of each point cloud block is correctly fitted, wherein the fitting surface of the correctly fitted point cloud block can be spliced ​​with the fitting surface of the adjacent point cloud block; Correcting the fitting surface of the point cloud block that is determined to be not correctly fitted; According to the determined fitting surfaces of the correctly fitted point cloud blocks and the corrected fitting surfaces of the incorrectly fitted point cloud blocks, the spatial points in the multiple point cloud blocks as ground points are obtained.

6. The method according to claim 1, characterized in that The obtaining of the first point cloud data comprises: Acquire multiple frames of point cloud data, wherein the point cloud data sequentially output by the laser radar sensor within a period of time includes the multiple frames of point cloud data, and the duration of the period of time is not greater than a preset duration threshold; Perform time series fusion processing on the multiple frames of point cloud data to obtain the first point cloud data.

7. The method according to claim 1, characterized in that The dividing the plurality of point cloud blocks according to the first ground candidate point set includes: Obtaining ground height data of the ground within a set distance range around the vehicle based on the posture data of the vehicle in a previous period of time; Filtering out abnormal candidate points in the first ground candidate point set according to the ground height data, wherein the abnormal candidate points are within a set distance range around the vehicle, and the distance between the abnormal candidate points and the ground where the vehicle is currently located is greater than a second preset distance threshold; Removing the screened abnormal candidate points from the first ground candidate point set to obtain a second ground candidate point set; The second ground candidate point set is divided into the plurality of point cloud blocks.

8. A ground segmentation processing device, characterized in that: include: A first acquisition module, configured to acquire first point cloud data, wherein the first point cloud data is obtained according to point cloud data output by a laser radar sensor of the vehicle, and the first point cloud data includes coordinate data of a plurality of spatial points; A second acquisition module, configured to acquire angle data of a spatial point in the first point cloud data according to coordinate data of the spatial point in the first point cloud data; A third acquisition module is used to acquire, in the first point cloud data, spatial points whose angle data satisfy a preset angle condition as ground candidate points, so as to obtain a first ground candidate point set; A first processing module, configured to divide a plurality of point cloud blocks according to the first ground candidate point set, and perform ground fitting processing on the spatial points in the point cloud blocks to obtain fitting surface data of the point cloud blocks; The second processing module is used to perform fitting surface splicing processing according to the fitting surface data of each point cloud block to obtain spatial points in the multiple point cloud blocks as ground points.

9. An electronic device, characterized in that: The electronic device comprises at least one processor, the processor is coupled to a memory, the memory is used to store computer program instructions, and the processor is used to execute computer program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Ground segmentation method of multi-line laser radar

    CN110163871A

  • Point cloud segmentation method and device, electronic equipment, storage medium and robot

    CN111275715A

  • Ground point cloud data filtering method and device, detection system and storage medium

    CN111435163A

  • Ground segmentation method and device based on point cloud data

    CN111639682A

  • Point cloud-based segmentation processing method and apparatus, computer device, and storage medium

    WO2021134339A1

Cited By

  • Indoor scene point cloud blocking method

    CN120525904A