[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112149572A - Road edge detection method, device and storage medium - Google Patents

Road edge detection method, device and storage medium Download PDF

Info

Publication number
CN112149572A
CN112149572A CN202011013431.3A CN202011013431A CN112149572A CN 112149572 A CN112149572 A CN 112149572A CN 202011013431 A CN202011013431 A CN 202011013431A CN 112149572 A CN112149572 A CN 112149572A
Authority
CN
China
Prior art keywords
road edge
points
ground plane
road
point
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.)
Pending
Application number
CN202011013431.3A
Other languages
Chinese (zh)
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.)
Imotion Automotive Technology Suzhou Co Ltd
Original Assignee
Imotion Automotive Technology Suzhou 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 Imotion Automotive Technology Suzhou Co Ltd filed Critical Imotion Automotive Technology Suzhou Co Ltd
Priority to CN202011013431.3A priority Critical patent/CN112149572A/en
Publication of CN112149572A publication Critical patent/CN112149572A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • G06V20/588Recognition of the road, e.g. of lane markings; Recognition of the vehicle driving pattern in relation to the road
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application relates to the technical field of point cloud processing, in particular to a road edge detection method, a road edge detection device and a storage medium. The method comprises the following steps: acquiring point cloud data containing roads, and extracting an interesting region in the point cloud data; determining a ground plane in the region of interest; rasterizing the region of interest; acquiring statistical information in each grid according to the ground plane, and identifying road edge points in the grids according to the statistical information; and determining the road edge in the road according to the identified road edge points. The problem of poor road edge accuracy determined in the prior art is solved; the effect that the road edge can be accurately identified and obtained when the road surface has the slope and the accuracy of the road edge identification is improved is achieved.

Description

路沿检测方法、装置和存储介质Road edge detection method, device and storage medium

技术领域technical field

本申请涉及点云处理技术领域,具体涉及一种路沿检测方法、装置和存储介质。The present application relates to the technical field of point cloud processing, and in particular, to a road edge detection method, device and storage medium.

背景技术Background technique

道路边沿识别是自动驾驶在环境感知环节中的一项重要研究内容。识别路沿后可以将感知环境分为道路区域和非道路区域,为后续障碍物检测及可行驶区域的识别提供更为准确的道路区间,从而减少计算量,提高环境感知的实时性。Road edge recognition is an important research content in the environment perception link of autonomous driving. After identifying the road edge, the perceptual environment can be divided into road areas and non-road areas, providing more accurate road sections for subsequent obstacle detection and identification of drivable areas, thereby reducing the amount of calculation and improving the real-time performance of environmental perception.

目前常见的路沿检测方法为:基于视觉传感器采集图像,对采集到的图像做二值化处理得到二值化图像,对二值化图像进行边缘检测进而得到图像中的路沿;基于激光雷达的采集点云数据,利用区间共线点提取算法提取路沿数据点,并对路沿数据点进行聚类,然后采用最小二乘法进行线性拟合实际路沿。At present, the common road edge detection methods are: collect images based on visual sensors, perform binarization processing on the collected images to obtain a binarized image, and perform edge detection on the binarized image to obtain the road edges in the image; based on lidar The point cloud data is collected by using the interval collinear point extraction algorithm to extract the roadside data points, and the roadside data points are clustered, and then the least squares method is used to linearly fit the actual roadside.

然而在上述方案中,在受环境光线的影响,上述采集到的图像质量不稳定,相应的,处理得到的路沿的准确度也不稳定。对于存在错误的路沿点时,使用最小二乘法进行线性拟合误差较大。However, in the above solution, under the influence of ambient light, the quality of the collected image is unstable, and accordingly, the accuracy of the processed road edge is also unstable. When there are wrong road edge points, the linear fitting error using the least squares method is larger.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请实施例提供了一种路沿检测方法、装置和存储介质,以解决现有技术中的问题。In view of this, embodiments of the present application provide a road edge detection method, device, and storage medium to solve the problems in the prior art.

根据第一方面,本申请实施例提供了一种路沿检测方法,所述方法包括:According to a first aspect, an embodiment of the present application provides a road edge detection method, the method comprising:

获取包含有道路的点云数据,提取所述点云数据中的感兴趣区域;Obtain point cloud data containing roads, and extract the region of interest in the point cloud data;

确定所述感兴趣区域中的地平面;determining a ground plane in the region of interest;

对所述感兴趣区域进行栅格化处理;rasterizing the region of interest;

根据所述地平面获取每个栅格中的统计信息,根据所述统计信息识别所述栅格中的路沿点;Acquire statistical information in each grid according to the ground plane, and identify roadside points in the grid according to the statistical information;

根据识别得到的各个路沿点确定所述道路中的路沿。The road edge in the road is determined according to each road edge point identified.

可选的,所述提取所述点云数据中的感兴趣区域,包括:Optionally, the extracting the region of interest in the point cloud data includes:

对所述点云数据中的两个通道的数据分别做直通滤波,得到滤波后的点云数据。Through filtering is performed on the data of the two channels in the point cloud data, respectively, to obtain filtered point cloud data.

可选的,所述确定所述感兴趣区域中的地平面,包括:Optionally, the determining the ground plane in the region of interest includes:

在所述感兴趣区域的各个点中随机选择3个点,得到候选地平面;Randomly select 3 points from each point of the region of interest to obtain a candidate ground plane;

计算所述各个路沿点中除选择的3个点之外的其他各个点与所述候选地平面之间的距离;Calculate the distances between each of the other points except the selected 3 points and the candidate ground plane in the various roadside points;

统计与所述候选地平面的距离小于第一预设距离的点的累计数量;Counting the cumulative number of points whose distance from the candidate ground plane is less than the first preset distance;

将统计次数+1;+1 the number of statistics;

在更新后的所述统计次数未达到第一预设次数时,再次执行所述在所述感兴趣区域的各个点中随机选择3个点,得到候选地平面的步骤;When the updated statistical number of times does not reach the first preset number of times, the step of randomly selecting 3 points from each point in the region of interest to obtain a candidate ground plane is performed again;

在更新后的所述统计次数达到所述第一预设次数时,则将所对应的累计数量最大的候选地平面确定为所述地平面。When the updated statistical count reaches the first preset count, the corresponding candidate ground plane with the largest accumulated number is determined as the ground plane.

可选的,所述根据所述地平面获取每个栅格中的统计信息,根据所述统计信息识别所述栅格中的路沿点,包括:Optionally, the obtaining statistical information in each grid according to the ground plane, and identifying the roadside points in the grid according to the statistical information, includes:

对于每个栅格,统计所述栅格中的点云的数量、点云与所述地平面之间的最大高度以及点云与所述地平面之间的最小高度;For each grid, count the number of point clouds in the grid, the maximum height between the point cloud and the ground plane, and the minimum height between the point cloud and the ground plane;

在所述点云的数量达到数量阈值、所述最大高度在高度阈值范围内、所述最大高度与所述最小高度的高度差在高度差阈值范围内时,则将所述栅格中的点云确定为路沿点。When the number of the point clouds reaches the number threshold, the maximum height is within the height threshold range, and the height difference between the maximum height and the minimum height is within the height difference threshold range, the points in the grid are Clouds are identified as roadside points.

可选的,所述根据识别得到的各个路沿点确定所述道路中的路沿,包括:Optionally, the determining the curb in the road according to each identified curb point includes:

根据识别得到的各个路沿点的坐标确定左侧路沿和右侧路沿;Determine the left curb and the right curb according to the coordinates of each identified curb point;

对于每一侧路沿,通过随机采样一致性算法对各个路沿点进行直线拟合,得到所述道路中的路沿。For each side curb, straight line fitting is performed on each curb point through a random sampling consistency algorithm to obtain the curb in the road.

可选的,所述通过随机采样一致性算法对各个路沿点进行直线拟合,得到所述道路中的路沿,包括:Optionally, the random sampling consistency algorithm is used to perform straight line fitting on each road edge point to obtain the road edge in the road, including:

在所述各个路沿点中随机选择2个点,得到候选直线;Randomly select 2 points from the various roadside points to obtain candidate straight lines;

计算所述各个路沿点中除选择的2个点之外的其他各个点与所述候选直线之间的距离;Calculate the distances between each of the other points except the selected 2 points and the candidate straight line in the various roadside points;

统计与所述候选直线的距离小于第二预设距离的点的累计数量;Counting the cumulative number of points whose distance from the candidate straight line is less than the second preset distance;

将统计次数+1;+1 the number of statistics;

在更新后的所述统计次数未达到第二预设次数时,再次执行所述在所述各个路沿点中随机选择2个点,得到候选直线的步骤;When the updated statistical number of times does not reach the second preset number of times, the step of randomly selecting 2 points from the various roadside points to obtain a candidate straight line is performed again;

在更新后的所述统计次数达到第二预设次数时,则将所对应的累计数量最大的候选直线确定为所述路沿线。When the updated statistical count reaches the second preset count, the corresponding candidate straight line with the largest accumulated number is determined as the road along the route.

可选的,所述方法还包括:Optionally, the method further includes:

通过卡尔曼滤波对前一帧拟合得到的路沿进行跟踪和预测,得到预测值,并结合当前帧的检测结果,得到当前帧的路沿。The Kalman filter is used to track and predict the road edge fitted by the previous frame, and the predicted value is obtained. Combined with the detection result of the current frame, the road edge of the current frame is obtained.

可选的,所述获取包含有道路的点云数据,包括:Optionally, the obtaining point cloud data including roads includes:

获取激光雷达获取到的所述点云数据。Obtain the point cloud data obtained by the lidar.

第二方面,提供了一种路沿检测装置,所述装置包括存储器和处理器,所述存储器中存储有至少一条程序指令,所述处理器通过加载并执行所述至少一条程序指令以实现第一方面所述的方法。In a second aspect, a road edge detection device is provided, the device includes a memory and a processor, the memory stores at least one program instruction, and the processor loads and executes the at least one program instruction to implement the first The method described in one aspect.

第三方面,提供了一种计算机存储介质,所述存储介质中存储有至少一条程序指令,所述至少一条程序指令用于被处理器加载并执行以实现第一方面所述的方法。In a third aspect, a computer storage medium is provided, wherein the storage medium stores at least one program instruction, and the at least one program instruction is used to be loaded and executed by a processor to implement the method of the first aspect.

通过获取包含有道路的点云数据,提取所述点云数据中的感兴趣区域;确定所述感兴趣区域中的地平面;对所述感兴趣区域进行栅格化处理;根据所述地平面获取每个栅格中的统计信息,根据所述统计信息识别所述栅格中的路沿点;根据识别得到的各个路沿点确定所述道路中的路沿。解决了现有技术中确定的路沿准确度较差的问题;达到了在路面有坡度时也能准确识别得到路沿提高路沿识别准确度的效果。By acquiring point cloud data containing roads, extract the region of interest in the point cloud data; determine the ground plane in the region of interest; perform rasterization on the region of interest; Statistical information in each grid is obtained, and roadside points in the grid are identified according to the statistical information; the roadside in the road is determined according to the identified roadside points. The problem of poor accuracy of the road edge determined in the prior art is solved; the effect of accurately identifying the road edge and improving the road edge recognition accuracy even when the road surface has a slope is achieved.

另外,通过对感兴趣区域进行栅格化处理,进而根据栅格中的点云来提取路沿,解决了现有技术中逐点筛选数据量大的问题,达到了快速筛选路沿点的效果。In addition, by rasterizing the area of interest, and then extracting the road edge according to the point cloud in the grid, the problem of large amount of data in the prior art is solved point by point screening, and the effect of fast screening of road edge points is achieved. .

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,并可依照说明书的内容予以实施,以下以本发明的较佳实施例并配合附图详细说明如后。The above description is only an overview of the technical solution of the present invention. In order to understand the technical means of the present invention more clearly, and implement it according to the content of the description, the preferred embodiments of the present invention are described in detail below with the accompanying drawings.

附图说明Description of drawings

图1为本发明一个实施例提供的路沿检测方法的方法流程图;1 is a method flowchart of a road edge detection method provided by an embodiment of the present invention;

图2为本发明一个实施例提供的确定地平面的确定方法的方法流程图;Fig. 2 is a method flowchart of a method for determining a ground plane provided by an embodiment of the present invention;

图3为本发明一个实施例提供的确定路沿的确定方法的方法流程图。FIG. 3 is a flowchart of a method for determining a road edge provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. The indicated orientation or positional relationship is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the indicated device or element must have a specific orientation or a specific orientation. construction and operation, and therefore should not be construed as limiting the invention. Furthermore, the terms "first", "second", and "third" are used for descriptive purposes only and should not be construed to indicate or imply relative importance.

在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In the description of the present invention, it should be noted that the terms "installed", "connected" and "connected" should be understood in a broad sense, unless otherwise expressly specified and limited, for example, it may be a fixed connection or a detachable connection Connection, or integral connection; can be mechanical connection, can also be electrical connection; can be directly connected, can also be indirectly connected through an intermediate medium, can be internal communication between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood in specific situations.

此外,下面所描述的本发明不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

请参考图1,其示出了本申请一个实施例提供的路沿检测方法的方法流程图,如图1所示,该方法包括:Please refer to FIG. 1, which shows a method flowchart of a road edge detection method provided by an embodiment of the present application. As shown in FIG. 1, the method includes:

步骤101,获取包含有道路的点云数据,提取所述点云数据中的感兴趣区域;Step 101, acquiring point cloud data containing roads, and extracting a region of interest in the point cloud data;

实际实现时,可以获取激光雷达获取到的所述点云数据。In actual implementation, the point cloud data obtained by the lidar can be obtained.

在获取到点云数据之后,对所述点云数据中的两个通道的数据分别做直通滤波,得到滤波后的点云数据。通过上述滤波即可过滤点云数据中的干扰信息,得到感兴趣区域内的点云数据。After the point cloud data is acquired, the data of the two channels in the point cloud data are respectively subjected to through-pass filtering to obtain filtered point cloud data. Through the above filtering, the interference information in the point cloud data can be filtered, and the point cloud data in the region of interest can be obtained.

步骤102,确定所述感兴趣区域中的地平面;Step 102, determining the ground plane in the region of interest;

实际实现时,可以对点云数据的Z通道进行直通滤波,选取地面附近的点云,然后通过随机采样一致性算法对所述感兴趣区域中的点云进行平面拟合,得到所述感兴趣区域中的地平面。In actual implementation, through filtering can be performed on the Z channel of the point cloud data, point clouds near the ground can be selected, and then a random sampling consistency algorithm is used to perform plane fitting on the point clouds in the region of interest to obtain the point cloud of interest. ground plane in the area.

可选的,请参考图2,本步骤包括:Optionally, please refer to Figure 2, this step includes:

(1)、在所述感兴趣区域的各个点中随机选择3个点,得到候选地平面;(1) Randomly select 3 points in each point of the region of interest to obtain a candidate ground plane;

从感兴趣区域中的各个点中随机选择3个点从而构成一个平面,将该平面作为候选地平面。实际实现时,若随机选择的3个点在同一条直线上,则重新执行本步骤。Three points are randomly selected from each point in the region of interest to form a plane, which is used as a candidate ground plane. In actual implementation, if the three randomly selected points are on the same straight line, perform this step again.

(2)、计算所述各个路沿点中除选择的3个点之外的其他各个点与所述候选地平面之间的距离;(2), calculate the distance between each point other than the selected 3 points and the candidate ground plane in the various roadside points;

(3)、统计与所述候选地平面的距离小于第一预设距离的点的累计数量;(3), count the cumulative number of points whose distance from the candidate ground plane is less than the first preset distance;

第一预设距离为系统默认的距离,或者用户根据实际使用需求自定义的距离。The first preset distance is a system default distance, or a user-defined distance according to actual usage requirements.

在遍历各个点时,在点与候选地平面之间的距离小于第一预设距离时,将该点作为内点,反之若大于第一预设距离,则将该点作为外点。在遍历完成之后,计算内点的累计数量。When traversing each point, when the distance between the point and the candidate ground plane is less than the first preset distance, the point is regarded as the inner point, otherwise, if the distance is greater than the first preset distance, the point is regarded as the outer point. After the traversal is complete, calculate the cumulative number of interior points.

(4)、将统计次数+1;(4), increase the number of statistics by 1;

(5)、在更新后的所述统计次数未达到第一预设次数时,再次执行所述在所述感兴趣区域的各个点中随机选择3个点,得到候选地平面的步骤;(5), when the number of statistics after the update does not reach the first preset number of times, perform the step of randomly selecting 3 points from each point of the region of interest to obtain a candidate ground plane again;

第一预设次数为默认的次数,或者用户自定义的次数,该次数为迭代计算候选地平面的次数。并且,实际实现时,第一预设次数可以根据感兴趣区域的大小来确定,比如,感兴趣区域越大该第一预设次数相应的也越大,反之则感兴趣区域越小该第一预设次数也越小。The first preset number of times is a default number of times or a user-defined number of times, and the number of times is the number of times of iteratively calculating the candidate ground plane. Moreover, in actual implementation, the first preset number of times can be determined according to the size of the region of interest. For example, the larger the region of interest is, the larger the first preset number of times is, and vice versa, the smaller the region of interest is, the first The preset times are also smaller.

第一预设次数为大于等于2的整数,且第一预设次数越大,得到的候选地平面的数量也越大最终确定得到的地平面的准确度也越高;反之则计算量较低准确度偏差,实际实现时,可以根据实际需求来设置第一预设次数的数值,本实施例对此并不做限定。The first preset number of times is an integer greater than or equal to 2, and the greater the first preset number of times, the greater the number of candidate ground planes obtained. For the accuracy deviation, in actual implementation, the value of the first preset number of times may be set according to actual requirements, which is not limited in this embodiment.

(6)、在更新后的所述统计次数达到所述第一预设次数时,则将所对应的累计数量最大的候选地平面确定为所述地平面。(6) When the updated statistical count reaches the first preset count, determine the candidate ground plane with the largest corresponding accumulated number as the ground plane.

在更新后的统计次数达到第一预设次数时,说明此时已经得到第一预设次数个的候选地平面,此时,从多个候选地平面中选择对应的累计数量最大的候选地平面作为最终确定得到的地平面。When the number of updated statistics reaches the first preset number of times, it means that the first preset number of candidate ground planes have been obtained at this time, and at this time, the candidate ground plane with the largest corresponding cumulative number is selected from the multiple candidate ground planes as the final ground plane.

步骤103,对所述感兴趣区域进行栅格化处理;Step 103, rasterizing the region of interest;

在得到感兴趣区域之后,可以对感兴趣区域进行栅格化处理,每个栅格的大小可以相同也可以不同,对此并不做限定,并且本实施例以将感兴趣区域划分为M*N的大小相同的栅格来举例说明。After the region of interest is obtained, the region of interest can be rasterized. The size of each grid can be the same or different, which is not limited, and the region of interest is divided into M* in this embodiment. A grid of the same size of N is used as an example.

步骤104,根据所述地平面获取每个栅格中的统计信息,根据所述统计信息识别所述栅格中的路沿点;Step 104, obtaining statistical information in each grid according to the ground plane, and identifying roadside points in the grid according to the statistical information;

本步骤可以包括:This step can include:

第一,对于每个栅格,统计所述栅格中的点云的数量、点云与所述地平面之间的最大高度以及点云与所述地平面之间的最小高度;First, for each grid, count the number of point clouds in the grid, the maximum height between the point cloud and the ground plane, and the minimum height between the point cloud and the ground plane;

在步骤102中确定地平面之后,可以计算栅格中的每个点云与地平面之间的高度,进而得到最小高度和最大高度。After the ground plane is determined in step 102, the height between each point cloud in the grid and the ground plane can be calculated to obtain the minimum height and the maximum height.

第二,second,

在所述点云的数量达到数量阈值、所述最大高度在高度阈值范围内、所述最大高度与所述最小高度的高度差在高度差阈值范围内时,则将所述栅格中的点云确定为路沿点。When the number of the point clouds reaches the number threshold, the maximum height is within the height threshold range, and the height difference between the maximum height and the minimum height is within the height difference threshold range, the points in the grid are Clouds are identified as roadside points.

实际实现时,通过选择高度差小于高度差阈值的点作为路沿点,使得选择的路沿点的高度差在实际路沿高度的误差范围内,提高了确定的路沿点的准确度。In actual implementation, by selecting a point whose height difference is less than the height difference threshold as the roadside point, the height difference of the selected roadside point is within the error range of the actual roadside height, and the accuracy of the determined roadside point is improved.

另外,实际实现时还可以检测最大高度与预设高度的差值,若差值大于预设阈值,则忽略。In addition, in actual implementation, the difference between the maximum height and the preset height can also be detected, and if the difference is greater than the preset threshold, it is ignored.

步骤105,根据识别得到的各个路沿点确定所述道路中的路沿。Step 105: Determine the road edge in the road according to the identified road edge points.

由于道路两侧都会有路沿,因此本步骤可以包括:Since there will be curbs on both sides of the road, this step can include:

第一,根据识别得到的各个路沿点的坐标确定左侧路沿和右侧路沿;First, determine the left and right curbs according to the identified coordinates of each curb point;

第二,对于每一侧路沿,通过随机采样一致性算法对各个路沿点进行直线拟合,得到所述道路中的路沿。Second, for each side curb, straight-line fitting is performed on each curb point through a random sampling consistency algorithm to obtain the curb in the road.

可选的,请参考图3,本步骤可以包括:Optionally, please refer to Figure 3, this step may include:

(1)、在所述各个路沿点中随机选择2个点,得到候选直线;(1), randomly select 2 points in each of the road edge points to obtain candidate straight lines;

(2)、计算所述各个路沿点中除选择的2个点之外的其他各个点与所述候选直线之间的距离;(2), calculate the distance between each other point and the candidate straight line except the selected 2 points in each of the roadside points;

(3)、统计与所述候选直线的距离小于第二预设距离的点的累计数量;(3), count the cumulative number of points whose distance from the candidate straight line is less than the second preset distance;

(4)、将统计次数+1;(4), increase the number of statistics by 1;

(5)、在更新后的所述统计次数未达到第二预设次数时,再次执行所述在所述各个路沿点中随机选择2个点,得到候选直线的步骤;(5), when the number of statistics after the update has not reached the second preset number of times, perform the step of randomly selecting 2 points in each of the roadside points to obtain a candidate straight line again;

(6)、在更新后的所述统计次数达到第二预设次数时,则将所对应的累计数量最大的候选直线确定为所述路沿线。(6) When the updated statistical count reaches a second preset count, determine the corresponding candidate straight line with the largest cumulative number as the road along the route.

本步骤与上述步骤102类似,在此不再赘述。This step is similar to the above-mentioned step 102, and is not repeated here.

另外,在得到路沿之后,可以通过卡尔曼滤波对前一帧拟合得到的所述路沿进行跟踪和预测,得到预测值,并结合当前帧的检测结果,得到当前帧的路沿。缓解了采集的点云数据出现丢帧或误差过大的问题,达到了路沿检测比较平滑的效果。In addition, after the road edge is obtained, Kalman filtering can be used to track and predict the road edge obtained by fitting the previous frame to obtain a predicted value, and combined with the detection result of the current frame, the road edge of the current frame can be obtained. The problem of frame loss or excessive error in the collected point cloud data is alleviated, and the effect of smoother road edge detection is achieved.

综上所述,通过获取包含有道路的点云数据,提取所述点云数据中的感兴趣区域;确定所述感兴趣区域中的地平面;对所述感兴趣区域进行栅格化处理;根据所述地平面获取每个栅格中的统计信息,根据所述统计信息识别所述栅格中的路沿点;根据识别得到的各个路沿点确定所述道路中的路沿。解决了现有技术中确定的路沿准确度较差的问题;达到了在路面有坡度时也能准确识别得到路沿提高路沿识别准确度的效果。To sum up, by acquiring point cloud data containing roads, the region of interest in the point cloud data is extracted; the ground plane in the region of interest is determined; and the region of interest is rasterized; Statistical information in each grid is obtained according to the ground plane, and roadside points in the grid are identified according to the statistical information; the roadside in the road is determined according to each roadside point obtained by identification. The problem of poor accuracy of the road edge determined in the prior art is solved; the effect of accurately identifying the road edge and improving the road edge recognition accuracy is achieved even when the road surface has a slope.

另外,通过对感兴趣区域进行栅格化处理,进而根据栅格中的点云来提取路沿,解决了现有技术中逐点筛选数据量大的问题,达到了快速筛选路沿点的效果。In addition, by rasterizing the area of interest, and then extracting the road edge according to the point cloud in the grid, the problem of large amount of data in the prior art is solved point by point screening, and the effect of fast screening of road edge points is achieved. .

本实施例还提供了一种路沿检测装置,所述装置包括存储器和处理器,所述存储器中存储有至少一条程序指令,所述处理器通过加载并执行所述至少一条程序指令以实现上述实施例所述的方法。This embodiment also provides a road edge detection device, the device includes a memory and a processor, the memory stores at least one program instruction, and the processor loads and executes the at least one program instruction to implement the above-mentioned methods described in the examples.

本实施例还提供了一种计算机存储介质,所述存储介质中存储有至少一条程序指令,所述至少一条程序指令用于被处理器加载并执行以实现上述实施例所述的方法。This embodiment also provides a computer storage medium, where at least one program instruction is stored in the storage medium, and the at least one program instruction is used to be loaded and executed by a processor to implement the method described in the foregoing embodiment.

以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity, all possible combinations of the technical features in the above-described embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be regarded as the scope described in this specification.

以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present invention, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present invention, several modifications and improvements can be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the appended claims.

Claims (10)

1. A method of road edge detection, the method comprising:
acquiring point cloud data containing roads, and extracting an interesting region in the point cloud data;
determining a ground plane in the region of interest;
rasterizing the region of interest;
acquiring statistical information in each grid according to the ground plane, and identifying road edge points in the grids according to the statistical information;
and determining the road edge in the road according to the identified road edge points.
2. The method of claim 1, wherein the extracting regions of interest in the point cloud data comprises:
and performing direct filtering on the data of the two channels in the point cloud data respectively to obtain filtered point cloud data.
3. The method of claim 1, wherein the determining the ground plane in the region of interest comprises:
randomly selecting 3 points from all the points of the region of interest to obtain a candidate ground plane;
calculating the distance between each point of the road edge points except the selected 3 points and the candidate ground plane;
counting the accumulated number of points with the distance to the candidate ground plane smaller than a first preset distance;
counting the times by + 1;
when the updated statistical frequency does not reach a first preset frequency, the step of randomly selecting 3 points from all the points in the region of interest is executed again to obtain a candidate ground plane;
and when the updated statistical frequency reaches the first preset frequency, determining the candidate ground plane with the maximum corresponding accumulative number as the ground plane.
4. The method of claim 1, wherein obtaining statistical information in each grid from the ground plane, and identifying road edge points in the grid from the statistical information comprises:
for each grid, counting the number of point clouds in the grid, the maximum height between the point clouds and the ground plane and the minimum height between the point clouds and the ground plane;
and when the number of the point clouds reaches a number threshold, the maximum height is within a height threshold range, and the height difference between the maximum height and the minimum height is within a height difference threshold range, determining the point clouds in the grid as road edge points.
5. The method of claim 1, wherein determining the road edge in the road from the identified road edge points comprises:
determining a left road edge and a right road edge according to the coordinates of the road edge points obtained by identification;
and for each road edge, performing straight line fitting on each road edge point through a random sampling consistency algorithm to obtain the road edge in the road.
6. The method of claim 5, wherein the step of fitting a straight line to each road edge point through a random sampling consistency algorithm to obtain the road edge in the road comprises:
randomly selecting 2 points from the road edge points to obtain a candidate straight line;
calculating the distance between each point except the selected 2 points in each road edge point and the candidate straight line;
counting the accumulated number of points with the distance to the candidate straight line smaller than a second preset distance;
counting the times by + 1;
when the updated statistical frequency does not reach a second preset frequency, the step of randomly selecting 2 points in each road edge point is executed again to obtain a candidate straight line;
and when the updated statistical frequency reaches a second preset frequency, determining the candidate straight line with the maximum corresponding accumulated number as the route line.
7. The method of any of claims 1 to 6, further comprising:
and tracking and predicting the road edge obtained by fitting the previous frame through Kalman filtering to obtain a predicted value, and combining the detection result of the current frame to obtain the road edge of the current frame.
8. The method of any one of claims 1 to 6, wherein the obtaining point cloud data including a road comprises:
and acquiring the point cloud data acquired by the laser radar.
9. A road edge detection device, comprising a memory having at least one program instruction stored therein and a processor that implements the method of any of claims 1 to 8 by loading and executing the at least one program instruction.
10. A computer storage medium having stored therein at least one program instruction for loading and execution by a processor to perform the method of any of claims 1 to 8.
CN202011013431.3A 2020-09-24 2020-09-24 Road edge detection method, device and storage medium Pending CN112149572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011013431.3A CN112149572A (en) 2020-09-24 2020-09-24 Road edge detection method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011013431.3A CN112149572A (en) 2020-09-24 2020-09-24 Road edge detection method, device and storage medium

Publications (1)

Publication Number Publication Date
CN112149572A true CN112149572A (en) 2020-12-29

Family

ID=73897908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011013431.3A Pending CN112149572A (en) 2020-09-24 2020-09-24 Road edge detection method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112149572A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112415490A (en) * 2021-01-25 2021-02-26 天津卡雷尔机器人技术有限公司 3D point cloud scanning device based on 2D laser radar and registration algorithm
CN113806464A (en) * 2021-09-18 2021-12-17 北京京东乾石科技有限公司 Road tooth determining method, device, equipment and storage medium
CN114425774A (en) * 2022-01-21 2022-05-03 深圳优地科技有限公司 Method and apparatus for recognizing walking path of robot, and storage medium
CN114758096A (en) * 2022-04-15 2022-07-15 长沙行深智能科技有限公司 Road edge detection method, device, terminal equipment and storage medium
CN115508841A (en) * 2021-06-07 2022-12-23 华为技术有限公司 Road edge detection method and device
WO2023000221A1 (en) * 2021-07-21 2023-01-26 深圳市大疆创新科技有限公司 Free space generation method, movable platform and storage medium
WO2023050638A1 (en) * 2021-09-29 2023-04-06 上海仙途智能科技有限公司 Curb recognition based on laser point cloud

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107272019A (en) * 2017-05-09 2017-10-20 深圳市速腾聚创科技有限公司 Curb detection method based on Laser Radar Scanning
CN108345822A (en) * 2017-01-22 2018-07-31 腾讯科技(深圳)有限公司 A kind of Processing Method of Point-clouds and device
CN109738910A (en) * 2019-01-28 2019-05-10 重庆邮电大学 A road edge detection method based on 3D lidar
CN110244321A (en) * 2019-04-22 2019-09-17 武汉理工大学 A detection method of road passable area based on 3D lidar
CN110320504A (en) * 2019-07-29 2019-10-11 浙江大学 A kind of unstructured road detection method based on laser radar point cloud statistics geometrical model
CN110376604A (en) * 2019-08-09 2019-10-25 北京智行者科技有限公司 Curb detection method based on single line laser radar
CN110781827A (en) * 2019-10-25 2020-02-11 中山大学 A road edge detection system and method based on lidar and fan-shaped space segmentation
CN111694011A (en) * 2020-06-19 2020-09-22 安徽卡思普智能科技有限公司 Road edge detection method based on data fusion of camera and three-dimensional laser radar

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108345822A (en) * 2017-01-22 2018-07-31 腾讯科技(深圳)有限公司 A kind of Processing Method of Point-clouds and device
CN107272019A (en) * 2017-05-09 2017-10-20 深圳市速腾聚创科技有限公司 Curb detection method based on Laser Radar Scanning
CN109738910A (en) * 2019-01-28 2019-05-10 重庆邮电大学 A road edge detection method based on 3D lidar
CN110244321A (en) * 2019-04-22 2019-09-17 武汉理工大学 A detection method of road passable area based on 3D lidar
CN110320504A (en) * 2019-07-29 2019-10-11 浙江大学 A kind of unstructured road detection method based on laser radar point cloud statistics geometrical model
CN110376604A (en) * 2019-08-09 2019-10-25 北京智行者科技有限公司 Curb detection method based on single line laser radar
CN110781827A (en) * 2019-10-25 2020-02-11 中山大学 A road edge detection system and method based on lidar and fan-shaped space segmentation
CN111694011A (en) * 2020-06-19 2020-09-22 安徽卡思普智能科技有限公司 Road edge detection method based on data fusion of camera and three-dimensional laser radar

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李宁;郭江华;蓝伟;: "基于多线激光雷达的非结构化道路感知技术研究", 车辆与动力技术, no. 03 *
陈俊吉;皮大伟;谢伯元;王洪亮;王霞;: "基于几何特征与三维点云特征的道路边沿识别算法", 河北科技大学学报, vol. 40, no. 06, pages 461 - 468 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112415490A (en) * 2021-01-25 2021-02-26 天津卡雷尔机器人技术有限公司 3D point cloud scanning device based on 2D laser radar and registration algorithm
CN115508841A (en) * 2021-06-07 2022-12-23 华为技术有限公司 Road edge detection method and device
WO2023000221A1 (en) * 2021-07-21 2023-01-26 深圳市大疆创新科技有限公司 Free space generation method, movable platform and storage medium
CN113806464A (en) * 2021-09-18 2021-12-17 北京京东乾石科技有限公司 Road tooth determining method, device, equipment and storage medium
WO2023050638A1 (en) * 2021-09-29 2023-04-06 上海仙途智能科技有限公司 Curb recognition based on laser point cloud
CN114425774A (en) * 2022-01-21 2022-05-03 深圳优地科技有限公司 Method and apparatus for recognizing walking path of robot, and storage medium
CN114425774B (en) * 2022-01-21 2023-11-03 深圳优地科技有限公司 Robot walking road recognition method, robot walking road recognition device, and storage medium
CN114758096A (en) * 2022-04-15 2022-07-15 长沙行深智能科技有限公司 Road edge detection method, device, terminal equipment and storage medium
CN114758096B (en) * 2022-04-15 2025-03-04 长沙行深智能科技有限公司 A roadside detection method, device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112149572A (en) Road edge detection method, device and storage medium
WO2021143778A1 (en) Positioning method based on laser radar
EP4120123A1 (en) Scan line-based road point cloud extraction method
Kumar et al. Automated road markings extraction from mobile laser scanning data
US10521694B2 (en) 3D building extraction apparatus, method and system
CN110502983B (en) Method and device for detecting obstacles in expressway and computer equipment
WO2018068653A1 (en) Point cloud data processing method and apparatus, and storage medium
CN112132108A (en) Ground point cloud data extraction method, device, equipment and storage medium
CN109636842B (en) Lane line correction method, device, equipment and storage medium
KR102414307B1 (en) 3D map change area update system and method
CN113806464A (en) Road tooth determining method, device, equipment and storage medium
CN109839119B (en) Method and device for acquiring bridge floor area of bridge of cross-road bridge
CN113822332B (en) Roadside data labeling method and related system and storage medium
CN114547866B (en) Prefabricated part intelligent detection method based on BIM-unmanned aerial vehicle-mechanical dog
CN110795978B (en) Road surface point cloud data extraction method and device, storage medium and electronic equipment
Shokri et al. A robust and efficient method for power lines extraction from mobile LiDAR point clouds
CN117677976A (en) Method for generating travelable region, mobile platform, and storage medium
CN116524472B (en) Obstacle detection method, device, storage medium and equipment
CN104050473A (en) Road data extraction method based on rectangular neighborhood analysis
CN114722944A (en) Point cloud precision determination method, electronic device and computer storage medium
Tarsha Kurdi et al. Automatic evaluation and improvement of roof segments for modelling missing details using Lidar data
KR20110094957A (en) Object segmentation apparatus and method from range image
CN110378173A (en) A kind of method and apparatus of determining lane boundary line
CN114519686B (en) Method, device, electronic device and medium for detecting curbs
Awrangjeb et al. Automatic reconstruction of building roofs through effective integration of LiDAR and multispectral imagery

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
CB02 Change of applicant information

Address after: 215123 g2-1901 / 1902 / 2002, No. 88, Jinjihu Avenue, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Applicant after: Zhixing Automotive Technology (Suzhou) Co.,Ltd.

Address before: 215123 g2-1901 / 1902 / 2002, No. 88, Jinjihu Avenue, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Applicant before: IMOTION AUTOMOTIVE TECHNOLOGY (SUZHOU) Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20201229

RJ01 Rejection of invention patent application after publication