CN113077473B - Three-dimensional laser point cloud pavement segmentation method, system, computer equipment and medium - Google Patents

Three-dimensional laser point cloud pavement segmentation method, system, computer equipment and medium Download PDF

Info

Publication number
CN113077473B
CN113077473B CN202010004652.8A CN202010004652A CN113077473B CN 113077473 B CN113077473 B CN 113077473B CN 202010004652 A CN202010004652 A CN 202010004652A CN 113077473 B CN113077473 B CN 113077473B
Authority
CN
China
Prior art keywords
grid
cluster
ground
eigenvalue
clusters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010004652.8A
Other languages
Chinese (zh)
Other versions
CN113077473A (en
Inventor
刘康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN202010004652.8A priority Critical patent/CN113077473B/en
Publication of CN113077473A publication Critical patent/CN113077473A/en
Application granted granted Critical
Publication of CN113077473B publication Critical patent/CN113077473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/187Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10028Range image; Depth image; 3D point clouds

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Probability & Statistics with Applications (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Traffic Control Systems (AREA)

Abstract

本发明公开了一种三维激光点云路面分割方法,包括:构建扇形栅格地图;对所述扇形栅格地图进行连通域聚类处理以构建栅格簇;对符合预设条件的栅格簇进行特征值分析,提取符合线特征及面特征的栅格簇作为地面栅格簇;在所述扇形栅格地图的径向方向上对所述地面栅格簇进行平滑度检查,提取符合平滑度要求的地面栅格簇。本发明还公开了三维激光点云路面分割系统、计算机设备及计算机可读存储介质。本发明通过分析三维激光点云的几何特征,实现了对复杂地形高效、准确的点云路面分割,在精确性与鲁邦性上有较大提升。

The present invention discloses a three-dimensional laser point cloud road segmentation method, comprising: constructing a sector grid map; performing connected domain clustering processing on the sector grid map to construct grid clusters; performing characteristic value analysis on grid clusters that meet preset conditions, extracting grid clusters that meet line features and surface features as ground grid clusters; performing smoothness inspection on the ground grid clusters in the radial direction of the sector grid map, and extracting ground grid clusters that meet the smoothness requirements. The present invention also discloses a three-dimensional laser point cloud road segmentation system, a computer device, and a computer-readable storage medium. The present invention realizes efficient and accurate point cloud road segmentation for complex terrain by analyzing the geometric features of the three-dimensional laser point cloud, and has a significant improvement in accuracy and robustness.

Description

三维激光点云路面分割方法、系统、计算机设备及介质Three-dimensional laser point cloud road segmentation method, system, computer equipment and medium

技术领域Technical Field

本发明涉及无人驾驶技术领域,尤其涉及三维激光点云路面分割方法、三维激光点云路面分割系统、计算机设备及计算机可读存储介质。The present invention relates to the field of unmanned driving technology, and in particular to a three-dimensional laser point cloud road surface segmentation method, a three-dimensional laser point cloud road surface segmentation system, a computer device and a computer-readable storage medium.

背景技术Background technique

无人车或自动驾驶是目前人工智能产业中最具有应用价值的行业之一,环境感知作为无人车核心研究内容,是智能汽车实现自主决策和路径规划的基础。对环境感知的准确性直接决定着汽车的智能化水平,然而目前技术在复杂环境下仍难以准确、迅速感知出最有效的外界信息,仍有很多关键技术需要突破。Unmanned vehicles or autonomous driving are one of the most valuable industries in the current artificial intelligence industry. Environmental perception, as the core research content of unmanned vehicles, is the basis for intelligent vehicles to achieve autonomous decision-making and path planning. The accuracy of environmental perception directly determines the level of intelligence of the car. However, current technology still cannot accurately and quickly perceive the most effective external information in complex environments, and there are still many key technologies that need to be broken through.

现有技术中,普遍利用激光雷达进行障碍物及可行驶区域的检测。其中,路面分割是激光雷达检测的前提。目前,比较典型激光点云路面分割方法有:In the existing technology, laser radar is generally used to detect obstacles and drivable areas. Among them, road segmentation is the premise of laser radar detection. At present, the more typical laser point cloud road segmentation methods are:

一、将点云建立无向图,通过设置损失函数求解无向图模型来分割路面。但该方法对损失函数的精确度依赖较强,损失函数如果不适合,会造成精确度较低的问题。First, the point cloud is built into an undirected graph, and the road surface is segmented by setting a loss function to solve the undirected graph model. However, this method is highly dependent on the accuracy of the loss function. If the loss function is not suitable, it will cause low accuracy.

二、通过ransac的方法建立一个或者多个拟合的路面模型。但该方法很难适应路面凹凸不平、多斜坡等不规则路面工况。Second, establish one or more fitted road surface models through the RANSAC method. However, this method is difficult to adapt to irregular road conditions such as uneven roads and multiple slopes.

三、在特定方向上进行梯度筛选然后通过平滑函数来过滤地面点云。但该方法难以综合利用邻近点所呈现出来的组合特征,会造成特征信息在使用上的浪费。Third, perform gradient screening in a specific direction and then filter the ground point cloud through a smoothing function. However, this method is difficult to comprehensively utilize the combined features presented by neighboring points, which will result in a waste of feature information.

发明内容Summary of the invention

本发明所要解决的技术问题在于,提供一种三维激光点云路面分割方法、系统、计算机设备及介质,可通过分析三维激光点云的几何特征,实现了对复杂地形高效、准确的点云路面分割。The technical problem to be solved by the present invention is to provide a three-dimensional laser point cloud road surface segmentation method, system, computer equipment and medium, which can achieve efficient and accurate point cloud road surface segmentation for complex terrain by analyzing the geometric features of the three-dimensional laser point cloud.

为了解决上述技术问题,本发明提供了一种三维激光点云路面分割方法,包括:构建扇形栅格地图;对所述扇形栅格地图进行连通域聚类处理以构建栅格簇;对符合预设条件的栅格簇进行特征值分析,提取符合线特征及面特征的栅格簇作为地面栅格簇;在所述扇形栅格地图的径向方向上对所述地面栅格簇进行平滑度检查,提取符合平滑度要求的地面栅格簇。In order to solve the above technical problems, the present invention provides a three-dimensional laser point cloud road segmentation method, comprising: constructing a sector grid map; performing connected domain clustering processing on the sector grid map to construct grid clusters; performing feature value analysis on grid clusters that meet preset conditions, and extracting grid clusters that meet line features and surface features as ground grid clusters; performing smoothness inspection on the ground grid clusters in the radial direction of the sector grid map, and extracting ground grid clusters that meet the smoothness requirements.

作为上述方案的改进,所述三维激光点云路面分割方法还包括:在扇形栅格地图的径向方向上,根据所述地面栅格簇构建平滑约束,将不符合预设条件的栅格簇中符合平滑约束的栅格作为地面栅格。As an improvement of the above scheme, the three-dimensional laser point cloud road segmentation method also includes: in the radial direction of the fan-shaped grid map, constructing a smooth constraint according to the ground grid cluster, and taking the grid that meets the smooth constraint in the grid cluster that does not meet the preset conditions as the ground grid.

作为上述方案的改进,所述构建扇形栅格地图的步骤包括:将激光雷达的三维激光点云投影到扇形栅格地图中,所述扇形栅格地图由多个相互独立的栅格组成;分别计算每个栅格中的所有点的最大高度差,若所述最大高度差大于预设阈值,则所述栅格为障碍物栅格,删除所述障碍物栅格。As an improvement of the above scheme, the step of constructing a fan-shaped grid map includes: projecting the three-dimensional laser point cloud of the lidar into the fan-shaped grid map, the fan-shaped grid map is composed of multiple independent grids; calculating the maximum height difference of all points in each grid respectively, if the maximum height difference is greater than a preset threshold, the grid is an obstacle grid, and the obstacle grid is deleted.

作为上述方案的改进,所述对扇形栅格地图进行连通域聚类处理以构建栅格簇的步骤包括:S11,在扇形栅格地图中,以一个栅格为搜寻中心,建立栅格簇;S12,在预设领域内搜寻满足梯度要求的栅格,并将满足梯度要求的栅格添加到所述栅格簇中;S13,在所述栅格簇内,以另一个未被作为搜寻中心的栅格为新的搜寻中心,进入步骤S12,直至所述栅格簇中的所有栅格均完成搜寻;S14,在所述栅格簇外,以另一个未被作为搜寻中心的栅格为新的搜寻中心,建立新的栅格簇,进入步骤S12,直至所述扇形栅格地图中的所有栅格均完成搜寻。As an improvement of the above scheme, the step of performing connected domain clustering processing on the sector grid map to construct a grid cluster includes: S11, in the sector grid map, taking a grid as the search center to establish a grid cluster; S12, searching for grids that meet the gradient requirements in a preset field, and adding the grids that meet the gradient requirements to the grid cluster; S13, within the grid cluster, taking another grid that is not used as the search center as a new search center, entering step S12, until all grids in the grid cluster are searched; S14, outside the grid cluster, taking another grid that is not used as the search center as a new search center, establishing a new grid cluster, entering step S12, until all grids in the sector grid map are searched.

作为上述方案的改进,判断栅格簇是否符合预设条件的步骤包括:将栅格簇内的每个栅格转换为点,并为所述栅格簇构建最小包围矩形;判断所述栅格簇内点的数量是否小于预设数量或所述栅格簇所对应的最小包围矩形的对角线长度是否小于预设长度,判断为是时,所述栅格簇不符合预设条件,判断为否时,所述栅格簇符合预设条件。As an improvement of the above scheme, the step of determining whether a grid cluster meets preset conditions includes: converting each grid in the grid cluster into a point and constructing a minimum enclosing rectangle for the grid cluster; determining whether the number of points in the grid cluster is less than a preset number or whether the diagonal length of the minimum enclosing rectangle corresponding to the grid cluster is less than a preset length, and when the determination is yes, the grid cluster does not meet the preset conditions, and when the determination is no, the grid cluster meets the preset conditions.

作为上述方案的改进,所述对符合预设条件的栅格簇进行特征分析,提取符合线特征及面特征的栅格簇作为地面栅格簇的步骤包括:根据所述符合预设条件的栅格簇内的点构建协方差矩阵;计算所述协方差矩阵的特征值;提取所述特征中的最小特征值、中间特征值及最大特征值,并根据所述最小特征值、中间特征值及最大特征值之间的差值进行判断,其中,当所述最小特征值与中间特征值之间的差值不在预设范围内,且所述中间特征值与最大特征值之间的差值在预设范围内,则所述符合预设条件的栅格簇为面状栅格簇;当所述最小特征值与中间特征值之间的差值在预设范围内,且所述最小特征值与最大特征值之间的差值不在预设范围内,则所述符合预设条件的栅格簇为线状栅格簇;当所述最小特征值、中间特征值及最大特征值之间的差值在预设范围内,则所述符合预设条件的栅格簇为球状栅格簇;将所述面状栅格簇及线状栅格簇作为地面栅格簇。As an improvement of the above scheme, the step of performing feature analysis on the grid clusters that meet the preset conditions and extracting the grid clusters that meet the line features and the surface features as the ground grid clusters includes: constructing a covariance matrix based on the points in the grid clusters that meet the preset conditions; calculating the eigenvalues of the covariance matrix; extracting the minimum eigenvalue, the intermediate eigenvalue and the maximum eigenvalue in the features, and making a judgment based on the difference between the minimum eigenvalue, the intermediate eigenvalue and the maximum eigenvalue, wherein when the difference between the minimum eigenvalue and the intermediate eigenvalue is not within the preset range, and the intermediate eigenvalue is When the difference between the minimum eigenvalue and the maximum eigenvalue is within the preset range, the grid cluster that meets the preset conditions is a planar grid cluster; when the difference between the minimum eigenvalue and the intermediate eigenvalue is within the preset range, and the difference between the minimum eigenvalue and the maximum eigenvalue is not within the preset range, the grid cluster that meets the preset conditions is a linear grid cluster; when the difference between the minimum eigenvalue, the intermediate eigenvalue and the maximum eigenvalue is within the preset range, the grid cluster that meets the preset conditions is a spherical grid cluster; the planar grid cluster and the linear grid cluster are regarded as ground grid clusters.

作为上述方案的改进,所述在扇形栅格地图的径向方向上对地面栅格簇进行平滑度检查,提取符合平滑度要求的地面栅格簇的步骤包括:S21,以激光雷达所在的地面点为起始点;As an improvement of the above scheme, the step of checking the smoothness of the ground grid clusters in the radial direction of the sector grid map and extracting the ground grid clusters that meet the smoothness requirements includes: S21, taking the ground point where the laser radar is located as the starting point;

S22,在所述扇形栅格地图的径向方向上依次计算地面栅格簇中相邻栅格之间的梯度,若所述梯度不满足梯度要求,则所述梯度对应的相邻栅格中的前一个栅格为终止栅格,并将所述终止栅格及之前的栅格标记为地面栅格;S23,将所述终止栅格之后的栅格标记为非地面栅格,直至当前栅格的高度低于上一个非地面栅格的高度;S24,判断当前栅格与上一个终止栅格之间的高度差是否小于预设高度差,判断为是时,以当前栅格为新的起始点,进入步骤S22,判断为否时,将当前栅格标记为非地面栅格并继续检查下一个栅格,进入步骤S24;S25,直至所述地面栅格簇中所有的栅格均完成检查,判断所述地面栅格簇中非地面栅格的数量是否大于地面栅格的数量,判断为是时,则删除所述地面栅格簇,判断为否时,则保留所述地面栅格簇。S22, in the radial direction of the sector grid map, sequentially calculate the gradient between adjacent grids in the ground grid cluster. If the gradient does not meet the gradient requirement, the previous grid in the adjacent grid corresponding to the gradient is the termination grid, and the termination grid and the previous grids are marked as ground grids; S23, the grids after the termination grid are marked as non-ground grids until the height of the current grid is lower than the height of the previous non-ground grid; S24, determine whether the height difference between the current grid and the previous termination grid is less than the preset height difference. If the judgment is yes, take the current grid as the new starting point and enter step S22. If the judgment is no, mark the current grid as a non-ground grid and continue to check the next grid and enter step S24; S25, until all grids in the ground grid cluster are checked, determine whether the number of non-ground grids in the ground grid cluster is greater than the number of ground grids. If the judgment is yes, delete the ground grid cluster. If the judgment is no, retain the ground grid cluster.

作为上述方案的改进,所述在扇形栅格地图的径向方向上,根据所述地面栅格簇构建平滑约束,将不符合预设条件的栅格簇中符合平滑约束的栅格作为地面栅格的步骤包括:在所述扇形栅格地图的径向方向上,根据地面栅格簇中栅格的半径长度及高度构建平滑曲线;根据所述平滑曲线对径向方向上的所有栅格进行平滑处理以生成平滑函数;将不符合预设条件的栅格簇中栅格的径向长度代入所述平滑函数以计算当前栅格的理论高度;判断所述当前栅格的理论高度与实际高度之间的差值是否在预设差值范围内,判断为是时,所述当前栅格为地面栅格,判断为否时,所述当前栅格为非地面栅格。As an improvement of the above scheme, the step of constructing a smooth constraint according to the ground grid cluster in the radial direction of the sector grid map and taking the grid that meets the smooth constraint in the grid cluster that does not meet the preset conditions as the ground grid includes: constructing a smooth curve according to the radius length and height of the grid in the ground grid cluster in the radial direction of the sector grid map; smoothing all grids in the radial direction according to the smooth curve to generate a smooth function; substituting the radial length of the grid in the grid cluster that does not meet the preset conditions into the smooth function to calculate the theoretical height of the current grid; judging whether the difference between the theoretical height and the actual height of the current grid is within a preset difference range, if it is judged to be yes, the current grid is a ground grid, and if it is judged to be no, the current grid is a non-ground grid.

相应地,本发明还提供了一种三维激光点云路面分割系统,包括:地图构建模块,用于构建扇形栅格地图;类聚处理模块,用于对所述扇形栅格地图进行连通域聚类处理以构建栅格簇;特征分析模块,用于对符合预设条件的栅格簇进行特征值分析,提取符合线特征及面特征的栅格簇作为地面栅格簇;平滑检查模块,用于在所述扇形栅格地图的径向方向上对所述地面栅格簇进行平滑度检查,提取符合平滑度要求的地面栅格簇。Correspondingly, the present invention also provides a three-dimensional laser point cloud road segmentation system, comprising: a map construction module, used to construct a sector grid map; a clustering processing module, used to perform connected domain clustering processing on the sector grid map to construct grid clusters; a feature analysis module, used to perform feature value analysis on grid clusters that meet preset conditions, and extract grid clusters that meet line features and surface features as ground grid clusters; a smoothness check module, used to perform smoothness check on the ground grid clusters in the radial direction of the sector grid map, and extract ground grid clusters that meet the smoothness requirements.

作为上述方案的改进,所述三维激光点云路面分割系统还包括:平滑约束模块,用于在扇形栅格地图的径向方向上,根据所述地面栅格簇构建平滑约束,将不符合预设条件的栅格簇中符合平滑约束的栅格作为地面栅格。As an improvement of the above scheme, the three-dimensional laser point cloud road segmentation system also includes: a smooth constraint module, which is used to construct a smooth constraint according to the ground grid cluster in the radial direction of the fan-shaped grid map, and use the grid that meets the smooth constraint in the grid cluster that does not meet the preset conditions as the ground grid.

相应地,本发明还提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行上述三维激光点云路面分割方法的步骤。Correspondingly, the present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the above-mentioned three-dimensional laser point cloud road surface segmentation method.

相应地,本发明还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现三维激光点云路面分割方法的步骤。Correspondingly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the three-dimensional laser point cloud road surface segmentation method are implemented.

实施本发明,具有如下有益效果:The implementation of the present invention has the following beneficial effects:

本发明通过对路面点云进行聚类分析以将路面点云分成多个点云簇,并针对路面点云的几何特征进行特征值分析,再利用平滑度公式对栅格进行平滑拟合,最终实现了对复杂地形高效、准确的点云路面分割。因此,与现有技术相比,本发明在精确性与鲁邦性上有较大提升。The present invention performs cluster analysis on the road point cloud to divide the road point cloud into multiple point cloud clusters, performs eigenvalue analysis on the geometric features of the road point cloud, and then uses the smoothness formula to smoothly fit the grid, ultimately achieving efficient and accurate point cloud road segmentation for complex terrain. Therefore, compared with the prior art, the present invention has greatly improved accuracy and robustness.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本发明三维激光点云路面分割方法的第一实施例流程图;FIG1 is a flow chart of a first embodiment of a three-dimensional laser point cloud road segmentation method according to the present invention;

图2是本发明中扇形栅格地图的示意图;FIG2 is a schematic diagram of a sector grid map in the present invention;

图3是本发明中某一径向方向上栅格的分布情况示意图;FIG3 is a schematic diagram of the distribution of grids in a certain radial direction in the present invention;

图4是本发明中某一径向方向上栅格的另一分布情况示意图FIG. 4 is a schematic diagram of another distribution of grids in a radial direction in the present invention.

图5是本发明三维激光点云路面分割方法的第二实施例流程图;5 is a flow chart of a second embodiment of a three-dimensional laser point cloud road segmentation method according to the present invention;

图6是本发明三维激光点云路面分割系统的第一实施例结构示意图;6 is a schematic structural diagram of a first embodiment of a three-dimensional laser point cloud road segmentation system according to the present invention;

图7是本发明三维激光点云路面分割系统的第二实施例结构示意图。FIG. 7 is a schematic structural diagram of a second embodiment of a three-dimensional laser point cloud road segmentation system according to the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

根据三维激光雷达的成像特点,在返回的点云中有较大一部分是通过路面反射回来的,此类点云称为地面点云。而路面分割的目的是将地面点云从全部点云中分离出来,其意义在于一方面可以根据分离出来的地面提取可行驶区域,另一方面,由于地面点对于障碍物检测来讲没有任何意义,所以在进行障碍物检测时,可以减少大量的无用点。因此,路面分割是利用激光雷达进行障碍物检测、可行驶区域检测等相关功能的前提。According to the imaging characteristics of 3D laser radar, a large part of the returned point cloud is reflected by the road surface, and this type of point cloud is called ground point cloud. The purpose of road surface segmentation is to separate the ground point cloud from the entire point cloud. Its significance lies in that on the one hand, the drivable area can be extracted based on the separated ground, and on the other hand, since the ground points have no meaning for obstacle detection, a large number of useless points can be reduced when performing obstacle detection. Therefore, road surface segmentation is the prerequisite for using laser radar for obstacle detection, drivable area detection and other related functions.

参见图1,图1显示了本发明三维激光点云路面分割方法的第一实施例流程图,其包括:Referring to FIG. 1 , FIG. 1 shows a flow chart of a first embodiment of a three-dimensional laser point cloud road segmentation method of the present invention, which includes:

S101,构建扇形栅格地图。S101, constructing a sector grid map.

具体地,所述构建扇形栅格地图的步骤包括:Specifically, the step of constructing a sector grid map includes:

(1)将激光雷达的三维激光点云投影到扇形栅格地图中,所述扇形栅格地图由多个相互独立的栅格组成。(1) Projecting the three-dimensional laser point cloud of the laser radar into a fan-shaped grid map, wherein the fan-shaped grid map is composed of a plurality of independent grids.

(2)分别计算每个栅格中的所有点的最大高度差,若所述最大高度差大于预设阈值,则所述栅格为障碍物栅格,删除所述障碍物栅格。(2) Calculate the maximum height difference of all points in each grid respectively. If the maximum height difference is greater than a preset threshold, the grid is an obstacle grid and the obstacle grid is deleted.

所述最大高度差是指每个栅格中最高点与最低点之间的高度差。例如,某栅格中有点A(高度为2mm)、点B(高度为9mm)及点C(高度为2.5mm),则该栅格的高度最大值为9mm,高度最小值为2mm,最大高度差为7mm。The maximum height difference refers to the height difference between the highest point and the lowest point in each grid. For example, if a grid has point A (height 2mm), point B (height 9mm) and point C (height 2.5mm), the maximum height of the grid is 9mm, the minimum height is 2mm, and the maximum height difference is 7mm.

分割过程中,需先将激光雷达的三维激光点云投影到如图2所示的栅格中,其中,同一个栅格中可存在任意数量的激光雷达点;计算栅格中所有点的最大高度差Hmm,如果最大高度差Hmm大于预设阈值,则说明此栅格为障碍物栅格,则将此栅格删除。During the segmentation process, the three-dimensional laser point cloud of the laser radar must first be projected into the grid as shown in Figure 2, where any number of laser radar points can exist in the same grid; the maximum height difference Hmm of all points in the grid is calculated. If the maximum height difference Hmm is greater than the preset threshold, it means that this grid is an obstacle grid, and this grid is deleted.

S102,对所述扇形栅格地图进行连通域聚类处理以构建栅格簇。S102, performing connected domain clustering processing on the sector grid map to construct grid clusters.

由于现实中地面的几何特征只与相邻的地面特征相关,并且地面相对较平坦,相邻之间的梯度变化比较小,因此,本发明利用聚类将相邻梯度差别不大的栅格聚为一类。具体地,所述对扇形栅格地图进行连通域聚类处理以构建栅格簇的步骤包括:Since the geometric features of the ground in reality are only related to the adjacent ground features, and the ground is relatively flat, the gradient change between adjacent grids is relatively small, so the present invention uses clustering to cluster grids with small adjacent gradient differences into one category. Specifically, the steps of performing connected domain clustering processing on the sector grid map to construct grid clusters include:

(1)在扇形栅格地图中,以一个栅格为搜寻中心,建立栅格簇。(1) In a sector grid map, a grid cluster is established with one grid as the search center.

以随机一个栅格为搜寻中心,建立一个新的栅格簇。Create a new grid cluster with a random grid as the search center.

(2)在预设领域内搜寻满足梯度要求的栅格,并将满足梯度要求的栅格添加到所述栅格簇中。(2) Searching for grids that meet the gradient requirements in a preset area, and adding the grids that meet the gradient requirements to the grid cluster.

如图2所示,若预设横向范围Nh=1(即以搜寻中心为基准,横向延伸1个栅格),预设纵向范围Np=2(即以搜寻中心为基准,纵向延伸2个栅格),则预设领域为“栅格1”“栅格2”“栅格3”“栅格4”“栅格5”及“栅格6”。As shown in Figure 2, if the preset horizontal range Nh=1 (i.e., based on the search center, it extends horizontally by 1 grid), and the preset vertical range Np=2 (i.e., based on the search center, it extends vertically by 2 grids), then the preset areas are "Grid 1", "Grid 2", "Grid 3", "Grid 4", "Grid 5" and "Grid 6".

梯度是指两个栅格的高度差Hg与两个栅格的坐标欧式距离D的比值,即梯度G=Hg/D,如果梯度G小于预设梯度Gt,则认为栅格符合梯度要求。其中,栅格高度是指每个栅格内所有点的高度的平均值。The gradient refers to the ratio of the height difference Hg of two grids to the Euclidean distance D of the coordinates of the two grids, that is, the gradient G = Hg/D. If the gradient G is less than the preset gradient Gt, the grid is considered to meet the gradient requirements. Among them, the grid height refers to the average height of all points in each grid.

(3)在所述栅格簇内,以另一个未被作为搜寻中心的栅格为新的搜寻中心,进入步骤(2),直至所述栅格簇中的所有栅格均完成搜寻。(3) Within the grid cluster, another grid that is not used as the search center is used as a new search center, and the process goes to step (2) until all grids in the grid cluster have completed the search.

当完成当前搜寻中心在预设领域内的梯度判断后,在所述栅格簇内以另一个新的栅格为搜寻中心(此栅格从未被作为搜寻中心点),重复步骤(2)中的搜寻操作,直至符合梯度要求的栅格全部加入到栅格簇中。最后,当栅格簇中再没有未被当作搜寻中心的栅格存在,此时栅格簇的扩充结束。After the gradient judgment of the current search center within the preset range is completed, another new grid is used as the search center in the grid cluster (this grid has never been used as the search center point), and the search operation in step (2) is repeated until all grids that meet the gradient requirements are added to the grid cluster. Finally, when there are no more grids in the grid cluster that have not been used as the search center, the expansion of the grid cluster is completed.

(4)在所述栅格簇外,以另一个未被作为搜寻中心的栅格为新的搜寻中心,建立新的栅格簇,进入步骤(2),直至所述扇形栅格地图中的所有栅格均完成搜寻。(4) Outside the grid cluster, a new grid cluster is established with another grid that is not used as the search center as a new search center, and the process goes to step (2) until all grids in the fan-shaped grid map have been searched.

以所述栅格簇以外的栅格为中心,建立新的栅格簇,重复步骤(2)及步骤(3)的搜寻操作,直至没有可以建立新的栅格簇的起始栅格,此时形成若干个栅格簇,聚类完成。A new grid cluster is established with the grid outside the grid cluster as the center, and the search operations of step (2) and step (3) are repeated until there is no starting grid for establishing a new grid cluster. At this time, several grid clusters are formed and clustering is completed.

因此,通过步骤S102可实现栅格的有效聚类,以构建一个或多个栅格簇,以实现对栅格的分别处理,针对性强。Therefore, through step S102, effective clustering of grids can be achieved to construct one or more grid clusters, so as to achieve separate processing of grids with strong pertinence.

S103,对符合预设条件的栅格簇进行特征值分析,提取符合线特征及面特征的栅格簇作为地面栅格簇。S103, performing feature value analysis on grid clusters meeting preset conditions, and extracting grid clusters meeting line features and surface features as ground grid clusters.

具体地,判断栅格簇是否符合预设条件的步骤包括:Specifically, the step of determining whether the grid cluster meets the preset conditions includes:

(1)将栅格簇内的每个栅格转换为点,并为所述栅格簇构建最小包围矩形。(1) Convert each grid in a grid cluster into a point and construct a minimum enclosing rectangle for the grid cluster.

将栅格簇内的每个栅格近似为点(x,y,z),其中,x为栅格在笛卡尔坐标系下的x轴坐标,y为栅格在笛卡尔坐标系下的y轴坐标,z为栅格高度(栅格高度是指每个栅格内所有点的高度的平均值)。Each grid in the grid cluster is approximated as a point (x, y, z), where x is the x-axis coordinate of the grid in the Cartesian coordinate system, y is the y-axis coordinate of the grid in the Cartesian coordinate system, and z is the grid height (the grid height refers to the average height of all points in each grid).

(2)判断所述栅格簇内点的数量是否小于预设数量或所述栅格簇所对应的最小包围矩形的对角线长度是否小于预设长度,判断为是时,所述栅格簇不符合预设条件,判断为否时,所述栅格簇符合预设条件。(2) determining whether the number of points within the grid cluster is less than a preset number or whether the diagonal length of the minimum enclosing rectangle corresponding to the grid cluster is less than a preset length; if so, the grid cluster does not meet the preset condition; and if not, the grid cluster meets the preset condition.

需要说明的是,当栅格簇内点的数量小于预设数量或栅格簇所对应的最小包围矩形的对角线长度小于预设长度,则说明栅格簇的规模较小,不适用于特征分析。因此,本发明仅对规模较大的栅格簇进行特征分析,对于规模较小的栅格簇暂不进行处理或采用其他方式进行分析。It should be noted that when the number of points in the grid cluster is less than the preset number or the diagonal length of the minimum enclosing rectangle corresponding to the grid cluster is less than the preset length, it means that the scale of the grid cluster is small and is not suitable for feature analysis. Therefore, the present invention only performs feature analysis on grid clusters with larger scales, and does not process or analyzes grid clusters with smaller scales in other ways.

相应地,所述对符合预设条件的栅格簇进行特征分析,提取符合线特征及面特征的栅格簇作为地面栅格簇的步骤包括:Accordingly, the step of performing feature analysis on grid clusters meeting preset conditions and extracting grid clusters meeting line features and surface features as ground grid clusters includes:

(1)根据所述符合预设条件的栅格簇内的点构建协方差矩阵。具体地,本发明可利用栅格簇内每个点的x、y、z值建立协方差矩阵。(1) Constructing a covariance matrix based on the points in the grid cluster that meet the preset conditions. Specifically, the present invention can use the x, y, and z values of each point in the grid cluster to establish a covariance matrix.

(2)计算所述协方差矩阵的特征值,从而得到特征值中的最小特征值、中间特征值及最大特征值。(2) Calculating the eigenvalues of the covariance matrix to obtain the minimum eigenvalue, the middle eigenvalue and the maximum eigenvalue among the eigenvalues.

(3)提取所述特征中的最小特征值、中间特征值及最大特征值,并根据所述最小特征值、中间特征值及最大特征值之间的差值进行判断,其中:(3) extracting the minimum eigenvalue, the middle eigenvalue and the maximum eigenvalue from the features, and making a judgment based on the difference between the minimum eigenvalue, the middle eigenvalue and the maximum eigenvalue, wherein:

当所述最小特征值与中间特征值之间的差值不在预设范围内,且所述中间特征值与最大特征值之间的差值在预设范围内,则所述符合预设条件的栅格簇为面状栅格簇;即当最小特征值相比于其他两个特征值(中间特征值及最大特征值)很小,且其余两个特征值(中间特征值及最大特征值)相差不大时,此时栅格簇中的点云大致是面状的,法向量可为任意方向。When the difference between the minimum eigenvalue and the intermediate eigenvalue is not within the preset range, and the difference between the intermediate eigenvalue and the maximum eigenvalue is within the preset range, the grid cluster that meets the preset conditions is a planar grid cluster; that is, when the minimum eigenvalue is very small compared to the other two eigenvalues (the intermediate eigenvalue and the maximum eigenvalue), and the other two eigenvalues (the intermediate eigenvalue and the maximum eigenvalue) are not much different, then the point cloud in the grid cluster is roughly planar, and the normal vector can be in any direction.

当所述最小特征值与中间特征值之间的差值在预设范围内,且所述最小特征值与最大特征值之间的差值不在预设范围内,则所述符合预设条件的栅格簇为线状栅格簇;即当最小特征值与中间特征值相差不大,并且最小特征值与最大特征值相差较大时,此时栅格簇中的点云大致是线状的,法向量可以为任意方向。When the difference between the minimum eigenvalue and the intermediate eigenvalue is within a preset range, and the difference between the minimum eigenvalue and the maximum eigenvalue is not within the preset range, the grid cluster that meets the preset conditions is a linear grid cluster; that is, when the minimum eigenvalue is not much different from the intermediate eigenvalue, and the minimum eigenvalue is significantly different from the maximum eigenvalue, the point cloud in the grid cluster is roughly linear, and the normal vector can be in any direction.

当所述最小特征值、中间特征值及最大特征值之间的差值在预设范围内,则所述符合预设条件的栅格簇为球状栅格簇;即当三个值(最小特征值、中间特征值及最大特征值)大致相等时,此时栅格簇中的点云大致为球状的。When the difference between the minimum eigenvalue, the intermediate eigenvalue and the maximum eigenvalue is within a preset range, the grid cluster that meets the preset conditions is a spherical grid cluster; that is, when the three values (minimum eigenvalue, intermediate eigenvalue and maximum eigenvalue) are roughly equal, the point cloud in the grid cluster is roughly spherical.

(4)将所述面状栅格簇及线状栅格簇作为地面栅格簇。(4) The planar grid cluster and the linear grid cluster are used as ground grid clusters.

因此,步骤S103利用了二维特征信息,并非只是结合单个方向或者是两个方向的信息,在特征提取方面有着非常高的准确性,可对栅格簇进行有效分类,并对规模较大的栅格簇进行特征值分析以提取面状栅格簇及线状栅格簇作为地面栅格簇,精确度高,准确性强。Therefore, step S103 utilizes two-dimensional feature information, rather than just combining information in a single direction or two directions, and has very high accuracy in feature extraction. It can effectively classify grid clusters and perform feature value analysis on larger grid clusters to extract surface grid clusters and linear grid clusters as ground grid clusters with high precision and accuracy.

S104,在所述扇形栅格地图的径向方向上对所述地面栅格簇进行平滑度检查,提取符合平滑度要求的地面栅格簇。S104, performing a smoothness check on the ground grid clusters in the radial direction of the sector grid map, and extracting ground grid clusters that meet the smoothness requirement.

需要说明的是,经过步骤S103的筛选,保留特征值符合条件的栅格簇为地面栅格簇,但有必要对地面栅格簇进行进一步的检查,因为如果车辆前方出现较高的平台(例如前面突然出现集装箱式的货车),激光雷达投射在此类物体的点云也比较平坦,因此需要剔除类似此种情况下的误判栅格。It should be noted that after the screening in step S103, the grid clusters whose characteristic values meet the conditions are retained as ground grid clusters, but it is necessary to further check the ground grid clusters, because if a higher platform appears in front of the vehicle (for example, a container-type truck suddenly appears in front), the point cloud projected by the laser radar on such objects is also relatively flat, so it is necessary to eliminate the misjudged grids in similar situations.

本发明提出了通过计算径向方向上的梯度来剔除误判栅格。具体地,所述在扇形栅格地图的径向方向上对地面栅格簇进行平滑度检查,提取符合平滑度要求的地面栅格簇的步骤包括:The present invention proposes to eliminate misjudged grids by calculating the gradient in the radial direction. Specifically, the step of performing a smoothness check on the ground grid clusters in the radial direction of the sector grid map and extracting the ground grid clusters that meet the smoothness requirements includes:

(1)以激光雷达所在的地面点为起始点。(1) The ground point where the laser radar is located is taken as the starting point.

(2)在所述扇形栅格地图的径向方向上依次计算地面栅格簇中相邻栅格之间的梯度,若所述梯度不满足梯度要求,则所述梯度对应的相邻栅格中的前一个栅格为终止栅格,并将所述终止栅格及之前的栅格标记为地面栅格。(2) The gradients between adjacent grids in the ground grid cluster are calculated in sequence in the radial direction of the sector grid map. If the gradient does not meet the gradient requirement, the previous grid in the adjacent grids corresponding to the gradient is the termination grid, and the termination grid and the previous grids are marked as ground grids.

如图3所示,以激光雷达所在的地面点为起始点,依次顺序计算相邻两栅格的梯度α,如果梯度α大于预设梯度αmax,则此时相邻两栅格中的前一个栅格为终止栅格,终止栅格及之前的栅格都标记为地面栅格,其中,梯度的计算方法为相邻两栅格的高度差除以径向方向上的长度差。例如,图3中的栅格C为终止栅格,栅格A、B、C均为地面栅格。As shown in FIG3 , the ground point where the laser radar is located is taken as the starting point, and the gradient α of two adjacent grids is calculated in sequence. If the gradient α is greater than the preset gradient α max , then the previous grid of the two adjacent grids is the termination grid, and the termination grid and the previous grids are marked as ground grids, wherein the gradient is calculated by dividing the height difference of the two adjacent grids by the length difference in the radial direction. For example, grid C in FIG3 is the termination grid, and grids A, B, and C are all ground grids.

(3)将所述终止栅格之后的栅格标记为非地面栅格,直至当前栅格的高度低于上一个非地面栅格的高度。(3) Marking the grids after the termination grid as non-ground grids until the height of the current grid is lower than the height of the previous non-ground grid.

(4)判断当前栅格与上一个终止栅格之间的高度差是否小于预设高度差,判断为是时,以当前栅格为新的起始点,进入步骤(2),判断为否时,将当前栅格标记为非地面栅格并继续检查下一个栅格,进入步骤(4)。(4) Determine whether the height difference between the current grid and the previous end grid is less than the preset height difference. If it is judged to be yes, take the current grid as the new starting point and enter step (2). If it is judged to be no, mark the current grid as a non-ground grid and continue to check the next grid and enter step (4).

终止栅格之后的栅格依次标记为非地面栅格,直到当前栅格的高度比上一个非地面栅格要低。此时,将当前栅格的高度与上一个终止栅格的高度做比较,如果当前栅格与上一个终止栅格之间的高度差小于预设高度差,则当前栅格作为新的起始点,否则标记为非地面栅格,并继续检查下一个栅格。The grids after the end grid are marked as non-ground grids in turn until the height of the current grid is lower than the previous non-ground grid. At this time, the height of the current grid is compared with the height of the previous end grid. If the height difference between the current grid and the previous end grid is less than the preset height difference, the current grid is used as the new starting point, otherwise it is marked as a non-ground grid and the next grid is checked.

如图4所示,上一个终止栅格为B,即使栅格E比上一个非地面栅格D的高度要低,但是栅格E不能成为新的起始栅格,因为栅格E的高度h1比上一个终止栅格B的高度高太多(h1>hmin);按顺序判断下一个栅格F,此时栅格F满足成为新起始栅格的要求(即栅格F与上一个终止栅格B之间的高度差h2小于预设高度差hmin),故栅格F可以作为新的起始栅格。As shown in Figure 4, the previous ending grid is B. Even if grid E is lower than the previous non-ground grid D, grid E cannot become the new starting grid because the height h 1 of grid E is much higher than the height of the previous ending grid B (h 1 >h min ); the next grid F is judged in sequence. At this time, grid F meets the requirements of becoming a new starting grid (that is, the height difference h 2 between grid F and the previous ending grid B is less than the preset height difference h min ), so grid F can be used as the new starting grid.

(5)直至所述地面栅格簇中所有的栅格均完成检查,判断所述地面栅格簇中非地面栅格的数量是否大于地面栅格的数量,判断为是时,则删除所述地面栅格簇,判断为否时,则保留所述地面栅格簇。(5) After all grids in the ground grid cluster are checked, determine whether the number of non-ground grids in the ground grid cluster is greater than the number of ground grids. If so, delete the ground grid cluster; if not, retain the ground grid cluster.

因此,通过步骤S104来计算径向方向上的梯度,可有效剔除误判栅格,进一步保证分割的准确性。Therefore, by calculating the gradient in the radial direction in step S104, misjudged grids can be effectively eliminated, further ensuring the accuracy of segmentation.

由上可知,本发明通过分析三维激光点云的几何特征(点、线、面)进行路面分割,可以对点云簇的形状做较好的判断,从而根据点云簇的形状判断是否属于地面点;因此,与现有技术相比,本发明在精确性与鲁邦性上有较大提升。From the above, it can be seen that the present invention performs road segmentation by analyzing the geometric features (points, lines, and surfaces) of the three-dimensional laser point cloud, and can make a better judgment on the shape of the point cloud cluster, thereby judging whether it belongs to a ground point based on the shape of the point cloud cluster; therefore, compared with the prior art, the present invention has greatly improved accuracy and robustness.

参见图5,图5显示了本发明三维激光点云路面分割方法的第二实施例流程图,其包括:Referring to FIG. 5 , FIG. 5 shows a flow chart of a second embodiment of a three-dimensional laser point cloud road segmentation method according to the present invention, which includes:

S201,构建扇形栅格地图。S201, constructing a sector grid map.

S202,对所述扇形栅格地图进行连通域聚类处理以构建栅格簇。S202: Perform connected domain clustering processing on the sector grid map to construct grid clusters.

S203,对符合预设条件的栅格簇进行特征值分析,提取符合线特征及面特征的栅格簇作为地面栅格簇。S203, performing feature value analysis on the grid clusters meeting the preset conditions, and extracting grid clusters meeting the line features and the surface features as ground grid clusters.

S204,在所述扇形栅格地图的径向方向上对所述地面栅格簇进行平滑度检查,提取符合平滑度要求的地面栅格簇。S204, performing a smoothness check on the ground grid clusters in the radial direction of the sector grid map, and extracting ground grid clusters that meet the smoothness requirement.

S205,在扇形栅格地图的径向方向上,根据所述地面栅格簇构建平滑约束,将不符合预设条件的栅格簇中符合平滑约束的栅格作为地面栅格。S205 , in the radial direction of the sector grid map, constructing a smooth constraint according to the ground grid cluster, and taking the grids that meet the smooth constraint in the grid cluster that does not meet the preset condition as the ground grid.

需要说明的是,不符合预设条件的栅格簇(即未进行特征值分析的栅格簇)中仍然存在较多的散落的稀疏栅格,在这些栅格中可能存在地面栅格,因此在径向方向上设置平滑函数,建立平滑约束,只要满足约束条件,即可添加到地面栅格类。本发明中,针对稀疏栅格可采用以下方法进行处理:It should be noted that there are still many scattered sparse grids in the grid clusters that do not meet the preset conditions (i.e., the grid clusters that have not been subjected to eigenvalue analysis). There may be ground grids in these grids. Therefore, a smoothing function is set in the radial direction to establish a smoothing constraint. As long as the constraint conditions are met, they can be added to the ground grid class. In the present invention, the following method can be used to process sparse grids:

(1)在所述扇形栅格地图的径向方向上,根据地面栅格簇中栅格的半径长度及高度构建平滑曲线;(1) constructing a smooth curve in the radial direction of the fan-shaped grid map according to the radius length and height of the grid in the ground grid cluster;

(2)根据所述平滑曲线对径向方向上的所有栅格进行平滑处理以生成平滑函数;(2) performing smoothing processing on all grids in the radial direction according to the smooth curve to generate a smoothing function;

(3)将不符合预设条件的栅格簇中栅格的径向长度代入所述平滑函数以计算当前栅格的理论高度;(3) Substituting the radial length of the grid in the grid cluster that does not meet the preset conditions into the smoothing function to calculate the theoretical height of the current grid;

(4)判断所述当前栅格的理论高度与实际高度之间的差值是否在预设差值范围内,判断为是时,所述当前栅格为地面栅格,判断为否时,所述当前栅格为非地面栅格。(4) Determine whether the difference between the theoretical height and the actual height of the current grid is within a preset difference range. If so, the current grid is a ground grid; if not, the current grid is a non-ground grid.

在每一条径向方向上以属于地面栅格簇中栅格的半径长度为横坐标,高度为纵坐标建立三次B样条曲线,以该三次B样条曲线为平滑取消并利用该平滑曲线对整个径向方向上的栅格进行平滑,并得到每段的平滑函数。然后将小规模栅格簇(即未进行特征值分析的栅格簇)中的栅格的径向长度作为横坐标代入平滑函数中,将得到的理论高度Hs与实际高度Hi比较,如果︱Hs-Hi︱小于预设差值Hdiff,则此栅格属于地面栅格,其中,预设差值Hdiff可以为差值阈值。In each radial direction, a cubic B-spline curve is established with the radius length of the grid in the ground grid cluster as the horizontal coordinate and the height as the vertical coordinate. The cubic B-spline curve is used as a smoothing cancellation and the grid in the entire radial direction is smoothed using the smoothing curve to obtain a smoothing function for each segment. Then, the radial length of the grid in the small-scale grid cluster (i.e., the grid cluster without eigenvalue analysis) is substituted into the smoothing function as the horizontal coordinate, and the obtained theoretical height H s is compared with the actual height Hi . If |H s -H i | is less than the preset difference H diff , then this grid belongs to the ground grid, where the preset difference H diff can be a difference threshold.

因此,与图1所示的第一实施例不同的是,本实施例中通过增加对稀疏栅格的进一步分类处理,可精准的提取地面栅格。Therefore, different from the first embodiment shown in FIG. 1 , in this embodiment, the ground grid can be accurately extracted by adding further classification processing to the sparse grid.

参见图6,图6显示了本发明三维激光点云路面分割系统100的第一实施例,其包括:Referring to FIG. 6 , FIG. 6 shows a first embodiment of a three-dimensional laser point cloud road segmentation system 100 of the present invention, which includes:

地图构建模块1,用于构建扇形栅格地图。具体地,地图构建模块1将激光雷达的三维激光点云投影到扇形栅格地图中,然后分别计算每个栅格中的所有点的最大高度差,若所述最大高度差大于预设阈值,则所述栅格为障碍物栅格,删除所述障碍物栅格。The map construction module 1 is used to construct a sector grid map. Specifically, the map construction module 1 projects the three-dimensional laser point cloud of the laser radar into the sector grid map, and then calculates the maximum height difference of all points in each grid respectively. If the maximum height difference is greater than a preset threshold, the grid is an obstacle grid and the obstacle grid is deleted.

类聚处理模块2,用于对所述扇形栅格地图进行连通域聚类处理以构建栅格簇。具体地,类聚处理模块2在扇形栅格地图中,以一个栅格为搜寻中心,建立栅格簇;然后,在预设领域内搜寻满足梯度要求的栅格,并将满足梯度要求的栅格添加到所述栅格簇中;接着,在所述栅格簇内,以另一个未被作为搜寻中心的栅格为新的搜寻中心重新信息搜寻,直至所述栅格簇中的所有栅格均完成搜寻;最后,在所述栅格簇外,以另一个未被作为搜寻中心的栅格为新的搜寻中心,建立新的栅格簇,重新进行搜寻,直至所述扇形栅格地图中的所有栅格均完成搜寻。The cluster processing module 2 is used to perform connected domain clustering processing on the sector grid map to construct a grid cluster. Specifically, the cluster processing module 2 establishes a grid cluster in the sector grid map with one grid as the search center; then, searches for grids that meet the gradient requirements in a preset area, and adds the grids that meet the gradient requirements to the grid cluster; then, within the grid cluster, another grid that is not used as the search center is used as the new search center to search for information again until all grids in the grid cluster are searched; finally, outside the grid cluster, another grid that is not used as the search center is used as the new search center to establish a new grid cluster, and search again until all grids in the sector grid map are searched.

特征分析模块3,用于对符合预设条件的栅格簇进行特征值分析,提取符合线特征及面特征的栅格簇作为地面栅格簇。需要说明的是,判断栅格簇是否符合预设条件的方法包括:(1)将栅格簇内的每个栅格转换为点,并为所述栅格簇构建最小包围矩形。(2)判断所述栅格簇内点的数量是否小于预设数量或所述栅格簇所对应的最小包围矩形的对角线长度是否小于预设长度,判断为是时,所述栅格簇不符合预设条件,判断为否时,所述栅格簇符合预设条件。具体地,特征分析模块3根据所述符合预设条件的栅格簇内的点构建协方差矩阵;然后,计算所述协方差矩阵的特征值,从而得到特征值中的最小特征值、中间特征值及最大特征值;接着,提取所述特征中的最小特征值、中间特征值及最大特征值,并根据所述最小特征值、中间特征值及最大特征值之间的差值进行判断,其中:当所述最小特征值与中间特征值之间的差值不在预设范围内,且所述中间特征值与最大特征值之间的差值在预设范围内,则所述符合预设条件的栅格簇为面状栅格簇;即当最小特征值相比于其他两个特征值(中间特征值及最大特征值)很小,且其余两个特征值(中间特征值及最大特征值)相差不大时,此时栅格簇中的点云大致是面状的,法向量可为任意方向。当所述最小特征值与中间特征值之间的差值在预设范围内,且所述最小特征值与最大特征值之间的差值不在预设范围内,则所述符合预设条件的栅格簇为线状栅格簇;即当最小特征值与中间特征值相差不大,并且最小特征值与最大特征值相差较大时,此时栅格簇中的点云大致是线状的,法向量可以为任意方向。当所述最小特征值、中间特征值及最大特征值之间的差值在预设范围内,则所述符合预设条件的栅格簇为球状栅格簇;即当三个值(最小特征值、中间特征值及最大特征值)大致相等时,此时栅格簇中的点云大致为球状的;最后,将所述面状栅格簇及线状栅格簇作为地面栅格簇。The feature analysis module 3 is used to perform feature value analysis on the grid clusters that meet the preset conditions, and extract the grid clusters that meet the line features and surface features as the ground grid clusters. It should be noted that the method for determining whether the grid cluster meets the preset conditions includes: (1) converting each grid in the grid cluster into a point, and constructing a minimum enclosing rectangle for the grid cluster. (2) determining whether the number of points in the grid cluster is less than a preset number or whether the diagonal length of the minimum enclosing rectangle corresponding to the grid cluster is less than a preset length. If the judgment is yes, the grid cluster does not meet the preset conditions, and if the judgment is no, the grid cluster meets the preset conditions. Specifically, the feature analysis module 3 constructs a covariance matrix according to the points in the grid cluster that meets the preset conditions; then, the eigenvalues of the covariance matrix are calculated to obtain the minimum eigenvalue, the intermediate eigenvalue and the maximum eigenvalue in the eigenvalues; then, the minimum eigenvalue, the intermediate eigenvalue and the maximum eigenvalue in the features are extracted, and a judgment is made according to the difference between the minimum eigenvalue, the intermediate eigenvalue and the maximum eigenvalue, wherein: when the difference between the minimum eigenvalue and the intermediate eigenvalue is not within the preset range, and the difference between the intermediate eigenvalue and the maximum eigenvalue is within the preset range, the grid cluster that meets the preset conditions is a planar grid cluster; that is, when the minimum eigenvalue is very small compared to the other two eigenvalues (the intermediate eigenvalue and the maximum eigenvalue), and the other two eigenvalues (the intermediate eigenvalue and the maximum eigenvalue) are not much different, then the point cloud in the grid cluster is roughly planar, and the normal vector can be in any direction. When the difference between the minimum eigenvalue and the intermediate eigenvalue is within the preset range, and the difference between the minimum eigenvalue and the maximum eigenvalue is not within the preset range, the grid cluster that meets the preset conditions is a linear grid cluster; that is, when the minimum eigenvalue and the intermediate eigenvalue are not much different, and the minimum eigenvalue and the maximum eigenvalue are greatly different, the point cloud in the grid cluster is roughly linear, and the normal vector can be in any direction. When the difference between the minimum eigenvalue, the intermediate eigenvalue and the maximum eigenvalue is within the preset range, the grid cluster that meets the preset conditions is a spherical grid cluster; that is, when the three values (minimum eigenvalue, intermediate eigenvalue and maximum eigenvalue) are roughly equal, the point cloud in the grid cluster is roughly spherical; finally, the planar grid cluster and the linear grid cluster are used as ground grid clusters.

平滑检查模块4,用于在所述扇形栅格地图的径向方向上对所述地面栅格簇进行平滑度检查,提取符合平滑度要求的地面栅格簇。具体地,平滑检查模块4以激光雷达所在的地面点为起始点;然后,在所述扇形栅格地图的径向方向上依次计算地面栅格簇中相邻栅格之间的梯度,若所述梯度不满足梯度要求,则所述梯度对应的相邻栅格中的前一个栅格为终止栅格,并将所述终止栅格及之前的栅格标记为地面栅格;接着,将所述终止栅格之后的栅格标记为非地面栅格,直至当前栅格的高度低于上一个非地面栅格的高度;再判断当前栅格与上一个终止栅格之间的高度差是否小于预设高度差,判断为是时,以当前栅格为新的起始点,重新进行检测,判断为否时,将当前栅格标记为非地面栅格并继续检查下一个栅格;直至所述地面栅格簇中所有的栅格均完成检查,判断所述地面栅格簇中非地面栅格的数量是否大于地面栅格的数量,判断为是时,则删除所述地面栅格簇,判断为否时,则保留所述地面栅格簇。The smoothness checking module 4 is used to check the smoothness of the ground grid clusters in the radial direction of the sector grid map, and extract the ground grid clusters that meet the smoothness requirements. Specifically, the smoothing check module 4 takes the ground point where the laser radar is located as the starting point; then, the gradient between adjacent grids in the ground grid cluster is calculated in turn in the radial direction of the fan-shaped grid map. If the gradient does not meet the gradient requirement, the previous grid in the adjacent grid corresponding to the gradient is the termination grid, and the termination grid and the previous grids are marked as ground grids; then, the grids after the termination grid are marked as non-ground grids until the height of the current grid is lower than the height of the previous non-ground grid; then, it is determined whether the height difference between the current grid and the previous termination grid is less than the preset height difference. If it is determined to be yes, the current grid is used as a new starting point and the detection is performed again. If it is determined to be no, the current grid is marked as a non-ground grid and the next grid is checked; until all the grids in the ground grid cluster are checked, it is determined whether the number of non-ground grids in the ground grid cluster is greater than the number of ground grids. If it is determined to be yes, the ground grid cluster is deleted. If it is determined to be no, the ground grid cluster is retained.

由上可知,本发明通过分析三维激光点云的几何特征(点、线、面)进行路面分割,可以对点云簇的形状做较好的判断,从而根据点云簇的形状判断是否属于地面点;因此,与现有技术相比,本发明在精确性与鲁邦性上有较大提升。From the above, it can be seen that the present invention performs road segmentation by analyzing the geometric features (points, lines, and surfaces) of the three-dimensional laser point cloud, and can make a better judgment on the shape of the point cloud cluster, thereby judging whether it belongs to a ground point based on the shape of the point cloud cluster; therefore, compared with the prior art, the present invention has greatly improved accuracy and robustness.

参见图7,图7显示了本发明三维激光点云路面分割系统100的第二实施例,与图6所示的第一实施例不同的是,本实施例中所述三维激光点云路面分割系统100还包括:平滑约束模块5,用于在扇形栅格地图的径向方向上,根据所述地面栅格簇构建平滑约束,将不符合预设条件的栅格簇中符合平滑约束的栅格作为地面栅格。Referring to FIG. 7 , FIG. 7 shows a second embodiment of a three-dimensional laser point cloud road segmentation system 100 of the present invention. Different from the first embodiment shown in FIG. 6 , the three-dimensional laser point cloud road segmentation system 100 in this embodiment further includes: a smooth constraint module 5 for constructing a smooth constraint according to the ground grid cluster in the radial direction of the sector grid map, and using the grid that meets the smooth constraint in the grid cluster that does not meet the preset conditions as the ground grid.

具体地,平滑约束模块5在所述扇形栅格地图的径向方向上,根据地面栅格簇中栅格的半径长度及高度构建平滑曲线;再根据所述平滑曲线对径向方向上的所有栅格进行平滑处理以生成平滑函数;然后,将不符合预设条件的栅格簇中栅格的径向长度代入所述平滑函数以计算当前栅格的理论高度;最后,判断所述当前栅格的理论高度与实际高度之间的差值是否在预设差值范围内,判断为是时,所述当前栅格为地面栅格,判断为否时,所述当前栅格为非地面栅格。Specifically, the smoothing constraint module 5 constructs a smooth curve in the radial direction of the sector grid map according to the radius length and height of the grid in the ground grid cluster; then smoothes all the grids in the radial direction according to the smooth curve to generate a smooth function; then, substitutes the radial length of the grid in the grid cluster that does not meet the preset conditions into the smooth function to calculate the theoretical height of the current grid; finally, determines whether the difference between the theoretical height and the actual height of the current grid is within a preset difference range, and when the judgment is yes, the current grid is a ground grid, and when the judgment is no, the current grid is a non-ground grid.

因此,本发明通过平滑约束模块5增加对稀疏栅格的进一步分类处理,可精准的提取地面栅格。Therefore, the present invention adds further classification processing to the sparse grid through the smoothing constraint module 5, so that the ground grid can be accurately extracted.

本实施例中通过增加对稀疏栅格的进一步分类处理,可精准的提取地面栅格。相应地,本发明还提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述三维激光点云路面分割方法的步骤。同时,本发明还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述三维激光点云路面分割方法的步骤。In this embodiment, by adding further classification processing to the sparse grid, the ground grid can be accurately extracted. Accordingly, the present invention also provides a computer device, including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above-mentioned three-dimensional laser point cloud road surface segmentation method when executing the computer program. At the same time, the present invention also provides a computer readable storage medium, which stores a computer program, and the computer program implements the steps of the above-mentioned three-dimensional laser point cloud road surface segmentation method when executed by the processor.

因此,本发明通过对路面点云进行聚类分析以将路面点云分成多个点云簇,并针对路面点云的几何特征进行特征值分析,再利用平滑度公式对栅格进行平滑拟合,并对稀疏栅格的进一步分类处理,最终实现了对复杂地形高效、准确的点云路面分割。Therefore, the present invention performs cluster analysis on the road point cloud to divide the road point cloud into multiple point cloud clusters, performs eigenvalue analysis on the geometric features of the road point cloud, uses the smoothness formula to smoothly fit the grid, and further classifies the sparse grid, ultimately achieving efficient and accurate point cloud road segmentation for complex terrain.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims (12)

1.一种三维激光点云路面分割方法,其特征在于,包括:1. A 3D laser point cloud road segmentation method, comprising: 构建扇形栅格地图;Construct sector grid maps; 根据梯度要求,对所述扇形栅格地图进行连通域聚类处理以构建栅格簇;According to the gradient requirement, the sector grid map is subjected to connected domain clustering processing to construct a grid cluster; 对符合预设条件的栅格簇进行特征值分析,提取符合线特征及面特征的栅格簇作为地面栅格簇;所述符合预设条件的栅格簇是指点的数量小于预设数量的栅格簇或最小包围矩形的对角线长度小于预设长度的栅格簇;具体步骤包括:根据所述符合预设条件的栅格簇内的点构建协方差矩阵;计算所述协方差矩阵的特征值;提取所述特征中的最小特征值、中间特征值及最大特征值,将所述最小特征值与中间特征值之间的差值不在预设范围内且所述中间特征值与最大特征值之间的差值在预设范围内的栅格簇,以及所述最小特征值与中间特征值之间的差值在预设范围内且所述最小特征值与最大特征值之间的差值不在预设范围内的栅格簇,作为地面栅格簇;Performing eigenvalue analysis on grid clusters that meet preset conditions, extracting grid clusters that meet line features and surface features as ground grid clusters; the grid clusters that meet preset conditions refer to grid clusters whose number of points is less than a preset number or whose diagonal length of the minimum enclosing rectangle is less than a preset length; the specific steps include: constructing a covariance matrix based on the points in the grid clusters that meet the preset conditions; calculating the eigenvalues of the covariance matrix; extracting the minimum eigenvalue, the intermediate eigenvalue and the maximum eigenvalue in the features, and taking the grid clusters whose difference between the minimum eigenvalue and the intermediate eigenvalue is not within a preset range and the difference between the intermediate eigenvalue and the maximum eigenvalue is within a preset range, and the grid clusters whose difference between the minimum eigenvalue and the intermediate eigenvalue is within a preset range and the difference between the minimum eigenvalue and the maximum eigenvalue is not within a preset range as ground grid clusters; 在所述扇形栅格地图的径向方向上对所述地面栅格簇进行平滑度检查,提取符合平滑度要求的地面栅格簇。The ground grid clusters are checked for smoothness in the radial direction of the sector grid map, and ground grid clusters meeting the smoothness requirement are extracted. 2.如权利要求1所述的三维激光点云路面分割方法,其特征在于,还包括:在扇形栅格地图的径向方向上,根据所述地面栅格簇构建平滑约束,将不符合预设条件的栅格簇中符合平滑约束的栅格作为地面栅格。2. The three-dimensional laser point cloud road segmentation method as described in claim 1 is characterized in that it also includes: in the radial direction of the fan-shaped grid map, constructing a smooth constraint based on the ground grid cluster, and using the grid that meets the smooth constraint in the grid cluster that does not meet the preset conditions as the ground grid. 3.如权利要求1或2所述的三维激光点云路面分割方法,其特征在于,所述构建扇形栅格地图的步骤包括:3. The three-dimensional laser point cloud road segmentation method according to claim 1 or 2, characterized in that the step of constructing a sector grid map comprises: 将激光雷达的三维激光点云投影到扇形栅格地图中,所述扇形栅格地图由多个相互独立的栅格组成;Projecting the three-dimensional laser point cloud of the laser radar into a fan-shaped grid map, wherein the fan-shaped grid map is composed of a plurality of mutually independent grids; 分别计算每个栅格中的所有点的最大高度差,若所述最大高度差大于预设阈值,则所述栅格为障碍物栅格,删除所述障碍物栅格。The maximum height difference of all points in each grid is calculated respectively. If the maximum height difference is greater than a preset threshold, the grid is an obstacle grid and the obstacle grid is deleted. 4.如权利要求1或2所述的三维激光点云路面分割方法,其特征在于,所述对扇形栅格地图进行连通域聚类处理以构建栅格簇的步骤包括:4. The three-dimensional laser point cloud road segmentation method according to claim 1 or 2, characterized in that the step of performing connected domain clustering processing on the sector grid map to construct grid clusters comprises: S11,在扇形栅格地图中,以一个栅格为搜寻中心,建立栅格簇;S11, in the sector grid map, taking one grid as the search center, establishing a grid cluster; S12,在预设领域内搜寻满足梯度要求的栅格,并将满足梯度要求的栅格添加到所述栅格簇中;S12, searching for grids that meet the gradient requirements in a preset area, and adding the grids that meet the gradient requirements to the grid cluster; S13,在所述栅格簇内,以另一个未被作为搜寻中心的栅格为新的搜寻中心,进入步骤S12,直至所述栅格簇中的所有栅格均完成搜寻;S13, in the grid cluster, taking another grid that is not used as the search center as a new search center, and entering step S12 until all grids in the grid cluster are searched; S14,在所述栅格簇外,以另一个未被作为搜寻中心的栅格为新的搜寻中心,建立新的栅格簇,进入步骤S12,直至所述扇形栅格地图中的所有栅格均完成搜寻。S14, outside the grid cluster, using another grid that is not used as the search center as a new search center, establishing a new grid cluster, and entering step S12 until all grids in the fan-shaped grid map have completed the search. 5.如权利要求1或2所述的三维激光点云路面分割方法,其特征在于,判断栅格簇是否符合预设条件的步骤包括:5. The three-dimensional laser point cloud road segmentation method according to claim 1 or 2, characterized in that the step of determining whether the grid cluster meets the preset conditions comprises: 将栅格簇内的每个栅格转换为点,并为所述栅格簇构建最小包围矩形;Convert each grid in the grid cluster into a point and construct a minimum enclosing rectangle for the grid cluster; 判断所述栅格簇内点的数量是否小于预设数量或所述栅格簇所对应的最小包围矩形的对角线长度是否小于预设长度,Determine whether the number of points in the grid cluster is less than a preset number or whether the diagonal length of the minimum enclosing rectangle corresponding to the grid cluster is less than a preset length, 判断为是时,所述栅格簇不符合预设条件,When the judgment is yes, the grid cluster does not meet the preset condition. 判断为否时,所述栅格簇符合预设条件。When the judgment is no, the grid cluster meets the preset condition. 6.如权利要求5所述的三维激光点云路面分割方法,其特征在于,所述对符合预设条件的栅格簇进行特征分析,提取符合线特征及面特征的栅格簇作为地面栅格簇的步骤包括:6. The three-dimensional laser point cloud road segmentation method according to claim 5, characterized in that the step of performing feature analysis on grid clusters that meet preset conditions and extracting grid clusters that meet line features and surface features as ground grid clusters comprises: 根据所述符合预设条件的栅格簇内的点构建协方差矩阵;Constructing a covariance matrix based on the points in the grid cluster that meet the preset conditions; 计算所述协方差矩阵的特征值;Calculating eigenvalues of the covariance matrix; 提取所述特征中的最小特征值、中间特征值及最大特征值,并根据所述最小特征值、中间特征值及最大特征值之间的差值进行判断,其中,Extract the minimum eigenvalue, the middle eigenvalue and the maximum eigenvalue from the features, and make a judgment based on the difference between the minimum eigenvalue, the middle eigenvalue and the maximum eigenvalue, wherein: 当所述最小特征值与中间特征值之间的差值不在预设范围内,且所述中间特征值与最大特征值之间的差值在预设范围内,则所述符合预设条件的栅格簇为面状栅格簇;When the difference between the minimum eigenvalue and the intermediate eigenvalue is not within the preset range, and the difference between the intermediate eigenvalue and the maximum eigenvalue is within the preset range, the grid cluster meeting the preset conditions is a planar grid cluster; 当所述最小特征值与中间特征值之间的差值在预设范围内,且所述最小特征值与最大特征值之间的差值不在预设范围内,则所述符合预设条件的栅格簇为线状栅格簇;When the difference between the minimum eigenvalue and the intermediate eigenvalue is within a preset range, and the difference between the minimum eigenvalue and the maximum eigenvalue is not within a preset range, the grid cluster meeting the preset condition is a linear grid cluster; 当所述最小特征值、中间特征值及最大特征值之间的差值在预设范围内,则所述符合预设条件的栅格簇为球状栅格簇;When the difference between the minimum eigenvalue, the intermediate eigenvalue and the maximum eigenvalue is within a preset range, the grid cluster meeting the preset condition is a spherical grid cluster; 将所述面状栅格簇及线状栅格簇作为地面栅格簇。The planar grid cluster and the linear grid cluster are used as ground grid clusters. 7.如权利要求1或2所述的三维激光点云路面分割方法,其特征在于,所述在扇形栅格地图的径向方向上对地面栅格簇进行平滑度检查,提取符合平滑度要求的地面栅格簇的步骤包括:7. The three-dimensional laser point cloud road segmentation method according to claim 1 or 2, characterized in that the step of performing a smoothness check on the ground grid clusters in the radial direction of the sector grid map and extracting the ground grid clusters that meet the smoothness requirements comprises: S21,以激光雷达所在的地面点为起始点;S21, taking the ground point where the laser radar is located as the starting point; S22,在所述扇形栅格地图的径向方向上依次计算地面栅格簇中相邻栅格之间的梯度,若所述梯度不满足梯度要求,则所述梯度对应的相邻栅格中的前一个栅格为终止栅格,并将所述终止栅格及之前的栅格标记为地面栅格;S22, sequentially calculating the gradient between adjacent grids in the ground grid cluster in the radial direction of the sector grid map, if the gradient does not meet the gradient requirement, the previous grid in the adjacent grids corresponding to the gradient is the termination grid, and the termination grid and the previous grids are marked as ground grids; S23,将所述终止栅格之后的栅格标记为非地面栅格,直至当前栅格的高度低于上一个非地面栅格的高度;S23, marking the grids after the end grid as non-ground grids until the height of the current grid is lower than the height of the previous non-ground grid; S24,判断当前栅格与上一个终止栅格之间的高度差是否小于预设高度差,S24, determining whether the height difference between the current grid and the last ending grid is less than a preset height difference, 判断为是时,以当前栅格为新的起始点,进入步骤S22,If the answer is yes, the current grid is used as the new starting point and the process goes to step S22. 判断为否时,将当前栅格标记为非地面栅格并继续检查下一个栅格,进入步骤S24;If the result is negative, the current grid is marked as a non-ground grid and the next grid is checked, and the process goes to step S24; S25,直至所述地面栅格簇中所有的栅格均完成检查,判断所述地面栅格簇中非地面栅格的数量是否大于地面栅格的数量,判断为是时,则删除所述地面栅格簇,判断为否时,则保留所述地面栅格簇。S25, until all grids in the ground grid cluster are checked, determine whether the number of non-ground grids in the ground grid cluster is greater than the number of ground grids, if it is determined to be yes, delete the ground grid cluster, if not, retain the ground grid cluster. 8.如权利要求2所述的三维激光点云路面分割方法,其特征在于,所述在扇形栅格地图的径向方向上,根据所述地面栅格簇构建平滑约束,将不符合预设条件的栅格簇中符合平滑约束的栅格作为地面栅格的步骤包括:8. The three-dimensional laser point cloud road segmentation method according to claim 2, characterized in that the step of constructing a smooth constraint according to the ground grid cluster in the radial direction of the sector grid map and taking the grid that meets the smooth constraint in the grid cluster that does not meet the preset conditions as the ground grid comprises: 在所述扇形栅格地图的径向方向上,根据地面栅格簇中栅格的半径长度及高度构建平滑曲线;In the radial direction of the sector grid map, a smooth curve is constructed according to the radius length and height of the grids in the ground grid cluster; 根据所述平滑曲线对径向方向上的所有栅格进行平滑处理以生成平滑函数;Smoothing all grids in the radial direction according to the smooth curve to generate a smooth function; 将不符合预设条件的栅格簇中栅格的径向长度代入所述平滑函数以计算当前栅格的理论高度;Substituting the radial length of the grid in the grid cluster that does not meet the preset condition into the smoothing function to calculate the theoretical height of the current grid; 判断所述当前栅格的理论高度与实际高度之间的差值是否在预设差值范围内,判断为是时,所述当前栅格为地面栅格,判断为否时,所述当前栅格为非地面栅格。It is determined whether the difference between the theoretical height and the actual height of the current grid is within a preset difference range. If it is determined to be yes, the current grid is a ground grid; if it is determined to be no, the current grid is a non-ground grid. 9.一种三维激光点云路面分割系统,其特征在于,包括:9. A three-dimensional laser point cloud road segmentation system, characterized by comprising: 地图构建模块,用于构建扇形栅格地图;Map construction module, used to construct sector grid map; 类聚处理模块,用于根据梯度要求,对所述扇形栅格地图进行连通域聚类处理以构建栅格簇;A clustering processing module, used for performing connected domain clustering processing on the sector grid map to construct grid clusters according to gradient requirements; 特征分析模块,用于对符合预设条件的栅格簇进行特征值分析,提取符合线特征及面特征的栅格簇作为地面栅格簇;所述符合预设条件的栅格簇是指点的数量小于预设数量的栅格簇或最小包围矩形的对角线长度小于预设长度的栅格簇;所述特征分析模块根据所述符合预设条件的栅格簇内的点构建协方差矩阵;计算所述协方差矩阵的特征值;提取所述特征中的最小特征值、中间特征值及最大特征值,将所述最小特征值与中间特征值之间的差值不在预设范围内且所述中间特征值与最大特征值之间的差值在预设范围内的栅格簇,以及所述最小特征值与中间特征值之间的差值在预设范围内且所述最小特征值与最大特征值之间的差值不在预设范围内的栅格簇,作为地面栅格簇;A feature analysis module is used to perform eigenvalue analysis on grid clusters that meet preset conditions, and extract grid clusters that meet line features and surface features as ground grid clusters; the grid clusters that meet the preset conditions refer to grid clusters whose number of points is less than a preset number or whose diagonal length of the minimum enclosing rectangle is less than a preset length; the feature analysis module constructs a covariance matrix based on the points in the grid clusters that meet the preset conditions; calculates the eigenvalues of the covariance matrix; extracts the minimum eigenvalue, the intermediate eigenvalue and the maximum eigenvalue in the features, and takes the grid clusters whose difference between the minimum eigenvalue and the intermediate eigenvalue is not within a preset range and the difference between the intermediate eigenvalue and the maximum eigenvalue is within a preset range, and the grid clusters whose difference between the minimum eigenvalue and the intermediate eigenvalue is within a preset range and the difference between the minimum eigenvalue and the maximum eigenvalue is not within a preset range as ground grid clusters; 平滑检查模块,用于在所述扇形栅格地图的径向方向上对所述地面栅格簇进行平滑度检查,提取符合平滑度要求的地面栅格簇。The smoothness checking module is used to check the smoothness of the ground grid clusters in the radial direction of the sector grid map, and extract the ground grid clusters that meet the smoothness requirements. 10.如权利要求9所述的三维激光点云路面分割系统,其特征在于,还包括:平滑约束模块,用于在扇形栅格地图的径向方向上,根据所述地面栅格簇构建平滑约束,将不符合预设条件的栅格簇中符合平滑约束的栅格作为地面栅格。10. The three-dimensional laser point cloud road segmentation system as described in claim 9 is characterized by further comprising: a smooth constraint module, which is used to construct a smooth constraint according to the ground grid cluster in the radial direction of the fan-shaped grid map, and use the grid that meets the smooth constraint in the grid cluster that does not meet the preset conditions as the ground grid. 11.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至8中任一项所述的方法的步骤。11. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 8 when executing the computer program. 12.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至8中任一项所述的方法的步骤。12. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
CN202010004652.8A 2020-01-03 2020-01-03 Three-dimensional laser point cloud pavement segmentation method, system, computer equipment and medium Active CN113077473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010004652.8A CN113077473B (en) 2020-01-03 2020-01-03 Three-dimensional laser point cloud pavement segmentation method, system, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010004652.8A CN113077473B (en) 2020-01-03 2020-01-03 Three-dimensional laser point cloud pavement segmentation method, system, computer equipment and medium

Publications (2)

Publication Number Publication Date
CN113077473A CN113077473A (en) 2021-07-06
CN113077473B true CN113077473B (en) 2024-06-18

Family

ID=76608617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010004652.8A Active CN113077473B (en) 2020-01-03 2020-01-03 Three-dimensional laser point cloud pavement segmentation method, system, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN113077473B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113569958B (en) * 2021-07-29 2024-04-12 清华大学苏州汽车研究院(吴江) Laser point cloud data clustering method, device, equipment and medium
CN114675290A (en) * 2022-02-25 2022-06-28 中国第一汽车股份有限公司 Ground data detection method, detection device and processor

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8396293B1 (en) * 2009-12-22 2013-03-12 Hrl Laboratories, Llc Recognizing geometrically salient objects from segmented point clouds using strip grid histograms
DE102010022726B4 (en) * 2010-06-04 2019-05-16 Hensoldt Sensors Gmbh Device for displaying terrain on a display device of a missile
CN105404844B (en) * 2014-09-12 2019-05-31 广州汽车集团股份有限公司 A kind of Method for Road Boundary Detection based on multi-line laser radar
US10024957B2 (en) * 2015-09-17 2018-07-17 Navico Holding As Adaptive beamformer for sonar imaging
CN105404898B (en) * 2015-11-26 2018-11-06 福州华鹰重工机械有限公司 A kind of loose type point cloud data segmentation method and equipment
WO2017149526A2 (en) * 2016-03-04 2017-09-08 May Patents Ltd. A method and apparatus for cooperative usage of multiple distance meters
CN106204705B (en) * 2016-07-05 2018-12-07 长安大学 A kind of 3D point cloud dividing method based on multi-line laser radar
CN106530380B (en) * 2016-09-20 2019-02-26 长安大学 A ground point cloud segmentation method based on 3D lidar
CN106652640A (en) * 2016-11-22 2017-05-10 天津舟晗科技有限公司 Operation teaching system based on electric vehicle battery power management
US10536860B2 (en) * 2017-05-10 2020-01-14 Facebook, Inc. Multi-hop wireless network planning
CN108983248A (en) * 2018-06-26 2018-12-11 长安大学 It is a kind of that vehicle localization method is joined based on the net of 3D laser radar and V2X
CN109101892B (en) * 2018-07-17 2021-08-10 南京航空航天大学 Laser radar target object detection method based on grid and density clustering algorithm
CN109255302A (en) * 2018-08-15 2019-01-22 广州极飞科技有限公司 Object recognition methods and terminal, mobile device control method and terminal
CN110502973B (en) * 2019-07-05 2023-02-07 同济大学 Automatic extraction and identification method for road marking based on vehicle-mounted laser point cloud
CN110320504B (en) * 2019-07-29 2021-05-18 浙江大学 Unstructured road detection method based on laser radar point cloud statistical geometric model

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于时空关联的激光雷达障碍物识别技术研究;邵靖滔;中国优秀硕士学位论文全文数据库;全文 *
基于点云簇组合特征的激光雷达地面分割方法;邵靖滔 等;激光与光电子学进展;全文 *

Also Published As

Publication number Publication date
CN113077473A (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN110490888B (en) Highway geometric feature vectorization extraction method based on airborne laser point cloud
CN112184736B (en) Multi-plane extraction method based on European clustering
CN104463872B (en) Sorting technique based on vehicle-mounted LiDAR point cloud data
CN105260737B (en) A kind of laser scanning data physical plane automatization extracting method of fusion Analysis On Multi-scale Features
CN103390169B (en) A kind of city terrain classification method of Vehicle-borne Laser Scanning cloud data
CN111325138B (en) Road boundary real-time detection method based on point cloud local concave-convex characteristics
CN110807781B (en) Point cloud simplifying method for retaining details and boundary characteristics
CN106525000B (en) Roadmarking automation extracting method based on laser scanning discrete point intensity gradient
CN108460416A (en) A kind of structured road feasible zone extracting method based on three-dimensional laser radar
CN106529431B (en) Road bank point based on Vehicle-borne Laser Scanning data automatically extracts and vectorization method
CN110728753B (en) Target point cloud 3D bounding box fitting method based on linear fitting
CN106127153A (en) The traffic sign recognition methods of Vehicle-borne Laser Scanning cloud data
CN106157309A (en) A kind of airborne LiDAR ground point cloud filtering method based on virtual Seed Points
CN105844602A (en) Airborne LIDAR point cloud 3D filtering method based on volume elements
CN107679458B (en) Method for extracting road marking lines in road color laser point cloud based on K-Means
CN112883820A (en) Road target 3D detection method and system based on laser radar point cloud
CN116109601A (en) A real-time target detection method based on 3D lidar point cloud
CN113077473B (en) Three-dimensional laser point cloud pavement segmentation method, system, computer equipment and medium
CN114782729A (en) A real-time target detection method based on lidar and vision fusion
CN112435336B (en) Curve type identification method and device, electronic equipment and storage medium
CN114882460A (en) Road vehicle detection method based on feature layer fusion
CN113936215A (en) Mining area road surface pit identification method and system and unmanned truck
CN112070787B (en) A Plane Segmentation Method of Aviation 3D Point Cloud Based on Oppositional Reasoning Theory
CN114663855B (en) A road surface waterlogging and roughness detection method for unstructured roads
CN115294302A (en) A Fast Filtering Method for Airborne Point Clouds Based on Fracture Line Constraints

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant