CN116091556A - Road edge tracking method, device, equipment and storage medium - Google Patents

Road edge tracking method, device, equipment and storage medium Download PDF

Info

Publication number
CN116091556A
CN116091556A CN202211637326.6A CN202211637326A CN116091556A CN 116091556 A CN116091556 A CN 116091556A CN 202211637326 A CN202211637326 A CN 202211637326A CN 116091556 A CN116091556 A CN 116091556A
Authority
CN
China
Prior art keywords
roadside
point set
detected
curb
predicted
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
CN202211637326.6A
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.)
Zhejiang Zero Run Technology Co Ltd
Original Assignee
Zhejiang Zero Run Technology 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 Zhejiang Zero Run Technology Co Ltd filed Critical Zhejiang Zero Run Technology Co Ltd
Priority to CN202211637326.6A priority Critical patent/CN116091556A/en
Publication of CN116091556A publication Critical patent/CN116091556A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/277Analysis of motion involving stochastic approaches, e.g. using Kalman filters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Traffic Control Systems (AREA)

Abstract

本申请公开了一种路沿跟踪方法、装置、设备和存储介质。路沿跟踪方法包括获取当前时刻的预测路沿点集和检测路沿点集;基于预测路沿点集对检测路沿点集进行分组处理,得到检测路沿点集的分组结果;获取当前时刻车辆所行使的道路是否存在路沿不全的路沿识别结果;基于路沿识别结果和检测路沿点集的分组结果,对预测路沿点集和检测路沿点集进行融合处理,得到融合路沿点集;对融合路沿点集进行曲线拟合,得到当前时刻的路沿拟合结果。通过上述实施方式,可以根据识别出的检测路沿点变换与否,以及路沿是否被遮挡和缺失来融合预测路沿点集和检测路沿点集,使得复杂路况中的路沿也能稳定、准确地被跟踪出来,鲁棒性好。

Figure 202211637326

The application discloses a roadside tracking method, device, equipment and storage medium. The road edge tracking method includes obtaining the predicted road edge point set and the detected road edge point set at the current moment; grouping the detected road edge point set based on the predicted road edge point set to obtain the grouping result of the detected road edge point set; obtaining the current moment Whether there is a curb recognition result with incomplete curbs on the road the vehicle is driving; based on the curb recognition result and the grouping result of the detected curb point set, the predicted curb point set and the detected curb point set are fused to obtain the fusion road Point set along the road: Carry out curve fitting on the point set along the fusion road, and obtain the fitting result of the road edge at the current moment. Through the above-mentioned implementation, the predicted roadside point set and the detected roadside point set can be fused according to whether the detected roadside points are transformed or not, and whether the roadside is blocked or missing, so that the roadside in complex road conditions can also be stable. , Accurately tracked out, good robustness.

Figure 202211637326

Description

一种路沿跟踪方法、装置、设备和存储介质A roadside tracking method, device, equipment and storage medium

技术领域technical field

本申请涉及交通技术领域,特别是涉及一种路沿跟踪方法、装置、设备和存储介质。The present application relates to the technical field of traffic, and in particular to a roadside tracking method, device, equipment and storage medium.

背景技术Background technique

车辆行驶过程中对周围环境的感知是实现车辆智能辅助驾驶与无人驾驶的基础,路沿检测技术是实现车辆智能路径规划和决策控制的重要环节,也是实现车道保持辅助(Lane Keeping Assist,LKA)和车道偏离预警(Lane Departure Warning,LDW)等辅助驾驶的基础。The perception of the surrounding environment during vehicle driving is the basis for realizing vehicle intelligent assisted driving and unmanned driving. Road edge detection technology is an important link to realize vehicle intelligent path planning and decision-making control. ) and Lane Departure Warning (Lane Departure Warning, LDW) and other assisted driving basis.

现有路沿检测技术通常是获取车辆所在道路的当前道路场景照片,并从当前道路场景照片中检测出路沿。然而,采用此种路沿检测策略,不能根据实时的路沿状况做出调整,导致路沿检测的准确性较低。The existing road edge detection technology usually obtains the current road scene photo of the road where the vehicle is located, and detects the road edge from the current road scene photo. However, this road edge detection strategy cannot be adjusted according to real-time road edge conditions, resulting in low accuracy of road edge detection.

发明内容Contents of the invention

为了解决现有技术中存在的上述技术问题,本申请提供一种路沿跟踪方法、装置、设备和存储介质。In order to solve the above-mentioned technical problems existing in the prior art, the present application provides a roadside tracking method, device, equipment and storage medium.

为解决上述问题,本申请提供了一种路沿跟踪方法,路沿跟踪方法包括:获取当前时刻的预测路沿点集和检测路沿点集;基于所述预测路沿点集对所述检测路沿点集进行分组处理,得到所述检测路沿点集的分组结果;获取当前时刻车辆所行使的道路是否存在路沿不全的路沿识别结果;基于所述路沿识别结果和所述检测路沿点集的分组结果,对所述预测路沿点集和所述检测路沿点集进行融合处理,得到融合路沿点集;对所述融合路沿点集进行曲线拟合,得到当前时刻的路沿拟合结果。In order to solve the above problems, the present application provides a roadside tracking method, the roadside tracking method includes: obtaining the predicted roadside point set and the detected roadside point set at the current moment; based on the predicted roadside point set, the detected The roadside point set is grouped, and the grouping result of the detected roadside point set is obtained; whether there is an incomplete roadside identification result on the road that the vehicle is running at the current moment is obtained; based on the roadside identification result and the detection For the grouping result of the roadside point set, the predicted roadside point set and the detected roadside point set are fused to obtain the fused roadside point set; curve fitting is performed on the fused roadside point set to obtain the current Curb fitting result at time.

为解决上述问题,本申请提供了一种路沿拟合装置,路沿拟合装置包括:获取模块、分组模块、融合模块以及拟合模块;所述获取模块用于获取当前时刻的预测路沿点集和检测路沿点集;所述分组模块用于基于所述预测路沿点集对所述检测路沿点集进行分组处理,得到所述检测路沿点集的分组结果;所述获取模块用于获取当前时刻车辆所行使的道路是否存在路沿不全的路沿识别结果;所述融合模块用于基于所述路沿识别结果和所述检测路沿点集的分组结果,对所述预测路沿点集和所述检测路沿点集进行融合处理,得到融合路沿点集;所述拟合模块用于对所述融合路沿点集进行曲线拟合,得到当前时刻的路沿拟合结果。In order to solve the above problems, the application provides a curb fitting device, which includes: an acquisition module, a grouping module, a fusion module and a fitting module; the acquisition module is used to obtain the predicted curb at the current moment A point set and a detected roadside point set; the grouping module is used to group the detected roadside point set based on the predicted roadside point set, and obtain the grouping result of the detected roadside point set; the acquiring The module is used to obtain the curb recognition result of whether there is an incomplete curb on the road the vehicle is driving at the current moment; the fusion module is used to classify the performing fusion processing on the predicted roadside point set and the detected roadside point set to obtain a fused roadside point set; the fitting module is used to perform curve fitting on the fused roadside point set to obtain the current moment Fitting results.

为解决上述问题,本申请提供了一种路沿拟合设备,路沿拟合设备包括:处理器和存储器,所述存储器中存储有计算机程序,所述处理器用于执行所述计算机程序以实现上述的方法。In order to solve the above problems, the present application provides a roadside fitting device, the roadside fitting device includes: a processor and a memory, a computer program is stored in the memory, and the processor is used to execute the computer program to realize the above method.

为解决上述问题,本申请提供了一种计算机可读存储介质,其上存储有程序指令,所述程序指令被处理器执行时实现上述的方法。In order to solve the above problems, the present application provides a computer-readable storage medium on which program instructions are stored, and when the program instructions are executed by a processor, the above method is implemented.

与现有技术相比,本申请的路沿跟踪方法包括:获取当前时刻的预测路沿点集和检测路沿点集;基于预测路沿点集对检测路沿点集进行分组处理,得到检测路沿点集的分组结果;获取当前时刻车辆所行使的道路是否存在路沿不全的路沿识别结果;基于路沿识别结果和检测路沿点集的分组结果,对预测路沿点集和检测路沿点集进行融合处理,得到融合路沿点集;对融合路沿点集进行曲线拟合,得到当前时刻的路沿拟合结果。通过上述实施方式,同时参考路沿识别结果和检测路沿点集的分组结果,以对预测路沿点集和检测路沿点集进行融合处理,然后再对融合路沿点进行曲线拟合,从而可以根据识别出的检测路沿点变换与否,以及路沿是否被遮挡和缺失来融合预测路沿点集和检测路沿点集,使得复杂路况中的路沿也能稳定、准确地被跟踪出来,鲁棒性好。Compared with the prior art, the curb tracking method of the present application includes: obtaining the predicted curb point set and the detected curb point set at the current moment; grouping the detected curb point set based on the predicted curb point set to obtain the detected curb point set The grouping result of the roadside point set; obtain the roadside recognition result of whether the road that the vehicle is driving at the current moment has an incomplete roadside; based on the roadside recognition result and the grouping result of the detected roadside point set, predict the roadside point set and detect The roadside point set is fused to obtain the fused roadside point set; curve fitting is performed on the fused roadside point set to obtain the roadside fitting result at the current moment. Through the above-mentioned embodiment, at the same time refer to the curb identification result and the grouping result of the detected curb point set to perform fusion processing on the predicted curb point set and the detected curb point set, and then perform curve fitting on the fused curb point, Therefore, according to whether the identified detected roadside points are transformed or not, and whether the roadside is blocked or missing, the predicted roadside point set and the detected roadside point set can be fused, so that the roadside in complex road conditions can also be stably and accurately detected. Tracking out, good robustness.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some of the present application. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本申请提供的路沿跟踪方法的一实施例的流程示意图;Fig. 1 is a schematic flow chart of an embodiment of the roadside tracking method provided by the present application;

图2是图1中步骤S102的一实施例流程示意图;Fig. 2 is a schematic flow chart of an embodiment of step S102 in Fig. 1;

图3是本申请提供的获取当前时刻的预测路沿点集的一实施例流程示意图;FIG. 3 is a schematic flow diagram of an embodiment of obtaining the predicted roadside point set at the current moment provided by the present application;

图4是本申请提供的路沿拟合装置一实施例结构示意图;Fig. 4 is a schematic structural diagram of an embodiment of a roadside fitting device provided by the present application;

图5是本申请提供的路沿拟合设备一实施例的结构示意图;FIG. 5 is a schematic structural view of an embodiment of a roadside fitting device provided by the present application;

图6是本申请提供的计算机存储介质一实施例的结构示意图。Fig. 6 is a schematic structural diagram of an embodiment of a computer storage medium provided by the present application.

具体实施方式Detailed ways

下面结合附图和实施例,对本申请作进一步的详细描述。特别指出的是,以下实施例仅用于说明本申请,但不对本申请的范围进行限定。同样的,以下实施例仅为本申请的部分实施例而非全部实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The application will be described in further detail below in conjunction with the accompanying drawings and embodiments. In particular, the following examples are only used to illustrate the present application, but not to limit the scope of the present application. Likewise, the following embodiments are only some of the embodiments of the present application but not all of them, and all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present application.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其他实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其他实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

本申请的描述中,需要说明的是,除非另外明确的规定和限定,术语“安装”、“设置”、“相连”、“连接”应做广义理解,例如,可以是固定连接,可以是可拆卸连接,或一体地连接;可以是机械来能接,也可以是电连接;可以是直接相连,也可以通过中间媒介间隔相连。对于本领域的普通技术人员而言,可以具体情况连接上述属于在本申请的具体含义。In the description of this application, it should be noted that, unless otherwise clearly stipulated and limited, the terms "installation", "setting", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, it can be a Detachable connection, or integral connection; it can be mechanically connected or electrically connected; it can be directly connected or connected at intervals through an intermediate medium. For those skilled in the art, the above-mentioned specific meanings belonging to the present application can be connected in specific situations.

车辆行驶过程中对周围环境的感知是实现车辆智能辅助驾驶与无人驾驶的基础,路沿检测技术是实现车辆智能路径规划和决策控制的重要环节,也是实现车道保持辅助(Lane Keeping Assist,LKA)和车道偏离预警(Lane Departure Warning,LDW)等辅助驾驶的基础。The perception of the surrounding environment during vehicle driving is the basis for realizing vehicle intelligent assisted driving and unmanned driving. Road edge detection technology is an important link to realize vehicle intelligent path planning and decision-making control. ) and Lane Departure Warning (Lane Departure Warning, LDW) and other assisted driving basis.

现有的复杂路况的路沿跟踪方法可能多采用单一的融合检测结果与预测结果的策略,当道路出现遮挡或缺失的情况,难以准确地跟踪出路沿形态和位置。示例性地,一些道路中会存在车辆拥堵、车辆遮挡住路沿的情况,激光雷达无法检测到被遮挡部分的路沿点,而传统路沿跟踪方法采用单一的融合检测结果与预测结果的策略,不能根据实时的路沿状况做出调整,难以准确地跟踪出路沿形态和位置;一些道路中会出现缺失部分路沿的情况,比如十字路口、三岔路口等,同样的,缺失部分路沿点会给路沿拟合造成误差,传统的路沿跟踪方法采用单一融合检测与预测的策略,不能根据实时的路沿状况调整跟踪策略,难以准确地跟踪出路沿形态和位置;一些道路中会包含多条路沿线,比如匝道、高架桥进出口等,传统的路沿跟踪方法没有针对路沿点的匹配规则,会出现跟踪结果跳变的问题,影响实际路沿的输出。Existing roadside tracking methods for complex road conditions may mostly use a single strategy of fusing detection results and prediction results. When the road is blocked or missing, it is difficult to accurately track the shape and position of the roadside. For example, in some roads there will be vehicle congestion and vehicles blocking the roadside, and lidar cannot detect the roadside points of the blocked part, while the traditional roadside tracking method uses a single strategy of fusing detection results and prediction results , cannot make adjustments according to the real-time roadside conditions, and it is difficult to accurately track the shape and position of the roadside; Points will cause errors in roadside fitting. The traditional roadside tracking method adopts a single fusion detection and prediction strategy, which cannot adjust the tracking strategy according to the real-time roadside conditions, and it is difficult to accurately track the shape and position of the roadside; some roads will Including multiple roads, such as ramps, viaduct entrances and exits, etc., the traditional roadside tracking method does not have matching rules for roadside points, and there will be problems with tracking results jumping, which will affect the output of the actual roadside.

为了解决现有技术中存在的一系列技术问题,本申请提供了一种路沿跟踪方法,参见图1,图1是本申请提供的路沿跟踪方法的一实施例的流程示意图,具体而言包括如下步骤S101~步骤S105。In order to solve a series of technical problems existing in the prior art, the present application provides a roadside tracking method, see Fig. 1, Fig. 1 is a schematic flow chart of an embodiment of the roadside tracking method provided by the present application, specifically It includes the following steps S101 to S105.

步骤S101:获取当前时刻的预测路沿点集和检测路沿点集。Step S101: Obtain the predicted roadside point set and detected roadside point set at the current moment.

车辆在具有路沿的道路上正常行驶的过程中,为了准确识别出路沿的实际状况,可获取当前时刻的预测路沿点集和检测路沿点集,以通过对预测路沿点集和检测路沿点集处理输出路沿状况。预测路沿点集可为根据特定算法对相关数据进行计算,以预测车辆在当前时刻所处的路沿状况,示例性地,预测路沿点集可以是根据车辆的行驶状态对前一时刻的所输出的路沿状况进行处理得到。检测路沿点集可以是车辆在行驶的过程中实时获取路沿的信息,然后对路沿的信息进行分析处理得到,例如,可通过图像采集装置实时采集路沿的图片信息,然后对图片信息进行处理得到检测路沿点集;或者可通过激光雷达技术检测出原始点云,然后对原始点云进行处理之后得到检测路沿点集,示例性地,车辆上可搭载激光器,激光器发射出的脉冲激光,打到周边树木、道路、汽车、行人等,引起散射,一部分光波会反射到激光雷达的接收器上。根据激光测距原理计算,就能得到激光雷达到目标点的距离,脉冲激光不断地扫描目标物,就可以得到目标物体上全部目标点的数据,用此数据进行成像处理后,就可得到精确的三维立体图像,然后对图像进行分析,最终的得到检测路沿点集。During the normal driving process of a vehicle on a road with a curb, in order to accurately identify the actual situation of the curb, the predicted curb point set and the detected curb point set at the current moment can be obtained, so as to pass the predicted curb point set and detection The curb point set handles the output curb condition. The predicted roadside point set can be calculated according to the relevant data according to a specific algorithm to predict the roadside condition of the vehicle at the current moment. The output road edge condition is obtained by processing. The detection of the roadside point set can be obtained by obtaining the information of the roadside in real time during the driving process of the vehicle, and then analyzing and processing the information of the roadside. processing to obtain the detected roadside point set; or the original point cloud can be detected by lidar technology, and then the original point cloud can be processed to obtain the detected roadside point set. For example, the vehicle can be equipped with a laser, and the laser emits The pulse laser hits the surrounding trees, roads, cars, pedestrians, etc., causing scattering, and part of the light waves will be reflected to the receiver of the lidar. According to the calculation of the principle of laser ranging, the distance from the laser radar to the target point can be obtained. The pulse laser continuously scans the target object, and the data of all target points on the target object can be obtained. After imaging processing with this data, the accurate 3D stereoscopic image, and then analyze the image, and finally get the detection roadside point set.

步骤S102:基于预测路沿点集对检测路沿点集进行分组处理,得到检测路沿点集的分组结果。Step S102: Grouping the detected roadside point set based on the predicted roadside point set to obtain a grouping result of the detected roadside point set.

检测路沿点通常为不具有路沿属性特征的散乱点,当前时刻的预测路沿点集为根据相关算法计算得到,由此在路沿不发生较大变化的情况下,预测路沿点集较为准确,此时可利用预测路沿点集对检测路沿点集进行分组划分,示例性地,预测路沿点集通常包括左路沿预测点集和右路沿预测点集,可将检测路沿点和预测路沿点进行比较,然后将检测路沿点集划分为左路沿检测点集、右路沿检测点集、新生路沿检测点集,最终得到检测路沿点集的分组结果包括是否存在新生路沿点集。The detected roadside points are usually scattered points without roadside attribute characteristics. The predicted roadside point set at the current moment is calculated according to the relevant algorithm. Therefore, when the roadside does not change significantly, the predicted roadside point set It is more accurate. At this time, the predicted roadside point set can be used to group and divide the detected roadside point set. Exemplarily, the predicted roadside point set usually includes the left roadside predicted point set and the right roadside predicted point set, and the detected roadside point set can be divided into Compare the roadside points with the predicted roadside points, and then divide the detected roadside point set into left roadside detection point set, right roadside detection point set, new roadside detection point set, and finally get the grouping of detected roadside point sets The results include whether a nascent curb set exists.

步骤S103:获取当前时刻车辆所行使的道路是否存在路沿不全的路沿识别结果。Step S103: Obtain the roadside identification result of whether the road the vehicle is driving at the current moment has an incomplete roadside.

车辆在道路上正常行驶的过程中,可通过获取车辆外周的图像,然后对图像进行分析,最终确定在当前时刻车辆所行使的道路是否存在路沿不全的路沿识别结果。示例性地,车辆可配置有摄像头传感器,摄像头传感器可实时获取车辆两侧的路沿图像,然后将路沿图像输入已经完成训练的神经网络模型中,神经网络模型输出路沿是否被遮挡或是否缺失的路沿识别结果,当路沿被遮挡或缺失时,输出路沿不全的识别结果,反之输出不存在路沿不全的识别结果。其中,神经网络模型可采用Efficientnet或者Resnet网络模型,在其他实施例中,神经网络模型也可以是其他的网络模型,只要能够输出道路是否存在路沿不全的路沿识别结果即可。During the normal driving process of the vehicle on the road, by acquiring the image of the periphery of the vehicle, and then analyzing the image, it is finally determined whether there is an incomplete roadside recognition result on the road the vehicle is driving at the current moment. Exemplarily, the vehicle can be equipped with a camera sensor, which can acquire roadside images on both sides of the vehicle in real time, and then input the roadside image into the trained neural network model, and the neural network model outputs whether the roadside is blocked or whether For the missing road edge recognition result, when the road edge is blocked or missing, the recognition result of incomplete road edge is output, otherwise the recognition result of no incomplete road edge is output. Wherein, the neural network model can adopt Efficientnet or Resnet network model. In other embodiments, the neural network model can also be other network models, as long as it can output the roadside recognition result of whether there is an incomplete roadside on the road.

步骤S104:基于路沿识别结果和检测路沿点集的分组结果,对预测路沿点集和检测路沿点集进行融合处理,得到融合路沿点集。Step S104: Based on the curb recognition result and the grouping result of the detected curb point set, perform fusion processing on the predicted curb point set and the detected curb point set to obtain a fused curb point set.

路沿识别结果包括道路存在路沿不全的识别结果和不存在路沿不全的识别结果,检测路沿点集的分组结果包括存在新生路沿点集和不存在新生路沿点集两种分组结果。当确定当前时刻的路沿识别结果和检测路沿点集的分组结果即可对预测路沿点集和检测路沿点集进行融合处理,得到融合路沿点集。其中,预测路沿点集和检测路沿点集进行融合处理可以包括只输出预测路沿点集或只输出检测路沿点集以作为融合路沿点,也可设定预测路沿点集和检测路沿点集的各自权重,然后利用融合算法对预测路沿点集合检测路沿点集进行融合处理,最终得到融合路沿点集。The curb recognition results include the recognition results of the road with incomplete curbs and the recognition results of the absence of incomplete curbs. The grouping results of the detected curb point sets include the grouping results of the new road edge point set and the non-existent new road edge point set. . When the curb recognition result at the current moment and the grouping result of the detected curb point set are determined, the predicted curb point set and the detected curb point set can be fused to obtain a fused curb point set. Among them, the fusion processing of the predicted roadside point set and the detected roadside point set may include only outputting the predicted roadside point set or only the detected roadside point set as the fusion roadside point, or setting the predicted roadside point set and Detect the respective weights of the roadside point sets, and then use the fusion algorithm to fuse the predicted roadside point set and the detected roadside point set, and finally obtain the fused roadside point set.

步骤S105:对融合路沿点集进行曲线拟合,得到当前时刻的路沿拟合结果。Step S105: Curve fitting is performed on the fused roadside point set to obtain the roadside fitting result at the current moment.

在得到融合路沿点之后,即可基于曲线拟合算法对融合路沿点进行曲线拟合,最终得到当前时刻的路沿拟合结果。示例性地,可通过RANSAC算法、最小二乘法或者其他曲线拟合算法对融合路沿点进行曲线拟合,在拟合的曲线模型不符合要求时,可采用相同的方式对融合路沿点集进行多次拟合最终得到路沿拟合结果。After the fusion roadside points are obtained, curve fitting can be performed on the fusion roadside points based on the curve fitting algorithm, and finally the roadside fitting result at the current moment can be obtained. Exemplarily, curve fitting can be performed on the fusion roadside points by RANSAC algorithm, least squares method or other curve fitting algorithms, and when the fitted curve model does not meet the requirements, the fusion roadside point set can be processed in the same way Perform multiple fittings to finally get the roadside fitting result.

通过上述实施方式,同时参考路沿识别结果和检测路沿点集的分组结果,以对预测路沿点集和检测路沿点集进行融合处理,然后再对融合路沿点进行曲线拟合,从而可以根据识别出的检测路沿点变换与否,以及路沿是否被遮挡和缺失来融合预测路沿点集和检测路沿点集,使得复杂路况中的路沿也能稳定、准确地被跟踪出来,鲁棒性好。Through the above-mentioned embodiment, at the same time refer to the curb identification result and the grouping result of the detected curb point set to perform fusion processing on the predicted curb point set and the detected curb point set, and then perform curve fitting on the fused curb point, Therefore, according to whether the identified detected roadside points are transformed or not, and whether the roadside is blocked or missing, the predicted roadside point set and the detected roadside point set can be fused, so that the roadside in complex road conditions can also be stably and accurately detected. Tracking out, good robustness.

在一实施例中,基于路沿识别结果和检测路沿点集的分组结果,对预测路沿点集和检测路沿点集进行融合处理(步骤S104)包括:基于路沿识别结果和检测路沿点集的分组结果,确定预测路沿点集和检测路沿点集各自的融合权重;按照各自的融合权重对预测路沿点集和检测路沿点集进行融合处理。In one embodiment, based on the curb recognition result and the grouping result of the detected curb point set, performing fusion processing on the predicted curb point set and the detected curb point set (step S104) includes: based on the curb recognition result and the detected curb point set According to the grouping result of the edge point set, the respective fusion weights of the predicted road edge point set and the detected road edge point set are determined; the predicted road edge point set and the detected road edge point set are fused according to their respective fusion weights.

具体地,可按照以下计算方式来对预测路沿点集和检测路沿点集进行融合处理:Specifically, the predicted roadside point set and the detected roadside point set can be fused according to the following calculation method:

f(x)=Eg(x)+Fc(x)f(x)=Eg(x)+Fc(x)

其中,g(x)代表预测路沿点集的预测结果,c(x)代表检测路沿点集的检测结果,E代表预测路沿点集的预测权重系数,F代表检测路沿点集的检测权重系数,f(x)代表融合预测路沿点集和检测路沿点集的融合结果。Among them, g(x) represents the prediction result of the predicted roadside point set, c(x) represents the detection result of the detected roadside point set, E represents the prediction weight coefficient of the predicted roadside point set, and F represents the value of the detected roadside point set The detection weight coefficient, f(x) represents the fusion result of the fusion prediction roadside point set and the detection roadside point set.

预测路沿点集的权重系数和检测路沿点集的权重系数均通过分组结果和路沿识别结果进行确定,使融合结果更加符合实际情况,示例性地,当从路沿识别结果和检测路沿点集的分组结果中确定预测路沿点集更符合真实情况,则可将预测权重系数的数值设置成大于检测权重系数的数值;反之则将预测权重系数的数值设置成小于检测权重系数的数值。具体地,可参见如下实施例:The weight coefficient of the predicted roadside point set and the weight coefficient of the detected roadside point set are determined by the grouping result and the roadside recognition result, so that the fusion result is more in line with the actual situation. For example, when the roadside recognition result and the detected roadside If it is determined that the predicted roadside point set is more in line with the real situation in the grouping results of the point set, the value of the prediction weight coefficient can be set to be greater than the value of the detection weight coefficient; otherwise, the value of the prediction weight coefficient can be set to be smaller than that of the detection weight coefficient value. Specifically, see the following examples:

在一实施例中,基于路沿识别结果和检测路沿点集的分组结果,确定预测路沿点集和检测路沿点集各自的融合权重,包括:若检测路沿点集的分组结果中不存在新生路沿点集以及路沿识别结果中不存在路沿不全,则确定预测路沿点集的融合权重与检测路沿点集的融合权重的差值小于或等于预设阈值。In one embodiment, based on the curb identification result and the grouping result of the detected curb point set, the respective fusion weights of the predicted curb point set and the detected curb point set are determined, including: if the grouping result of the detected curb point set If there is no new road edge point set and there is no road edge incompleteness in the road edge recognition result, it is determined that the difference between the fusion weight of the predicted road edge point set and the fusion weight of the detected road edge point set is less than or equal to the preset threshold.

表明当前路沿没有出现遮挡或者缺失的情况,同时还检测到车辆会继续在当前道路行驶,不会进入新生道路。在本实施例中,在确定重要性函数时判断到可同时相信预测的结果和检测的结果,由此可设置预测路沿点集的融合权重与检测路沿点集的融合权重的差值小于或等于预设阈值,从而同时融合预测路沿点集和检测路沿点集。例如预测路沿点集的权重系数和检测路沿点集的权重系数设定为0.5,使两者之间的差值为0,从而融合预测路沿点集和检测路沿点集作为最终的融合结果。It indicates that the current roadside is not blocked or missing, and it is also detected that the vehicle will continue to drive on the current road and will not enter the new road. In this embodiment, when determining the importance function, it is judged that the predicted result and the detected result can be believed at the same time, so the difference between the fusion weight of the predicted roadside point set and the fusion weight of the detected roadside point set can be set to be less than Or equal to the preset threshold, so as to simultaneously fuse the predicted roadside point set and the detected roadside point set. For example, the weight coefficient of the predicted roadside point set and the weight coefficient of the detected roadside point set are set to 0.5, so that the difference between the two is 0, so that the predicted roadside point set and the detected roadside point set are fused as the final Fusion results.

在一实施例中,基于路沿识别结果和检测路沿点集的分组结果,确定预测路沿点集和检测路沿点集各自的融合权重,包括:若检测路沿点集的分组结果中不存在新生路沿点集以及路沿识别结果中存在路沿不全,则确定预测路沿点集的融合权重大于检测路沿点集的融合权重。In one embodiment, based on the curb identification result and the grouping result of the detected curb point set, the respective fusion weights of the predicted curb point set and the detected curb point set are determined, including: if the grouping result of the detected curb point set If there is no new road edge point set and there is an incomplete road edge in the road edge recognition result, it is determined that the fusion weight of the predicted road edge point set is greater than the fusion weight of the detected road edge point set.

表明当前路沿出现至少部分遮挡或者至少部分缺失的情况,被遮挡或缺失的部分路沿无法被检测到,同时还检测到车辆会继续在当前道路行驶,不会进入新生道路。针对此种情况,传统的跟踪算法会融合检测和预测的结果,但输出的路沿会偏离实际路沿。而在本实施例中,由于道路出现缺失或遮挡,被遮挡或缺失的部分路沿无法被检测到,导致检测路沿点集与实际情况不符,在确定重要性函数时判断到应更相信预测的结果,由此可设置预测路沿点集的融合权重大于检测路沿点集的融合权重,例如预测路沿点集的权重系数设定为1,检测路沿点集的权重系数设定为0,从而直接将预测路沿点集当作最终的融合结果。Indicates that the current roadside is at least partially blocked or at least partially missing, and the blocked or missing part of the roadside cannot be detected. At the same time, it is also detected that the vehicle will continue to drive on the current road and will not enter the new road. In this case, the traditional tracking algorithm will fuse the detection and prediction results, but the output curb will deviate from the actual curb. However, in this embodiment, due to the lack or occlusion of the road, the occluded or missing part of the roadside cannot be detected, resulting in a discrepancy between the detected roadside point set and the actual situation. When determining the importance function, it is judged that the prediction should be more trusted Therefore, the fusion weight of the predicted roadside point set can be set to be greater than the fusion weight of the detected roadside point set. For example, the weight coefficient of the predicted roadside point set is set to 1, and the weight coefficient of the detected roadside point set is set to 0, so that the predicted roadside point set is directly regarded as the final fusion result.

在一实施例中,基于路沿识别结果和检测路沿点集的分组结果,确定预测路沿点集和检测路沿点集各自的融合权重,包括:若检测路沿点集的分组结果中存在新生路沿点集以及路沿识别结果中不存在路沿不全,则确定预测路沿点集的融合权重小于检测路沿点集的融合权重。In one embodiment, based on the curb identification result and the grouping result of the detected curb point set, the respective fusion weights of the predicted curb point set and the detected curb point set are determined, including: if the grouping result of the detected curb point set If there is a new road edge point set and there is no road edge incompleteness in the road edge recognition result, it is determined that the fusion weight of the predicted road edge point set is smaller than the fusion weight of the detected road edge point set.

表明当前路沿没有出现遮挡或者缺失的情况,同时检测到车辆不会继续在当前道路行驶,而是进入新生道路。在本实施例中,由于预测路沿点集通常为预测车辆继续在原道路行驶时的路沿点,当车辆需要进入新生道路时,预测路沿点集所预测路沿点集与实际情况不符,那么在确定重要性函数时判断到应更相信检测的结果,由此可设置检测路沿点集的融合权重大于预测路沿点集的融合权重,例如检测路沿点集的权重系数设定为1,预测路沿点集的权重系数设定为0,从而直接将检测路沿点集当作最终的融合结果。It indicates that the current roadside is not blocked or missing, and at the same time, it is detected that the vehicle will not continue to drive on the current road, but enter the new road. In this embodiment, since the predicted roadside point set is usually the roadside point when the vehicle continues to drive on the original road, when the vehicle needs to enter the new road, the predicted roadside point set of the predicted roadside point set does not match the actual situation. Then when determining the importance function, it is judged that the detection result should be believed more, so the fusion weight of the detected roadside point set can be set to be greater than the fusion weight of the predicted roadside point set, for example, the weight coefficient of the detected roadside point set is set to 1. The weight coefficient of the predicted roadside point set is set to 0, so that the detected roadside point set is directly regarded as the final fusion result.

在一实施例中,基于路沿识别结果和检测路沿点集的分组结果,确定预测路沿点集和检测路沿点集各自的融合权重,包括:若检测路沿点集的分组结果中存在新生路沿点集以及路沿识别结果中存在路沿不全,则确定预测路沿点集的融合权重小于检测路沿点集的融合权重。In one embodiment, based on the curb identification result and the grouping result of the detected curb point set, the respective fusion weights of the predicted curb point set and the detected curb point set are determined, including: if the grouping result of the detected curb point set If there is a new road edge point set and there is an incomplete road edge in the road edge recognition result, it is determined that the fusion weight of the predicted road edge point set is smaller than the fusion weight of the detected road edge point set.

表明当前路沿出现至少部分遮挡或者至少部分缺失的情况,被遮挡或缺失的部分路沿无法被检测到,同时还检测到存在新生路沿点集。在本实施例中,由于道路出现缺失或遮挡,被遮挡或缺失的部分路沿无法被检测到,导致检测路沿点集与实际情况不符,在确定重要性函数时判断到可更相信检测的结果,由此可设置预测路沿点集的融合权重小于检测路沿点集的融合权重,例如预测路沿点集的权重系数设定为0,检测路沿点集的权重系数设定为1,从而直接将检测路沿点集当作最终的融合结果。Indicates that the current road edge is at least partially occluded or at least partially missing, and the occluded or missing part of the road edge cannot be detected, and a new road edge point set is also detected. In this embodiment, due to the lack or occlusion of the road, the occluded or missing part of the roadside cannot be detected, resulting in the detection of the roadside point set does not match the actual situation. When determining the importance function, it is judged that the detection can be more reliable As a result, the fusion weight of the predicted roadside point set can be set to be smaller than the fusion weight of the detected roadside point set, for example, the weight coefficient of the predicted roadside point set is set to 0, and the weight coefficient of the detected roadside point set is set to 1 , so that the detected roadside point set is directly regarded as the final fusion result.

上述实施例中,主要介绍了将预测路沿点集和检测路沿点集可根据检测路沿点集的分组结果进行融合,由此,如何对检测路沿点集进行分组至关重要,参见图2,图2是图1中步骤S102的一实施例流程示意图,具体而言,包括如下步骤S201~步骤S203。In the above-mentioned embodiment, it is mainly introduced that the predicted roadside point set and the detected roadside point set can be fused according to the grouping result of the detected roadside point set. Therefore, how to group the detected roadside point set is very important, see Fig. 2, Fig. 2 is a schematic flowchart of an embodiment of step S102 in Fig. 1, specifically, it includes the following steps S201 to S203.

步骤S201:从检测路沿点集中选取一个未计算过距离值的目标路沿点与预测路沿点集中的左路沿预测点集计算距离得到左路沿距离值,以及与预测路沿点集中的右路沿点集计算距离得到右路沿距离值,重复当前步骤直至遍历所有检测路沿点。Step S201: Select a target roadside point whose distance value has not been calculated from the detected roadside point set and calculate the distance from the left roadside predicted point set in the predicted roadside point set to obtain the left roadside distance value, and set it with the predicted roadside point set Calculate the distance of the right-road point set to get the distance value of the right-road, and repeat the current step until all detected road-side points are traversed.

检测路沿点集中存在较多检测路沿点,需要将较多的检测路沿点进行分组处理,以明确某些检测路沿点为当前道路的左路沿点,某些检测路沿点为当前道路的右路沿点,某些检测路沿点为新生路沿点。在本实施例中,可先从若干检测路沿点中选取一个未计算过距离值的点作为目标路沿点,将目标路沿点与左路沿预测点计算距离从而得到左路沿距离值,并同时与右路沿点集计算距离得到右路沿距离值,以便于后续根据距离值的大小确定目标路沿点是属于左路沿上的点还是右路沿上的点。在得到一个检测路沿点的左路沿距离值和右路沿距离值之后,即可按照相同方式计算另一个检测路沿点的左路沿距离值和右路沿距离值,以最终得到每个检测路沿点的左路沿距离值和右路沿距离值。There are many detected roadside points in the concentration of detected roadside points, and more detected roadside points need to be grouped to make it clear that some detected roadside points are the left roadside points of the current road, and some detected roadside points are Right curb points of the current road, some detected curb points are new curb points. In this embodiment, a point whose distance value has not been calculated can be selected from several detected curb points as the target curb point, and the distance between the target curb point and the predicted point of the left curb can be calculated to obtain the distance value of the left curb , and at the same time calculate the distance with the right-curb point set to obtain the distance value of the right-curb, so as to determine whether the target curb point belongs to the point on the left-curb or the point on the right-curb according to the size of the distance value. After obtaining the left-curb distance value and right-curb distance value of a detected curb point, the left-curb distance value and right-curb distance value of another detected curb point can be calculated in the same way, so as to finally obtain each The left curb distance value and the right curb distance value of each detected curb point.

具体地,计算检测路沿点的距离值具体可包括:将选择的目标路沿点与左路沿预测点集中的所有左路沿预测点计算距离值,并将所有的距离值求取平均值作为左路沿距离值;将选择的目标路沿点与右路沿预测点集中的所有右路沿预测点计算距离值,并将所有的距离值求取平均值作为右路沿距离值。也即先将目标路沿点分别与每一个左路沿预测点计算欧氏距离,然后将计算的欧氏距离进行求和后求取平均值,并将平均值作为左路沿距离值,同理采用相同的方式,求取得到右路沿距离值。重复执行相同的步骤,直至遍历所有检测路沿点,得到每个检测路沿点的左路沿距离值和右路沿距离值。Specifically, calculating the distance value of the detected roadside point may specifically include: calculating the distance value between the selected target roadside point and all left roadside prediction points in the left roadside prediction point set, and calculating the average value of all distance values As the distance value along the left road; calculate the distance value between the selected target roadside point and all the predicted points along the right roadside in the set of predicted points along the right roadside, and calculate the average value of all the distance values as the distance value along the right roadside. That is to say, first calculate the Euclidean distance between the target roadside point and each predicted point along the left road, then sum the calculated Euclidean distances and calculate the average value, and use the average value as the distance value along the left road. Use the same method to obtain the distance value to the right road edge. The same steps are repeated until all detected roadside points are traversed to obtain the left roadside distance value and right roadside distance value of each detected roadside point.

步骤S202:从检测路沿点的左路沿距离值和右路沿距离值中选择数值较小的一者与预设距离阈值进行比较。Step S202: Selecting the smaller one from the left curb distance value and the right curb distance value of the detected curb point to compare with the preset distance threshold.

在得到每个检测路沿点的左路沿距离值和右路沿距离值之后,需要根据距离值对检测路沿点进行分组处理。在本实施例中,需要从所有检测路沿点的左路沿距离值和右路沿距离值中选择数值较小的一者与预设距离阈值进行比较,其中,预设距离阈值可根据实际情况设定。示例性地,先从多个检测路沿点集中选择其中一个目标路沿点处理,例如目标路沿点的左路沿距离值的数值大于右路沿距离值的数值,则将右路沿距离值与预设距离进行比较得到比较结果,然后再从检测路沿点集中选择另外一个未与预设距离阈值进行比较过的检测路沿点,并从选择的检测路沿点的左路沿距离值和右路沿距离值中选择数值较小的一者与预设距离阈值进行比较得到比较结果,重复执行步骤以遍历所有的检测路沿点,直至得到每个检测路沿点与预设距离阈值的比较结果。After obtaining the distance value of the left roadside and the right roadside of each detected roadside point, it is necessary to group the detected roadside points according to the distance value. In this embodiment, it is necessary to select the one with the smaller value from the left and right roadside distance values of all detected roadside points to compare with the preset distance threshold, wherein the preset distance threshold can be determined according to the actual situation. Situation setting. Exemplarily, one of the target curb points is first selected from a plurality of detected curb points for processing. For example, the value of the left curb distance value of the target curb point is greater than the value of the right curb distance value, then the right curb distance Value is compared with the preset distance to get the comparison result, and then another detected roadside point that has not been compared with the preset distance threshold is selected from the detected roadside point set, and the left roadside distance of the selected detected roadside point is selected value and the distance value of the right road edge, choose the smaller one to compare with the preset distance threshold to obtain the comparison result, and repeat the steps to traverse all detected roadside points until the preset distance between each detected roadside point and the preset distance is obtained Threshold comparison result.

步骤S203:基于距离比较结果确定检测路沿点集的分组结果中是否存在新生路沿点集。Step S203: Based on the distance comparison result, it is determined whether there is a new road edge point set in the grouping result of the detected road edge point set.

在得到每个检测路沿点与预设距离阈值的比较结果后,即可对每个检测路沿点进行分组,具体地,当比较结果为小于等于预设距离阈值,则可将该检测路沿点定义为原道路的路沿点,具体还可将该检测路沿点确定为该道路的左路沿点或右路沿点,示例性地,以选择检测路沿点的右路沿距离值与预设距离阈值进行比较时,该检测路沿点为右路沿上的点;以选择检测路沿点的左路沿距离值与预设距离阈值进行比较时,该检测路沿点为左路沿上的点。当比较结果为大于预设距离阈值,则可将该检测路沿点定义为待定路沿点,当待定路沿点的数量较多,且足以构成一条道路的时,即可确定存在新生路沿点集。After obtaining the comparison result between each detected roadside point and the preset distance threshold, each detected roadside point can be grouped. Specifically, when the comparison result is less than or equal to the preset distance threshold, the detected roadside point can be grouped. The edge point is defined as the edge point of the original road. Specifically, the detected edge point can also be determined as the left edge point or the right edge point of the road. Exemplarily, the right edge distance of the detected edge point can be selected. When the value is compared with the preset distance threshold value, the detected roadside point is a point on the right roadside; when the left roadside distance value of the selected detection roadside point is compared with the preset distance threshold value, the detected roadside point is The point on the left curb. When the comparison result is greater than the preset distance threshold, the detected roadside point can be defined as an undetermined roadside point. When the number of undetermined roadside points is large and enough to form a road, it can be determined that there is a new roadside point point set.

具体地,基于距离比较结果确定检测路沿点集的分组结果中是否存在新生路沿点集的步骤(步骤S203),包括:Specifically, based on the distance comparison result, it is determined whether there is a new roadside point set in the grouping result of the detection roadside point set (step S203), including:

若检测路沿点中距离值大于预设距离阈值的待定路沿点的数量大于预设数量阈值,则将所有待定路沿点在车辆坐标系下的纵坐标值的最小值与预设纵坐标阈值进行比较,若所有待定路沿点的纵坐标值的最小值小于预设纵坐标阈值,则确定检测路沿点集的分组结果中存在新生路沿点集,否则确定检测路沿点集的分组结果中不存在新生路沿点集。If the number of undetermined roadside points whose distance value is greater than the preset distance threshold in the detected roadside points is greater than the preset number threshold, then the minimum value of the ordinate value of all undetermined roadside points in the vehicle coordinate system is compared with the preset ordinate value threshold, if the minimum value of the ordinate values of all undetermined roadside points is less than the preset ordinate threshold, then it is determined that there is a new roadside point set in the grouping result of the detected roadside point set, otherwise it is determined that the detected roadside point set The new curb point set does not exist in the grouping result.

预设数量阈值可根据实际情况设定,在此不做限定。在本实施例中,车辆坐标系可以车辆为原点所建立坐标系,具体地,可以车辆所前进的方向定义为车辆坐标系下的x轴的正方向,车辆的左方定义为车辆坐标系下的y轴的正方向。当检测路沿点中距离值大于预设距离阈值的待定路沿点的数量大于预设数量阈值,则可记录所有待定路沿点在车辆坐标系下的坐标值,当所有的待定路沿点中的纵坐标值均小于预设的纵坐标阈值时,则将所有的待定路沿点定义为新生路沿点集,且可将新生路沿点集定义为新生路沿的左路沿点集或右路沿点集,然后将原路沿点集中位于车辆另一侧的路沿定义为新生路沿的左路沿或右路沿,示例性地,当新生路沿位于车辆行驶的左侧,则可将新生路沿点集作为新生路沿的左路沿,并将原道路的右路沿点集作为新生路沿的右路沿点集,最后利用该新生路沿点集和原道路的右路沿点集拟合形成新生路沿。当不满足所有的待定路沿点中的纵坐标值的最小值均小于预设的纵坐标阈值时,则认定不存在新生路沿点集。The preset quantity threshold can be set according to actual conditions, and is not limited here. In this embodiment, the vehicle coordinate system can be established with the vehicle as the origin. Specifically, the direction the vehicle is advancing can be defined as the positive direction of the x-axis in the vehicle coordinate system, and the left side of the vehicle can be defined as the vehicle coordinate system. The positive direction of the y-axis. When the number of undetermined roadside points whose distance value is greater than the preset distance threshold in the detected roadside points is greater than the preset number threshold, the coordinate values of all undetermined roadside points in the vehicle coordinate system can be recorded. When all undetermined roadside points When the ordinate values in are less than the preset ordinate threshold, all undetermined curb points are defined as the new curb point set, and the new curb point set can be defined as the left curb point set of the new curb or the right curb point set, and then the curb located on the other side of the vehicle in the original curb point set is defined as the left curb or right curb of the new curb, for example, when the new curb is located on the left side of the vehicle , then the Xinsheng road edge set can be used as the left edge of the Xinsheng road, and the right edge set of the original road can be used as the right edge set of the Xinsheng road, and finally the Xinxin road edge set and the original road can be used The right-curb point set of is fitted to form a new curb. When it is not satisfied that the minimum values of the ordinate values in all the undetermined roadside points are less than the preset ordinate value threshold, it is determined that there is no new roadside point set.

需要说明的是,上述实施例中,步骤:将所有待定路沿点在车辆坐标系下的纵坐标值的最小值与预设纵坐标阈值进行比较,是建立在车辆坐标系以车辆为原点、以车辆所前进的方向定义为车辆坐标系下的x轴的正方向、车辆的左方定义为车辆坐标系下的y轴的正方向的基础上进行。在其他实施例中,当车辆坐标系定义不同时,步骤中:将所有待定路沿点在车辆坐标系下的纵坐标值的最小值与预设纵坐标阈值进行比较,也会发生变化,示例性地,当以车辆为原点所建立坐标系,以车辆所前进的方向定义为车辆坐标系下的y轴的正方向,车辆的左方定义为车辆坐标系下的x轴的正方向,此时上述步骤即可变化为:则将所有待定路沿点在车辆坐标系下的横坐标值的最小值与预设横坐标阈值进行比较,若所有待定路沿点的横坐标值的最小值小于预设纵坐标阈值,则确定检测路沿点集的分组结果中存在新生路沿点集,否则确定检测路沿点集的分组结果中不存在新生路沿点集。It should be noted that, in the above-mentioned embodiment, the step: comparing the minimum value of the ordinate values of all undetermined roadside points in the vehicle coordinate system with the preset ordinate threshold value is established on the basis of the vehicle coordinate system with the vehicle as the origin, The forward direction of the vehicle is defined as the positive direction of the x-axis in the vehicle coordinate system, and the left side of the vehicle is defined as the positive direction of the y-axis in the vehicle coordinate system. In other embodiments, when the definition of the vehicle coordinate system is different, in the step: comparing the minimum value of the ordinate values of all undetermined roadside points in the vehicle coordinate system with the preset ordinate threshold value, the change will also occur, for example Specifically, when the coordinate system is established with the vehicle as the origin, the forward direction of the vehicle is defined as the positive direction of the y-axis in the vehicle coordinate system, and the left side of the vehicle is defined as the positive direction of the x-axis in the vehicle coordinate system. At this time, the above steps can be changed to: compare the minimum value of the abscissa value of all undetermined roadside points in the vehicle coordinate system with the preset abscissa threshold, if the minimum value of the abscissa value of all undetermined roadside points is less than If the ordinate threshold is preset, it is determined that there is a new roadside point set in the grouping result of the detected roadside point set, otherwise it is determined that there is no new roadside point set in the grouping result of the detected roadside point set.

上述实施例中,主要介绍了检测路沿点集的分组可根据预测路沿点集确定得到,由此,如何确定预测路沿点集至关重要,参见图3,图3是本申请提供的获取当前时刻的预测路沿点集的一实施例流程示意图,具体而言,包括如下步骤S301~步骤S302。In the above-mentioned embodiment, it is mainly introduced that the grouping of the detected roadside point set can be determined according to the predicted roadside point set. Therefore, how to determine the predicted roadside point set is very important. See Figure 3, which is provided by the present application A schematic flowchart of an embodiment of obtaining the predicted roadside point set at the current moment, specifically, includes the following steps S301 to S302.

步骤S301:基于前一时刻的车辆运动信息确定车辆从前一时刻到当前时刻的横向位移、纵向位移和旋转角度。Step S301: Determine the lateral displacement, longitudinal displacement and rotation angle of the vehicle from the previous moment to the current moment based on the vehicle motion information at the previous moment.

前一时刻和当前时刻的连续的两个时刻,每个时刻可以秒为单位间隔,示例性地,前一时刻为19点30分29秒,则当前时刻可以为19点30分30秒,当然前一时刻和当前时刻之间的具体时间间隔也可为其他数值,在此可不做限定。车辆运动信息可包括车辆的运动速度和车辆的旋转角信息等,从而可根据如下公式计算车辆从前一时刻到当前时刻的横向位移和纵向位移:For two consecutive moments of the previous moment and the current moment, each moment can be separated by seconds. For example, if the previous moment is 19:30:29, the current moment can be 19:30:30, of course The specific time interval between the previous moment and the current moment can also be other values, which is not limited here. The vehicle motion information can include the vehicle's speed and rotation angle information, etc., so that the lateral displacement and longitudinal displacement of the vehicle from the previous moment to the current moment can be calculated according to the following formula:

Figure BDA0004006855890000121
Figure BDA0004006855890000121

Figure BDA0004006855890000122
Figure BDA0004006855890000122

其中,Δx、Δy分别表示车辆从k-1时刻到k时刻的纵向位移和横向位移(在车辆前方为x轴正方向,左方为y轴正方向的前提下),v表示k-1时刻的自车速度,T(k-1,k)表示从k-1时刻到k时刻经过的时间,θ表示车辆绕垂直方向的旋转角。Among them, Δx and Δy respectively represent the longitudinal displacement and lateral displacement of the vehicle from time k-1 to time k (under the premise that the front of the vehicle is the positive direction of the x-axis and the left is the positive direction of the y-axis), v represents the time k-1 T(k-1, k) represents the time elapsed from time k-1 to time k, and θ represents the rotation angle of the vehicle around the vertical direction.

步骤S302:基于横向位移、纵向位移、旋转角度、车辆坐标系的平移变换矩阵、车辆坐标系的旋转变换矩阵和前一时刻的融合路沿点在车辆坐标系下的坐标值,确定当前时刻的预测路沿点集。Step S302: Based on the lateral displacement, longitudinal displacement, rotation angle, the translation transformation matrix of the vehicle coordinate system, the rotation transformation matrix of the vehicle coordinate system, and the coordinate values of the fused roadside points in the vehicle coordinate system at the previous moment, determine the current moment Set of predicted curb points.

在执行该步骤之前可先获取车辆的车辆坐标系的平移变换矩阵和车辆坐标系的旋转变换矩阵,前一时刻的融合路沿点在车辆坐标系下的坐标值为可采用上述任意一项实施例相同的方式,求取计算得到的融合路沿点集。然后综合前一时刻的融合路沿点在车辆坐标系下的坐标值,以及在上一步骤得到的旋转角度、横向位移和纵向位移,,计算得到当前时刻的预测路沿点集。具体地,可根据如下公式计算当前时刻的预测路沿点集:Before performing this step, the translation transformation matrix of the vehicle coordinate system and the rotation transformation matrix of the vehicle coordinate system can be obtained first. The coordinate value of the fusion roadside point in the vehicle coordinate system at the previous moment can be implemented by using any of the above In the same way as the example, obtain the calculated fusion roadside point set. Then, the coordinate value of the fused roadside point in the vehicle coordinate system at the previous moment, and the rotation angle, lateral displacement and longitudinal displacement obtained in the previous step are combined to calculate the predicted roadside point set at the current moment. Specifically, the predicted roadside point set at the current moment can be calculated according to the following formula:

Figure BDA0004006855890000131
Figure BDA0004006855890000131

Figure BDA0004006855890000132
Figure BDA0004006855890000132

Figure BDA0004006855890000133
Figure BDA0004006855890000133

其中,xk、yk分别表示k时刻路沿点在车辆坐标系下的纵坐标和横坐标;A表示自车坐标系旋转变换矩阵;B表示自车坐标系平移变换矩阵;Δx、Δy分别表示车辆从k-1时刻到k时刻的纵向位移和横向位移,θ表示车辆绕垂直方向的旋转角。Among them, x k and y k represent the ordinate and abscissa of the roadside point in the vehicle coordinate system at time k respectively; A represents the rotation transformation matrix of the vehicle coordinate system; B represents the translation transformation matrix of the vehicle coordinate system; Δx and Δy respectively Represents the longitudinal displacement and lateral displacement of the vehicle from time k-1 to time k, and θ represents the rotation angle of the vehicle around the vertical direction.

在一实施例中,对融合路沿点集进行曲线拟合,得到当前时刻的路沿拟合结果的步骤(步骤S105)包括:从融合路沿点中选取若干拟合路沿点;将若干拟合路沿点进行曲线拟合,得到拟合曲线模型;将其他融合路沿点与拟合曲线模型进行匹配;若匹配程度在预设范围内的融合路沿点个数大于等于预设个数阈值,则将拟合曲线模型作为路沿拟合结果;若匹配程度在预设范围内的融合路沿点个数小于预设个数阈值,则返回步骤从融合路沿点中选取若干拟合路沿点。In one embodiment, the step of performing curve fitting on the fused curb point set to obtain the curb fitting result at the current moment (step S105) includes: selecting several fitted curb points from the fused curb points; Fit the curb points to perform curve fitting to obtain the fitted curve model; match other fused curb points with the fitted curve model; if the number of fused curb points within the preset range is greater than or equal to the preset number threshold, the fitting curve model will be used as the roadside fitting result; if the number of fused roadside points whose matching degree is within the preset range is less than the preset number threshold, then return to the step to select some simulated roadside points from the fused roadside points. Merge along the road.

融合路沿点集中可包括融合左路沿点集和融合右路沿点集,可分别对融合左路沿点集进行曲线拟合,然后再对融合右路沿点集进行曲线拟合。示例性地,以拟合融合左路沿点集为例,从融合左路沿点集中选取若干需要进行曲线拟合的路沿点,然后将其他融合左路沿点集与拟合曲线模型进行匹配,来验证拟合曲线模型是否符合要求,具体地,当其他融合左路沿点与拟合曲线模型的匹配程度在预设范围内的数量较多时,可认为该拟合曲线模型符合要求,只需要将拟合曲线模型作为路沿拟合结果输出即可;当其他融合左路沿点与拟合曲线模型的匹配程度在预设范围内的数量较少时,可认为该拟合曲线模型不符合要求,此时可从融合左路沿点集中重新选取若干路沿点,以拟合出新的拟合曲线模型,可重复执行该步骤直至得到符合要求的拟合曲线模型。The fused set of curb points may include a set of fused left kerb points and a fused set of right kerb points. Curve fitting may be performed on the fused set of left kerb points respectively, and then curve fitting may be performed on the set of fused right kerb points. Illustratively, taking fitting and fusion of the left-road point set as an example, a number of roadside points that need to be curve-fitted are selected from the fusion left-road point set, and then other fused left-road point sets are compared with the fitting curve model. Matching to verify whether the fitting curve model meets the requirements. Specifically, when the number of matching degrees between other fused left road points and the fitting curve model is within a preset range, the fitting curve model can be considered to meet the requirements. It is only necessary to output the fitted curve model as the roadside fitting result; when the matching degree of other fused left roadside points and the fitted curve model is less than the preset range, the fitted curve model can be regarded as If the requirements are not met, several roadside points can be reselected from the fused left roadside point set to fit a new fitting curve model, and this step can be repeated until a fitting curve model meeting the requirements is obtained.

通过上述实施方式,同时参考路沿识别结果和检测路沿点集的分组结果,以对预测路沿点集和检测路沿点集进行融合处理,然后再对融合路沿点进行曲线拟合,从而可以根据识别出的检测路沿点变换与否,以及路沿是否被遮挡和缺失来融合预测路沿点集和检测路沿点集,使得复杂路况中的路沿也能稳定、准确地被跟踪出来,鲁棒性好。Through the above-mentioned embodiment, at the same time refer to the curb identification result and the grouping result of the detected curb point set to perform fusion processing on the predicted curb point set and the detected curb point set, and then perform curve fitting on the fused curb point, Therefore, according to whether the identified detected roadside points are transformed or not, and whether the roadside is blocked or missing, the predicted roadside point set and the detected roadside point set can be fused, so that the roadside in complex road conditions can also be stably and accurately detected. Tracking out, good robustness.

本实施例中的路沿跟踪方法可以应用于路沿拟合装置,本申请的路沿拟合装置可以为服务器,也可以为移动设备,还可以为由服务器和移动设备相互配合的系统。相应地,移动设备包括的各个部分,例如各个单元、子单元、模块、子模块可以全部设置于服务器中,也可以全部设置于移动设备中,还可以分别设置于服务器和移动设备中。The roadside tracking method in this embodiment can be applied to a roadside fitting device. The roadside fitting device in this application can be a server, a mobile device, or a system in which a server and a mobile device cooperate with each other. Correspondingly, various parts included in the mobile device, such as various units, subunits, modules, and submodules, may all be set in the server, or all of them may be set in the mobile device, or they may be set in the server and the mobile device separately.

进一步地,上述服务器可以是硬件,也可以是软件。当服务器为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器为软件时,可以实现成多个软件或软件模块,例如用来提供分布式服务器的软件或软件模块,也可以实现成单个软件或软件模块,在此不做具体限定。Further, the above server may be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software or software modules, such as software or software modules used to provide a distributed server, or as a single software or software module, which is not specifically limited here.

为实现上述实施例的路沿跟踪方法,本申请提供了一种路沿拟合装置。参见图4,图4是本申请提供的路沿拟合装置一实施例结构示意图。In order to implement the road edge tracking method in the above embodiments, the present application provides a road edge fitting device. Referring to FIG. 4 , FIG. 4 is a structural schematic diagram of an embodiment of a roadside fitting device provided by the present application.

具体地,路沿拟合装置40可以包括获取模块41、分组模块42、融合模块43以及拟合模块44。Specifically, the roadside fitting device 40 may include an acquisition module 41 , a grouping module 42 , a fusion module 43 and a fitting module 44 .

获取模块41用于获取当前时刻的预测路沿点集和检测路沿点集。The acquiring module 41 is used to acquire the set of predicted roadside points and the set of detected roadside points at the current moment.

分组模块42用于基于预测路沿点集对检测路沿点集进行分组处理,得到检测路沿点集的分组结果。The grouping module 42 is configured to perform grouping processing on the detected roadside point set based on the predicted roadside point set, and obtain a grouping result of the detected roadside point set.

获取模块41用于获取当前时刻车辆所行使的道路是否存在路沿不全的路沿识别结果。The acquiring module 41 is used to acquire the curb recognition result of whether there is an incomplete curb on the road the vehicle is driving at the current moment.

融合模块43用于基于路沿识别结果和检测路沿点集的分组结果,对预测路沿点集和检测路沿点集进行融合处理,得到融合路沿点集。The fusion module 43 is configured to perform fusion processing on the predicted curb point set and the detected curb point set based on the curb recognition result and the grouping result of the detected curb point set to obtain a fused curb point set.

拟合模块44用于对融合路沿点集进行曲线拟合,得到当前时刻的路沿拟合结果。The fitting module 44 is used to perform curve fitting on the fused roadside point set to obtain the roadside fitting result at the current moment.

其中,在本申请的一个实施例,图4所示的路沿拟合装置40中的各个模块可以分别或全部合并为一个或若干个单元来构成,或者其中的某个(些)单元还可以再拆分为功能上更小的多个子单元,可以实现同样的操作,而不影响本申请的实施例的技术效果的实现。上述模块是基于逻辑功能划分的,在实际应用中,一个模块的功能也可以由多个单元来实现,或者多个模块的功能由一个单元实现。在本申请的其它实施例中,路沿拟合装置40也可以包括其它单元,在实际应用中,这些功能也可以由其它单元协助实现,并且可以由多个单元协作实现。Wherein, in one embodiment of the present application, each module in the curb fitting device 40 shown in FIG. The same operation can be realized without affecting the realization of the technical effects of the embodiments of the present application by splitting into multiple functionally smaller subunits. The above-mentioned modules are divided based on logical functions. In practical applications, the functions of one module can also be realized by multiple units, or the functions of multiple modules can be realized by one unit. In other embodiments of the present application, the roadside fitting device 40 may also include other units. In practical applications, these functions may also be implemented with the assistance of other units, and may be implemented cooperatively by multiple units.

上述方法应用于路沿拟合设备中。具体请参阅图5,图5是本申请提供的路沿拟合设备一实施例的结构示意图,本实施例路沿拟合设备50包括处理器51和存储器52。其中,存储器52中存储有计算机程序,处理器51用于执行计算机程序以实现上述路沿跟踪方法。The above method is applied to the roadside fitting device. Please refer to FIG. 5 for details. FIG. 5 is a schematic structural diagram of an embodiment of a roadside fitting device provided in the present application. The roadside fitting device 50 of this embodiment includes a processor 51 and a memory 52 . Wherein, a computer program is stored in the memory 52, and the processor 51 is used to execute the computer program to realize the above road edge tracking method.

其中,处理器51可以是一种集成电路芯片,具有信号的处理能力。处理器51还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Wherein, the processor 51 may be an integrated circuit chip, which has a signal processing capability. The processor 51 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components . A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.

对于上述实施例的路沿跟踪方法,其可以计算机程序的形式呈现,本申请提出一种承载计算机程序的计算机存储介质,请参阅图6,图6是本申请提供的计算机存储介质一实施例的结构示意图,本实施例计算机存储介质60包括计算机程序61,其可被执行以实现上述路沿跟踪方法。For the roadside tracking method of the above-mentioned embodiment, it can be presented in the form of a computer program. This application proposes a computer storage medium carrying a computer program. Please refer to FIG. 6, which is an example of an embodiment of a computer storage medium provided by this application. Schematic diagram of the structure, the computer storage medium 60 of this embodiment includes a computer program 61 that can be executed to implement the above road edge tracking method.

本实施例计算机存储介质60可以是U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等可以存储程序指令的介质,或者也可以为存储有该程序指令的服务器,该服务器可将存储的程序指令发送给其他设备运行,或者也可以自运行该存储的程序指令。In this embodiment, the computer storage medium 60 can be a medium that can store program instructions such as a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, Or it can also be a server that stores the program instructions, and the server can send the stored program instructions to other devices to run, or can also run the stored program instructions by itself.

另外,上述功能如果以软件功能的形式实现并作为独立产品销售或使用时,可存储在一个移动终端可读取存储介质中,即,本申请还提供一种存储有程序数据的存储装置,所述程序数据能够被执行以实现上述实施例的方法,该存储装置可以为如U盘、光盘、服务器等。也就是说,本申请可以以软件产品的形式体现出来,其包括若干指令用以使得一台智能终端执行各个实施例所述方法的全部或部分步骤。In addition, if the above-mentioned functions are implemented in the form of software functions and sold or used as independent products, they can be stored in a storage medium that can be read by a mobile terminal, that is, the application also provides a storage device that stores program data, so The above program data can be executed to implement the methods of the above embodiments, and the storage device can be, for example, a U disk, an optical disk, a server, and the like. That is to say, the present application may be embodied in the form of a software product, which includes several instructions for enabling an intelligent terminal to execute all or part of the steps of the method described in each embodiment.

在本申请的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this application, reference to the terms "one embodiment," "some embodiments," "example," "specific examples," or "some examples" means that specific features described in connection with that embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present application, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.

在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(可以是个人计算机,服务器,网络设备或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For the use of instruction execution systems, devices or equipment (which may be personal computers, servers, network equipment or other systems that can fetch instructions from instruction execution systems, devices or devices and execute instructions), or in combination with these instruction execution systems, devices or devices And use. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, as it may be possible, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or other suitable processing if necessary. The program is processed electronically and stored in computer memory.

以上所述仅为本申请的实施方式,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only the implementation of the application, and does not limit the patent scope of the application. Any equivalent structure or equivalent process conversion made by using the specification and drawings of the application, or directly or indirectly used in other related technologies fields, are all included in the scope of patent protection of this application in the same way.

Claims (14)

1.一种路沿跟踪方法,其特征在于,所述路沿跟踪方法包括:1. a roadside tracking method, is characterized in that, described roadside tracking method comprises: 获取当前时刻的预测路沿点集和检测路沿点集;Obtain the predicted roadside point set and detected roadside point set at the current moment; 基于所述预测路沿点集对所述检测路沿点集进行分组处理,得到所述检测路沿点集的分组结果;performing grouping processing on the detected roadside point set based on the predicted roadside point set, to obtain a grouping result of the detected roadside point set; 获取当前时刻车辆所行使的道路是否存在路沿不全的路沿识别结果;Obtain the roadside recognition result of whether there is an incomplete roadside on the road the vehicle is driving at the current moment; 基于所述路沿识别结果和所述检测路沿点集的分组结果,对所述预测路沿点集和所述检测路沿点集进行融合处理,得到融合路沿点集;Based on the curb identification result and the grouping result of the detected curb point set, performing fusion processing on the predicted curb point set and the detected curb point set to obtain a fused curb point set; 对所述融合路沿点集进行曲线拟合,得到当前时刻的路沿拟合结果。Curve fitting is performed on the fused roadside point set to obtain a roadside fitting result at the current moment. 2.根据权利要求1所述的路沿跟踪方法,其特征在于,所述基于所述路沿识别结果和所述检测路沿点集的分组结果,对所述预测路沿点集和所述检测路沿点集进行融合处理,包括:2. The roadside tracking method according to claim 1, characterized in that, based on the grouping result of the roadside recognition result and the detected roadside point set, the predicted roadside point set and the Detect roadside point sets for fusion processing, including: 基于所述路沿识别结果和所述检测路沿点集的分组结果,确定所述预测路沿点集和所述检测路沿点集各自的融合权重;determining respective fusion weights of the predicted curb point set and the detected curb point set based on the curb identification result and the grouping result of the detected curb point set; 按照所述各自的融合权重对所述预测路沿点集和所述检测路沿点集进行融合处理。Fusion processing is performed on the predicted roadside point set and the detected roadside point set according to the respective fusion weights. 3.根据权利要求2所述的路沿跟踪方法,其特征在于,所述基于所述路沿识别结果和所述检测路沿点集的分组结果,确定所述预测路沿点集和所述检测路沿点集各自的融合权重,包括:3. The roadside tracking method according to claim 2, characterized in that, based on the grouping result of the roadside identification result and the detected roadside point set, the predicted roadside point set and the roadside point set are determined. Detect the respective fusion weights of the roadside point sets, including: 若所述检测路沿点集的分组结果中不存在新生路沿点集以及所述路沿识别结果中不存在路沿不全,则确定所述预测路沿点集的融合权重与所述检测路沿点集的融合权重的差值小于或等于预设阈值。If there is no new road edge point set in the grouping result of the detected road edge point set and there is no road edge incompleteness in the road edge identification result, then determine the fusion weight of the predicted road edge point set and the detected road edge point set. The difference of fusion weights along the point set is less than or equal to a preset threshold. 4.根据权利要求2所述的路沿跟踪方法,其特征在于,所述基于所述路沿识别结果和所述检测路沿点集的分组结果,确定所述预测路沿点集和所述检测路沿点集各自的融合权重,包括:4. The roadside tracking method according to claim 2, characterized in that, the grouping result based on the roadside recognition result and the detected roadside point set determines the prediction roadside point set and the Detect the respective fusion weights of the roadside point sets, including: 若所述检测路沿点集的分组结果中不存在新生路沿点集以及所述路沿识别结果中存在路沿不全,则确定所述预测路沿点集的融合权重大于所述检测路沿点集的融合权重。If there is no new road edge point set in the grouping result of the detected road edge point set and there is an incomplete road edge in the road edge recognition result, it is determined that the fusion weight of the predicted road edge point set is greater than the detected road edge point set Fusion weights for point sets. 5.根据权利要求2所述的路沿跟踪方法,其特征在于,所述基于所述路沿识别结果和所述检测路沿点集的分组结果,确定所述预测路沿点集和所述检测路沿点集各自的融合权重,包括:5. The roadside tracking method according to claim 2, characterized in that, based on the grouping result of the roadside recognition result and the detected roadside point set, the predicted roadside point set and the roadside point set are determined. Detect the respective fusion weights of the roadside point sets, including: 若所述检测路沿点集的分组结果中存在新生路沿点集以及所述路沿识别结果中不存在路沿不全,则确定所述预测路沿点集的融合权重小于所述检测路沿点集的融合权重。If there is a new road edge point set in the grouping result of the detected road edge point set and there is no road edge incompleteness in the road edge identification result, then it is determined that the fusion weight of the predicted road edge point set is smaller than the detected road edge point set Fusion weights for point sets. 6.根据权利要求2所述的路沿跟踪方法,其特征在于,所述基于所述路沿识别结果和所述检测路沿点集的分组结果,确定所述预测路沿点集和所述检测路沿点集各自的融合权重,包括:6. The roadside tracking method according to claim 2, characterized in that, based on the grouping result of the roadside recognition result and the detected roadside point set, the predicted roadside point set and the roadside point set are determined. Detect the respective fusion weights of the roadside point sets, including: 若所述检测路沿点集的分组结果中存在新生路沿点集以及所述路沿识别结果中存在路沿不全,则确定所述预测路沿点集的融合权重小于所述检测路沿点集的融合权重。If there is a new road edge point set in the grouping result of the detected road edge point set and there is an incomplete road edge in the road edge recognition result, then determine that the fusion weight of the predicted road edge point set is smaller than the detected road edge point Set of fusion weights. 7.根据权利要求1-6任意一项所述的路沿跟踪方法,其特征在于,所述基于所述预测路沿点集对所述检测路沿点集进行分组处理,得到所述检测路沿点集的分组结果,包括:7. The roadside tracking method according to any one of claims 1-6, wherein the grouping process is performed on the detected roadside point set based on the predicted roadside point set to obtain the detected roadside point set. Grouped results along point sets, including: 从所述检测路沿点集中选取一个未计算过距离值的目标路沿点与所述预测路沿点集中的左路沿预测点集计算距离得到左路沿距离值,以及与所述预测路沿点集中的右路沿点集计算距离得到右路沿距离值,重复当前步骤直至遍历所有检测路沿点;Select a target roadside point from the detected roadside point set without calculating the distance value and calculate the distance from the left roadside predicted point set in the predicted roadside point set to obtain the left roadside distance value, and Calculate the distance of the right along point set in the set of along points to obtain the distance value of the right along the road, and repeat the current step until all detected road along points are traversed; 从检测路沿点的所述左路沿距离值和所述右路沿距离值中选择数值较小的一者与预设距离阈值进行比较;Selecting the smaller one from the distance value of the left roadside and the distance value of the right roadside of the detected roadside point to compare with a preset distance threshold; 基于距离比较结果确定所述检测路沿点集的分组结果中是否存在新生路沿点集。Based on the distance comparison result, it is determined whether there is a new roadside point set in the grouping result of the detected roadside point set. 8.根据权利要求7所述的路沿跟踪方法,其特征在于,所述基于距离比较结果确定所述检测路沿点集的分组结果中是否存在新生路沿点集,包括:8. The roadside tracking method according to claim 7, wherein the determination based on the distance comparison result whether there is a new roadside point set in the grouping result of the detected roadside point set comprises: 若所述检测路沿点中距离值大于预设距离阈值的待定路沿点的数量大于预设数量阈值,则将所有待定路沿点在车辆坐标系下的纵坐标值的最小值与预设纵坐标阈值进行比较;If the number of undetermined roadside points whose distance value is greater than the preset distance threshold in the detected roadside points is greater than the preset number threshold, then the minimum value of the ordinate value of all undetermined roadside points in the vehicle coordinate system is compared with the preset The ordinate threshold is compared; 若所有待定路沿点的纵坐标值的最小值小于预设纵坐标阈值,则确定所述检测路沿点集的分组结果中存在新生路沿点集,否则确定所述检测路沿点集的分组结果中不存在新生路沿点集。If the minimum value of the ordinate values of all undetermined roadside points is less than the preset ordinate threshold value, it is determined that there is a new roadside point set in the grouping result of the detected roadside point set, otherwise it is determined that the detected roadside point set The new curb point set does not exist in the grouping result. 9.根据权利要求7所述的路沿跟踪方法,其特征在于,所述从所述检测路沿点集中选取一个未计算过距离值的目标路沿点与所述预测路沿点集中的左路沿预测点集计算距离得到左路沿距离值,以及与所述预测路沿点集中的右路沿点集计算距离得到右路沿距离值,包括:9. The roadside tracking method according to claim 7, characterized in that, selecting a target roadside point whose distance value has not been calculated from the set of detected roadside points and the left side of the set of predicted roadside points Calculate the distance from the roadside prediction point set to obtain the distance value of the left roadside, and calculate the distance from the right roadside point set in the predicted roadside point set to obtain the right roadside distance value, including: 将选择的所述目标路沿点与所述左路沿预测点集中的所有左路沿预测点计算距离值,并将所有的距离值求取平均值作为所述左路沿距离值;Calculate the distance value between the selected target roadside point and all left roadside prediction points in the left roadside prediction point set, and calculate the average value of all distance values as the left roadside distance value; 将选择的所述目标路沿点与所述右路沿预测点集中的所有右路沿预测点计算距离值,并将所有的距离值求取平均值作为所述右路沿距离值。Calculate the distance value between the selected target roadside point and all the right roadside prediction points in the right roadside prediction point set, and calculate the average value of all the distance values as the right roadside distance value. 10.根据权利要求1-6任意一项所述的路沿跟踪方法,其特征在于,所述获取当前时刻的预测路沿点集,包括:10. The roadside tracking method according to any one of claims 1-6, wherein said obtaining the predicted roadside point set at the current moment comprises: 基于前一时刻的车辆运动信息确定车辆从前一时刻到当前时刻的横向位移、纵向位移和旋转角度;Determine the lateral displacement, longitudinal displacement and rotation angle of the vehicle from the previous moment to the current moment based on the vehicle motion information at the previous moment; 基于所述横向位移、所述纵向位移、所述旋转角度、车辆坐标系的平移变换矩阵、车辆坐标系的旋转变换矩阵和前一时刻的融合路沿点在车辆坐标系下的坐标值,确定当前时刻的预测路沿点集。Based on the lateral displacement, the longitudinal displacement, the rotation angle, the translation transformation matrix of the vehicle coordinate system, the rotation transformation matrix of the vehicle coordinate system, and the coordinate values of the fused roadside point in the vehicle coordinate system at the previous moment, determine The set of predicted roadside points at the current moment. 11.根据权利要求1-6任意一项所述的路沿跟踪方法,其特征在于,所述对所述融合路沿点集进行曲线拟合,得到当前时刻的路沿拟合结果,包括:11. according to the roadside tracking method described in any one of claim 1-6, it is characterized in that, described fusion roadside point set is carried out curve fitting, obtains the roadside fitting result of current moment, comprises: 从所述融合路沿点集中选取若干拟合路沿点;selecting some fitting roadside points from the collection of fusion roadside points; 将所述若干拟合路沿点进行曲线拟合,得到拟合曲线模型;Carry out curve fitting with described several fitting roadside points, obtain fitting curve model; 将其他融合路沿点与所述拟合曲线模型进行匹配;Matching other fusion roadside points with the fitting curve model; 若匹配程度在预设范围内的融合路沿点个数大于等于预设个数阈值,则将拟合曲线模型作为所述路沿拟合结果;If the number of fused roadside points whose matching degree is within the preset range is greater than or equal to the preset number threshold, the fitting curve model is used as the roadside fitting result; 若匹配程度在预设范围内的融合路沿点个数小于预设个数阈值,则返回步骤从所述融合路沿点中选取若干拟合路沿点。If the number of fused roadside points whose matching degree is within the preset range is less than the preset number threshold, return to the step of selecting several fitting roadside points from the fused roadside points. 12.一种路沿拟合装置,其特征在于,包括:获取模块、分组模块、融合模块以及拟合模块;12. A roadside fitting device, comprising: an acquisition module, a grouping module, a fusion module and a fitting module; 所述获取模块用于获取当前时刻的预测路沿点集和检测路沿点集;The obtaining module is used to obtain the predicted roadside point set and the detected roadside point set at the current moment; 所述分组模块用于基于所述预测路沿点集对所述检测路沿点集进行分组处理,得到所述检测路沿点集的分组结果;The grouping module is used to group the detected roadside point set based on the predicted roadside point set, and obtain the grouping result of the detected roadside point set; 所述获取模块用于获取当前时刻车辆所行使的道路是否存在路沿不全的路沿识别结果;The acquiring module is used to acquire the curb recognition result of whether there is an incomplete curb on the road the vehicle is driving at the current moment; 所述融合模块用于基于所述路沿识别结果和所述检测路沿点集的分组结果,对所述预测路沿点集和所述检测路沿点集进行融合处理,得到融合路沿点集;The fusion module is configured to perform fusion processing on the predicted curb point set and the detected curb point set based on the curb recognition result and the grouping result of the detected curb point set to obtain the fused curb point set; 所述拟合模块用于对所述融合路沿点集进行曲线拟合,得到当前时刻的路沿拟合结果。The fitting module is used for performing curve fitting on the fused roadside point set to obtain a roadside fitting result at the current moment. 13.一种路沿拟合设备,其特征在于,包括:处理器和存储器,所述存储器中存储有计算机程序,所述处理器用于执行所述计算机程序以实现权利要求1至11中任一项所述的方法。13. A roadside fitting device, characterized in that it comprises: a processor and a memory, a computer program is stored in the memory, and the processor is used to execute the computer program to realize any one of claims 1 to 11 method described in the item. 14.一种计算机可读存储介质,其上存储有程序指令,其特征在于,所述程序指令被处理器执行时实现权利要求1至11任一项所述的方法。14. A computer-readable storage medium on which program instructions are stored, wherein the method according to any one of claims 1 to 11 is implemented when the program instructions are executed by a processor.
CN202211637326.6A 2022-12-19 2022-12-19 Road edge tracking method, device, equipment and storage medium Pending CN116091556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211637326.6A CN116091556A (en) 2022-12-19 2022-12-19 Road edge tracking method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211637326.6A CN116091556A (en) 2022-12-19 2022-12-19 Road edge tracking method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116091556A true CN116091556A (en) 2023-05-09

Family

ID=86187747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211637326.6A Pending CN116091556A (en) 2022-12-19 2022-12-19 Road edge tracking method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116091556A (en)

Similar Documents

Publication Publication Date Title
Berriel et al. Ego-lane analysis system (elas): Dataset and algorithms
Kampker et al. Towards Multi-Object Detection and Tracking in Urban Scenario under Uncertainties.
CN108596081A (en) A kind of traffic detection method merged based on radar and video camera
US12148219B2 (en) Method, apparatus, and computing device for lane recognition
US12205343B2 (en) Detecting objects non-visible in color images
JP4937844B2 (en) Pedestrian detection device
CN115618932A (en) Traffic incident prediction method, device and electronic equipment based on networked automatic driving
US20240096109A1 (en) Automatic lane marking extraction and classification from lidar scans
Lee et al. Accurate ego-lane recognition utilizing multiple road characteristics in a Bayesian network framework
US20240246570A1 (en) Path planning system and path planning method thereof
Haris et al. Lane line detection and departure estimation in a complex environment by using an asymmetric kernel convolution algorithm
Xiong et al. Fast and robust approaches for lane detection using multi‐camera fusion in complex scenes
Chang et al. Using spatiotemporal stacks for precise vehicle tracking from roadside 3D LiDAR data
CN114529539B (en) Unmanned equipment road obstacle detection method, device, unmanned equipment and storage medium
Hughes et al. Drivespace: towards context-aware drivable area detection
CN116091556A (en) Road edge tracking method, device, equipment and storage medium
Shan et al. Vehicle collision risk estimation based on RGB-D camera for urban road
CN116434156A (en) Target detection method, storage medium, road side equipment and automatic driving system
US20220371606A1 (en) Streaming object detection and segmentation with polar pillars
Sanberg et al. Asteroids: A stixel tracking extrapolation-based relevant obstacle impact detection system
CN116385997A (en) Vehicle-mounted obstacle accurate sensing method, system and storage medium
CN114239706A (en) Target fusion method and system based on multiple cameras and laser radar
US12217511B1 (en) Real time management of detected issues
CN118587244B (en) Vehicle track prediction method, device, electronic equipment and storage medium
Gupta et al. A Framework for Lane Prediction Based on Vehicle Detection and Tracking

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